2.4.0 bug: file /proc/dri 4 times in ls listing
Hi,
I'm running kernel 2.4.0 on Redhat 7.0. I tried to get direct rendering running (it failed, but that's another story). Today I noticed something strange in /proc: dri appears there 4 times.
ls /proc:
...
-r--r--r-- 1 root root 0 Jan 16 08:57 dma dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 2 root root 0 Jan 16 08:57 driver
...
Chdir /proc/dri/0 works fine:
bobo:/proc/dri/0>ls
bufs clients histo mem name queues vm vma
No dri modules, everything is linked in (I know I don't need all of these, but I have lots of memory, so...).
...CONFIG_AGP=yCONFIG_AGP_INTEL=yCONFIG_AGP_I810=yCONFIG_AGP_VIA=yCONFIG_AGP_AMD=yCONFIG_AGP_SIS=yCONFIG_AGP_ALI=yCONFIG_DRM=yCONFIG_DRM_TDFX=yCONFIG_DRM_GAMMA=yCONFIG_DRM_R128=yCONFIG_DRM_I810=yCONFIG_DRM_MGA=y
...
Regards,
bobo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Hi Bobo,
To fix this just link in only the support that corresponds to your hardware. The design of dri is such that (one could paraphrase) each driver-specific part includes its own copy of what should be "driver-independent shared dri_core engine" (e.g. proc handling stuff).
Fixing this requires either a new filesystem type (drifs) or (simpler!) redesigning dri to separate common things into a separate dri_core thing shared amongst them.
Regards,
Tigran
Quoted 41 lines · Bobo Rajec
Hi,
I'm running kernel 2.4.0 on Redhat 7.0. I tried to get direct rendering running (it failed, but that's another story). Today I noticed something strange in /proc: dri appears there 4 times.
ls /proc:
...-r--r--r-- 1 root root 0 Jan 16 08:57 dma dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 2 root root 0 Jan 16 08:57 driver...
Chdir
/proc/dri/0works fine:bobo:/proc/dri/0>ls
bufs clients histo mem name queues vm vmaNo dri modules, everything is linked in (I know I don't need all of these, but I have lots of memory, so...).
...
CONFIG_AGP=yCONFIG_AGP_INTEL=yCONFIG_AGP_I810=yCONFIG_AGP_VIA=yCONFIG_AGP_AMD=yCONFIG_AGP_SIS=yCONFIG_AGP_ALI=yCONFIG_DRM=yCONFIG_DRM_TDFX=yCONFIG_DRM_GAMMA=yCONFIG_DRM_R128=yCONFIG_DRM_I810=yCONFIG_DRM_MGA=y
...
Quoted 7 lines
Regards,
bobo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines · Tigran Aivazian
Fixing this requires either a new filesystem type (drifs) or (simpler!) redesigning dri to separate common things into a separate
dri_corething shared amongst them.
just for completeness -- there is the 3rd option -- one could just fix the hack which is there (or was there half a year ago when I looked at it) which is supposed to detect that a file in /proc is already present. It is just not esthetically pleasant (good to eyes :) so I omitted this from the options...
Quoted 47 lines
Regards,
TigranQuoted 41 lines · Bobo Rajec
Hi,
I'm running kernel 2.4.0 on Redhat 7.0. I tried to get direct rendering running (it failed, but that's another story). Today I noticed something strange in /proc: dri appears there 4 times.
ls /proc:
...-r--r--r-- 1 root root 0 Jan 16 08:57 dma dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 3 root root 0 Jan 16 08:57 dri dr-xr-xr-x 2 root root 0 Jan 16 08:57 driver...
Chdir
/proc/dri/0works fine:bobo:/proc/dri/0>ls
bufs clients histo mem name queues vm vmaNo dri modules, everything is linked in (I know I don't need all of these, but I have lots of memory, so...).
...
CONFIG_AGP=yCONFIG_AGP_INTEL=yCONFIG_AGP_I810=yCONFIG_AGP_VIA=yCONFIG_AGP_AMD=yCONFIG_AGP_SIS=yCONFIG_AGP_ALI=yCONFIG_DRM=yCONFIG_DRM_TDFX=yCONFIG_DRM_GAMMA=yCONFIG_DRM_R128=yCONFIG_DRM_I810=yCONFIG_DRM_MGA=y
...
Quoted 9 lines
Quoted 7 lines
Regards,
bobo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/