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=Enc8IwAbV+1lJis5uTCjjY1QC1RVMp3Ml+LWqvkgahQ24PZuli9G0zwmyw+LKKgYyVuf I763VAU3NHy3H+yuTnE0zqES3dgfkGUwl1pqEJf6g9K0Bbas9sXBTVgROnEQH76TbVF7b 4rVdcENPk/a1z1m3JC0IDtxPKzzOk3g4H9hnCZN/8Qn8t4E7Kq+BtKbQv9XVvtz1uBzRD jHwwz+PUmPboI3ye5J4zX3wcf/7rWZFb3BnIQc5+5S8aBlDg37O61Y7rYesQrl7ytLhr9 lcv8Wrz6TnwhmVrfs/ia/RJPf36KeCvkLcvRjf7344WU556ZcwZr6xuEsre+mpQoAMQ== 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=Ept2gWsPqHW3ZKUavPE82JNs3OCWN+q04PBIcXPpdhs=; b=Wgqj+RkmUIblCwMoFMTdw/nQ/iETPwzFXBKEhc1mJx7AbGCkKRb/yNW7AL3iGfRxhWe1 5R3Zpj3piNsN/H53bGpvf73tMeqGdx91UAtPXhnpwvFD8OWYVfECELbchdVx+WvLNQSX7 WqmHImULXLR4LW6M0bFw3lVbQCpYJGLrSq5raQ76sa5mYZY3LDFszKcVD2BfSzxsXtvFQ GfxxiJb8T1YciaBaBcjRyWRA2BucuE7sX7sB5ZXn1am5XBnfZt4lV5dwRzP9+3uRC4wGL Ds+zsithUWqolNp+kQIdGgVWhKSZ7E3C/wEOaGIbhTsspAoP4d968ZLSXPZGRIDB1kw== 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 251A560A2604; Sat, 5 Dec 2026 13:33:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 251A560A2604 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 DBD0010042C; Sat, 5 Dec 2026 14:33:33 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id 5E16CC097F; Sat, 5 Dec 2026 14:29:13 +0100 (CET) Date: Sat, 5 Dec 2026 14:29:13 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , stable@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 03/53] MIPS: PCI: xtalk-bridge: write a type 1 IOC3 through the type 1 window Message-ID: References: X-Mailing-List: stable@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: On Tue, Oct 13, 2026 at 03:16:23PM +0200, Imre Kaloz wrote: > The IOC3 case of the type 1 config write goes through the root bus > slot's type 0 window and so writes a different device. Use the type 1 > window, as the matching read does. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Cc: stable@vger.kernel.org > Signed-off-by: Imre Kaloz > --- > arch/mips/pci/pci-xtalk-bridge.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c > index 2fa9ac8d0a1c..18251a68fa06 100644 > --- a/arch/mips/pci/pci-xtalk-bridge.c > +++ b/arch/mips/pci/pci-xtalk-bridge.c > @@ -277,7 +277,7 @@ static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, > * generic PCI code a chance to look at it for real ... > */ > if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) { > - addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; > + addr = &bridge->b_type1_cfg.c[(fn << 8) | (where & ~3)]; > return ioc3_cfg_wr(addr, where, size, value); > } > > -- > 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 ]