[PATCH v11 0/5] drm/etnaviv: Add pci device driver wrapper

From: Sui Jingfeng
Date: Tue Oct 03 2023 - 07:34:09 EST


This series is add PCI device driver wrapper, to support the Vivante GC1000
GPU in LS2K1000 and LS7A1000.

The whole serie have been tested on LS3A5000+LS7A1000 board, with another
trivial patchset [1] applied beforehand.

[1] https://patchwork.freedesktop.org/series/119825/

v6:
* Fix build issue on system without CONFIG_PCI enabled
v7:
* Add a separate patch for the platform driver rearrangement (Bjorn)
* Switch to runtime check if the GPU is dma coherent or not (Lucas)
* Add ETNAVIV_PARAM_GPU_COHERENT to allow userspace to query (Lucas)
* Remove etnaviv_gpu.no_clk member (Lucas)
* Various Typos and coding style fixed (Bjorn)
v8:
* Fix typos and remove unnecessary header included (Bjorn).
* Add a dedicated function to create the virtual master platform
device.
v9:
* Use PCI_VDEVICE() macro (Bjorn)
* Add trivial stubs for the PCI driver (Bjorn)
* Remove a redundant dev_err() usage (Bjorn)
* Clean up etnaviv_pdev_probe() with etnaviv_of_first_available_node()
v10:
* Add one more cleanup patch
* Resolve the conflict with a patch from Rob
* Make the dummy PCI stub inlined
* Print only if the platform is dma-coherrent
V11:
* Drop unnecessary changes (Lucas)
* Tweak according to other reviews of v10.

Sui Jingfeng (5):
drm/etnaviv: Add a dedicated function to get various clocks
drm/etnaviv: Add constructor and destructor function for
etnaviv_drm_private
drm/etnaviv: Allow bypass component framework
drm/etnaviv: Add driver support for the PCI devices
drm/etnaviv: Add support for cached coherent caching mode

drivers/gpu/drm/etnaviv/Kconfig | 8 ++
drivers/gpu/drm/etnaviv/Makefile | 2 +
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 131 ++++++++++++++-------
drivers/gpu/drm/etnaviv/etnaviv_drv.h | 12 ++
drivers/gpu/drm/etnaviv/etnaviv_gem.c | 16 ++-
drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 134 ++++++++++++++--------
drivers/gpu/drm/etnaviv/etnaviv_gpu.h | 7 ++
drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c | 74 ++++++++++++
drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h | 18 +++
include/uapi/drm/etnaviv_drm.h | 1 +
10 files changed, 314 insertions(+), 89 deletions(-)
create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.c
create mode 100644 drivers/gpu/drm/etnaviv/etnaviv_pci_drv.h

--
2.34.1