From da27f5db79bf4b6d1b657a76b3308422543e2ff5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <99822064+revonateB0T@users.noreply.github.com> Date: Tue, 31 Mar 2026 23:55:13 +0800 Subject: [PATCH] fix: add phoenix to manual preformance level quirks (#948) * Add phoneix to manual preformance level quirks * chore: run cargo fmt --- lact-daemon/src/server/gpu_controller/amd.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lact-daemon/src/server/gpu_controller/amd.rs b/lact-daemon/src/server/gpu_controller/amd.rs index 47682c97..5450778e 100644 --- a/lact-daemon/src/server/gpu_controller/amd.rs +++ b/lact-daemon/src/server/gpu_controller/amd.rs @@ -51,7 +51,7 @@ const AMDGPU_FAMILY_GC_11_0_0: u32 = 145; const FAN_CONTROL_RETRIES: u32 = 10; const MAX_PSTATE_READ_ATTEMPTS: u32 = 5; -const STEAM_DECK_IDS: [&str; 2] = ["163F", "1435"]; +const REQUIRE_MANUAL_DEVICE_IDS: [&str; 3] = ["163F", "1435", "15BF"]; const AMDGPU_IDS_FLAGS_FUSION: u64 = 0x1; const HSA_CACHE_TYPE_DATA: u32 = 0x0000_0001; const HSA_CACHE_TYPE_INSTRUCTION: u32 = 0x0000_0002; @@ -671,9 +671,10 @@ impl AmdGpuController { None } - fn is_steam_deck(&self) -> bool { + fn apply_clocks_config_require_manual_proformance_level(&self) -> bool { self.common.pci_info.device_pci_info.vendor_id == VENDOR_AMD - && STEAM_DECK_IDS.contains(&self.common.pci_info.device_pci_info.model_id.as_str()) + && REQUIRE_MANUAL_DEVICE_IDS + .contains(&self.common.pci_info.device_pci_info.model_id.as_str()) } #[cfg(not(test))] @@ -1104,7 +1105,7 @@ impl GpuController for AmdGpuController { .context("Failed to set power performance level")?; } - if self.is_steam_deck() { + if self.apply_clocks_config_require_manual_proformance_level() { // Van Gogh/Sephiroth only allow clock settings to be used with manual performance mode self.handle .set_power_force_performance_level(PerformanceLevel::Manual)