We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fa787 commit 2d73b08Copy full SHA for 2d73b08
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@ -752,6 +752,18 @@ static int gmc_v11_0_sw_init(struct amdgpu_ip_block *ip_block)
752
adev->gmc.vram_type = vram_type;
753
adev->gmc.vram_vendor = vram_vendor;
754
755
+ /* The mall_size is already calculated as mall_size_per_umc * num_umc.
756
+ * However, for gfx1151, which features a 2-to-1 UMC mapping,
757
+ * the result must be multiplied by 2 to determine the actual mall size.
758
+ */
759
+ switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
760
+ case IP_VERSION(11, 5, 1):
761
+ adev->gmc.mall_size *= 2;
762
+ break;
763
+ default:
764
765
+ }
766
+
767
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
768
case IP_VERSION(11, 0, 0):
769
case IP_VERSION(11, 0, 1):
0 commit comments