drm/radeon Files in debugfs only available for first GPU
Submitted by Rafael Monica
Assigned to Default DRI bug account
Description
The radeon files in /sys/kernel/debug/dri/*/ are only available for the first GPU. Possible solution is to move the static _radeon_debugfs array into rdev, so that each GPU get its own.
ls -l /sys/kernel/debug/dri/0/
-r--r--r-- 1 root root 0 2010-02-14 10:11 bufs
-r--r--r-- 1 root root 0 2010-02-14 10:11 clients
-r--r--r-- 1 root root 0 2010-02-14 10:11 gem_names
-r--r--r-- 1 root root 0 2010-02-14 10:11 gem_objects
-r--r--r-- 1 root root 0 2010-02-14 10:11 name
-r--r--r-- 1 root root 0 2010-02-14 10:11 queues
-r--r--r-- 1 root root 0 2010-02-14 10:11 r600_mc_info
-r--r--r-- 1 root root 0 2010-02-14 10:11 r600_ring_info
-r--r--r-- 1 root root 0 2010-02-14 10:11 radeon_fence_info
[...]
-r--r--r-- 1 root root 0 2010-02-14 10:11 vm
-r--r--r-- 1 root root 0 2010-02-14 10:11 vma
ls -l /sys/kernel/debug/dri/1/
-r--r--r-- 1 root root 0 2010-02-14 10:11 bufs
-r--r--r-- 1 root root 0 2010-02-14 10:11 clients
-r--r--r-- 1 root root 0 2010-02-14 10:11 gem_names
-r--r--r-- 1 root root 0 2010-02-14 10:11 gem_objects
-r--r--r-- 1 root root 0 2010-02-14 10:11 name
-r--r--r-- 1 root root 0 2010-02-14 10:11 queues
-r--r--r-- 1 root root 0 2010-02-14 10:11 vm
-r--r--r-- 1 root root 0 2010-02-14 10:11 vma