- mtk-mdp3: power the GCE around submissions
- patch 3/3 of Jason-JH Lin's GCE pm_runtime series (lore: 20250829091727.3745415-4-jason-jh.lin@mediatek.com)
- 1/3 is in mainline since v6.18 and removed pm_runtime from cmdq_mbox_send_data; without 3/3, MDP3 submits to an autosuspended GCE, the job never completes and the task hangs ("one frame then hang" in Kodi DirectToPlane)
- review fix (CodeRabbit), noted in the patch: GCE PM references of all pipes taken before the first submission; unsent packets drop theirs
- mtk-vcodec: guard an empty stateless capture queue (Kyrie Wu, Genio tree)
- fixes a NULL deref panic in vb2_buffer_done on AV1 SVC streams
- videobuf2 dma-contig: cache maintenance for non-coherent buffers in dma-buf CPU access (Christian Hewitt, as carried by LibreELEC)
- needed by FFmpeg's cached CAPTURE buffers, otherwise CPU reads (hwdownload, detile) see stale data
- tested on Radxa NIO-12L (MT8395 / Genio 1200):
- MDP3 MM21 to UYVY at ~210 fps 1080p; soak of 20 runs with idle gaps plus a 21,700-frame loop, no faults
- FFmpeg v4l2-request and GStreamer v4l2codecs conformance (H.264, HEVC, VP8, VP9, AV1), no panics
- Kodi playback on both EGL and DirectToPlane paths
Assisted-by: Claude:claude-opus-5-5
- 4785d5faa935 "PM: suspend: Do not call suspend_ops->begin()/end() for
s2idle" (Ovidiu Panait, Fixes: 7602c0ec0bbf which is in v7.3). On v7.3
every s2idle cycle on a PSCI platform runs through psci_system_suspend_begin()
and so pm_suspend_via_firmware() is true even though SYSTEM_SUSPEND is never
invoked for s2idle; drivers then take their "firmware cuts the power" paths.
The Orange Pi Zero2 (H616, PSCI, s2idle only) is exactly this case. Not in
linux-7.3.y as of 2026-11-01.
- 33392343c74e "PM: sleep: Add DPM watchdog to prepare/late/early/noirq/
complete phases" (Mayank Rungta). Code is compiled only with
CONFIG_DPM_WATCHDOG, so this is a no-op for the shipped config.
CONFIG_DPM_WATCHDOG is deliberately NOT enabled in linux-sunxi64-edge.config:
it panics the system when a device callback exceeds the timeout (default
120 s), which is a debugging aid, not production behaviour. For a test
kernel enable CONFIG_DPM_WATCHDOG=y (deps PM_DEBUG, PSTORE, EXPERT are
already =y) with e.g. CONFIG_DPM_WATCHDOG_TIMEOUT=60 and
CONFIG_DPM_WATCHDOG_WARNING_TIMEOUT=30 to get the hanging device named in
pstore/console instead of a silent wedge.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
Enable the AP6611S overlay for current 6.18 images.
Use UART Bluetooth and prevent btsdio autoload.
Keep vendor and edge images unchanged.
Driver operation requires a compatible bcmdhd-sdio-dkms release.
Signed-off-by: KingFalse <26541059+KingFalse@users.noreply.github.com>
The fan on CN2 is switched by a 2 kHz PWM. At partial duty it whines, most
at the 59% level that the board sits at when idle. Raising the PWM to
25 kHz removes the whine, but then the fan stalls: it does not start at
39%, and at 59% it sometimes stops and stays stopped. At 100% it is quiet
at either frequency, since the output no longer switches.
Set every active cooling level to 255 and leave the period alone. The fan
is then either off or at full speed.
Measured on one board with the fan LCKFB supplies, on the vendor kernel
with a device tree overlay. The edge device tree gets the same levels;
that kernel was not rerun for this change.
Signed-off-by: Jiaxing Hu <gahing@gahingwoo.com>
The upstream device tree for the LCKFB TaishanPi 3M covers power, storage,
Ethernet, WiFi/Bluetooth, USB and HDMI only. Add a board patch for the rest
that mainline has drivers for: GPU, NPU, PWM fan with thermal trips, ES8388
audio, USB-A port power, the mini-PCIe slot (EC20 4G module) and DisplayPort
alt mode on USB-C.
Add overlays for the three official MIPI DSI screens, using the
rocknix,generic-dsi panel driver with the timings and init sequences from
LCKFB's vendor device tree. They have the same names as the vendor kernel
overlays, so the board's screen autodetection works on both kernels.
Tested on the board with 7.3.3 and GNOME: C41409463 screen (display,
backlight, rotation, Goodix touch), panfrost, rocket, fan, audio playback
and capture, USB-A, EC20 calls, and DisplayPort at 2560x1440@60 together
with the DSI screen. Not tested: the 1200x1920 and C42388916 overlays (no
hardware; the latter has no touch driver enabled).
Signed-off-by: Jiaxing Hu <gahing@gahingwoo.com>
Take the message and Link of the patch as posted; the hunk stays as
before minus its comment, since 7.3 has no &spi0 node in this file.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
- dt-bindings: spi: sun6i: allow dual and quad SPI for the H616
(v2 1/2), so the Zero2 DT passes dtbs_check
- spi: sun6i: H616 dual read v2 2/2: new commit message and link,
same code as v1
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
- spi: sun6i: add dual read support for the H616 (posted to linux-spi,
v1, as posted)
- orangepi-zero2: spi-rx-bus-width = <2> on the SPI NOR, so the flash
is read 1-1-2
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
The bbox_main thread waited in down_timeout(). That sleep is
uninterruptible, so the idle thread added 1 to the load average.
Wait with wait_event_idle_timeout() on a wait queue instead.
- 0013, 0071: rebase the alc269.c hunks on 7.3.5. 7.3.5 adds two
fixups at the end of the same list. The patch content is unchanged.
- 4005: return pin group lookup errors, and free the partial maps on
an error.
- 4014: hold a counted reference to the eDP panel.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Boot errors on MS-R1:
- 4005: pinctrl ACPI waits for its pin controller and skips pin
groups that the firmware does not define.
- 4006: CPPC skips the energy model without PEFG and drops the
cooling flag, which needs a DT CPU node.
- 4007: USB2 PHY waits for the reset controller.
Review findings in vendor patches:
- 4008: irqchip use-after-free on a map error.
- 4009: ASoC duplex link flags, clock provider default, error paths.
- 4010: cdnsp resume error.
- 4011: PCIe debugfs capability lookup, ECAM high address.
- 4012: cix_dst log field parsing.
- 4013: panthor selected coherency.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Take patches-7.3 from cixtech/cix-linux-main (21ac2e7) as is.
Add four Armbian patches on top:
- 4001: register ACPI thermal zones without SSTP. MS-R1 has no SSTP.
- 4002-4004: DP audio InfoFrame, ELD and stream state from the 7.1 set.
Tested on Minisforum MS-R1: thermal, DP and analog audio, GPU, VPU,
Ethernet, Wi-Fi, Bluetooth, USB and NVMe work.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Since 7.2, the transport probe reads match data as a transport handle.
The CIXHA006 entry pointed to scmi_mailbox_desc.
The probe then jumped into scmi_mailbox_ops and caused an oops at boot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- cppc: stop the OPP read on an empty page with levels left.
- pstore: do not mirror a record that pstore_mkfile() freed.
- cix_dst: adopt the real root before rdr_dump_init().
- pci-sky1: use the Sky1 capability helper in debugfs.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Take the fwnode reference for the SCMI transport device. Release the
eDP panel reference. Keep the active dma350 descriptor off the issued
list and complete it on error. Make SSTP optional. Notify hdmi-codec
when the ELD is cleared.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Rebase the patch set on 7.3. Drop the audss clock and reset patches:
7.3 has them. Adapt the USB, DRM, SCMI, panthor and cix_dst patches
to the 7.3 API.
Assisted-by: Claude Opus 5.5
Signed-off-by: Igor Pecovnik <igor@armbian.com>
Linux 6.18.64 includes ad2220a7de0d ("can: dev: can_put_echo_skb():
free skb on invalid echo index"). The Armbian copy no longer applies.
Signed-off-by: Igor Pecovnik <igor@armbian.com>
With ASPM L1, NVMe drives in the BPI-F3 M.2 slot drop off the bus
(AER fatal, CSTS=0xffffffff). Mainline pcie-spacemit-k1 clears L1
from the root port LnkCap; do the same in the vendor driver.
Signed-off-by: Frédéric Mahé <frederic.mahe@cirad.fr>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On A10/A20 the Mali-400 is an MBUS master and sees DRAM at bus address 0,
like the display engine, CSI and video engine, but sunxi_mbus does not
list it, so lima gives the GPU CPU physical addresses. On 1 GiB boards
the extra address bit wraps around unnoticed; on 2 GiB boards such as the
Cubietruck every GPU access lands 1 GiB off and the screen stays black as
soon as Xorg/glamor or a compositor starts (lima "gpmmu page fault",
"gp task error", "gp job timeout").
Add the A10 and A20 Mali compatibles to the MBUS device list, so the GPU
gets the same DMA offset as the other MBUS masters.
Tested on a Cubietruck (A20, 2 GiB) with 6.18.56: kmscube, glmark2 and
an LXQt desktop on Xorg/glamor work. A Cubieboard2 (A20, 1 GiB) keeps
working.
Assisted-by: Claude:claude-opus-5-5
- sun50i-a64-pine64-7inch-lcd overlay (6.12 carries it inside its
patch): the i2c0 and dsi fragments add child nodes with a reg
(touchscreen@5d, panel@0), but their __overlay__ nodes had no
#address-cells/#size-cells, so dtc assumed 2/1 and warned
(reg_format, avoid_default_addr_size and the "Failed prerequisite"
follow-ups). Give both fragments the cells of their targets (<1>/<0>,
as in sun50i-a64.dtsi). The resulting DT is unchanged.
- new arm64-dts-sun50i-h5-nanopi-r1s-h5-add-ehci1-address-cells.patch
after the rtl8153 patch: ehci1 gets #address-cells = <1> and
#size-cells = <0> (usb-hcd.yaml) for its device@1 child.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
The C warnings of the sunxi64 kernel builds come from code that
Armbian adds. Fix them in the source instead of silencing them. The
sunxi-6.18 and sunxi-7.3 copies of each patch get the same change:
- drv-of-add-overlay-configfs-interface: drop the hunk that made
fdt_translate_address() non-static. Nothing uses it outside
fdt_address.c, and it is __init. Fixes -Wmissing-prototypes. Make
cfs_overlay_item_dtbo_read()/_write() static: only the
CONFIGFS_BIN_ATTR() in the same file uses them (-Wmissing-prototypes
on the 32-bit sunxi kernels, which enable OF_CONFIGFS).
- drv-nvmem-sunxi-add-chipid-serial-helpers: add
<linux/soc/sunxi/sunxi_sid.h> with the sunxi_get_soc_chipid() and
sunxi_get_serial() prototypes and include it in sunxi_sid.c.
drv-nvmem-sunxi-add-h616-support: only the hunk line numbers change
(+1), so the patch still applies without an offset.
- drv-misc-sunxi-add-addr-mgt-driver-uwe5622: add the public
<linux/soc/sunxi/sunxi_addr.h> (get_custom_mac_address) and a local
sha256.h, and include <linux/soc/sunxi/sunxi_sid.h> instead of a
private extern for sunxi_get_soc_chipid(). Rename the module-local
hmac_sha256() (it is plain SHA-256) to sunxi_addr_sha256() so it no
longer shares its name with the crypto library's hmac_sha256(). The
output is unchanged.
- drv-mfd-axp20x-add-sysfs: make axp20x_get_adc_freq() static.
- drv-char-add-dump-reg-sysinfo-drivers: make the quirks pointer
"static const", as of_device_get_match_data() returns const
(-Wdiscarded-qualifiers), and include <linux/soc/sunxi/sunxi_sid.h>
instead of private externs.
- drv-drm-panel-simple-add-olinuxino-lcd: keep the upstream
"olimex,lcd-olinuxino-43-ts" panel and compatible. The patch renamed
it away, which left olimex_lcd_olinuxino_43ts_mode unused and dropped
an upstream binding. Also wrap the two olinuxino-vga modes in
panel_desc: the match table pointed at a bare drm_display_mode, which
panel_simple_probe() would read as a panel_desc.
- patch/misc/xradio-fix-empty-body-and-missing-prototypes.patch (new,
applied from drivers_network.sh): define the empty debug macros as
do { } while (0) (-Wempty-body), make main.c/sta.c-local functions
static and include main.h/p2p.h in main.c/p2p.c
(-Wmissing-prototypes).
- patch/misc/wireless-rtl8189es-guard-wireless-stats-wext.patch (new):
build rtw_get_wireless_stats() only under CONFIG_WIRELESS_EXT, the
same guard as its only user rtw_handlers_def (-Wunused-function).
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
The 100 C cooling map forced states 8/9, which only exist with the
speed0/2/4 OPP tables. On speed1/3 (5 little OPPs, max_state 4) and
speed5/6 (8 big OPPs, max_state 7) the thermal core rejects the binding
with -EINVAL, so that map was lost.
Use lower bounds 4 (little) and 7 (big) with no upper limit. These are
the deepest states that exist on every bin, so the map now binds
everywhere. On the smallest bins they are the lowest OPP (408 MHz). On
speed0 the floor is 1008/840 MHz, and step_wise can still go down to
408 MHz.
Reported by CodeRabbit.
Signed-off-by: serg987 <50438876+serg987@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Backport Andre Przywara's v3 "arm64: allwinner: a523: Enable CPU
clocks" (CPU-CCU driver, bindings, DT clocks); patch 1/4 is a minimal
additive "update bit" change.
- Add A523 speed-bin support to sun50i-cpufreq-nvmem (SID 0x48), block
A523 in cpufreq-dt-platdev, and add OPP tables (speed0-6) from the
vendor BSP. Only the Radxa Cubie A5E uses them.
- AXP313A/AXP323: DCDC ramp delay of 400 uV/us, as in the vendor BSP.
- Cubie A5E: 95/100 C passive trips in both CPU zones as a thermal
backstop for fanless boards.
- sunxi-7.3: carry the AXP323 poly-phase RFC backports (05-09) that
sunxi-6.18 already has. Without them DCDC1/DCDC2 stay single-phase and
the board hangs when the big cluster goes to 1.1 V.
Tested on a Cubie A5E (speed0) with edge 7.3.4 and current 6.18.63:
cold boot, 30-min random-OPP storm with stress-ng, 0 clock mismatches.
Signed-off-by: serg987 <50438876+serg987@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the H96 Max M9 TV box: RK3576, 8 GB RAM, 128 GB eMMC, GbE, USB 3,
HDMI, and AIC8800D80 Wi-Fi and Bluetooth.
The board uses mainline U-Boot v2026.10 with generic-rk3576_defconfig.
Wi-Fi uses the radxa-aic8800 extension, and Bluetooth uses aic-bluetooth
on ttyS4. The DTS is the same for edge and bleedingedge.
Tested on the board: trixie minimal (edge 7.3.4, bleedingedge 7.4.0-rc2)
and resolute GNOME (edge 7.3.4). HDMI, Ethernet, eMMC, GPU, Wi-Fi and
Bluetooth work.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The regulator core switches off the unclaimed vdd_gpu_s0 rail about 30 s
into boot. If panfrost probes after that, the GPU domain powers up without
its rail, and the soft reset takes an SError.
Let the GPU domain take a domain-supply, and label it pd_gpu so a board
DTS can set one. Boards without domain-supply keep their behaviour.
7.3 uses DOMAIN_RK3576_R from the NPU series. 7.4 has no NPU series, so
its patch adds the regulator support itself.
Tested on H96 Max M9: edge 7.3.4 and bleedingedge 7.4.0-rc2.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two clk-sunxi-ng-h616 fixes depend on no other patch in the
series, so list them in alphabetical order with the other unnumbered
clk-sunxi-ng patches.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
Backport two H616 CCU fixes from the linux-clk/linux-sunxi series that
Jernej Skrabec acked; the S/PDIF one matches his H6 change.
- emac-25m is PLL_PERI0 / 24, not a gate under ahb3 (it reported
200 MHz); model it as a /24 pre-divided gate under pll-periph0.
- spdif gets CLK_SET_RATE_PARENT, so 48 kHz audio is no longer sent at
about 24 kHz when pll-audio is in the wrong rate family.
Link: https://lore.kernel.org/r/20261110-h616-clk-emac-spdif-v1-0-e5e36e8963e4@gmail.com
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
- ./compile.sh rewrite-kernel-patches BOARD=thinkpad-x13s BRANCH=edge, still on v7.3.1
- formatting only (headers, index lines, diffstat) in 0301-0303; no content changes
Assisted-by: Claude:claude-opus-5-5
- MT8195 (Genio 1200) has an HDMI CEC controller, but mainline has no driver for it
- drm/mediatek `mtk_cec` covers only MT8173, only for hotplug detection; it never registers a CEC adapter
- on MT8195 CEC is a separate block from the HDMI transmitter (own registers, interrupt, clocks)
- standalone driver in `drivers/media/cec`; physical address from the HDMI transmitter through the CEC notifier (like Tegra, Exynos, Amlogic)
- patches = the upstream series as prepared for submission (v1, not sent yet):
- `3100` dt-bindings: `mediatek,mt8195-cec`; MT8188 allowed with the MT8195 fallback (untested)
- `3101` driver `mtk-hdmi-cec` (`CEC_MTK`); hardware programming based on the MediaTek vendor driver by Tommy Chen (Co-developed-by)
- `3102` drm/mediatek HDMI v2: register the CEC notifier; drops the misleading "Failed to find CEC node" (MT8173 lookup now only for v1)
- `3103` mt8195.dtsi: CEC node, disabled
- `3104` NIO-12L: enable CEC
- hardware doesn't wait for the signal free time before a new message on an idle bus (measured 4 bit periods instead of 7, whatever its SFT counters say)
- driver waits for the signal free time given by the CEC core; retries left to the core
- now measures 7 bit periods, on the NIO-12L and on the receiving side; the vendor driver has neither
- review fixes (CodeRabbit):
- disabling the adapter doesn't wait for the IRQ thread anymore (it takes the CEC core lock: deadlock); the thread ignores a powered-off controller
- no register access while system-suspended (log address, transmit)
- polling messages restart the signal free time too
- TX completion reported before RX (the received message can be the reply)
- unbind waits for the IRQ thread before the adapter is freed
- adapter enable/disable serialized against system suspend/resume (driver mutex)
- a message that just ended but isn't handled yet also restarts the signal free time
- `CONFIG_CEC_MTK=m`
- tested on NIO-12L, HDMI out into a Mixtile Blade 3 HDMI-in (RK3588, snps_hdmirx) as the other CEC device:
- `cec-compliance -A` on the NIO-12L: 11/11, no warnings
- `cec-compliance -A` on the Blade 3, NIO-12L as remote: 11/11, no warnings
- `cec-compliance -r 4` from the Blade 3, cec-follower on the NIO-12L: 84/84
- messages to an absent logical address end in NACK, no timeouts
- HDMI unplug invalidates the physical address; replug claims the logical address again
- build checks: W=1 and sparse (C=2, `__CHECK_ENDIAN__`) clean; dt_binding_check and dtbs_check clean
- not tested: TV, suspend/resume, MT8188
Assisted-by: Claude:claude-opus-5-5
Drop the board-specific sdhci-msm patch that forced SD transfers through
PIO. With the earlier Aloha SDCC implementation, Linux ADMA transfers
after UEFI SD access could hang or reboot the tablet. The failure was
confined to the DMA path across the UEFI-to-Linux handoff; forcing PIO
avoided that path but did not fix the SDCC/SMMU state passed to Linux.
The new SDCC driver now skips vendor SMMU reconfiguration and preserves
the inherited SDCC mapping while retaining UEFI ADMA. Linux boots from
the SD card with ADMA 64-bit, so the Linux PIO workaround is no longer
needed.
Rename the NT36536 CSOT first-line BPG offset patch to 0080a so it
follows the DSI patch that preserves panel-specified offsets.
Stop at a subdomain that fails to switch off, leave its ancestors on and
warn, instead of switching the parent off behind a domain that is still
on. Probe still goes on: failing it would take every power domain of the
SoC down.
This matches pmdomain 1/3 of v17 on the kernel lists:
https://lore.kernel.org/all/cover.1794615323.git.gahing@gahingwoo.com/
With the RK3576 NPU series, PD_NPU needs a regulator and is switched off
at probe before its subdomains are added. On boards that do not enable
the NPU, U-Boot leaves NPUTOP, NPU0 and NPU1 on, nothing idles or powers
them off, and the SoC can hang when vdd_npu_s0 is disabled as unused.
Switch off the subtree of a regulator domain at probe, children first.
Reported-by: Vladimir Bely <vlwwwwww@gmail.com>
Closes: https://github.com/gahingwoo/linux-rk3576-npu/issues/4
Give the NPU parent domain the RK806 vdd_npu_s0 rail as its supply and
enable both RKNN cores and their IOMMUs, as on the ROCK 4D and the
ArmSoM CM5.
Without a domain supply the board hangs on about every second boot with
edge 7.3: the NPU domains stay half on after probe, and the SoC locks
up when the regulator late cleanup turns vdd_npu_s0 off.
Signed-off-by: vlw <vlwwwwww@gmail.com>
Backport two dwmac-sun8i fixes merged for Linux 7.4 (not in 7.3.y):
- fee9c17671b6 "net: stmmac: sun8i: reset the MAC after PHY initialization"
(James Hilliard): move the MAC software reset from probe into the
stmmac dma_reset callback, where the PHY receive clock is guaranteed to
be running. This is the maintainer-reviewed fix for Ethernet being lost
after a warm reboot on RTL8211F boards such as the Orange Pi Zero2.
- d9750b3c4c27 "net: stmmac: dwmac-sun8i: Fix EPHY clock leak in
get_ephy_nodes()" (Wentao Liang, Cc: stable).
Drop drv-net-stmmac-dwmac-sun8i-reset-emac-on-open.patch: it is Armbian's
own earlier version of exactly the same change (reset in dma_reset instead
of probe) and is fully superseded by fee9c17671b6, which additionally masks
interrupts before the reset and still clears the DMA/interrupt registers
when the reset times out.
Rebase drv-net-stmmac-dwmac-sun8i-add-h616-internal-phy.patch (H616 EMAC1 /
AC300, used by Zero2W etc.) on top of the upstream patches: its extra reset
in sun8i_dwmac_init() is no longer needed, the MDIO-mux reset is still
skipped for the internal PHY, and the optional clock/reset handling in
get_ephy_nodes() is re-applied on top of the local-variable version.
Series order: the two upstream patches apply before Armbian's EMAC1 patches,
matching their order in torvalds/master.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
GPU devfreq dropped vdd-gpu-sys to 810 mV at idle; the video engine on
the same rail then intermittently corrupts 4K H.265/VP9 CTBs. Board-
measured: 6/13 runs bad at 810 mV, 0/6 at >=890 mV.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
With the Zero2/Zero3 GPU OPP table merged (panfrost devfreq 306-600 MHz),
give the Mali-G31 a thermal response before the 110 degC critical trip:
mapped to <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, matching the CPU
alert level and mainline H6's GPU alert. No-op on boards without GPU OPPs.
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
Add arm64-dts-sun50i-h616-orangepi-zero-add-gpu-opp.patch, which includes
dt_64/sun50i-h616-gpu-opp.dtsi (306-600 MHz, 810-950 mV, values recovered
from the KickPi K2B vendor DTB and already used by the kickpi-k2b boards)
from sun50i-h616-orangepi-zero.dtsi. The dtsi is shared by the Orange Pi
Zero2 (H616) and Zero3 (H618); both have a "vdd-gpu-sys" GPU regulator
constrained to 810000-990000 uV in their board DTS (Zero2: AXP305 reg_dcdcc,
Zero3: AXP313a reg_dcdc1), so all OPP voltages, including the 990 mV
ceiling, are within the regulator limits. The gpu node ends up with
operating-points-v2 = <&gpu_opp_table> plus the existing mali-supply.
Set CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y in linux-sunxi64-edge.config.
panfrost (=m) only "select"s it, which yields =m; the devfreq core then
has to request_module("governor_simpleondemand") from inside panfrost's
probe, which works but depends on the module being installed and
loadable at that moment. Building the governor in makes the devfreq
device registration independent of module availability (e.g. initramfs,
early probe) and matches how the other devfreq governors are configured
in this file (=y).
Assisted-by: Claude
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>