]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/pm: Add special handling for RAS messages
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 21 Mar 2024 13:49:48 +0000 (19:19 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:13:50 +0000 (22:13 -0400)
commit301661b00a0582555d38c7ea0f94235729b00963
treecbe5d0f42ce088bd40a0e00b4fbf85bfdf776f27
parent7b8081ea67533628310bb23b84f887fca4319a86
drm/amd/pm: Add special handling for RAS messages

When a RAS fatal error is detected, PMFW will only process priority
messages. Other messages won't be taken up for processing and therefore
won't get any response in such a state.

Add logic to filter out non-priority messages when RAS error is
detected. Also, don't poll response response status register before
sending priority messages. Use firmware capability flag to determine
whether to filter priority messages.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c