summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorOak Zeng <Oak.Zeng@amd.com>2019-05-06 13:52:12 -0500
committerAlex Deucher <alexander.deucher@amd.com>2019-05-28 14:44:11 -0500
commite09d4fc8db949715848b2d4567ad47e6b8cf0a1b (patch)
tree1d285fd475526f69b3c053a9967932961cde01b7 /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentca66fb8fbb9b9690591b4e85707a4f31cb042adf (diff)
drm/amdkfd: Allocate gws on device initialization
On device initialization, KFD allocates all (64) gws which is shared by all KFD processes. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index b6a60fc3094b..57e87de34ab1 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -289,6 +289,9 @@ struct kfd_dev {
/* Compute Profile ref. count */
atomic_t compute_profile;
+
+ /* Global GWS resource shared b/t processes*/
+ void *gws;
};
enum kfd_mempool {