drm/radeon: add userptr flag to register MMU notifier v3
authorChristian König <christian.koenig@amd.com>
Thu, 7 Aug 2014 07:36:03 +0000 (09:36 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 Aug 2014 15:04:26 +0000 (11:04 -0400)
commit341cb9e426fac32523427c80c67543a16be46605
treee83be125f262aa6dd3cd345bb0f55d735abfc44e
parent2a84a4476d6e13de72472f6ca4338aed0a8269b8
drm/radeon: add userptr flag to register MMU notifier v3

Whenever userspace mapping related to our userptr change
we wait for it to become idle and unmap it from GTT.

v2: rebased, fix mutex unlock in error path
v3: improve commit message

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/Kconfig
drivers/gpu/drm/radeon/Makefile
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_device.c
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_mn.c [new file with mode: 0644]
drivers/gpu/drm/radeon/radeon_object.c
include/uapi/drm/radeon_drm.h