[PATCH 0/4] Correct a series of off by 1 errors in DML and DML2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mario Limonciello <mario.limonciello@xxxxxxx>

Many people have reported a series of issues that lead to divide
by zero errors in DML2 code on DCN 3.5.

This divide by zero error is caused by accessing outside of the bound
of what is initialized on an array for the number of planes.

The first patch in the series fixes the immediate issue.  This patch
should go to fixes and stable.

The remaining patches fix what appears to be the same problem in other
code in both DML and DML2 that has (presumably) been copy/pasted for
loop iterators.

Mario Limonciello (4):
  drm/amd/display: Adjust plane init for off by one error
  drm/amd/display: Correct off by one errors in DML
  drm/amd/display: Correct some suspect code indentation
  drm/amd/display: Correct off by one errors in DML2

 .../dc/dml/dcn32/display_mode_vba_32.c        |  68 ++++-----
 .../amd/display/dc/dml2/display_mode_core.c   | 131 +++++++++---------
 .../src/dml2_core/dml2_core_dcn4_calcs.c      |  40 +++---
 .../dml21/src/dml2_core/dml2_core_shared.c    |  50 +++----
 4 files changed, 144 insertions(+), 145 deletions(-)

-- 
2.43.0




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux