[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New sleep code for ATI M6, M7 and M9



On Thursday 20 March 2003 18:11, you wrote:

> > a gentoo (nobody's perfect...) and running xfree-4.3.0 and gentoo's
> > xfree-drm (should be same source as debian drm-trunk-modules).
>
> I hope not. It would be foolish of Gentoo to use bleeding edge CVS
> snapshots.

You're right, I may have spoken too quickly. The current "testing" (as of 
gentoo) ebuild uses a source archive from the developper's website:
http://cvs.gentoo.org/~gerk/distfiles/drm-trunk.tar.gz
But it is the same (according to cmp) as what I get after running dpkg-deb -x 
on your drm-trunk-module-src_2002.12.05-3_all.deb, from 
people.debian.org/~daenzer, and once untarred it still has the 
modules/drm-trunk/debian/changelog.m4 saying:
drm-trunk-module-KVERS (KDREV+2002.12.05-3) unstable; urgency=low

Portage only patches the Makefile.linux (most of it is for ease of use with 
emerge, apparently) before building it, with the patch quoted at the end of 
this message.

> As others have pointed out, it must be the AGPMode (it never occurred to
> me that this could help for sleep because higher AGP transfer rates
> traditionally tended to be problematic...) because ForcePCIMode defaults
> to false and you can't use the UniNorth agpgart without
> http://penguinppc.org/~daenzer/DRI/drm-ioremapagp.diff . Are you using
> that? If not, that would be interesting because the AGPMode option would
> seem to have an effect without AGP GART actually being used.

Indeed, it works with just "AGPMode" "4", no ForcePCIMode nor DRIReinit 
(except I  get less garbage on the screen on snooze). And I'm not using the 
drm-ioremapagp.diff, as far as I can tell. Just to make sure, I rebuilt my 
drm modules from drm-trunk-module-src_2002.12.05-3_all.deb, and it works just 
as fine (or is the patch already included in that?). In both cases I get an 
(EE) RADEON(0): RADEONDRIResume: CP resume -1007
on the console but it doesn't seem to have an impact (dri is still okay after 
resuming).

Please tell me if you need any more info (you might be better off with a 
gentoo dev, though, for the technical part), and thanks a lot for your work!


--- modules/drm-trunk/Makefile.linux.orig	2003-02-08 17:26:19.000000000 +0000
+++ modules/drm-trunk/Makefile.linux	2003-02-08 17:27:34.000000000 +0000
@@ -38,7 +38,7 @@
 
 # **** End of SMP/MODVERSIONS detection
 
-MODS =		gamma.o tdfx.o r128.o radeon.o
+MODS =		r128.o radeon.o
 LIBS =
 
 DRMTEMPLATES =	drm_auth.h drm_bufs.h drm_context.h drm_dma.h drm_drawable.h \
@@ -148,12 +148,15 @@
 ifeq ($(AGP),1)
 MODCFLAGS += -DCONFIG_AGP -DCONFIG_AGP_MODULE
 DRMTEMPLATES += drm_agpsupport.h
-MODS += mga.o
 ifeq ($(MACHINE),i386)
+MODS += mga.o
+MODS += sis.o
 MODS += i810.o
 MODS += i830.o
 endif
 ifeq ($(MACHINE),i686)
+MODS += mga.o
+MODS += sis.o
 MODS += i810.o
 MODS += i830.o
 endif
@@ -173,7 +176,6 @@
 MODCFLAGS+=      -ffixed-8 -mno-fp-regs -mcpu=ev56 -Wa,-mev6 
 endif
 
-MODS += sis.o
 
 SISOBJS=	sis_drv.o sis_mm.o sis_ds.o 
 SISHEADERS=	sis_drv.h sis_drm.h $(DRMHEADERS)
@@ -278,5 +280,12 @@
 $(I830OBJS): $(I830HEADERS)
 endif
 
+install: $(MODS)
+	install -d -m 0755 $(DESTDIR)/lib/modules/$(KV)/kernel/drivers/char/drm
+	@for i in $(MODS); do \
+		install -m 0755 $$i $(DESTDIR)/lib/modules/$(KV)/kernel/drivers/char/drm; \
+	done
+
+
 clean cleandir::
 	rm -f *.o *.a *~ core



Reply to: