From patchwork Wed Apr 24 05:46:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xu, Haibo1" X-Patchwork-Id: 13641220 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31CDBC4345F for ; Wed, 24 Apr 2024 05:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P+EwN4kFuyyb7Zf1tq+s3M1ILXH1LIE8XQlhJHkN9ME=; b=VyigtI9bcLZehO OZaOmT22cl3sKOxNFWMk+Zyq8El18pPMGL2VsA+2u7mH6vr9GoHyqbLX1E7YoiWpFoGxGYbE/yipt aWld7jeU2oFzWQSSZFrXugOD9aMiynPexPPRtvzDMeXIvukuij45EO+W4XbBlt1OFLAyFItZVBe3Q tzstlgUIy8AORD5+tY0UuEwKxZIYEc4kjerC1rroaH1ZbT7P2wkrPDcQiiIWRVG82JIklBblZpG4A 2BwMI18iAoqcHDq6f5xlx1qKYeM8VxCS7yIggwHcqDevQqYsb5+5OVa/SaIPi0IxvAlgrqlsy2j/a kiruNLTrAdVldOB5piSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzVCW-00000002g8T-3II1; Wed, 24 Apr 2024 05:29:48 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzVCT-00000002g76-1oLk; Wed, 24 Apr 2024 05:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713936586; x=1745472586; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vVb6RIIvOt4enB6/MzuWcA6dkAPHXShQ2Vxb7to1nk8=; b=RGQnoufZII6jQNW8lA++dA0x/bwNpDJqWF2SEDqKWYxSn/06p7yctrLh fwIE4acPlPnXmRG2aWtswGH8mrtbKvJp19OPEcx/FINQC/gaM9B2+kGX/ yyyTPXjolcGvvxNZ4vdZpgF3zKP1M1X0Lv3xJBr9ejKDWO7M1EppPVJF5 w8hbYIF+t8WkHfqpmQKinlI1svWGyUx0EKzfQ1SeAI1KTCXZXZCJgWW7k DyKeR2idNaPNEVmeRiVhGq8FHGTGWVSPe3/cCaq2+IPiwiRLL97QEDLsp abu1Yi/G6Y09as+1dWSNFNd9Dz3ril8KO97OrCWbdn3E2FuQm2jyEF63W w==; X-CSE-ConnectionGUID: 2BWkiULyR5iNNfk+2vZnRA== X-CSE-MsgGUID: lQ6XDdGlS3KTCXYFu/fLuw== X-IronPort-AV: E=McAfee;i="6600,9927,11053"; a="27004183" X-IronPort-AV: E=Sophos;i="6.07,225,1708416000"; d="scan'208";a="27004183" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 22:29:45 -0700 X-CSE-ConnectionGUID: L2sj6Cs+Tj+J/3PjA4uG7g== X-CSE-MsgGUID: cBYvsSoMS+GBiu/n6bwCcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,225,1708416000"; d="scan'208";a="62049714" Received: from unknown (HELO haibo-OptiPlex-7090.sh.intel.com) ([10.239.159.132]) by orviesa001.jf.intel.com with ESMTP; 23 Apr 2024 22:29:35 -0700 From: Haibo Xu To: sunilvl@ventanamicro.com, arnd@arndb.de Cc: xiaobo55x@gmail.com, ajones@ventanamicro.com, Haibo Xu , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J. Wysocki" , Len Brown , Greg Kroah-Hartman , Robert Moore , Conor Dooley , Guo Ren , Alexandre Ghiti , Charlie Jenkins , Baoquan He , Greentime Hu , Zong Li , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Chen Jiahao , Samuel Holland , Jisheng Zhang , James Morse , "Russell King (Oracle)" , Evan Green , Yang Li , Thomas Gleixner , Ard Biesheuvel , Tony Luck , Yuntao Wang , Dan Williams , Alison Schofield , Dave Jiang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev Subject: [PATCH v3 1/6] ACPICA: SRAT: Add RISC-V RINTC affinity structure Date: Wed, 24 Apr 2024 13:46:21 +0800 Message-Id: <400608fe1804f5f2b52e611bf58e3a3a0b839b92.1713778236.git.haibo1.xu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_222945_786327_13090ED5 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org ACPICA commit 93caddbf2f620769052c59ec471f018281dc3a24 Add definition of RISC-V Interrupt Controller(RINTC) affinity structure which was approved by UEFI forum and will be part of next ACPI spec version(6.6). Link: https://github.com/acpica/acpica/commit/93caddbf Signed-off-by: Haibo Xu --- include/acpi/actbl3.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index c080d579a546..5202e3fc9b41 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -192,7 +192,8 @@ enum acpi_srat_type { ACPI_SRAT_TYPE_GIC_ITS_AFFINITY = 4, /* ACPI 6.2 */ ACPI_SRAT_TYPE_GENERIC_AFFINITY = 5, /* ACPI 6.3 */ ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY = 6, /* ACPI 6.4 */ - ACPI_SRAT_TYPE_RESERVED = 7 /* 7 and greater are reserved */ + ACPI_SRAT_TYPE_RINTC_AFFINITY = 7, /* ACPI 6.6 */ + ACPI_SRAT_TYPE_RESERVED = 8 /* 8 and greater are reserved */ }; /* @@ -296,6 +297,21 @@ struct acpi_srat_generic_affinity { #define ACPI_SRAT_GENERIC_AFFINITY_ENABLED (1) /* 00: Use affinity structure */ #define ACPI_SRAT_ARCHITECTURAL_TRANSACTIONS (1<<1) /* ACPI 6.4 */ +/* 7: RINTC Affinity (ACPI 6.6) */ + +struct acpi_srat_rintc_affinity { + struct acpi_subtable_header header; + u16 reserved; /* Reserved, must be zero */ + u32 proximity_domain; + u32 acpi_processor_uid; + u32 flags; + u32 clock_domain; +}; + +/* Flags for struct acpi_srat_rintc_affinity */ + +#define ACPI_SRAT_RINTC_ENABLED (1) /* 00: Use affinity structure */ + /******************************************************************************* * * STAO - Status Override Table (_STA override) - ACPI 6.0