mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 15:51:40 -04:00
drm/amd/display: correct DML calc error
[Why] DML calculation is different from HW formula. [How] Correct the bug to keep it same as HW formula. Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Sherry Wang <Yao.Wang1@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
4424371911
commit
05ffbdf4db
@@ -4939,8 +4939,8 @@ void dml30_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
|
||||
}
|
||||
v->TotImmediateFlipBytes = 0.0;
|
||||
for (k = 0; k <= v->NumberOfActivePlanes - 1; k++) {
|
||||
v->TotImmediateFlipBytes = v->TotImmediateFlipBytes + v->NoOfDPP[i][j][k] * v->PDEAndMetaPTEBytesPerFrame[i][j][k]
|
||||
+ v->MetaRowBytes[i][j][k] + v->DPTEBytesPerRow[i][j][k];
|
||||
v->TotImmediateFlipBytes = v->TotImmediateFlipBytes + v->NoOfDPP[i][j][k] * (v->PDEAndMetaPTEBytesPerFrame[i][j][k]
|
||||
+ v->MetaRowBytes[i][j][k] + v->DPTEBytesPerRow[i][j][k]);
|
||||
}
|
||||
|
||||
for (k = 0; k <= v->NumberOfActivePlanes - 1; k++) {
|
||||
|
||||
@@ -5274,8 +5274,8 @@ void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
|
||||
v->TotImmediateFlipBytes = 0.0;
|
||||
for (k = 0; k < v->NumberOfActivePlanes; k++) {
|
||||
v->TotImmediateFlipBytes = v->TotImmediateFlipBytes
|
||||
+ v->NoOfDPP[i][j][k] * v->PDEAndMetaPTEBytesPerFrame[i][j][k] + v->MetaRowBytes[i][j][k]
|
||||
+ v->DPTEBytesPerRow[i][j][k];
|
||||
+ v->NoOfDPP[i][j][k] * (v->PDEAndMetaPTEBytesPerFrame[i][j][k] + v->MetaRowBytes[i][j][k]
|
||||
+ v->DPTEBytesPerRow[i][j][k]);
|
||||
}
|
||||
|
||||
for (k = 0; k < v->NumberOfActivePlanes; k++) {
|
||||
|
||||
@@ -5371,8 +5371,8 @@ void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_
|
||||
v->TotImmediateFlipBytes = 0.0;
|
||||
for (k = 0; k < v->NumberOfActivePlanes; k++) {
|
||||
v->TotImmediateFlipBytes = v->TotImmediateFlipBytes
|
||||
+ v->NoOfDPP[i][j][k] * v->PDEAndMetaPTEBytesPerFrame[i][j][k] + v->MetaRowBytes[i][j][k]
|
||||
+ v->DPTEBytesPerRow[i][j][k];
|
||||
+ v->NoOfDPP[i][j][k] * (v->PDEAndMetaPTEBytesPerFrame[i][j][k] + v->MetaRowBytes[i][j][k]
|
||||
+ v->DPTEBytesPerRow[i][j][k]);
|
||||
}
|
||||
|
||||
for (k = 0; k < v->NumberOfActivePlanes; k++) {
|
||||
|
||||
Reference in New Issue
Block a user