OSDN Git Service

drm/amdkfd: Only load sdma mqd when queue is active
authorOak Zeng <Oak.Zeng@amd.com>
Mon, 3 Jun 2019 17:28:13 +0000 (12:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:56:46 +0000 (12:56 -0500)
commit2ff528190f5cc8b326260ee030cf2eda73bdb78d
tree6fbcffd5537841e89a88b36194c1d9d02ba83069
parenteec0b4cf92b0d7c2892008daf4e13b5fafaf7a20
drm/amdkfd: Only load sdma mqd when queue is active

Also calls load_mqd with current->mm struct. The mm
struct is used to read back user wptr of the queue.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c