]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd: Avoid ASSERT for some message failures
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 11 Jan 2023 21:52:31 +0000 (15:52 -0600)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:47:12 +0000 (16:47 +0100)
commitab0d4a076e303005487712412b2b8e15943d289a
tree9dc8f9183441ceaba84c8c6a5465b76b44326a06
parent6fbf8a0fa4b26e40f1fcaa4c87c2de1d625a08d7
drm/amd: Avoid ASSERT for some message failures

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 3e5019ee67760cd61b2a5fd605e1289c2f92d983 ]

On DCN314 when resuming from s0i3 an ASSERT is shown indicating that
`VBIOSSMC_MSG_SetHardMinDcfclkByFreq` returned `VBIOSSMC_Result_Failed`.

This isn't a driver bug; it's a BIOS/configuration bug. To make this
easier to triage, add an explicit warning when this issue happens.

This matches the behavior utilized for failures with
`VBIOSSMC_MSG_TransferTableDram2Smu` configuration.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/dcn314_smu.c