Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4736364rdb; Fri, 15 Sep 2023 10:38:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEr/tz7z0NNbHq7CP5nF7ZIysnjBExCguCaw29M0otochxnZkz14Q0f8HauUUtPAD1i0OIi X-Received: by 2002:a05:6300:8095:b0:154:a1e3:f967 with SMTP id ap21-20020a056300809500b00154a1e3f967mr2199027pzc.47.1694799527119; Fri, 15 Sep 2023 10:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694799527; cv=none; d=google.com; s=arc-20160816; b=GvfZcYGQsgpLGoppZxOzJ5hfxSL64cRIL7RzG9n2QTBsuat8uuFe4KPZG3asCRTAuZ X/T4exVmyO18kGlcPffmyHHl8LCm7EEZfhnAtNI3SUZX3/eHbs0CWpxK45KSOyxlBloE +KqQneXo8mnirb955ezmh7AICJzFoPn3f2VOyu1M9DAD/G22CqFepKpsQFAwhXxC7qsh +dpdLVSsQO/u5MgIP++vBrb8UaAaQj1VeRVQYdIiZPd4SQMd5QD4VLSgTndZy1xSUkbe qJSIsv2vMqljAVXCBhLxcoAFI2OpZ7mJLNSDt2f4pJulElVkKwvyMFw6stlGENRUJDnN 6PJw== 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=IzZm5K2ulhd199kMKUqoL2s0hOvcRcqzGto+EAot46U=; fh=WKBpDtHuHnn7rxy87+LpIKVTV/YGZSowSVhS84rRWDg=; b=t1f3JmRnfLltHP7Z6jccyBZo0GDm1YplFAR4ere66LF0KTt49vHVpgfpYJ0J0vOyXA 95DEdcxVUuThVafCOqMVqrPNkvIJ6YZhmlh6i5awfGQ35yriUCsIePChp4hJAfSv3mL/ u4cDLArmWSffZULSwvoeyhPbFAdC1PbqljTu0dCHO/2WABM+4jkF+3qQ53skFqxT+Yka 1XaEBGgSq8PQ0ux1umqKgrlsf97sqTEaWPKfsEWBiThE3JKpPuOjc5QtEAPG3V7jmc9i L5rsxaEiKBO/ImGG97oEqTUv8qdLypUwLLS9GSBlM9JH+VeKwh16BUooRrm/5YAwsc4p hG1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s1-20020a63dc01000000b005775a4a2960si3353481pgg.261.2023.09.15.10.38.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 10:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A9ACD808BE6A; Fri, 15 Sep 2023 10:30:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236425AbjIOR3z (ORCPT + 99 others); Fri, 15 Sep 2023 13:29:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236062AbjIOR3O (ORCPT ); Fri, 15 Sep 2023 13:29:14 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1077211E; Fri, 15 Sep 2023 10:29:09 -0700 (PDT) Received: from lhrpeml500006.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4RnLkg43fGz6K6Pc; Sat, 16 Sep 2023 01:28:27 +0800 (CST) Received: from SecurePC30232.china.huawei.com (10.122.247.234) by lhrpeml500006.china.huawei.com (7.191.161.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 15 Sep 2023 18:29:07 +0100 From: To: , , CC: , , , , , , , , , , , , , , , , , , , , , Subject: [RFC PATCH 7/9] ACPICA: ACPI 6.5: Add support for RAS2 table Date: Sat, 16 Sep 2023 01:28:16 +0800 Message-ID: <20230915172818.761-8-shiju.jose@huawei.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20230915172818.761-1-shiju.jose@huawei.com> References: <20230915172818.761-1-shiju.jose@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.122.247.234] X-ClientProxiedBy: lhrpeml500001.china.huawei.com (7.191.163.213) To lhrpeml500006.china.huawei.com (7.191.161.198) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 10:30:49 -0700 (PDT) From: Shiju Jose Add support for ACPI RAS2 feature table(RAS2) defined in the ACPI 6.5 Specification & upwards revision, section 5.2.21. The RAS2 table provides interfaces for platform RAS features. RAS2 offers the same services as RASF, but is more scalable than the latter. RAS2 supports independent RAS controls and capabilities for a given RAS feature for multiple instances of the same component in a given system. The platform can support either RAS2 or RASF but not both. Link: https://github.com/acpica/acpica/pull/892 Signed-off-by: Shiju Jose --- include/acpi/actbl2.h | 55 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index 3751ae69432f..41e77cacc5c6 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -47,6 +47,7 @@ #define ACPI_SIG_PPTT "PPTT" /* Processor Properties Topology Table */ #define ACPI_SIG_PRMT "PRMT" /* Platform Runtime Mechanism Table */ #define ACPI_SIG_RASF "RASF" /* RAS Feature table */ +#define ACPI_SIG_RAS2 "RAS2" /* RAS2 Feature table */ #define ACPI_SIG_RGRT "RGRT" /* Regulatory Graphics Resource Table */ #define ACPI_SIG_RHCT "RHCT" /* RISC-V Hart Capabilities Table */ #define ACPI_SIG_SBST "SBST" /* Smart Battery Specification Table */ @@ -2743,6 +2744,60 @@ enum acpi_rasf_status { #define ACPI_RASF_ERROR (1<<2) #define ACPI_RASF_STATUS (0x1F<<3) +/******************************************************************************* + * + * RAS2 - RAS2 Feature Table (ACPI 6.5) + * Version 2 + * + * + ******************************************************************************/ + +struct acpi_table_ras2 { + struct acpi_table_header header; /* Common ACPI table header */ + u16 reserved; + u16 num_pcc_descs; +}; + +/* + * RAS2 Platform Communication Channel Descriptor + */ + +struct acpi_ras2_pcc_desc { + u8 channel_id; + u16 reserved; + u8 feature_type; + u32 instance; +}; + +/* + * RAS2 Platform Communication Channel Shared Memory Region + */ + +struct acpi_ras2_shared_memory { + u32 signature; + u16 command; + u16 status; + u16 version; + u8 features[16]; + u8 set_capabilities[16]; + u16 num_parameter_blocks; + u32 set_capabilities_status; +}; + +/* + * RAS2 Parameter Block Structure for PATROL_SCRUB + */ + +struct acpi_ras2_patrol_scrub_parameter { + struct acpi_rasf_parameter_block header; + u16 patrol_scrub_command; + u64 requested_address_range[2]; + u64 actual_address_range[2]; + u32 flags; + u32 scrub_params_out; + u32 scrub_params_in; +}; + /******************************************************************************* * * RGRT - Regulatory Graphics Resource Table -- 2.34.1