Skip to contentSkip to conversation

2.4.0 bug: file /proc/dri 4 times in ls listing

DISCUSSION Bobo Rajec 2 participants 3 messages Jan 16, 2001

lore
Share & tools
lore

Bobo Rajec

author
#0 lore raw

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=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
CONFIG_AGP_VIA=y
CONFIG_AGP_AMD=y
CONFIG_AGP_SIS=y
CONFIG_AGP_ALI=y
CONFIG_DRM=y
CONFIG_DRM_TDFX=y
CONFIG_DRM_GAMMA=y
CONFIG_DRM_R128=y
CONFIG_DRM_I810=y
CONFIG_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/

#1 lore raw

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/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=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
CONFIG_AGP_VIA=y
CONFIG_AGP_AMD=y
CONFIG_AGP_SIS=y
CONFIG_AGP_ALI=y
CONFIG_DRM=y
CONFIG_DRM_TDFX=y
CONFIG_DRM_GAMMA=y
CONFIG_DRM_R128=y
CONFIG_DRM_I810=y
CONFIG_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/

#2 lore raw
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_core thing 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,
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/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=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_I810=y
CONFIG_AGP_VIA=y
CONFIG_AGP_AMD=y
CONFIG_AGP_SIS=y
CONFIG_AGP_ALI=y
CONFIG_DRM=y
CONFIG_DRM_TDFX=y
CONFIG_DRM_GAMMA=y
CONFIG_DRM_R128=y
CONFIG_DRM_I810=y
CONFIG_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/