aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
diff options
context:
space:
mode:
authorSunil Khatri <[email protected]>2025-04-22 12:25:50 +0000
committerAlex Deucher <[email protected]>2025-05-05 17:29:18 +0000
commit30ff75809d0359566fda48883dcc15bf427558e9 (patch)
tree868fccd3041e34051e49042ff6dcb2190f998558 /drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
parentdrm: add drm_file_err function to add process info (diff)
downloadkernel-30ff75809d0359566fda48883dcc15bf427558e9.tar.gz
kernel-30ff75809d0359566fda48883dcc15bf427558e9.zip
drm/amdgpu: add drm_file reference in userq_mgr
drm_file will be used in usermode queues code to enable better process information in logging and hence add drm_file part of the userq_mgr struct. update the drm_file pointer in userq_mgr for each amdgpu_driver_open_kms. Signed-off-by: Sunil Khatri <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
index 4d3eb651acf1..ec040c2fd6c9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h
@@ -86,6 +86,7 @@ struct amdgpu_userq_mgr {
struct amdgpu_device *adev;
struct delayed_work resume_work;
struct list_head list;
+ struct drm_file *file;
};
struct amdgpu_db_info {
@@ -97,7 +98,8 @@ struct amdgpu_db_info {
int amdgpu_userq_ioctl(struct drm_device *dev, void *data, struct drm_file *filp);
-int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct amdgpu_device *adev);
+int amdgpu_userq_mgr_init(struct amdgpu_userq_mgr *userq_mgr, struct drm_file *file_priv,
+ struct amdgpu_device *adev);
void amdgpu_userq_mgr_fini(struct amdgpu_userq_mgr *userq_mgr);