]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: disable DCN and VCN for Navi14 0x7340/C9 SKU
authorFlora Cui <flora.cui@amd.com>
Tue, 27 Oct 2020 06:58:19 +0000 (14:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 04:57:03 +0000 (00:57 -0400)
Navi14 0x7340/C9 SKU has no display and video support, remove them.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/nv.c

index b7fc9ebdf1c15a0d3966b4058d899fe261d56c89..23446aceea1d5b24be42a2d98a775277aa431338 100644 (file)
@@ -495,8 +495,9 @@ void nv_set_virt_ops(struct amdgpu_device *adev)
 
 static bool nv_is_blockchain_sku(struct pci_dev *pdev)
 {
-       if (pdev->device == 0x731E &&
-           (pdev->revision == 0xC6 || pdev->revision == 0xC7))
+       if ((pdev->device == 0x731E &&
+           (pdev->revision == 0xC6 || pdev->revision == 0xC7)) ||
+           (pdev->device == 0x7340 && pdev->revision == 0xC9))
                return true;
        return false;
 }