drm/mgag200: Fix PLL setup for g200wb and g200ew
Jocelyn Falempe
reviewerPATCH 1/1 drm/mgag200: Fix PLL setup for g200wb and g200ew
commit f86c3ed55920ca1d874758cc290890902a6cffc4 ("drm/mgag200: Split PLL setup into compute and update functions") introduced a regression for g200wb and g200ew.
The PLLs are not set up properly, and VGA screen stays black, or displays "out of range" message.
MGA1064_WB_PIX_PLLC_N/M/P was mistakenly replaced with MGA1064_PIX_PLLC_N/M/P which have different addresses.
Patch tested on a Dell T310 with g200wb
--- drivers/gpu/drm/mgag200/mgag200_pll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/mgag200/mgag200_pll.c +3 -3
@@ -404,9 +404,9 @@ mgag200_pixpll_update_g200wb(struct mgag200_pll *pixpll, const struct mgag200_pludelay (50 );/* program pixel pll register */ -WREG_DAC (MGA1064_PIX_PLLC_N , xpixpllcn); -WREG_DAC (MGA1064_PIX_PLLC_M , xpixpllcm); -WREG_DAC (MGA1064_PIX_PLLC_P , xpixpllcp); +WREG_DAC (MGA1064_WB_PIX_PLLC_N , xpixpllcn); +WREG_DAC (MGA1064_WB_PIX_PLLC_M , xpixpllcm); +WREG_DAC (MGA1064_WB_PIX_PLLC_P , xpixpllcp);udelay (50 );
Signature · 1 line
2.35.1
Greg KH
maintainerQuoted 3 lines · Jocelyn Falempe
commit
f86c3ed55920ca1d874758cc290890902a6cffc4("drm/mgag200: Split PLL setup into compute and update functions") introduced a regression for g200wb and g200ew.
No need for all those digits in the sha1, see below:
Quoted 9 lines
The PLLs are not set up properly, and VGA screen stays black, or displays "out of range" message.
MGA1064_WB_PIX_PLLC_N/M/P was mistakenly replaced with MGA1064_PIX_PLLC_N/M/P which have different addresses.
Patch tested on a Dell T310 with g200wb
Fixes f86c3ed55920ca1d874758cc290890902a6cffc4
As per the documentation that line should read:
thanks,
greg k-h
Jocelyn Falempe
reviewerQuoted 13 lines · Greg KH
Quoted 3 lines · Jocelyn Falempe
commit
f86c3ed55920ca1d874758cc290890902a6cffc4("drm/mgag200: Split PLL setup into compute and update functions") introduced a regression for g200wb and g200ew.No need for all those digits in the sha1, see below:
Quoted 6 lines
The PLLs are not set up properly, and VGA screen stays black, or displays "out of range" message.
MGA1064_WB_PIX_PLLC_N/M/P was mistakenly replaced with MGA1064_PIX_PLLC_N/M/P which have different addresses.
Quoted 7 lines
Quoted 3 lines
Patch tested on a Dell T310 with g200wb
Fixes f86c3ed55920ca1d874758cc290890902a6cffc4As per the documentation that line should read:
Fixes f86c3ed55920 ("drm/mgag200: Split PLL setup into compute and update functions")
Sorry, I will send a v2 shortly.
Quoted 5 lines
thanks,
greg k-h
Jocelyn Falempe
reviewerPATCH v2 1/1 drm/mgag200: Fix PLL setup for g200wb and g200ew
In reply to Jocelyn Falempecommit f86c3ed55920 ("drm/mgag200: Split PLL setup into compute and
update functions") introduced a regression for g200wb and g200ew.
The PLLs are not set up properly, and VGA screen stays black, or displays "out of range" message.
MGA1064_WB_PIX_PLLC_N/M/P was mistakenly replaced with MGA1064_PIX_PLLC_N/M/P which have different addresses.
Patch tested on a Dell T310 with g200wb
--- drivers/gpu/drm/mgag200/mgag200_pll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/mgag200/mgag200_pll.c +3 -3
@@ -404,9 +404,9 @@ mgag200_pixpll_update_g200wb(struct mgag200_pll *pixpll, const struct mgag200_pludelay (50 );/* program pixel pll register */ -WREG_DAC (MGA1064_PIX_PLLC_N , xpixpllcn); -WREG_DAC (MGA1064_PIX_PLLC_M , xpixpllcm); -WREG_DAC (MGA1064_PIX_PLLC_P , xpixpllcp); +WREG_DAC (MGA1064_WB_PIX_PLLC_N , xpixpllcn); +WREG_DAC (MGA1064_WB_PIX_PLLC_M , xpixpllcm); +WREG_DAC (MGA1064_WB_PIX_PLLC_P , xpixpllcp);udelay (50 );
Signature · 1 line
2.35.1
Thomas Zimmermann
maintainerHi
Am 08.03.22 um 18:43 schrieb Jocelyn Falempe:
Quoted 5 lines
commit
f86c3ed55920("drm/mgag200: Split PLL setup into compute and
update functions") introduced a regression for g200wb and g200ew.
The PLLs are not set up properly, and VGA screen stays black, or displays "out of range" message.
Quoted 8 lines
MGA1064_WB_PIX_PLLC_N/M/P was mistakenly replaced with MGA1064_PIX_PLLC_N/M/P which have different addresses.
Patch tested on a Dell T310 with g200wb
Fixes f86c3ed55920 ("drm/mgag200: Split PLL setup into compute and update functions")Signed-off-by Jocelyn Falempe <[email protected]>
Thank you so much. I've added the patch to drm-misc-fixes. One small nit: next time, please include a little change log that says what each version of the patch changes; even if it's only the style of the commit message.
Best regards
Thomas
Quoted 21 lines
--- drivers/gpu/drm/mgag200/mgag200_pll.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/mgag200/mgag200_pll.c +3
-3@@ -404,9 +404,9 @@ mgag200_pixpll_update_g200wb(struct mgag200_pll *pixpll, const struct mgag200_pludelay (50 );/* program pixel pll register */ -WREG_DAC (MGA1064_PIX_PLLC_N , xpixpllcn); -WREG_DAC (MGA1064_PIX_PLLC_M , xpixpllcm); -WREG_DAC (MGA1064_PIX_PLLC_P , xpixpllcp); +WREG_DAC (MGA1064_WB_PIX_PLLC_N , xpixpllcn); +WREG_DAC (MGA1064_WB_PIX_PLLC_M , xpixpllcm); +WREG_DAC (MGA1064_WB_PIX_PLLC_P , xpixpllcp);udelay (50 );
Signature · 6 lines
Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev