Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1577766 > unrolled thread

[PATCH 0/8] ARM: sun8i: a33: Mali improvements

Started byMaxime Ripard <maxime.ripard@free-electrons.com>
First post2017-02-09 17:50 +0100
Last post2017-02-09 17:50 +0100
Articles 3 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/8] ARM: sun8i: a33: Mali improvements Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-09 17:50 +0100
    [PATCH 1/8] ARM: sun8i: Fix the mali clock rate Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-09 17:50 +0100
    [PATCH 7/8] ARM: sunxi: Select PM_OPP Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-09 17:50 +0100

#1577766 — [PATCH 0/8] ARM: sun8i: a33: Mali improvements

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-02-09 17:50 +0100
Subject[PATCH 0/8] ARM: sun8i: a33: Mali improvements
Message-ID<t904V-5k-7@gated-at.bofh.it>
Hi,

This serie is building on the recently merged bindings for the ARM Mali
Utgard GPU.

The two features that are supported with this serie are DVFS and the fbdev
support. The first one uses devfreq and is pretty standard, the only
addition being the generic OPP mechanism we have, plus some DT and Kconfig
patches.

Running on framebuffer is a bit more tedious, since we need to access the
CMA memory region size and base. This is quite trivial to do as well
through the memory-region bindings, but require to export a few symbols
along the way to make sure our module builds properly.

Let me know what you think,
Maxime

Maxime Ripard (8):
  ARM: sun8i: Fix the mali clock rate
  dt-bindings: gpu: mali: Add optional memory-region
  mm: cma: Export a few symbols
  drm/sun4i: Grab reserved memory region
  ARM: sun8i: a33: Add shared display memory pool
  dt-bindings: gpu: mali: Add optional OPPs
  ARM: sunxi: Select PM_OPP
  ARM: sun8i: a33: Add the Mali OPPs

 Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt |  8 ++-
 arch/arm/boot/dts/sun8i-a23-a33.dtsi                      |  2 +-
 arch/arm/boot/dts/sun8i-a33.dtsi                          | 34 ++++++++-
 arch/arm/mach-sunxi/Kconfig                               |  1 +-
 drivers/base/dma-contiguous.c                             |  1 +-
 drivers/gpu/drm/sun4i/sun4i_drv.c                         | 19 ++--
 mm/cma.c                                                  |  2 +-
 7 files changed, 61 insertions(+), 6 deletions(-)

base-commit: a2138ce584d59571dd18a6cf3417cb90be7625d8
-- 
git-series 0.8.11

[toc] | [next] | [standalone]


#1577767 — [PATCH 1/8] ARM: sun8i: Fix the mali clock rate

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-02-09 17:50 +0100
Subject[PATCH 1/8] ARM: sun8i: Fix the mali clock rate
Message-ID<t904X-5k-33@gated-at.bofh.it>
In reply to#1577766
The Mali clock rate was improperly assumed to be 408MHz, while it was
really 384Mhz, 408MHz being the "extreme" frequency, and definitely not
stable.

Switch for the stable, correct frequency for the GPU.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/boot/dts/sun8i-a23-a33.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/sun8i-a23-a33.dtsi b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
index 35008b78d899..8a880ecc4dda 100644
--- a/arch/arm/boot/dts/sun8i-a23-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a23-a33.dtsi
@@ -495,7 +495,7 @@
 			resets = <&ccu RST_BUS_GPU>;
 
 			assigned-clocks = <&ccu CLK_GPU>;
-			assigned-clock-rates = <408000000>;
+			assigned-clock-rates = <384000000>;
 		};
 
 		gic: interrupt-controller@01c81000 {
-- 
git-series 0.8.11

[toc] | [prev] | [next] | [standalone]


#1577775 — [PATCH 7/8] ARM: sunxi: Select PM_OPP

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-02-09 17:50 +0100
Subject[PATCH 7/8] ARM: sunxi: Select PM_OPP
Message-ID<t904X-5k-47@gated-at.bofh.it>
In reply to#1577766
Device frequency scaling is implemented through devfreq in the kernel,
which requires CONFIG_PM_OPP.

Let's select it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/mach-sunxi/Kconfig | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index b9863f9a35fa..58153cdf025b 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -6,6 +6,7 @@ menuconfig ARCH_SUNXI
 	select GENERIC_IRQ_CHIP
 	select GPIOLIB
 	select PINCTRL
+	select PM_OPP
 	select SUN4I_TIMER
 	select RESET_CONTROLLER
 
-- 
git-series 0.8.11

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web