mirror of
https://github.com/armbian/build.git
synced 2026-09-08 23:59:54 +08:00
- rewritten/attribution preserved - rewrite .config with new t2 stuff +recover SOUND/SND/SND_SOC
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Atharva Tiwari <atharvatiwarilinuxdev@gmail.com>
|
|
Date: Thu, 9 Jul 2026 14:15:04 -0400
|
|
Subject: drm/amd/pm: Fix boot problems in 5300
|
|
|
|
This fixes the error:
|
|
"SMU: I'm not done with your previous command" on 5300.
|
|
|
|
This is not upstreamable.
|
|
We currently don't know how macOS derives these values,
|
|
so we only know the hardcoded values provided by ioreg.
|
|
|
|
Signed-off-by: Atharva Tiwari <atharvatiwarilinuxdev@gmail.com>
|
|
---
|
|
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 16 ++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
|
|
index 111111111111..222222222222 100644
|
|
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
|
|
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
|
|
@@ -674,6 +674,22 @@ int smu_v11_0_set_allowed_mask(struct smu_context *smu)
|
|
int ret = 0;
|
|
uint32_t feature_mask[2];
|
|
|
|
+ if (smu->adev->pdev->vendor == 0x1002 && smu->adev->pdev->device == 0x7340 &&
|
|
+ smu->adev->pdev->subsystem_vendor == 0x106B &&
|
|
+ smu->adev->pdev->subsystem_device == 0x0219) {
|
|
+ ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetAllowedFeaturesMaskLow,
|
|
+ 0xABC9AFBB, NULL);
|
|
+ if (ret)
|
|
+ goto failed;
|
|
+
|
|
+ ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_SetAllowedFeaturesMaskHigh,
|
|
+ 0xFFFFFD42, NULL);
|
|
+ if (ret)
|
|
+ goto failed;
|
|
+
|
|
+ return 0;
|
|
+ }
|
|
+
|
|
if (smu_feature_list_is_empty(smu, SMU_FEATURE_LIST_ALLOWED) ||
|
|
feature->feature_num < SMU_FEATURE_NUM_DEFAULT) {
|
|
ret = -EINVAL;
|
|
--
|
|
Armbian
|
|
|