Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Sun, Mar 13, 2005 at 12:35:43PM +1100, Benjamin Herrenschmidt wrote: Hi ! I'm currently rewriting radeonfb to implement support for dual head, and ultimately, to make it more friendly to be hooked on DRM for mesa-solo style setups. I have some issues however related to the way memory

[Bug 2702] r200 driver does not support brilinear texture filtering

2005-03-13 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=2702 --- Additional Comments From [EMAIL PROTECTED] 2005-03-13 00:45 --- (In

Re: Idx buffer? Was: [Bug 2702] r200 driver does not support brilineartexture filtering

2005-03-13 Thread Aapo Tahkola
[EMAIL PROTECTED] schrieb: the drm version of the patch. Straightforward, I did not apply it to cvs since it needs a version bump, and I don't think this feature alone is worth that. Idx buffer support could be one of such features. Unfortunately no one seems to be interested in writing

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 10:22 +0200, Ville Syrjälä wrote: - We only really need to bother about CPU access for the framebuffer itself (and possibly the cursor). That is normal non-accelerated fbdev operations an mmap'ing of the framebuffer in user space. This is not really a problem if

Memory Management (WAS Re: huge allocation in sis drm).

2005-03-13 Thread Thomas Hellström
Dave Jones wrote: We got a bug report in our bugzilla from a user that saw SiS DRM crashing when he restarted X. The crash seems to be two things. First, a page allocation failure. Mar 11 17:52:29 localhost kernel: X: page allocation failure. order:4, mode:0xd0 Mar 11 17:52:29 localhost kernel:

Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Sun, Mar 13, 2005 at 08:20:45PM +1100, Benjamin Herrenschmidt wrote: On Sun, 2005-03-13 at 10:22 +0200, Ville Syrjälä wrote: - We only really need to bother about CPU access for the framebuffer itself (and possibly the cursor). That is normal non-accelerated fbdev operations an

Re: [r200] Lockups...

2005-03-13 Thread Nicolai Haehnle
On Sunday 13 March 2005 03:10, Adam K Kirchhoff wrote: Was it always shared with the USB controller? Can you try changing that? Some more info for both of you... I remarked, in an earlier e-mail, that glxgears wouldn't cause the lockups. That's not true. For whatever reason, it doesn't

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
AGP as it's currently used is pretty much pointless for software fallbacks since reading from AGP memory is nearly as slow as reading from video memory. Hrm.. I wouldn't expect _that_ slow. It's uncacheable, right, but still on a faster bus. Especially if we use it the way we do on ppc

Re: [r200] Lockups...

2005-03-13 Thread Adam K Kirchhoff
Nicolai Haehnle wrote: On Sunday 13 March 2005 03:10, Adam K Kirchhoff wrote: Was it always shared with the USB controller? Can you try changing that? Some more info for both of you... I remarked, in an earlier e-mail, that glxgears wouldn't cause the lockups. That's not true. For

Re: [r200] Lockups...

2005-03-13 Thread Adam K Kirchhoff
On Sun, 2005-03-13 at 07:43 -0500, Adam K Kirchhoff wrote: Nicolai Haehnle wrote: On Sunday 13 March 2005 03:10, Adam K Kirchhoff wrote: Was it always shared with the USB controller? Can you try changing that? Some more info for both of you... I remarked, in an earlier

Re: [r200] Lockups...

2005-03-13 Thread Jan Gukelberger
On Sat, 2005-03-12 at 21:10 -0500, Adam K Kirchhoff wrote: [snip] [drm:radeon_cp_reset] *ERROR* radeon_cp_reset called without lock held, held 0 owner ec8fce80 f7669180 [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held -2147483648 owner ec8fce80 f7669180 irq 16:

Re: [r200] Lockups...

2005-03-13 Thread Adam K Kirchhoff
Jan Gukelberger wrote: On Sat, 2005-03-12 at 21:10 -0500, Adam K Kirchhoff wrote: [snip] [drm:radeon_cp_reset] *ERROR* radeon_cp_reset called without lock held, held 0 owner ec8fce80 f7669180 [drm:radeon_cp_start] *ERROR* radeon_cp_start called without lock held, held -2147483648 owner

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Sun, Mar 13, 2005 at 11:19:35AM -0500, Jon Smirl wrote: On Sun, 13 Mar 2005 23:04:59 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: AGP as it's currently used is pretty much pointless for software fallbacks since reading from AGP memory is nearly as slow as reading from video

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Sun, 13 Mar 2005 19:47:14 +0200, Ville Syrjälä [EMAIL PROTECTED] wrote: I don't understand why we have GART memory anyway. It's just main memory and I don't see any point going through the GART to access it with the CPU. Only the graphics card needs to use the GART. I see no need to for the

Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Sun, 13 Mar 2005 23:04:59 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: AGP as it's currently used is pretty much pointless for software fallbacks since reading from AGP memory is nearly as slow as reading from video memory. Hrm.. I wouldn't expect _that_ slow. It's

Re: [r200] Lockups...

2005-03-13 Thread Adam K Kirchhoff
Vladimir Dergachev wrote: don't recall ever seeing message from the kernel about nobody caring about irq 16, or about radeon_cp_reset... With my 9800, I was getting radeon_cp_dispatch_swap errors. I do know, however, that my 9200 was working just last week or the week before. Hmmm... I think my

Problem with DRM in latest 2.6-bk

2005-03-13 Thread Andrew Clayton
Hi there. I have a problem seemingly related to DRM in the current Linus 2.6-bk tree (2.6.11-bk9 as of this writing). The problem started with 2.6.11-bk3. Basically the machine is locking up when X (xorg 6.8.1 from FC3) starts and needs a hard reset to recover. Disabling DRI in X and/or DRM in

[PATCH] call drm_cleanup as many times as drm_probe

2005-03-13 Thread Aaron Straus
I was getting: Badness in remove_proc_entry at fs/proc/generic.c:693 [c01951ba] remove_proc_entry+0x10a/0x150 [dfb81925] drm_core_exit+0x15/0x48 [drm] [c01305f4] sys_delete_module+0x144/0x180 [c01564d3] do_munmap+0x143/0x180 [c0156554] sys_munmap+0x44/0x70 [c010311f] syscall_call+0x7/0xb

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 11:19 -0500, Jon Smirl wrote: On Sun, 13 Mar 2005 23:04:59 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: AGP as it's currently used is pretty much pointless for software fallbacks since reading from AGP memory is nearly as slow as reading from video

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
If you are doing fallback calculations in a 6MB buffer that is 1,500 pages. Accessing all of this effectively flushes the data cache. Once you are done with it you probably don't want those pages in the cache anyway. I don't understand why we have GART memory anyway. It's just main

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
The best model would be to chuck the AGP/PCI Express interface on the board and have a hyperchannel instead. Hyperchannel provides full cache consistency without all of these flushing problems. The GPU really is another specialized CPU, give it a CPU class memory interface. You mean

Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 08:49:13 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: If you are doing fallback calculations in a 6MB buffer that is 1,500 pages. Accessing all of this effectively flushes the data cache. Once you are done with it you probably don't want those pages in the cache

Re: huge allocation in sis drm.

2005-03-13 Thread Alan Cox
On Gwe, 2005-03-11 at 19:42, Dave Jones wrote: We got a bug report in our bugzilla from a user that saw SiS DRM crashing when he restarted X. This object could be vmalloc()'d --- SF email is sponsored by - The IT Product Guide Read honest

[R300] - Stencil support

2005-03-13 Thread Peter Zubaj
Hi, I played with stencil and this patch is output. I tested it only on stenciltst from http://www.sgi.com/products/software/opengl/examples/glut/examples/ This app doesn't use Z_TEST. It show correct output. Somene with more mesa and r300 knowledge should correct it (there are still problems).

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Felix Kühling
[slightly off topic] Am Sonntag, den 13.03.2005, 12:56 -0500 schrieb Jon Smirl: On Sun, 13 Mar 2005 19:47:14 +0200, Ville Syrjälä [EMAIL PROTECTED] wrote: I don't understand why we have GART memory anyway. It's just main memory and I don't see any point going through the GART to access it

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 17:10 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 08:49:13 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: If you are doing fallback calculations in a 6MB buffer that is 1,500 pages. Accessing all of this effectively flushes the data cache. Once you are done

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 08:52:46 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: The best model would be to chuck the AGP/PCI Express interface on the board and have a hyperchannel instead. Hyperchannel provides full cache consistency without all of these flushing problems. The GPU

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 17:17 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 08:52:46 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: The best model would be to chuck the AGP/PCI Express interface on the board and have a hyperchannel instead. Hyperchannel provides full cache

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 23:21 +0100, Felix Kühling wrote: [slightly off topic] Am Sonntag, den 13.03.2005, 12:56 -0500 schrieb Jon Smirl: On Sun, 13 Mar 2005 19:47:14 +0200, Ville Syrjälä [EMAIL PROTECTED] wrote: I don't understand why we have GART memory anyway. It's just main memory

Re: [r200] Lockups...

2005-03-13 Thread Adam K Kirchhoff
Adam K Kirchhoff wrote: Vladimir Dergachev wrote: don't recall ever seeing message from the kernel about nobody caring about irq 16, or about radeon_cp_reset... With my 9800, I was getting radeon_cp_dispatch_swap errors. I do know, however, that my 9200 was working just last week or the week

Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 09:20:01 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: On Sun, 2005-03-13 at 17:10 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 08:49:13 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: If you are doing fallback calculations in a 6MB buffer that is 1,500

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
I'm not being clear Leave AGP memory as normal RAM driver does it thing to the memory driver executes flush of data cache on CPU after flush tell GPU to access the data The performance hit of executing the flush is probably negligible since you probably didn't care about anything

Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Sun, Mar 13, 2005 at 06:00:01PM -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 09:20:01 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Though the flushes may be fast if there is no actual hit in the cache, I agree. Again, that should be benched. In fact, i would _love_ to be

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
That shouldn't matter the page brought in would be for a speculative read and never accessed. It should just fall out of the cache and not be written back. There is only one cachable mapping. In this model writes are always followed by a flush before telling the GPU to access the memory

Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Mon, Mar 14, 2005 at 10:48:19AM +1100, Benjamin Herrenschmidt wrote: That shouldn't matter the page brought in would be for a speculative read and never accessed. It should just fall out of the cache and not be written back. There is only one cachable mapping. In this model writes

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
I don't think normal drivers do them at all. I did experiment with DirectFB at one point and had it place all offscreen surfaces to AGP memory. It worked really well on my hardware (G400 + VIA KT133 northbridge). I also tried it with PCI transfers and that too worked but was naturally

Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 10:48:19 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: That shouldn't matter the page brought in would be for a speculative read and never accessed. It should just fall out of the cache and not be written back. There is only one cachable mapping. In this

Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Sun, Mar 13, 2005 at 07:25:15PM -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 10:48:19 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: That shouldn't matter the page brought in would be for a speculative read and never accessed. It should just fall out of the cache and not

Re: radeon, apertures memory mapping

2005-03-13 Thread Paul Mackerras
Jon Smirl writes: It works, but it's illegal. That means that the CPU might well speculate a load from one of these pages in kernel-land just because it happens to be next to a page where you are iterating an array, and may then bring a bit in the cache from that page. That shouldn't

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 19:25 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 10:48:19 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: That shouldn't matter the page brought in would be for a speculative read and never accessed. It should just fall out of the cache and not be

Re: radeon, apertures memory mapping

2005-03-13 Thread Ville Syrjälä
On Mon, Mar 14, 2005 at 11:41:23AM +1100, Paul Mackerras wrote: Jon Smirl writes: It works, but it's illegal. That means that the CPU might well speculate a load from one of these pages in kernel-land just because it happens to be next to a page where you are iterating an array, and

Re: Problem with DRM in latest 2.6-bk

2005-03-13 Thread Adam K Kirchhoff
Jerome Glisse wrote: Maybe the lockup you experiment is linked with the lockup Adam gets. Adam have you upgraded you kernel recently ? Maybe a 2.6.10 or even previous one could fix this. Thus telling that the lockup may be due to some usb change or some others things in the kernel. Just trying to

Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Mon, 2005-03-14 at 02:39 +0200, Ville Syrjälä wrote: On Sun, Mar 13, 2005 at 07:25:15PM -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 10:48:19 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: That shouldn't matter the page brought in would be for a speculative read and

[Announce] New DRIconf version 0.2.3

2005-03-13 Thread Felix Kühling
Hi all, I just uploaded a new DRIconf version (0.2.3), which features better support for floating-point ranges like the brilinear option proposed by Roland Scheidegger. There are also a few bug fixes and usability improvements as well as updates and additions to the README file. This version is

Re: [r200] Lockups...

2005-03-13 Thread Vladimir Dergachev
Alright... So drm from both February 14th and January 1st are locking up as well... Which is odd since I never had any of these problem till this weekend. I'll start rolling back changes to the Mesa dri driver... Perhaps this isn't directly related to the drm. Oh, I've also flashed my

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 12:05:59 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: It should be the responsibility of the memory manager. If anything wants to access the memory it would call lock() and when it's done with the memory it calls unlock(). That's exactly how DirectFB's memory

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 20:47 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 12:05:59 +1100, Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: It should be the responsibility of the memory manager. If anything wants to access the memory it would call lock() and when it's done with the

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Paul Mackerras
[EMAIL PROTECTED] removed from CC since I can't post to it. Jon Smirl writes: It shouldn't hurt to have a parallel non-cached mapping being used in conjuction with this protocol. By definition the non-cached mapping never gets into an inconsistent state. According to the PowerPC Architecture

Re: Problem with DRM in latest 2.6-bk

2005-03-13 Thread Andrew Clayton
On Mon, 2005-03-14 at 01:32 +0100, Jerome Glisse wrote: Maybe the lockup you experiment is linked with the lockup Adam gets. Adam have you upgraded you kernel recently ? Maybe a 2.6.10 or even previous one could fix this. Thus To clarify: 2.6.11-bk2 OK 2.6.11-bk3 Lockup Cheers,

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Michel Dänzer
On Sun, 2005-03-13 at 17:43 +1100, Benjamin Herrenschmidt wrote: And finally, I want to blank the screen (using the accel engine) before setting the new mode, so that we come out clean of the mode setting (without ugly artifact), and I will probably clean both fb's (simpler). That would

Re: Problem with DRM in latest 2.6-bk

2005-03-13 Thread Paul Mackerras
Andrew Clayton writes: 2.6.11-bk2 OK 2.6.11-bk3 Lockup Have you tried the most recent kernel? There were some changes to the AGP code that caused it to oops for me. Linus took my patch to fix that this last weekend. Paul. --- SF email is

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Jon Smirl
On Mon, 14 Mar 2005 15:07:26 +1100, Paul Mackerras [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] removed from CC since I can't post to it. Jon Smirl writes: It shouldn't hurt to have a parallel non-cached mapping being used in conjuction with this protocol. By definition the non-cached

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 23:40 -0500, Jon Smirl wrote: On Mon, 14 Mar 2005 15:07:26 +1100, Paul Mackerras [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] removed from CC since I can't post to it. Jon Smirl writes: It shouldn't hurt to have a parallel non-cached mapping being used in

[Bug 2702] r200 driver does not support brilinear texture filtering

2005-03-13 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=2702 --- Additional Comments From [EMAIL PROTECTED] 2005-03-13 21:17 ---

Re: [Linux-fbdev-devel] Re: radeon, apertures memory mapping

2005-03-13 Thread Benjamin Herrenschmidt
On Sun, 2005-03-13 at 23:28 -0500, Michel Dänzer wrote: On Sun, 2005-03-13 at 17:43 +1100, Benjamin Herrenschmidt wrote: And finally, I want to blank the screen (using the accel engine) before setting the new mode, so that we come out clean of the mode setting (without ugly artifact),