All of lore.kernel.org
 help / color / mirror / Atom feed
* ATI Radeon 9600SE and intel-agp, again
@ 2005-02-05  2:47 Jacob Gorm Hansen
  0 siblings, 0 replies; 8+ messages in thread
From: Jacob Gorm Hansen @ 2005-02-05  2:47 UTC (permalink / raw)
  To: xen-devel

hi,

I have now switched over to using the open 'R300' ATI Radeon driver in 
my quest for accellerated 3D under Xen.

I have the driver running with reasonable performance under normal 
Linux, but in Xen it still refuses to load due to the lack of intel-agp.

intel-agp refuses to load because the call to MMU_SET_FOREIGNDOM (trying 
to give the I/O pages to dom_io) fails, because the pages are owned by 
dom0 instead of by dom_io. If I remove the ownership check in get_page() 
(in Xen) I can load the module, but dom0 will crash when X tries to map 
AGP memory.

Again, this is _before_ any nonstandard drivers are loaded, just a plain 
Xenlinux on top of a plain Xen. intel-agp is the first module loaded.

The good news:

1) There is an open Radeon 3D driver for which we have the source.
2) This driver and the ATI fglrx driver fail in exactly the same way, 
meaning there is still hope for getting the fglrx driver working as well.

and the bad news:

1) intel-agp refuses to load with an ATI 9600SE (r350 chip, 8x AGP, 
128meg DDR) card under Xen, though the same config works fine in plain 
Linux.

I will try and understand how this stuff is supposed to work, I have an 
internet-connected debug-machine with serial console, if anyone with 
more Xen-AGP knowledge wishes to help debugging this.

Jacob


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: ATI Radeon 9600SE and intel-agp, again
@ 2005-02-05  7:52 Ian Pratt
  2005-02-06  7:31 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Pratt @ 2005-02-05  7:52 UTC (permalink / raw)
  To: Jacob Gorm Hansen, xen-devel; +Cc: ian.pratt

> intel-agp refuses to load because the call to 
> MMU_SET_FOREIGNDOM (trying 
> to give the I/O pages to dom_io) fails, because the pages are 
> owned by dom0 instead of by dom_io. If I remove the ownership check in

> get_page() 
> (in Xen) I can load the module, but dom0 will crash when X 
> tries to map 
> AGP memory.

Have you tried since the following checkin:
48 hours	kaf24	1.1711	Fix ioremap() for local RAM pages

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: ATI Radeon 9600SE and intel-agp, again
@ 2005-02-06  9:34 Ian Pratt
  2005-02-07 21:42 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Pratt @ 2005-02-06  9:34 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: xen-devel, ian.pratt

> >     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).

It's a shame Linux isn't compiled -Werror

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: ATI Radeon 9600SE and intel-agp, again
@ 2005-02-07 22:08 Ian Pratt
  2005-02-07 22:45 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Pratt @ 2005-02-07 22:08 UTC (permalink / raw)
  To: Jacob Gorm Hansen; +Cc: xen-devel, ian.pratt

> 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?

The previous drm patch was for an inline wbinvd instruction, which we
now emulate in Xen.

This is something different. You'll have to figure out what the
remap_page_range is trying to remap...

Ian


-------------------------------------------------------
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_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-02-07 22:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-05  2:47 ATI Radeon 9600SE and intel-agp, again Jacob Gorm Hansen
  -- strict thread matches above, loose matches on Subject: below --
2005-02-05  7:52 Ian Pratt
2005-02-06  7:31 ` Jacob Gorm Hansen
2005-02-06  7:59   ` Jacob Gorm Hansen
2005-02-06  9:34 Ian Pratt
2005-02-07 21:42 ` Jacob Gorm Hansen
2005-02-07 22:08 Ian Pratt
2005-02-07 22:45 ` Jacob Gorm Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.