From nobody Sun Feb 8 22:35:19 2026 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-Seal: i=1; a=rsa-sha256; t=1612490759; cv=none; d=zohomail.com; s=zohoarc; b=RDPaLPjlo1KgteLrTamccVtr0BuLXRhcaWCgKr+efaLw6wRZtXSpwjoF1NqOOvQQyUPj8zlMZhfQ9RWYTRp1sCIKrMK08pIRRGn70Q+nKrgqd39BW8sF0Mj3BVsAcYbnIQdMrfR2fEnC3vyibxWrPSKxTiCOLZM2BqBS2/9Z6jc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612490759; h=Content-Type: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=FCXcw5jLutEPZX6lqFGe+Go67CW2oo3oquhHDu764CY=; b=mvVTPL+rs/FDCO/3PEMTgbl2jxfGpz5LLAO2p+JdpinVXiOwlEtv2mYXAy3Ex3bOqSzG6i5FibqAZ9VPYYNRkNemIMfMCpMA17UePhhtBMxD7kcjtGn5ZtHzp05wOJNJcO9tigVq70hmD1R7uFzilkjp3vsL1cPlqtB2Hqx4NH4= ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612490759865120.36120178269277; Thu, 4 Feb 2021 18:05:59 -0800 (PST) Received: from localhost ([::1]:41702 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7qVS-0007SV-3f for importer@patchew.org; Thu, 04 Feb 2021 21:05:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN4-0004SN-Rn for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:18 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:3040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN2-0006yh-Ej for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:18 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DWz6806w1zjGk3; Fri, 5 Feb 2021 09:56:00 +0800 (CST) Received: from huawei.com (10.174.185.226) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Feb 2021 09:56:54 +0800 From: Wang Xingang To: , , Subject: [PATCH 1/3] acpi: Allow pxb DSDT acpi table changes Date: Fri, 5 Feb 2021 01:56:43 +0000 Message-ID: <1612490205-48788-2-git-send-email-wangxingang5@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 In-Reply-To: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> References: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.185.226] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=wangxingang5@huawei.com; helo=szxga06-in.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 04 Feb 2021 21:04:20 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xieyingtai@huawei.com, cenjiahui@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xingang Wang Signed-off-by: Jiahui Cen Signed-off-by: Xingang Wang Reviewed-by: Igor Mammedov --- 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..90c53925fc 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/virt/DSDT.pxb", --=20 2.19.1 From nobody Sun Feb 8 22:35:19 2026 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-Seal: i=1; a=rsa-sha256; t=1612490870; cv=none; d=zohomail.com; s=zohoarc; b=Oi9bcg8/Mambc3Lz3ZmMyIQn1fTSj/AjVVUVz37LXCd+cxY66DYO4QgVOWyBvtBY+e8AtcB1h+MkSkHPTQcjVdd6zZBxH4RO+wMdp00z0ia5D+I0xkbWv92lRAepUBkenezjCeDAzRA6GqK3SDFdYB+ZGjNkqJBgqYO/8R7QRoE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612490870; h=Content-Type: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=cTF74para+Lj8/Ep0s7xkHOfKZYLaWBIhtptKL7G/PQ=; b=dNaiRBavl9uw40NxRpXwllyO/GPT2GghwE2IMSBtYyI8VJV17yHkRNTZXY+ztVQnBkb6iTV5H0fyukPAgaOOFl3vJao+x2TV0Kd460JtuP5cRr4dddyRwYdo0Cmu1GuyEIxGoiAREP0dIoS0iaO5W/idDSX8n50idezj6RFAxrw= ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612490870967354.91647796002906; Thu, 4 Feb 2021 18:07:50 -0800 (PST) Received: from localhost ([::1]:46238 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7qXF-00019N-Sz for importer@patchew.org; Thu, 04 Feb 2021 21:07:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN9-0004TE-V4 for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:23 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:3041) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN2-0006yi-Ee for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:23 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DWz680JDRzjGk7; Fri, 5 Feb 2021 09:56:00 +0800 (CST) Received: from huawei.com (10.174.185.226) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Feb 2021 09:56:54 +0800 From: Wang Xingang To: , , Subject: [PATCH 2/3] acpi/gpex: Fix cca attribute check for pxb device Date: Fri, 5 Feb 2021 01:56:44 +0000 Message-ID: <1612490205-48788-3-git-send-email-wangxingang5@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 In-Reply-To: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> References: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.185.226] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=wangxingang5@huawei.com; helo=szxga06-in.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 04 Feb 2021 21:04:20 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xieyingtai@huawei.com, cenjiahui@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xingang Wang When check DMA support for device attached to pxb, the cache coherency attribute need to be set. This add _CCA attribute for pxb DSDT. Fixes: 6f9765fbad ("acpi/gpex: Build tables for pxb") Signed-off-by: Jiahui Cen Signed-off-by: Xingang Wang Reviewed-by: Igor Mammedov --- hw/pci-host/gpex-acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c index 446912d771..0f01f13a6e 100644 --- a/hw/pci-host/gpex-acpi.c +++ b/hw/pci-host/gpex-acpi.c @@ -175,6 +175,7 @@ void acpi_dsdt_add_gpex(Aml *scope, struct GPEXConfig *= cfg) aml_append(dev, aml_name_decl("_BBN", aml_int(bus_num))); aml_append(dev, aml_name_decl("_UID", aml_int(bus_num))); aml_append(dev, aml_name_decl("_STR", aml_unicode("pxb Device"= ))); + aml_append(dev, aml_name_decl("_CCA", aml_int(1))); if (numa_node !=3D NUMA_NODE_UNASSIGNED) { aml_append(dev, aml_name_decl("_PXM", aml_int(numa_node))); } --=20 2.19.1 From nobody Sun Feb 8 22:35:19 2026 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-Seal: i=1; a=rsa-sha256; t=1612490761; cv=none; d=zohomail.com; s=zohoarc; b=S1NA+ZY1Bk9G4zCB8MKgl7+IqO43O5HVbAWUI6uZZXD60CB8y6CNTaavok75q3eW6louzwGttBVpaHAA/vejsYOAMWbfua1nf5Ct8K3zhX3f1cG6LiOOLbiKMp9fK0DAvjv5e61irPIIZ4noyspXW3l/bvyX5QMJjN7cpRlf5GM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1612490761; h=Content-Type: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=TyMp4uO1tkn8kefxnqu43rqN11tlu6REb0CFFT5i06c=; b=DC53QbWFFEZ8qfWqJBu0cV4ytaYMqJD0yC6QeASGyI9DXrpR8eh8M2oMeVb/mhfW3kJAi6oUvV83bF0dSHasNVCnUjC4wMOrWhuWcEQh4B5WOe8+DjS3O5GQfLpP2OiHdIFWUf8fxNdH73d3L2f4yB0cz7CC2icuV2gDwGhaNWY= ARC-Authentication-Results: i=1; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1612490761003700.8989779894471; Thu, 4 Feb 2021 18:06:01 -0800 (PST) Received: from localhost ([::1]:41890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7qVT-0007X8-QI for importer@patchew.org; Thu, 04 Feb 2021 21:05:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN6-0004SW-P8 for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:20 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:3042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7qN2-0006yj-EL for qemu-devel@nongnu.org; Thu, 04 Feb 2021 20:57:20 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4DWz6771Z6zjGhN; Fri, 5 Feb 2021 09:55:59 +0800 (CST) Received: from huawei.com (10.174.185.226) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Fri, 5 Feb 2021 09:56:55 +0800 From: Wang Xingang To: , , Subject: [PATCH 3/3] acpi: Update _CCA attribute in DSDT.pxb Date: Fri, 5 Feb 2021 01:56:45 +0000 Message-ID: <1612490205-48788-4-git-send-email-wangxingang5@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 In-Reply-To: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> References: <1612490205-48788-1-git-send-email-wangxingang5@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.185.226] X-CFilter-Loop: Reflected 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=45.249.212.32; envelope-from=wangxingang5@huawei.com; helo=szxga06-in.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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 04 Feb 2021 21:04:20 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: xieyingtai@huawei.com, cenjiahui@huawei.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Xingang Wang A new _CCA attribute is added. Update expected DSDT files accordingly, and re-enable their testing. Full diff of changed files disassembly: * * Disassembling to symbolic ASL+ operators * - * Disassembly of DSDT.pxb, Thu Feb 4 21:07:42 2021 + * Disassembly of DSDT.pxb, Thu Feb 4 21:06:59 2021 * * Original Table Header: * Signature "DSDT" - * Length 0x00001E09 (7689) + * Length 0x00001E0F (7695) * Revision 0x02 - * Checksum 0x30 + * Checksum 0xEF * OEM ID "BOCHS " * OEM Table ID "BXPCDSDT" * OEM Revision 0x00000001 (1) @@ -642,6 +642,7 @@ DefinitionBlock ("", "DSDT", 2, "BOCHS ", "BXPCDSDT", 0= x00000001) Name (_BBN, 0x80) // _BBN: BIOS Bus Number Name (_UID, 0x80) // _UID: Unique ID Name (_STR, Unicode ("pxb Device")) // _STR: Description Stri= ng + Name (_CCA, One) // _CCA: Cache Coherency Attribute Name (_PRT, Package (0x80) // _PRT: PCI Routing Table { Package (0x04) Signed-off-by: Jiahui Cen Signed-off-by: Xingang Wang --- tests/data/acpi/virt/DSDT.pxb | Bin 7689 -> 7695 bytes tests/qtest/bios-tables-test-allowed-diff.h | 1 - 2 files changed, 1 deletion(-) diff --git a/tests/data/acpi/virt/DSDT.pxb b/tests/data/acpi/virt/DSDT.pxb index ce3b67dff277e23f43925b1adcbb55c9d0b4eee3..b060a90dcdd6e067195c0db6a48= a7ceab366f6de 100644 GIT binary patch delta 40 wcmeCQ>9^r>33dtLmt$aHdOwj%nz3u6nj|Nq=3DVS-YfX)8GB^;ao33BrQ0Nh#&0ssI2 delta 40 vcmeCT>9pZ;33dtLlw)9EGMLCE&DgS0O_Gz*d9nj%z~*S-JdVvQLfkw6!^;Ui diff --git a/tests/qtest/bios-tables-test-allowed-diff.h b/tests/qtest/bios= -tables-test-allowed-diff.h index 90c53925fc..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/virt/DSDT.pxb", --=20 2.19.1