Hi Rick and all,
I noticed today that if one compiles more than one low-level dri driver
into the kernel then /proc/dri/<slot>/* is completely broken - there are
multiple directories with the same name and all (but one) are
inaccessible. Looking at the source in drivers/char/drm/proc.c, the reason
became quite obvious, so I started fixing this by adding a dev->proc_ent
field to drm_device_t structure and a 'dev' argument to
drm_proc_cleanup(). However, having discovered (in the Makefile) this:
# libs-objs are included in every module so that radical changes to the
# architecture of the DRM support library can be made at a later time.
I see that the proc handling is "broken by design". Therefore, would you
mind if someone moves at least the proc.o out of "DRM support library" to
have a global drm_root pointer (to /proc/dri)?