From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.175.24.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796477620; b=hD6TYx021puGv/ugXXucbyBFonFDES9VvENUhRD1sJMa/D34VYoRipTQPaW6wj9kILKz xe1E/87ISysn4UXoK5Bcj+igeuNUzJxqhex2WJNmHc3Ic+xTEYkrFNSdb8pnxDUyKZf+N hhcuBeCGqowvh4SWsARWZZ7HwkMhkRxgXad6rrCG5qzIU6whqEzgnFv5JHW2j9ZBFF39B yP5oE73XcpmrfPKmeWg4CwaG7KhLdDSxCsNPD/e7lmuSOzK5yhbRgN8UC5Qx9ki4ySTXB ZylDbh74mUfT3Pq1xIKNGXSdSQyQnlbUawqvhgWEoapClj/cYYLhqdwZE3eLK7otmHg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796477620; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=Eh5fKodZNnJRk/3E2Ey4ek6LjZV5k9dmw38bnJlsMcI=; b=a5bDK7oW702mrqE/XKylNbnuVnu4JJKRuxXeFu7mjLmjY1jwo6XeGSQo+H3d8vn8XcLB HzSb1RnTDO/MKOUYxd/4BOfb49594mOT73MKpNZekJXk/Z5Gl0V2RQkrDAqZJKQlfLDHJ rVF2P9DA5yPFlm07sEaE2AD0a8xoLpBG8tRy8UcEJ4Lcv2PkX+d6wMW3tObHbx1QNzj4c 6G6ooJPSBddRO4qNzTEvgbs1Q1I40ZunbCPAGbSYyfLYSRoolNN23ePGSAr3m1XmZ51LO fZjo87CB3R3wnCVlXLP4+RR4kl/5L2JLgBcnihxTeWaPwEoPV0TtXRR4zsAyPRRW/Nw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.remote-ip=193.175.24.41 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2508160A2600; Sat, 5 Dec 2026 13:33:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2508160A2600 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: by elvis.franken.de (Postfix, from userid 10) id CC239100453; Sat, 5 Dec 2026 14:33:33 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id 59888C0A20; Sat, 5 Dec 2026 14:29:28 +0100 (CET) Date: Sat, 5 Dec 2026 14:29:28 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , linux-pci@vger.kernel.org Subject: Re: [PATCH v2 04/53] MIPS: PCI: xtalk-bridge: flush config space writes Message-ID: References: <65b97d9c34280ad7f85004641d992115d3af5215.1791890466.git.kaloz@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <65b97d9c34280ad7f85004641d992115d3af5215.1791890466.git.kaloz@kernel.org> On Tue, Oct 13, 2026 at 03:16:24PM +0200, Imre Kaloz wrote: > PIC hangs on a config access issued behind a config write that is still > posted, as when probing an SGI PCI digital audio board. Read the widget > flush register after each config write other than an IOC3's. > > Signed-off-by: Imre Kaloz > --- > arch/mips/pci/pci-xtalk-bridge.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c > index 18251a68fa06..16c1ac2c2551 100644 > --- a/arch/mips/pci/pci-xtalk-bridge.c > +++ b/arch/mips/pci/pci-xtalk-bridge.c > @@ -252,6 +252,9 @@ static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, > if (res) > return PCIBIOS_DEVICE_NOT_FOUND; > > + /* PIC hangs on a config access behind an unflushed config write. */ > + bridge_read(bc, b_wid_tflush); > + > return PCIBIOS_SUCCESSFUL; > } > > @@ -293,6 +296,8 @@ static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, > if (res) > return PCIBIOS_DEVICE_NOT_FOUND; > > + bridge_read(bc, b_wid_tflush); > + > return PCIBIOS_SUCCESSFUL; > } > > -- > 2.47.3 applied to mips-next Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]