[Bug 101837] libdrm fails to get bus id

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 20 11:16:37 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101837

--- Comment #3 from Emil Velikov <emil.l.velikov at gmail.com> ---
DanielP an orthogonal solution is to simply not use drmOpen. While it works,
sometimes, there's a lot of hidden gotchas.

Simply replace the pciaccess + drmOpen with drmDevice2 - see
libdrm/tests/drmdevice.c.

Notes:
* radeon-top does _not_ need to open the card node, hence no need for auth -
directly or via xcb
* using pciaccess, or drmDevice2 with DRM_DEVICE_GET_PCI_REVISION will wake up
your discrete GPU, even if you're looking for the stats of you APU - you want
to avoid that if possible.
* do not forget to close the fd - currently it's leaked.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170720/f8da2e53/attachment.html>


More information about the dri-devel mailing list