All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
@ 2017-07-17 18:21 Matthias Kaehlcke
  2017-07-17 18:55   ` Pandiyan, Dhinakaran
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Matthias Kaehlcke @ 2017-07-17 18:21 UTC (permalink / raw)
  To: Daniel Vetter, Jani Nikula, David Airlie, Daniel Vetter
  Cc: intel-gfx, dri-devel, Linux Kernel Mailing List,
	Stéphane Marchesin, Grant Grundler, Matthias Kaehlcke

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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
  2017-07-17 18:21 [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V Matthias Kaehlcke
@ 2017-07-17 18:55   ` Pandiyan, Dhinakaran
  2017-07-17 19:21   ` [Intel-gfx] " Manasi Navare
  2017-07-17 19:33 ` ✓ Fi.CI.BAT: success for " Patchwork
  2 siblings, 0 replies; 9+ messages in thread
From: Pandiyan, Dhinakaran @ 2017-07-17 18:55 UTC (permalink / raw)
  To: mka@chromium.org
  Cc: grundler@chromium.org, intel-gfx@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Vivi, Rodrigo, Vetter, Daniel


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;
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
@ 2017-07-17 18:55   ` Pandiyan, Dhinakaran
  0 siblings, 0 replies; 9+ messages in thread
From: Pandiyan, Dhinakaran @ 2017-07-17 18:55 UTC (permalink / raw)
  To: mka@chromium.org
  Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	grundler@chromium.org, Taylor, Clinton A, Vetter, Daniel,
	daniel@ffwll.ch, dri-devel@lists.freedesktop.org,
	airlied@linux.ie, stephane.marchesin@gmail.com, Vivi, Rodrigo,
	jani.nikula@linux.intel.com


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;

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
  2017-07-17 18:21 [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V Matthias Kaehlcke
@ 2017-07-17 19:21   ` Manasi Navare
  2017-07-17 19:21   ` [Intel-gfx] " Manasi Navare
  2017-07-17 19:33 ` ✓ Fi.CI.BAT: success for " Patchwork
  2 siblings, 0 replies; 9+ messages in thread
From: Manasi Navare @ 2017-07-17 19:21 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: Stéphane Marchesin, David Airlie, intel-gfx,
	Linux Kernel Mailing List, Grant Grundler, dri-devel,
	Daniel Vetter

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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
@ 2017-07-17 19:21   ` Manasi Navare
  0 siblings, 0 replies; 9+ messages in thread
From: Manasi Navare @ 2017-07-17 19:21 UTC (permalink / raw)
  To: Matthias Kaehlcke
  Cc: Daniel Vetter, Jani Nikula, David Airlie, Daniel Vetter,
	Grant Grundler, intel-gfx, Linux Kernel Mailing List, dri-devel,
	Stéphane Marchesin

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* ✓ Fi.CI.BAT: success for drm/i915: Return correct EDP voltage swing table for 0.85V
  2017-07-17 18:21 [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V Matthias Kaehlcke
  2017-07-17 18:55   ` Pandiyan, Dhinakaran
  2017-07-17 19:21   ` [Intel-gfx] " Manasi Navare
@ 2017-07-17 19:33 ` Patchwork
  2 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2017-07-17 19:33 UTC (permalink / raw)
  To: Matthias Kaehlcke; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Return correct EDP voltage swing table for 0.85V
URL   : https://patchwork.freedesktop.org/series/27426/
State : success

== Summary ==

Series 27426v1 drm/i915: Return correct EDP voltage swing table for 0.85V
https://patchwork.freedesktop.org/api/1.0/series/27426/revisions/1/mbox/

Test gem_exec_flush:
        Subgroup basic-batch-kernel-default-uc:
                fail       -> PASS       (fi-snb-2600) fdo#100007
Test gem_exec_suspend:
        Subgroup basic-s4-devices:
                pass       -> DMESG-WARN (fi-kbl-7560u) k.org#196399
Test kms_cursor_legacy:
        Subgroup basic-busy-flip-before-cursor-atomic:
                fail       -> PASS       (fi-snb-2600) fdo#100215
Test kms_pipe_crc_basic:
        Subgroup hang-read-crc-pipe-a:
                pass       -> DMESG-WARN (fi-pnv-d510) fdo#101597 +1
        Subgroup suspend-read-crc-pipe-b:
                pass       -> DMESG-WARN (fi-byt-j1900) fdo#101705 +1

fdo#100007 https://bugs.freedesktop.org/show_bug.cgi?id=100007
k.org#196399 https://bugzilla.kernel.org/show_bug.cgi?id=196399
fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fdo#101597 https://bugs.freedesktop.org/show_bug.cgi?id=101597
fdo#101705 https://bugs.freedesktop.org/show_bug.cgi?id=101705

fi-bdw-5557u     total:279  pass:268  dwarn:0   dfail:0   fail:0   skip:11  time:440s
fi-bdw-gvtdvm    total:279  pass:265  dwarn:0   dfail:0   fail:0   skip:14  time:434s
fi-blb-e6850     total:279  pass:224  dwarn:1   dfail:0   fail:0   skip:54  time:358s
fi-bsw-n3050     total:279  pass:243  dwarn:0   dfail:0   fail:0   skip:36  time:533s
fi-bxt-j4205     total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:507s
fi-byt-j1900     total:279  pass:254  dwarn:1   dfail:0   fail:0   skip:24  time:495s
fi-byt-n2820     total:279  pass:251  dwarn:0   dfail:0   fail:0   skip:28  time:479s
fi-glk-2a        total:279  pass:260  dwarn:0   dfail:0   fail:0   skip:19  time:593s
fi-hsw-4770      total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:434s
fi-hsw-4770r     total:279  pass:263  dwarn:0   dfail:0   fail:0   skip:16  time:418s
fi-ilk-650       total:279  pass:229  dwarn:0   dfail:0   fail:0   skip:50  time:419s
fi-ivb-3520m     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:496s
fi-ivb-3770      total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:472s
fi-kbl-7500u     total:279  pass:261  dwarn:0   dfail:0   fail:0   skip:18  time:462s
fi-kbl-7560u     total:279  pass:268  dwarn:1   dfail:0   fail:0   skip:10  time:569s
fi-kbl-r         total:279  pass:260  dwarn:1   dfail:0   fail:0   skip:18  time:581s
fi-pnv-d510      total:279  pass:221  dwarn:3   dfail:0   fail:0   skip:55  time:563s
fi-skl-6260u     total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:458s
fi-skl-6700hq    total:279  pass:262  dwarn:0   dfail:0   fail:0   skip:17  time:590s
fi-skl-6700k     total:279  pass:257  dwarn:4   dfail:0   fail:0   skip:18  time:464s
fi-skl-6770hq    total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:479s
fi-skl-gvtdvm    total:279  pass:266  dwarn:0   dfail:0   fail:0   skip:13  time:436s
fi-skl-x1585l    total:279  pass:269  dwarn:0   dfail:0   fail:0   skip:10  time:487s
fi-snb-2520m     total:279  pass:251  dwarn:0   dfail:0   fail:0   skip:28  time:549s
fi-snb-2600      total:279  pass:250  dwarn:0   dfail:0   fail:0   skip:29  time:409s

3010bfcdfd837d2f7708fc37f1b8de79e8e9362d drm-tip: 2017y-07m-17d-18h-46m-40s UTC integration manifest
142b2b9 drm/i915: Return correct EDP voltage swing table for 0.85V

== Logs ==

For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_5213/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
  2017-07-17 18:55   ` Pandiyan, Dhinakaran
  (?)
@ 2017-07-17 20:59   ` Pandiyan, Dhinakaran
  2017-07-17 21:17       ` Manasi Navare
  -1 siblings, 1 reply; 9+ messages in thread
From: Pandiyan, Dhinakaran @ 2017-07-17 20:59 UTC (permalink / raw)
  To: mka@chromium.org
  Cc: linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	grundler@chromium.org, Taylor, Clinton A, Vetter, Daniel,
	dri-devel@lists.freedesktop.org, airlied@linux.ie,
	stephane.marchesin@gmail.com, Vivi, Rodrigo




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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
  2017-07-17 20:59   ` Pandiyan, Dhinakaran
@ 2017-07-17 21:17       ` Manasi Navare
  0 siblings, 0 replies; 9+ messages in thread
From: Manasi Navare @ 2017-07-17 21:17 UTC (permalink / raw)
  To: Pandiyan, Dhinakaran
  Cc: grundler@chromium.org, intel-gfx@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	mka@chromium.org, Vivi, Rodrigo, Vetter, Daniel

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
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Intel-gfx] [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V
@ 2017-07-17 21:17       ` Manasi Navare
  0 siblings, 0 replies; 9+ messages in thread
From: Manasi Navare @ 2017-07-17 21:17 UTC (permalink / raw)
  To: Pandiyan, Dhinakaran
  Cc: mka@chromium.org, grundler@chromium.org,
	intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	dri-devel@lists.freedesktop.org, Vivi, Rodrigo, Vetter, Daniel

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-17 21:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-17 18:21 [PATCH] drm/i915: Return correct EDP voltage swing table for 0.85V Matthias Kaehlcke
2017-07-17 18:55 ` [Intel-gfx] " Pandiyan, Dhinakaran
2017-07-17 18:55   ` Pandiyan, Dhinakaran
2017-07-17 20:59   ` Pandiyan, Dhinakaran
2017-07-17 21:17     ` Manasi Navare
2017-07-17 21:17       ` Manasi Navare
2017-07-17 19:21 ` Manasi Navare
2017-07-17 19:21   ` [Intel-gfx] " Manasi Navare
2017-07-17 19:33 ` ✓ Fi.CI.BAT: success for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.