drm/amdgpu/gmc6: use amdgpu_asic_flush_hdp for gart tlb invalidations
Subsystems (2)
PATCH 1/4 drm/amdgpu/gmc6: use amdgpu_asic_flush_hdp for gart tlb invalidations
Use the callback rather than open coding it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +1 -1
@@ -359,7 +359,7 @@ static int gmc_v6_0_mc_init(struct amdgpu_device *adev)static void gmc_v6_0_gart_flush_gpu_tlb (struct amdgpu_device *adev,uint32_t vmid) { -WREG32 (mmHDP_MEM_COHERENCY_FLUSH_CNTL,0 ); +amdgpu_asic_flush_hdp (adev);WREG32 (mmVM_INVALIDATE_REQUEST,1 << vmid); }
Signature · 6 lines
2.13.6 _______________________________________________ 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): 20180105043026.9348-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/4 drm/amdgpu/gmc7: use amdgpu_asic_flush_hdp for gart tlb invalidations
Use the callback rather than open coding it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +1 -1
@@ -432,7 +432,7 @@ static void gmc_v7_0_gart_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid) {/* flush hdp cache */ -WREG32 (mmHDP_MEM_COHERENCY_FLUSH_CNTL,0 ); +amdgpu_asic_flush_hdp (adev);/* bits 0-15 are the VM contexts0-15 */ WREG32 (mmVM_INVALIDATE_REQUEST,1 << vmid);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/4 drm/amdgpu/gmc8: use amdgpu_asic_flush_hdp for gart tlb invalidations
In reply to a message not in the archiveUse the callback rather than open coding it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +1 -1
@@ -607,7 +607,7 @@ static void gmc_v8_0_gart_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid) {/* flush hdp cache */ -WREG32 (mmHDP_MEM_COHERENCY_FLUSH_CNTL,0 ); +amdgpu_asic_flush_hdp (adev);/* bits 0-15 are the VM contexts0-15 */ WREG32 (mmVM_INVALIDATE_REQUEST,1 << vmid);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/4 drm/amdgpu/gmc9: use amdgpu_asic_flush_hdp for gart tlb invalidations
In reply to a message not in the archiveUse the callback rather than open coding it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
@@ -330,7 +330,7 @@ static void gmc_v9_0_gart_flush_gpu_tlb(struct amdgpu_device *adev,unsigned i, j;/* flush hdp cache */ - adev->nbio_funcs->hdp_flush (adev); +amdgpu_asic_flush_hdp (adev);spin_lock (&adev->mc.invalidate_lock);
Signature · 6 lines
2.13.6 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Am 05.01.2018 um 05:30 schrieb Alex Deucher:
Quoted 3 lines
Use the callback rather than open coding it.
Signed-off-by Alex Deucher <[email protected]>
I would rather prefer if the caller of flush_gpu_tlb calls amdgpu_asic_flush_hdp().
IIRC we have exactly one which calls this and the other one actually wants to call amdgpu_asic_flush_hdp() only.
Regards,
Christian.
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c static int gmc_v6_0_mc_init(struct amdgpu_device *adev) · line 365
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +1
-1@@ -359,7 +359,7 @@ static int gmc_v6_0_mc_init(struct amdgpu_device *adev)static void gmc_v6_0_gart_flush_gpu_tlb (struct amdgpu_device *adev,uint32_t vmid) { -WREG32 (mmHDP_MEM_COHERENCY_FLUSH_CNTL,0 ); +amdgpu_asic_flush_hdp (adev);WREG32 (mmVM_INVALIDATE_REQUEST,1 << vmid); }
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx