drm/xe/pcode: fix pcode error check
authorMatthew Auld <matthew.auld@intel.com>
Thu, 12 Jan 2023 16:34:09 +0000 (16:34 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:06:00 +0000 (14:06 -0500)
commitd8731500721d5ae26819de36c63921f4baaafe00
tree83431235181099b3f5a46251b93299b5cc73d5b0
parent2c33b49a6e6f8e176735eaca9ec6170478e0a426
drm/xe/pcode: fix pcode error check

On DG2 we are now getting:

[  104.456607] xe 0000:03:00.0: [drm] *ERROR* PCODE timeout, retrying with preemption disabled

Looks like we just need to invert the error check for
xe_pcode_try_request(), which returns zero on success.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pcode.c