]> git.itanic.dy.fi Git - linux-stable/commit
drm/drivers: add support for using the arch wc mapping API.
authorDave Airlie <airlied@redhat.com>
Mon, 24 Oct 2016 05:37:48 +0000 (15:37 +1000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 3 Oct 2018 03:10:02 +0000 (04:10 +0100)
commitf941fa5197ec5bce8c08978444a8f221f52e975a
tree40330a262ee9a9121c12d881f00789c56a654e7b
parent82b70f2ac8284a8b4c6dced6694b6c80750f8fb0
drm/drivers: add support for using the arch wc mapping API.

commit 7cf321d118a825c1541b43ca45294126fd474efa upstream.

This fixes a regression in all these drivers since the cache
mode tracking was fixed for mixed mappings. It uses the new
arch API to add the VRAM range to the PAT mapping tracking
tables.

Fixes: 87744ab3832 (mm: fix cache mode tracking in vm_insert_mixed())
Reviewed-by: Christian König <christian.koenig@amd.com>.
Signed-off-by: Dave Airlie <airlied@redhat.com>
[bwh: Backported to 3.16:
 - Drop changes in amdgpu
 - In nouveau, use struct nouveau_device * and nv_device_resource_{start,len}()
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/ast/ast_ttm.c
drivers/gpu/drm/cirrus/cirrus_ttm.c
drivers/gpu/drm/mgag200/mgag200_ttm.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/gpu/drm/radeon/radeon_object.c