From patchwork Thu Apr 10 10:07:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Bruel X-Patchwork-Id: 14046395 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 E0577C3601E for ; Thu, 10 Apr 2025 11:18:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=M4fDmZRN7yquUeZo8bSMP2LmovWfrpFiqUhwN/ePUVc=; b=jKVSBaR5gowLMRwiIp3tZLF0Zp w31ELQ8Ky3vO4+FMdpRmE4ZsmcIw8X1Y1EuAS6U/p2lbBee0Eq3CLj4eZMxmvbA/iyJqATU1RI4fI Pl24hQkiB15BpsMAyyAdr8CB/vO3VSt8FEqdV8EmoX29ZfF2qLyLqrZib4QK1IrEYqZsV/WgMfr+k M5j0qCNsCnTL/OA7e1HarzcI3Un9seIN67FLH0+t6ntMB4bXTpznM47GZyt/N4tkx6nwhRMkMtGAq EZeDSsgjFSwgLm+NdGR738LCaQouD9TcnEkVvGM5dh3tXTrEpVfiEecMVgdHLFxl3wdqeEW6zVZO/ bR2E5+FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2pvd-0000000AFdu-2U1r; Thu, 10 Apr 2025 11:18:41 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2or0-0000000A2yj-1Otq for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2025 10:09:51 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53A9VdUO019218; Thu, 10 Apr 2025 12:09:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=M4fDmZRN7yquUeZo8bSMP2 LmovWfrpFiqUhwN/ePUVc=; b=Rw36P3kNlirCU28Pm6pzZAWogbk44Rv/+DqRGt aYCfjH0IuScHFPkASc3gYpUQBn5Yxbi1GLOuoZqHJ/ZiacCoN3UccSbN+C78ebnB tO1SySX1YvYUwdaqciJvufCIJ6nFofrMRlQUgXB/nSjZRrBfp0RU+o5pgTB37S+x Nx4BrzHLj5uCjrjiWzVK16a8cOEMVsJTkjPEuJaVm54oW1rW8m028J6kf6WnbfwY AyjPurNxsyqF9peYOtZAfW5ZYxZmks3gIN6/q8XcqMg7AJoVaGLPhSSY6ds62rfe Uluzz5sRmE3QvmURzLNITYYKO/aw2thxJsh4qkCysJKWWY1g== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 45tw6eq0y2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 12:09:42 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 9298840045; Thu, 10 Apr 2025 12:08:50 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 368899BC031; Thu, 10 Apr 2025 12:08:14 +0200 (CEST) Received: from localhost (10.130.77.120) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 10 Apr 2025 12:08:13 +0200 From: Christian Bruel To: , , , , CC: , , , , , Christian Bruel Subject: [PATCH v1 1/2] arm64: dts: st: Adjust interrupt-controller for aarch64 Date: Thu, 10 Apr 2025 12:07:57 +0200 Message-ID: <20250410100758.1057170-1-christian.bruel@foss.st.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.130.77.120] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-10_01,2025-04-08_04,2024-11-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250410_030950_655003_1897B15F X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use gic-400 compatible and remove address-cells = <1>. Fixes: 5d30d03aaf785 ("arm64: dts: st: introduce stm32mp25 SoCs family") Signed-off-by: Christian Bruel --- arch/arm64/boot/dts/st/stm32mp251.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index f3c6cdfd7008..379e290313dc 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -115,9 +115,8 @@ scmi_vdda18adc: regulator@7 { }; intc: interrupt-controller@4ac00000 { - compatible = "arm,cortex-a7-gic"; + compatible = "arm,gic-400"; #interrupt-cells = <3>; - #address-cells = <1>; interrupt-controller; reg = <0x0 0x4ac10000 0x0 0x1000>, <0x0 0x4ac20000 0x0 0x2000>, From patchwork Thu Apr 10 10:07:58 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Bruel X-Patchwork-Id: 14046396 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 95731C3601E for ; Thu, 10 Apr 2025 11:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sMgLHhcvDmNSAlUbxNmHnAElslMGmB4NTmJSnYTseDM=; b=fAKT6yO2g+WDdeUbX1nmrAIM4Q T0bkELLh59dbGkIaD/Nun9Qiyt4ThrCcjWO9oK3tEB63DFpNGI8+zQfpYd7mQuWpNIbw7EBwQGDNO ZQNE98apQP8r7VbgVesZkVGfALUsTwAx/A3oeLBwuVfBFOZkEtUtxWOm6Zww33j+i9e5tCfv+f1yo ApCEReT/UEuc0xxlSivIwT7hvgYeNxECskS4Oj5jChTSoG80s04OZISc/OGdPxyoADgRDX1EvFGyC mjPAlkFHKgKyWRt8wlhxkShPBisxEn6/qlBHzb2Vf9oQP0w2bioYqOnPidM5EaYgihkGPoAKNMfpq rJ4o/6uA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2pvh-0000000AFiW-46wg; Thu, 10 Apr 2025 11:18:46 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2or5-0000000A307-0U2p for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2025 10:09:57 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 53A9VcmO026175; Thu, 10 Apr 2025 12:09:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= sMgLHhcvDmNSAlUbxNmHnAElslMGmB4NTmJSnYTseDM=; b=l1NPcm49QgyMDRnD Urf7P2fHyxrmcHQIumQVNtRglqRTixeKCgSMJC6RqUIniDx+P3QjniF+8CQ8TBeU XwEUlSWDlZ63+XoGvp6vk8pelnY3y8ptnv1fom3GO4GUJz/EijIprveScipabev8 uW6DIdin/BjGznkxGxpmgJJFl7HUcPKLH7OiSPmyiq6N2fbAynhK+e4wYmx3gVhi op05N1zwKTszNx89mNzkFkfbin9Wk52dNVFgnS00ACRNtR5nkU7ZvOKIMhJLTozI XUojyzWuiYz0fclNB9/RYl7euETTvUCJFYTo0Ql8KtFaqSjduvMdEn1zqpnaYAv0 yelNvw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 45tw2h74mr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Apr 2025 12:09:49 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 9250E40046; Thu, 10 Apr 2025 12:08:59 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9E4BE9BCED8; Thu, 10 Apr 2025 12:08:21 +0200 (CEST) Received: from localhost (10.130.77.120) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 10 Apr 2025 12:08:21 +0200 From: Christian Bruel To: , , , , CC: , , , , , Christian Bruel Subject: [PATCH v1 2/2] arm64: dts: st: Use 128kB size or aliased GIC400 register access Date: Thu, 10 Apr 2025 12:07:58 +0200 Message-ID: <20250410100758.1057170-2-christian.bruel@foss.st.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250410100758.1057170-1-christian.bruel@foss.st.com> References: <20250410100758.1057170-1-christian.bruel@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.130.77.120] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-04-10_01,2025-04-08_04,2024-11-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250410_030955_732194_0C938989 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adjust the size of 8kB GIC regions to 128kB so that each 4kB is mapped 16 times over a 64kB region. The offset is then adjusted in the irq-gic driver. see commit 12e14066f4835 ("irqchip/GIC: Add workaround for aliased GIC400") Fixes: 5d30d03aaf785 ("arm64: dts: st: introduce stm32mp25 SoCs family") Signed-off-by: Christian Bruel Suggested-by: Marc Zyngier Acked-by: Marc Zyngier --- v1: Fixed patch comment. arch/arm64/boot/dts/st/stm32mp251.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 379e290313dc..87110f91e489 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -119,9 +119,9 @@ intc: interrupt-controller@4ac00000 { #interrupt-cells = <3>; interrupt-controller; reg = <0x0 0x4ac10000 0x0 0x1000>, - <0x0 0x4ac20000 0x0 0x2000>, - <0x0 0x4ac40000 0x0 0x2000>, - <0x0 0x4ac60000 0x0 0x2000>; + <0x0 0x4ac20000 0x0 0x20000>, + <0x0 0x4ac40000 0x0 0x20000>, + <0x0 0x4ac60000 0x0 0x20000>; }; psci {