drm/amdgpu: Apply noretry setting for mmhub9.4
Subsystems (2)
PATCH 1/1 drm/amdgpu: Apply noretry setting for mmhub9.4
Config the translation retry behavior according to noretry kernel parameter
--- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +3 -2
@@ -314,7 +314,8 @@ static void mmhub_v9_4_setup_vmid_config(struct amdgpu_device *adev, int hubid) adev->vm_manager.block_size - 9);/* Send no-retry XNACK on fault to suppress VM fault storm. */ tmp =REG_SET_FIELD (tmp,VML2VC0_VM_CONTEXT1_CNTL , -RETRY_PERMISSION_OR_INVALID_PAGE_FAULT ,0 ); +RETRY_PERMISSION_OR_INVALID_PAGE_FAULT , + !amdgpu_noretry);WREG32_SOC15_OFFSET (MMHUB ,0 , mmVML2VC0_VM_CONTEXT1_CNTL, hubid *MMHUB_INSTANCE_REGISTER_OFFSET + i, tmp);
@@ -905,4 +906,4 @@ static void mmhub_v9_4_query_ras_error_count(struct amdgpu_device *adev,const struct amdgpu_mmhub_funcs mmhub_v9_4_funcs = { .ras_late_init = amdgpu_mmhub_ras_late_init, .query_ras_error_count = mmhub_v9_4_query_ras_error_count, -}; +};
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): 1574463347-27961-1-git-send-email-Oak.Zeng-5C7GfCeVMHo@public.gmane.org
Felix Kuehling
Reviewed-byQuoted 6 lines · Oak Zeng
Config the translation retry behavior according to noretry kernel parameter
Change-Id I5b91ea77715137cf8cb84e258ccdfbb19c7a4ed1Signed-off-by Oak Zeng <[email protected]>Suggested-by Jay Cornwall <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +2
-1@@ -314,7 +314,8 @@ static void mmhub_v9_4_setup_vmid_config(struct amdgpu_device *adev, int hubid) adev->vm_manager.block_size - 9);/* Send no-retry XNACK on fault to suppress VM fault storm. */ tmp =REG_SET_FIELD (tmp,VML2VC0_VM_CONTEXT1_CNTL , -RETRY_PERMISSION_OR_INVALID_PAGE_FAULT ,0 ); +RETRY_PERMISSION_OR_INVALID_PAGE_FAULT , + !amdgpu_noretry);WREG32_SOC15_OFFSET (MMHUB ,0 , mmVML2VC0_VM_CONTEXT1_CNTL, hubid *MMHUB_INSTANCE_REGISTER_OFFSET + i, tmp);
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_query_ras_error_count(struct amdgpu_device *adev, · line 909
Quoted 6 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +1
-1@@ -905,4 +906,4 @@ static void mmhub_v9_4_query_ras_error_count(struct amdgpu_device *adev,const struct amdgpu_mmhub_funcs mmhub_v9_4_funcs = { .ras_late_init = amdgpu_mmhub_ras_late_init, .query_ras_error_count = mmhub_v9_4_query_ras_error_count, -}; +};
_______________________________________________
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): 68bce28c-6b9d-8626-b2e0-09d6f4b3bb05-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 23.11.19 um 00:21 schrieb Felix Kuehling:
Quoted 9 lines · Oak Zeng
Quoted 6 lines
Config the translation retry behavior according to noretry kernel parameter
Change-Id I5b91ea77715137cf8cb84e258ccdfbb19c7a4ed1Signed-off-by Oak Zeng <[email protected]>Suggested-by Jay Cornwall <[email protected]>Reviewed-by Felix Kuehling <[email protected]>
Quoted 25 lines
Quoted 25 lines
---
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c| 5 +++--1 file changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +2
-1@@ -314,7 +314,8 @@ static void mmhub_v9_4_setup_vmid_config(struct amdgpu_device *adev, int hubid) adev->vm_manager.block_size - 9); /* Send no-retry XNACK on fault to suppress VM fault storm. */ tmp = REG_SET_FIELD(tmp, VML2VC0_VM_CONTEXT1_CNTL, - RETRY_PERMISSION_OR_INVALID_PAGE_FAULT, 0); + RETRY_PERMISSION_OR_INVALID_PAGE_FAULT, + !amdgpu_noretry); WREG32_SOC15_OFFSET(MMHUB, 0, mmVML2VC0_VM_CONTEXT1_CNTL, hubid * MMHUB_INSTANCE_REGISTER_OFFSET + i,tmp);
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +0
-0@@ -905,4 +906,4 @@ static void mmhub_v9_4_query_ras_error_count(struct amdgpu_device *adev, const struct amdgpu_mmhub_funcs mmhub_v9_4_funcs = { .ras_late_init = amdgpu_mmhub_ras_late_init,
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c static void mmhub_v9_4_query_ras_error_count(struct amdgpu_device *adev, · line 909
Quoted 4 lines
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +1
-1.query_ras_error_count = mmhub_v9_4_query_ras_error_count, -}; +};_______________________________________________
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