aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
index a99e0bca6812..fd435a96481c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
@@ -124,7 +124,7 @@ static int amdgpu_cgs_alloc_gpu_mem(struct cgs_device *cgs_device,
124 ret = amdgpu_bo_create_restricted(adev, size, PAGE_SIZE, 124 ret = amdgpu_bo_create_restricted(adev, size, PAGE_SIZE,
125 true, domain, flags, 125 true, domain, flags,
126 NULL, &placement, NULL, 126 NULL, &placement, NULL,
127 &obj); 127 0, &obj);
128 if (ret) { 128 if (ret) {
129 DRM_ERROR("(%d) bo create failed\n", ret); 129 DRM_ERROR("(%d) bo create failed\n", ret);
130 return ret; 130 return ret;
@@ -166,7 +166,7 @@ static int amdgpu_cgs_gmap_gpu_mem(struct cgs_device *cgs_device, cgs_handle_t h
166 r = amdgpu_bo_reserve(obj, true); 166 r = amdgpu_bo_reserve(obj, true);
167 if (unlikely(r != 0)) 167 if (unlikely(r != 0))
168 return r; 168 return r;
169 r = amdgpu_bo_pin_restricted(obj, obj->prefered_domains, 169 r = amdgpu_bo_pin_restricted(obj, obj->preferred_domains,
170 min_offset, max_offset, mcaddr); 170 min_offset, max_offset, mcaddr);
171 amdgpu_bo_unreserve(obj); 171 amdgpu_bo_unreserve(obj);
172 return r; 172 return r;
@@ -659,7 +659,7 @@ static int amdgpu_cgs_get_firmware_info(struct cgs_device *cgs_device,
659 info->version = (uint16_t)le32_to_cpu(header->header.ucode_version); 659 info->version = (uint16_t)le32_to_cpu(header->header.ucode_version);
660 660
661 if (CGS_UCODE_ID_CP_MEC == type) 661 if (CGS_UCODE_ID_CP_MEC == type)
662 info->image_size = (header->jt_offset) << 2; 662 info->image_size = le32_to_cpu(header->jt_offset) << 2;
663 663
664 info->fw_version = amdgpu_get_firmware_version(cgs_device, type); 664 info->fw_version = amdgpu_get_firmware_version(cgs_device, type);
665 info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version); 665 info->feature_version = (uint16_t)le32_to_cpu(header->ucode_feature_version);