drm/i915/guc: Use FAST_REQUEST for non-blocking H2G calls
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 26 May 2023 23:55:36 +0000 (16:55 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 30 May 2023 22:18:19 +0000 (15:18 -0700)
commitedfd93e60bf29668a84cbb7ada848060a47cb940
tree25f715e94fec9d8bfc2a3cf9a81a7c28b87bc9a9
parent5945d8b9a8e2501b0046ec34b12ef9c115bd77e6
drm/i915/guc: Use FAST_REQUEST for non-blocking H2G calls

In addition to the already defined REQUEST HXG message format,
which is used when sender expects some confirmation or data,
HXG protocol includes definition of the FAST REQUEST message,
that may be used when sender does not expect any useful data
to be returned.

Using this instead of GUC_HXG_TYPE_EVENT for non-blocking CTB requests
will allow GuC to send back GUC_HXG_TYPE_RESPONSE_FAILURE in case of
errors.

Note that it is not possible to return such errors to the caller,
since this is for non-blocking calls and the related fence is not
stored. Instead such messages are treated as unexpected, which will
give an indication of potential GuC misprogramming that warrants extra
debugging effort.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230526235538.2230780-2-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/abi/guc_messages_abi.h
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c