]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: avoid corner case issue with unmappable vram V2
authorJerome Glisse <jglisse@redhat.com>
Tue, 10 Aug 2010 21:41:31 +0000 (17:41 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 12 Oct 2010 10:17:43 +0000 (20:17 +1000)
commitf69e6fd2b046298da19b963f6595d4d6fcea54c6
tree3044d77ddc64b7fd4b9cb7e06630235e82397fb4
parent43c1eb908259c2afba685d1ae48498185c4f6713
drm/radeon/kms: avoid corner case issue with unmappable vram V2

We should not allocate any object into unmappable vram if we
have no means to access them which on all GPU means having the
CP running and on newer GPU having the blit utility working.

This patch limit the vram allocation to visible vram until
we have acceleration up and running.

Note that it's more than unlikely that we run into any issue
related to that as when acceleration is not woring userspace
should allocate any object in vram beside front buffer which
should fit in visible vram.

V2 use real_vram_size as mc_vram_size could be bigger than
   the actual amount of vram

[airlied: fixup r700_cp_stop case]

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.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_object.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rs690.c
drivers/gpu/drm/radeon/rv770.c