From nobody Sun Nov 24 07:24:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) ARC-Seal: i=2; a=rsa-sha256; t=1724896877; cv=pass; d=zohomail.com; s=zohoarc; b=E4qs7Pp0TwAG7cR5yPNQSquoZPT7ST9bcoQwbAJmNhCHT6mxFVce9QCgYt8JHOVuMU5zkMcNXgYWxoS2J03GxX/wzNtpBDMoMFkeowOoO6pCeM+uZo9K1+9fK9qeDpYkt9P81rkPouQUUYSSVa5YMJ7BIqnQTfVyxlDG9RKXKSo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724896877; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=zeRz5/L8aYtf3OuIN1+QpArmeSmG1ZnVoXkFb5E6+yY=; b=eCL4z+oe4N0uVSuEuHF0IHxOl/qBWXPU4QxHS14+PvE4xr+Ye9ekH291jHzVqeZ9tU8ChEE8thN5nOwP7zD7tM/IWgynCwrhZEaHt01Hx3+vg9+GRAB8qlWrsgQJn0gMAaHlfxwLv7HERlDAntGSVke6hK2UZEw5Aw6D3ZX64fQ= ARC-Authentication-Results: i=2; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724896877666674.8142159913629; Wed, 28 Aug 2024 19:01:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjUS2-00089f-5n; Wed, 28 Aug 2024 21:59:54 -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 1sjUS0-00081k-6C; Wed, 28 Aug 2024 21:59:52 -0400 Received: from mail-bjschn02on20728.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::728] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjURy-0007Ke-NA; Wed, 28 Aug 2024 21:59:51 -0400 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) by NT0PR01MB1021.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Thu, 29 Aug 2024 01:59:33 +0000 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce]) by NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce%5]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 01:59:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aL081g66NLSkhQBlLpvrDcaUyd9cTXLrx6XYrvuhzeid63wgDWAfTrTOteFa5Zuks7kERFgmIPMh0zYUQOAwWJAPyVmKGlMpBhhCgy1Sj6XbG+wrMZ7M4a5m+T5rbcsozN/Qx+/dtKMpH6D6Z/ez+85TDR25J3vykR+iNhBNuVBD6WqQz5+m1APgOeLuWpn9EyMk4DjUGP6/S+yUrrOHtYmpcGmjuHkF7f5/u+9Gx7xx+HBMSR3QgG4yoF8fq9qCxehvYHM+Zg/YxVJjWLx8OWUmhqmuHYWpWy/ZLtH1FAnWyoEAatC7LyfRrwdEzeHl8JuNORCbkkn5T81jWp57LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zeRz5/L8aYtf3OuIN1+QpArmeSmG1ZnVoXkFb5E6+yY=; b=IwXYicsyy1xG30QFpVTrrDrHbOl4F6/mUMWgVRK1S40hMea/sPK3KcsU9G/blDS6n8rXc675bAa9CQHzi662Xe9OXMS5m7i1Nykun7h75E8UrMjPwhQYHNXkWqREHfz7zWYdRQT3/GbSkm27dGWV+6Hozi0ZIWxCmgy5uKcgvSXPbKKDi5cIlZEYlbNTWBML/afrQfM/G4s3xmly8JsqL65qNT+sQCp9xeV79DQ2wx5BkbRNz3i2whvNw58yMqAi4GhSuk/erjXtaQrIVXk/+pr6CVPi1CVGLkYNzfQyLb28GEu+yZlMHa+kaG7LhVfzl1Coxuy/O1Jo4U7WrIe37g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; From: Sia Jee Heng To: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, peter.maydell@linaro.org, jeeheng.sia@starfivetech.com, shannon.zhaosl@gmail.com, sunilvl@ventanamicro.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, liwei1518@gmail.com, dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com Subject: [PATCH v5 1/3] qtest: allow SPCR acpi table changes Date: Wed, 28 Aug 2024 18:59:18 -0700 Message-Id: <20240829015920.95778-2-jeeheng.sia@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> References: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SHXPR01CA0018.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::27) To NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1278:EE_|NT0PR01MB1021:EE_ X-MS-Office365-Filtering-Correlation-Id: 707aef32-dda7-4022-1af0-08dcc7ce3a1f X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|7416014|1800799024|41320700013|366016|38350700014; X-Microsoft-Antispam-Message-Info: KOSLfrzVe7UqKAFT7GvRKFV07Jtm45RQLCJ2i3JTWSYltVeEUoa/NHqcZyCr+RjRl7/vRzUYQdl/Kg9pHRpOsPKR/DcGZOfpbTyjIuZ18nezcVBpVqLJzKWzHPiVsMBZ1tS51Z80h+sYC4t17QB32zagQ3ufTGV71Z15lKDs3j4RUn9f61bdflfjmB7Al2etQtjVNu2hLzvtVqltKMGOTth39bS2+rlAX9rxA2nz9TDRKE5SJrCpy2zf3co6uSJLR8Q1wBkQmPVT2Ua6X4foluZ0PlS2Ipb94HV+TS2zyn05twgPchv/Tv25BY8deWiftp3hTWrUyFKPnWacPKdci6kDTk5Jcjxii/zAphk1PkbLiSXQ1PfiYr3d5cN1rNacWRQ6kMdeRb8AaWkGASJhUqOrMGzHILqSW/OnscDQKCJzvaPH3+jAnQH2GwK3yCgzrGUbQ692DTl2hT2CETGmUnDI30zEBCrnOf0cfvNSMQKh+HLuTZz2+xblh0a0mjvmeFEm5X2hY/QX2sAv02MsICoU40Qvt9jSVZG1+8Jjk/F5QfraWFK2SzDP39GmXAEG0VPtsiCKs3fL+Zq7IU9Y1dOPuf5JJuU9Xi/pf5hjFq1b4SJWiRl8pNhawXf3IxvK X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230040)(52116014)(7416014)(1800799024)(41320700013)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oDSkX0QHmPXXZDOLEwMdqypFilDcTnTo1frYAzxRyEBU8IWrEICxhYmV1rTb?= =?us-ascii?Q?9f/wvK/dRs3v+pIZfDoWXJUpaJQ/Y2MXG/wQwEJ7bgxo5J2d658QG8CnQ5Rb?= =?us-ascii?Q?7WzAZ9bwdSbMCEDfx6dxEY+u6ObKulZu1/TPBQVmF63FtcoGdfsRqFQhywi2?= =?us-ascii?Q?qoKxVaO6bK7K/XH91D4mskdq5TXgx7dzFuQDBORTkjGP+BVSYJAhZ+GZCF6y?= =?us-ascii?Q?WlqoX42I/QOx7xP9NomJVodUNsQjBms7C4GsD2AiQ2w30+GaTwPVsiPs5L9+?= =?us-ascii?Q?V98KLeNniRFpXd6JcZY6RCmuin4gM2otlCxMk+gER7vdJIdaGCBmE4JVQjig?= =?us-ascii?Q?HzrvAOAjmRdxFU1k9/reDkl97Uq6GrwDcrOvRbJ/VW8WSsWymXKMHwD4B15J?= =?us-ascii?Q?4r9HHfk2/8+R7QhIJ3R1ydNwwQMVjV1/q54H9E8rk5gp1uJfGMe3x/orEsdX?= =?us-ascii?Q?J2JggmDW1iQbWIyj+G2kjf32Lf2J07oLfZ8X7e1Gcjsd76lNI9rC6nqK1Vo1?= =?us-ascii?Q?KFJcPoRXeCP+vp3wad3t/MC6XlKivcWz5gl5mT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AontjbbfhQspCeouXoQXj+mkYPwGgM1ZHAW1?= =?us-ascii?Q?xSqLV24GyKOGQ0Mh0hDf/j3L2h4DZBuS/PoIeEtNuzZwPJtVUwoylYyyU+Qt?= =?us-ascii?Q?KWkmnuzYGnxORotpShiVoQbtsmb7iz5HRpzEyNpeVe2+GO5rTvl9k9kbnTni?= =?us-ascii?Q?Iw=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 707aef32-dda7-4022-1af0-08dcc7ce3a1f X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 01:59:33.3920 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VsDnwgSuoj3vaSsZBSmtkX5lN5npagPwiBFUqYupXsmxlojlEereXWIU4s4aVs9a+1q2zA1mQorgc/MCDxA6XcTqB8m8jL+6hLbPSrDV4N8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1021 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2406:e500:4440:2::728; envelope-from=jeeheng.sia@starfivetech.com; helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1724896879548116600 Content-Type: text/plain; charset="utf-8" Signed-off-by: Sia Jee Heng Reviewed-by: Sunil V L Acked-by: Alistair Francis Reviewed-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index dfb8523c8b..aae973048a 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1 +1,2 @@ /* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/riscv64/virt/SPCR", --=20 2.34.1 From nobody Sun Nov 24 07:24:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) ARC-Seal: i=2; a=rsa-sha256; t=1724896883; cv=pass; d=zohomail.com; s=zohoarc; b=IA6WOsZjA5J7An1ap7XWWftMISq32lOU9W+Nfk7dKPjgaY2a/4Fm+hTMjbrWesVufyllyK6bDU/GQct5mc/4HYe6LvLATmmUWbC0vOHTtbKQmxX0fzraw9i/uxAFfFSP1Qu0fqLygYeBWH28HMAl+shFcAwuMVkuFkDIjDWNXqY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724896883; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mAHOqQMDfUXhHM+KBOo/K7oWQabBYpCuJp8UPMq0prU=; b=igbqO9YxgoarMOIkcTvMbQ0hYaKXJlg7ph7wSdBnlgtqx4GEV5g6bvAv/Br5tj0U6Q6rjOI5ixECGyAc8d3MS151vTuQSCYfc+lm/zNy4dJ3PfO8ANGE52PPdP0FlicINwBH5kNoc68V3CTjIhXHcaKoXAAohody5zzS+goxdKU= ARC-Authentication-Results: i=2; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724896883332772.016834287709; Wed, 28 Aug 2024 19:01:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjUS5-0008N8-Ag; Wed, 28 Aug 2024 21:59:57 -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 1sjUS3-0008Ev-Bs; Wed, 28 Aug 2024 21:59:55 -0400 Received: from mail-bjschn02on20728.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::728] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjUS1-0007Ke-Eh; Wed, 28 Aug 2024 21:59:55 -0400 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) by NT0PR01MB1021.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Thu, 29 Aug 2024 01:59:36 +0000 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce]) by NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce%5]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 01:59:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V7TYrik/QwjEGYpGh8/hMHFQPjsg7ZHlksztQTQb5bgrRp5l4KimwDwgBVulROCFZYyfKLulakX53/fWw/gg5vXkgNpBxsXM5apnSUiMTv4smsznOSAOcasNm1NXCM7ejMO9kWHZMSxN/06OA+iQzcBwmwDyCoN3enNUbmRW9ER7vHkbgiZcqIaCC0Xl9DyDLmvMBSgbzjAWNO19O7Zmll2iRNZNeIFCmDGD3JGEBiRcr1v602YY8BMh7NVhIM5QSPXzJnuVyeQXXlrskCJPkY9hA6Od7vZ0zvOm4pPCSfzS3YEYVcG2QgSH5bManiuvX+UhjN5XASWKNFJ6SRQ+tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mAHOqQMDfUXhHM+KBOo/K7oWQabBYpCuJp8UPMq0prU=; b=Z7zRt4J40Y9aKIllX5X30T/qpGmvfEcy9tKtBBKz/nwq5uJegDjxTOTJvzfPe37KV7a4pTWJ9lxvk2W4TYiLwIyPVd4e4j+4AEapzuT4L1HUqe9gJiiBHAOmaC3u9k/WwkVMdt+L5PVBith+uLiyW/uqtfWIdQnsDjHTOf7x4nYQrvOHQ+Uezw/M3B5F8J0rHirLmPveGsOWEed4pLX4MX5yBzlpRmVVRk4IxL+oB/ET2Pql3nwpAsaA4DbKHepBSyctjlVY/lF2oDa+Ew9lxEAwJMtwBnEFAQdbSpYLBR+LshzzIyLs5Jnp1WRnKTZ/We0L0NFgi7YNHn/wvorVpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; From: Sia Jee Heng To: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, peter.maydell@linaro.org, jeeheng.sia@starfivetech.com, shannon.zhaosl@gmail.com, sunilvl@ventanamicro.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, liwei1518@gmail.com, dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com Subject: [PATCH v5 2/3] hw/acpi: Upgrade ACPI SPCR table to support SPCR table revision 4 format Date: Wed, 28 Aug 2024 18:59:19 -0700 Message-Id: <20240829015920.95778-3-jeeheng.sia@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> References: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SHXPR01CA0018.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::27) To NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1278:EE_|NT0PR01MB1021:EE_ X-MS-Office365-Filtering-Correlation-Id: 1333b4cc-a349-44e4-3f82-08dcc7ce3c16 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|7416014|1800799024|41320700013|366016|38350700014; X-Microsoft-Antispam-Message-Info: KTXMluSUG4rWxLoEJYxXfom9Ekxd50CAHA68zRtsh/NWVvTZpGzbVS3z9GwkRyRveOQcbPoCqtNNz00+K7QYwgO1CEkBXfZdSpVJR4bZY5YPpRmrwJ3gW52d5GTGeV705AVgBn3qCdpHYPP1WcBuhrVsMVHH+2mH+8p+dSawIt+xxRm0Xk37FhuRLC4tISun360HTDVCgplQGzsyQQFMxUMDoxagOUAcqydxnQygkQpiwwf6lwXRI7Lt4vZNKnolRn06NDOHtiAhXhs2n+eelJA0Nl1F++L/fVq2HcO/K+FijxhmjqGZ15ZsBVrfWoMj3srq0WtIBXQ001hQOY89JlUqCkjAAV+3LSPGQ2rmQJj6KLj8nOzM1QLVxpcv1IPg/s6nglQGEamiuxeSa8V3PaPzAWghGRtMqKIo5xDFmQnc6igqAD9c9aDb40eD23NT7izVSQEw2/MuVw4zRJfYjwueE7uQEVcn/76C1E12VMVo4+Zrg4CTHwHtg5tUXXanP3nGUzf2RaDR/2L/1IcCrcnVvy7YdvdIqZWSyEz8HD9J9tZBaop3gzkItVUuaJSgkUg3I+nMK5tVLAn0uh8T/1OTGkX+x3ZN/sua7Se2dlblB1ZG8yfw8oiEyzXZY3sZ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230040)(52116014)(7416014)(1800799024)(41320700013)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?JJ9EYw/eGcrmIqX95L4YYodDPumoRXW1Jh18oKt7P/gHck7fpp6u2I6GbtMP?= =?us-ascii?Q?o2DibwBd02+tSGSYINsrY6v7Pjv89VBj1xg0ZsHELcbc1+aaMMthJRwCluwj?= =?us-ascii?Q?uw7RFEw7ao7hMVyDdp0zMe8k31VnIe7Qa8Xk4QoGQiEvrNNi7JOK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qNVUByr2qbIuxzxEz1p137LzGPzpPcIy?= =?us-ascii?Q?O68dP0jWOu0JAM8gb+1PwSy/XotT4E2GddnQk7srKKCvMTMBw6UXs6IC1XJn?= =?us-ascii?Q?OL7cGuwsHRD/+zb715DQrf/ur5LrWSln03LlvPILfUFfNNZMvE4txVYJFUSC?= =?us-ascii?Q?wbokWZAEDRfOfRMdbsvbAF5VYqozk4p4K+Otbg/NR9nJnWXXXccs1xRj8SFT?= =?us-ascii?Q?1I1IySMMo8JDk7vSV2r3HN0ul7xnbjDd/lUeWdxEWnxSxMsUSJPCTOBbIEn4?= =?us-ascii?Q?3i4RBHEjkDKUIcX+Q5nav1x21nw33J5180KohWJ9q+6KZYqvXzeZVenrC03P?= =?us-ascii?Q?K//wIR9O/hTKhJukXtUwlEsdCqfGxwpDsHOCAvwuYgB7mThsumknRND5ta//?= =?us-ascii?Q?43XdvoDuAAUjxty0YctEjNmEqQASNGOQ5TAOTZO8QKw6FosBY/PpxYmkSS5D?= =?us-ascii?Q?p42wIPSH5hyUM/+dq+gG+9n2pzy5sYDUqT6XUASPTo8YTWBe7zJa6+QKsaWd?= =?us-ascii?Q?W0WxPLYdmX+u//Px0qn2+TvbxghKLkVZHWCbhenQPuAro1SrJCpwKfpnhKVT?= =?us-ascii?Q?4w=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1333b4cc-a349-44e4-3f82-08dcc7ce3c16 X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 01:59:36.6595 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XbG1f5J0MIcZtuT1AXouKpmyyAscowkP/5iIw1ciKz/naJQRCw6lX4hxGHAIgjpnAOruu3roOfHaHfmDLy9BVl6x0ABN0T9vamVCR4etVfU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1021 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2406:e500:4440:2::728; envelope-from=jeeheng.sia@starfivetech.com; helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1724896884278116600 Content-Type: text/plain; charset="utf-8" Update the SPCR table to accommodate the SPCR Table revision 4 [1]. The SPCR table has been modified to adhere to the revision 4 format [2]. [1]: https://learn.microsoft.com/en-us/windows-hardware/drivers/serports/se= rial-port-console-redirection-table [2]: https://github.com/acpica/acpica/pull/931 Signed-off-by: Sia Jee Heng Reviewed-by: Sunil V L Acked-by: Alistair Francis Reviewed-by: Michael S. Tsirkin --- hw/acpi/aml-build.c | 20 ++++++++++++++++---- hw/arm/virt-acpi-build.c | 8 ++++++-- hw/riscv/virt-acpi-build.c | 12 +++++++++--- include/hw/acpi/acpi-defs.h | 7 +++++-- include/hw/acpi/aml-build.h | 2 +- 5 files changed, 37 insertions(+), 12 deletions(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 6d4517cfbe..99a1b403e2 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -1996,7 +1996,7 @@ static void build_processor_hierarchy_node(GArray *tb= l, uint32_t flags, =20 void build_spcr(GArray *table_data, BIOSLinker *linker, const AcpiSpcrData *f, const uint8_t rev, - const char *oem_id, const char *oem_table_id) + const char *oem_id, const char *oem_table_id, const char *= name) { AcpiTable table =3D { .sig =3D "SPCR", .rev =3D rev, .oem_id =3D oem_i= d, .oem_table_id =3D oem_table_id }; @@ -2042,9 +2042,21 @@ void build_spcr(GArray *table_data, BIOSLinker *link= er, build_append_int_noprefix(table_data, f->pci_flags, 4); /* PCI Segment */ build_append_int_noprefix(table_data, f->pci_segment, 1); - /* Reserved */ - build_append_int_noprefix(table_data, 0, 4); - + if (rev < 4) { + /* Reserved */ + build_append_int_noprefix(table_data, 0, 4); + } else { + /* UartClkFreq */ + build_append_int_noprefix(table_data, f->uart_clk_freq, 4); + /* PreciseBaudrate */ + build_append_int_noprefix(table_data, f->precise_baudrate, 4); + /* NameSpaceStringLength */ + build_append_int_noprefix(table_data, f->namespace_string_length, = 2); + /* NameSpaceStringOffset */ + build_append_int_noprefix(table_data, f->namespace_string_offset, = 2); + /* NamespaceString[] */ + g_array_append_vals(table_data, name, f->namespace_string_length); + } acpi_table_end(linker, &table); } /* diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index f76fb117ad..0b6f5f8d8d 100644 --- a/hw/arm/virt-acpi-build.c +++ b/hw/arm/virt-acpi-build.c @@ -464,8 +464,12 @@ spcr_setup(GArray *table_data, BIOSLinker *linker, Vir= tMachineState *vms) .pci_flags =3D 0, .pci_segment =3D 0, }; - - build_spcr(table_data, linker, &serial, 2, vms->oem_id, vms->oem_table= _id); + /* + * Passing NULL as the SPCR Table for Revision 2 doesn't support + * NameSpaceString. + */ + build_spcr(table_data, linker, &serial, 2, vms->oem_id, vms->oem_table= _id, + NULL); } =20 /* diff --git a/hw/riscv/virt-acpi-build.c b/hw/riscv/virt-acpi-build.c index 36d6a3a412..68ef15acac 100644 --- a/hw/riscv/virt-acpi-build.c +++ b/hw/riscv/virt-acpi-build.c @@ -200,14 +200,15 @@ acpi_dsdt_add_uart(Aml *scope, const MemMapEntry *uar= t_memmap, =20 /* * Serial Port Console Redirection Table (SPCR) - * Rev: 1.07 + * Rev: 1.10 */ =20 static void spcr_setup(GArray *table_data, BIOSLinker *linker, RISCVVirtState *s) { + const char name[] =3D "."; AcpiSpcrData serial =3D { - .interface_type =3D 0, /* 16550 compatible */ + .interface_type =3D 0x12, /* 16550 compatible */ .base_addr.id =3D AML_AS_SYSTEM_MEMORY, .base_addr.width =3D 32, .base_addr.offset =3D 0, @@ -229,9 +230,14 @@ spcr_setup(GArray *table_data, BIOSLinker *linker, RIS= CVVirtState *s) .pci_function =3D 0, .pci_flags =3D 0, .pci_segment =3D 0, + .uart_clk_freq =3D 0, + .precise_baudrate =3D 0, + .namespace_string_length =3D sizeof(name), + .namespace_string_offset =3D 88, }; =20 - build_spcr(table_data, linker, &serial, 2, s->oem_id, s->oem_table_id); + build_spcr(table_data, linker, &serial, 4, s->oem_id, s->oem_table_id, + name); } =20 /* RHCT Node[N] starts at offset 56 */ diff --git a/include/hw/acpi/acpi-defs.h b/include/hw/acpi/acpi-defs.h index 0e6e82b339..2e6e341998 100644 --- a/include/hw/acpi/acpi-defs.h +++ b/include/hw/acpi/acpi-defs.h @@ -112,7 +112,6 @@ typedef struct AcpiSpcrData { uint8_t flow_control; uint8_t terminal_type; uint8_t language; - uint8_t reserved1; uint16_t pci_device_id; /* Must be 0xffff if not PCI device */ uint16_t pci_vendor_id; /* Must be 0xffff if not PCI device */ uint8_t pci_bus; @@ -120,7 +119,11 @@ typedef struct AcpiSpcrData { uint8_t pci_function; uint32_t pci_flags; uint8_t pci_segment; - uint32_t reserved2; + uint32_t uart_clk_freq; + uint32_t precise_baudrate; + uint32_t namespace_string_length; + uint32_t namespace_string_offset; + char namespace_string[]; } AcpiSpcrData; =20 #define ACPI_FADT_ARM_PSCI_COMPLIANT (1 << 0) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h index a3784155cb..68c0f2dbee 100644 --- a/include/hw/acpi/aml-build.h +++ b/include/hw/acpi/aml-build.h @@ -500,5 +500,5 @@ void build_tpm2(GArray *table_data, BIOSLinker *linker,= GArray *tcpalog, =20 void build_spcr(GArray *table_data, BIOSLinker *linker, const AcpiSpcrData *f, const uint8_t rev, - const char *oem_id, const char *oem_table_id); + const char *oem_id, const char *oem_table_id, const char *= name); #endif --=20 2.34.1 From nobody Sun Nov 24 07:24:27 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) ARC-Seal: i=2; a=rsa-sha256; t=1724896878; cv=pass; d=zohomail.com; s=zohoarc; b=Su9N7pPiU+OeAs6Nm0G9+IzDE8plv+FdEz/I8FarULuTM+CKTqFZeeDXvJ0SP+t4aR0SuRhkCwtLceYMXdDBAZ6PGPb9uuVvJ4okBbGcUxXAfX3O2ws68aTHYURVkjv3wLPhBp6DVt+JKBPhkPSG/aUghAwJ4n/DC0uAhnIkALo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1724896878; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=343RvMhlijlXsdUuwPVCO20/Wh/+SDip6rsGAOusnfA=; b=mVVqj8/dd+mefEKVriFsPcaV5hC9TTzNA4bQ/J4I6QyksnbdRs3fIcJI9qEITnaBEwDTC5sPluUyJROcXIkR0aMDmbMxeCziEK1NkL2hHGWW8CNL8gWhqOvceO6zTMJF+Xg0efWxJYcRI3uXEcB0nboRK9fWRTBDzlqJqkdlNnY= ARC-Authentication-Results: i=2; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=starfivetech.com) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1724896877822857.0978278940833; Wed, 28 Aug 2024 19:01:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjUS7-00006K-Rp; Wed, 28 Aug 2024 21:59:59 -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 1sjUS6-0008Rw-F8; Wed, 28 Aug 2024 21:59:58 -0400 Received: from mail-bjschn02on20728.outbound.protection.partner.outlook.cn ([2406:e500:4440:2::728] helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjUS4-0007Ke-KB; Wed, 28 Aug 2024 21:59:58 -0400 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) by NT0PR01MB1021.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.24; Thu, 29 Aug 2024 01:59:39 +0000 Received: from NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce]) by NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn ([fe80::affa:7fe4:57c8:11ce%5]) with mapi id 15.20.7897.027; Thu, 29 Aug 2024 01:59:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jquxbn9yrqqRe9aI8p0g6pVqEe7+Ze70F7ErbmV6D00pvwyGlU6DxzXor8FLOzaxJUKwFGNiFTOuvVED9pdfA6t8Slzso80AqpT3digi6h04/LC0SrlJrVu5/3t7Efxs8FvpF/v+beEjvkykzxBBov3hDEs1+UDc/l3bCLg4a/3A+w19aMFm7j9Hr5In9bHVd4svCgHnn5xfQHvjlVLQUob6IJYTgHmIEE4JWMOxHknV6v2kxrHXdZhgiDmTEkWZfsvhN2MnA4JFLMUcd95qivNAgKb4RMLiL0CJR9RtJZYid4CQfXXwCaUuIRUxQkBTNNdyADzVKezU0HzgUO+Fcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=343RvMhlijlXsdUuwPVCO20/Wh/+SDip6rsGAOusnfA=; b=I4+OVYLMz3lcnmK7svUviYS6dOqPoMnulix6WcedHLXo2ZOgTUxk9ubYJr82phpQlHNOPLRjDMGZ/+r8697zpoeKUH0KCW+Dw+N5Spml04d9Vs2noSIaVhqT6lyvhgtG+p10nr3ZFk4BxbQVXJZijVtbJGAHYaRxjfJ4wPXBWYoG2J+hg5JM7MayUFP2g4AtZQTtBRFBYyo8z6Hf8xVBYDh3tKmfGIR7XFDHkjyW+WjESrMxJr+BDwl+eZa+AYP4V0Zmqg6ox/KN2Cp10w1YlbxNYwdJeNxFZTpzRzc8y0n8+xXLVr0RGD3Abr1fN3YhBce1IPLxvZk/f6Vum0EDJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; From: Sia Jee Heng To: qemu-arm@nongnu.org, qemu-devel@nongnu.org, qemu-riscv@nongnu.org Cc: mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com, peter.maydell@linaro.org, jeeheng.sia@starfivetech.com, shannon.zhaosl@gmail.com, sunilvl@ventanamicro.com, palmer@dabbelt.com, alistair.francis@wdc.com, bin.meng@windriver.com, liwei1518@gmail.com, dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com Subject: [PATCH v5 3/3] tests/qtest/bios-tables-test: Update virt SPCR golden reference for RISC-V Date: Wed, 28 Aug 2024 18:59:20 -0700 Message-Id: <20240829015920.95778-4-jeeheng.sia@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> References: <20240829015920.95778-1-jeeheng.sia@starfivetech.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SHXPR01CA0018.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1b::27) To NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:12::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: NT0PR01MB1278:EE_|NT0PR01MB1021:EE_ X-MS-Office365-Filtering-Correlation-Id: c1628671-83a3-47f9-3fb0-08dcc7ce3dc2 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|7416014|1800799024|41320700013|366016|38350700014; X-Microsoft-Antispam-Message-Info: Ooys4qrrzQtOvzJF8AWfRdk6rS67AUcbqsTH9QSzs9qbMXlQXxExCbZ3E8yW/EeGpp91KxDnhv46glB8Pt1gVchbWB/k2a4oXE+AVkwuAPF9EcM+rt8vGnx2x74/htImX7auP1Y5Y/JmDPY4byh5m5yu9oQvPE2CpJ4q3eTtqr9Zz4L2/J7YFlN3izVPiDtu0qQq20+YNbVUNTptsfkxfEOnze78DSv/HZEbk1b4JCL2z08x21GlJJ3bOi1g/3laTYKLfV9vEdD+QIxb5I9OvGC5lOhf5udRrrJZE8nvnycr5kSV5gK1GxuxErZY5LI09DTBKlnQsum0iXitPRgcrlBhimUVa6r9R26EeUMb4WxchFvTPc560fvi9Gd4wUUhAeyDD/GALQW8tnSbDYpfTEg7fKTtOwRqTDjHOCysKjeJQHOXjsOHFulsZUl52Ee07KjjgSW1V85Z/0wSn5C4YMQri+TiG5MiH0LeS+NiWGyGvlpOTnvVPFhGYtzD12/r9a7HuJPiHZmwOjG5uo3hfisgGqFT8XJr14PT7Xec9AEZCGz3QPmHfnvzvbiTI1sF1IVXu6wfyHtNwnDcpXQgHF8AN27sQaNPD+ykhs7EGzCt4sdPK7eSSS0XTozDF6VA X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230040)(52116014)(7416014)(1800799024)(41320700013)(366016)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?NZfJ3zC8VqNndhKlWY/nyzpMt7p25CTLwBzSfu5sAhoutetyKLlJkj68T6OU?= =?us-ascii?Q?ZoMrNxmb3tBKritFonpPbTuOymY7pAZhL4a88m5cUA8OWj6l7CzZMy9lYRGp?= =?us-ascii?Q?7ZhE8Bw6VaJWwodZ/wO/DoBNa1w7fPBu4CyxUhJRFjIDo8rQZatmCxHpVilY?= =?us-ascii?Q?r1XFrpn5CTNb9lRcHOse1RpAgw07GOL9mNO+Aq8/Jqgn4KSySiyCWRdtliZk?= =?us-ascii?Q?mvVnulTsItQVpMsN0VJJRtjbvIX46yhir950tizBU7dY4EDgvPh0sEC1EHGx?= =?us-ascii?Q?gkbcJFIs4YaQWtIuekAl8hK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ascii?Q?Ak7dZUcN2yK3Q5h0GmNXmU4NWYG00qIoLYmoduQr0cnsTlvSwdVSCecubJqr?= =?us-ascii?Q?r5+d7ZLFg8Zrfx/smEbOzsJc8Z4jM7t0xLllviNSJXfXOEEomKCQhb4ZF64h?= =?us-ascii?Q?WeqW1H11PYbWsIauP6G+TyD04+KDe/KF9gNkfvWjWwP0FchMH8IZ/jd5KSks?= =?us-ascii?Q?DUnxMJwrNL+ZYcGvmt5OfG5XkcTcDj7fY9AswveMaa0CgEVDNvqklLoCrCoo?= =?us-ascii?Q?9qiZInTkX9sf7zhyJtlmhcmf04r1c8XTE3ZCqpaKCsWqzi4QByQWBM6iJ/Yw?= =?us-ascii?Q?IBtKQa4yh+oud27u561/H7Ph2lFExsQvwlqetPh8rCQCWsd6W2kZgiTiCLQJ?= =?us-ascii?Q?1nDk8OlfH39CXn36jflmThwLHFX/eKTHiWGHmk+U4fDi0dux7txcjeiZGstx?= =?us-ascii?Q?tg=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1628671-83a3-47f9-3fb0-08dcc7ce3dc2 X-MS-Exchange-CrossTenant-AuthSource: NT0PR01MB1278.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 01:59:39.3713 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kydAxeSDzXqasccR3+c6hBNt+gCsBkFXw4swrAelZVvs4SSKYZJxHTK1POpZldDJ0VDQgaEgfqiNF9iM2CESa/CrwZGU70emgotwEhP8gfI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: NT0PR01MB1021 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2406:e500:4440:2::728; envelope-from=jeeheng.sia@starfivetech.com; helo=CHN02-BJS-obe.outbound.protection.partner.outlook.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1724896880095116600 Content-Type: text/plain; charset="utf-8" Update the virt SPCR golden reference file for RISC-V to accommodate the SPCR Table revision 4 [1], utilizing the iasl binary compiled from the latest ACPICA repository. The SPCR table has been modified to adhere to the revision 4 format [2]. [1]: https://learn.microsoft.com/en-us/windows-hardware/drivers/serports/se= rial-port-console-redirection-table [2]: https://github.com/acpica/acpica/pull/931 Diffs from iasl: /* * Intel ACPI Component Architecture * AML/ASL+ Disassembler version 20200925 (64-bit version) * Copyright (c) 2000 - 2020 Intel Corporation * - * Disassembly of tests/data/acpi/riscv64/virt/SPCR, Wed Aug 28 18:28:19 2= 024 + * Disassembly of /tmp/aml-MN0NS2, Wed Aug 28 18:28:19 2024 * * ACPI Data Table [SPCR] * * Format: [HexOffset DecimalOffset ByteLength] FieldName : FieldValue */ [000h 0000 4] Signature : "SPCR" [Serial Port Cons= ole Redirection table] -[004h 0004 4] Table Length : 00000050 -[008h 0008 1] Revision : 02 -[009h 0009 1] Checksum : B9 +[004h 0004 4] Table Length : 0000005A +[008h 0008 1] Revision : 04 +[009h 0009 1] Checksum : 13 [00Ah 0010 6] Oem ID : "BOCHS " [010h 0016 8] Oem Table ID : "BXPC " [018h 0024 4] Oem Revision : 00000001 [01Ch 0028 4] Asl Compiler ID : "BXPC" [020h 0032 4] Asl Compiler Revision : 00000001 -[024h 0036 1] Interface Type : 00 +[024h 0036 1] Interface Type : 12 [025h 0037 3] Reserved : 000000 [028h 0040 12] Serial Port Register : [Generic Address Structure] [028h 0040 1] Space ID : 00 [SystemMemory] [029h 0041 1] Bit Width : 20 [02Ah 0042 1] Bit Offset : 00 [02Bh 0043 1] Encoded Access Width : 01 [Byte Access:8] [02Ch 0044 8] Address : 0000000010000000 [034h 0052 1] Interrupt Type : 10 [035h 0053 1] PCAT-compatible IRQ : 00 [036h 0054 4] Interrupt : 0000000A [03Ah 0058 1] Baud Rate : 07 [03Bh 0059 1] Parity : 00 [03Ch 0060 1] Stop Bits : 01 [03Dh 0061 1] Flow Control : 00 [03Eh 0062 1] Terminal Type : 00 [04Ch 0076 1] Reserved : 00 [040h 0064 2] PCI Device ID : FFFF [042h 0066 2] PCI Vendor ID : FFFF [044h 0068 1] PCI Bus : 00 [045h 0069 1] PCI Device : 00 [046h 0070 1] PCI Function : 00 [047h 0071 4] PCI Flags : 00000000 [04Bh 0075 1] PCI Segment : 00 -[04Ch 0076 4] Reserved : 00000000 +[04Ch 0076 004h] Uart Clock Freq : 00000000 +[050h 0080 004h] Precise Baud rate : 00000000 +[054h 0084 002h] NameSpaceStringLength : 0002 +[056h 0086 002h] NameSpaceStringOffset : 0058 +[058h 0088 002h] NamespaceString : "." -Raw Table Data: Length 80 (0x50) +Raw Table Data: Length 90 (0x5A) - 0000: 53 50 43 52 50 00 00 00 02 B9 42 4F 43 48 53 20 // SPCRP.....BO= CHS + 0000: 53 50 43 52 5A 00 00 00 04 13 42 4F 43 48 53 20 // SPCRZ.....BO= CHS 0010: 42 58 50 43 20 20 20 20 01 00 00 00 42 58 50 43 // BXPC ....= BXPC - 0020: 01 00 00 00 00 00 00 00 00 20 00 01 00 00 00 10 // ......... ..= .... + 0020: 01 00 00 00 12 00 00 00 00 20 00 01 00 00 00 10 // ......... ..= .... 0030: 00 00 00 00 10 00 0A 00 00 00 07 00 01 00 00 03 // ............= .... 0040: FF FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 // ............= .... + 0050: 00 00 00 00 02 00 58 00 2E 00 // ......X... Signed-off-by: Sia Jee Heng Reviewed-by: Michael S. Tsirkin Reviewed-by: Sunil V L --- tests/data/acpi/riscv64/virt/SPCR | Bin 80 -> 90 bytes tests/qtest/bios-tables-test-allowed-diff.h | 1 - 2 files changed, 1 deletion(-) diff --git a/tests/data/acpi/riscv64/virt/SPCR b/tests/data/acpi/riscv64/vi= rt/SPCR index 4da9daf65f71a13ac2b488d4e9728f194b569a43..09617f8793a6f7b1f08172f735b= 58aa748671540 100644 GIT binary patch delta 32 mcmWHD;tCFM4vJ!6U|+&Vu)bSV*mhNumqU^ delta 21 ccmazF;0g|K4hmpkU|`xgkxPn^VWO%w05v59j{pDw diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index aae973048a..dfb8523c8b 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1,2 +1 @@ /* List of comma-separated changed AML files to ignore */ -"tests/data/acpi/riscv64/virt/SPCR", --=20 2.34.1