Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp358266pxb; Tue, 15 Feb 2022 15:19:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxU0sty5aDtnUgKJ4xzJ4JSobsjkOZsI5FHhNmQgJ6zvM4jENvgLviFcg0dlnk8hzuHxNF1 X-Received: by 2002:a17:902:7b93:: with SMTP id w19mr1137533pll.75.1644967168460; Tue, 15 Feb 2022 15:19:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644967168; cv=none; d=google.com; s=arc-20160816; b=ktqRlhFHQ5z9JJH9Zjjub98HDTWexKcxKQGADGmBoXZztByavagrjXoZm3FCCrwK66 yx66kxEz0PhhcVl+RwDrCzyMx1xoqz5AKDFQfdKlTEX6MT1xLK8jzHdeJ1vhwNP28fZI xHpDxcbrVPH3iNDTMuzO2laic2UUQqUoQK3fRJ844RDVbO2uBuuyqtvhwl9N833mP/8G Ymf+PlUUJXEt7JCnODmNJ3j0S++RAqnn5D4DoxYAhaDnuXMK4o1vr1llYB5umMpNeF7K FbvWNMPiVBTlPL4HMQ2fgE/5z1wVdTM4v2j/nC09QwVkFYVCAohHxYiLgoBcVcufwSJ6 UPgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BR4D+hjUIskCY8Md9XUYPrMPYdemIRpfn7ViphRKqsQ=; b=deq7k86enGo3qslqRnf7Sc6Zj8F2dDTZil5lLq02D1QLGGSsUgHU54dmJFRl0Sul9w Yto+rdPWdlkscetkK/jTgM306DS3oin2Uhg0VknX97irG4c1jEv3Qaav34BiG9Bi2946 HL7LUjagHFGq/LiorpwFu4fJIZjAfMwHQeLglLCFiRVQIdaY7sGPyvthe23J/jDjWcH9 qklc9XAyvtOO5/MqktfF4nH6K68tPJMXHlaiW5V+gTiH7TqVriQPhbSyV3Uhrxw5cM5m IYlc28vl7AM/EglqS1DaTknYRDio0/c3vz7SMObI5Ah4BFRO3fwiMhqs0fC2thOZ7jKk 4mgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bHdohnU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o18si16413374pll.372.2022.02.15.15.19.11; Tue, 15 Feb 2022 15:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bHdohnU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244037AbiBOUKg (ORCPT + 99 others); Tue, 15 Feb 2022 15:10:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244026AbiBOUKc (ORCPT ); Tue, 15 Feb 2022 15:10:32 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BD779BB8D; Tue, 15 Feb 2022 12:10:22 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21FKA9AG018344; Tue, 15 Feb 2022 14:10:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644955809; bh=BR4D+hjUIskCY8Md9XUYPrMPYdemIRpfn7ViphRKqsQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bHdohnU4bVQqWcJcQbHxYqn6gTb0L6uBCQVqKYTtZRZngUHbcvv2PrHySopV1WYOx iZ/0zBCcWoUiTIiLUpmuhuFe9kLWCleMpe14KrtcheA4r22GXZtGRpWYt4Rev7VANR j6vqjvjjMuzUxlo6Z8vcj5EAuof1VHuDUPVOHEqU= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21FKA9tb042430 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Feb 2022 14:10:09 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 15 Feb 2022 14:10:09 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 15 Feb 2022 14:10:09 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21FKA9Sg114680; Tue, 15 Feb 2022 14:10:09 -0600 From: Nishanth Menon To: Tero Kristo , Vignesh Raghavendra , Marc Zyngier CC: , , , Krzysztof Kozlowski , Rob Herring , Nishanth Menon , Subject: [PATCH 4/5] arm64: dts: ti: k3-am64: Fix gic-v3 compatible regs Date: Tue, 15 Feb 2022 14:10:07 -0600 Message-ID: <20220215201008.15235-5-nm@ti.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220215201008.15235-1-nm@ti.com> References: <20220215201008.15235-1-nm@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Though GIC ARE option is disabled for no GIC-v2 compatibility, Cortex-A53 is free to implement the CPU interface as long as it communicates with the GIC using the stream protocol. This requires that the SoC integration mark out the PERIPHBASE[1] as reserved area within the SoC. See longer discussion in [2] for further information. Update the GIC register map to indicate offsets from PERIPHBASE based on [3]. Without doing this, systems like kvm will not function with gic-v2 emulation. [1] https://developer.arm.com/documentation/ddi0500/e/system-control/aarch64-register-descriptions/configuration-base-address-register--el1 [2] https://lore.kernel.org/all/87k0e0tirw.wl-maz@kernel.org/ [3] https://developer.arm.com/documentation/ddi0500/e/generic-interrupt-controller-cpu-interface/gic-programmers-model/memory-map Fixes: 8abae9389bdb ("arm64: dts: ti: Add support for AM642 SoC") Cc: stable@vger.kernel.org Reported-by: Marc Zyngier Signed-off-by: Nishanth Menon --- Testing: based on next-20220215 AM64xx-sk: https://gist.github.com/nmenon/75d413e53005fabc4bde8a4efe227594 arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 5 ++++- arch/arm64/boot/dts/ti/k3-am64.dtsi | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 0c9f3bce8418..f64b368c6c37 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -59,7 +59,10 @@ gic500: interrupt-controller@1800000 { #interrupt-cells = <3>; interrupt-controller; reg = <0x00 0x01800000 0x00 0x10000>, /* GICD */ - <0x00 0x01840000 0x00 0xC0000>; /* GICR */ + <0x00 0x01840000 0x00 0xC0000>, /* GICR */ + <0x01 0x00000000 0x00 0x2000>, /* GICC */ + <0x01 0x00010000 0x00 0x1000>, /* GICH */ + <0x01 0x00020000 0x00 0x2000>; /* GICV */ /* * vcpumntirq: * virtual CPU interface maintenance interrupt diff --git a/arch/arm64/boot/dts/ti/k3-am64.dtsi b/arch/arm64/boot/dts/ti/k3-am64.dtsi index 84bd07cd1824..e88349846871 100644 --- a/arch/arm64/boot/dts/ti/k3-am64.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64.dtsi @@ -89,6 +89,7 @@ cbass_main: bus@f4000 { <0x00 0x68000000 0x00 0x68000000 0x00 0x08000000>, /* PCIe DAT0 */ <0x00 0x70000000 0x00 0x70000000 0x00 0x00200000>, /* OC SRAM */ <0x00 0x78000000 0x00 0x78000000 0x00 0x00800000>, /* Main R5FSS */ + <0x01 0x00000000 0x01 0x00000000 0x00 0x00310000>, /* A53 PERIPHBASE */ <0x06 0x00000000 0x06 0x00000000 0x01 0x00000000>, /* PCIe DAT1 */ <0x05 0x00000000 0x05 0x00000000 0x01 0x00000000>, /* FSS0 DAT3 */ -- 2.31.1