artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98787e2
)
drm/amd/display: Blocking invalid 420 modes on HDMI TMDS for DCN31
author
jsg
<jsg@openbsd.org>
Mon, 25 Sep 2023 03:08:12 +0000
(
03:08
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 25 Sep 2023 03:08:12 +0000
(
03:08
+0000)
From Leo Chen
2c0f5b6972ebfd6224065fd3c59d04f85a8af795
in linux-6.1.y/6.1.55
026a71babf48efb6b9884a3a66fa31aec9e1ea54
in mainline linux
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
b/sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
index
ebc04b7
..
9c84561
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
+++ b/
sys/dev/pci/drm/amd/display/dc/dml/dcn31/display_mode_vba_31.c
@@
-4133,7
+4133,9
@@
void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
}
if (v->OutputFormat[k] == dm_420 && v->HActive[k] > DCN31_MAX_FMT_420_BUFFER_WIDTH
&& v->ODMCombineEnablePerState[i][k] != dm_odm_combine_mode_4to1) {
- if (v->HActive[k] / 2 > DCN31_MAX_FMT_420_BUFFER_WIDTH) {
+ if (v->Output[k] == dm_hdmi) {
+ FMTBufferExceeded = true;
+ } else if (v->HActive[k] / 2 > DCN31_MAX_FMT_420_BUFFER_WIDTH) {
v->ODMCombineEnablePerState[i][k] = dm_odm_combine_mode_4to1;
v->PlaneRequiredDISPCLK = v->PlaneRequiredDISPCLKWithODMCombine4To1;