Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp618630rwd; Wed, 14 Jun 2023 22:51:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+na3AWceIBTRwHjCf2LjwdBG6mijFcfLZyiDHa3bW8ocYQdSWMn1jpRsGaxdn+g1UBHb9 X-Received: by 2002:a17:907:6e1a:b0:974:5d6e:7941 with SMTP id sd26-20020a1709076e1a00b009745d6e7941mr16507029ejc.6.1686808319592; Wed, 14 Jun 2023 22:51:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686808319; cv=none; d=google.com; s=arc-20160816; b=ZxJUQ/3wXvsOy0Rp7dkW8sTQF/Nb6D6t/NEtTd+ne+M3Hk3GEaOPmF74pIV2SMUShC dVVWz957yxqpPhHECLjVJi+M60yT7UbfjdGPxhs5Ro5M49T2M6o4qvStiY/SLHfysIUt vYxQD5Yc/SX5FIIoWQ5MANRA2ls1Eo5ZFPrfyFoATuCg0HrhmuF7clhWm7t1qBaz2lUa rb6JhbbEY2eFcyEtmRSvW74+BG+xzIWWNlFZ33rb2m+fdz5i9ZmNdmpTYgCuFNJ/32g2 KaaqQh94ZVQCFeKWN6zMKVKecHimGAqix+6Lgd8s9lW8bW2olncsZ4h0dYFqVfze7V7O jVgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9vDiV6UeFt2Sno0zSEPfAoE+c0aIDiDuPDDc3lI/OiI=; b=NYPUjue8zW56SAcnST4LPPqs+pNgBFQxBzCtC758t02N+/svI7+nIuw+vnoKERRe4b LAQJUQ54wUgXRde0zILc1OMpFh8uuKI1a+tzovXRIcS50dSjqwWC2V4RsT1o8kUp/4IK vM+t5rI58JOc+y9uVpE1zkaemMTaEdP1vKrYrbJ4YBSLVjv6ZGI55AH7xzBQA494xeDt 15UKuZI/kxmzGtbYsIEC3HUcbTSJWTWSlcZAGrE6mBMYNHgFaCeWd1xQ9IqqE9JyBmGJ Q/xnyRFS7exC2cCHmnxrvbH7NxNiTOHdwmyrp7/Oh0B7C2myCTu750F9GuDFWCAEva5A iOEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=NnXGhiSI; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f23-20020a1709067f9700b00974e759d534si8776743ejr.548.2023.06.14.22.51.34; Wed, 14 Jun 2023 22:51:59 -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=@ventanamicro.com header.s=google header.b=NnXGhiSI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbjFOFrh (ORCPT + 99 others); Thu, 15 Jun 2023 01:47:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjFOFrb (ORCPT ); Thu, 15 Jun 2023 01:47:31 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 209A510E9 for ; Wed, 14 Jun 2023 22:47:30 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-5700e993f37so6876477b3.0 for ; Wed, 14 Jun 2023 22:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1686808049; x=1689400049; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9vDiV6UeFt2Sno0zSEPfAoE+c0aIDiDuPDDc3lI/OiI=; b=NnXGhiSIhqovytwTJdiQfnf5eovw73VQ87w+m9529YHgbOMhDe7l4LCL5NtOB6593B o90sc0F6F9c09Iv0yyo0gUhUtyFvhyXuclonV56OHBilEhgzNLnNA+mQBnM5tEm08uX1 E+B3T2gkNTeMf5GZ4CeYbmNSoiMrxj8FjlDU4jDDz3/8wzn5i6yXoUy/FOoMQHKwWlFQ lMlEbhsKnb88uhsz/UH/OEAnb4OKRp1J6+phEMcdLTzi6PJNQm+XYWetoWUHArEEdu2p S8sVkzseIZByhGC+iZEq3fFyIlChqUaRGD9VkoATiH9Z8PQiOVakQk4O8KHlEYkLk6OX J+BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686808049; x=1689400049; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9vDiV6UeFt2Sno0zSEPfAoE+c0aIDiDuPDDc3lI/OiI=; b=XXUgnXY1mmrBuvHEsvLbU9p8gWaAA63iNd0a1blgezrcKR6OzqocfCwlRhcUgpRsll kFrZd5m7TFfwJGNOKQOiHw6cIOBELQCeAT9mizriVqJXIyFqUqdbAt36luLwX7N7gUBJ yfKmOfDtZ+yKuMpHRQr8uvER+rJn/BGvL3M9zrdozjnb7PZ5HguPLTqn6KRo486xiiNM vCMu77G6UGBaZzDKv6OieuHOzGpmjRiKDKU8ua9x0K7o6p2ZZW8L4jPxjm0p6qLdxNyo a1AoTzJaFh8myIA72I7L5CamoVYt8MwTwc0mSlwO28WNz3e/3/KS7Bv78kBGtm4awEc0 cf/Q== X-Gm-Message-State: AC+VfDxu1UMEovzM931ubH2tcnn9vUoEx1FscV5L2uSZIrcCkpzdfFo1 YhIjZF7gGtis6bz9B7L1rXWR7fPG4MLP+2CFIpUQcQ== X-Received: by 2002:a0d:ea51:0:b0:570:2a0:6c18 with SMTP id t78-20020a0dea51000000b0057002a06c18mr4459993ywe.2.1686808049229; Wed, 14 Jun 2023 22:47:29 -0700 (PDT) MIME-Version: 1.0 References: <20230613153415.350528-1-apatel@ventanamicro.com> <20230613153415.350528-8-apatel@ventanamicro.com> <20230614-devotee-repave-37d670dbfb7c@spud> In-Reply-To: <20230614-devotee-repave-37d670dbfb7c@spud> From: Anup Patel Date: Thu, 15 Jun 2023 11:17:16 +0530 Message-ID: Subject: Re: [PATCH v4 07/10] dt-bindings: interrupt-controller: Add RISC-V advanced PLIC To: Conor Dooley Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Robin Murphy , Joerg Roedel , Will Deacon , Frank Rowand , Atish Patra , Andrew Jones , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, iommu@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Thu, Jun 15, 2023 at 12:57=E2=80=AFAM Conor Dooley wr= ote: > > Hey Anup, > > Mostly looks good, once minor comment. > > On Tue, Jun 13, 2023 at 09:04:12PM +0530, Anup Patel wrote: > > > + riscv,children: > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + minItems: 1 > > + maxItems: 1024 > > + items: > > + maxItems: 1 > > + description: > > + A list of child APLIC domains for the given APLIC domain. Each c= hild > > + APLIC domain is assigned a child index in increasing order, with= the > > + first child APLIC domain assigned child index 0. The APLIC domai= n child > > + index is used by firmware to delegate interrupts from the given = APLIC > > + domain to a particular child APLIC domain. > > + > > + riscv,delegation: > > + $ref: /schemas/types.yaml#/definitions/phandle-array > > + minItems: 1 > > + maxItems: 1024 > > + items: > > + items: > > + - description: child APLIC domain phandle > > + - description: first interrupt number of the parent APLIC doma= in (inclusive) > > + - description: last interrupt number of the parent APLIC domai= n (inclusive) > > + description: > > + A interrupt delegation list where each entry is a triple consist= ing > > + of child APLIC domain phandle, first interrupt number of the par= ent > > + APLIC domain, and last interrupt number of the parent APLIC doma= in. > > + Firmware must configure interrupt delegation registers based on > > + interrupt delegation list. > > + > > +required: > > + - compatible > > + - reg > > + - interrupt-controller > > + - "#interrupt-cells" > > + - riscv,num-sources > > + > > +anyOf: > > + - required: > > + - interrupts-extended > > + - required: > > + - msi-parent > > Not sure if you missed this from the last version, but I asked if we > needed a > dependencies: > riscv,delegate: [ riscv,children ] > > IOW, I don't think it is valid to have a delegation without having > children? Ahh, yes. I missed this one. I will update in the next revision. > > Otherwise, > Reviewed-by: Conor Dooley > > Cheers, > Conor. Regards, Anup