diff options
author | Benjamin Herrenschmidt | 2016-07-08 07:55:43 +0200 |
---|---|---|
committer | Michael Ellerman | 2016-08-09 11:51:47 +0200 |
commit | 5958d19a143eb229e9ece20bd4c781ad41cb7d24 (patch) | |
tree | e75a9e3cebf119ca9987b05a0e5396044c27cd1c /drivers/misc/cxl/pci.c | |
parent | powerpc/book3s: Fix MCE console messages for unrecoverable MCE. (diff) | |
download | kernel-qcow2-linux-5958d19a143eb229e9ece20bd4c781ad41cb7d24.tar.gz kernel-qcow2-linux-5958d19a143eb229e9ece20bd4c781ad41cb7d24.tar.xz kernel-qcow2-linux-5958d19a143eb229e9ece20bd4c781ad41cb7d24.zip |
powerpc/pnv/pci: Fix incorrect PE reservation attempt on some 64-bit BARs
The generic allocation code may sometimes decide to assign a prefetchable
64-bit BAR to the M32 window. In fact it may also decide to allocate
a 64-bit non-prefetchable BAR to the M64 one ! So using the resource
flags as a test to decide which window was used for PE allocation is
just wrong and leads to insane PE numbers.
Instead, compare the addresses to figure it out.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[mpe: Rename the function as agreed by Ben & Gavin]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl/pci.c')
0 files changed, 0 insertions, 0 deletions