Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1899CC77B72 for ; Mon, 17 Apr 2023 07:03:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CCE7C85816; Mon, 17 Apr 2023 09:03:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="e31f06Ck"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA3C78574D; Mon, 17 Apr 2023 09:03:47 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C3CB18574D for ; Mon, 17 Apr 2023 09:03:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3ECFC61356; Mon, 17 Apr 2023 07:03:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BCADC433EF; Mon, 17 Apr 2023 07:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681715022; bh=cU2G2ZnQelfmcrV8kSDSuAbKN0HZEtv9Fx3yiXaetGc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e31f06Cki5okdEB+DBRRdfckjxrZc+gWfMfmj2O0xIgc3boe1KU/EpeVv5lqu8SVv JgZ2+yEVA/sBz1udC/hYFVZV47PbMeqFSFiUlDehSjceTfBxhE09JXzB0wjymfOIKo 4t2yM24b9dylgI8joi53NQ3J0rTI4BnS3E/hpMqDVuiXQX6eVwBrS7YE13kPyslqMP S0Tg6V4uVyqLDF76/VaWdY9iXbLdsVpNPbLXaCRHeYYUZ8dB+RB9rA1UF3v9EDE/CB UrXZEeNUJXGCgYZkZtFfV47PdsElDqJCuecHQOgq7hJlCuEEOg9n8nv/90yj35VN40 R5jr7dHM5sOEw== Received: by pali.im (Postfix) id 76373790; Mon, 17 Apr 2023 09:03:39 +0200 (CEST) Date: Mon, 17 Apr 2023 09:03:39 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Heiko Schocher Cc: u-boot@lists.denx.de Subject: Re: [PATCH u-boot 0/3] pci: mpc85xx: Fixes for PCI config space Message-ID: <20230417070339.iizhy42apl7sym4q@pali> References: <20230413204146.9318-1-pali@kernel.org> <579e5103-2a0b-6f3b-8093-85576875c699@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <579e5103-2a0b-6f3b-8093-85576875c699@denx.de> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On Monday 17 April 2023 07:12:16 Heiko Schocher wrote: > Hello Pali, > > On 13.04.23 22:41, Pali Rohár wrote: > > This patch series contains small fixes for mpc85xx old PCI Local Bus driver. > > > > Heiko: Are you able to test these changes? Has your Socrates board > > available old PCI Local Bus support? > > > > Pali Rohár (3): > > pci: mpc85xx: Add missing sync() after writing to PCI config space > > pci: mpc85xx: Allow 8/16-bit access to PCI config space > > pci: mpc85xx: Do not try to access extended PCIe registers > > > > drivers/pci/pci_mpc85xx.c | 39 +++++++++++++++++++++++++++++++++++---- > > 1 file changed, 35 insertions(+), 4 deletions(-) > > I just applied your patches to my U-Boot (based on 2023.04) running > on the socrates board. I see no problems. > > I have there: > > => pci > BusDevFun VendorId DeviceId Device Class Sub-Class > _____________________________________________________________ > 00.00.00 0x1957 0x0033 Processor 0x20 > 00.11.00 0x1131 0x1561 Serial bus controller 0x03 > 00.11.01 0x1131 0x1561 Serial bus controller 0x03 > 00.11.02 0x1131 0x1562 Serial bus controller 0x03 > 00.12.00 0x1131 0x1561 Serial bus controller 0x03 > 00.12.01 0x1131 0x1561 Serial bus controller 0x03 > 00.12.02 0x1131 0x1562 Serial bus controller 0x03 > => > > => usb start > starting USB... > Bus ohci_pci: USB OHCI 1.0 > Bus ohci_pci: USB OHCI 1.0 > Bus ohci_pci: USB OHCI 1.0 > Bus ohci_pci: USB OHCI 1.0 > scanning bus ohci_pci for devices... 1 USB Device(s) found > scanning bus ohci_pci for devices... 1 USB Device(s) found > scanning bus ohci_pci for devices... 1 USB Device(s) found > scanning bus ohci_pci for devices... 2 USB Device(s) found > scanning usb for storage devices... 1 Storage Device(s) found > => usb storage > Device 0: Vendor: Mass Rev: 1.00 Prod: Storage Device > Type: Removable Hard Disk > Capacity: 30424.5 MB = 29.7 GB (62309376 x 512) > => > > So, I see no problems with your patches. Thanks for testing! Could you send me dump of the PCI config space from u-boot and also from Linux? So I could compare it if U-Boot is doing everything correctly. In U-Boot for first two devices: => pci display.b 00.00.00 0x0 0x1000 => pci display.b 00.11.00 0x0 0x1000 And in Linux for all devices: # lspci -xxxx -nn > bye, > Heiko > -- > DENX Software Engineering GmbH, Managing Director: Erika Unter > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de