Patch "drm/mgag200: Black screen fix for G200e rev 4" has been added to the 4.4-stable tree
This is a note to let you know that I've just added the patch titled
drm/mgag200: Black screen fix for G200e rev 4
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-mgag200-black-screen-fix-for-g200e-rev-4.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d3922b69617b62bb2509936b68301f837229d9f0Mon Sep 17 00:00:00 2001
From: Mathieu Larouche <[email protected]>
Date: Fri, 27 May 2016 15:12:50 -0400
Subject: drm/mgag200: Black screen fix for G200e rev 4
From: Mathieu Larouche <[email protected]>
commit d3922b69617b62bb2509936b68301f837229d9f0 upstream.
- Fixed black screen for some resolutions of G200e rev4
- Fixed testm & testn which had predetermined value.
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_mode.c +9 -1
@@ -194,7 +194,7 @@ static int mga_g200se_set_plls(struct mg } } - fvv = pllreffreq * testn / testm; + fvv = pllreffreq * (n +1 ) / (m +1 ); fvv = (fvv -800000 ) /50000 ;if (fvv >15 )
@@ -214,6 +214,14 @@ static int mga_g200se_set_plls(struct mgWREG_DAC (MGA1064_PIX_PLLC_M , m);WREG_DAC (MGA1064_PIX_PLLC_N , n);WREG_DAC (MGA1064_PIX_PLLC_P , p); + +if (mdev->unique_rev_id >=0x04 ) { +WREG_DAC (0x1a ,0x09 ); +msleep (20 ); +WREG_DAC (0x1a ,0x01 ); + + } +return 0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/drm-mgag200-black-screen-fix-for-g200e-rev-4.patch