From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ydawy-00085l-NK for barebox@lists.infradead.org; Thu, 02 Apr 2015 08:58:09 +0000 Message-ID: <1427965063.24886.16.camel@pengutronix.de> From: Lucas Stach Date: Thu, 02 Apr 2015 10:57:43 +0200 In-Reply-To: <20150402005457.b05ee70d5a92c4a403ea13a1@gmail.com> References: <20150402005457.b05ee70d5a92c4a403ea13a1@gmail.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: barebox qemu-malta pci problem To: Antony Pavlov Cc: barebox@lists.infradead.org Am Donnerstag, den 02.04.2015, 00:54 +0300 schrieb Antony Pavlov: > Hi! > > It looks like qemu-malta barebox pci support is broken since > > commit b8a1bb1dd215770670108fe5b0de0e5e137bf8fd > Author: Lucas Stach > Date: Sat Oct 4 19:40:12 2014 +0200 > > pci: defer device registration until after bridge setup > > Otherwise the drivers for a device may probe before the > devices parent bridge is fully configured, which leads > to errors when accessing the BARs. > Thanks for the report and the detailed reproducer. I'll have a look at this. Regards, Lucas > How to reproduce the problem: > > $ cd barebox.git > $ export ARCH=mips > $ export CROSS_COMPILE= > > # first let's see working state > > $ git checkout b8a1bb1dd215770670108fe5b0de0e5e137bf8fd^ > $ make qemu-malta_defconfig && make clean && make > $ qemu-system-mips -nodefaults -M malta -m 256 -nographic -serial stdio -monitor null -bios barebox-flash-image -net nic,model=rtl8139 > > ... > > barebox:/ devinfo > > ... > > `-- i2c > `-- pci > `-- pci0 > `-- pci1 > `-- pci2 > `-- pci3 > `-- pci4 > `-- eth0 > `-- miibus0 > `-- fs > > > > # devinfo shows eth0 device on pci4. good. > # now let's see broken state > > $ git checkout b8a1bb1dd215770670108fe5b0de0e5e137bf8fd > $ make qemu-malta_defconfig && make clean && make > $ qemu-system-mips -nodefaults -M malta -m 256 -nographic -serial stdio -monitor null -bios barebox-flash-image -net nic,model=rtl8139 > > ... > > barebox:/ devinfo > > ... > > `-- i2c > `-- pci > `-- fs > > # As you can see there is no pci devices on pci bus. > > -- > Best regards, > Antony Pavlov -- Pengutronix e.K. | Lucas Stach | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox