]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/ras: Support high-frequency querying sriov ras block error count
authorYiPeng Chai <YiPeng.Chai@amd.com>
Thu, 30 Oct 2025 08:06:25 +0000 (16:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:33 +0000 (13:56 -0500)
commit11dcf72eb5c15c07332b3dc4ae921021f2fae426
treee450344e804c8406b81510b56fca075208dd1961
parentfcfa8dbb087ec05cebdf177217fd5a01383a762b
drm/amd/ras: Support high-frequency querying sriov ras block error count

Support high-frequency querying sriov ras block error count:
1. Create shared memory and fills it with RAS_CMD__GET_LAL_LOC_STATUS
   ras command.
2. The RAS_CMD_GET_ALL_BLOCK_ECC_STATUS command and shared
   memory are registered to sriov host ras auto-update list
   via RAS_CMD_SET_CMD_AUTO_UPDATE command.
3. Once sriov host detects ras error, it will automatically execute
   RAS_CMD__GET_ALL_BLOCK_ECC_STATUS command and write the result to
   shared memory.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.h
drivers/gpu/drm/amd/ras/rascore/ras_cmd.h