From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 87915C02198 for ; Sun, 16 Feb 2025 10:09:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Subject:Cc:To:From:Message-ID:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7KbAdSIlJtf6sGFQJPY6bOjBZzg+pC5C1iovcnvKGfw=; b=234B6NmQPbqZ2N In/4i6I/y4jQWxYGSPeCrzYgF1hi/s52ZLz/Zk67nck5zZeMfRkayIgsQtSi6Q5Uks4vCDozh6Fdw qzCrlhG73soWMk7L/F1x2uqoW87skQQfe9ExwIxnO5AxDSmkyTCmCfpptnWlycHPuW+d4vDgjoUM0 Rng1r4ma4WIVNd9nYG/odYHOdFgNy6BvOCrXDFoQLpb2fMagqJpP60SAoKsG5e35onhqopeL1yg3R c/qBGi1wuU8impp0r8utJMRdv7x9eZsYC7MLR/UbIxitqtAzom67/iA3psXgdZnKmZX9C55MhnaGN DkiR6k1g5+GvthIRlCXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tjbaR-00000001chG-0BmH; Sun, 16 Feb 2025 10:09:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tjbRS-00000001bhN-3V9U for linux-rockchip@lists.infradead.org; Sun, 16 Feb 2025 10:00:04 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AC48D5C5610; Sun, 16 Feb 2025 09:59:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B172FC4CEDD; Sun, 16 Feb 2025 10:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739700001; bh=gVeX3dBdYmZQsryIB7Wq4wt/LHImRZlGSznWXeC+bdQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=eEGjhidvFztftvpNvYUBUCPEIHS4fTn9lXgf8jDC2vKsbpB6MK5zjnxZIWIegh3bM ZpGU/kTh9YqM84sssA7R+vGmQrOhGaxWisZbLmfoKgu1TV/KsgwsHnoWPUCk4LxMr8 Y3DaKX464/DBmfY8c/dGY+3XF7UKO73kbUG9OF4av0aqJoR/cLga3E5hqJWV7OiiTb DMW3fsavmlFLPpmwR63oMikDdLSE4pUBKBPUeEYsgKMVISVhSBKWnANzdnHI48Kpln UFPlwKR/XK/w5je/zZQh7RvcfY7RrJxrjwj8iXcoKnO6Bsg4/txasKViAbUMX6ox+h auUuwfdWbMGrA== Received: from sofa.misterjones.org ([185.219.108.64] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1tjbRP-004WsE-AG; Sun, 16 Feb 2025 09:59:59 +0000 Date: Sun, 16 Feb 2025 09:59:58 +0000 Message-ID: <87r03y1a75.wl-maz@kernel.org> From: Marc Zyngier To: Dmitry Osipenko Cc: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Thomas Gleixner , devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Kever Yang , XiaoDong Huang , Peter Geis , Robin Murphy , kernel@collabora.com Subject: Re: [PATCH v1 3/4] arm64: dts: rockchip: rk356x: Add MSI controller node In-Reply-To: <20250215235431.143138-4-dmitry.osipenko@collabora.com> References: <20250215235431.143138-1-dmitry.osipenko@collabora.com> <20250215235431.143138-4-dmitry.osipenko@collabora.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: dmitry.osipenko@collabora.com, heiko@sntech.de, robh@kernel.org, krzk+dt@kernel.org, tglx@linutronix.de, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kever.yang@rock-chips.com, derrick.huang@rock-chips.com, pgwipeout@gmail.com, robin.murphy@arm.com, kernel@collabora.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250216_020002_986245_A632BB52 X-CRM114-Status: GOOD ( 22.50 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org On Sat, 15 Feb 2025 23:54:30 +0000, Dmitry Osipenko wrote: > > Rockchip 356x SoC's GIC has two hardware integration issues that > affect MSI functionality of the GIC. Previously, both these GIC > limitations were worked around by using MBI for MSI instead of ITS > because kernel GIC driver didn't have necessary quirks. > > The first limitation is about RK356x GIC not supporting programmable > shareability. Rockchip assigned Errata ID #3568001 for this issue. > > Second limitation is about GIC AXI master interface addressing only > first 4GB of DRAM. Rockchip assigned Errata ID #3568002 for this issue. > > Now that kernel supports quirks for both of the erratums, add > MSI controller node to RK356x device-tree. > > Signed-off-by: Dmitry Osipenko > --- > arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi > index 28be38b7182e..423185686600 100644 > --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi > @@ -284,7 +284,18 @@ gic: interrupt-controller@fd400000 { > mbi-alias = <0x0 0xfd410000>; > mbi-ranges = <296 24>; > msi-controller; > + ranges; > + #address-cells = <2>; > + #size-cells = <2>; > dma-noncoherent; > + > + its: msi-controller@fd440000 { > + compatible = "arm,gic-v3-its"; > + reg = <0x0 0xfd440000 0 0x20000>; > + dma-noncoherent; > + msi-controller; > + #msi-cells = <1>; > + }; > }; > > usb_host0_ehci: usb@fd800000 { You can merge this patch with the previous one. Marking the GIC non-coherent is pointless if no ITS is available, because there is no point in allocating memory for them. Thanks, M. -- Without deviation from the norm, progress is not possible. _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip