[PATCH v3 0/3] drm/vkms: Switch to allocated for drm objects

Louis Chauvet louis.chauvet at bootlin.com
Mon Dec 30 18:39:43 UTC 2024


Specific allocations for each DRM object is not strictly needed in VKMS
right now, but in order to implement dynamic configuration of VKMS
(configFS), it will be easier to have one allocation per DRM object.

There is no need for a dynamic allocation for the writeback connector as
there can only be one per CRTC

No functionnal changes are intented in this series.

This series requires [1] to switch vkms objects to drm-managed objects.

[1]:https://lore.kernel.org/all/20241122-google-vkms-managed-v5-0-1ab60403e960@bootlin.com/

Signed-off-by: Louis Chauvet <louis.chauvet at bootlin.com>
---
Changes in v3:
- Add R-by
- Fix bug reported by José
- Remove patch to rename vkms_output to vkms_crtc
- Link to v2: https://lore.kernel.org/r/20241122-b4-vkms-allocated-v2-0-ff7bddbf0bfb@bootlin.com

Changes in v2:
- Rebased on drm-misc-next
- Apply comments from Jose
- Link to v1: https://lore.kernel.org/r/20240912-b4-vkms-allocated-v1-0-29abbaa14af9@bootlin.com

---
Louis Chauvet (3):
      drm/vkms: Switch to dynamic allocation for connector
      drm/vkms: Switch to dynamic allocation for encoder
      drm/vkms: Switch to dynamic allocation for CRTC

 drivers/gpu/drm/vkms/vkms_crtc.c      | 32 ++++++++++++++++--------------
 drivers/gpu/drm/vkms/vkms_drv.h       | 11 +++++------
 drivers/gpu/drm/vkms/vkms_output.c    | 37 +++++++++++++++++++++++------------
 drivers/gpu/drm/vkms/vkms_writeback.c | 17 ++++++++--------
 4 files changed, 56 insertions(+), 41 deletions(-)
---
base-commit: f8a2397baf041a5cee408b082334bb09c7e161df
change-id: 20240909-b4-vkms-allocated-9f5508f4444a
prerequisite-message-id: 20241230-google-vkms-managed-v6-0-15c7d65cd63b at bootlin.com
prerequisite-patch-id: b608594ad493a41000ee703792eac4b23f9e35dc
prerequisite-patch-id: 5697aa87c44bbf3eda8a1ba424465dc792545d4c
prerequisite-patch-id: 223d59c407ce28dacf3f563b5c0148d2398303f1
prerequisite-patch-id: 852b8a54fb933d66592df19aadc551827f719029
prerequisite-patch-id: 8763b3f1494bcb5fddf298f1df429293f2838806
prerequisite-patch-id: 5ab0f908802d3977c60b03e7c5f2631163b4e15e
prerequisite-patch-id: 7f411c316bee613498134279d6b6aa87b58df531
prerequisite-patch-id: 30a1e033fa43241ca6a43006fd4f29f8e9217224

Best regards,
-- 
Louis Chauvet <louis.chauvet at bootlin.com>



More information about the dri-devel mailing list