[PATCH v5] drm/xe: remove unused LE_COS
Matt Roper
matthew.d.roper at intel.com
Wed Apr 9 23:15:53 UTC 2025
On Wed, Apr 09, 2025 at 03:22:02PM -0700, Lin, Shuicheng wrote:
> Hi maintainers,
> Could you please help merge it?
Applied to drm-xe-next. Thanks for the patch.
Matt
>
> Best Regards
> Shuicheng
>
> On Sat, April 5, 2025 10:16 AM, Lin, Shuicheng wrote:
> > The LE_COS definition missed passing the value parameter to
> > REG_FIELD_PREP. This didn't cause build errors because the entire macro was
> > unused.
> > The value for this field is universally "0" for every MOCS entry on the old Xe_LP
> > platforms, and the whole field has been removed from Xe_HP onward. Just
> > delete the line so that we don't have an unused definition.
> >
> > Suggested-by: Matt Roper <matthew.d.roper at intel.com>
> > Reviewed-by: Matt Roper <matthew.d.roper at intel.com>
> > Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> > Signed-off-by: Shuicheng Lin <shuicheng.lin at intel.com>
> > ---
> > drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 -
> > 1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> > b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> > index 58f4218c2569..cbb9f7cbcfc0 100644
> > --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> > +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> > @@ -62,7 +62,6 @@
> > #define LE_SSE_MASK REG_GENMASK(18, 17)
> > #define LE_SSE(value)
> > REG_FIELD_PREP(LE_SSE_MASK, value)
> > #define LE_COS_MASK REG_GENMASK(16,
> > 15)
> > -#define LE_COS(value)
> > REG_FIELD_PREP(LE_COS_MASK)
> > #define LE_SCF_MASK REG_BIT(14)
> > #define LE_SCF(value)
> > REG_FIELD_PREP(LE_SCF_MASK, value)
> > #define LE_PFM_MASK REG_GENMASK(13,
> > 11)
> > --
> > 2.25.1
>
--
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation
More information about the Intel-xe
mailing list