Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp732224rwl; Wed, 5 Apr 2023 07:05:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXNWcFkeWUnfeVANne8YQuHpPrzDYVlPCjesSqUtemDnEMAl8L6GPzK3yLt/P4fWZE+6le X-Received: by 2002:a17:906:4ad3:b0:947:abd7:51ba with SMTP id u19-20020a1709064ad300b00947abd751bamr2904195ejt.34.1680703515363; Wed, 05 Apr 2023 07:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680703515; cv=none; d=google.com; s=arc-20160816; b=Axb3OheZGShyB/psb0ZNd7smmcjFoCK2jWLd8vy4Yr8KeousDn9IBv9VFAGiwfuT8A Avwu7ze+wX0mwis4w3ZBoagUwv0vjta7oRREO0Vr7WJ6ggDJXohNdCuUz03+/C+d5slE Xlejq1lx9utAWINTX+t17YAuGpz0zc7OVhOS2E8TlJ6fUS2JKkRZ/ZOa6rvYpLEvmstg 6AOb9tViye4yhMxPiGX9V7HDAQ30zaO6IYSRtVS0MJZhu2bEEipXCeWPgQMvUhqh/jcz K2bhUVXrwnrL1zlVmGHowRMiJnvLUTzvqNWXvL18kU12j3F9Eu/TtcoqiombYS39xWcj qk7A== 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; bh=Vqha6W088/AWzBcB+m+3O+R+3sUbk1kFwR1j6RZ5hLw=; b=kNjo8eYyVNPaL9ZvbYn6TGbN+TVxgCNZtedLq8ve3dbGTEtbxJNYfNnR4kYjQ+8feJ CA77LY/qVhuw3eXlvJfcUwUKtdn+dbxPv1YVgBU+nfd1+g1pr6RK3OKtABbCWKTLx8hO 8riENkTydKI4uWXb+QafkrOKHHl3XyxcgQdOZyLbx6cR6keUBm42tkqaABEXMLwWSP3/ 62vC568+TADnREgOFoz9Rt/0N4Bq72g/YJprbDp+AFWvAYzu9SB3eVH+/KIVgY57gwhG PanZqG+WKqMjwIh8H7xPJiBUZykzMXQrnVYu+ijxNV1h3lkZ0JU4X2rOJ6a9RwLd2ATR /z2g== ARC-Authentication-Results: i=1; mx.google.com; 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 f1-20020a170906824100b0093348efaf0asi12258666ejx.198.2023.04.05.07.04.35; Wed, 05 Apr 2023 07:05:15 -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; 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 S238408AbjDEODf (ORCPT + 99 others); Wed, 5 Apr 2023 10:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238371AbjDEOCW (ORCPT ); Wed, 5 Apr 2023 10:02:22 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FA556EAC; Wed, 5 Apr 2023 07:01:19 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.1.0) id 86045bb57f15bc7f; Wed, 5 Apr 2023 16:01:14 +0200 Received: from kreacher.localnet (unknown [213.134.163.219]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id A96F61B4E9E1; Wed, 5 Apr 2023 16:01:13 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Bob Moore Subject: [PATCH 10/32] ACPICA: MADT: Add RISC-V INTC interrupt controller Date: Wed, 05 Apr 2023 15:40:12 +0200 Message-ID: <1782750.VLH7GnMWUR@kreacher> In-Reply-To: <4845957.31r3eYUQgx@kreacher> References: <4845957.31r3eYUQgx@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 213.134.163.219 X-CLIENT-HOSTNAME: 213.134.163.219 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejuddgjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepledtieekkeekveeikeetgffgteeuteefjeevjeegudelvdduheeiuedvieehieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvddufedrudefgedrudeifedrvdduleenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepihhnvghtpedvudefrddufeegrdduieefrddvudelpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeefpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhhosggvrhhtrdhmohhorhgvsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=0.0 required=5.0 tests=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-kernel@vger.kernel.org From: Sunil V L 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 Signed-off-by: Sunil V L Signed-off-by: Bob Moore Signed-off-by: Rafael J. Wysocki --- 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 e0f205f9ab4c..9af17cb66faa 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 */ }; @@ -1251,6 +1252,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.35.3