summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2015-03-25 14:12:20 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2015-06-06 22:26:39 +0300
commita82918f18a846e4e2be8613029d03c3cb3e99460 (patch)
treea3588ab03174c1f2b603faeec53ec762f0975c37 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parent6235e15ea6d0f39ef72ecaf9d3add995550c60ee (diff)
downloadlinux-a82918f18a846e4e2be8613029d03c3cb3e99460.tar.xz
drm/amdkfd: make reset wavefronts per process per device
This commit moves the reset wavefront flag to per process per device data structure, so we can support multiple devices. Signed-off-by: Ben Goz <ben.goz@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index cb79046e5c80..d0d5f4baf72d 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -463,6 +463,11 @@ struct kfd_process_device {
/* Is this process/pasid bound to this device? (amd_iommu_bind_pasid) */
bool bound;
+
+ /* This flag tells if we should reset all
+ * wavefronts on process termination
+ */
+ bool reset_wavefronts;
};
#define qpd_to_pdd(x) container_of(x, struct kfd_process_device, qpd)
@@ -519,11 +524,6 @@ struct kfd_process {
event_pages */
u32 next_nonsignal_event_id;
size_t signal_event_count;
- /*
- * This flag tells if we should reset all wavefronts on
- * process termination
- */
- bool reset_wavefronts;
};
/**