From nobody Sun Feb 8 05:37:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1662002981; cv=none; d=zohomail.com; s=zohoarc; b=mci+y5nKyyWV7T5UE4qiSUDC9CAcoVy5iQzg218Gs9cCQK7V00+I41DiYDlgOLJMInpOGKKlqNMj/9Y0D2MQJ1ylZDdOwacpcm9bbPygb3WfnrLigASKQPSbUq0bgETX9J2nicR4OE5LNS7kqYgLf0+FPRSsbIx2cezuRb6TwUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662002981; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=7h1LCbUPzt5Oa3Q2BSrnKmT6KlaHLa78oGIQYyMM22E=; b=akzhEwn/RdJCIkCNbFqipjSuoVaamq+X6gSmkL1q/gAfpVr/T6GTb5UkTznR5Z7PGDRRO+v8dCYYDMRBwnBVl66j2Lz58H9dm4m7iisE3Tn+RpFuHi7Q+SLLGHPtNxHNjMWF3SlajYJD6iVlxl5jtow7I2ufCCQx2L/w/6eL/MI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662002981641941.4535346120763; Wed, 31 Aug 2022 20:29:41 -0700 (PDT) Received: from localhost ([::1]:56488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTatf-000275-Tb for importer@patchew.org; Wed, 31 Aug 2022 23:29:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTaro-0008RN-CD for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:44 -0400 Received: from mga12.intel.com ([192.55.52.136]:17693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarl-0007uj-FC for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:44 -0400 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 20:27:30 -0700 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 31 Aug 2022 20:27:28 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662002861; x=1693538861; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3HysGTG5BKJ/q3qUeWLum+k4xx1MNT2xlgtUg5jXhpQ=; b=VHNlX173U3f5Hoa5x1M1hE6cO2vtDrw6Et0aBSRb709En2hu/hnDaZNl sSkPnAqTKuU1xFIJYrrohde074c+se+hxqgjhifFr1kH6haqwb8NqBXji z9+bwn3VN22JK2Ht8QDfn1yIDaEfDJUw8jPML/d2oMbUrWuOnS5xGUNmX lrTKEGOu+LggQMOOn4lY1QI3cWJmC7dew058XmmGWfwmlYF076w+vamhb HEaS0Fx9EZ5WzHZQcKpMRN2ng6TY/RRww1hw5cOChPnU/9HNcu/pZNyVu FCyNuMVCZBPx1NrXJkiWJHd881cHM3Y7S8+fU+GsZIQJCQQ/8CtIVxJzd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="275354004" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="275354004" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="642142679" From: Robert Hoo To: imammedo@redhat.com, mst@redhat.com, xiaoguangrong.eric@gmail.com, ani@anisinha.ca, dan.j.williams@intel.com, jingqi.liu@intel.com Cc: qemu-devel@nongnu.org, robert.hu@intel.com, Robert Hoo Subject: [PATCH v3 1/5] tests/acpi: allow SSDT changes Date: Thu, 1 Sep 2022 11:27:17 +0800 Message-Id: <20220901032721.1392482-2-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220901032721.1392482-1-robert.hu@linux.intel.com> References: <20220901032721.1392482-1-robert.hu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=192.55.52.136; envelope-from=robert.hu@linux.intel.com; helo=mga12.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=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" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1662002983856100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index dfb8523c8b..eb8bae1407 100644 --- a/tests/qtest/bios-tables-test-allowed-diff.h +++ b/tests/qtest/bios-tables-test-allowed-diff.h @@ -1 +1,3 @@ /* List of comma-separated changed AML files to ignore */ +"tests/data/acpi/pc/SSDT.dimmpxm", +"tests/data/acpi/q35/SSDT.dimmpxm", --=20 2.31.1 From nobody Sun Feb 8 05:37:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1662002981; cv=none; d=zohomail.com; s=zohoarc; b=cAfOc3yXVLSggTmbhc5IClxuKeWqWWdbWdeeluFNohmCyTh4BnLneQQooEUgH64a1kQk4gWjgELgKhjxlBEjEfncx63FkIVmw1zHawOXip1lYzIKsJBCJPgZugncpuzpSRkwcOxhCbZ3i9d0P9KqgKJH5HuIpmfGwMKYd1NUQiw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662002981; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MsM7VwdO4jf5+yXs89/Jb2BugK5DNfkrXG0PPPtNrxg=; b=m1Lmb6dDWlgJK/+qzx2cycL1CQ5UkmbXaoQbFugqypA9cs4nYENeD6/gFRFuOPQ6AsNPWaHl6/LbdBHdoKMwPMNGSxYx+arEScxStI12ozTFxCe+WKRGBFR3drgoglwyavSne1CJW+hpfbzneLnChSU/Cpj4BMpFFHn//eQnQ9M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662002981646437.93824328803623; Wed, 31 Aug 2022 20:29:41 -0700 (PDT) Received: from localhost ([::1]:56490 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTatf-00027r-Vj for importer@patchew.org; Wed, 31 Aug 2022 23:29:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55504) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarp-0008Re-GG for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:45 -0400 Received: from mga12.intel.com ([192.55.52.136]:17697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarn-0007w7-8l for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:45 -0400 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 20:27:33 -0700 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 31 Aug 2022 20:27:31 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662002863; x=1693538863; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PsoLe8vgHzR+AwIMYbvv3iaU4zCz8BxOcycp5wGPxHg=; b=DUA0yIHcZVlrZ5DkzAYdKDfTVE/cnBFRH36UPxeX2ctqQf0prSfBqRzZ BtmTB4RXI3OuafGaNXW9WQC6aWLPRoCNgiK0Dzi4oA11fGb/WrkmaMewS arL3sZHBHS+cLqtuZWo4asBROHjM6z4Srz+tdNfPBHkYDNT8Sch84eN1G j9nRu5lauwHfj12OxdyUfCFYNRPuydGn2IUelnt4n2FD4jMYFxcD+XYDS J9FyL/vACKubEb83hw0TFgHaE/HYbC54SQUpOUfG1tnzWa0qlVB2Pgsvd zZfrcpVB9SZ7YUddlF0FmoiwCWZ6bfIMrh3qAltXP1yNWRrg0Cgr0L3lf g==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="275354010" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="275354010" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="642142688" From: Robert Hoo To: imammedo@redhat.com, mst@redhat.com, xiaoguangrong.eric@gmail.com, ani@anisinha.ca, dan.j.williams@intel.com, jingqi.liu@intel.com Cc: qemu-devel@nongnu.org, robert.hu@intel.com, Robert Hoo Subject: [PATCH v3 2/5] acpi/ssdt: Fix aml_or() and aml_and() in if clause Date: Thu, 1 Sep 2022 11:27:18 +0800 Message-Id: <20220901032721.1392482-3-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220901032721.1392482-1-robert.hu@linux.intel.com> References: <20220901032721.1392482-1-robert.hu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=192.55.52.136; envelope-from=robert.hu@linux.intel.com; helo=mga12.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=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" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1662002983863100004 Content-Type: text/plain; charset="utf-8" In If condition, using bitwise and/or, rather than logical and/or. The result change in AML code: If (((Local6 =3D=3D Zero) | (Arg0 !=3D Local0))) =3D=3D> If (((Local6 =3D=3D Zero) || (Arg0 !=3D Local0))) If (((ObjectType (Arg3) =3D=3D 0x04) & (SizeOf (Arg3) =3D=3D One))) =3D=3D> If (((ObjectType (Arg3) =3D=3D 0x04) && (SizeOf (Arg3) =3D=3D One))) Fixes: 90623ebf603 ("nvdimm acpi: check UUID") Fixes: 4568c948066 ("nvdimm acpi: save arg3 of _DSM method") Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu Reviewed-by: Igor Mammedov --- hw/acpi/nvdimm.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c index 31e46df0bd..201317c611 100644 --- a/hw/acpi/nvdimm.c +++ b/hw/acpi/nvdimm.c @@ -1037,7 +1037,7 @@ static void nvdimm_build_common_dsm(Aml *dev, =20 uuid_invalid =3D aml_lnot(aml_equal(uuid, expected_uuid)); =20 - unsupport =3D aml_if(aml_or(unpatched, uuid_invalid, NULL)); + unsupport =3D aml_if(aml_lor(unpatched, uuid_invalid)); =20 /* * function 0 is called to inquire what functions are supported by @@ -1069,10 +1069,9 @@ static void nvdimm_build_common_dsm(Aml *dev, * in the DSM Spec. */ pckg =3D aml_arg(3); - ifctx =3D aml_if(aml_and(aml_equal(aml_object_type(pckg), + ifctx =3D aml_if(aml_land(aml_equal(aml_object_type(pckg), aml_int(4 /* Package */)) /* It is a Package? */, - aml_equal(aml_sizeof(pckg), aml_int(1)) /* 1 element? *= /, - NULL)); + aml_equal(aml_sizeof(pckg), aml_int(1)) /* 1 element? *= /)); =20 pckg_index =3D aml_local(2); pckg_buf =3D aml_local(3); --=20 2.31.1 From nobody Sun Feb 8 05:37:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1662003271; cv=none; d=zohomail.com; s=zohoarc; b=Fz8qBFfk5k4k2HFzDbWghfJEYvkjEQohQQcdcEHXciPm2NZK4lQexokkw5T3dsf2Q7Mki1u6XAaSJawZdcNeIma3iPWyTCYlxw7PgCGcHTwPrhz2V4kJdHB2Po1f4pnfu4nhzsKq/ZTBr+8UKNq7aWLK1NBFcABGgaEI/5nu+2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662003271; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=WMWvPfHvpS0NHPTcaQDhliZ0IkMTc2v4BKKHZCVQZto=; b=Tz04CHY3dhECuaYkQmkrLGTOYRXeKas5/4olihRlAQap3UoGwLxvplHJQ6wUcIQQJh4t1G8GpHd8eJzbebm806KNWn7Wb90vygHsqwIDSGaYFITJsuy1YaCS+7Wc+Jg7Z2XWKNZqRkp2ClJ1LE/25UzUpISATsrzW9tktFqMKEM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662003271309686.8723376388708; Wed, 31 Aug 2022 20:34:31 -0700 (PDT) Received: from localhost ([::1]:42430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTayM-00066l-9S for importer@patchew.org; Wed, 31 Aug 2022 23:34:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarr-0008Sp-Ec for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:50 -0400 Received: from mga12.intel.com ([192.55.52.136]:17693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTaro-0007uj-KS for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:47 -0400 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 20:27:35 -0700 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 31 Aug 2022 20:27:33 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662002864; x=1693538864; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HjBvEXpRDSUmainUOejjqublh4jt3/bIcS6XL2P8Pck=; b=gYC0RyY/fOWxYfLtsWkrFJBN5BTQ3Kqj4nSZrYRtX3j4p0diWXHldjWn L4mLwMEovhvIqcm6liJFqKzY1D0OufXQ0Ul02v+V0UoQHsFOqYR8jc1Yn uWYIcTKmqdh3jbv/frmBzhubsVQxvDj5BYbLpZ74QZ2PyyIOoAyJuTQc1 BSWJfo/AsWe50u4A9IK16tCX5i3eyIx/zVtzPV4dZxhvtF8WuMZkWknPr Ubw1+A/lBr0ruAIRoiALqfD8kHKdh04aWSTGUjs8WDWze447YFewE7WDk Xy84AmFWKtAy8zfiOyoDKyLawkgNtJ5aFxERQ2lD7fWUYravf3QQ8242m g==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="275354020" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="275354020" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="642142700" From: Robert Hoo To: imammedo@redhat.com, mst@redhat.com, xiaoguangrong.eric@gmail.com, ani@anisinha.ca, dan.j.williams@intel.com, jingqi.liu@intel.com Cc: qemu-devel@nongnu.org, robert.hu@intel.com, Robert Hoo Subject: [PATCH v3 3/5] acpi/nvdimm: define macro for NVDIMM Device _DSM Date: Thu, 1 Sep 2022 11:27:19 +0800 Message-Id: <20220901032721.1392482-4-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220901032721.1392482-1-robert.hu@linux.intel.com> References: <20220901032721.1392482-1-robert.hu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=192.55.52.136; envelope-from=robert.hu@linux.intel.com; helo=mga12.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=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" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1662003271476100003 Content-Type: text/plain; charset="utf-8" Since it will be heavily used in next patch, define macro NVDIMM_DEVICE_DSM_UUID for "4309AC30-0D11-11E4-9191-0800200C9A66", which is NVDIMM device specific method uuid defined in NVDIMM _DSM interface spec, Section 3. [1] No functional changes in this patch. [1] https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu Reviewed-by: Igor Mammedov --- hw/acpi/nvdimm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c index 201317c611..afff911c1e 100644 --- a/hw/acpi/nvdimm.c +++ b/hw/acpi/nvdimm.c @@ -922,6 +922,7 @@ void nvdimm_init_acpi_state(NVDIMMState *state, MemoryR= egion *io, #define NVDIMM_DSM_RFIT_STATUS "RSTA" =20 #define NVDIMM_QEMU_RSVD_UUID "648B9CF2-CDA1-4312-8AD9-49C4AF32BD62" +#define NVDIMM_DEVICE_DSM_UUID "4309AC30-0D11-11E4-9191-0800200C9A66" =20 static void nvdimm_build_common_dsm(Aml *dev, NVDIMMState *nvdimm_state) @@ -1029,8 +1030,7 @@ static void nvdimm_build_common_dsm(Aml *dev, /* UUID for QEMU internal use */), expected_uuid)); aml_append(elsectx, ifctx); elsectx2 =3D aml_else(); - aml_append(elsectx2, aml_store( - aml_touuid("4309AC30-0D11-11E4-9191-0800200C9A66") + aml_append(elsectx2, aml_store(aml_touuid(NVDIMM_DEVICE_DSM_UUID) /* UUID for NVDIMM Devices */, expected_uuid)); aml_append(elsectx, elsectx2); aml_append(method, elsectx); --=20 2.31.1 From nobody Sun Feb 8 05:37:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1662003267; cv=none; d=zohomail.com; s=zohoarc; b=BlS1gL7stWyvZRECiTy4Y58qORqNY4TtwW+y44uUjtVMuAtTZJhhGObOP+FXPtjZxCQLcSqUDjrC1JV2OXh5XRZUPY8VZW1yyXxpTEawXwT0sX3Doz2Oo7sFz74n1EAfpUmZh/3NnNv74iNEcYhZuhEe2tW/xWTpO8/Yx2qgRtw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662003267; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JBMB/EdXmaKdxWpJMXiouHc1tYskWQXPIrS1ytZ27XE=; b=j4CqVidiexugNT8glv17R/JgMUkistq8fmGdPLtWWPEHiSVqQQdJB7lukgMpf+lMEgCLWQxwpC+QV4n12zSsdyFvnQyMjk+O7uu1w8jQQ5n4z73UCWKALi6IhB5Ic2/kQAqQ8ZiPmHZJyGMQe7Wtfhb1sBdOcA9bk+rZcvG1ixU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 166200326731850.333314717960775; Wed, 31 Aug 2022 20:34:27 -0700 (PDT) Received: from localhost ([::1]:42420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTayI-00064k-BE for importer@patchew.org; Wed, 31 Aug 2022 23:34:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarq-0008SR-Oi for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:46 -0400 Received: from mga12.intel.com ([192.55.52.136]:17689) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTaro-0007uc-P9 for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:46 -0400 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 20:27:38 -0700 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 31 Aug 2022 20:27:36 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662002864; x=1693538864; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=r41jw6gV8lsn24Xi4TOsG+w1pimVjPvASJ5XpcesKzE=; b=MSeswOrAyo09D+HOtBq8RhaC8leqTD923Xy7vCHGJate/bRRUcThIT74 y+STO4c5klSH+WTQhqfWYfa+k4kfjlifgR5kZPUqp7bOEwW6njklVz70+ XUfgI0ruFNlhw7C5Q0r/1v2PNCQIHCzTlDgjmGPWp0KDVVr/uXhpaM10f taGI2UzqtWx/YtxX30C/l6Iozl0GCvP5CmbUiM70R+1zAnPGjWQqqQQG1 CFpZbt8z3Atn86MEPzdpJZCq9GWXmXxMh1H9n+gxBE2eLuzK1NKGd+sne aL+d5T8QEtd5wSIs/Cyrqcs8Z3BUEVL6tIgAc61Utoa5wdrtQe01DwxsH w==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="275354028" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="275354028" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="642142714" From: Robert Hoo To: imammedo@redhat.com, mst@redhat.com, xiaoguangrong.eric@gmail.com, ani@anisinha.ca, dan.j.williams@intel.com, jingqi.liu@intel.com Cc: qemu-devel@nongnu.org, robert.hu@intel.com, Robert Hoo Subject: [PATCH v3 4/5] acpi/nvdimm: Implement ACPI NVDIMM Label Methods Date: Thu, 1 Sep 2022 11:27:20 +0800 Message-Id: <20220901032721.1392482-5-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220901032721.1392482-1-robert.hu@linux.intel.com> References: <20220901032721.1392482-1-robert.hu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=192.55.52.136; envelope-from=robert.hu@linux.intel.com; helo=mga12.intel.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=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" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1662003269501100001 Content-Type: text/plain; charset="utf-8" Recent ACPI spec [1] has defined NVDIMM Label Methods _LS{I,R,W}, which deprecates corresponding _DSM Functions defined by PMEM _DSM Interface spec [2]. Since the semantics of the new Label Methods are same as old _DSM methods, the implementations here simply wrapper old ones. ASL form diff can be found in next patch of updating golden master binaries. [1] ACPI Spec v6.4, 6.5.10 NVDIMM Label Methods https://uefi.org/sites/default/files/resources/ACPI_Spec_6_4_Jan22.pdf [2] Intel PMEM _DSM Interface Spec v2.0, 3.10 Deprecated Functions https://pmem.io/documents/IntelOptanePMem_DSM_Interface-V2.0.pdf Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu --- hw/acpi/nvdimm.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c index afff911c1e..516acfe53b 100644 --- a/hw/acpi/nvdimm.c +++ b/hw/acpi/nvdimm.c @@ -1243,6 +1243,7 @@ static void nvdimm_build_fit(Aml *dev) static void nvdimm_build_nvdimm_devices(Aml *root_dev, uint32_t ram_slots) { uint32_t slot; + Aml *method, *pkg, *field, *com_call; =20 for (slot =3D 0; slot < ram_slots; slot++) { uint32_t handle =3D nvdimm_slot_to_handle(slot); @@ -1260,6 +1261,96 @@ static void nvdimm_build_nvdimm_devices(Aml *root_de= v, uint32_t ram_slots) */ aml_append(nvdimm_dev, aml_name_decl("_ADR", aml_int(handle))); =20 + /* + * ACPI v6.4: Section 6.5.10 NVDIMM Label Methods + */ + /* _LSI */ + method =3D aml_method("_LSI", 0, AML_SERIALIZED); + com_call =3D aml_call5(NVDIMM_COMMON_DSM, + aml_touuid(NVDIMM_DEVICE_DSM_UUID), + aml_int(1), aml_int(4), aml_int(0), + aml_int(handle)); + aml_append(method, aml_store(com_call, aml_local(0))); + + aml_append(method, aml_create_dword_field(aml_local(0), + aml_int(0), "STTS")); + aml_append(method, aml_create_dword_field(aml_local(0), aml_int(4), + "SLSA")); + aml_append(method, aml_create_dword_field(aml_local(0), aml_int(8), + "MAXT")); + + pkg =3D aml_package(3); + aml_append(pkg, aml_name("STTS")); + aml_append(pkg, aml_name("SLSA")); + aml_append(pkg, aml_name("MAXT")); + aml_append(method, aml_name_decl("RET", pkg)); + aml_append(method, aml_return(aml_name("RET"))); + + aml_append(nvdimm_dev, method); + + /* _LSR */ + method =3D aml_method("_LSR", 2, AML_SERIALIZED); + aml_append(method, aml_name_decl("INPT", aml_buffer(8, NULL))); + + aml_append(method, aml_create_dword_field(aml_name("INPT"), + aml_int(0), "OFST")); + aml_append(method, aml_create_dword_field(aml_name("INPT"), + aml_int(4), "LEN")); + aml_append(method, aml_store(aml_arg(0), aml_name("OFST"))); + aml_append(method, aml_store(aml_arg(1), aml_name("LEN"))); + + pkg =3D aml_package(1); + aml_append(pkg, aml_name("INPT")); + aml_append(method, aml_name_decl("PKG1", pkg)); + + com_call =3D aml_call5(NVDIMM_COMMON_DSM, + aml_touuid(NVDIMM_DEVICE_DSM_UUID), + aml_int(1), aml_int(5), aml_name("PKG1"), + aml_int(handle)); + aml_append(method, aml_store(com_call, aml_local(3))); + field =3D aml_create_dword_field(aml_local(3), aml_int(0), "STTS"); + aml_append(method, field); + field =3D aml_create_field(aml_local(3), aml_int(32), + aml_shiftleft(aml_name("LEN"), aml_int(3)= ), + "LDAT"); + aml_append(method, field); + aml_append(method, aml_name_decl("LSA", aml_buffer(0, NULL))); + aml_append(method, aml_to_buffer(aml_name("LDAT"), aml_name("LSA")= )); + pkg =3D aml_package(2); + aml_append(pkg, aml_name("STTS")); + aml_append(pkg, aml_name("LSA")); + aml_append(method, aml_name_decl("RET", pkg)); + aml_append(method, aml_return(aml_name("RET"))); + aml_append(nvdimm_dev, method); + + /* _LSW */ + method =3D aml_method("_LSW", 3, AML_SERIALIZED); + aml_append(method, aml_store(aml_arg(2), aml_local(2))); + aml_append(method, aml_name_decl("INPT", aml_buffer(8, NULL))); + field =3D aml_create_dword_field(aml_name("INPT"), + aml_int(0), "OFST"); + aml_append(method, field); + field =3D aml_create_dword_field(aml_name("INPT"), + aml_int(4), "TLEN"); + aml_append(method, field); + aml_append(method, aml_store(aml_arg(0), aml_name("OFST"))); + aml_append(method, aml_store(aml_arg(1), aml_name("TLEN"))); + + aml_append(method, aml_concatenate(aml_name("INPT"), aml_local(2), + aml_name("INPT"))); + pkg =3D aml_package(1); + aml_append(pkg, aml_name("INPT")); + aml_append(method, aml_name_decl("PKG1", pkg)); + com_call =3D aml_call5(NVDIMM_COMMON_DSM, + aml_touuid(NVDIMM_DEVICE_DSM_UUID), + aml_int(1), aml_int(6), aml_name("PKG1"), + aml_int(handle)); + aml_append(method, aml_store(com_call, aml_local(3))); + field =3D aml_create_dword_field(aml_local(3), aml_int(0), "STTS"); + aml_append(method, field); + aml_append(method, aml_return(aml_to_integer(aml_name("STTS")))); + aml_append(nvdimm_dev, method); + nvdimm_build_device_dsm(nvdimm_dev, handle); aml_append(root_dev, nvdimm_dev); } --=20 2.31.1 From nobody Sun Feb 8 05:37:01 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass(p=none dis=none) header.from=linux.intel.com ARC-Seal: i=1; a=rsa-sha256; t=1662003394; cv=none; d=zohomail.com; s=zohoarc; b=l2CO95fH7cetcfQi23Y12kAXg/P2OEDJkvU58g+YTUdrnVT5Hb2HH3A6ugMpACAFxG8mjq9sPc1wNAMlICGgEBjkANuEjAmQ5XD0Ux8JOrmnjxaudJvBsei/S/aOrWJcsbAMS6u5RrtaSdJCZzYwO6UZKVVorS4XmyYfUHk83gI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662003394; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TFzBGHtvzkSOSI6bMCr3EB9SNT5KInDfrL0OerQyNJM=; b=F5x/7FdiVm87QWwlF1H9flkp7uiWHux/JiYZuJYrsKxxhc1Tkk0zo6Dg6eBrI0AiDxqxhC6liMtwxUuwypk6BkKs3+kAr1PAkHyWJfsZWjtQjkQBkNIJ/TINN5fHkSe+9h4WLqD14eaZiW4KVSOr4X7ccHaVgJcovAL2iEIb5Dg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1662003394277447.68501223604005; Wed, 31 Aug 2022 20:36:34 -0700 (PDT) Received: from localhost ([::1]:36626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTb0L-0008TK-7a for importer@patchew.org; Wed, 31 Aug 2022 23:36:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarz-0000FV-Mv for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:55 -0400 Received: from mga12.intel.com ([192.55.52.136]:17697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTarp-0007w7-Oj for qemu-devel@nongnu.org; Wed, 31 Aug 2022 23:27:55 -0400 Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 20:27:41 -0700 Received: from sqa-gate.sh.intel.com (HELO robert-clx2.tsp.org) ([10.239.48.212]) by orsmga008.jf.intel.com with ESMTP; 31 Aug 2022 20:27:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662002865; x=1693538865; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=//B9Et46IkTNA4liFhpc2ukBu1B2iGHUJzNNGzVHG68=; b=VfWHxSziWLFbLDuL/b7aqYv2x0aVS9HNofu6exrq5LAN6kiMUVJ0lvun dQ7wEJu8HxLXlGCyki5+Kk+Kgv5hPA8CINI470QOgqLQH5jU46E3VEJgn gJz+hA+dD3pBMcSP92vPUPBt3fVBLR2s67OkFVA5FKEV+qT3/j/jAWwBG 8V/nl2tb9hsAE1CMsvXPQkLPG/8WxirNiHVUf5auc+3CSLpogcNYSLVEW KECEOQXeJXr95zFm2vBJDWKiwcvCHcRoVZFDLvjLe4zJBDV4cvlVBbSYb q3v3xmOMUBBvq+HNW+Evtn1tkVEVoKnDq79a2WxhsvN9ylwJXpckoEewU g==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="275354039" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="275354039" X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="642142725" From: Robert Hoo To: imammedo@redhat.com, mst@redhat.com, xiaoguangrong.eric@gmail.com, ani@anisinha.ca, dan.j.williams@intel.com, jingqi.liu@intel.com Cc: qemu-devel@nongnu.org, robert.hu@intel.com, Robert Hoo Subject: [PATCH v3 5/5] test/acpi/bios-tables-test: SSDT: update golden master binaries Date: Thu, 1 Sep 2022 11:27:21 +0800 Message-Id: <20220901032721.1392482-6-robert.hu@linux.intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220901032721.1392482-1-robert.hu@linux.intel.com> References: <20220901032721.1392482-1-robert.hu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: none client-ip=192.55.52.136; envelope-from=robert.hu@linux.intel.com; helo=mga12.intel.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1662003396076100001 Content-Type: text/plain; charset="utf-8" And empty bios-tables-test-allowed-diff.h. Diff of ASL form, cited from qtest testlog.txt: Reviewed-by: Jingqi Liu --- /tmp/asl-0WHMR1.dsl 2022-08-30 11:38:09.406635934 +0800 +++ /tmp/asl-APDMR1.dsl 2022-08-30 11:38:09.403635663 +0800 @@ -1,30 +1,30 @@ /* * Intel ACPI Component Architecture * AML/ASL+ Disassembler version 20180629 (64-bit version) * Copyright (c) 2000 - 2018 Intel Corporation * * Disassembling to symbolic ASL+ operators * - * Disassembly of tests/data/acpi/pc/SSDT.dimmpxm, Tue Aug 30 11:38:09 2022 + * Disassembly of /tmp/aml-1AEMR1, Tue Aug 30 11:38:09 2022 * * Original Table Header: * Signature "SSDT" - * Length 0x000002DE (734) + * Length 0x00000765 (1893) * Revision 0x01 - * Checksum 0x56 + * Checksum 0x36 * OEM ID "BOCHS " * OEM Table ID "NVDIMM" * OEM Revision 0x00000001 (1) * Compiler ID "BXPC" * Compiler Version 0x00000001 (1) */ DefinitionBlock ("", "SSDT", 1, "BOCHS ", "NVDIMM", 0x00000001) { Scope (\_SB) { Device (NVDR) { Name (_HID, "ACPI0012" /* NVDIMM Root Device */) // _HID: Har= dware ID Method (NCAL, 5, Serialized) { Local6 =3D MEMA /* \MEMA */ @@ -49,52 +49,52 @@ ODAT, 32736 } If ((Arg4 =3D=3D Zero)) { Local0 =3D ToUUID ("2f10e7a4-9e91-11e4-89d3-123b93f75c= ba") } ElseIf ((Arg4 =3D=3D 0x00010000)) { Local0 =3D ToUUID ("648b9cf2-cda1-4312-8ad9-49c4af32bd= 62") } Else { Local0 =3D ToUUID ("4309ac30-0d11-11e4-9191-0800200c9a= 66") } - If (((Local6 =3D=3D Zero) | (Arg0 !=3D Local0))) + If (((Local6 =3D=3D Zero) || (Arg0 !=3D Local0))) { If ((Arg2 =3D=3D Zero)) { Return (Buffer (One) { 0x00 = // . }) } Return (Buffer (One) { 0x01 = // . }) } HDLE =3D Arg4 REVS =3D Arg1 FUNC =3D Arg2 - If (((ObjectType (Arg3) =3D=3D 0x04) & (SizeOf (Arg3) =3D= =3D One))) + If (((ObjectType (Arg3) =3D=3D 0x04) && (SizeOf (Arg3) =3D= =3D One))) { Local2 =3D Arg3 [Zero] Local3 =3D DerefOf (Local2) FARG =3D Local3 } NTFI =3D Local6 Local1 =3D (RLEN - 0x04) If ((Local1 < 0x08)) { Local2 =3D Zero Name (TBUF, Buffer (One) { 0x00 = // . }) Local7 =3D Buffer (Zero){} @@ -161,45 +161,234 @@ Else { If ((Local1 =3D=3D Zero)) { Return (Local2) } Local3 +=3D Local1 Concatenate (Local2, Local0, Local2) } } } Device (NV00) { Name (_ADR, One) // _ADR: Address + Method (_LSI, 0, Serialized) // _LSI: Label Storage Infor= mation + { + Local0 =3D NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800= 200c9a66"), One, 0x04, Zero, One) + CreateDWordField (Local0, Zero, STTS) + CreateDWordField (Local0, 0x04, SLSA) + CreateDWordField (Local0, 0x08, MAXT) + Name (RET, Package (0x03) + { + STTS, + SLSA, + MAXT + }) + Return (RET) /* \_SB_.NVDR.NV00._LSI.RET_ */ + } + + Method (_LSR, 2, Serialized) // _LSR: Label Storage Read + { + Name (INPT, Buffer (0x08) + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 = // ........ + }) + CreateDWordField (INPT, Zero, OFST) + CreateDWordField (INPT, 0x04, LEN) + OFST =3D Arg0 + LEN =3D Arg1 + Name (PKG1, Package (0x01) + { + INPT + }) + Local3 =3D NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800= 200c9a66"), One, 0x05, PKG1, One) + CreateDWordField (Local3, Zero, STTS) + CreateField (Local3, 0x20, (LEN << 0x03), LDAT) + Name (LSA, Buffer (Zero){}) + ToBuffer (LDAT, LSA) /* \_SB_.NVDR.NV00._LSR.LSA_ */ + Name (RET, Package (0x02) + { + STTS, + LSA + }) + Return (RET) /* \_SB_.NVDR.NV00._LSR.RET_ */ + } + + Method (_LSW, 3, Serialized) // _LSW: Label Storage Write + { + Local2 =3D Arg2 + Name (INPT, Buffer (0x08) + { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 = // ........ + }) + CreateDWordField (INPT, Zero, OFST) + CreateDWordField (INPT, 0x04, TLEN) + OFST =3D Arg0 + TLEN =3D Arg1 + Concatenate (INPT, Local2, INPT) /* \_SB_.NVDR.NV00._L= SW.INPT */ + Name (PKG1, Package (0x01) + { + INPT + }) + Local3 =3D NCAL (ToUUID ("4309ac30-0d11-11e4-9191-0800= 200c9a66"), One, 0x06, PKG1, One) + CreateDWordField (Local3, Zero, STTS) + Return (ToInteger (STTS)) + } + Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific = Method { Return (NCAL (Arg0, Arg1, Arg2, Arg3, One)) } } ... // iterates in each NV devices Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu --- tests/data/acpi/pc/SSDT.dimmpxm | Bin 734 -> 1893 bytes tests/data/acpi/q35/SSDT.dimmpxm | Bin 734 -> 1893 bytes tests/qtest/bios-tables-test-allowed-diff.h | 2 -- 3 files changed, 2 deletions(-) diff --git a/tests/data/acpi/pc/SSDT.dimmpxm b/tests/data/acpi/pc/SSDT.dimm= pxm index ac55387d57e48adb99eb738a102308688a262fb8..2316d8f959267a178b12379dbcb= 439a6306b0db5 100644 GIT binary patch literal 1893 zcmdUw&ubGw6vt#Ux>Qg^Hf4{3cfp%iPoBJaD0ufGcu?nUe@F{zMJT$5nKy6VzWvPiJ0!YZGVUZ0 z;wB2U;*>5{XG@BzvNb}eFjp_aoR&NDmR_*Tb#_V>%mojDFw(; z!KY^rZuj42irx3ho0sFSUAuoF%I9AU6@}qFq1VGmOg(Mb!AQ?|3I(2v z297QP7+nN1+5)uT(j)(2o5cOiHb=3DMG2)T5_^{5BLv;k*Y0a_Awf{7i6V2WI96lP>- zNrf0{?q1n(9lEgv$8pgX>><=3D?!rZ*;hE00UAv|)-EEFK8#_}NyxwKW%)p!U3FD$m& z2y40_p`4n~WW^Z5HCZ^n@27&5aq5hFT=3DBZn~LZd&Z)7!KxAHkSk8S8(o5b~sF0mP_(wu>{vSDS; z@w#E?kcV6dxm=3DmBwi>}owQdMWg4somo-QO1=3Dn+LE&Wy7TBwU0T*QY1Pm}F4*3#b7o zoJ+&b>?G*nTQ#T#T0rB3yAkgNerrCy-!)djPh2Jw%p%?8m#>xD8wBg zbYVCp^58M#@Cl%xlUIy0*9)V}p0UUt63b1V!XFa*bA#lwFo?wd)}i8=3DJM@G3&?4dZ luKNb5nD}6)_~<4#t%(LAjJ^|Hw{uC>PEKQ(G&v)I zVKOVD5|2#vWcBP;?J7Z{ECp`N4Bcur;L=3DM?|Tn}duZdvHUqV#KkW}~~b+!9^Pq_aseZ&7e|H|%N4=3D(#l!+;zW ze0uiacJFOk>bzIpyqtLL+P!m8KL27!5=3DQofZWp86@YA{-jCTDx+V&UhV90NxP~f>} z;OG*7(M2GmO+X7SJn|p5NZj9SadfMNkV`jQk9t5%>u{zOpe1o9xVGaEOp%L?!i)?p zsSrbr-Ag;JLpQeII4;_PJ%ri~m>YN9utD!Rgh!5g~etI zVNEwglvNX&tQbSMD(eQK3oucr0fmkWz;Wq84k{vz?2e6Cix~<7Gz*5e{U{SMP`YV5 zD-N6k`wmkhhRlpjauFTFkwX}=3DH!b#Y3t3WLW7l zylxmeNb5nD}6)_~<4#t%(LAjJ^|Hw{uC>PEKQ(G&v)I zVKOVD5|2#vWc