-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sunxi-6.13: Add all patches #7705
base: main
Are you sure you want to change the base?
Conversation
8553db8
to
8703800
Compare
8703800
to
096fbca
Compare
In order for the power domain to work, we need to add to the configuration: diff --git a/config/kernel/linux-sunxi64-edge.config b/config/kernel/linux-sunxi64-edge.config
index 4f347164..f35b0063 100644
--- a/config/kernel/linux-sunxi64-edge.config
+++ b/config/kernel/linux-sunxi64-edge.config
@@ -2383,6 +2383,7 @@ CONFIG_ARM_MHU_V2=m
CONFIG_SUN50I_IOMMU=y
CONFIG_ARM_SMMU=y
CONFIG_LITEX_SOC_CONTROLLER=m
+CONFIG_SUN50I_H6_PRCM_PPU=m
CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
CONFIG_DEVFREQ_GOV_PERFORMANCE=y
CONFIG_DEVFREQ_GOV_POWERSAVE=y |
At this stage, for GNOME, I get the following:
|
Interesting. XFCE? Gnome uses Mali / Lima / Panfrost by default. |
h616, h618 -> Panfrost There have been significant changes in the sound subsystem in the core. |
The same core works on a minimal image. leo@bananapim4berry:~$ dmesg | grep -E 'hdmi|gpu|drm|video'
[ 0.080362] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.080424] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000
[ 0.085564] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.085933] /soc/hdmi@6000000: Fixed dependency cycle(s) with /soc/tcon-top@6510000
[ 0.086102] /soc/tcon-top@6510000: Fixed dependency cycle(s) with /soc/hdmi@6000000
[ 0.088857] /soc/hdmi@6000000: Fixed dependency cycle(s) with /connector
[ 0.088940] /connector: Fixed dependency cycle(s) with /soc/hdmi@6000000
[ 1.595067] sun4i-drm display-engine: bound 1100000.mixer (ops 0xffff8000811bd460)
[ 1.605997] sun4i-drm display-engine: bound 6510000.tcon-top (ops 0xffff8000811c2200)
[ 1.608641] sun4i-drm display-engine: bound 6515000.lcd-controller (ops 0xffff8000811ba228)
[ 1.614824] sun8i-dw-hdmi 6000000.hdmi: Detected HDMI TX controller v2.12a with HDCP (DWC HDMI 2.0 TX PHY)
[ 1.620851] sun8i-dw-hdmi 6000000.hdmi: registered DesignWare HDMI I2C bus driver
[ 1.624642] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 1.628463] sun4i-drm display-engine: bound 6000000.hdmi (ops 0xffff8000811bc528)
[ 1.641245] [drm] Initialized sun4i-drm 1.0.0 for display-engine on minor 0
[ 3.489669] sun8i-dw-hdmi 6000000.hdmi: read_hpd result: 1
[ 3.739128] sun4i-drm display-engine: [drm] fb0: sun4i-drmdrmfb frame buffer device
[ 9.520055] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[ 10.638005] systemd[1]: modprobe@drm.service: Deactivated successfully.
[ 10.664101] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[ 12.875140] panfrost 1800000.gpu: clock rate = 432000000
[ 12.875184] panfrost 1800000.gpu: bus_clock rate = 200000000
[ 12.876200] panfrost 1800000.gpu: mali-g31 id 0x7093 major 0x0 minor 0x0 status 0x0
[ 12.876224] panfrost 1800000.gpu: features: 00000000,000027f7, issues: 00000000,00000400
[ 12.876235] panfrost 1800000.gpu: Features: L2:0x07100206 Shader:0x00000000 Tiler:0x00000209 Mem:0x1 MMU:0x00002821 AS:0xff JS:0x7
[ 12.876247] panfrost 1800000.gpu: shader_present=0x1 l2_present=0x1
[ 12.882720] [drm] Initialized panfrost 1.3.0 for 1800000.gpu on minor 1
[ 13.014349] videodev: Linux video capture interface: v2.00
[ 13.610654] cedrus 1c0e000.video-codec: Device registered as /dev/video0
[ 44.620794] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin
[ 45.514342] sun8i-dw-hdmi 6000000.hdmi: EVENT=plugin The sound is not used, so there is no panic. |
May be useful. Reparent GPU clock during frequency changes ASoC: add Allwinner H616 audio codec support |
Oh my God! Patrick, you're on time as always. |
As an aside, I would like to recommend we adjust the thermal zone in the
We can then create the needed overlays for such. sunxi-h618-bananapi-m4-pwm1-fan.dtso
sunxi-h618-bananapi-m4-pwm2-fan.dtso
The overlays are still a WIP as the thermals don't seem to trip exactly when you think they should. I have two diff M4-Zeros, a 2GB and 4GB and both seem to trip the fan at diff times. One at 55*C and the other slightly higher. But they both have diff heatsink arrangements, so this could be why. Either way, I think it might be a good inclusion at some point, unless someone disagrees? The Zeros get really hot when doing anything that involves a HEAD, which is why I started messing with the idea. |
Perhaps the reason may be that we cannot correctly configure the internal blocks of the chip (frequency, supply voltage). |
Disable the patch that negatively affects the h616 platform. Turn on the GPU for bananapi-m4-berry at the same time.
When starting a GPU with a power domain, it is necessary to additionally control the switching on and off of the clock in the GPU driver.
…totype" This reverts commit 096fbca.
soc: Fix error: incompatible pointer type soc: Fix warning: no previous prototype
bd71cca
to
5beafb2
Compare
@igorpecovnik I will test XFCE tomorrow. |
@chraac Unfortunately, I was unable to adapt the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge at will.
I checked it out. The sound on the BPI-m4-berry does not work.
I used the user manual for the h616, but apparently there are differences for the h618. |
On my BPI-m4-berry, the temperature does not rise above 45C when running on GNOME, XFCE. |
Description
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.