drm/amdgpu: add DID for navi10 blockchain SKU
Subsystems (2)
PATCH 1/2 drm/amdgpu: add DID for navi10 blockchain SKU
From: "Tianci.Yin" <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -0
@@ -1066,6 +1066,7 @@ static const struct pci_device_id pciidlist[] = { {0x1002, 0x7319, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x731A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x731B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, + {0x1002, 0x731E, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10}, {0x1002, 0x731F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI10},/* Navi14 */ {0x1002, 0x7340, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_NAVI14},
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/2 drm/amdgpu: disable DCN and VCN for navi10 blockchain SKU(v3)
From: "Tianci.Yin" <[email protected]>
The blockchain SKU has no display and video support, remove them.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +12 -2
@@ -497,6 +497,14 @@ void nv_set_virt_ops(struct amdgpu_device *adev) adev->virt.ops = &xgpu_nv_virt_ops; } +bool nv_is_blockchain_sku (struct pci_dev *pdev) +{ +if (pdev->device ==0x731E && + (pdev->revision ==0xC6 || pdev->revision ==0xC7 )) +return true; +return false; +} +int nv_set_ip_blocks (struct amdgpu_device *adev) {int r;
@@ -530,7 +538,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);#if defined(CONFIG_DRM_AMD_DC ) - else if (amdgpu_device_has_dc_support(adev)) + else if (amdgpu_device_has_dc_support(adev) && + !nv_is_blockchain_sku(adev->pdev)) amdgpu_device_ip_block_add(adev, &dm_ip_block);#endif amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);
@@ -538,7 +547,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT && !amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block); +if (!nv_is_blockchain_sku (adev->pdev)) +amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block);amdgpu_device_ip_block_add (adev, &jpeg_v2_0_ip_block);if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block);
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 2/2] drm/amdgpu: disable DCN and VCN for navi10 blockchain SKU(v3)
Quoted 16 lines · Tianci Yin
From: "Tianci.Yin" <[email protected]>
The blockchain SKU has no display and video support, remove them.
Change-Id I419cfae8b00125f3bff18c0a8cd92f3266d5f04aSigned-off-by Tianci.Yin <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nv.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/nv.c +0
-0
drivers/gpu/drm/amd/amdgpu/nv.c void nv_set_virt_ops(struct amdgpu_device *adev) · line 500
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/nv.c +1
-0@@ -497,6 +497,14 @@ void nv_set_virt_ops(struct amdgpu_device *adev) adev->virt.ops = &xgpu_nv_virt_ops; } +bool nv_is_blockchain_sku (struct pci_dev *pdev)
This can be static. With that fixed, the series is:
Quoted 33 lines
drivers/gpu/drm/amd/amdgpu/nv.c +11
-3+{ +if (pdev->device ==0x731E && + (pdev->revision ==0xC6 || pdev->revision ==0xC7 )) +return true; +return false; +} +int nv_set_ip_blocks (struct amdgpu_device *adev) {int r;@@ -530,7 +538,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);#if defined(CONFIG_DRM_AMD_DC ) - else if (amdgpu_device_has_dc_support(adev)) + else if (amdgpu_device_has_dc_support(adev) && + !nv_is_blockchain_sku(adev->pdev))amdgpu_device_ip_block_add (adev, &dm_ip_block);#endif amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);@@ -538,7 +547,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT && !amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block); +if (!nv_is_blockchain_sku (adev->pdev)) +amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block);amdgpu_device_ip_block_add (adev, &jpeg_v2_0_ip_block);if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block); --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Yin, Tianci (Rico)
Reviewed-by Alex DeucherRe: [PATCH 2/2] drm/amdgpu: disable DCN and VCN for navi10 blockchain SKU(v3)
[AMD Official Use Only - Internal Distribution Only]
Thanks very much Alex!
________________________________
From: Alex Deucher <[email protected]>
Sent: Thursday, October 22, 2020 11:45
To: Yin, Tianci (Rico) <[email protected]>
Cc: amd-gfx list <[email protected]>; Long, Gang <[email protected]>; Chen, Guchun <[email protected]>; Xu, Feifei <[email protected]>; Tuikov, Luben <[email protected]>; Deucher, Alexander <[email protected]>; Cui, Flora <[email protected]>; Zhang, Hawking <[email protected]>
Subject: Re: [PATCH 2/2] drm/amdgpu: disable DCN and VCN for navi10 blockchain SKU(v3)
Quoted 16 lines · Tianci Yin
From: "Tianci.Yin" <[email protected]>
The blockchain SKU has no display and video support, remove them.
Change-Id I419cfae8b00125f3bff18c0a8cd92f3266d5f04aSigned-off-by Tianci.Yin <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nv.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/nv.c +0
-0
drivers/gpu/drm/amd/amdgpu/nv.c void nv_set_virt_ops(struct amdgpu_device *adev) · line 500
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/nv.c +1
-0@@ -497,6 +497,14 @@ void nv_set_virt_ops(struct amdgpu_device *adev) adev->virt.ops = &xgpu_nv_virt_ops; } +bool nv_is_blockchain_sku (struct pci_dev *pdev)
This can be static. With that fixed, the series is:
Quoted 33 lines
drivers/gpu/drm/amd/amdgpu/nv.c +11
-3+{ +if (pdev->device ==0x731E && + (pdev->revision ==0xC6 || pdev->revision ==0xC7 )) +return true; +return false; +} +int nv_set_ip_blocks (struct amdgpu_device *adev) {int r;@@ -530,7 +538,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);#if defined(CONFIG_DRM_AMD_DC ) - else if (amdgpu_device_has_dc_support(adev)) + else if (amdgpu_device_has_dc_support(adev) && + !nv_is_blockchain_sku(adev->pdev))amdgpu_device_ip_block_add (adev, &dm_ip_block);#endif amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);@@ -538,7 +547,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT && !amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block); +if (!nv_is_blockchain_sku (adev->pdev)) +amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block);amdgpu_device_ip_block_add (adev, &jpeg_v2_0_ip_block);if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block); --2.17.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Ctianci.yin%40amd.com%7C69a8d879c10a4a95df8408d8763d00da%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637389351668689049%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=BoBEgmT7npcabo5NhzjKxqeyErXx3CKFzK1HNHa8LWU%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 2/2] drm/amdgpu: disable DCN and VCN for navi10 blockchain SKU(v3)
In reply to Alex DeucherQuoted 23 lines · Alex Deucher
Quoted 16 lines · Tianci Yin
From: "Tianci.Yin" <[email protected]>
The blockchain SKU has no display and video support, remove them.
Change-Id I419cfae8b00125f3bff18c0a8cd92f3266d5f04aSigned-off-by Tianci.Yin <[email protected]>--- drivers/gpu/drm/amd/amdgpu/nv.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/nv.c +0
-0drivers/gpu/drm/amd/amdgpu/nv.c void nv_set_virt_ops(struct amdgpu_device *adev) · line 500
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/nv.c +1
-0@@ -497,6 +497,14 @@ void nv_set_virt_ops(struct amdgpu_device *adev) adev->virt.ops = &xgpu_nv_virt_ops; } +bool nv_is_blockchain_sku (struct pci_dev *pdev)This can be static. With that fixed, the series is:
Quoted 8 lines
Reviewed-by Alex Deucher <[email protected]>drivers/gpu/drm/amd/amdgpu/nv.c void nv_set_virt_ops(struct amdgpu_device *adev) · line 506
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/nv.c +6
-0+{ +if (pdev->device ==0x731E && + (pdev->revision ==0xC6 || pdev->revision ==0xC7 )) +return true; +return false; +}
Not only can this function be static, but this function can simply be
{
return pdev->device == 0x731E &&
(pdev->revision == 0xC6 || pdev->revision == 0xC7);
}:-)
Regards,
Luben
Quoted 27 lines
Quoted 27 lines
drivers/gpu/drm/amd/amdgpu/nv.c +5
-3+int nv_set_ip_blocks (struct amdgpu_device *adev) {int r;@@ -530,7 +538,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->enable_virtual_display ||amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &dce_virtual_ip_block);#if defined(CONFIG_DRM_AMD_DC ) - else if (amdgpu_device_has_dc_support(adev)) + else if (amdgpu_device_has_dc_support(adev) && + !nv_is_blockchain_sku(adev->pdev))amdgpu_device_ip_block_add (adev, &dm_ip_block);#endif amdgpu_device_ip_block_add (adev, &gfx_v10_0_ip_block);@@ -538,7 +547,8 @@ int nv_set_ip_blocks(struct amdgpu_device *adev)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_DIRECT && !amdgpu_sriov_vf (adev))amdgpu_device_ip_block_add (adev, &smu_v11_0_ip_block); -amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block); +if (!nv_is_blockchain_sku (adev->pdev)) +amdgpu_device_ip_block_add (adev, &vcn_v2_0_ip_block);amdgpu_device_ip_block_add (adev, &jpeg_v2_0_ip_block);if (adev->enable_mes)amdgpu_device_ip_block_add (adev, &mes_v10_1_ip_block); --2.17.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7CLuben.Tuikov%40amd.com%7C69a8d879c10a4a95df8408d8763d00da%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637389351678043728%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=rW2Fz1NGYDoUQ3TlHAXmoDC9zDhBrBmxMtKtrsK0Fhk%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx