]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Fix the warning conditions
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Wed, 8 May 2024 15:22:16 +0000 (20:52 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 14 May 2024 15:26:40 +0000 (11:26 -0400)
commit4c0be90e6874b8af30541c37689780fc7c8276c9
tree9459df2b043e12e1cb044a49ff8442209eb41e30
parentc81858eb52266b3d6ba28ca4f62a198231a10cdc
drm/xe: Fix the warning conditions

The maximum timeout display uses in xe_pcode_request is 3 msec, add the
warning in cases the function is misused with higher timeouts.

Add a warning if pcode_try_request is not passed the timeout parameter
greater than 0.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240508152216.3263109-3-himal.prasad.ghimiray@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pcode.c