Skip to content

Commit eda85d6

Browse files
aakoskinairlied
authored andcommitted
drm/nouveau: fix init with agpgart-uninorth
Check that the AGP aperture can be mapped. This follows a similar change done for Radeon (commit 365048f, drm/radeon: AGP memory is only I/O if the aperture can be mapped by the CPU.). The patch fixes the following error seen on G5 iMac: nouveau E[ DRM] failed to create kernel channel, -12 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58806 Cc: stable@vger.kernel.org Reviewed-by: Michel Dänzer <michel@daenzer.net> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 57cdf82 commit eda85d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nouveau_bo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ nouveau_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem)
12761276
if (drm->agp.stat == ENABLED) {
12771277
mem->bus.offset = mem->start << PAGE_SHIFT;
12781278
mem->bus.base = drm->agp.base;
1279-
mem->bus.is_iomem = true;
1279+
mem->bus.is_iomem = !dev->agp->cant_use_aperture;
12801280
}
12811281
#endif
12821282
break;

0 commit comments

Comments
 (0)