drm/radeon: fix AGP userptr handling
authorChristian König <christian.koenig@amd.com>
Wed, 17 Sep 2014 10:00:05 +0000 (04:00 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Sep 2014 22:44:52 +0000 (18:44 -0400)
commit3840a656f61fdc504f1b0c6617f6af800d551efe
treeac2c05bcab401670711ad824613294b5cf361162
parent8337486a8fda53e5f46b3cb2b4eb3272608348cb
drm/radeon: fix AGP userptr handling

AGP mappings are not cache coherent, so userptr support
won't work. Additional to that the AGP implementation uses
a different ttm_tt container structure so we run into
problems if we cast the pointer without checking if it's
the right type.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c