diff options
author | Mukul Joshi <mukul.joshi@amd.com> | 2023-06-09 17:11:53 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-07-07 19:51:47 +0200 |
commit | e77673d14f2cec6d47d2da4e58dce87c2d66e54f (patch) | |
tree | 3acede7626f29cb93a0e527bd8b10c8990b00384 /drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | |
parent | drm/amdgpu: return an error if query_video_caps is not set (diff) | |
download | linux-e77673d14f2cec6d47d2da4e58dce87c2d66e54f.tar.xz linux-e77673d14f2cec6d47d2da4e58dce87c2d66e54f.zip |
drm/amdgpu: Update invalid PTE flag setting
Update the invalid PTE flag setting with TF enabled.
This is to ensure, in addition to transitioning the
retry fault to a no-retry fault, it also causes the
wavefront to enter the trap handler. With the current
setting, the fault only transitions to a no-retry fault.
Additionally, have 2 sets of invalid PTE settings, one for
TF enabled, the other for TF disabled. The setting with
TF disabled, doesn't work with TF enabled.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c index 85dead2a5702..581ed922dbe3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c @@ -1056,6 +1056,7 @@ static int gmc_v8_0_early_init(void *handle) adev->gmc.shared_aperture_end + 1; adev->gmc.private_aperture_end = adev->gmc.private_aperture_start + (4ULL << 30) - 1; + adev->gmc.noretry_flags = AMDGPU_VM_NORETRY_FLAGS_TF; return 0; } |