All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: agp and framebuffer (intelfb) - your milage may vary
@ 2005-01-28  8:43 Ian Pratt
  2005-01-28 12:36 ` B.G. Bruce
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Ian Pratt @ 2005-01-28  8:43 UTC (permalink / raw)
  To: bgb, xen-devel; +Cc: Rik van Riel


> with the patches/linux-2.6.9/{agpgart,drm}.patch patches applied
> (shouldn't there be a symlink to linux-2.6.10?) 

There's an argument that we should automatically apply these patches and
build AGP and DRM support as modules for our xen0 kernels. It would be
good to know which drivers have actually been tested and work.

Rik: did you have any luck feeding the agpgart and drm patches up
stream? 

> I would
> appreciate it if someone who knows the xen agp subsystem (in 
> particular
> the agp_acquire_backend) better would look over the intelfb.patch and
> post any improvements (I don't like taking out the checks made on
> agp_acquire_backend(), but with them left in, I get "intelfb: cannot
> acquire agp").

Which of the error codes is it returning? There's nothing special about
AGP support on arch xen, its just that Xen is rather stricter about what
drivers are allowed to get away with, requring some fixes.

int agp_backend_acquire(void)
{
        if (agp_bridge->type == NOT_SUPPORTED)
                return -EINVAL;
        if (atomic_read(&agp_bridge->agp_in_use))
                return -EBUSY;
        atomic_inc(&agp_bridge->agp_in_use);
        return 0;
}

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] 9+ messages in thread
* RE: agp and framebuffer (intelfb) - your milage may vary
@ 2005-02-09  1:18 Ian Pratt
  2005-02-09  1:23 ` B.G. Bruce
  2005-02-09  2:25 ` Jacob Gorm Hansen
  0 siblings, 2 replies; 9+ messages in thread
From: Ian Pratt @ 2005-02-09  1:18 UTC (permalink / raw)
  To: bgb, xen-devel; +Cc: ian.pratt


If you apply the agp.patch, I'd be interested to know if this issue is
now fixed.

I think there's a pretty good argument for applying the patch be default
now...

Ian

> with the patches/linux-2.6.9/{agpgart,drm}.patch patches applied
> (shouldn't there be a symlink to linux-2.6.10?) and this 
> ultrasimplitic
> (and probably WRONG!) patch, I have agp and the intelfb working in
> dom0.  I'll try other domains later today an post my results.  I would
> appreciate it if someone who knows the xen agp subsystem (in 
> particular
> the agp_acquire_backend) better would look over the intelfb.patch and
> post any improvements (I don't like taking out the checks made on
> agp_acquire_backend(), but with them left in, I get "intelfb: cannot
> acquire agp").
> 
> Thanks,
> B.
> 


-------------------------------------------------------
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] 9+ messages in thread
* agp and framebuffer (intelfb) - your milage may vary
@ 2005-01-27 12:25 B.G. Bruce
  0 siblings, 0 replies; 9+ messages in thread
From: B.G. Bruce @ 2005-01-27 12:25 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

Hi,

with the patches/linux-2.6.9/{agpgart,drm}.patch patches applied
(shouldn't there be a symlink to linux-2.6.10?) and this ultrasimplitic
(and probably WRONG!) patch, I have agp and the intelfb working in
dom0.  I'll try other domains later today an post my results.  I would
appreciate it if someone who knows the xen agp subsystem (in particular
the agp_acquire_backend) better would look over the intelfb.patch and
post any improvements (I don't like taking out the checks made on
agp_acquire_backend(), but with them left in, I get "intelfb: cannot
acquire agp").

Thanks,
B.

[-- Attachment #2: intelfb.patch --]
[-- Type: text/x-patch, Size: 691 bytes --]

diff -Naur linux-xen/drivers/video/intelfb.orig/intelfbdrv.c linux-xen/drivers/video/intelfb/intelfbdrv.c
--- linux-xen/drivers/video/intelfb.orig/intelfbdrv.c	2005-01-26 12:04:02.000000000 -0400
+++ linux-xen/drivers/video/intelfb/intelfbdrv.c	2005-01-26 12:49:28.000000000 -0400
@@ -605,11 +605,12 @@
 	}
 
 	/* Use agpgart to manage the GATT */
-	if (agp_backend_acquire()) {
-		ERR_MSG("cannot acquire agp\n");
-		cleanup(dinfo);
-		return -ENODEV;
-	}
+	agp_backend_acquire();
+/*	if (agp_backend_acquire()) {
+*		ERR_MSG("cannot acquire agp\n");
+*		cleanup(dinfo);
+*		return -ENODEV;
+*	} */
 
 	/* get the current gatt info */
 	if (agp_copy_info(&gtt_info)) {

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

end of thread, other threads:[~2005-02-09  2:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28  8:43 agp and framebuffer (intelfb) - your milage may vary Ian Pratt
2005-01-28 12:36 ` B.G. Bruce
2005-01-28 17:21 ` B.G. Bruce
2005-01-28 19:13 ` Jacob Gorm Hansen
2005-01-31 13:07 ` Kurt Garloff
  -- strict thread matches above, loose matches on Subject: below --
2005-02-09  1:18 Ian Pratt
2005-02-09  1:23 ` B.G. Bruce
2005-02-09  2:25 ` Jacob Gorm Hansen
2005-01-27 12:25 B.G. Bruce

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.