The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/3] virtio: Add Qualcomm Display Co-Processor transport wrapper
@ 2026-11-26  6:23 Jayant Shekhar
  2026-11-26  6:23 ` [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport Jayant Shekhar
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jayant Shekhar @ 2026-11-26  6:23 UTC (permalink / raw)
  To: Michael S. Tsirkin, Jason Wang, Eugenio Pérez, Xuan Zhuo,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Dmitry Baryshkov,
	Flemin Jose
  Cc: linux-arm-msm, virtualization, devicetree, linux-kernel,
	Jayant Shekhar

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-0322ca5dc10c@oss.qualcomm.com/

- The generic vendor-specific VirtIO device ID is being discussed with the
  VirtIO TC:
  https://lore.kernel.org/all/20261022091645-mutt-send-email-mst@kernel.org/

  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 <jayant.shekhar@oss.qualcomm.com>
---
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 <jayant.shekhar@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-11-26 12:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26  6:23 [PATCH 0/3] virtio: Add Qualcomm Display Co-Processor transport wrapper Jayant Shekhar
2026-11-26  6:23 ` [PATCH 1/3] dt-bindings: virtio: Add Qualcomm DCP transport Jayant Shekhar
2026-11-26  6:24 ` [PATCH 2/3] virtio: Add vendor-specific device ID Jayant Shekhar
2026-11-26  6:27   ` Michael S. Tsirkin
2026-11-26  6:24 ` [PATCH 3/3] virtio: Add Qualcomm VirtIO transport wrapper Jayant Shekhar
2026-11-26  6:35   ` Michael S. Tsirkin
2026-11-26 10:03     ` Jayant Shekhar
2026-11-26 11:41       ` Michael S. Tsirkin
2026-11-26 12:18         ` Jayant Shekhar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox