Skip to content

Commit

Permalink
hw/misc/tdisp-testdev: announce device as pcie
Browse files Browse the repository at this point in the history
This is needed to allow kernel to check it is a CMA enabled device.
  • Loading branch information
pbo-linaro committed Feb 28, 2025
1 parent bc6e825 commit bc4a966
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/misc/tdisp-testdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ static void tdisp_testdev_realize(PCIDevice *pdev, Error **errp)
memory_region_init_io(&d->mmio, OBJECT(d), &mmio_ops, d,
"tdisp-testdev-mmio", 4 * KiB);
pci_register_bar(pdev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &d->mmio);
pcie_endpoint_cap_init(pdev, 0);
pcie_doe_init(pdev, &pdev->doe_spdm, PCI_CONFIG_SPACE_SIZE, doe_protocols,
true, 0);

Expand Down

0 comments on commit bc4a966

Please sign in to comment.