From 6ac1e0e6207ea0884a90a1a33531673976b01be7 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Mon, 20 Jul 2026 20:33:07 -0700 Subject: [PATCH] sm8750: Prevent ACD clamp --- ...com-rpmhpd-no-max-clamp-on-gmu-rails.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/ROCKNIX/devices/SM8750/patches/linux/0052-pmdomain-qcom-rpmhpd-no-max-clamp-on-gmu-rails.patch diff --git a/projects/ROCKNIX/devices/SM8750/patches/linux/0052-pmdomain-qcom-rpmhpd-no-max-clamp-on-gmu-rails.patch b/projects/ROCKNIX/devices/SM8750/patches/linux/0052-pmdomain-qcom-rpmhpd-no-max-clamp-on-gmu-rails.patch new file mode 100644 index 0000000000..8b37f6fee7 --- /dev/null +++ b/projects/ROCKNIX/devices/SM8750/patches/linux/0052-pmdomain-qcom-rpmhpd-no-max-clamp-on-gmu-rails.patch @@ -0,0 +1,26 @@ +Subject: [PATCH] pmdomain: qcom: rpmhpd: don't clamp GMU-managed rails pre-sync_state + +Mark gfx/gmxc state_synced from boot so pre-sync votes use the real +lowest corner instead. These rails carry no bootloader state and +have no other consumers, so the clamp protects nothing on them. + +--- +diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c +--- a/drivers/pmdomain/qcom/rpmhpd.c ++++ b/drivers/pmdomain/qcom/rpmhpd.c +@@ -120,6 +120,7 @@ static struct rpmhpd gbx = { + static struct rpmhpd gfx = { + .pd = { .name = "gfx", }, + .res_name = "gfx.lvl", ++ .state_synced = true, + }; + + static struct rpmhpd lcx = { +@@ -225,6 +226,7 @@ static struct rpmhpd qphy = { + static struct rpmhpd gmxc = { + .pd = { .name = "gmxc", }, + .res_name = "gmxc.lvl", ++ .state_synced = true, + }; + + /* Eliza RPMH powerdomains */