]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix problem with changing active VRAM size. (v2)
authorDave Airlie <airlied@redhat.com>
Sun, 13 Mar 2011 23:47:24 +0000 (09:47 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 14 Mar 2011 02:51:04 +0000 (12:51 +1000)
commitdc93a9545a85a34e53c9c59d1b0d94983a52a824
tree5ab728c08b4cb5fae0116396911ed3757540b7b8
parent851c5be73d0388ade86c959ac45e3bb1b3bc3d78
drm/radeon: fix problem with changing active VRAM size. (v2)

So we used to use lpfn directly to restrict VRAM when we couldn't
access the unmappable area, however this was removed in
6bc283cd4061b1c0215691a9a9e7029dc9b2f799 as it also restricted
the gtt placements. However it was only later noticed that this
broke on some hw.

This removes the active_vram_size, and just explicitly sets it
when it changes, TTM/drm_mm will always use the real_vram_size,
and the active vram size will change the TTM size used for lpfn
setting.

We should re-work the fpfn/lpfn to per-placement at some point
I suspect, but that is too late for this kernel.

Hopefully this addresses:
https://bugs.freedesktop.org/show_bug.cgi?id=35254

v2: fix reported useful VRAM size to userspace to be correct.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/evergreen_blit_kms.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_blit_kms.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rv770.c