3D acceleration within non-root account

Ladislav Jozsa jozsa at volny.cz
Wed May 16 19:02:16 UTC 2007


Thank you for your answer.

Tijl Coosemans wrote:
> This last line says direct rendering is enable so I assume this is when
> you run as root? What does the non-root log say?
>   
The answer for the first question is yes. The Xorg server is started 
under root account via statement gdm_enable="YES"in /etc/rc.conf. When I 
disable it and try to run Xorg via startx under non-root account the log 
output is:

(==) RADEON(0): Write-combining range (0xc0100000,0x80000) was already clear
(==) RADEON(0): Write-combining range (0xe0000000,0x2000000)
(==) RADEON(0): Write-combining range (0xa0000,0x10000) was already clear
(II) RADEON(0): Dynamic Clock Scaling Disabled
(II) RADEON(0): BIOS HotKeys Disabled
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 6, (OK)
drmOpenByBusid: drmOpenMinor returns 6
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xc4c5a000
(II) RADEON(0): [drm] mapped SAREA 0xc4c5a000 to 0x28786000
(II) RADEON(0): [drm] framebuffer handle = 0xe0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x1f000217 [AGP 0x0000/0x0000; Card 
0x1002/0x4c57]
(II) RADEON(0): [agp] 8192 kB allocated with handle 0xc49f57c0
(II) RADEON(0): [agp] ring handle = 0xd0000000
(II) RADEON(0): [agp] Ring mapped at 0x2a876000
(II) RADEON(0): [agp] ring read ptr handle = 0xd0101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x28788000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xd0102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x2a977000
(II) RADEON(0): [agp] GART texture map handle = 0xd0302000
(II) RADEON(0): [agp] GART Texture map mapped at 0x2ab77000
(II) RADEON(0): [drm] register handle = 0xc0100000
(II) RADEON(0): [dri] Visual configs initialized
(**) RADEON(0): Enabling depth moves
(II) RADEON(0): CP in BM mode
(II) RADEON(0): Using 8 MB GART aperture
(II) RADEON(0): Using 1 MB for the ring buffer
(II) RADEON(0): Using 2 MB for vertex/indirect buffers
(II) RADEON(0): Using 5 MB for GART textures
(II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
(II) RADEON(0): Reserved area from (0,768) to (1024,770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7421
(II) RADEON(0): Will use back buffer at offset 0x900000
(II) RADEON(0): Will use depth buffer at offset 0xc00000
(II) RADEON(0): Will use 17408 kb for textures at offset 0xf00000
(II) RADEON(0): Render acceleration enabled
(II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
    Screen to screen bit blits
    Solid filled rectangles
    8x8 mono pattern filled rectangles
    Indirect CPU to Screen color expansion
    Solid Lines
    Scanline Image Writes
    Offscreen Pixmaps
    Setting up tile and stipple cache:
        32 128x128 slots
        32 256x256 slots
        16 512x512 slots
(II) RADEON(0): Acceleration enabled
(**) RADEON(0): Option "BackingStore" "true"
(**) RADEON(0): Backing store enabled
(==) RADEON(0): Silken mouse enabled
(II) RADEON(0): Using hardware cursor (scanline 770)
(II) RADEON(0): Largest offscreen area available: 1024 x 7417
(**) Option "dpms" "true"
(**) RADEON(0): DPMS enabled
(II) RADEON(0): Detected Radeon Mobility M7, disabling multimedia i2c
(II) Loading sub module "theatre_detect"
(II) LoadModule: "theatre_detect"
(II) Loading /usr/X11R6/lib/modules/multimedia/theatre_detect_drv.so
(II) Module theatre_detect: vendor="X.Org Foundation"
    compiled for 4.3.99.902, module version = 1.0.0
    ABI class: X.Org Video Driver, version 0.8
(II) RADEON(0): no multimedia table present, disabling Rage Theatre.
(WW) RADEON(0): Option "DRI" is not used
(WW) RADEON(0): Option "AllowGLXWithComposite" is not used
(WW) RADEON(0): Option "UseUnternalAGPGART" is not used
(II) RADEON(0): X context handle = 0x1
(II) RADEON(0): [drm] installed DRM signal handler
(II) RADEON(0): [DRI] installation complete
(II) RADEON(0): [drm] Added 32 65536 byte vertex/indirect buffers
(II) RADEON(0): [drm] Mapped 32 vertex/indirect buffers
(II) RADEON(0): [drm] dma control initialized, using IRQ 11
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 5111808
(II) RADEON(0): Direct rendering enabled

> Also, how are you starting X, with startx? If so, is /usr/X11R6/Xorg
> setuid root?
>   
/usr/X11R6/bin/Xorg is setuid root.

> Do you load the radeon.ko and drm.ko kernel modules from
> /boot/loader.conf?
Originally no. I have added it there, but there is no change in behaviour.

Any other ideas?

Many thanks,
Ladislav



More information about the freebsd-questions mailing list