[Intel-xe] [PATCH v4 13/21] drm/xe/guc: Port Wa_22012773006 to xe_wa
Matt Roper
matthew.d.roper at intel.com
Thu May 25 23:14:24 UTC 2023
On Thu, May 25, 2023 at 02:33:59PM -0700, Lucas De Marchi wrote:
> Let xe_guc.c start using XE_WA() for workarounds, starting from a simple
> one: Wa_22012773006. It's also changed to start with graphics version
> 12, since that is the first supported by xe.
>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc.c | 6 +++---
> drivers/gpu/drm/xe/xe_wa_oob.rules | 1 +
> 2 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index a8e249205bff..08362db6a886 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -5,6 +5,7 @@
>
> #include "xe_guc.h"
>
> +#include "generated/xe_wa_oob.h"
> #include "regs/xe_gt_regs.h"
> #include "regs/xe_guc_regs.h"
> #include "xe_bo.h"
> @@ -20,6 +21,7 @@
> #include "xe_mmio.h"
> #include "xe_platform_types.h"
> #include "xe_uc_fw.h"
> +#include "xe_wa.h"
> #include "xe_wopcm.h"
>
> static struct xe_gt *
> @@ -134,9 +136,7 @@ static u32 guc_ctl_wa_flags(struct xe_guc *guc)
> struct xe_gt *gt = guc_to_gt(guc);
> u32 flags = 0;
>
> - /* Wa_22012773006:gen11,gen12 < XeHP */
> - if (GRAPHICS_VER(xe) >= 11 &&
> - GRAPHICS_VERx100(xe) < 1250)
> + if (XE_WA(gt, 22012773006))
> flags |= GUC_WA_POLLCS;
>
> /* Wa_16011759253 */
> diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
> index e69de29bb2d1..b54f70eeccf4 100644
> --- a/drivers/gpu/drm/xe/xe_wa_oob.rules
> +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
> @@ -0,0 +1 @@
> +22012773006 GRAPHICS_VERSION_RANGE(1200, 1250)
> --
> 2.40.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list