All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] pci-phb: check for the 32-bit overflow
@ 2015-04-22 10:57 Nikunj A Dadhania
  2015-04-23 13:43 ` Thomas Huth
  0 siblings, 1 reply; 8+ messages in thread
From: Nikunj A Dadhania @ 2015-04-22 10:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: aik, thuth, nikunj, david

With the addition of 64-bit BARS and increase in the mmio address
space, the code was hitting this limit. The memory of pci devices
across the bridges were not accessible due to which the drivers
failed.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
---
 board-qemu/slof/pci-phb.fs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/board-qemu/slof/pci-phb.fs b/board-qemu/slof/pci-phb.fs
index 529772f..e307d95 100644
--- a/board-qemu/slof/pci-phb.fs
+++ b/board-qemu/slof/pci-phb.fs
@@ -258,7 +258,8 @@ setup-puid
             decode-64 2 / dup >r                \ Decode and calc size/2
             pci-next-mem @ + dup pci-max-mem !  \ and calc max mem address
             dup pci-next-mmio !                 \ which is the same as MMIO base
-            r> + pci-max-mmio !                 \ calc max MMIO address
+            r> + FFFFFFFF min pci-max-mmio !    \ calc max MMIO address and
+                                                \ check the 32-bit boundary
          ENDOF
          3000000 OF                             \ 64-bit memory space?
 	    decode-64 pci-next-mem64 !
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-04-27  5:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-22 10:57 [PATCH 1/2] pci-phb: check for the 32-bit overflow Nikunj A Dadhania
2015-04-23 13:43 ` Thomas Huth
2015-04-24  3:52   ` Nikunj A Dadhania
2015-04-24 10:56     ` Thomas Huth
2015-04-24 11:06       ` Thomas Huth
2015-04-27  5:00         ` Nikunj A Dadhania
2015-04-27  5:41         ` Nikunj A Dadhania
2015-04-27  4:58       ` Nikunj A Dadhania

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.