[Intel-xe] [PATCH] drm/xe/xe2: Add workaround 14020013138
Matt Roper
matthew.d.roper at intel.com
Fri Nov 17 17:04:56 UTC 2023
On Fri, Nov 17, 2023 at 05:43:01PM +0530, Tejas Upadhyay wrote:
> This workaround applies to Xe2_LPG_MD A0
>
> Signed-off-by: Tejas Upadhyay <tejas.upadhyay at intel.com>
> ---
> drivers/gpu/drm/xe/regs/xe_gt_regs.h | 3 +++
> drivers/gpu/drm/xe/xe_wa.c | 4 ++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> index cc27fe8fc363..5c497a10f9d7 100644
> --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> @@ -93,6 +93,9 @@
> #define XEHP_TILE_ADDR_RANGE(_idx) XE_REG_MCR(0x4900 + (_idx) * 4)
> #define XEHP_FLAT_CCS_BASE_ADDR XE_REG_MCR(0x4910)
>
> +#define WM_CHICKEN3 XE_REG_MCR(0x5588, XE_REG_OPTION_MASKED)
> +#define HIZ_PLANE_COMPRESSION_DIS REG_BIT(10)
> +
> #define CHICKEN_RASTER_2 XE_REG_MCR(0x6208, XE_REG_OPTION_MASKED)
> #define TBIMR_FAST_CLIP REG_BIT(5)
>
> diff --git a/drivers/gpu/drm/xe/xe_wa.c b/drivers/gpu/drm/xe/xe_wa.c
> index d03e6674519f..67a6cb5086ab 100644
> --- a/drivers/gpu/drm/xe/xe_wa.c
> +++ b/drivers/gpu/drm/xe/xe_wa.c
> @@ -272,6 +272,10 @@ static const struct xe_rtp_entry_sr gt_was[] = {
According to bspec 65182, this register is part of the RCS engine's
context so this needs to be in the lrc table, not the gt table.
Matt
> SET(XEHPC_L3CLOS_MASK(2), ~0),
> SET(XEHPC_L3CLOS_MASK(3), ~0))
> },
> + { XE_RTP_NAME("14020013138"),
> + XE_RTP_RULES(GRAPHICS_VERSION(2004), GRAPHICS_STEP(A0, B0)),
> + XE_RTP_ACTIONS(SET(WM_CHICKEN3, HIZ_PLANE_COMPRESSION_DIS))
> + },
>
> {}
> };
> --
> 2.25.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list