Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d4ed11aa
Commit
d4ed11aa
authored
Mar 31, 2015
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'next-eeh' into next-sriov
Merge in Gavin EEH fixes
parents
33052440
027fa02f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
arch/powerpc/kernel/eeh_pe.c
arch/powerpc/kernel/eeh_pe.c
+7
-6
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/powernv/pci-ioda.c
+2
-1
No files found.
arch/powerpc/kernel/eeh_pe.c
View file @
d4ed11aa
...
...
@@ -328,6 +328,13 @@ int eeh_add_to_parent_pe(struct eeh_dev *edev)
{
struct
eeh_pe
*
pe
,
*
parent
;
/* Check if the PE number is valid */
if
(
!
eeh_has_flag
(
EEH_VALID_PE_ZERO
)
&&
!
edev
->
pe_config_addr
)
{
pr_err
(
"%s: Invalid PE#0 for edev 0x%x on PHB#%d
\n
"
,
__func__
,
edev
->
config_addr
,
edev
->
phb
->
global_number
);
return
-
EINVAL
;
}
/*
* Search the PE has been existing or not according
* to the PE address. If that has been existing, the
...
...
@@ -336,12 +343,6 @@ int eeh_add_to_parent_pe(struct eeh_dev *edev)
*/
pe
=
eeh_pe_get
(
edev
);
if
(
pe
&&
!
(
pe
->
type
&
EEH_PE_INVALID
))
{
if
(
!
edev
->
pe_config_addr
)
{
pr_err
(
"%s: PE with addr 0x%x already exists
\n
"
,
__func__
,
edev
->
config_addr
);
return
-
EEXIST
;
}
/* Mark the PE as type of PCI bus */
pe
->
type
=
EEH_PE_BUS
;
edev
->
pe
=
pe
;
...
...
arch/powerpc/platforms/powernv/pci-ioda.c
View file @
d4ed11aa
...
...
@@ -2462,7 +2462,8 @@ static void pnv_ioda_setup_pe_seg(struct pci_controller *hose,
region
.
start
+=
phb
->
ioda
.
io_segsize
;
index
++
;
}
}
else
if
(
res
->
flags
&
IORESOURCE_MEM
)
{
}
else
if
((
res
->
flags
&
IORESOURCE_MEM
)
&&
!
pnv_pci_is_mem_pref_64
(
res
->
flags
))
{
region
.
start
=
res
->
start
-
hose
->
mem_offset
[
0
]
-
phb
->
ioda
.
m32_pci_base
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment