[Intel-gfx] [PATCH v4 2/6] drm/i915/panelreplay: Added HAS_PANEL_REPLAY() macro
Manna, Animesh
animesh.manna at intel.com
Fri Aug 25 07:59:19 UTC 2023
> -----Original Message-----
> From: Hogander, Jouni <jouni.hogander at intel.com>
> Sent: Thursday, August 24, 2023 4:50 PM
> To: Manna, Animesh <animesh.manna at intel.com>; intel-
> gfx at lists.freedesktop.org
> Cc: Murthy, Arun R <arun.r.murthy at intel.com>
> Subject: Re: [PATCH v4 2/6] drm/i915/panelreplay: Added
> HAS_PANEL_REPLAY() macro
>
> On Thu, 2023-08-24 at 09:39 +0530, Animesh Manna wrote:
> > Platforms having Display 13 and above will support panel replay
> > feature of DP 2.0 monitor. Added a HAS_PANEL_REPLAY() macro to check
> > for panel replay capability.
> >
> > v1: Initial version.
> > v2: DISPLAY_VER() removed as HAS_DP20() is having platform check.
> > [Jouni]
> >
> > Cc: Jouni Högander <jouni.hogander at intel.com>
> > Signed-off-by: Animesh Manna <animesh.manna at intel.com>
> > ---
> > drivers/gpu/drm/i915/display/intel_display_device.h | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpu/drm/i915/display/intel_display_device.h
> > b/drivers/gpu/drm/i915/display/intel_display_device.h
> > index 8198401aa5be..ab615a3199da 100644
> > --- a/drivers/gpu/drm/i915/display/intel_display_device.h
> > +++ b/drivers/gpu/drm/i915/display/intel_display_device.h
> > @@ -61,6 +61,7 @@ struct drm_printer;
> > #define HAS_MSO(i915) (DISPLAY_VER(i915) >= 12)
> > #define HAS_OVERLAY(i915) (DISPLAY_INFO(i915)-
> > >has_overlay)
> > #define HAS_PSR(i915) (DISPLAY_INFO(i915)->has_psr)
> > +#define HAS_PANEL_REPLAY(dev_priv) (HAS_DP20(dev_priv))
>
> I think you can drop this macro and use HAD_DP20 directly.
Ok.
Regards,
Animesh
>
> BR,
>
> Jouni Högander
>
> > #define HAS_PSR_HW_TRACKING(i915) (DISPLAY_INFO(i915)-
> > >has_psr_hw_tracking)
> > #define HAS_PSR2_SEL_FETCH(i915) (DISPLAY_VER(i915) >= 12)
> > #define HAS_SAGV(i915) (DISPLAY_VER(i915) >= 9 &&
> > !IS_LP(i915))
More information about the Intel-gfx
mailing list