diff mbox series

[v3,4/4] drm/i915/mtl: Add OA support by enabling 32 bit OAG formats for MTL

Message ID 20221210030116.1777214-5-umesh.nerlige.ramappa@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/i915/mtl: Add OAG 32 bit format support for MTL | expand

Commit Message

Umesh Nerlige Ramappa Dec. 10, 2022, 3:01 a.m. UTC
Without an entry in oa_init_supported_formats, OA will not be functional
in MTL. Enable OA support by enabling 32 bit OAG formats for MTL.

Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20228

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Upadhyay, Tejas Dec. 12, 2022, 5:55 a.m. UTC | #1
Thanks for patch, looks like identifying MTL was needed here.
Acked-by: Tejas Upadhyay <tejas.upadhyay@intel.com>

> -----Original Message-----
> From: Intel-gfx <intel-gfx-bounces@lists.freedesktop.org> On Behalf Of
> Umesh Nerlige Ramappa
> Sent: Saturday, December 10, 2022 8:31 AM
> To: intel-gfx@lists.freedesktop.org
> Subject: [Intel-gfx] [PATCH v3 4/4] drm/i915/mtl: Add OA support by enabling
> 32 bit OAG formats for MTL
> 
> Without an entry in oa_init_supported_formats, OA will not be functional in
> MTL. Enable OA support by enabling 32 bit OAG formats for MTL.
> 
> Mesa MR: https://gitlab.freedesktop.org/mesa/mesa/-
> /merge_requests/20228
> 
> Signed-off-by: Umesh Nerlige Ramappa
> <umesh.nerlige.ramappa@intel.com>
> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
> ---
>  drivers/gpu/drm/i915/i915_perf.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_perf.c
> b/drivers/gpu/drm/i915/i915_perf.c
> index 41f6c0923ba5..824a34ec0b83 100644
> --- a/drivers/gpu/drm/i915/i915_perf.c
> +++ b/drivers/gpu/drm/i915/i915_perf.c
> @@ -4776,6 +4776,7 @@ static void oa_init_supported_formats(struct
> i915_perf *perf)
>  		break;
> 
>  	case INTEL_DG2:
> +	case INTEL_METEORLAKE:
>  		oa_format_add(perf,
> I915_OAR_FORMAT_A32u40_A4u32_B8_C8);
>  		oa_format_add(perf,
> I915_OA_FORMAT_A24u40_A14u32_B8_C8);
>  		break;
> --
> 2.38.1
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 41f6c0923ba5..824a34ec0b83 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4776,6 +4776,7 @@  static void oa_init_supported_formats(struct i915_perf *perf)
 		break;
 
 	case INTEL_DG2:
+	case INTEL_METEORLAKE:
 		oa_format_add(perf, I915_OAR_FORMAT_A32u40_A4u32_B8_C8);
 		oa_format_add(perf, I915_OA_FORMAT_A24u40_A14u32_B8_C8);
 		break;