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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 EC9BDC369D3 for ; Mon, 28 Apr 2025 11:21:26 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u9MXG-00038r-75; Mon, 28 Apr 2025 07:20:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u9MXA-00038c-5e for qemu-devel@nongnu.org; Mon, 28 Apr 2025 07:20:24 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1u9MX6-0003lc-LE for qemu-devel@nongnu.org; Mon, 28 Apr 2025 07:20:23 -0400 Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4ZmLTW1D9pz6K9RC; Mon, 28 Apr 2025 19:15:27 +0800 (CST) Received: from frapeml500003.china.huawei.com (unknown [7.182.85.28]) by mail.maildlp.com (Postfix) with ESMTPS id EEC441400DB; Mon, 28 Apr 2025 19:20:14 +0800 (CST) Received: from localhost (10.203.177.99) by frapeml500003.china.huawei.com (7.182.85.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 28 Apr 2025 13:20:14 +0200 Date: Mon, 28 Apr 2025 12:20:09 +0100 To: "Michael S. Tsirkin" CC: Jonathan Cameron , Yicong Yang , , , , , , , , , Subject: Re: [PATCH v3 4/5] hw/acpi/aml-build: Update the revision of PPTT table Message-ID: <20250428122009.00004aca.alireza.sanaee@huawei.com> In-Reply-To: <20250423115024-mutt-send-email-mst@kernel.org> References: <20250423114130.902-1-alireza.sanaee@huawei.com> <20250423114130.902-5-alireza.sanaee@huawei.com> <20250423083909-mutt-send-email-mst@kernel.org> <6b783651-e952-ffe9-6c49-7ee9459741c8@huawei.com> <20250423113447-mutt-send-email-mst@kernel.org> <20250423164720.000070b9@huawei.com> <20250423115024-mutt-send-email-mst@kernel.org> Organization: Huawei X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.203.177.99] X-ClientProxiedBy: lhrpeml100012.china.huawei.com (7.191.174.184) To frapeml500003.china.huawei.com (7.182.85.28) Received-SPF: pass client-ip=185.176.79.56; envelope-from=alireza.sanaee@huawei.com; helo=frasgout.his.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Alireza Sanaee From: Alireza Sanaee via Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, 23 Apr 2025 11:51:41 -0400 "Michael S. Tsirkin" wrote: Hi Michael, > On Wed, Apr 23, 2025 at 04:47:20PM +0100, Jonathan Cameron wrote: > > On Wed, 23 Apr 2025 11:35:46 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Apr 23, 2025 at 10:15:42PM +0800, Yicong Yang wrote: > > > > On 2025/4/23 20:39, Michael S. Tsirkin wrote: > > > > > On Wed, Apr 23, 2025 at 12:41:29PM +0100, Alireza Sanaee > > > > > wrote: > > > > >> From: Yicong Yang > > > > >> > > > > >> The lastest ACPI spec 6.5 support PPTT revision 3. Update it > > > > >> by handy. This is compatible with previous revision. > > > > >> > > > > >> Signed-off-by: Yicong Yang > > > > >> Reviewed-by: Jonathan Cameron > > > > >> Signed-off-by: Alireza Sanaee > > > > > > > > > > > > > > > I don't get it. Why are you updating it? Which features > > > > > from the new one are you using? > > > > > > > > > > > > > no new features for this patchset. considered updating it to > > > > the latest ACPI spec since we're going to touch the PPTT table > > > > and tested data. > > > > > > it's best to wait until there are actual features you need. > > > don't make changes for the sake of changes, there's always > > > some risk. > > > > Once we add the cache description (Ali's other set) can we make > > sure we arbitrary decide to have separate cache structures. The > > earlier table version allowed sharing of the entrees in the table > > which then became not allowed in the newer spec. That will smooth > > the path quite a bit and is a valid way to interpret the earlier > > spec. > > > > If we do that, we can bring the IDs + the version update as a > > precursor to MPAM support series. I don't think we need them until > > that series (which is a way off being ready to merge yet!) > > > > Jonathan > > Why not. Sounds like all that can be made part of Ali's patchset? > I am also ok to merge things gradually, as long as it's > clear and documented in the commit log why we are > making the change and where things are going. > > > > > > > > >> --- > > > > >> hw/acpi/aml-build.c | 2 +- > > > > >> 1 file changed, 1 insertion(+), 1 deletion(-) > > > > >> > > > > >> diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c > > > > >> index 3010325ca423..e5401dfdb1a8 100644 > > > > >> --- a/hw/acpi/aml-build.c > > > > >> +++ b/hw/acpi/aml-build.c > > > > >> @@ -2155,7 +2155,7 @@ void build_pptt(GArray *table_data, > > > > >> BIOSLinker *linker, MachineState *ms, uint32_t pptt_start = > > > > >> table_data->len; uint32_t root_offset; > > > > >> int n; > > > > >> - AcpiTable table = { .sig = "PPTT", .rev = 2, > > > > >> + AcpiTable table = { .sig = "PPTT", .rev = 3, > > > > >> .oem_id = oem_id, .oem_table_id = > > > > >> oem_table_id }; > > > > >> acpi_table_begin(&table, table_data); > > > > >> -- > > > > >> 2.34.1 > > > > > > > > > > > > > > > . > > > > > > > > > > > > > For this patchset, we eventually decided to rev down for now, on another version sent earlier. We can always rev up when it is absolutely necessary. So it is now rev == 2. Thanks, Alireza