aboutsummaryrefslogtreecommitdiff
path: root/hw/pci-host
diff options
context:
space:
mode:
authorXingang Wang <wangxingang5@huawei.com>2021-02-05 01:56:44 +0000
committerMichael S. Tsirkin <mst@redhat.com>2021-02-23 10:06:55 -0500
commitb48088d60e8466eea2cc517dedb7ee0d97b7feab (patch)
tree3aea76b3a2c6d3c43ea099275ff9aac4d4ebdd2f /hw/pci-host
parent451730cfe455a00c6d36fc110ef9b7ab6d646a82 (diff)
downloadqemu-b48088d60e8466eea2cc517dedb7ee0d97b7feab.zip
qemu-b48088d60e8466eea2cc517dedb7ee0d97b7feab.tar.gz
qemu-b48088d60e8466eea2cc517dedb7ee0d97b7feab.tar.bz2
acpi/gpex: Fix cca attribute check for pxb device
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 <cenjiahui@huawei.com> Signed-off-by: Xingang Wang <wangxingang5@huawei.com> Message-Id: <1612490205-48788-3-git-send-email-wangxingang5@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/pci-host')
-rw-r--r--hw/pci-host/gpex-acpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci-host/gpex-acpi.c b/hw/pci-host/gpex-acpi.c
index 446912d..0f01f13 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 != NUMA_NODE_UNASSIGNED) {
aml_append(dev, aml_name_decl("_PXM", aml_int(numa_node)));
}