From: olof@lixom.net (Olof Johansson) Date: Mon, 22 Jul 2013 20:02:01 -0700 Subject: [PATCH] ARM: footbridge: fix overlapping PCI mappings In-Reply-To: References: <1372387356-15341-1-git-send-email-vapier@gentoo.org> Message-ID: <20130723030201.GB16733@quad.lixom.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jul 15, 2013 at 03:52:12PM -0500, Rob Herring wrote: > On Thu, Jun 27, 2013 at 9:42 PM, Mike Frysinger wrote: > > Commit 8ef6e6201b26cb9fde79c1baa08145af6aca2815 (ARM: footbridge: use > > fixed PCI i/o mapping) broke booting on my netwinder. Before that, > > everything boots fine. Since then, it crashes on boot. > > > > With earlyprintk, I see it BUG-ing like so: > > kernel BUG at lib/ioremap.c:27! > > Internal error: Oops - BUG: 0 [#1] ARM > > ... > > [] (ioremap_page_range+0x128/0x154) from [] (dc21285_setup+0xd0/0x114) > > [] (dc21285_setup+0xd0/0x114) from [] (pci_common_init+0xa0/0x298) > > [] (pci_common_init+0xa0/0x298) from [] (netwinder_pci_init+0xc/0x18) > > [] (netwinder_pci_init+0xc/0x18) from [] (do_one_initcall+0xb4/0x180) > > ... > > > > Russell points out it's because of overlapping PCI mappings that was > > added with the aforementioned commit. Rob thought the code would re-use > > the static mapping, but that turns out to not be the case and instead > > hits the BUG further down. > > > > After deleting this hunk as suggested by Russel, the system boots up fine > > again and all my PCI devices work (IDE, ethernet, the DC21285). > > > > Signed-off-by: Mike Frysinger > > Acked-by: Rob Herring > > Olof, Kevin, > > Please apply and add stable. Done (stable v3.5+). Thanks. -Olof