diff options
| author | Aric Cyr <[email protected]> | 2021-06-21 16:01:45 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-07-08 19:16:44 +0000 |
| commit | babbdf5b3a8b7c4f5e169a7a3300d2a743c10ac6 (patch) | |
| tree | 4cd9978ba35f8ecf5c430b40084160a4831ed3f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c | |
| parent | drm/amd/display: 3.2.142 (diff) | |
| download | kernel-babbdf5b3a8b7c4f5e169a7a3300d2a743c10ac6.tar.gz kernel-babbdf5b3a8b7c4f5e169a7a3300d2a743c10ac6.zip | |
drm/amd/display: Round KHz up when calculating clock requests
[Why]
When requesting clocks from SMU which takes MHz inputs, DC will round
down KHz when converting to MHz, thus potentially requesting too low a
clock value.
[How]
Round up (ceil) when converting KHz to MHz for clock requests to SMU.
Signed-off-by: Aric Cyr <[email protected]>
Reviewed-by: Dmytro Laktyushkin <[email protected]>
Acked-by: Rodrigo Siqueira <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c')
0 files changed, 0 insertions, 0 deletions
