Skip to content

xf86drm: Add USB, platform and host1x bus support

Thierry Reding dri-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 of 5 patches 0 repliesNew
  2. v22 of 4 patches 0 repliesSuperseded
  3. v13 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- add cleanup patch to reuse sysfs_uevent_get() in existing code
- guard Linux-specific sysfs parsing code with #ifdef __linux__

2 of 5 patches are in this archive. The cover letter announces 5.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xf86drm: Factor out drmDeviceAlloc()xf86drm.c+51 -270 replies
5/5xf86drm: Reuse sysfs_uevent_get()xf86drm.c+18 -480 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH libdrm v3 0/5] xf86drm: Add USB, platform and host1x bus support

From: Thierry Reding <[email protected]>

This series enables support for USB, platform and host1x busses in the drmDevice infrastructure. The goal is to make use of these in Mesa for PRIME support (via the DRI_PRIME environment variable) for devices on one of these busses.

Changes in v3:
- add cleanup patch to reuse sysfs_uevent_get() in existing code
- guard Linux-specific sysfs parsing code with #ifdef __linux__

Changes in v2:
- add USB, platform and host1x bus support to tests/drmdevice
- make sure not to overflow path names and device fullnames
- read compatible strings into platform/host1x device info

I've tested both platform and host1x bus support on Tegra and also verified that there aren't any leaks by running tests/drmdevice through valgrind.

Since I don't have any UDL devices myself I'm adding the X.Org development mailing list on Cc, as suggested by Emil Velikov, in the hopes that someone with access to that hardware will be generous enough to give these a run.

Thierry

Thierry Reding (5):
xf86drm: Factor out drmDeviceAlloc()
xf86drm: Add USB support
xf86drm: Add platform and host1x bus support tests/drmdevice: Add USB, platform and host1x support
xf86drm: Reuse sysfs_uevent_get()

 tests/drmdevice.c |  37 ++++
 xf86drm.c         | 619 +++++++++++++++++++++++++++++++++++++++++++++++-------
 xf86drm.h         |  41 +++-
 3 files changed, 621 insertions(+), 76 deletions(-)
Signature · 6 lines
2.11.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel