Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/ras: Avoid ECC status update in hw_fini for VF unload

VF sends IDH_REQ_GPU_FINI_ACCESS before hw_fini during unload.
PF no longer accepts requests, so skip ECC status update to prevent
mailbox timeout.

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Ce Sun and committed by
Alex Deucher
505dcb8e b8939bd7

+2 -7
+2 -7
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c
··· 517 517 (struct amdgpu_virt_ras_cmd *)ras_mgr->virt_ras_cmd; 518 518 struct vram_blocks_ecc *blks_ecc = &virt_ras->blocks_ecc; 519 519 520 - if (blks_ecc->shared_mem.cpu_addr) { 521 - __set_cmd_auto_update(adev, 522 - RAS_CMD__GET_ALL_BLOCK_ECC_STATUS, 523 - blks_ecc->shared_mem.gpa, 524 - blks_ecc->shared_mem.size, false); 525 - 520 + if (blks_ecc->shared_mem.cpu_addr) 526 521 memset(blks_ecc->shared_mem.cpu_addr, 0, blks_ecc->shared_mem.size); 527 - } 522 + 528 523 memset(blks_ecc, 0, sizeof(*blks_ecc)); 529 524 530 525 return 0;