⬢ DragonFlyBSD Kernel Audit
DF-3599 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/drm/amd/amdgpu/gfx_v8_0.c
+++ b/sys/dev/drm/amd/amdgpu/gfx_v8_0.c
@@ -1306,7 +1306,7 @@
 	u32 bo_offset = 0;
 	u32 table_offset, table_size;
 
-	if (adev->asic_type == CHIP_CARRIZO)
+	if (adev->asic_type == CHIP_CARRIZO && adev->gfx.mec2_fw)
 		max_me = 5;
 
 	/* write the cp table buffer */