diff options
author | Karol Herbst <karolherbst@gmail.com> | 2016-07-12 15:36:08 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-10-12 03:29:25 -0400 |
commit | 5e00e3263ba68bd32337063a43aa8467b27acd1d (patch) | |
tree | 57970a8bff5bebf7c47ac331d7906336c48ba455 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 4b9ce6e7b68683ac3874f9ebb243eb6f29c46812 (diff) |
drm/nouveau/volt: Don't require perfect fit
If we calculate the voltage in the table right, we get all kinds of values,
which never fit the hardware steps, so we use the closest higher value the
hardware can do.
v3: Simplify the implementation.
v5: Initialize best_err with volt->max_uv.
Signed-off-by: Karol Herbst <karolherbst@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions