diff options
| author | Jay Cornwall <[email protected]> | 2023-07-12 20:53:44 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-07 21:14:06 +0000 |
| commit | 96c211f1f9ef82183493f4ceed4e347b52849149 (patch) | |
| tree | 06597017c50a6e26b8c72e80bbf27bdeb8562cae /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdkfd: Sync trap handler binaries with source (diff) | |
| download | kernel-96c211f1f9ef82183493f4ceed4e347b52849149.tar.gz kernel-96c211f1f9ef82183493f4ceed4e347b52849149.zip | |
drm/amdkfd: Relocate TBA/TMA to opposite side of VM hole
The TBA and TMA, along with an unused IB allocation, reside at low
addresses in the VM address space. A stray VM fault which hits these
pages must be serviced by making their page table entries invalid.
The scheduler depends upon these pages being resident and fails,
preventing a debugger from inspecting the failure state.
By relocating these pages above 47 bits in the VM address space they
can only be reached when bits [63:48] are set to 1. This makes it much
less likely for a misbehaving program to generate accesses to them.
The current placement at VA (PAGE_SIZE*2) is readily hit by a NULL
access with a small offset.
Signed-off-by: Jay Cornwall <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
