Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689336 > unrolled thread

[PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

Started byMatthias Kaehlcke <mka@chromium.org>
First post2017-07-17 20:30 +0200
Last post2017-07-17 21:20 +0200
Articles 5 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V Matthias Kaehlcke <mka@chromium.org> - 2017-07-17 20:30 +0200
    Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing  table for 0.85V "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com> - 2017-07-17 21:00 +0200
      Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing  table for 0.85V "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com> - 2017-07-17 23:00 +0200
        Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing  table for 0.85V Manasi Navare <manasi.d.navare@intel.com> - 2017-07-17 23:20 +0200
    Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing  table for 0.85V Manasi Navare <manasi.d.navare@intel.com> - 2017-07-17 21:20 +0200

#1689336 — [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

FromMatthias Kaehlcke <mka@chromium.org>
Date2017-07-17 20:30 +0200
Subject[PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
Message-ID<u4iWl-7E-5@gated-at.bofh.it>
For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
Use the correct table.

The error was pointed out by this clang warning:

drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
  'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
  [-Wunneeded-internal-declaration]
    static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
---
 drivers/gpu/drm/i915/intel_ddi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index efb13582dc73..6fa02e6a7a9b 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -1873,7 +1873,7 @@ cnl_get_buf_trans_edp(struct drm_i915_private *dev_priv,
 	if (dev_priv->vbt.edp.low_vswing) {
 		if (voltage == VOLTAGE_INFO_0_85V) {
 			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_85V);
-			return cnl_ddi_translations_dp_0_85V;
+			return cnl_ddi_translations_edp_0_85V;
 		} else if (voltage == VOLTAGE_INFO_0_95V) {
 			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_95V);
 			return cnl_ddi_translations_edp_0_95V;
-- 
2.13.2.932.g7449e964c-goog

[toc] | [next] | [standalone]


#1689350 — Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

From"Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Date2017-07-17 21:00 +0200
SubjectRe: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
Message-ID<u4jpn-hn-7@gated-at.bofh.it>
In reply to#1689336
Looks like a typo in 

cf54ca8 ("drm/i915/cnl: Implement voltage swing sequence.")

but Cc'ing Rodrigo, Clint to make sure this wasn't a workaround.

-DK


On Mon, 2017-07-17 at 11:21 -0700, Matthias Kaehlcke wrote:
> For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
> Use the correct table.
> 
> The error was pointed out by this clang warning:
> 
> drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
>   'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
>   [-Wunneeded-internal-declaration]
>     static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>  drivers/gpu/drm/i915/intel_ddi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> index efb13582dc73..6fa02e6a7a9b 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -1873,7 +1873,7 @@ cnl_get_buf_trans_edp(struct drm_i915_private *dev_priv,
>  	if (dev_priv->vbt.edp.low_vswing) {
>  		if (voltage == VOLTAGE_INFO_0_85V) {
>  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_85V);
> -			return cnl_ddi_translations_dp_0_85V;
> +			return cnl_ddi_translations_edp_0_85V;
>  		} else if (voltage == VOLTAGE_INFO_0_95V) {
>  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_95V);
>  			return cnl_ddi_translations_edp_0_95V;

[toc] | [prev] | [next] | [standalone]


#1689463 — Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

From"Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Date2017-07-17 23:00 +0200
SubjectRe: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
Message-ID<u4lhv-1tE-5@gated-at.bofh.it>
In reply to#1689350


On Mon, 2017-07-17 at 18:55 +0000, Pandiyan, Dhinakaran wrote:
> Looks like a typo in 
> 
> cf54ca8 ("drm/i915/cnl: Implement voltage swing sequence.")
> 
> but Cc'ing Rodrigo, Clint to make sure this wasn't a workaround.
> 
> -DK

Checked with Clint, this wasn't a workaround, a typo indeed.



> On Mon, 2017-07-17 at 11:21 -0700, Matthias Kaehlcke wrote:
> > For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
> > Use the correct table.
> > 
> > The error was pointed out by this clang warning:
> > 
> > drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
> >   'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
> >   [-Wunneeded-internal-declaration]
> >     static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {
> > 
> > Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> > ---
> >  drivers/gpu/drm/i915/intel_ddi.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> > index efb13582dc73..6fa02e6a7a9b 100644
> > --- a/drivers/gpu/drm/i915/intel_ddi.c
> > +++ b/drivers/gpu/drm/i915/intel_ddi.c
> > @@ -1873,7 +1873,7 @@ cnl_get_buf_trans_edp(struct drm_i915_private *dev_priv,
> >  	if (dev_priv->vbt.edp.low_vswing) {
> >  		if (voltage == VOLTAGE_INFO_0_85V) {
> >  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_85V);
> > -			return cnl_ddi_translations_dp_0_85V;
> > +			return cnl_ddi_translations_edp_0_85V;
> >  		} else if (voltage == VOLTAGE_INFO_0_95V) {
> >  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_95V);
> >  			return cnl_ddi_translations_edp_0_95V;
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[toc] | [prev] | [next] | [standalone]


#1689489 — Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

FromManasi Navare <manasi.d.navare@intel.com>
Date2017-07-17 23:20 +0200
SubjectRe: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
Message-ID<u4lAS-1PS-9@gated-at.bofh.it>
In reply to#1689463
On Mon, Jul 17, 2017 at 08:59:18PM +0000, Pandiyan, Dhinakaran wrote:
> 
> 
> 
> On Mon, 2017-07-17 at 18:55 +0000, Pandiyan, Dhinakaran wrote:
> > Looks like a typo in 
> > 
> > cf54ca8 ("drm/i915/cnl: Implement voltage swing sequence.")
> > 
> > but Cc'ing Rodrigo, Clint to make sure this wasn't a workaround.
> > 
> > -DK
> 
> Checked with Clint, this wasn't a workaround, a typo indeed.
> 
>

Yup, Like I mentioned in the previous reply, I am positive that this should
return cnl_ddi_translations_edp_0_85 since I had discussed this with Rodrigo
while working on ddi buffer initialization.

Matthias, please go ahead and add the Fixes Tag like I mentioned in my previous
message. Thanks for catching this.

Manasi


> 
> > On Mon, 2017-07-17 at 11:21 -0700, Matthias Kaehlcke wrote:
> > > For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
> > > Use the correct table.
> > > 
> > > The error was pointed out by this clang warning:
> > > 
> > > drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
> > >   'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
> > >   [-Wunneeded-internal-declaration]
> > >     static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {
> > > 
> > > Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> > > ---
> > >  drivers/gpu/drm/i915/intel_ddi.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> > > index efb13582dc73..6fa02e6a7a9b 100644
> > > --- a/drivers/gpu/drm/i915/intel_ddi.c
> > > +++ b/drivers/gpu/drm/i915/intel_ddi.c
> > > @@ -1873,7 +1873,7 @@ cnl_get_buf_trans_edp(struct drm_i915_private *dev_priv,
> > >  	if (dev_priv->vbt.edp.low_vswing) {
> > >  		if (voltage == VOLTAGE_INFO_0_85V) {
> > >  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_85V);
> > > -			return cnl_ddi_translations_dp_0_85V;
> > > +			return cnl_ddi_translations_edp_0_85V;
> > >  		} else if (voltage == VOLTAGE_INFO_0_95V) {
> > >  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_95V);
> > >  			return cnl_ddi_translations_edp_0_95V;
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

[toc] | [prev] | [next] | [standalone]


#1689370 — Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V

FromManasi Navare <manasi.d.navare@intel.com>
Date2017-07-17 21:20 +0200
SubjectRe: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
Message-ID<u4jIJ-Dg-3@gated-at.bofh.it>
In reply to#1689336
This makes sense, it should have returned the edp ddi buf translation
table as per the Bspec.
Please add this to the commit message:
Fixes: cf54ca8bc567 ("drm/i915/cnl: Implement voltage swing sequence.")

After that,
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>

Manasi


On Mon, Jul 17, 2017 at 11:21:27AM -0700, Matthias Kaehlcke wrote:
> For 0.85V cnl_get_buf_trans_edp() returns the DP table, instead of EDP.
> Use the correct table.
> 
> The error was pointed out by this clang warning:
> 
> drivers/gpu/drm/i915/intel_ddi.c:392:39: warning: variable
>   'cnl_ddi_translations_edp_0_85V' is not needed and will not be emitted
>   [-Wunneeded-internal-declaration]
>     static const struct cnl_ddi_buf_trans cnl_ddi_translations_edp_0_85V[] = {
> 
> Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
> ---
>  drivers/gpu/drm/i915/intel_ddi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
> index efb13582dc73..6fa02e6a7a9b 100644
> --- a/drivers/gpu/drm/i915/intel_ddi.c
> +++ b/drivers/gpu/drm/i915/intel_ddi.c
> @@ -1873,7 +1873,7 @@ cnl_get_buf_trans_edp(struct drm_i915_private *dev_priv,
>  	if (dev_priv->vbt.edp.low_vswing) {
>  		if (voltage == VOLTAGE_INFO_0_85V) {
>  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_85V);
> -			return cnl_ddi_translations_dp_0_85V;
> +			return cnl_ddi_translations_edp_0_85V;
>  		} else if (voltage == VOLTAGE_INFO_0_95V) {
>  			*n_entries = ARRAY_SIZE(cnl_ddi_translations_edp_0_95V);
>  			return cnl_ddi_translations_edp_0_95V;
> -- 
> 2.13.2.932.g7449e964c-goog
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web