Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2408874lqt; Mon, 22 Apr 2024 09:51:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNPz+IKCZdUAXI4ApsY0oJy17ZkidtsJ9TY6ZShliFtS4B8kogjxu/CkMplt3PKv1gAbP3yfAo0RA090RaNR/aQEsBM1A79jChZT5UKw== X-Google-Smtp-Source: AGHT+IGdTppGcW1wMxi7qtrsN2jP8ryuKW4tsJ75mSWiVXUPU428ObgQrYHEjZMhQfYS0RQVhWoq X-Received: by 2002:a05:651c:384:b0:2d4:7003:fc6c with SMTP id e4-20020a05651c038400b002d47003fc6cmr5905215ljp.10.1713804665467; Mon, 22 Apr 2024 09:51:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713804665; cv=pass; d=google.com; s=arc-20160816; b=xUaGhfwIcpvMO3SjVmnZ/kPOPv0gGoaK2kK3FIZj9p7In6VOr22R49jWP76ojdGxDJ sLtmB0zteSVm6xB+Wu7M7uePVEYfF3DOz+aZufmhJTyr5seJmSGHaBKrsL6RXXhdAszE 60oWdi/VyIc7wWvZIZy1a3k2H7UKPwbgZpgn84/9rRKFHjuDG/b4UgCxLDDRiA+RrdXS 6bkh10HKkL+uRVX1ZGt1oZA3z7sbeMSLxFMqhZn492oDeM35ZqWCUxSEYrVusGfHq3wt sEV2/ucXvwblVygs09f1+gYPuvShUw0bm+fkCsbnGVEdd8qSAzLl5jTF+Dw8XXfQx9A1 b7HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZgzLU3HqeWdDL96sAG8CV8ssEsfqbIf/l0VoUNfqhF4=; fh=J7PPX1mLz4bbf8vl6Udj/IgX+HeQKwXn3O2WOz6xG1o=; b=Lj5U6AZP93YzTvBH3p97pJX2F4wuvO0ay7hMTvfSYOEPsC5StFm+e0eAEP6XO179RG owUC8nmMZjTtpwH54FRyO7jr5ZR9zBgCHCWtG1KPYjjpaXIlRMVS/113l8ua9/tKdAGQ RF5imKjUgD5kamQhbeTdDpU6AXQAtc8PDC0ANMWIXprpTXnoVYBXyP5wd8zHGXfE8RI7 +7UFZ/geF4l+W/Y2B8HPc8wju9w9n75bSiYMpZa94HNeTp/wuFFr8j6/amL3UfQLw1Qi 0iA9jfGE6xg/0nvdSmlBDc+2FW6AIEg+PG5MO207CK9Kns0m6gYzzzZMnPdN4zhEtUNx uSEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lflyN/ci"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a3-20020a05640233c300b0056e5c132f49si6038592edc.592.2024.04.22.09.51.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 09:51:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lflyN/ci"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153752-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153752-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id F17831F21B07 for ; Mon, 22 Apr 2024 16:51:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0414315383B; Mon, 22 Apr 2024 16:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lflyN/ci" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10D4D2EB11; Mon, 22 Apr 2024 16:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804656; cv=none; b=bymiJm/t5pVoSqE5WsZc2iXdcJdNjpm04FvY0uZJzSjsDrTkVpx+S4BTv5qmXlTkNyX1u2Bv8KhBs2StmyUGiLiFyXJxSk+inMMwt/CQpK06AkcPPM5Q+6BtBGT30QvSTq0Ym+2PhdpqrXm84aFAkGRUou3M2cMjeX+8fYwm+cI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713804656; c=relaxed/simple; bh=koG30J16hJxMk0BUTwzMwigR3YDlojTJv13N+OCDpWk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IOFjGg9KJFCMlIH1x290I7i0jNl29fN2Iy57F46/EKz9ouh+Npz+s2wL/UM5wjWSHgnU2+7UYsH3yvccwZ9v6W5F45DaB6sB51RAxK4nq7g2cdglZJauk8RoYM5eLDCvkDHg8NQUm3+/GMnfSueYrBJf+kdiK7uwT0y/P2ikW0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lflyN/ci; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAAF4C113CC; Mon, 22 Apr 2024 16:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713804655; bh=koG30J16hJxMk0BUTwzMwigR3YDlojTJv13N+OCDpWk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lflyN/cilobaLJUQnemxbKSDSBeqOJV+Hhob2U7qDThrALjsOsmxqHTheNdsUXn0X bocoGYwWPP290XWzEMGXfREnACgRW9z97LQKVte8iuga/899ssKqQPBeTPa45gSNQq gjnk2tv+NfX9FeR1TtMEQTf/w6Zs/bhYP3m/RfQvd1c/FWkHTMZ0ns9G+lypbA5hTx UNW3PQLLVcGK8SQcIHQHzcGTZdWNPPsdvY2zeaj3UwZefAWeTr86WLcYVek8GVE+3J cZI2S1kuAEQmBrugwEhxb8EVtAAMyBTrxGFRhjoP8QGBG6G3JUGXfI+z/rEpxwOQEU QAf1YHCRUrMvg== Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5acdbfac114so57075eaf.2; Mon, 22 Apr 2024 09:50:55 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWB7QX7/VzN1w4vgfHGVVSXWaJ3F4mVR1/Ngaov5XgyND3On457ntLgZ0O6F1fWYWNxVNANYrqea4T2XsPnjRrM7tPY8nO1oq5uR68L37nXaHxG3i5kBG60R1Hq9dHy4X6KNZhHENppGw== X-Gm-Message-State: AOJu0YxyrfUu8Ktb5LywW/IuFoJcmRJ0RSrwblNjj1YXzcw0+Al+UDaJ VZQeMRjy2CfYX3eKfo6/pVLKCLf5RUebL15sPa6PT5RLIwXLZKJ8DZXRNwU6yAf8WhTP6lwqzdM Tw/dyTTrQ2CgkUO4OP84NyYx33Lg= X-Received: by 2002:a05:6820:2884:b0:5aa:241a:7f4b with SMTP id dn4-20020a056820288400b005aa241a7f4bmr11300744oob.1.1713804655220; Mon, 22 Apr 2024 09:50:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410063602.41540-1-tianruidong@linux.alibaba.com> <20240410063602.41540-3-tianruidong@linux.alibaba.com> In-Reply-To: <20240410063602.41540-3-tianruidong@linux.alibaba.com> From: "Rafael J. Wysocki" Date: Mon, 22 Apr 2024 18:50:43 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] ACPICA: AEST: Add support for the AEST V2 table To: Ruidong Tian Cc: robert.moore@intel.com, rafael.j.wysocki@intel.com, lenb@kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Apr 10, 2024 at 8:36=E2=80=AFAM Ruidong Tian wrote: > > ACPICA commit ebb49799c78891cbe370f1264844664a3d8b6f35 > > AEST V2 was published[1], add V2 support based on AEST V1. > > [1]: https://developer.arm.com/documentation/den0085/latest/ > > Link: https://github.com/acpica/acpica/commit/ebb4979 > Signed-off-by: Ruidong Tian > --- > include/acpi/actbl2.h | 88 ++++++++++++++++++++++++++++++++++++++++--- > 1 file changed, 82 insertions(+), 6 deletions(-) > > diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h > index f89b23b3d2aa..d1670ab93fc6 100644 > --- a/include/acpi/actbl2.h > +++ b/include/acpi/actbl2.h > @@ -77,8 +77,8 @@ > * > * AEST - Arm Error Source Table > * > - * Conforms to: ACPI for the Armv8 RAS Extensions 1.1 Platform Design Do= cument > - * September 2020. > + * Conforms to: ACPI for the Armv8 RAS Extensions 1.1(Sep 2020) and > + * 2.0(May 2023) Platform Design Document. > * > ***********************************************************************= *******/ > > @@ -108,7 +108,9 @@ struct acpi_aest_hdr { > #define ACPI_AEST_SMMU_ERROR_NODE 2 > #define ACPI_AEST_VENDOR_ERROR_NODE 3 > #define ACPI_AEST_GIC_ERROR_NODE 4 > -#define ACPI_AEST_NODE_TYPE_RESERVED 5 /* 5 and above are reserv= ed */ > +#define ACPI_AEST_PCIE_ERROR_NODE 5 > +#define ACPI_AEST_PROXY_ERROR_NODE 6 > +#define ACPI_AEST_NODE_TYPE_RESERVED 7 /* 7 and above are reserve= d */ > > /* > * AEST subtables (Error nodes) > @@ -180,6 +182,12 @@ struct acpi_aest_vendor { > u8 vendor_specific_data[16]; > }; > > +struct acpi_aest_vendor_v2 { > + char acpi_hid[8]; > + u32 acpi_uid; > + u8 vendor_specific_data[16]; > +}; > + > /* 4: Gic Error */ > > struct acpi_aest_gic { > @@ -195,6 +203,18 @@ struct acpi_aest_gic { > #define ACPI_AEST_GIC_ITS 3 > #define ACPI_AEST_GIC_RESERVED 4 /* 4 and above are reserv= ed */ > > +/* 5: PCIe Error */ > + > +struct acpi_aest_pcie { > + u32 iort_node_reference; > +}; > + > +/* 6: Proxy Error */ > + > +struct acpi_aest_proxy { > + u64 node_address; > +}; > + > /* Node Interface Structure */ > > struct acpi_aest_node_interface { > @@ -209,11 +229,57 @@ struct acpi_aest_node_interface { > u64 addressing_mode; > }; > > +/* Node Interface Structure V2 */ > + > +struct acpi_aest_node_interface_header { > + u8 type; > + u8 group_format; > + u8 reserved[2]; > + u32 flags; > + u64 address; > + u32 error_record_index; > + u32 error_record_count; > +}; > + > +#define ACPI_AEST_NODE_GROUP_FORMAT_4K 0 > +#define ACPI_AEST_NODE_GROUP_FORMAT_16K 1 > +#define ACPI_AEST_NODE_GROUP_FORMAT_64K 2 > + > +struct acpi_aest_node_interface_common { > + u32 error_node_device; > + u32 processor_affinity; > + u64 error_group_register_base; > + u64 fault_inject_register_base; > + u64 interrupt_config_register_base; > +}; > + > +struct acpi_aest_node_interface_4k { > + u64 error_record_implemented; > + u64 error_status_reporting; > + u64 addressing_mode; > + struct acpi_aest_node_interface_common common; > +}; > + > +struct acpi_aest_node_interface_16k { > + u64 error_record_implemented[4]; > + u64 error_status_reporting[4]; > + u64 addressing_mode[4]; > + struct acpi_aest_node_interface_common common; > +}; > + > +struct acpi_aest_node_interface_64k { > + u64 error_record_implemented[14]; > + u64 error_status_reporting[14]; > + u64 addressing_mode[14]; > + struct acpi_aest_node_interface_common common; > +}; > + > /* Values for Type field above */ > > -#define ACPI_AEST_NODE_SYSTEM_REGISTER 0 > -#define ACPI_AEST_NODE_MEMORY_MAPPED 1 > -#define ACPI_AEST_XFACE_RESERVED 2 /* 2 and above are reserv= ed */ > +#define ACPI_AEST_NODE_SYSTEM_REGISTER 0 > +#define ACPI_AEST_NODE_MEMORY_MAPPED 1 > +#define ACPI_AEST_NODE_SINGLE_RECORD_MEMORY_MAPPED 2 > +#define ACPI_AEST_XFACE_RESERVED 3 /* 2 and abov= e are reserved */ > > /* Node Interrupt Structure */ > > @@ -226,6 +292,16 @@ struct acpi_aest_node_interrupt { > u8 reserved1[3]; > }; > > +/* Node Interrupt Structure V2 */ > + > +struct acpi_aest_node_interrupt_v2 { > + u8 type; > + u8 reserved[2]; > + u8 flags; > + u32 gsiv; > + u8 reserved1[4]; > +}; > + > /* Values for Type field above */ > > #define ACPI_AEST_NODE_FAULT_HANDLING 0 > -- This does not apply for me, can you please rebase on top of linux-next and resend?