]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon/kms: fix coherency issues on AGP cards.
authorDave Airlie <airlied@redhat.com>
Fri, 30 Oct 2009 03:31:26 +0000 (13:31 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 3 Nov 2009 23:53:14 +0000 (09:53 +1000)
commit029c919bd8b44ff0f6a6422fe6f0a6f2b32058ea
tree0e8c39364c8bab2664db65923b4187cfc41df9de
parent53d38d2998859048aa8626d3939049afd1c3080f
drm/radeon/kms: fix coherency issues on AGP cards.

When we are evicting from VRAM->RAM we allocate the ttm object,
but we don't set the caching policy on it before blitting into it.
This means on AGP we end up blitting into cached pages, and
the CPU later flushes out on top of them. This was mostly seen as
font corruption.

The other question is why we don't evict VRAM->GTT in a lot of cases,
this would save us some cache transitions since a lot of objects
that are evicted from VRAM will probably end up being pulled back in
a few operations later, and evicting them to system memory involves
2 unnecessary cache transitions.

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_tt.c