[Intel-xe] [PATCH] drm/xe/: add gt tuning for indirect state

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Oct 3 22:31:15 UTC 2023


On 14/04/2023 22:33, Matt Atwood wrote:
> Force indirect state sampler data to only be in the dynamic state pool,
> which is more convienent for UMD. Behavior change mirrors windows
> behavior.
>
> Signed-off-by: Matt Atwood <matthew.s.atwood at intel.com>

Thanks,

For Mesa :

Acked-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>


> ---
>   drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 +
>   drivers/gpu/drm/xe/xe_tuning.c       | 5 +++++
>   2 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> index f174758d8307..b7324aede6b6 100644
> --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> @@ -286,6 +286,7 @@
>   #define   ENABLE_SMALLPL			REG_BIT(15)
>   #define   SC_DISABLE_POWER_OPTIMIZATION_EBB	REG_BIT(9)
>   #define   GEN11_SAMPLER_ENABLE_HEADLESS_MSG	REG_BIT(5)
> +#define   INDIRECT_STATE_BASE_ADDR_OVERRIDE	REG_BIT(0)
>   
>   #define GEN9_HALF_SLICE_CHICKEN7		MCR_REG(0xe194)
>   #define   DG2_DISABLE_ROUND_ENABLE_ALLOW_FOR_SSLA	REG_BIT(15)
> diff --git a/drivers/gpu/drm/xe/xe_tuning.c b/drivers/gpu/drm/xe/xe_tuning.c
> index 27cf1330facd..5abef45a10fc 100644
> --- a/drivers/gpu/drm/xe/xe_tuning.c
> +++ b/drivers/gpu/drm/xe/xe_tuning.c
> @@ -26,6 +26,11 @@ static const struct xe_rtp_entry gt_tunings[] = {
>   	  XE_RTP_RULES(PLATFORM(DG2)),
>   	  XE_RTP_ACTIONS(SET(XEHP_SQCM, EN_32B_ACCESS))
>   	},
> +	{ XE_RTP_NAME("Tuning: Set Indirect State Override"),
> +	  XE_RTP_RULES(GRAPHICS_VERSION_RANGE(1200, -1)),
> +	  XE_RTP_ACTIONS(SET(GEN10_SAMPLER_MODE, INDIRECT_STATE_BASE_ADDR_OVERRIDE,
> +			     XE_RTP_ACTION_FLAG(MASKED_REG)))
> +	},
>   	{}
>   };
>   




More information about the Intel-xe mailing list