Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577764 > unrolled thread
| Started by | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| First post | 2017-02-09 17:50 +0100 |
| Last post | 2017-02-09 17:50 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 5/8] ARM: sun8i: a33: Add shared display memory pool Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-02-09 17:50 +0100
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2017-02-09 17:50 +0100 |
| Subject | [PATCH 5/8] ARM: sun8i: a33: Add shared display memory pool |
| Message-ID | <t904W-5k-27@gated-at.bofh.it> |
The memory buffers might need to be allocated and shared from both the
scanout and the GPU.
Create a memory region reserved for their own usage so that each can
allocate from it, and get the informations on the region that is going to
be used (size and offset).
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/sun8i-a33.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index 5a9ba43ccb07..043b1b017276 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -97,6 +97,7 @@
de: display-engine {
compatible = "allwinner,sun8i-a33-display-engine";
allwinner,pipelines = <&fe0>;
+ memory-region = <&display_pool>;
status = "disabled";
};
@@ -104,6 +105,18 @@
reg = <0x40000000 0x80000000>;
};
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ display_pool: cma {
+ compatible = "shared-dma-pool";
+ size = <0x1000000>;
+ reusable;
+ };
+ };
+
soc@01c00000 {
tcon0: lcd-controller@01c0c000 {
compatible = "allwinner,sun8i-a33-tcon";
@@ -267,6 +280,10 @@
compatible = "allwinner,sun8i-a33-ccu";
};
+&mali {
+ memory-region = <&display_pool>;
+};
+
&pio {
compatible = "allwinner,sun8i-a33-pinctrl";
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
--
git-series 0.8.11
Back to top | Article view | linux.kernel
csiph-web