summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 13:09:01 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-02-24 13:09:01 +0000
commit4b0592904200b207f3f93f37f8d114b87d091c78 (patch)
treeea79e6622ec6130ca9c5dd92894e2251cd6b7318
parent78875a32676153bc7e85fd5fe1b8ac47f88978da (diff)
display/amd: decrease message verbosity about watermarks table failure
From Mario Limonciello 3fd92f5be6c48cce92c90ecf71719582645da888 in linux 5.15.y/5.15.25 03ad3093c7c069d6ab4403730009ebafeea9ee37 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c
index 2bfa13e3abe..0aa0c95b03e 100644
--- a/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c
+++ b/sys/dev/pci/drm/amd/display/dc/clk_mgr/dcn31/dcn31_smu.c
@@ -120,7 +120,11 @@ int dcn31_smu_send_msg_with_param(
result = dcn31_smu_wait_for_response(clk_mgr, 10, 200000);
if (result == VBIOSSMC_Result_Failed) {
- ASSERT(0);
+ if (msg_id == VBIOSSMC_MSG_TransferTableDram2Smu &&
+ param == TABLE_WATERMARKS)
+ DC_LOG_WARNING("Watermarks table not configured properly by SMU");
+ else
+ ASSERT(0);
REG_WRITE(MP1_SMN_C2PMSG_91, VBIOSSMC_Result_OK);
return -1;
}