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=1796469554; b=ixXg22XgJ3lvvbAyYJoabJQ57lu0EjLdfVhfvx2zQi+wZjB+5a4GTJzzssCz+D07mkF/ e4g+jL9F4h5N1Y8K2EU8zmKngBwgEcjZGW5Elu9kxjc02h6OSMZ75sMDcG2gwb1omsn6t eSr9QAXC5Ki5Cu4ZJLMIOdnjKypdRX/G3iqQhmIkCDtf/u43pDHOK11ANdpaFLs7xep+K x8dxeZY6Xer0N0QOpgUXSGexpayFYU/4GrgBdbHYTPLt/izL/lwEsIxV/uPQKguZkhHUa HdUDRTKssppL5RYxWqtDcRjEOUX/wYGvtOdToM3wcVbji0U7NJv128paNvil3EnNiaA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796469554; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=9HvqOVRHRRxUmyDT3lkdmtEiyEeHFsBpomVjjOhK0/Y=; b=PemeRhFKGJtG+0H2tuj6rfB70LcQYcnbSKNOYbIbiOIv3ZXI/L7elDl7OuKMB9TVGpSu lQJbw+1CDIwEPnwkJLS2tqLz/BSB3gz+jRPMqUk40WDeg7VaLrBY+SMo9tMmHUbuIXrZw Nm4oADXVbyo0l10FpADbYl3gp32hAIO/+Scb6T8Xw7NC7+cNJwnbgNCGG+FtX3tj3BqE1 FbGvZDfDLesVqTcEaaun3S276qqhK7zwOlaWZKr9zimyK2Gzk4l3eJjf8GMbmcAHqlsNM +AHKGgUusRmrwEOd9uhXtmnM7T/O5+G9AhpeLjnzxAHDXtvogNHNlzRKI2VYcBeLDYw== 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1976606A332; Sat, 5 Dec 2026 11:19:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C1976606A332 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 AAFE1100451; Sat, 5 Dec 2026 12:19:11 +0100 (CET) Received: by alpha.franken.de (Postfix, from userid 1000) id E0EFAC0838; Sat, 5 Dec 2026 11:47:42 +0100 (CET) Date: Sat, 5 Dec 2026 11:47:42 +0100 From: Thomas Bogendoerfer To: Imre Kaloz Cc: linux-mips@vger.kernel.org, Kees Cook , linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: PCI: xtalk-bridge: disable byte swapping for SGI RAD1 Message-ID: References: <20261026131752.7519-1-kaloz@kernel.org> X-Mailing-List: linux-mips@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: <20261026131752.7519-1-kaloz@kernel.org> On Mon, Oct 26, 2026 at 02:17:52PM +0100, Imre Kaloz wrote: > The RAD1 audio DMA engine moves big-endian sample words. With the > Bridge byte swap left on for its slot, captured samples arrive > byte-reversed and playback feeds the DACs scrambled words. > > Signed-off-by: Imre Kaloz > --- > arch/mips/pci/pci-xtalk-bridge.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/mips/pci/pci-xtalk-bridge.c b/arch/mips/pci/pci-xtalk-bridge.c > index cf115abb54e0..1072e70bcd42 100644 > --- a/arch/mips/pci/pci-xtalk-bridge.c > +++ b/arch/mips/pci/pci-xtalk-bridge.c > @@ -105,6 +105,9 @@ static void bridge_disable_swapping(struct pci_dev *dev) > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3, > bridge_disable_swapping); > > +/* The RAD1 audio DMA engine transfers its sample words big-endian. */ > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SGI, 0x0005, bridge_disable_swapping); > + > > /* > * The Bridge ASIC supports both type 0 and type 1 access. Type 1 is > -- > 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 ]