drm/ttm: device address space != CPU address space
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 4 Mar 2015 05:18:38 +0000 (00:18 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Mar 2015 23:04:39 +0000 (09:04 +1000)
commit54c4cd68ed7abd9f245722bee39464d04ddb4cfd
tree14f301bf2259f93b8a44b1afdb46dfd40f9a721d
parent440fd5283a87345cdd4237bdf45fb01130ea0056
drm/ttm: device address space != CPU address space

We need to store device offsets in 64 bit as the device
address space may be larger than the CPU's.

Fixes GPU init failures on radeons with 4GB or more of
vram on 32 bit kernels.  We put vram at the start of the
GPU's address space so the gart aperture starts at 4 GB
causing all GPU addresses in the gart aperture to get
truncated.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=89072

[airlied: fix warning on nouveau build]

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: thellstrom@vmware.com
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h
include/drm/ttm/ttm_bo_driver.h