Message ID | 20210713075738.23759-1-anshuman.gupta@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/i915/debugfs: DISPLAY_VER 13 lpsp capability | expand |
> -----Original Message----- > From: Gupta, Anshuman <anshuman.gupta@intel.com> > Sent: Tuesday, July 13, 2021 1:28 PM > To: intel-gfx@lists.freedesktop.org > Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Manna, Animesh > <animesh.manna@intel.com> > Subject: [PATCH] drm/i915/debugfs: DISPLAY_VER 13 lpsp capability > > Extend i915_lpsp_capability debugfs to DG2,ADLP and future platforms. > > v2: commit log modification. > > Cc: Animesh Manna <animesh.manna@intel.com> > Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> Changes looks good to me. Reviewed-by: Animesh Manna <animesh.manna@intel.com> Regards, Animesh > --- > drivers/gpu/drm/i915/display/intel_display_debugfs.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c > b/drivers/gpu/drm/i915/display/intel_display_debugfs.c > index d5af5708c9da..65832c4d962f 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c > +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c > @@ -2256,6 +2256,11 @@ static int i915_lpsp_capability_show(struct seq_file > *m, void *data) > if (connector->status != connector_status_connected) > return -ENODEV; > > + if (DISPLAY_VER(i915) >= 13) { > + LPSP_CAPABLE(encoder->port <= PORT_B); > + return 0; > + } > + > switch (DISPLAY_VER(i915)) { > case 12: > /* > -- > 2.26.2
> -----Original Message----- > From: Manna, Animesh <animesh.manna@intel.com> > Sent: Wednesday, July 14, 2021 6:30 PM > To: Gupta, Anshuman <anshuman.gupta@intel.com>; intel- > gfx@lists.freedesktop.org > Subject: RE: [PATCH] drm/i915/debugfs: DISPLAY_VER 13 lpsp capability > > > > > -----Original Message----- > > From: Gupta, Anshuman <anshuman.gupta@intel.com> > > Sent: Tuesday, July 13, 2021 1:28 PM > > To: intel-gfx@lists.freedesktop.org > > Cc: Gupta, Anshuman <anshuman.gupta@intel.com>; Manna, Animesh > > <animesh.manna@intel.com> > > Subject: [PATCH] drm/i915/debugfs: DISPLAY_VER 13 lpsp capability > > > > Extend i915_lpsp_capability debugfs to DG2,ADLP and future platforms. > > > > v2: commit log modification. > > > > Cc: Animesh Manna <animesh.manna@intel.com> > > Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> > > Changes looks good to me. > > Reviewed-by: Animesh Manna <animesh.manna@intel.com> Thanks for review pushed to drm-intel-next. > > Regards, > Animesh > > --- > > drivers/gpu/drm/i915/display/intel_display_debugfs.c | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c > > b/drivers/gpu/drm/i915/display/intel_display_debugfs.c > > index d5af5708c9da..65832c4d962f 100644 > > --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c > > +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c > > @@ -2256,6 +2256,11 @@ static int i915_lpsp_capability_show(struct > > seq_file *m, void *data) > > if (connector->status != connector_status_connected) > > return -ENODEV; > > > > + if (DISPLAY_VER(i915) >= 13) { > > + LPSP_CAPABLE(encoder->port <= PORT_B); > > + return 0; > > + } > > + > > switch (DISPLAY_VER(i915)) { > > case 12: > > /* > > -- > > 2.26.2
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c index d5af5708c9da..65832c4d962f 100644 --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c @@ -2256,6 +2256,11 @@ static int i915_lpsp_capability_show(struct seq_file *m, void *data) if (connector->status != connector_status_connected) return -ENODEV; + if (DISPLAY_VER(i915) >= 13) { + LPSP_CAPABLE(encoder->port <= PORT_B); + return 0; + } + switch (DISPLAY_VER(i915)) { case 12: /*
Extend i915_lpsp_capability debugfs to DG2,ADLP and future platforms. v2: commit log modification. Cc: Animesh Manna <animesh.manna@intel.com> Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com> --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 5 +++++ 1 file changed, 5 insertions(+)