Bug 1428 - drmAddMap failed with latest drm CVS
Summary: drmAddMap failed with latest drm CVS
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: DRI git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 10:37 UTC by jor
Modified: 2004-09-20 19:20 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description jor 2004-09-20 10:37:16 UTC
With a drm module from CVS from today (and Xorg CVS + Mesa CVS), direct
rendering isn't enabled. The following is in the Xorg log file:
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:02:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xe0985000
(II) RADEON(0): [drm] mapped SAREA 0xe0985000 to 0x498aa000
(II) RADEON(0): [drm] drmAddMap failed
(EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling DRI.
...

Reverting back to drm CVS from 16 Sept (before dyn-minor patch was re-applied),
makes everything work as normal again.
Comment 1 Jon Smirl 2004-09-20 11:02:17 UTC
I checked in the fix for this a few minutes ago. 

This bug is still in the radeon driver, i haven't located the problem yet.

[drm:radeon_ioctl] pid=10687, cmd=0x6430, nr=0x30, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=10687, cmd=0x40546440, nr=0x40, dev 0xe200, auth=1
[drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
[drm:radeon_ioctl] pid=10687, cmd=0xc0086426, nr=0x26, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=10687, cmd=0xc0086426, nr=0x26, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=10687, cmd=0x4008642b, nr=0x2b, dev 0xe200, auth=1
[drm:radeon_unlock] *ERROR* Process 10687 using kernel context 0
[drm:radeon_vm_shm_close] 0xb3f0e000,0x00002000
Comment 2 jor 2004-09-20 11:07:01 UTC
Yes, just noticed a similar problem mentioned on the mailing list, and the new
commits to cvs.
Tried again, similar result as the person on the list:

(==) RADEON(0): Write-combining range (0xd0000000,0x8000000)
(II) RADEON(0): Dynamic Clock Scaling Disabled
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: Searching for BusID pci:0000:02:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 7, (OK)
drmOpenByBusid: drmOpenMinor returns 7
drmOpenByBusid: drmGetBusid reports pci:0000:02:00.0
(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:02:00.0"
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xe09c0000
(II) RADEON(0): [drm] mapped SAREA 0xe09c0000 to 0x498aa000
(II) RADEON(0): [drm] framebuffer handle = 0xd0000000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x1f000207 [AGP 0x10de/0x01e0; Card 0x1002/0x514c]
(II) RADEON(0): [agp] 65536 kB allocated with handle 0x00000001
(II) RADEON(0): [agp] ring handle = 0xe0000000
(II) RADEON(0): [agp] Ring mapped at 0x498ac000
(II) RADEON(0): [agp] ring read ptr handle = 0xe0101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x499ad000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xe0102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x499ae000
(II) RADEON(0): [agp] GART texture map handle = 0xe0302000
(II) RADEON(0): [agp] GART Texture map mapped at 0x49bae000
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0xe09c0000 at 0x498aa000
(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): 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): Backing store disabled
(==) 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"
(**) RADEON(0): DPMS enabled
(II) RADEON(0): Direct rendering disabled
...
and in the kernel messages:
[drm:radeon_ioctl] pid=8708, cmd=0xc0106434, nr=0x34, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0x40086436, nr=0x36, dev 0xe200, auth=1
[drm:radeon_agp_bind] base = 0xe0000000 entry->bound = 0xe0000000
[drm:radeon_ioctl] pid=8708, cmd=0xc0186415, nr=0x15, dev 0xe200, auth=1
[drm:radeon_addmap] offset = 0x00000000, size = 0x00101000, type = 3
[drm:radeon_mmap] start = 0x498ac000, end = 0x499ad000, offset = 0xe0000000
[drm:radeon_mmap]    Type = 3; start = 0x498ac000, end = 0x499ad000, offset = 0xe
0000000
[drm:radeon_vm_open] 0x498ac000,0x00101000
[drm:radeon_ioctl] pid=8708, cmd=0xc0186415, nr=0x15, dev 0xe200, auth=1
[drm:radeon_addmap] offset = 0x00101000, size = 0x00001000, type = 3
[drm:radeon_mmap] start = 0x499ad000, end = 0x499ae000, offset = 0xe0101000
[drm:radeon_mmap]    Type = 3; start = 0x499ad000, end = 0x499ae000, offset = 0xe
0101000
[drm:radeon_vm_open] 0x499ad000,0x00001000
[drm:radeon_ioctl] pid=8708, cmd=0xc0186415, nr=0x15, dev 0xe200, auth=1
[drm:radeon_addmap] offset = 0x00102000, size = 0x00200000, type = 3
[drm:radeon_mmap] start = 0x499ae000, end = 0x49bae000, offset = 0xe0102000
[drm:radeon_mmap]    Type = 3; start = 0x499ae000, end = 0x49bae000, offset = 0xe
0102000
[drm:radeon_vm_open] 0x499ae000,0x00200000
[drm:radeon_ioctl] pid=8708, cmd=0xc0186415, nr=0x15, dev 0xe200, auth=1
[drm:radeon_addmap] offset = 0x00302000, size = 0x03c00000, type = 3
[drm:radeon_mmap] start = 0x49bae000, end = 0x4d7ae000, offset = 0xe0302000
[drm:radeon_mmap]    Type = 3; start = 0x49bae000, end = 0x4d7ae000, offset = 0xe
0302000
[drm:radeon_vm_open] 0x49bae000,0x03c00000
[drm:radeon_ioctl] pid=8708, cmd=0x80206433, nr=0x33, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0xc0186415, nr=0x15, dev 0xe200, auth=1
[drm:radeon_addmap] offset = 0xe5000000, size = 0x00080000, type = 1
[drm:radeon_ioctl] pid=8708, cmd=0x40546440, nr=0x40, dev 0xe200, auth=1
[drm:radeon_cp_init] *ERROR* radeon_cp_init called without lock held
[drm:radeon_vm_close] 0x49bae000,0x03c00000
[drm:radeon_vm_close] 0x499ae000,0x00200000
[drm:radeon_vm_close] 0x499ad000,0x00001000
[drm:radeon_vm_close] 0x498ac000,0x00101000
[drm:radeon_ioctl] pid=8708, cmd=0x40086437, nr=0x37, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0x40106435, nr=0x35, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0x6431, nr=0x31, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0xc0086426, nr=0x26, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0xc0086426, nr=0x26, dev 0xe200, auth=1
[drm:radeon_ioctl] pid=8708, cmd=0x4008642b, nr=0x2b, dev 0xe200, auth=1
[drm:radeon_unlock] *ERROR* Process 8708 using kernel context 0
[drm:radeon_vm_shm_close] 0x498aa000,0x00002000
[drm:radeon_flush] pid = 8708, device = 0xe200, open_count = 1
[drm:radeon_release] open_count = 1
[drm:radeon_release] pid = 8708, device = 0xe200, open_count = 1
[drm:radeon_fasync] fd = -1, device = 0xe200
[drm:radeon_takedown] 
[drm:radeon_do_cleanup_cp] 
Comment 3 Jon Smirl 2004-09-21 08:58:16 UTC
This should be fixed in CVS now
Comment 4 jor 2004-09-21 12:08:39 UTC
Yes confirmed, works again. This bug can be closed. Many thanks :)
Comment 5 Alex Deucher 2004-09-21 12:20:56 UTC
fixed in cvs


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.