summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-07-08 02:20:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-07-08 02:20:30 +0000
commit8d97215f578d442182e8193650a2bafc42c669b5 (patch)
treebd8b34807dd356241de58341d5b7c662f581f5f0
parent67b055cee0239827afa1e95de6253f2f81beb2f0 (diff)
drm/amdgpu/atomfirmware: fix parsing of vram_info
From Alex Deucher 01f58871af9c2cffcb57b77336994e6bfe37c1f0 in linux-6.6.y/6.6.37 f6f49dda49db72e7a0b4ca32c77391d5ff5ce232 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
index 23651a9738c..6521d06c7e4 100644
--- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
+++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_atomfirmware.c
@@ -399,7 +399,7 @@ amdgpu_atomfirmware_get_vram_info(struct amdgpu_device *adev,
mem_channel_number = vram_info->v30.channel_num;
mem_channel_width = vram_info->v30.channel_width;
if (vram_width)
- *vram_width = mem_channel_number * (1 << mem_channel_width);
+ *vram_width = mem_channel_number * 16;
break;
default:
return -EINVAL;