]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Guard against zero memory channels
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 12 Jul 2022 18:32:45 +0000 (14:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Jul 2022 21:15:12 +0000 (17:15 -0400)
commit9ffd03b7a189dcfef46f76166aa4f71f4a4c9f0f
treeb7ee4ac0e8ac6ae4d8b3cacfafcefb8c25d11554
parentd2f7da31db9778f5c4744cc906f7eba358cf7899
drm/amd/display: Guard against zero memory channels

[Why]
If BIOS doesn't specify number of memory channels then bandwidth
validation will fail due to insufficient BW in DML.

[How]
If BIOS is setting zero channels then use the default in the table.
If no entry is in the table and no BIOS value is specified then
throw an ASSERT for future developers to look into.

Reviewed-by: Michael Strauss <Michael.Strauss@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_resource.c