Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Imre Kaloz <kaloz@kernel.org>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org,
	Lee Jones <lee@kernel.org>,
	linux-pci@vger.kernel.org
Subject: Re: [PATCH v2 04/53] MIPS: PCI: xtalk-bridge: flush config space writes
Date: Sat, 5 Dec 2026 14:29:28 +0100	[thread overview]
Message-ID: <axQRuOp0dUQsRt_T@alpha.franken.de> (raw)
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 <kaloz@kernel.org>
> ---
>  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 ]

  reply	other threads:[~2026-12-05 13:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13 13:16 [PATCH v2 00/53] MIPS: SGI-IP27: add support for the IP35 (Bedrock hub) machines Imre Kaloz
2026-10-13 13:16 ` [PATCH v2 01/53] MIPS: PCI: xtalk-bridge: refuse device numbers past the last slot Imre Kaloz
2026-12-05 13:28   ` Thomas Bogendoerfer
2026-10-13 13:16 ` [PATCH v2 02/53] MIPS: PCI: xtalk-bridge: assign slots the PROM leaves unconfigured Imre Kaloz
2026-12-05 13:28   ` Thomas Bogendoerfer
2026-10-13 13:16 ` [PATCH v2 03/53] MIPS: PCI: xtalk-bridge: write a type 1 IOC3 through the type 1 window Imre Kaloz
2026-12-05 13:29   ` Thomas Bogendoerfer
2026-10-13 13:16 ` [PATCH v2 04/53] MIPS: PCI: xtalk-bridge: flush config space writes Imre Kaloz
2026-12-05 13:29   ` Thomas Bogendoerfer [this message]
2026-10-13 13:16 ` [PATCH v2 05/53] MIPS: PCI: xtalk-bridge: reassign slots whose devio window maps elsewhere Imre Kaloz
2026-12-05 13:30   ` Thomas Bogendoerfer
2026-10-13 13:16 ` [PATCH v2 26/53] MIPS: SGI-IP27: pick the XBridge and PIC DMA address form by mask Imre Kaloz
2026-10-13 13:35 ` [PATCH v2 00/53] MIPS: SGI-IP27: add support for the IP35 (Bedrock hub) machines Niklas Cassel
2026-10-13 14:25   ` Imre Kaloz
2026-10-20 18:06 ` Jakub Kicinski
2026-10-20 20:42   ` Imre Kaloz
2026-10-20 21:56     ` Jakub Kicinski
2026-10-21  9:05       ` Imre Kaloz
2026-10-21 14:39         ` Jakub Kicinski
2026-10-22 19:28           ` Maciej W. Rozycki
2026-10-22 21:34             ` Jakub Kicinski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axQRuOp0dUQsRt_T@alpha.franken.de \
    --to=tsbogend@alpha.franken.de \
    --cc=kaloz@kernel.org \
    --cc=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox