mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/amdgpu: add recent pagefault info in vm_manager
Currently page fault information is stored per vm and which could be freed or stale during reset. Add it pagefault information in the vm_manager which is a global space for vm's and remains valid across. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
bd1c92a162
commit
dc406d92a0
@@ -2924,6 +2924,14 @@ void amdgpu_vm_update_fault_cache(struct amdgpu_device *adev,
|
||||
if (vm && status) {
|
||||
vm->fault_info.addr = addr;
|
||||
vm->fault_info.status = status;
|
||||
/*
|
||||
* Update the fault information globally for later usage
|
||||
* when vm could be stale or freed.
|
||||
*/
|
||||
adev->vm_manager.fault_info.addr = addr;
|
||||
adev->vm_manager.fault_info.vmhub = vmhub;
|
||||
adev->vm_manager.fault_info.status = status;
|
||||
|
||||
if (AMDGPU_IS_GFXHUB(vmhub)) {
|
||||
vm->fault_info.vmhub = AMDGPU_VMHUB_TYPE_GFX;
|
||||
vm->fault_info.vmhub |=
|
||||
|
||||
Reference in New Issue
Block a user