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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3CB8C4332F for ; Tue, 23 Nov 2021 11:35:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236169AbhKWLjB (ORCPT ); Tue, 23 Nov 2021 06:39:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236175AbhKWLjA (ORCPT ); Tue, 23 Nov 2021 06:39:00 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92D9C061746 for ; Tue, 23 Nov 2021 03:35:51 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso1946362wml.1 for ; Tue, 23 Nov 2021 03:35:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eAAW0gxyL3spMyvFzNZU55TiEHcEGOqrLOJJuSa53K4=; b=4DcfipfNqoq+i8lFBnrntKi3GtNw6X6goztOuq6ZWKhQSuytROlnv18WHcqZhYeh7c GVU/3OFgl1BHcS7c/eSK80Hd36UAWzHFaJQ7HvRGjxLRLvpehVgy/qTdPSxdV6jRIKiv KUBmhXNq4YZ4w4kuOliUyM4YnBMkn32OaZgo2ZnT5yRTOGg+SKtgVsnOrk+YNVJYy4lD 7TEDEgB7kTo/0ZPFJUO/BGCiAWb/fgXgFHc2FALVFLl/gTQYgATMGes7lqe/uUECmQQU R5HUDVzCCKPG4/3yDD7kX7/tYF3JE3XCuXq1TzyesuDP+b2eYPrk/jOyI/1Nqgi6l4DO DWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eAAW0gxyL3spMyvFzNZU55TiEHcEGOqrLOJJuSa53K4=; b=LNLecT9dQN+u+xHjoTPL7z06tAHA3yG6RH7xkX2Z5H4o1ERZi7FmZOuxIVDhhr2NVl b8F9HQZu8iWdVwVKISxWWJXUoyoIVMIP5c3ctAl7Hq2RN25FHgGPp0w2w32LrTBgn0ov XJCPmuzTIEiAuhGYIuB7fbysu7a4L5Ygt38sc2KapF9zb67C/E+aRMsMUn4nsxtLJFdt slosAMTRUu4BEXKUX4F/fEHcBs5bruMKc/erm4zNff/PC1MtdVu15aGDz4pAjxk6iiLv 6/tDDYEh99ul1B706x/ZjW9II6WWyZXi5D9prl/Y0q4/bKdEaNsykkmIg4JvoLn2niAL Mocw== X-Gm-Message-State: AOAM531Xi4tQfgJRTIwnOQ/gBQbLuI5jF1xAxtBCouystmZw1AKolIDP HXhJtO2hALw0eKkBBeO1s8NPrrAlDcSTSSdKHUvzJA== X-Google-Smtp-Source: ABdhPJyDTgRgvUuV98CyCHfOL5hAURr2qDU4kKqY5aPJ10aLAJMLU+4E45XfCOWPhiTSevTsW28+O1m1n9x86/UMTho= X-Received: by 2002:a7b:c017:: with SMTP id c23mr2193327wmb.137.1637667350407; Tue, 23 Nov 2021 03:35:50 -0800 (PST) MIME-Version: 1.0 References: <20211108150554.4457-1-conor.dooley@microchip.com> <20211108150554.4457-2-conor.dooley@microchip.com> <272946671.hFph3VMliC@diego> In-Reply-To: <272946671.hFph3VMliC@diego> From: Anup Patel Date: Tue, 23 Nov 2021 17:05:38 +0530 Message-ID: Subject: Re: [PATCH 01/13] dt-bindings: interrupt-controller: create a header for RISC-V interrupts To: =?UTF-8?Q?Heiko_St=C3=BCbner?= Cc: Linus Walleij , bgolaszewski@baylibre.com, Rob Herring , jassisinghbrar@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , a.zummo@towertech.it, alexandre.belloni@bootlin.com, broonie@kernel.org, Greg Kroah-Hartman , lewis.hanly@microchip.com, conor.dooley@microchip.com, Daire McNamara , Atish Patra , ivan.griffin@microchip.com, linux-gpio@vger.kernel.org, DTML , "linux-kernel@vger.kernel.org List" , linux-i2c@vger.kernel.org, linux-riscv , linux-crypto@vger.kernel.org, linux-rtc@vger.kernel.org, linux-spi@vger.kernel.org, linux-usb@vger.kernel.org, krzysztof.kozlowski@canonical.com, Geert Uytterhoeven , Bin Meng Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Nov 23, 2021 at 4:38 PM Heiko St=C3=BCbner wrote: > > Am Montag, 8. November 2021, 16:05:42 CET schrieb conor.dooley@microchip.= com: > > From: Ivan Griffin > > > > Provide named identifiers for device tree for RISC-V interrupts. > > > > Licensed under GPL and MIT, as this file may be useful to any OS that > > uses device tree. > > > > Signed-off-by: Ivan Griffin > > Signed-off-by: Conor Dooley > > --- > > .../interrupt-controller/riscv-hart.h | 19 +++++++++++++++++++ > > 1 file changed, 19 insertions(+) > > create mode 100644 include/dt-bindings/interrupt-controller/riscv-hart= .h > > > > diff --git a/include/dt-bindings/interrupt-controller/riscv-hart.h b/in= clude/dt-bindings/interrupt-controller/riscv-hart.h > > new file mode 100644 > > index 000000000000..e1c32f6090ac > > --- /dev/null > > +++ b/include/dt-bindings/interrupt-controller/riscv-hart.h > > @@ -0,0 +1,19 @@ > > +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ > > +/* > > + * Copyright (C) 2021 Microchip Technology Inc. All rights reserved. > > + */ > > + > > +#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H > > +#define _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H > > + > > +#define HART_INT_U_SOFT 0 > > +#define HART_INT_S_SOFT 1 > > +#define HART_INT_M_SOFT 3 > > +#define HART_INT_U_TIMER 4 > > +#define HART_INT_S_TIMER 5 > > +#define HART_INT_M_TIMER 7 > > +#define HART_INT_U_EXT 8 > > +#define HART_INT_S_EXT 9 > > +#define HART_INT_M_EXT 11 > > (1) From checking clic doc [0] I see an additional > 12 CLIC software interrupt > defined. Local IRQ #12 is for S-mode guest external interrupts as-per the ratified H-extension specification. I guess CLIC spec needs to be updated. Regards, Anup > > (2) The doc states that the ordering is a recommendation and > "not mandatory in all incarnations of the CLIC" > Is that clarified somewhere else that this more than recommended? > > Thanks > Heiko > > > [0] https://github.com/riscv/riscv-fast-interrupt/blob/master/clic.adoc > > > + > > +#endif /* _DT_BINDINGS_INTERRUPT_CONTROLLER_RISCV_HART_H */ > > > > > >