drm/xe: Change pcode timeout to 50msec while polling again
authorHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Wed, 8 May 2024 15:22:15 +0000 (20:52 +0530)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 28 May 2024 06:53:24 +0000 (08:53 +0200)
commit77b79df0268bee3ef38fd5e76e86a076ce02995d
treeb3a44e2c9c55da663e79b5478264e354b6447c40
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
drm/xe: Change pcode timeout to 50msec while polling again

Polling is initially attempted with timeout_base_ms enabled for
preemption, and if it exceeds this timeframe, another attempt is made
without preemption, allowing an additional 50 ms before timing out.

v2
- Rebase

v3
- Move warnings to separate patch (Lucas)

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>
Fixes: 7dc9b92dcfef ("drm/xe: Remove i915_utils dependency from xe_pcode.")
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240508152216.3263109-2-himal.prasad.ghimiray@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit c81858eb52266b3d6ba28ca4f62a198231a10cdc)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_pcode.c