FAILED: patch "[PATCH] drm/mgag200: Fix PLL setup for G200_SE_A rev >=4" failed to apply to 6.0-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.0-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Possible dependencies:
b389286d0234 ("drm/mgag200: Fix PLL setup for G200_SE_A rev >=4") 877507bb954e ("drm/mgag200: Provide per-device callbacks for PIXPLLC") 8aeeb3144fe2 ("drm/mgag200: Provide per-device callbacks for BMC synchronization") f639f74a7895 ("drm/mgag200: Add per-device callbacks")1baf9127c482 ("drm/mgag200: Replace simple-KMS with regular atomic helpers") 4f4dc37e374c ("drm/mgag200: Reorganize before dropping simple-KMS helpers") ed2ef21f1089 ("drm/mgag200: Store primary plane's color format in CRTC state") 2d70b9a1482e ("drm/mgag200: Acquire I/O-register lock in atomic_commit_tail function") 1ee181fe958a ("drm/mgag200: Move DAC-register setup into model-specific code") 44373151ab42 ("drm/mgag200: Split mgag200_modeset_init()")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From b389286d0234e1edbaf62ed8bc0892a568c33662 Mon Sep 17 00:00:00 2001
From: Jocelyn Falempe <[email protected]>
Date: Thu, 13 Oct 2022 15:28:10 +0200
Subject: [PATCH] drm/mgag200: Fix PLL setup for G200_SE_A rev >=4
For G200_SE_A, PLL M setting is wrong, which leads to blank screen, or "signal out of range" on VGA display.
previous code had "m |= 0x80" which was changed to
m |= ((pixpllcn & BIT(8)) >> 1);
Tested on G200_SE_A rev 42
This line of code was moved to another file with
commit 877507bb954e ("drm/mgag200: Provide per-device callbacks for PIXPLLC") but can be easily backported before this commit.
v2: * put BIT(7) First to respect MSB-to-LSB (Thomas)
* Add a comment to explain that this bit must be set (Thomas)
drivers/gpu/drm/mgag200/mgag200_g200se.c +2 -1
@@ -284,7 +284,8 @@ static void mgag200_g200se_04_pixpllc_atomic_update(struct drm_crtc *crtc, pixpllcp = pixpllc->p -1 ; pixpllcs = pixpllc->s; - xpixpllcm = pixpllcm | ((pixpllcn &BIT (8 )) >>1 ); +// For G200SE A, BIT(7) should be set unconditionally. + xpixpllcm =BIT (7 ) | pixpllcm; xpixpllcn = pixpllcn; xpixpllcp = (pixpllcs <<3 ) | pixpllcp;
Jocelyn Falempe
reviewerPATCH 1/1 drm/mgag200: Fix PLL setup for G200_SE_A rev >=4
commit b389286d0234e1edbaf62ed8bc0892a568c33662 upstream.
For G200_SE_A, PLL M setting is wrong, which leads to blank screen, or "signal out of range" on VGA display.
previous code had "m |= 0x80" which was changed to
m |= ((pixpllcn & BIT(8)) >> 1);
Tested on G200_SE_A rev 42
This line of code was moved to another file with
commit 877507bb954e ("drm/mgag200: Provide per-device callbacks for PIXPLLC") but can be easily backported before this commit.
v2: * put BIT(7) First to respect MSB-to-LSB (Thomas)
* Add a comment to explain that this bit must be set (Thomas)
backported to v6.0.17, it also applies cleanly to v5.15.86
--- drivers/gpu/drm/mgag200/mgag200_pll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_pll.c +2 -1
@@ -269,7 +269,8 @@ static void mgag200_pixpll_update_g200se_04(struct mgag200_pll *pixpll, pixpllcp = pixpllc->p -1 ; pixpllcs = pixpllc->s; - xpixpllcm = pixpllcm | ((pixpllcn &BIT (8 )) >>1 ); +// For G200SE A, BIT(7) should be set unconditionally. + xpixpllcm =BIT (7 ) | pixpllcm; xpixpllcn = pixpllcn; xpixpllcp = (pixpllcs <<3 ) | pixpllcp;
Signature · 1 line
2.38.1
Greg KH
maintainerRe: [PATCH] drm/mgag200: Fix PLL setup for G200_SE_A rev >=4
Quoted 18 lines · Jocelyn Falempe
commit
b389286d0234e1edbaf62ed8bc0892a568c33662upstream.For
G200_SE_A, PLL M setting is wrong, which leads to blank screen, or "signal out of range" on VGA display.
previous code had "m |=0x80" which was changed to
m |= ((pixpllcn & BIT(8)) >> 1);Tested on
G200_SE_Arev 42This line of code was moved to another file with
commit877507bb954e("drm/mgag200: Provide per-device callbacks for PIXPLLC") but can be easily backported before this commit.v2: * put BIT(7) First to respect MSB-to-LSB (Thomas)
* Add a comment to explain that this bit must be set (Thomas)backported to v6.0.17, it also applies cleanly to v5.15.86
Quoted 9 lines
Fixes 2dd040946ecf ("drm/mgag200: Store values (not bits) in struct mgag200_pll_values")Signed-off-by Jocelyn Falempe <[email protected]>Reviewed-by Thomas Zimmermann <[email protected]>--- drivers/gpu/drm/mgag200/mgag200_pll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Now queued up, thanks.
greg k-h