diff options
| author | Feifei Xu <[email protected]> | 2020-11-30 10:57:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-03-24 02:55:05 +0000 |
| commit | 147d082d386289a8bc66d1c906e4ae5c785d9d59 (patch) | |
| tree | 818d6306913c6a2b3f275d7eedc61800fe3c5fb0 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm/amdgpu: support get_vram_info atomfirmware i/f for aldebaran (diff) | |
| download | kernel-147d082d386289a8bc66d1c906e4ae5c785d9d59.tar.gz kernel-147d082d386289a8bc66d1c906e4ae5c785d9d59.zip | |
drm/amdgpu: correct vram_info for HBM2E
correct atom_vram_info_header_v2_6 and its vram_module.
Signed-off-by: Feifei Xu <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c index 266d949759fe..d338f2db1f9c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c @@ -123,7 +123,7 @@ union vram_info { struct atom_vram_info_header_v2_3 v23; struct atom_vram_info_header_v2_4 v24; struct atom_vram_info_header_v2_5 v25; - struct atom_vram_info_header_v2_5 v26; + struct atom_vram_info_header_v2_6 v26; }; union vram_module { @@ -322,7 +322,7 @@ amdgpu_atomfirmware_get_vram_info(struct amdgpu_device *adev, vram_module = (union vram_module *)vram_info->v26.vram_module; while (i < module_id) { vram_module = (union vram_module *) - ((u8 *)vram_module + vram_module->v11.vram_module_size); + ((u8 *)vram_module + vram_module->v9.vram_module_size); i++; } mem_type = vram_module->v9.memory_type; |
