artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93221aa
)
drm/amd/display: Handle Y carry-over in VCP X.Y calculation
author
jsg
<jsg@openbsd.org>
Mon, 20 May 2024 05:24:11 +0000
(
05:24
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 20 May 2024 05:24:11 +0000
(
05:24
+0000)
From George Shen
7be093e45215d4d9dfda515aebb7c31dc9413144
in linux-6.6.y/6.6.3
719564737a9ac3d0b49c314450b56cf6f7d71358
in mainline linux
sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c
b/sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c
index
083a43c
..
fa8623c
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c
+++ b/
sys/dev/pci/drm/amd/display/dc/dcn31/dcn31_hpo_dp_link_encoder.c
@@
-395,6
+395,12
@@
void dcn31_hpo_dp_link_enc_set_throttled_vcp_size(
x),
25));
+ // If y rounds up to integer, carry it over to x.
+ if (y >> 25) {
+ x += 1;
+ y = 0;
+ }
+
switch (stream_encoder_inst) {
case 0:
REG_SET_2(DP_DPHY_SYM32_VC_RATE_CNTL0, 0,