diff options
author | Nirmoy Das <nirmoy.das@intel.com> | 2024-06-25 11:42:28 +0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2024-06-27 11:56:11 -0700 |
commit | e71cf19e3119de446cc37ddabb2e161ebbf7357c (patch) | |
tree | 32b445ee4554ee8c20a60b09a297c8eb58c511c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | f4efd274d93b5000efc58bbfa14f8f863a57642d (diff) | |
download | linux-e71cf19e3119de446cc37ddabb2e161ebbf7357c.tar.gz linux-e71cf19e3119de446cc37ddabb2e161ebbf7357c.tar.bz2 linux-e71cf19e3119de446cc37ddabb2e161ebbf7357c.zip |
drm/xe/client: Check return value of xe_force_wake_get
xe_force_wake_get() can return error so check it's return value
before reading gpu_timestamp value.
v2: set HWE to NULL instead of setting timestamp to 0(Lucas)
Add a warn on for xe_force_wake_put(Himal)
Fixes: 188ced1e0ff8 ("drm/xe/client: Print runtime to fdinfo")
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240625094228.5327-1-nirmoy.das@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions