sunxi64: Fix dram frequency scaling to mitigate slow network issue
This commit is contained in:
parent
ebc1f3d57b
commit
375937ea1a
@ -0,0 +1,27 @@
|
||||
From 6a1c3a22addf1367b76ff1e43d4428f19d88faf7 Mon Sep 17 00:00:00 2001
|
||||
From: Gunjan Gupta <viraniac@gmail.com>
|
||||
Date: Tue, 5 Sep 2023 11:16:07 +0000
|
||||
Subject: [PATCH] drivers: devfreq: sun8i-a33-mbus: disable autorefresh
|
||||
|
||||
---
|
||||
drivers/devfreq/sun8i-a33-mbus.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/devfreq/sun8i-a33-mbus.c b/drivers/devfreq/sun8i-a33-mbus.c
|
||||
index 13d32213139f..81832c3ffafa 100644
|
||||
--- a/drivers/devfreq/sun8i-a33-mbus.c
|
||||
+++ b/drivers/devfreq/sun8i-a33-mbus.c
|
||||
@@ -202,8 +202,8 @@ static int sun8i_a33_mbus_set_dram_freq(struct sun8i_a33_mbus *priv,
|
||||
writel_relaxed(vtfcr, priv->reg_dram + DRAM_VTFCR);
|
||||
|
||||
/* Enable automatic self-refresh at the lowest frequency only. */
|
||||
- if (freq == priv->freq_table[0])
|
||||
- pwrctl |= DRAM_PWRCTL_SELFREF_EN;
|
||||
+ // if (freq == priv->freq_table[0])
|
||||
+ // pwrctl |= DRAM_PWRCTL_SELFREF_EN;
|
||||
writel_relaxed(pwrctl, priv->reg_dram + DRAM_PWRCTL);
|
||||
|
||||
sun8i_a33_mbus_restart_pmu_counters(priv);
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@ -180,3 +180,4 @@
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch
|
||||
patches.armbian/drivers-devfreq-sun8i-a33-mbus-disable-autorefresh.patch
|
||||
|
||||
@ -584,3 +584,4 @@
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-Add-missing-GPU-trip-point.patch
|
||||
patches.armbian/drivers-devfreq-sun8i-a33-mbus-disable-autorefresh.patch
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
From 6a1c3a22addf1367b76ff1e43d4428f19d88faf7 Mon Sep 17 00:00:00 2001
|
||||
From: Gunjan Gupta <viraniac@gmail.com>
|
||||
Date: Tue, 5 Sep 2023 11:16:07 +0000
|
||||
Subject: [PATCH] drivers: devfreq: sun8i-a33-mbus: disable autorefresh
|
||||
|
||||
---
|
||||
drivers/devfreq/sun8i-a33-mbus.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/devfreq/sun8i-a33-mbus.c b/drivers/devfreq/sun8i-a33-mbus.c
|
||||
index 13d32213139f..81832c3ffafa 100644
|
||||
--- a/drivers/devfreq/sun8i-a33-mbus.c
|
||||
+++ b/drivers/devfreq/sun8i-a33-mbus.c
|
||||
@@ -202,8 +202,8 @@ static int sun8i_a33_mbus_set_dram_freq(struct sun8i_a33_mbus *priv,
|
||||
writel_relaxed(vtfcr, priv->reg_dram + DRAM_VTFCR);
|
||||
|
||||
/* Enable automatic self-refresh at the lowest frequency only. */
|
||||
- if (freq == priv->freq_table[0])
|
||||
- pwrctl |= DRAM_PWRCTL_SELFREF_EN;
|
||||
+ // if (freq == priv->freq_table[0])
|
||||
+ // pwrctl |= DRAM_PWRCTL_SELFREF_EN;
|
||||
writel_relaxed(pwrctl, priv->reg_dram + DRAM_PWRCTL);
|
||||
|
||||
sun8i_a33_mbus_restart_pmu_counters(priv);
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@ -184,3 +184,4 @@
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
patches.armbian/arm-dts-sunxi-h3-h5-add_tve.patch
|
||||
patches.armbian/drivers-devfreq-sun8i-a33-mbus-disable-autorefresh.patch
|
||||
|
||||
@ -662,3 +662,4 @@
|
||||
patches.armbian/arm-dts-sun8i-h3-reduce-opp-microvolt-to-prevent-not.patch
|
||||
patches.armbian/arm64-dts-sun50i-h5-enable-power-button-for-orangepi-prime.patch
|
||||
patches.armbian/arm-dts-sunxi-h3-h5-add_tve.patch
|
||||
patches.armbian/drivers-devfreq-sun8i-a33-mbus-disable-autorefresh.patch
|
||||
|
||||
Loading…
Reference in New Issue
Block a user