Message ID | 20230130182225.2471414-3-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2330977wrn; Mon, 30 Jan 2023 10:26:27 -0800 (PST) X-Google-Smtp-Source: AK7set9+uAhvAO46fh94BzivPI1DJLdCUWK81YmVXpKox6HNMxTK2KQv1QrvfZxCulyL1d8Dxo9g X-Received: by 2002:a17:906:5601:b0:885:1a9f:1a6d with SMTP id f1-20020a170906560100b008851a9f1a6dmr7901910ejq.18.1675103187759; Mon, 30 Jan 2023 10:26:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675103187; cv=none; d=google.com; s=arc-20160816; b=cRIBenRDd5xO1ysu5hcA54y9EcRZUnN0y50/FLJFqRcmzRgwAA2q8Tf2uPELWcjM32 uw8GfJo1Gz3IL7O5KPCUGa1pAlb6RJI3p4tBeGAOkhC7Buv/JO5KIP/W8R5nCfEskCRX xe3ntxRhzNM1qpjqzsLAvVAwijR3/j6UFpgi5o2Mb7s0xG3uG7PYBBpTPeCo40lAbM40 pFHRqG1rJ/Aon0RtPRtP+SPwwnLWj1D+CaIrDy+I58/Pl3M4jViFIVaehnuPBodLXyrc 9uL1zUVbsoX/ca+XHVQ3cSMHByWC+BqZf8T+nn4WesFJamcBW3Uu9GsSVtq14mnXqKLs vWcw== 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=uV9EY4GcIdMg2ei4Z2c7LvEp7Me6Q3TdFGwPQrDSIKc=; b=pUyHCfpXoWFDZF5ltzvijhe8eFtA70zomDWpPOx6YJufi19GIgvwTRtlVnSPHr3SRj NhKVKkZwSSKyGlUvw962oRlE7xbEV9EYCg1p651vzUxj619JTaiJnMZImcCpymWtMgMe CBX5oSe3wH3sNwozdKqSvG7QTzKgu/7u4nIqAmwYpYzb9Ma+J4NDfagAhHLzKfFaLEFe 7cvfiVbyM6Cr0iSb9Ztnj+fx4ud/2TWbM5U02WfpxwUWnhqIq4oVueADZIKUIHnVu1rY ydgFgzhO2huT4AWPVjSFGNSrWpR2YDJJ05a++5roEEkumOyWZDPQyqXDsEhnxqrvM/t/ lDxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=HnFGgGXu; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az18-20020a170907905200b00883641f6b54si7400602ejc.261.2023.01.30.10.26.03; Mon, 30 Jan 2023 10:26:27 -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=@ventanamicro.com header.s=google header.b=HnFGgGXu; 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 S237713AbjA3SX1 (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Mon, 30 Jan 2023 13:23:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237827AbjA3SXU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 13:23:20 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E80430CC for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 10:22:52 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id jh15so3492874plb.8 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 10:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uV9EY4GcIdMg2ei4Z2c7LvEp7Me6Q3TdFGwPQrDSIKc=; b=HnFGgGXu5x/MzSPNUPo2v/pKakFqmqRWg6BQwRTPrZG4sJqOl/VUF4GTP9i9fJrngn LxjYkozJRcGqTFtpW1ZJenp6ieACXPwwdG8MofsYgdXKJo5bGJiU0jbTysRY6DO9X+JD d9Zk77XxcXjHiM85uUyrqJTmc7fAHFRL1A4fD+B7GRTbo7uY2M8vLRiPTp5ZYb/dLo9T /SYJqVtO/2F4YdkMHCFjfdUDBtdyKQHJsdI5DwhbrCwQaIjM5lYyqZYggOVeBPbj4vo2 dDyQwLdHBvmIGLO/TMUSRZtfcaEzTpFPU9j3uW5NE2cW9jpp5hZ1pilvVSBNhPXLL49z JgYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uV9EY4GcIdMg2ei4Z2c7LvEp7Me6Q3TdFGwPQrDSIKc=; b=tIfG1BKYgKtjqnQYkV48zjl2rnDdlOblhhNt3J5Nd+nmpgT+tiSgUId937eWhHeetl nTEPQWJ9FYiOpM5F1xNe9jhy6rwFxm5FP7QIVU10N7aD7UURVHTNp/RRAaqdmYQNhGch gOUiUoj9iHh+MRQXBkLgEDcqoJNDszWqq2FPoI8QnysWFSprN5U/yPUlYPyDMKHga6xR h+sVMbsVRyGm8pPqyii5MS/E0Rd7JOx4vOOidHvkZwSjot8waKUbmNtvaZjI8N1A5dol lcGkXF1+TCzfSJQsFDLzkSVQOR/UjSueHkRACYmsQmtFwW7QxJF67A3F7Fbf39qm5XAp 3Abg== X-Gm-Message-State: AO0yUKU5bMWsFnOWgN0SwVib0Jz9nayUnBqGc1GR4S6SeaNc+WpsceCq m5GkdCZu6m/IMrleEBPR3rohUA== X-Received: by 2002:a17:90b:3805:b0:22c:4e1:93e with SMTP id mq5-20020a17090b380500b0022c04e1093emr23296691pjb.15.1675102963434; Mon, 30 Jan 2023 10:22:43 -0800 (PST) Received: from kerodipc.Dlink ([49.206.9.96]) by smtp.gmail.com with ESMTPSA id j193-20020a638bca000000b00478162d9923sm7000291pge.13.2023.01.30.10.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:22:43 -0800 (PST) From: Sunil V L <sunilvl@ventanamicro.com> To: Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, "Rafael J . Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Jonathan Corbet <corbet@lwn.net> Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Anup Patel <apatel@ventanamicro.com>, Andrew Jones <ajones@ventanamicro.com>, Atish Patra <atishp@rivosinc.com>, Sunil V L <sunilvl@ventanamicro.com>, Robert Moore <robert.moore@intel.com>, acpica-devel@lists.linuxfoundation.org Subject: [PATCH 02/24] ACPICA: MADT: Add RISC-V INTC interrupt controller Date: Mon, 30 Jan 2023 23:52:03 +0530 Message-Id: <20230130182225.2471414-3-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230130182225.2471414-1-sunilvl@ventanamicro.com> References: <20230130182225.2471414-1-sunilvl@ventanamicro.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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756472999949330670?= X-GMAIL-MSGID: =?utf-8?q?1756472999949330670?= |
Series |
Add basic ACPI support for RISC-V
|
|
Commit Message
Sunil V L
Jan. 30, 2023, 6:22 p.m. UTC
The ECR to add RISC-V INTC interrupt controller is approved by
the UEFI forum and will be availabl in the next revision of
the ACPI specification.
This patch is not yet merged in ACPICA but a PR is raised.
ACPICA PR: https://github.com/acpica/acpica/pull/804
Reference: Mantis ID: 2348
Cc: Robert Moore <robert.moore@intel.com>
Cc: acpica-devel@lists.linuxfoundation.org
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
include/acpi/actbl2.h | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
Comments
On Mon, Jan 30, 2023 at 11:52:03PM +0530, Sunil V L wrote: > The ECR to add RISC-V INTC interrupt controller is approved by > the UEFI forum and will be availabl in the next revision of nit: available > the ACPI specification. > > This patch is not yet merged in ACPICA but a PR is raised. > > ACPICA PR: https://github.com/acpica/acpica/pull/804 I had a quick check with git grep, and as this doesn't appear to be a regular pattern in the history, so could you please make this a regular Link: trailer? Cheers, Conor. > Reference: Mantis ID: 2348 > > Cc: Robert Moore <robert.moore@intel.com> > Cc: acpica-devel@lists.linuxfoundation.org > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> > --- > include/acpi/actbl2.h | 21 ++++++++++++++++++++- > 1 file changed, 20 insertions(+), 1 deletion(-) > > diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h > index b2973dbe37ee..c432fd15db65 100644 > --- a/include/acpi/actbl2.h > +++ b/include/acpi/actbl2.h > @@ -891,7 +891,8 @@ enum acpi_madt_type { > ACPI_MADT_TYPE_MSI_PIC = 21, > ACPI_MADT_TYPE_BIO_PIC = 22, > ACPI_MADT_TYPE_LPC_PIC = 23, > - ACPI_MADT_TYPE_RESERVED = 24, /* 24 to 0x7F are reserved */ > + ACPI_MADT_TYPE_RINTC = 24, > + ACPI_MADT_TYPE_RESERVED = 25, /* 25 to 0x7F are reserved */ > ACPI_MADT_TYPE_OEM_RESERVED = 0x80 /* 0x80 to 0xFF are reserved for OEM use */ > }; > > @@ -1250,6 +1251,24 @@ enum acpi_madt_lpc_pic_version { > ACPI_MADT_LPC_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ > }; > > +/* 24: RISC-V INTC */ > +struct acpi_madt_rintc { > + struct acpi_subtable_header header; > + u8 version; > + u8 reserved; > + u32 flags; > + u64 hart_id; > + u32 uid; /* ACPI processor UID */ > +}; > + > +/* Values for RISC-V INTC Version field above */ > + > +enum acpi_madt_rintc_version { > + ACPI_MADT_RINTC_VERSION_NONE = 0, > + ACPI_MADT_RINTC_VERSION_V1 = 1, > + ACPI_MADT_RINTC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ > +}; > + > /* 80: OEM data */ > > struct acpi_madt_oem_data { > -- > 2.38.0 >
On Wed, Feb 08, 2023 at 07:59:00PM +0000, Conor Dooley wrote: > On Mon, Jan 30, 2023 at 11:52:03PM +0530, Sunil V L wrote: > > The ECR to add RISC-V INTC interrupt controller is approved by > > the UEFI forum and will be availabl in the next revision of > > nit: available > Thanks! > > the ACPI specification. > > > > This patch is not yet merged in ACPICA but a PR is raised. > > > > ACPICA PR: https://github.com/acpica/acpica/pull/804 > > I had a quick check with git grep, and as this doesn't appear to be a > regular pattern in the history, so could you please make this a regular > Link: trailer? > This patch should be merged in acpica repo first and then we will get this in standard format. Until then, it exists to allow other patches get reviewed. I believe by the time we get all other patches reviewed, acpica will have this merged. Thanks! Sunil
diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index b2973dbe37ee..c432fd15db65 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -891,7 +891,8 @@ enum acpi_madt_type { ACPI_MADT_TYPE_MSI_PIC = 21, ACPI_MADT_TYPE_BIO_PIC = 22, ACPI_MADT_TYPE_LPC_PIC = 23, - ACPI_MADT_TYPE_RESERVED = 24, /* 24 to 0x7F are reserved */ + ACPI_MADT_TYPE_RINTC = 24, + ACPI_MADT_TYPE_RESERVED = 25, /* 25 to 0x7F are reserved */ ACPI_MADT_TYPE_OEM_RESERVED = 0x80 /* 0x80 to 0xFF are reserved for OEM use */ }; @@ -1250,6 +1251,24 @@ enum acpi_madt_lpc_pic_version { ACPI_MADT_LPC_PIC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ }; +/* 24: RISC-V INTC */ +struct acpi_madt_rintc { + struct acpi_subtable_header header; + u8 version; + u8 reserved; + u32 flags; + u64 hart_id; + u32 uid; /* ACPI processor UID */ +}; + +/* Values for RISC-V INTC Version field above */ + +enum acpi_madt_rintc_version { + ACPI_MADT_RINTC_VERSION_NONE = 0, + ACPI_MADT_RINTC_VERSION_V1 = 1, + ACPI_MADT_RINTC_VERSION_RESERVED = 2 /* 2 and greater are reserved */ +}; + /* 80: OEM data */ struct acpi_madt_oem_data {