Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5488688rwb; Mon, 14 Nov 2022 05:32:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6SlDpeRfoS2Ju4RJTNawGvyPrl9QFrgMG9EsRl9WVbyedMn/4P/PRKmUPSLisjhtnR4Yfu X-Received: by 2002:a17:902:e352:b0:17f:70c0:dc48 with SMTP id p18-20020a170902e35200b0017f70c0dc48mr13405924plc.79.1668432725089; Mon, 14 Nov 2022 05:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668432725; cv=none; d=google.com; s=arc-20160816; b=ccFdcJ7XPsdSkPl9GlK25DFc6EDFvULCycqlgDQm02/ESJzN40uah63uFUKH1x59C7 DXTuJSbtwChL170oazL3d0xq4eF808TgeokK8gocGwBE1MVEaSzvQLdqTYZDg/HgyspI syT4cZ3CnUPlAdAy4oeNd22o42QE0OVaX9ql1wUVR138v9nZsrxrYf3/cfQxEjrw7VBD B7ZvgvFX7RtXSoVDWhNwYiL2AlmbzzJhV6VMCA0SakJFFhANSrPd4UoZH/0uClcQ8UbK GvitfVA49EwKODv5jRsl9jS+kwIkebNcuS7euZKxYWikVsHhNf7bqBYqCTSTmboXmTCL eD7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=57QLI4g/n/eMakE9MSdyddq11+TuB1nNc3EBpW1aSvE=; b=HC0ZXaCqnda/vjUmgvkOI1ynXPx4bw+r6gd7MxUce5DnaVldI52k2hLdPeW5Yyz3lV pseZ9GflgMDs1E2ljF/514CX0+G8LVzlgbYE9Ug01hBEeinnKsroX30s2SeULm/WTfjW Ph4Xrgu1HW9bJDZs6bxs7ok5eCb7pSfwSfAhQTtkV9f4bIdEpBKfXY30xKu27a9chX/g ICjAUlkp1WGxrWcaNk6BBMJcg1UKREsch6bvsidUAuMyx/cGtpfknpbhjdfqI3S3uz2G EMCDCsQAXZeGrQtDe40INntXGEawMHBG7xl0c55NaCcI2B8RIJB3LwQJFVpjm2f6cdJn 3z7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=DXVZph+Y; 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=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902b28500b0017865059c4bsi9236832plr.401.2022.11.14.05.31.52; Mon, 14 Nov 2022 05:32:05 -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=@microchip.com header.s=mchp header.b=DXVZph+Y; 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=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236897AbiKNMOm (ORCPT + 88 others); Mon, 14 Nov 2022 07:14:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230290AbiKNMOl (ORCPT ); Mon, 14 Nov 2022 07:14:41 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 309151AF2F; Mon, 14 Nov 2022 04:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1668428081; x=1699964081; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=5x8kfOIpOogLr2BemNcIjIgxcyOCSCKqrEm0zBjiMTQ=; b=DXVZph+Yi5+GO915662RPN/Ze9q6HXEJ+fAN5ODiyOeF538wBYeEyloT 9dxF1SCr0HLdQP1nbZp6gUWsD1O1aj6NCjDhYn1xkKOg9+UpY2RqbrUFk XfnZ6TY0revWTqt+la6NAjrUHnWf/1v8R2L262R6QDwQTLl9OuNk71B3u xXHr3dG6isU1qkiPfEp1/rB9F61HtrBZvpOT5WZrPdtipOmxeGC0tufR5 E5rQgVWjHWgG2hdNtyc/6NgSQHoEilq0yCkPNkWCtUZ/2ROV6wUyNsgHi q17gcPlO24/jEdXrTUZsUlnnjdDuV+pAIW05pPdV/6k6MG96A/gA9loZR w==; X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="188868366" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Nov 2022 05:14:40 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Mon, 14 Nov 2022 05:14:38 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Mon, 14 Nov 2022 05:14:36 -0700 Date: Mon, 14 Nov 2022 12:14:19 +0000 From: Conor Dooley To: Anup Patel CC: Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Atish Patra , Alistair Francis , Anup Patel , , , Subject: Re: [PATCH 4/9] dt-bindings: Add RISC-V incoming MSI controller bindings Message-ID: References: <20221111044207.1478350-1-apatel@ventanamicro.com> <20221111044207.1478350-5-apatel@ventanamicro.com> <9be58cb4-4ee8-a6e0-7a0a-f2f581e394d3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 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_PASS,SPF_PASS 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 On Mon, Nov 14, 2022 at 05:36:06PM +0530, Anup Patel wrote: > On Mon, Nov 14, 2022 at 3:19 PM Krzysztof Kozlowski > wrote: > > > > On 11/11/2022 05:42, Anup Patel wrote: > > > We add DT bindings document for RISC-V incoming MSI controller (IMSIC) > > > defined by the RISC-V advanced interrupt architecture (AIA) specification. > > > > > > Signed-off-by: Anup Patel > > > --- > > > .../interrupt-controller/riscv,imsic.yaml | 174 ++++++++++++++++++ > > > 1 file changed, 174 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/riscv,imsic.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/riscv,imsic.yaml b/Documentation/devicetree/bindings/interrupt-controller/riscv,imsic.yaml > > > new file mode 100644 > > > index 000000000000..05106eb1955e > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/interrupt-controller/riscv,imsic.yaml > > > @@ -0,0 +1,174 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/interrupt-controller/riscv,imsic.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: RISC-V Incoming MSI Controller (IMSIC) > > > + > > > +maintainers: > > > + - Anup Patel > > > + > > > +description: > > > + The RISC-V advanced interrupt architecture (AIA) defines a per-CPU incoming > > > + MSI controller (IMSIC) for handling MSIs in a RISC-V platform. The RISC-V > > > + AIA specification can be found at https://github.com/riscv/riscv-aia. > > > + > > > + The IMSIC is a per-CPU (or per-HART) device with separate interrupt file > > > + for each privilege level (machine or supervisor). The configuration of > > > + a IMSIC interrupt file is done using AIA CSRs and it also has a 4KB MMIO > > > + space to receive MSIs from devices. Each IMSIC interrupt file supports a > > > + fixed number of interrupt identities (to distinguish MSIs from devices) > > > + which is same for given privilege level across CPUs (or HARTs). > > > + > > > + The arrangement of IMSIC interrupt files in MMIO space of a RISC-V platform > > > + follows a particular scheme defined by the RISC-V AIA specification. A IMSIC > > > + group is a set of IMSIC interrupt files co-located in MMIO space and we can > > > + have multiple IMSIC groups (i.e. clusters, sockets, chiplets, etc) in a > > > + RISC-V platform. The MSI target address of a IMSIC interrupt file at given > > > + privilege level (machine or supervisor) encodes group index, HART index, > > > + and guest index (shown below). > > > + > > > + XLEN-1 >=24 12 0 > > > + | | | | > > > + ------------------------------------------------------------- > > > + |xxxxxx|Group Index|xxxxxxxxxxx|HART Index|Guest Index| 0 | > > > + ------------------------------------------------------------- > > > + > > > + The device tree of a RISC-V platform will have one IMSIC device tree node > > > + for each privilege level (machine or supervisor) which collectively describe > > > + IMSIC interrupt files at that privilege level across CPUs (or HARTs). > > > + > > > +allOf: > > > + - $ref: /schemas/interrupt-controller.yaml# > > > + > > > +properties: > > > + compatible: > > > + items: > > > + - enum: > > > + - vendor,chip-imsics > > > > There is no such vendor... As Conor pointed out, this does not look > > correct. Compatibles must be real and specific. > > Previously, Rob had suggest to: > 1) Mandate two compatible strings: one for implementation and > and second for specification > 2) Since this is new specification with QEMU being the only > implementation, we add "vendor,chip-imsics" as dummy > implementation specific string for DT schema checkers > to pass the examples. Once we have an actual implementation, > we will replace this dummy string. > > Refer, https://www.spinics.net/lists/devicetree/msg442720.html AFAIU, and are wildcards and do not have the same meaning as vendor & chip. That's going off of the dt submitting patches doc though and I don't know if the tooling supports this.