drm/radeon: revert "Prefer lower feedback dividers"
Subsystems (2)
PATCH 1/1 drm/radeon: revert "Prefer lower feedback dividers"
Turns out this breaks a lot of different hardware.
This reverts commit 522ff3a8b6d73a31084b4b087b458f7fa0ac1e14.
--- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_display.c +1 -1
@@ -933,7 +933,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,/* get matching reference and feedback divider */ *ref_div =min (max (den/post_div,1u ), ref_div_max); - *fb_div =max (nom * *ref_div * post_div / den,1u ); + *fb_div =DIV_ROUND_CLOSEST (nom * *ref_div * post_div, den);/* limit fb divider to its maximum */ if (*fb_div > fb_div_max) {
Signature · 6 lines
2.14.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Ping, we need to revert this ASAP.
Christian.
Am 09.09.20 um 13:16 schrieb Christian König:
Quoted 14 lines
Turns out this breaks a lot of different hardware.
This reverts commit
522ff3a8b6d73a31084b4b087b458f7fa0ac1e14.Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_display.c +0
-0
drivers/gpu/drm/radeon/radeon_display.c static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, · line 939
Quoted 8 lines
drivers/gpu/drm/radeon/radeon_display.c +1
-1@@ -933,7 +933,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,/* get matching reference and feedback divider */ *ref_div =min (max (den/post_div,1u ), ref_div_max); - *fb_div =max (nom * *ref_div * post_div / den,1u ); + *fb_div =DIV_ROUND_CLOSEST (nom * *ref_div * post_div, den);/* limit fb divider to its maximum */ if (*fb_div > fb_div_max) {
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Nirmoy
Acked-by Nirmoy DasI don't know much about display code but this is
revert fixes display corruption.
Quoted 23 lines · Christian König
Ping, we need to revert this ASAP.
Christian.
Am 09.09.20 um 13:16 schrieb Christian König:
Quoted 18 lines
Turns out this breaks a lot of different hardware.
This reverts commit
522ff3a8b6d73a31084b4b087b458f7fa0ac1e14.Signed-off-by Christian König <[email protected]>---
drivers/gpu/drm/radeon/radeon_display.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_display.c +0
-1@@ -933,7 +933,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, /* get matching reference and feedback divider */ *ref_div = min(max(den/post_div, 1u), ref_div_max); - *fb_div = max(nom * *ref_div * post_div / den, 1u);
Quoted 9 lines
drivers/gpu/drm/radeon/radeon_display.c static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, · line 939
Quoted 3 lines
drivers/gpu/drm/radeon/radeon_display.c +1
-0+ *fb_div = DIV_ROUND_CLOSEST(nom * *ref_div * post_div, den); /* limit fb divider to its maximum */ if (*fb_div > fb_div_max) {_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=02%7C01%7Cnirmoy.das%40amd.com%7Cf783daab70b74e9eb3f908d856254f13%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637354065561865480&sdata=%2FrEgUz%2FcfFkI4JHMZ9L56UHKDID2zHDRzwwBNrHYNmU%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
Reviewed-byQuoted 26 lines · Christian König
Ping, we need to revert this ASAP.
Christian.
Am 09.09.20 um 13:16 schrieb Christian König:
Quoted 20 lines
Turns out this breaks a lot of different hardware.
This reverts commit
522ff3a8b6d73a31084b4b087b458f7fa0ac1e14.Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/radeon/radeon_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_display.c +1
-1@@ -933,7 +933,7 @@ static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div,/* get matching reference and feedback divider */ *ref_div =min (max (den/post_div,1u ), ref_div_max); - *fb_div =max (nom * *ref_div * post_div / den,1u ); + *fb_div =DIV_ROUND_CLOSEST (nom * *ref_div * post_div, den);
Quoted 7 lines
drivers/gpu/drm/radeon/radeon_display.c static void avivo_get_fb_ref_div(unsigned nom, unsigned den, unsigned post_div, · line 939
Quoted 2 lines
drivers/gpu/drm/radeon/radeon_display.c +0
-0/* limit fb divider to its maximum */ if (*fb_div > fb_div_max) {_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx