http://bugzilla.kernel.org/show_bug.cgi?id=12441





------- Comment #8 from palgl...@gmail.com  2009-01-28 02:39 -------
Created an attachment (id=20028)
 --> (http://bugzilla.kernel.org/attachment.cgi?id=20028&action=view)
two approach to fix

>[  313.061972] [drm:radeon_do_init_cp] *ERROR* could not find ioremap agp
This fail is happened in ioremap() due to type mismatch.
ioremap() will be translated to nocache_ioremap() on x86/64 default.

>Xorg:3993 map pfn expected mapping type write-back for
>c0000000-c0101000, got write-combining
This indicates that trying to maping with write-back(=nocache),
but region is write-combine, be as explained in above.

On the calling io_remap_pfn_range() from drm_mmap_locked() via mmap() in
drm_vm.c,
vma->vm_page_prot=0, it indicates do mapping with regions original prot.
Thus, with most AGP mtrr system, it is setted to write-combine.

there are two approach,
In drm_mmap_locked(), use nocache mapping with agp too.
or
In drm_core_ioremap(), try to use ioremap_wc().
(i'm sure best with ioremap_default() behaviour, but it not exported yet and
it's in only x86.)


BTW I still got 
>[10503.406254] glxinfo:5854 freeing invalid memtype e0102000-e0112000
on exit some apps that using drm.

with my print debug, strangely, first cp_ring is only succeed the ioremap().
>[drm:radeon_do_init_cp] *ERROR* cp_ring:f8900000, ring_rptr:(null), 
>agp_buffer_map:(null)
Because PAT has UC- type for few GART region already immediate after boot.

There may be something wrong PAT and MTRR interactions, and AGP madness.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to