summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/r600_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-11-12 19:17:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-06 15:55:39 -0800
commit9a7bbd79e955a599506cee3a3bea8882a28b9859 (patch)
tree449b26deb2fe9c45e7d8f4fa8250ec0ad3fcadb3 /drivers/gpu/drm/radeon/r600_dpm.c
parent3cde58c5e0144cd740ad1a044e127b87d924e1a4 (diff)
downloadlwn-9a7bbd79e955a599506cee3a3bea8882a28b9859.tar.gz
lwn-9a7bbd79e955a599506cee3a3bea8882a28b9859.zip
drm/radeon: fix endian swapping in vbios fetch for tdp table
commit 28731d5818ae25b92d1fb82fe0ac196e97102c1b upstream. Value needs to be swapped on BE. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_dpm.c')
-rw-r--r--drivers/gpu/drm/radeon/r600_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_dpm.c b/drivers/gpu/drm/radeon/r600_dpm.c
index 813db8de52b7..3334f916945b 100644
--- a/drivers/gpu/drm/radeon/r600_dpm.c
+++ b/drivers/gpu/drm/radeon/r600_dpm.c
@@ -1209,7 +1209,7 @@ int r600_parse_extended_power_table(struct radeon_device *rdev)
(mode_info->atom_context->bios + data_offset +
le16_to_cpu(ext_hdr->usPowerTuneTableOffset));
rdev->pm.dpm.dyn_state.cac_tdp_table->maximum_power_delivery_limit =
- ppt->usMaximumPowerDeliveryLimit;
+ le16_to_cpu(ppt->usMaximumPowerDeliveryLimit);
pt = &ppt->power_tune_table;
} else {
ATOM_PPLIB_POWERTUNE_Table *ppt = (ATOM_PPLIB_POWERTUNE_Table *)