Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Thomas Hellström
Benjamin Herrenschmidt wrote: OK. It seems like mmap locks are needed even for unmap_mapping_range(). Well, I came to the opposite conclusion :) unmap_mapping_range() uses the truncate count mecanism to guard against a racing no_page(). The idea is that: no_page()

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Benjamin Herrenschmidt
OK. i was reffering to another approach: Copying _to_ VRAM /AGP: lock_mmap_sems() unmap_mapping_range() (or similar) copy() / flip() foreach_affected_vma{ io_remap_pfn_range() /* Map vram / AGP space */ } unlock_mmap_sem() This works like a charm in the drm memory manager but it

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Benjamin Herrenschmidt
* objects have rwsem to protect migration. * no_page() does: - takes that object read sem - if object is in vram or other non-memory location then do io_remap_pfn_range() and get a dummy page struct pointer - else get the struct page of the object page in memory - release the

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Thomas Hellström
Benjamin Herrenschmidt wrote: OK. i was reffering to another approach: Copying _to_ VRAM /AGP: lock_mmap_sems() unmap_mapping_range() (or similar) copy() / flip() foreach_affected_vma{ io_remap_pfn_range() /* Map vram / AGP space */ } unlock_mmap_sem() This works like a charm in the drm

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Benjamin Herrenschmidt
I'm finding this an interesting discussion. If it shifts to lkml, for instance, is there a way to follow *and post* on the thread without either subscribing to lkml or requiring myself to be on the CC list? I don't know if lkml allows non-subscriber posted, I think it does tho. So you can

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Ville Syrjälä
On Thu, Sep 21, 2006 at 07:18:07PM +1000, Benjamin Herrenschmidt wrote: I'm finding this an interesting discussion. If it shifts to lkml, for instance, is there a way to follow *and post* on the thread without either subscribing to lkml or requiring myself to be on the CC list? I

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Benjamin Herrenschmidt
No, that's probably the safest approach we can use until NOPAGE_RETRY arrives. Only I was not sure it'd be safe to call io_remap_pfn_range() from within nopage, in case it modifies some internal mm structs that the kernel nopage() code expects to be untouched. It does a couple of things

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Keith Whitwell
Ville Syrjälä wrote: On Thu, Sep 21, 2006 at 07:18:07PM +1000, Benjamin Herrenschmidt wrote: I'm finding this an interesting discussion. If it shifts to lkml, for instance, is there a way to follow *and post* on the thread without either subscribing to lkml or requiring myself to be on the

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Thomas Hellström
Benjamin Herrenschmidt wrote: No, that's probably the safest approach we can use until NOPAGE_RETRY arrives. Only I was not sure it'd be safe to call io_remap_pfn_range() from within nopage, in case it modifies some internal mm structs that the kernel nopage() code expects to be untouched.

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Benjamin Herrenschmidt
Hmm, the comments to handle_pte_fault(), which is calling do_nopage gives some insight.. * Note the page_table_lock. It is to protect against kswapd removing * pages from under us. Note that kswapd only ever _removes_ pages, never * adds them. As such, once we have noticed that the

Re: DRM memory manager on cards with hardware contexts

2006-09-21 Thread Thomas Hellström
Thomas Hellström wrote: Benjamin Herrenschmidt wrote: Hmm, the comments to handle_pte_fault(), which is calling do_nopage gives some insight.. * Note the page_table_lock. It is to protect against kswapd removing * pages from under us. Note that kswapd only ever _removes_ pages, never *

[Bug 6624] AIGLX reports not supported visuals

2006-09-21 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=6624 --- Additional Comments From [EMAIL PROTECTED] 2006-09-21 18:16 --- (In

[Bug 7092] Add Dell Poweredge ATI Rage ID

2006-09-21 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=7092 [EMAIL PROTECTED] changed: What|Removed |Added

[Bug 4946] [mga] PCI DMA is broken

2006-09-21 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=4946 [EMAIL PROTECTED] changed: What|Removed |Added

[Bug 4508] Problem with DRM on Alpha arch.

2006-09-21 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=4508 Bug 4508 depends on bug 4946, which changed state. Bug 4946 Summary: [mga] PCI DMA

[Bug 5341] System locks up when starting X w/ DRI on a Radeon RV370 (X300)

2006-09-21 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=5341 [EMAIL PROTECTED] changed: What|Removed |Added

[Bug 6870] kernel-2.6.17 on a P-IV locks up the machine: problem with 'drm:i830'

2006-09-21 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=6870 [EMAIL PROTECTED] changed: What|Removed |Added Owner|[EMAIL PROTECTED] |[EMAIL PROTECTED]

[Bug 6111] ATI Radeon 9200 freezes using dri

2006-09-21 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=6111 --- Additional Comments From [EMAIL PROTECTED] 2006-09-21 21:46 --- (In

Re: R200 lockup (was Re: DRI/X error resolution)

2006-09-21 Thread Dave Jones
On Fri, Sep 22, 2006 at 03:29:48PM +1000, Dave Airlie wrote: On 9/22/06, Ryan Richter [EMAIL PROTECTED] wrote: On Thu, Sep 21, 2006 at 11:54:01PM -0500, Stephen Olander Waters wrote: Here is the bug I'm working from (includes hardware, software, etc.):