Re: FreeBSD DRM

2005-12-28 Thread Adam K Kirchhoff

Eric Anholt wrote:


On Mon, 2005-12-26 at 15:49 -0500, Adam K Kirchhoff wrote:
 

So at some point in the not too distant past, I managed to get current 
Mesa/DRI CVS working on my FreeBSD workstation (with an X700Pro).  Just 
earlier today, though, I did a make buildworld and make installworld 
and suddenly Direct Rendering is not working any more.  It turns out 
that -CURRENT on FreeBSD only has DRM version 1.19.0 but the version of 
Mesa/DRI I have installed requires version 1.20.0.  Since I managed to 
get 1.20 installed before, I figured I could get it working again.  
Except that I can't.  I pulled DRM from CVS, changed to the bsd-core 
directory, and did a make.  It died with:


/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c: 
In function `drm_device_find_capability':
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:62: 
error: `AGP_CAPPTR' undeclared (first use in this function)
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:62: 
error: (Each undeclared identifier is reported only once
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:62: 
error: for each function it appears in.)
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:66: 
warning: implicit declaration of function `AGP_CAPID_GET_NEXT_PTR'
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:66: 
warning: nested extern declaration of `AGP_CAPID_GET_NEXT_PTR'
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:71: 
warning: implicit declaration of function `AGP_CAPID_GET_CAP_ID'
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:71: 
warning: nested extern declaration of `AGP_CAPID_GET_CAP_ID'
/home/adamk/saved/source/drm.current/bsd-core/drm/../drm_agpsupport.c:45: 
warning: unused variable `ret'


I started jumping back one month at a time, starting on December 2nd, 
going back to June 2nd.  From June 2nd, this is what I get when I try make:


/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c: In 
function `drm_device_is_agp':
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:50: error: 
structure has no member named `driver'
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:51: error: 
structure has no member named `driver'
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:68: error: 
`AGP_CAPPTR' undeclared (first use in this function)
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:68: error: 
(Each undeclared identifier is reported only once
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:68: error: 
for each function it appears in.)
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:72: 
warning: implicit declaration of function `AGP_CAPID_GET_NEXT_PTR'
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:72: 
warning: nested extern declaration of `AGP_CAPID_GET_NEXT_PTR'
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:77: 
warning: implicit declaration of function `AGP_CAPID_GET_CAP_ID'
/home/adamk/saved/source/drm/bsd-core/drm/../drm_agpsupport.c:77: 
warning: nested extern declaration of `AGP_CAPID_GET_CAP_ID'

*** Error code 1

Different functions, but essentially the same errors.

Yet I know that somehow I did manage to get 1.20.0 installed on this 
machine because I had it working before :-(


Any ideas what I'm doing wrong?  Thanks!
   



Nothing.  I need to commit jhb's DRM patch from the vga master device
changes.

 



Eric,

   Is there an ETA on when that patch will be committed?

Adam



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


DRM_RADEON_TEXTURE: return -11 - debuging

2005-12-28 Thread Riku Hintukainen
Hi list.

Attempt to run Operation Flashpoint with wine gives me following error:
$ date; wine FLASHPOINTRESISTANCE.EXE; date
Wed Dec 28 17:37:19 EET 2005
DRM_RADEON_TEXTURE: return = -11
   offset=0xd2a23000
   image width=1024 height=1024
blit width=1024 height=2048 data=0x2edcf200
Wed Dec 28 17:37:58 EET 2005

Cut-down debug log from drm kernel module is at
http://riku.sdf-eu.org/dri.log.bz2.

This is not a wine bug, game works with software rendering. I also tried
with new x.org v.7.0 release, with same results. I used kernel modules
that ship with 2.6.14.2, and X.org version 6.8.2-r6 from gentoo. GPU is
Radeon 9250.

What could I do to help solve this issue?

 - Riku


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 5441] New: (EE) RADEON(0): [dri] DRIScreenInit failed. Disabling DRI.

2005-12-28 Thread bugzilla-daemon
Please do not reply to this email: if you want to comment on the bug, go to
   
the URL shown below and enter yourcomments there. 
   
https://bugs.freedesktop.org/show_bug.cgi?id=5441  
 
   Summary: (EE) RADEON(0): [dri] DRIScreenInit failed.  Disabling
DRI.
   Product: DRI
   Version: DRI CVS
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: DRM modules
AssignedTo: dri-devel@lists.sourceforge.net
ReportedBy: [EMAIL PROTECTED]


/var/log/Xorg.0.log
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.14-gentoo-r4-eclipse i686
Current Operating System: Linux eclipse 2.6.14-gentoo-r4-eclipse #21 SMP PREEMPT
Mon Dec 26 17:02:12 CET 2005 i686
Build Date: 26 December 2005
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Wed Dec 28 12:20:01 2005
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Simple Layout
(**) |--Screen Screen 1 (0)
(**) |   |--Monitor My Monitor
(**) |   |--Device ** ATI Radeon (generic)   [radeon]
(**) |--Input Device Mouse1
(**) |--Input Device Keyboard1
(WW) The directory /usr/lib/X11/fonts/TrueType/ does not exist.
Entry deleted from font path.
(**) FontPath set to
/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1,/usr/lib/X11/fonts/local/,/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/:unscaled,/usr/lib/X11/fonts/100dpi/:unscaled,/usr/lib/X11/fonts/Type1/,/usr/lib/X11/fonts/freefont/,/usr/lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi/
(==) RgbPath set to /usr/share/X11/rgb
(==) ModulePath set to /usr/lib/xorg/modules
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.2
X.Org Video Driver: 0.8
X.Org XInput driver : 0.5
X.Org Server Extension : 0.2
X.Org Font Renderer : 0.4
(II) Loader running on linux
(II) LoadModule: bitmap
(II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Module bitmap: vendor=X.Org Foundation
compiled for 7.0.0, module version = 1.0.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.4
(II) Loading font Bitmap
(II) LoadModule: pcidata
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor=X.Org Foundation
compiled for 7.0.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 0.8
(++) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,2580 card 103c,3082 rev 04 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 8086,2581 card , rev 04 class 06,04,00 hdr 01
(II) PCI: 00:1c:0: chip 8086,2660 card , rev 03 class 06,04,00 hdr 81
(II) PCI: 00:1d:0: chip 8086,2658 card 103c,3082 rev 03 class 0c,03,00 hdr 80
(II) PCI: 00:1d:1: chip 8086,2659 card 103c,3082 rev 03 class 0c,03,00 hdr 00
(II) PCI: 00:1d:2: chip 8086,265a card 103c,3082 rev 03 class 0c,03,00 hdr 00
(II) PCI: 00:1d:3: chip 8086,265b card 103c,3082 rev 03 class 0c,03,00 hdr 00
(II) PCI: 00:1d:7: chip 8086,265c card 103c,3082 rev 03 class 0c,03,20 hdr 00
(II) PCI: 00:1e:0: chip 8086,244e card , rev d3 class 06,04,01 hdr 81
(II) PCI: 00:1e:2: chip 8086,266e card 103c,3082 rev 03 class 04,01,00 hdr 00
(II) PCI: 00:1e:3: chip 8086,266d card 103c,3082 rev 03 class 07,03,00 hdr 00
(II) PCI: 00:1f:0: chip 8086,2640 card 103c,3082 rev 03 class 06,01,00 hdr 80
(II) PCI: 00:1f:1: chip 8086,266f card 103c,3082 rev 03 class 01,01,8a hdr 00
(II) PCI: 00:1f:3: chip 8086,266a card 103c,3082 rev 03 class 0c,05,00 hdr 00
(II) PCI: 01:00:0: chip 1002,3150 card 103c,3082 rev 00 class 03,00,00 hdr 00
(II) PCI: 0b:00:0: chip 104c,8031 card 5400, rev 00 class 06,07,00 hdr 82
(II) PCI: 0b:00:2: chip 104c,8032 card 103c,3082 rev 00 class 0c,00,10 hdr 80
(II) PCI: 0b:00:3: chip 104c,8033 card 103c,3082 rev 00 class 01,80,00 hdr 80
(II) PCI: 0b:00:4: chip 104c,8034 card 103c,3082 rev 00 class 08,05,00 hdr 80
(II) PCI: 0b:02:0: chip 10ec,8139 card 103c,3082 rev 10 class 02,00,00 hdr 00
(II) PCI: 0b:03:0: chip 14e4,4320 card 103c,12fa rev 03 class 02,80,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,12), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1  0   0x - 0x (0x1) IX[B]
(II) Bus 0 non-prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
[0] -1  0   0x - 

Re: DRM + agp_ati + -CURRENT...

2005-12-28 Thread Adam K Kirchhoff

Adam K Kirchhoff wrote:



As of yesterday morning, my HP Laptop, with a Mobility RS100 Radeon, 
is running -CURRENT.  Unfortunately, I seem to be having problems with 
Direct Rendering.


When I boot up, the agp driver is loaded properly:

agp0: ATI RS100 AGP bridge on hostb0

When I launch X, the drm and radeon modules are loaded:

drm0: ATI Radeon RS100 Mobility U1 on vgapci0
info: [drm] AGP at 0xd400 64MB
info: [drm] Initialized radeon 1.19.0 20050911

According to the X server, Direct Rendering is enabled:

(II) RADEON(0): [drm] DRM interface version 1.2
(II) RADEON(0): [drm] created radeon driver at busid pci::01:05.0
(II) RADEON(0): [drm] added 8192 byte SAREA at 0xc3ce7000
(II) RADEON(0): [drm] mapped SAREA 0xc3ce7000 to 0x283d3000
(II) RADEON(0): [drm] framebuffer handle = 0xe000
(II) RADEON(0): [drm] added 1 reserved context for kernel
(II) RADEON(0): [agp] Mode 0x0f000207 [AGP 0x/0x; Card 
0x1002/0x4336]

(II) RADEON(0): [agp] 32768 kB allocated with handle 0xc381f700
(II) RADEON(0): [agp] ring handle = 0xd400
(II) RADEON(0): [agp] Ring mapped at 0x2c433000
(II) RADEON(0): [agp] ring read ptr handle = 0xd4101000
(II) RADEON(0): [agp] Ring read ptr mapped at 0x282df000
(II) RADEON(0): [agp] vertex/indirect buffers handle = 0xd4102000
(II) RADEON(0): [agp] Vertex/indirect buffers mapped at 0x2c534000
(II) RADEON(0): [agp] GART texture map handle = 0xd4302000
(II) RADEON(0): [agp] GART Texture map mapped at 0x2c734000
(II) RADEON(0): [drm] register handle = 0xd010
(II) RADEON(0): [dri] Visual configs initialized
(II) RADEON(0): CP in BM mode
(II) RADEON(0): Using 32 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 29 MB for GART textures
snip
(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 9
(II) RADEON(0): [drm] Initialized kernel GART heap manager, 29884416
(II) RADEON(0): Direct rendering enabled

According to glxgears, the DRI driver is being used:

name of display: scroll.netops.dci.lan:0.0
display: scroll.netops.dci.lan:0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
   GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
   GLX_EXT_import_context, GLX_OML_swap_method, 
GLX_SGI_make_current_read,

   GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
   GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
   GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
   GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
   GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
   GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
   GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
   GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
   GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20051013 AGP 4x NO-TCL
OpenGL version string: 1.3 Mesa 6.5

However, glxgears is only giving me about 1 FPS.  Most other GL 
applications (gltext, for example, from the xscreensaver package) are 
even slower.  Software Mesa is even faster.


The DRM driver is giving the following error message:

error: [drm:pid51336:drm_alloc_resource] *ERROR* Couldn't find 
resource 0x0


The PID changes, of course, depending on the PID of the X server, but 
the rest of the error stays the same.


What's really bizarre, however, is that if I set hw.dri.0.debug to 1, 
glxgears gets roughly 200 FPS, faster than software Mesa, but slower 
than it can get (undoubtedly due to the massive amounts of debugging 
information that the kernel is logging).


Any ideas?  Thanks!

Adam



Well, I've tried a few more GL programs, all from the xscreensaver 
package.  glforestfire also appear to display less than a frame per 
second.  Same with flip-flop and flyingtoasters.  flurry, on the other 
hand, is quite smooth and the FPS meter shows roughly 30 fps.


Adam



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net

Re: Latest CVS (2005-12-27) Radeon 280 DRI does not run

2005-12-28 Thread Dave Airlie

 Reverting that one change seems to have done the trick:


okay I reverted it in CVS..

Ben is going to come up with a better way to do this stuff..

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel