Exynos850 GPU support
Subsystems (5)
v4 cover Exynos850 GPU support
This patch series documents and provides basic GPU support for the Exynos850 SoC, making use of the Mali G52 GPU through the panfrost driver. Only basic support is provided here and as such lots of features are missing. This series only adds the GPU node for the Exynos850 SoC dtsi, but keeps it disabled, so it stays disabled currently on E850-96 board (The only user of the Exynos850 SoC dtsi upstream).
Thomas Turner (2):
dt-bindings: gpu: arm,mali-bifrost: add exynos850-mali compatible
arm64: dts: exynos: Add GPU/Mali Bifrost node to Exynos850
.../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 + arch/arm64/boot/dts/exynos/exynos850.dtsi | 13 +++++++++++++ 2 files changed, 14 insertions(+)
Signature · 1 line
2.47.3
PATCH v4 1/2 dt-bindings: gpu: arm,mali-bifrost: add exynos850-mali compatible
Exynos850 SoC uses the ARM Mali G52 GPU, document its compatible string with the appropriate fallback.
---
Changes in v4:
- no changes
Changes in v3:
- Add Acked-by tag
Changes in v2:
- Introduce this patch
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +1 -0
@@ -34,6 +34,7 @@ properties: - rockchip,rk3562-mali - rockchip,rk3568-mali - rockchip,rk3576-mali + - samsung,exynos850-mali - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable - items: - enum:
Signature · 1 line
2.47.3
PATCH v4 2/2 arm64: dts: exynos: Add GPU/Mali Bifrost node to Exynos850
In reply to Thomas TurnerAdd nodes for GPU (Mali Bifrost) to Exynos850. Does not provide support for temperature throttling, DVFS, power domains, governor support, boosting and voltage control. Once PMIC is properly implemented, support will hopefully increase. However, the panfrost driver probes, the Mali-G52 GPU initializes and the core clock is set-up.
Testing for this patch was done on a device not currently supported by linux, the Galaxy A21s. After enabling this node for that device locally, I was able to test and confirm basic GPU functionality. As of now, this patch has no users which have tested GPU capabilities and so the node has been set to "disabled".
Here are some logs I pulled:
panfrost 11500000.gpu: clock rate = 377000000
panfrost 11500000.gpu: mali-g52 id 0x7212 major 0x0 minor 0x0 status 0x0
panfrost 11500000.gpu: features: 00000000,00000df7, issues: 00000000,00000400
panfrost 11500000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 panfrost 11500000.gpu: shader_present=0x1 l2_present=0x1
panfrost 11500000.gpu: [drm] Using Transparent Hugepage
[drm] Initialized panfrost 1.6.0 for 11500000.gpu on minor 0
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: Mali-G52 MC1 (Panfrost) OpenGL core profile version: 3.1 (Core Profile) Mesa 26.1.6 OpenGL core profile shading language version: 1.40
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: Mali-G52 MC1 (Panfrost) OpenGL compatibility profile version: 3.1 (Core Profile) Mesa 26.1.6 OpenGL compatibility profile shading language version: 1.40 OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: Mali-G52 MC1 (Panfrost) OpenGL ES profile version: OpenGL ES 3.1 Mesa 26.1.6 OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.10
---
Changes in v4:
- Add Reviewed-and-tested-by tag
Changes in v3:
- Re-word commit message to be less ambiguous
- Provide some logs in the commit message
- Add a blank line before status property
Changes in v2:
- Add a patch addressing the samsung,exynos850-mali compatible string
arch/arm64/boot/dts/exynos/exynos850.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm64/boot/dts/exynos/exynos850.dtsi +13 -0
@@ -310,6 +310,19 @@ cmu_g3d: clock-controller@11400000 { clock-names = "oscclk", "dout_g3d_switch"; }; + gpu: gpu@11500000 { + compatible = "samsung,exynos850-mali", "arm,mali-bifrost"; + reg = <0x11500000 0x5000>; + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&cmu_g3d CLK_GOUT_G3D_GPU_CLK>; + clock-names = "core"; + + status = "disabled"; + }; + cmu_apm: clock-controller@11800000 { compatible = "samsung,exynos850-cmu-apm"; reg = <0x11800000 0x8000>;
Signature · 1 line
2.47.3
Sam Protsenko
maintainerRe: [PATCH v4 2/2] arm64: dts: exynos: Add GPU/Mali Bifrost node to Exynos850
Quoted 36 lines · Thomas Turner
Add nodes for GPU (Mali Bifrost) to Exynos850. Does not provide support for temperature throttling, DVFS, power domains, governor support, boosting and voltage control. Once PMIC is properly implemented, support will hopefully increase. However, the panfrost driver probes, the Mali-G52 GPU initializes and the core clock is set-up.
Testing for this patch was done on a device not currently supported by linux, the Galaxy A21s. After enabling this node for that device locally, I was able to test and confirm basic GPU functionality. As of now, this patch has no users which have tested GPU capabilities and so the node has been set to "disabled".
Here are some logs I pulled:
panfrost 11500000.gpu: clock rate = 377000000
panfrost 11500000.gpu: mali-g52 id0x7212major0x0minor0x0status0x0
panfrost 11500000.gpu: features: 00000000,00000df7, issues: 00000000,00000400
panfrost 11500000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 panfrost 11500000.gpu: shader_present=0x1 l2_present=0x1
panfrost 11500000.gpu: [drm] Using Transparent Hugepage
[drm] Initialized panfrost 1.6.0 for 11500000.gpu on minor 0OpenGL core profile vendor: Mesa
OpenGL core profile renderer: Mali-G52 MC1 (Panfrost) OpenGL core profile version: 3.1 (Core Profile) Mesa 26.1.6 OpenGL core profile shading language version: 1.40
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: Mali-G52 MC1 (Panfrost) OpenGL compatibility profile version: 3.1 (Core Profile) Mesa 26.1.6 OpenGL compatibility profile shading language version: 1.40 OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: Mali-G52 MC1 (Panfrost) OpenGL ES profile version: OpenGL ES 3.1 Mesa 26.1.6 OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.10
Quoted 6 lines
Signed-off-by Thomas Turner <[email protected]>Reviewed-and-tested-by Alexey Klimov <[email protected]>---
Changes in v4:
- Add Reviewed-and-tested-by tag
If adding the tags is the only change in v4 patch series, there was no need to submit v4. When maintainers apply your patches they collect all tags from the latest patch version themselves. So you only need to collect the tags from the previous version review if you want to submit the next version for some actual reasons (not just for merely collecting the tags). Sorry if I forgot to explain it clearly.
Quoted 38 lines
Changes in v3:
- Re-word commit message to be less ambiguous
- Provide some logs in the commit message
- Add a blank line before status propertyChanges in v2:
- Add a patch addressing the samsung,exynos850-mali compatible stringarch/arm64/boot/dts/exynos/exynos850.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+)arch/arm64/boot/dts/exynos/exynos850.dtsi +13
-1@@ -310,6 +310,19 @@ cmu_g3d: clock-controller@11400000 { clock-names = "oscclk", "dout_g3d_switch"; }; + gpu: gpu@11500000 { + compatible = "samsung,exynos850-mali", "arm,mali-bifrost"; + reg = <0x11500000 0x5000>; + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&cmu_g3d CLK_GOUT_G3D_GPU_CLK>; + clock-names = "core"; + + status = "disabled"; + }; + cmu_apm: clock-controller@11800000 { compatible = "samsung,exynos850-cmu-apm"; reg = <0x11800000 0x8000>; --2.47.3
Quoted 8 lines · Thomas Turner
This patch series documents and provides basic GPU support for the Exynos850 SoC, making use of the Mali G52 GPU through the panfrost driver. Only basic support is provided here and as such lots of features are missing. This series only adds the GPU node for the Exynos850 SoC dtsi, but keeps it disabled, so it stays disabled currently on E850-96 board (The only user of the Exynos850 SoC dtsi upstream).
[...]
Applied, thanks!
[1/2] dt-bindings: gpu: arm,mali-bifrost: add exynos850-mali compatible
https://git.kernel.org/krzk/linux/c/5a881e2dfce03d6426d81beb35e68089a02aad89 [2/2] arm64: dts: exynos: Add GPU/Mali Bifrost node to Exynos850 https://git.kernel.org/krzk/linux/c/3d7bf30480f3a34fe530213da9e5bd0aa406929d
Best regards,
Signature · 1 line
Krzysztof Kozlowski <[email protected]>