Skip to contentSkip to conversation

agp and framebuffer (intelfb) - your milage may vary

PATCH B.G. Bruce 1 participant 1 message Jan 27, 2005 Framebuffer layer

lore
Share & tools
lore

B.G. Bruce

author
#0 lore raw

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.

drivers/video/intelfb/intelfbdrv.c renamed from drivers/video/intelfb.orig/intelfbdrv.c +6 -5
diff -Naur linux-xen/drivers/video/intelfb.orig/intelfbdrv.c linux-xen/drivers/video/intelfb/intelfbdrv.c
@@ -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)) {