Skip to contentSkip to conversation

drm/amdkfd: Remove the requirement for atomic Ops on vg20

PATCH In review Kent Russell 3 participants 3 messages Sep 26, 2018 – Oct 1, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdkfd: Remove the requirement for atomic Ops on vg20

From: Shaoyun Liu <[email protected]>

Firmware have the workaround to replace the atomic Ops with read-modify-write on CP side. User should not expect atomic Ops on system memory works normally if system didn't not support it.

Change-Id I89395b099fe0931b9b3627651b512dde3149fadd
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
index b0c2afb..b505bf3 100644
@@ -263,7 +263,7 @@ static const struct kfd_device_info vega20_device_info = {
 	.mqd_size_aligned = MQD_SIZE_ALIGNED,
 	.supports_cwsr = true,
 	.needs_iommu_device = false,
-	.needs_pci_atomics = true,
+	.needs_pci_atomics = false,
 	.num_sdma_engines = 2,
 	.num_sdma_queues_per_engine = 8,
 };
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1537969312-1112-1-git-send-email-kent.russell-5C7GfCeVMHo@public.gmane.org

#2 lore raw

________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Kent Russell <[email protected]>
Sent: Wednesday, September 26, 2018 9:41:52 AM
To: [email protected]
Cc: Russell, Kent; Liu, Shaoyun
Subject: [PATCH] drm/amdkfd: Remove the requirement for atomic Ops on vg20

From: Shaoyun Liu <[email protected]>

Firmware have the workaround to replace the atomic Ops with read-modify-write on CP side. User should not expect atomic Ops on system memory works normally if system didn't not support it.

Change-Id I89395b099fe0931b9b3627651b512dde3149fadd
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
index b0c2afb..b505bf3 100644
@@ -263,7 +263,7 @@ static const struct kfd_device_info vega20_device_info = {
         .mqd_size_aligned = MQD_SIZE_ALIGNED,
         .supports_cwsr = true,
         .needs_iommu_device = false,
-       .needs_pci_atomics = true,
+       .needs_pci_atomics = false,
         .num_sdma_engines = 2,
         .num_sdma_queues_per_engine = 8,
 };

--
2.7.4

_______________________________________________
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

Reviewed-by
#3 lore raw
In reply to a message not in the archive
Quoted 9 lines · Kent Russell

From: Shaoyun Liu <[email protected]>

Firmware have the workaround to replace the atomic Ops with read-modify-write on CP side. User should not expect atomic Ops on system memory works normally if system didn't not support it.

Change-Id I89395b099fe0931b9b3627651b512dde3149fadd
Quoted 9 lines
---
 drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_device.c +0 -0
index b0c2afb..b505bf3 100644

drivers/gpu/drm/amd/amdkfd/kfd_device.c static const struct kfd_device_info vega20_device_info = { · line 269

Quoted 8 lines
drivers/gpu/drm/amd/amdkfd/kfd_device.c +1 -1
@@ -263,7 +263,7 @@ static const struct kfd_device_info vega20_device_info = {
 	.mqd_size_aligned = MQD_SIZE_ALIGNED,
 	.supports_cwsr = true,
 	.needs_iommu_device = false,
-	.needs_pci_atomics = true,
+	.needs_pci_atomics = false,
 	.num_sdma_engines = 2,
 	.num_sdma_queues_per_engine = 8,
 };

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx