summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorRoman Li <Roman.Li@amd.com>2024-12-13 13:51:07 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-17 13:40:48 +0100
commit4f0dd09ed3001725ffd8cdc2868e71df585392fe (patch)
tree5690964c731817d914719ec2bac20cf9f142d5f5 /tools/testing
parent23af4d2c49d8b270be71029af5e0cb5595604321 (diff)
downloadlinux-4f0dd09ed3001725ffd8cdc2868e71df585392fe.tar.gz
linux-4f0dd09ed3001725ffd8cdc2868e71df585392fe.tar.bz2
linux-4f0dd09ed3001725ffd8cdc2868e71df585392fe.zip
drm/amd/display: Add check for granularity in dml ceil/floor helpers
commit 0881fbc4fd62e00a2b8e102725f76d10351b2ea8 upstream. [Why] Wrapper functions for dcn_bw_ceil2() and dcn_bw_floor2() should check for granularity is non zero to avoid assert and divide-by-zero error in dcn_bw_ functions. [How] Add check for granularity 0. Cc: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Roman Li <Roman.Li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit f6e09701c3eb2ccb8cb0518e0b67f1c69742a4ec) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions