The Qualcomm Display Co-Processor (DCP) firmware exposes its services through a VirtIO function, but its MMIO registers must not be accessed until the host sends an IPCC power-notify message and receives the firmware acknowledgement. The generic virtio-mmio transport probes the registers directly, so it cannot provide this required ordering or coordinate the power handshake with system suspend and resume.
Add a Qualcomm platform transport that completes the IPCC handshake before accessing the MMIO registers and registering the VirtIO device. It reuses the standard virtio-mmio configuration and virtqueue operations, while routing firmware notifications to the response queue and ordering VirtIO freeze and restore around DCP power notifications. The series adds a Device Tree binding for the transport resources, the generic VIRTIO_ID_VENDOR device ID (proposed value 52), and the transport and IPCC implementation. The transport handles device discovery, MMIO, DMA, interrupts, queues, and power sequencing; display protocols and DRM remain in the separate function driver. The proposed VIRTIO_ID_VENDOR value 52 remains subject to VirtIO TC allocation. Dependencies ============ - The VPU IOMMU series provides the IOVA handling required by the DCP VirtIO transport. The Hawi DT series provides the platform nodes and IOMMU descriptions consumed by this series. https://lore.kernel.org/all/20260926-vpu_iommu_iova_handling-v5-4-0322ca5dc...@oss.qualcomm.com/ - The generic vendor-specific VirtIO device ID is being discussed with the VirtIO TC: https://lore.kernel.org/all/[email protected]/ This series uses the proposed VIRTIO_ID_VENDOR value 52, which must not be merged until the VirtIO TC allocates the device ID. The corresponding DCP function driver must additionally match the Qualcomm vendor ID and the DT-described Qualcomm transport. Signed-off-by: Jayant Shekhar <[email protected]> --- Jayant Shekhar (3): dt-bindings: virtio: Add Qualcomm DCP transport virtio: Add vendor-specific device ID virtio: Add Qualcomm VirtIO transport wrapper .../bindings/virtio/qcom,dcp-virtio.yaml | 147 +++++++++++ drivers/virtio/Kconfig | 11 + drivers/virtio/Makefile | 2 + drivers/virtio/virtio_mmio.c | 17 +- drivers/virtio/virtio_mmio.h | 21 ++ drivers/virtio/virtio_qcom_dcp.c | 273 +++++++++++++++++++++ drivers/virtio/virtio_qcom_dcp_ipcc.c | 193 +++++++++++++++ drivers/virtio/virtio_qcom_dcp_ipcc.h | 41 ++++ include/uapi/linux/virtio_ids.h | 1 + 9 files changed, 692 insertions(+), 14 deletions(-) --- base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7 change-id: 20261112-jshekhar-qcom-virtio-dcp-e653604e05e8 prerequisite-patch-id: eecfd66a55b8f2b7b2fc7d76d815facca0489d00 Best regards, -- Jayant Shekhar <[email protected]>
