Bug 25691

Summary: Cannot compile DRM modules - drm_agpsupport.c fails
Product: DRI Reporter: Gareth Fitch <g.fitch>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED NOTABUG QA Contact:
Severity: blocker    
Priority: medium    
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Console scrollback buffer - complete none

Description Gareth Fitch 2009-12-17 13:47:00 UTC
Created attachment 32157 [details]
Console scrollback buffer - complete

Kernel 2.6.32 (Gentoo)
GCC 4.4.2
glibc 2.11-r1
X (client) 7.4
X (server) 1.7.3
DRI - from CVS (today)

In trying to compile the R600 DRM module, it exits with an error at drm_agpsupport.c

Output looks like:
  CC [M]  /home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.o
/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.c: In function ‘drm_agp_bind_pages’:
/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.c:520: error: implicit declaration of function ‘phys_to_gart’
/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.c:520: warning: assignment makes pointer from integer without a cast
/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.c: In function ‘drm_agp_populate’:
/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.c:589: warning: assignment makes pointer from integer without a cast
make[2]: *** [/home/gfitch/X11-drm/drm/linux-core/drm_agpsupport.o] Error 1
make[1]: *** [_module_/home/gfitch/X11-drm/drm/linux-core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.32-gentoo'
make: *** [modules] Error 2

A copy of the complete console session is attached.
Comment 1 Alex Deucher 2009-12-17 16:03:47 UTC
The drm modules are maintained in the kernel now.  The standalone drm tree is no longer has the kernel modules.  You need 2.6.30 for 2D/Xv or 2.6.32 for 3D on r600+.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.