[Intel-xe] [PATCH v2 09/31] drm/xe/guc: Read HXG fields from DW1 of G2H response
Rodrigo Vivi
rodrigo.vivi at kernel.org
Fri May 5 18:50:36 UTC 2023
On Mon, May 01, 2023 at 05:17:05PM -0700, Matthew Brost wrote:
> The HXG fields are DW1 not DW0, fix this.
it took me a while to understand how the msg was constructed
to agree with this... I believe we should transform this into some
struct with embedded u32 with some proper names to make it clear
and avoid future mistakes like this.
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
I also believe this patch and any other like this should be resend
individually so we get the fixes already in place.
>
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_ct.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
> index 9055ff133a7c..6abf1dee95af 100644
> --- a/drivers/gpu/drm/xe/xe_guc_ct.c
> +++ b/drivers/gpu/drm/xe/xe_guc_ct.c
> @@ -782,13 +782,13 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)
> if (type == GUC_HXG_TYPE_RESPONSE_FAILURE) {
> g2h_fence->fail = true;
> g2h_fence->error =
> - FIELD_GET(GUC_HXG_FAILURE_MSG_0_ERROR, msg[0]);
> + FIELD_GET(GUC_HXG_FAILURE_MSG_0_ERROR, msg[1]);
> g2h_fence->hint =
> - FIELD_GET(GUC_HXG_FAILURE_MSG_0_HINT, msg[0]);
> + FIELD_GET(GUC_HXG_FAILURE_MSG_0_HINT, msg[1]);
> } else if (type == GUC_HXG_TYPE_NO_RESPONSE_RETRY) {
> g2h_fence->retry = true;
> g2h_fence->reason =
> - FIELD_GET(GUC_HXG_RETRY_MSG_0_REASON, msg[0]);
> + FIELD_GET(GUC_HXG_RETRY_MSG_0_REASON, msg[1]);
> } else if (g2h_fence->response_buffer) {
> g2h_fence->response_len = response_len;
> memcpy(g2h_fence->response_buffer, msg + GUC_CTB_MSG_MIN_LEN,
> --
> 2.34.1
>
More information about the Intel-xe
mailing list