[PATCH 1/1] drm/xe/xe2: Introduce performance changes
Upadhyay, Tejas
tejas.upadhyay at intel.com
Mon Jul 29 12:25:47 UTC 2024
> -----Original Message-----
> From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Akshata
> Jahagirdar
> Sent: Saturday, July 27, 2024 11:50 AM
> To: intel-xe at lists.freedesktop.org
> Cc: Roper, Matthew D <matthew.d.roper at intel.com>; Jahagirdar, Akshata
> <akshata.jahagirdar at intel.com>
> Subject: [PATCH 1/1] drm/xe/xe2: Introduce performance changes
>
> Add Compression Performance Improvement Changes in Xe2
>
> Bspec: 70559, 59928, 59927, 59251
>
> v2: Rebase
>
> Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar at intel.com>
> ---
> drivers/gpu/drm/xe/regs/xe_gt_regs.h | 10 ++++++++++
> drivers/gpu/drm/xe/xe_tuning.c | 13 +++++++++++++
> 2 files changed, 23 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> index 8a94a94d2267..28f13362a3df 100644
> --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> @@ -80,6 +80,9 @@
> #define LE_CACHEABILITY_MASK REG_GENMASK(1, 0)
> #define LE_CACHEABILITY(value)
> REG_FIELD_PREP(LE_CACHEABILITY_MASK, value)
>
> +#define STATELESS_COMPRESSION_CTRL
> XE_REG_MCR(0x4148)
> +#define UNIFIED_COMPRESSION_FORMAT REG_GENMASK(3, 0)
> +
> #define XE2_GAMREQSTRM_CTRL XE_REG(0x4194)
> #define CG_DIS_CNTLBUS REG_BIT(6)
>
> @@ -192,6 +195,7 @@
> #define GSCPSMI_BASE XE_REG(0x880c)
>
> #define CCCHKNREG1 XE_REG_MCR(0x8828)
> +#define COMPOVFDIS REG_BIT(25)
Is this present on BMG? I could not see. Please help if I am missing something.
> #define ENCOMPPERFFIX REG_BIT(18)
>
> /* Fuse readout registers for GT */
> @@ -366,6 +370,12 @@
> #define XEHP_L3NODEARBCFG XE_REG_MCR(0xb0b4)
> #define XEHP_LNESPARE REG_BIT(19)
>
> +#define L3SQCREG2 XE_REG_MCR(0xb104)
> +#define MEMRDNONCOMPOVRFETCHDIS REG_BIT(26)
> +#define COMPMEMRD256BOVRFETCHEN REG_BIT(20)
> +#define MEMRDOVRFETCHDIS REG_BIT(17)
> +#define MEMRD256BOVRFETCHEN REG_BIT(14)
> +
Please check if indentation is correct here.
> #define L3SQCREG3 XE_REG_MCR(0xb108)
> #define COMPPWOVERFETCHEN REG_BIT(28)
>
> diff --git a/drivers/gpu/drm/xe/xe_tuning.c b/drivers/gpu/drm/xe/xe_tuning.c
> index d4e6fa918942..f338be24f859 100644
> --- a/drivers/gpu/drm/xe/xe_tuning.c
> +++ b/drivers/gpu/drm/xe/xe_tuning.c
> @@ -45,6 +45,19 @@ static const struct xe_rtp_entry_sr gt_tunings[] = {
> XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001,
> XE_RTP_END_VERSION_UNDEFINED)),
> XE_RTP_ACTIONS(SET(L3SQCREG3, COMPPWOVERFETCHEN))
> },
> + { XE_RTP_NAME("Tuning: Change Stateless Compression Control
> register default to R8 (0x0)"),
> + XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001,
> XE_RTP_END_VERSION_UNDEFINED)),
> + XE_RTP_ACTIONS(CLR(STATELESS_COMPRESSION_CTRL,
> UNIFIED_COMPRESSION_FORMAT))
> + },
> + { XE_RTP_NAME("Tuning: L2 Overfetch Compressible Only"),
> + XE_RTP_RULES(GRAPHICS_VERSION_RANGE(2001,
> XE_RTP_END_VERSION_UNDEFINED)),
> + XE_RTP_ACTIONS(SET(L3SQCREG2,
> COMPMEMRD256BOVRFETCHEN),
> + CLR(L3SQCREG2,
> + MEMRD256BOVRFETCHEN |
> + MEMRDOVRFETCHDIS |
> + MEMRDNONCOMPOVRFETCHDIS),
> + CLR(CCCHKNREG1, COMPOVFDIS))
> + },
> {}
> };
>
> --
> 2.34.1
More information about the Intel-xe
mailing list