WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] ATI Radeon 9600SE and intel-agp, again

To: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] ATI Radeon 9600SE and intel-agp, again
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Date: Mon, 07 Feb 2005 13:42:49 -0800
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 07 Feb 2005 21:43:34 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D123738@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D123738@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20050116)
Ian Pratt wrote:
if (direct_remap_area_pages(&init_mm, (unsigned long)

addr, phys_addr,

                   size, __pgprot(_PAGE_PRESENT | _PAGE_RW |
                          _PAGE_DIRTY | _PAGE_ACCESSED
                          | flags), DOMID_IO)) {


The previous patch was trivially broken - it calculated the domid to use
then always passed in a constant (as above).

Thanks, I should have spotted that. This is equal to my own hacked version (using DOMID_LOCAL or remming out the owner check in Xen), so I can now load intel-agp without that bad taste in my mouth :-)

Anyway, I now encounter the following crash in the r300-supplied drm-module:

Oops: 0000 [#1]
DEBUG_PAGEALLOC
Modules linked in: radeon drm intel_agp agpgart
CPU:    0
EIP:    0061:[<c0143546>]    Not tainted VLI
EFLAGS: 00013206   (2.6.10-xen0)
EIP is at remap_pfn_range+0x176/0x220
eax: c0527000   ebx: 000e0000   ecx: 00000027   edx: 000e0000
esi: 003ee000   edi: c9b48fb8   ebp: 00400000   esp: c9917eac
ds: 007b   es: 007b   ss: 0069
Process X (pid: 6673, threadinfo=c9916000 task=c9977b20)
Stack: 00400000 af400000 000dfc12 003ee000 c994eaf4 c994fddc af8ef000 c994eaf4 00000000 c7a10804 c9c6a5b0 ce4c67f8 d087c2b6 c9c6a5b0 af7ee000 00030812 00101000 00000027 c9c6a5ac c9b4af6c c9c6a5b0 af7ee000 ffffffea c9b4af6c
Call Trace:
 [<d087c2b6>] drm_mmap+0x1c6/0x2b9 [drm]
 [<c014624f>] do_mmap_pgoff+0x35f/0x730
 [<c0110e76>] old_mmap+0xd6/0x110
 [<c0109530>] syscall_call+0x7/0xb
Code: e0 05 01 d0 8b 00 f6 c4 08 74 2a 8b 44 24 44 89 d9 c1 e1 0c 09 c1 f6 c1 01 74 18 a1 80 08 4f c0 89 ca c1 ea 0 c 81 e1 ff 0f 00 00 <8b> 04 90 c1 e0 0c 09 c1 89 0f 43 83 c7 04 81 c6 00 10 00 00 74

I have seen some mention of a drm-patch earlier, but it is no longer in the tree. What happened to that / is it likely that I need to apply something similar to the r300 drm module?

thanks,
Jacob


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel