drm/amdgpu/display: restore AUX_DPHY_TX_CONTROL for DCN2.x
Subsystems (3)
PATCH 1/1 drm/amdgpu/display: restore AUX_DPHY_TX_CONTROL for DCN2.x
Commit 098214999c8f added fetching of the AUX_DPHY register values from the vbios, but it also changed the default values in the case when there are no values in the vbios. This causes problems with displays with high refresh rates. To fix this, switch back to the original default value for AUX_DPHY_TX_CONTROL.
--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +1 -2
@@ -341,8 +341,7 @@ void enc2_hw_init(struct link_encoder *enc) }else {AUX_REG_WRITE (AUX_DPHY_RX_CONTROL0 ,0x103d1110 ); -AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c4d ); - +AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c7a ); }//AUX_DPHY_TX_REF_CONTROL'AUX_TX_REF_DIV HW default is 0x32;
Signature · 6 lines
2.29.2 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Harry Wentland
maintainerQuoted 5 lines · Alex Deucher
Commit
098214999c8fadded fetching of theAUX_DPHYregister values from the vbios, but it also changed the default values in the case when there are no values in the vbios. This causes problems with displays with high refresh rates. To fix this, switch back to the original default value forAUX_DPHY_TX_CONTROL.
I don't see how this impacts displays with high refresh rates specifically. This is a change that only affects our AUX pre-charge time and was provided to us by the HW team. It does depend on another register being programmed by the VBIOS/DMCUBFW at boot.
Before we revert this I would like confirmation that this is the root of the problem.
Harry
Quoted 17 lines
Fixes 098214999c8f ("drm/amd/display: Read VBIOS Golden Settings Tbl")Signed-off-by Alex Deucher <[email protected]>Cc Igor Kravchenko <[email protected]>Cc Aric Cyr <[email protected]>Cc Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +0
-0
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c void enc2_hw_init(struct link_encoder *enc) · line 347
Quoted 9 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +1
-2@@ -341,8 +341,7 @@ void enc2_hw_init(struct link_encoder *enc) }else {AUX_REG_WRITE (AUX_DPHY_RX_CONTROL0 ,0x103d1110 ); -AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c4d ); - +AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c7a ); }//AUX_DPHY_TX_REF_CONTROL'AUX_TX_REF_DIV HW default is 0x32;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines · Harry Wentland
Quoted 5 lines · Alex Deucher
Commit
098214999c8fadded fetching of theAUX_DPHYregister values from the vbios, but it also changed the default values in the case when there are no values in the vbios. This causes problems with displays with high refresh rates. To fix this, switch back to the original default value forAUX_DPHY_TX_CONTROL.
Quoted 7 lines
I don't see how this impacts displays with high refresh rates specifically. This is a change that only affects our AUX pre-charge time and was provided to us by the HW team. It does depend on another register being programmed by the VBIOS/DMCUBFW at boot.
Before we revert this I would like confirmation that this is the root of the problem.
Hi Harry, any progress on this?
Thanks,
Alex
Quoted 22 lines
Harry
Quoted 19 lines
Fixes 098214999c8f ("drm/amd/display: Read VBIOS Golden Settings Tbl")Signed-off-by Alex Deucher <[email protected]>Cc Igor Kravchenko <[email protected]>Cc Aric Cyr <[email protected]>Cc Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +0
-0@@ -341,8 +341,7 @@ void enc2_hw_init(struct link_encoder *enc) }else {AUX_REG_WRITE (AUX_DPHY_RX_CONTROL0 ,0x103d1110 );
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c void enc2_hw_init(struct link_encoder *enc) · line 347
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +1
-2-AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c4d ); - +AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c7a ); }//AUX_DPHY_TX_REF_CONTROL'AUX_TX_REF_DIV HW default is 0x32;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 8 lines · Harry Wentland
Quoted 5 lines · Alex Deucher
Commit
098214999c8fadded fetching of theAUX_DPHYregister values from the vbios, but it also changed the default values in the case when there are no values in the vbios. This causes problems with displays with high refresh rates. To fix this, switch back to the original default value forAUX_DPHY_TX_CONTROL.
Quoted 7 lines
I don't see how this impacts displays with high refresh rates specifically. This is a change that only affects our AUX pre-charge time and was provided to us by the HW team. It does depend on another register being programmed by the VBIOS/DMCUBFW at boot.
Before we revert this I would like confirmation that this is the root of the problem.
Any updates on this? Can we apply this in the meantime?
Thanks,
Alex
Quoted 22 lines
Harry
Quoted 19 lines
Fixes 098214999c8f ("drm/amd/display: Read VBIOS Golden Settings Tbl")Signed-off-by Alex Deucher <[email protected]>Cc Igor Kravchenko <[email protected]>Cc Aric Cyr <[email protected]>Cc Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +0
-0@@ -341,8 +341,7 @@ void enc2_hw_init(struct link_encoder *enc) }else {AUX_REG_WRITE (AUX_DPHY_RX_CONTROL0 ,0x103d1110 );
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c void enc2_hw_init(struct link_encoder *enc) · line 347
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +1
-2-AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c4d ); - +AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c7a ); }//AUX_DPHY_TX_REF_CONTROL'AUX_TX_REF_DIV HW default is 0x32;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 14 lines · Alex Deucher
Quoted 13 lines · Harry Wentland
Quoted 5 lines · Alex Deucher
Commit
098214999c8fadded fetching of theAUX_DPHYregister values from the vbios, but it also changed the default values in the case when there are no values in the vbios. This causes problems with displays with high refresh rates. To fix this, switch back to the original default value forAUX_DPHY_TX_CONTROL.I don't see how this impacts displays with high refresh rates specifically. This is a change that only affects our AUX pre-charge time and was provided to us by the HW team. It does depend on another register being programmed by the VBIOS/DMCUBFW at boot.
Quoted 5 lines
Quoted 2 lines
Before we revert this I would like confirmation that this is the root of the problem.
Any updates on this? Can we apply this in the meantime?
Sorry for the late response.
Looks like the other two patches I had were flaky, though I don't fully understand why. Let's just revert this change for NV1x (i.e. your change).
Harry
Quoted 25 lines
Thanks,
Alex
Quoted 21 lines
Harry
Quoted 18 lines
Fixes 098214999c8f ("drm/amd/display: Read VBIOS Golden Settings Tbl")Bug https://gitlab.freedesktop.org/drm/amd/-/issues/1426>>>> Signed-off-by: Alex Deucher <[email protected]>Cc Igor Kravchenko <[email protected]>Cc Aric Cyr <[email protected]>Cc Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +0
-0@@ -341,8 +341,7 @@ void enc2_hw_init(struct link_encoder *enc) }else {AUX_REG_WRITE (AUX_DPHY_RX_CONTROL0 ,0x103d1110 );
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c void enc2_hw_init(struct link_encoder *enc) · line 347
Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c +1
-2-AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c4d ); - +AUX_REG_WRITE (AUX_DPHY_TX_CONTROL ,0x21c7a ); }//AUX_DPHY_TX_REF_CONTROL'AUX_TX_REF_DIV HW default is 0x32;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx