Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6361510rwl; Tue, 4 Apr 2023 11:24:09 -0700 (PDT) X-Google-Smtp-Source: AKy350acl5o8RuJ9egMncIElSdrAxVBNKZB5WKcIfKdUwx+dla0AKqp33X+TUXqCpXojiK4sldwD X-Received: by 2002:a17:902:e5d1:b0:1a1:956d:2281 with SMTP id u17-20020a170902e5d100b001a1956d2281mr631744plf.3.1680632648846; Tue, 04 Apr 2023 11:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680632648; cv=none; d=google.com; s=arc-20160816; b=EtlMjQGMtD1Q2oWYWQdZlh98IXYiFEXtgzIgKfOJzG1SclbpAnK9RU9oLzlT0mms30 eEuKv2jckRdnZdaJHtDzfG7GCrf5NljLIKpJHG3eZV2o+8R93+We1JgmafW/SOP517kQ amKmdgXGfzEsUyGnzu4qUEHRGzUr+snjdVw9B1mbqELZ3fts562G7lDfNNjpQAH98Etr ub1NsDnxUrrDXt/bG2L+IxTO7gmHNO3ecOzytiN27bwrw3viX7fa5I9hW9gkaHI9rn7R rE4AyEvmV8yRCNPyVY1DG1QetX7NqKAxZ6dTkCr9Zv/dXl3HUkodHhUVXKeUKpGrfTtp n3EA== 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=DdBAV21+tEDurt/JvTaHJyUQ0LBM5nBDKYeMtin7GIs=; b=wwG2M5YtJDI8ak92yXS0p38kBCKxEAHRUpD+tsQYI3A2X5E0rLEACsoNqFJ7d8uRVR y6qgRqVsJqSoruTAUI/UTxDwjdC4w3K/98CPvXmJpShY/60tpT8H6xUPBsMER1wW0K/G w9IVHpt8C/kie+bCxUerVYF8NBj6RXHyfISwgt1qSa8/jDkaIeeVgbC9njIyvBL73ISV tpvfx5oO15IC/IqlJOyJmnu6LT3JpL+BT6tcxBaAJYJ1vfsHEi/tpoHzbBdKr9yEw3r6 ooImewBG5nYvUEd5JANhrAxYNsfDkFaoV9COOaKH5Dxmo4wlh3yAWn8uBKssSWUWqvJC MQUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=MX30zIpz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 n18-20020a170902e55200b0019a59c52fd3si11227471plf.508.2023.04.04.11.23.54; Tue, 04 Apr 2023 11:24:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=MX30zIpz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235560AbjDDSV0 (ORCPT + 99 others); Tue, 4 Apr 2023 14:21:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236302AbjDDSVH (ORCPT ); Tue, 4 Apr 2023 14:21:07 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0474C28 for ; Tue, 4 Apr 2023 11:21:01 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id c18so32121800ple.11 for ; Tue, 04 Apr 2023 11:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680632461; 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=DdBAV21+tEDurt/JvTaHJyUQ0LBM5nBDKYeMtin7GIs=; b=MX30zIpzC4L+H3vLtz3ly3GSsB3XwuvpMQpmEupPQ85QZVU8HRpoYlIf3wBZNQKKLD VtbAaOHFd13vmPsqb8jFR5LHfURvqMEP4PmA952ogWkFFfdnVfA6YrYXGpbue16V0vz2 wzM4ZbBEVPBt9Hfsf9CnBQoG/TblQOmhq56mLVUSCQGP5RHhy/qlytMlTEr8MhtER2mp ep3IM4xNIUVffLhgHfWRXOI6Sdbay9+pGr84nAbg1Szv5728VCO39Ewtymzy8/qMQ/Vj +CXTYu46xi73R7egRio2zBf/pxKsdmHgApX/2r5Q29nuT1f3Vx5xSeoQlA9ll5cHiE2e OURA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680632461; 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=DdBAV21+tEDurt/JvTaHJyUQ0LBM5nBDKYeMtin7GIs=; b=e5JH7cLgkPBqSF2aIQuheIzXRK7PWeBVS12j8x5QRfESOFyq5wtK0K3v5+1h0QsjfU BmoHyfashbX7mrYzDmHqjdl7ZHs2//GhOZEzCmCLOmSP361LxkAGik1B8/O+55xekpWn v/XehWX4+F9Rg89p88efcZIQnyJbvd/bhpiMHUhBPCGzWEscZ2B3w5g0J2EHcOR5CJJ4 I9DIaP/D7fzqICocgBTnPBe3fgx5TZ7SRYu0+eoO2bXbwT6K9xSgn94ZD3EA/JwxIriq /GeRn/+MoN1PS0T3zswlyoWSTDHXvKax221xDk1uMlwnQAzjmHivOQOgjvXleTXjLYl4 weow== X-Gm-Message-State: AAQBX9e6KW+lYTHeDMlOUKflLjDrU52JQyVv+0Y2EIh7IIRGpKQYjuXJ stgVppSTIZCwXHFRG3e3NrMBhQ== X-Received: by 2002:a05:6a20:4c9f:b0:d9:ecba:b9fc with SMTP id fq31-20020a056a204c9f00b000d9ecbab9fcmr2623263pzb.54.1680632461193; Tue, 04 Apr 2023 11:21:01 -0700 (PDT) Received: from localhost.localdomain ([106.51.184.50]) by smtp.gmail.com with ESMTPSA id o12-20020a056a001bcc00b0062dcf5c01f9sm9018524pfw.36.2023.04.04.11.20.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 11:21:00 -0700 (PDT) From: Sunil V L To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-crypto@vger.kernel.org, platform-driver-x86@vger.kernel.org, llvm@lists.linux.dev Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Len Brown , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" , "David S . Miller" , Sunil V L Subject: [PATCH V4 02/23] ACPICA: MADT: Add RISC-V INTC interrupt controller Date: Tue, 4 Apr 2023 23:50:16 +0530 Message-Id: <20230404182037.863533-3-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230404182037.863533-1-sunilvl@ventanamicro.com> References: <20230404182037.863533-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=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: X-Mailing-List: linux-crypto@vger.kernel.org ACPICA commit bd6d1ae1e13abe78e149c8b61b4bc7bc7feab015 The ECR to add RISC-V INTC interrupt controller is approved by the UEFI forum and will be available in the next revision of the ACPI specification. Link: https://github.com/acpica/acpica/commit/bd6d1ae1 Reference: Mantis ID: 2348 Signed-off-by: Sunil V L --- 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.34.1