From ea85ffe45157953d9ce899c8f52f90306629c3f7 Mon Sep 17 00:00:00 2001
From: knuxify <knuxify@gmail.com>
Date: Sun, 23 Mar 2025 17:11:34 +0100
Subject: [PATCH 1/2] device-odroid-hc2: disable big.LITTLE switcher by default

The linux-edge kernel enables the BL_SWITCHER kernel option, which enables
an in-kernel big.LITTLE switcher - with it enabled, only 4 cores are enabled
at a time, and the kernel switches between the big and little cores. However,
in a server workload, it's more likely that a user wants all 8 cores to work
simultaneously.

Disable the switcher by default by providing the no_bL_switcher cmdline option.
It can still be re-enabled by writing 1 to /sys/kernel/bL_switcher/active.

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6350
---
 device/testing/device-odroid-hc2/APKBUILD         | 4 ++--
 device/testing/device-odroid-hc2/uboot-script.cmd | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/device/testing/device-odroid-hc2/APKBUILD b/device/testing/device-odroid-hc2/APKBUILD
index 3cd1983d580..554c6d45b17 100644
--- a/device/testing/device-odroid-hc2/APKBUILD
+++ b/device/testing/device-odroid-hc2/APKBUILD
@@ -3,7 +3,7 @@
 
 pkgname=device-odroid-hc2
 pkgdesc="ODROID HC2"
-pkgver=2
+pkgver=3
 pkgrel=0
 url="https://postmarketos.org"
 license="MIT"
@@ -56,6 +56,6 @@ tools() {
 sha512sums="
 8eae54c131b8fc9c0e4cca6bbd8aaca72eb585c59d7794a97606b6061f98f87fb2b268fefc3113410e04e9e772d1f65d78e935de01a7679ba45ee60007961183  deviceinfo
 228726f7afca55b02e4d452904d8490cf15957edd59cc87274d89c8589f9d15044db87a4413053243e66aa1b22860cfda052b5b95395effaf3aaf4d1770d3fd3  modules-initfs
-7e5056f648a81d0784b1b3a641e2f79c22d2b570c7f00092236b301b1545eefca3a6a353c1ad308114f66ac68481f1491df42ca5c6f8297c76e5ee0fa7af178f  uboot-script.cmd
+74fdbef86278033048b85d8a6f26fe5f57799307dc05670e69e52781ab71d6b9f8a82176b291ceea59aad98139f9cf9ccd6d1dab54e82f7b892ec42d80eab502  uboot-script.cmd
 09a2191dce5b5c8fdf80c4473d9773a51f2c633db51477f2f64983dd030d7800fd80999a228ec7efe3f9feafeba35902bff68cf95e6ae59048dc64424f402b63  install-rootfs-hdd.sh
 "
diff --git a/device/testing/device-odroid-hc2/uboot-script.cmd b/device/testing/device-odroid-hc2/uboot-script.cmd
index 4940b37f45e..10049efafc5 100644
--- a/device/testing/device-odroid-hc2/uboot-script.cmd
+++ b/device/testing/device-odroid-hc2/uboot-script.cmd
@@ -8,7 +8,7 @@ setenv dtb_file "exynos5422-odroidhc1.dtb"
 printenv
 
 echo Setting bootargs
-setenv bootargs init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M initcall_blacklist=exynos_drm_init PMOS_FORCE_PARTITION_RESIZE
+setenv bootargs init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M initcall_blacklist=exynos_drm_init no_bL_switcher PMOS_FORCE_PARTITION_RESIZE
 
 if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}; then
     echo Loading Kernel: vmlinuz
-- 
GitLab


From 89fe8efd03d7b70a2ec7d6b11bf3d84545732657 Mon Sep 17 00:00:00 2001
From: knuxify <knuxify@gmail.com>
Date: Tue, 25 Mar 2025 17:29:40 +0100
Subject: [PATCH 2/2] device-odroid-hc2: take over maintainership

Part-of: https://gitlab.postmarketos.org/postmarketos/pmaports/-/merge_requests/6350
---
 device/testing/device-odroid-hc2/APKBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device/testing/device-odroid-hc2/APKBUILD b/device/testing/device-odroid-hc2/APKBUILD
index 554c6d45b17..60c55cb9d24 100644
--- a/device/testing/device-odroid-hc2/APKBUILD
+++ b/device/testing/device-odroid-hc2/APKBUILD
@@ -1,5 +1,5 @@
 # Reference: <https://postmarketos.org/devicepkg>
-# Unmaintained: no maintainer
+# Maintainer: knuxify <knuxify@gmail.com>
 
 pkgname=device-odroid-hc2
 pkgdesc="ODROID HC2"
-- 
GitLab