drm/amdgpu: Add Runtime Bad Page message definitions for VFs
authorEllen Pan <yunru.pan@amd.com>
Tue, 29 Apr 2025 20:22:53 +0000 (16:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 May 2025 21:41:43 +0000 (17:41 -0400)
commit6615f1ad34d379c3ddb67f924702bbbcc602507b
tree603ac936756a52ea3186639aa31fb893a60a1663
parentdd3d035a78384f7389020810ac2882de50efe934
drm/amdgpu: Add Runtime Bad Page message definitions for VFs

Currently VFs rely on poison consumption interrupt from HW
to kick off the bad page retirement process. Part of this process
includes a VF reset.

This patch adds the following:

1) Host Bad Pages notification message.
2) Guest request bad pages message.

When combined, VFs are able to reserve the pages early, and potentially
avoid future poison consumption that will disrupt user services
from consequent FLR.

Reviewed-by: Shravan Kumar Gande <Shravankumar.Gande@amd.com>
Signed-off-by: Victor Skvortsov <victor.skvortsov@amd.com>
Signed-off-by: Ellen Pan <yunru.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h