summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorBen Goz2015-03-25 12:12:20 +0100
committerOded Gabbay2015-06-06 21:26:39 +0200
commita82918f18a846e4e2be8613029d03c3cb3e99460 (patch)
treea3588ab03174c1f2b603faeec53ec762f0975c37 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdkfd: add debug print to kfd_events.c (diff)
downloadkernel-qcow2-linux-a82918f18a846e4e2be8613029d03c3cb3e99460.tar.gz
kernel-qcow2-linux-a82918f18a846e4e2be8613029d03c3cb3e99460.tar.xz
kernel-qcow2-linux-a82918f18a846e4e2be8613029d03c3cb3e99460.zip
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;
};
/**