]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/radeon: TTM must be init with cpu-visible VRAM, v2
authorLauri Kasanen <cand@gmx.com>
Fri, 28 Feb 2014 18:50:23 +0000 (20:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Mar 2014 04:44:05 +0000 (21:44 -0700)
commit3d74ef5bc0c7de5e35c7559cecf90c705f74c4f9
tree58075b9b20be8b3c5c084892ce8b78727ef7bbc8
parenteb11b51a8c1e66cdec83cadd06368b473a923c64
drm/radeon: TTM must be init with cpu-visible VRAM, v2

commit 14eedc32a3c0ec9dd70448a73763ee21feae3111 upstream.

Without this, a bo may get created in the cpu-inaccessible vram.
Before the CP engines get setup, all copies are done via cpu memcpy.

This means that the cpu tries to read from inaccessible memory, fails,
and the radeon module proceeds to disable acceleration.

Doing this has no downsides, as the real VRAM size gets set as soon as the
CP engines get init.

This is a candidate for 3.14 fixes.

v2: Add comment on why the function is used

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_ttm.c