hardkernel / linux

Linux kernel source tree
Other
426 stars 406 forks source link

[C2] [5.4.y] Audio and Mali patch set #400

Open scpcom opened 4 years ago

scpcom commented 4 years ago

Here are some enhancements to support using C2 (and N1) on kernel 5.4.y:

Odroid C2 Audio https://github.com/scpcom/linux/commit/4ada22b4c519d58d9abed0986efe3e4ddfa7cdb3 https://github.com/scpcom/linux/commit/32687aa47e0df00913f4256333a3648a9011750a https://github.com/scpcom/linux/commit/738e2f0a6fd94edb919dfdff5dc249a654803366 https://github.com/scpcom/linux/commit/a8f6facce74db689fc525cff26bc920d24e4e70c

Mali 450 Meson Driver (supports both UMP and dumb buffers) and Mail Midgard and Bifrost Rockchip Driver https://github.com/scpcom/linux/commit/8f33d39b87e9453aa9587d74740304668c4e8a2a https://github.com/scpcom/linux/commit/ad943567f763d0b47c34c9b4784354e25a6859ee https://github.com/scpcom/linux/commit/044e0a5334c2e1629d091dbce8026d58fba33ccb https://github.com/scpcom/linux/commit/3a3f8ca9dbfb3fb3d6fb0a25acfcd99b194f7214 https://github.com/scpcom/linux/commit/044f63c141517dce47b6a893cd40907a2af08814 https://github.com/scpcom/linux/commits/sbc-5.4.y/drivers/gpu/arm

I know there is already lima driver for Mali 400/450 and panfrost driver for Mali Bifrost/Midgard in the kernel, but I could not get them to work. The classic drivers above work well and stable on Ubuntu 20.04 with X11/XFCE.

Odroid N1 Initial Support https://github.com/scpcom/linux/commit/808574add8a02b45e9d2592971aec891afc335e7 https://github.com/scpcom/linux/commit/8ecf12050163c8b4fd8d28a132e171751bd4359a https://github.com/scpcom/linux/commits/sbc-5.4.y/arch/arm64/boot/dts/rockchip/rk3399-odroidn1-linux.dts

ODROID VU7 Plus https://github.com/scpcom/linux/commit/08958ec3005e971555efe058c519102a5beebfb9 https://github.com/scpcom/linux/commit/8d2058c570d46ab6fe28543166d808b893349b5d

Rockchip RK3399 support pll setting by auto from vendor kernel (generates pixel clock for any resolution) https://github.com/scpcom/linux/commits/5.4.41-2111-sbc/drivers/clk/rockchip https://github.com/scpcom/linux/commits/5.4.41-2111-sbc/drivers/gpu/drm/rockchip

This seems to be still needed for stability of C2: https://github.com/scpcom/linux/commit/fd0b31f79f7dc66f0b67e1009ea6d680b900add3 https://github.com/scpcom/linux/commit/1540251bebd81dec6f0ad4425ec97acc2c9d0b14

Thermal for C2 (works only together with needed patches above): https://github.com/scpcom/linux/commit/7e9d32c39e26b4a61051f83e5bba19dd31bcce6f https://github.com/scpcom/linux/commit/529f834ecadf5344c7c2477876ce1d62cb3fdee1

Enhance cpuinfo: https://github.com/scpcom/linux/commit/815ccbf2a3f28a9c717605fd332d2d8426b3dcb6 https://github.com/scpcom/linux/commit/f4b398d53527ebb32389832e3bf377aea9733717 https://github.com/scpcom/linux/commit/ecd49d313d2e3cac3ba4099cac395ea8f61b4a50 https://github.com/scpcom/linux/commit/8cca039681aecdaecbb1dafa94b39426b9143898 Enhance RK3399 cpuinfo: https://github.com/scpcom/linux/commit/a88f34e8c6637af2d8eed19f6fe030eef4113585 https://github.com/scpcom/linux/commit/a1d6ef4e8498363eafdf376b425304633e5e203d https://github.com/scpcom/linux/commit/803e80dc77688d834cf12fa1bfea98fde9d0cd26 Enhance Meson GX cpuinfo: https://github.com/scpcom/linux/commit/74d41b4238377aa641132689ae5f7c1c316d5f7c https://github.com/scpcom/linux/commit/ddf4dc849f751c79a32239bd56ad51808d182044 https://github.com/scpcom/linux/commit/e7bfce8fb6e02e583b0d1df062be0808432dc675 https://github.com/scpcom/linux/commit/89e4e9988b9abec32c436295bdfaa55a05467a1e

Maybe not needed: https://github.com/scpcom/linux/commit/f875a865c3a4389cd2376045b091b565706875f2 https://github.com/scpcom/linux/commit/b1adf3a1c65bd04735bcf71f1ed8b6116d389672 https://github.com/scpcom/linux/commit/34f0cad3fafb436531c12d8428baedc7e70f2891 https://github.com/scpcom/linux/commit/586d9c96034d80390a7fcea8f846d0a2be8c225e https://github.com/scpcom/linux/commit/a1110d8440f57911a53dd28c0369cd8da634adfe