]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/pm/smu11: BACO is supported when it's in BACO state
authorGuchun Chen <guchun.chen@amd.com>
Tue, 22 Nov 2022 09:33:24 +0000 (17:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Nov 2022 16:03:35 +0000 (11:03 -0500)
commit6dca7efe6e522bf213c7dab691fa580d82f48f74
tree81342db782bc59b4df3fc364c0bcfc286e5e44d9
parent6d96ced7600e02ac1efb03a21af529fd9a95e3c6
drm/amd/pm/smu11: BACO is supported when it's in BACO state

Return true early if ASIC is in BACO state already, no need
to talk to SMU. It can fix the issue that driver was not
calling BACO exit at all in runtime pm resume, and a timing
issue leading to a PCI AER error happened eventually.

Fixes: 8795e182b02d ("PCI/portdrv: Don't disable AER reporting in get_port_device_capability()")
Suggested-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c