diff mbox series

[1/2] drm/i915: Reduce I915_MAX_GT to 2

Message ID 20230602231754.1596433-2-matthew.s.atwood@intel.com (mailing list archive)
State New, archived
Headers show
Series Update various *MAX_GT* definitions | expand

Commit Message

Matt Atwood June 2, 2023, 11:17 p.m. UTC
According to Ashutosh there is no current or planned product in i915 for
I915_MAX_GT to be 4 anymore.

Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@linux.intel.com>
Cc: Andi Shyti <andy.shyti@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
---
 drivers/gpu/drm/i915/i915_drv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Matt Roper June 3, 2023, 12:13 a.m. UTC | #1
On Fri, Jun 02, 2023 at 04:17:53PM -0700, Matt Atwood wrote:
> According to Ashutosh there is no current or planned product in i915 for
> I915_MAX_GT to be 4 anymore.
> 
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit@linux.intel.com>
> Cc: Andi Shyti <andy.shyti@linux.intel.com>
> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> 
> Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>

MTL is the only platform where we've enabled multiple GTs at the moment
(one primary, one media).  Although multi-tile platforms could
potentially have more, we haven't enabled multi-tile on i915 for xehpsdv
and pvc, and will probably refocus that work on the Xe driver now.  So
reducing to 2 sounds fine.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>

> ---
>  drivers/gpu/drm/i915/i915_drv.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index f1205ed3ba71..c3923f52ca56 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -314,7 +314,7 @@ struct drm_i915_private {
>  	/*
>  	 * i915->gt[0] == &i915->gt0
>  	 */
> -#define I915_MAX_GT 4
> +#define I915_MAX_GT 2
>  	struct intel_gt *gt[I915_MAX_GT];
>  
>  	struct kobject *sysfs_gt;
> -- 
> 2.40.0
>
Dixit, Ashutosh June 3, 2023, 12:38 a.m. UTC | #2
On Fri, 02 Jun 2023 17:13:48 -0700, Matt Roper wrote:
>
> On Fri, Jun 02, 2023 at 04:17:53PM -0700, Matt Atwood wrote:
> > According to Ashutosh there is no current or planned product in i915 for
> > I915_MAX_GT to be 4 anymore.
> >
> > Cc: Matt Roper <matthew.d.roper@intel.com>
> > Cc: Ashutosh Dixit <ashutosh.dixit@linux.intel.com>
> > Cc: Andi Shyti <andy.shyti@linux.intel.com>
> > Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
> >
> > Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
>
> MTL is the only platform where we've enabled multiple GTs at the moment
> (one primary, one media).  Although multi-tile platforms could
> potentially have more, we haven't enabled multi-tile on i915 for xehpsdv
> and pvc, and will probably refocus that work on the Xe driver now.  So
> reducing to 2 sounds fine.
>
> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>

Thanks Matt R for confirming reducing to 2 is ok:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index f1205ed3ba71..c3923f52ca56 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -314,7 +314,7 @@  struct drm_i915_private {
 	/*
 	 * i915->gt[0] == &i915->gt0
 	 */
-#define I915_MAX_GT 4
+#define I915_MAX_GT 2
 	struct intel_gt *gt[I915_MAX_GT];
 
 	struct kobject *sysfs_gt;