Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4100765rwe; Mon, 17 Apr 2023 08:01:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bylJxdTwr2JXCdbCQyq0FX5xluaM0xeX0RQUbHpcvyF0cQY0QMViUeKSB5YecyoPXYfiBc X-Received: by 2002:a05:6a20:1583:b0:f0:558b:8fbb with SMTP id h3-20020a056a20158300b000f0558b8fbbmr1270499pzj.34.1681743674847; Mon, 17 Apr 2023 08:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681743674; cv=none; d=google.com; s=arc-20160816; b=TYIMGr3Nb3A1xcDZL+UFdUNvQOQXupz8IOMrUBFs6uTaLm4A2QcJaoJ50rE+MY1phm o9bjD0LPk1ukNbo8o3tKDOElLs0QAax5H5RSDgdbtv7Co2sz/rN38SJ6KJ3jOXjX6O6T sUk0ujSKSgyQfXHXEl8SHqmXi96FNCpOUzoZKlqja2Ew3MK2OCFBdaz6shqYS9jaa/p2 75ZNIJ3D3JD2LHH4/BJvrJdXCfCDNoAWnj7YYzsn2p/YtRKiWudEirwGpWsg8oCVjt/i YuklINbUCZN46cyw7CQTRbcgYGyB1H349BM4v7dAW2UtnFI1GmJuqQdU96F43LxhEiU2 gQjQ== 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=t8XtrClBRCLZwOQi4bPTke30ZCC6NkRaEeGm7v5btRU=; b=sdbpEnjSZia1g6EWEw+RHGf6efPg9lsl/nY+7PUuIFI6sCPSJiXXQz4lkcGsA4IiRk 4B/1XepxG68SJhKDrTNTa/FvQKe32DX7RO+II3sr324yPuQ3lskmEoKd15HCzbnO6Mwa fc/0JFxIfBGKqAtPVOpM6qyVNA7QbHoYOPQ+vXBuoSVNVA+dZEHUd/p+5ifNQvpaj9nv 2KDwHy0DK6/MITrW97XPRZbJbduo3QV1IisMDTBA9EqSdNXOyN16wYJE9sTzx5SGgWdc 0WjeZ4+JqhDiYcU8BDBYciwwb3JFTrnJ9z3J78Xifvk5ThGxmRueiOlP7I/G29vxojOR Q/Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ONSf76mj; 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=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z66-20020a626545000000b0063a6dbeaa56si11443624pfb.60.2023.04.17.08.01.01; Mon, 17 Apr 2023 08:01:14 -0700 (PDT) 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=@collabora.com header.s=mail header.b=ONSf76mj; 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=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbjDQPAz (ORCPT + 99 others); Mon, 17 Apr 2023 11:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjDQPAx (ORCPT ); Mon, 17 Apr 2023 11:00:53 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 679184222; Mon, 17 Apr 2023 08:00:43 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-191-155.ewe-ip-backbone.de [91.248.191.155]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id A4DB06603223; Mon, 17 Apr 2023 16:00:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681743641; bh=uM3PWO3IQObscBohW7QPL9pguhEFNiexqSSj/2QsykE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ONSf76mjLn0RMj50BOw6eqXwnjJms8Pgk1OcxbjaNuQvOai9JcudMN+9bTGf04gk4 dq3Xz7oTHmGWq0D1dIt8ToEnJ3cX2QhAnQDXGIU6YcPNfkuyta6buZEiI11jrJW+hO WhgwqLi/ZWI4ec9R4aWc0rtTHOHRgavit3148PyeobgJ5UotqoO9l3LzhzX0sfKaUm rsmtXoJ4wlzS0g4skHGX0LvBCIrg+d9pwuVN8UasSwKlM9pARTYXcVinWtGnPNblxM 77jd3njA9Uzj14yaW9bCtB7/4wyyvIgsTXaSNc1nsiVNvHy/YUZXy26lI8+gmMPbhi ecLIocrr26jXg== Received: by jupiter.universe (Postfix, from userid 1000) id DC9334807EF; Mon, 17 Apr 2023 17:00:38 +0200 (CEST) From: Sebastian Reichel To: Marc Zyngier , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Thomas Gleixner , Peng Fan , Robin Murphy , Peter Geis , XiaoDong Huang , Kever Yang , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v2 2/2] arm64: dts: rockchip: rk3588: add MSI support Date: Mon, 17 Apr 2023 17:00:38 +0200 Message-Id: <20230417150038.51698-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417150038.51698-1-sebastian.reichel@collabora.com> References: <20230417150038.51698-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Add the two Interrupt Translation Service (ITS) IPs that are part of the GIC-600, which are required for message signalled interrupts (MSI). This is required for PCIe, which fully relies on MSI for interrupts. Enabling the ITS nodes requires an operating system, that has a workaround for Rockchip errata #3588001 (GIC600 can not support shareable attribute). Co-developed-by: Kever Yang Signed-off-by: Kever Yang Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 2124c654f665..62204b96b0b4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -1741,7 +1741,24 @@ gic: interrupt-controller@fe600000 { mbi-alias = <0x0 0xfe610000>; mbi-ranges = <424 56>; msi-controller; + ranges; + #address-cells = <2>; #interrupt-cells = <4>; + #size-cells = <2>; + + its0: msi-controller@fe640000 { + compatible = "arm,gic-v3-its"; + msi-controller; + #msi-cells = <1>; + reg = <0x0 0xfe640000 0x0 0x20000>; + }; + + its1: msi-controller@fe660000 { + compatible = "arm,gic-v3-its"; + msi-controller; + #msi-cells = <1>; + reg = <0x0 0xfe660000 0x0 0x20000>; + }; ppi-partitions { ppi_partition0: interrupt-partition-0 { -- 2.39.2