]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71c8a39dd02c91e254283295249a94219aefdcd7
tree14f301bf2259f93b8a44b1afdb46dfd40f9a721d
parent17733b6efbba7e7833d94b2f8236175b65a93a0c
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