diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 663bf35cdce9..0769cb935318 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |||
@@ -318,7 +318,6 @@ int amdgpu_virt_fw_reserve_get_checksum(void *obj, | |||
318 | 318 | ||
319 | void amdgpu_virt_init_data_exchange(struct amdgpu_device *adev) | 319 | void amdgpu_virt_init_data_exchange(struct amdgpu_device *adev) |
320 | { | 320 | { |
321 | uint32_t pf2vf_ver = 0; | ||
322 | uint32_t pf2vf_size = 0; | 321 | uint32_t pf2vf_size = 0; |
323 | uint32_t checksum = 0; | 322 | uint32_t checksum = 0; |
324 | uint32_t checkval; | 323 | uint32_t checkval; |
@@ -331,7 +330,6 @@ void amdgpu_virt_init_data_exchange(struct amdgpu_device *adev) | |||
331 | adev->virt.fw_reserve.p_pf2vf = | 330 | adev->virt.fw_reserve.p_pf2vf = |
332 | (struct amdgim_pf2vf_info_header *)( | 331 | (struct amdgim_pf2vf_info_header *)( |
333 | adev->fw_vram_usage.va + AMDGIM_DATAEXCHANGE_OFFSET); | 332 | adev->fw_vram_usage.va + AMDGIM_DATAEXCHANGE_OFFSET); |
334 | pf2vf_ver = adev->virt.fw_reserve.p_pf2vf->version; | ||
335 | AMDGPU_FW_VRAM_PF2VF_READ(adev, header.size, &pf2vf_size); | 333 | AMDGPU_FW_VRAM_PF2VF_READ(adev, header.size, &pf2vf_size); |
336 | AMDGPU_FW_VRAM_PF2VF_READ(adev, checksum, &checksum); | 334 | AMDGPU_FW_VRAM_PF2VF_READ(adev, checksum, &checksum); |
337 | AMDGPU_FW_VRAM_PF2VF_READ(adev, feature_flags, &adev->virt.gim_feature); | 335 | AMDGPU_FW_VRAM_PF2VF_READ(adev, feature_flags, &adev->virt.gim_feature); |