Bug 25589

Summary: compiling nouveau kernel without AGP=y fails
Product: xorg Reporter: Peter Hjalmarsson <xake>
Component: Driver/nouveauAssignee: Nouveau Project <nouveau>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Peter Hjalmarsson 2009-12-11 07:59:12 UTC
Check out a nouveau kernel tree.
make allnoconfig
make *config and enable only the necessary things to enable DRM_NOUVEAU
make all

This will fail with:
  CC      drivers/gpu/drm/nouveau/nouveau_bo.o
drivers/gpu/drm/nouveau/nouveau_bo.c: In function 'nouveau_bo_create_ttm_backend_entry':
drivers/gpu/drm/nouveau/nouveau_bo.c:315: error: implicit declaration of function 'ttm_agp_backend_init'
drivers/gpu/drm/nouveau/nouveau_bo.c:315: warning: return makes pointer from integer without a cast
make[4]: *** [drivers/gpu/drm/nouveau/nouveau_bo.o] Error 1


To make ttm_agp_backend_init avaible and nouveau to actually compile you have to enable AGP in the kernel also.

Should AGP be a reuirment or should the module just not try to use ttm_agp_backend_init if AGP is unset?

I have currently no idea which role AGP plays in todays modern PCI-E computers (or old PCI card) if any at all?
Comment 1 Ilia Mirkin 2013-08-18 18:10:22 UTC
It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.

In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/ for what we need to see, and re-open this one.

Thanks,

The Nouveau Team

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.