From aa91c9b7e6c9318015ff56fbc9a8f69c8d8eee6a Mon Sep 17 00:00:00 2001 From: Aditya Prayoga Date: Fri, 18 Jan 2019 00:00:14 -0800 Subject: [PATCH 1/2] kernel: mvebu-next: Enable offload support for the async_tx api Without enabling this support, the hardware XOR (MV_XOR) is not used by the system. It is enabled in mvebu-default.config Some discussion, https://forum.armbian.com/topic/6033-helios4-support/?do=findComment&comment=69649 --- config/kernel/linux-mvebu-next.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/kernel/linux-mvebu-next.config b/config/kernel/linux-mvebu-next.config index 151792ece8..6550aa3afe 100644 --- a/config/kernel/linux-mvebu-next.config +++ b/config/kernel/linux-mvebu-next.config @@ -3868,7 +3868,7 @@ CONFIG_QCOM_HIDMA=m # # DMA Clients # -# CONFIG_ASYNC_TX_DMA is not set +CONFIG_ASYNC_TX_DMA=y # CONFIG_DMATEST is not set CONFIG_DMA_ENGINE_RAID=y From 9116aa2da3521f2308b35433aac92a10e4b770c0 Mon Sep 17 00:00:00 2001 From: Aditya Prayoga Date: Fri, 18 Jan 2019 02:09:33 -0800 Subject: [PATCH 2/2] helios4: Remove fancontrol patch After some discussion, it is no longer needed to put the fan to low speed / stop during exit. So remove the patch that alter default behavior during exit. [URL] https://forum.armbian.com/topic/6033-helios4-support/?do=findComment&comment=69732 --- config/sources/mvebu-helios4.inc | 3 --- packages/bsp/helios4/fancontrol.patch | 22 ---------------------- 2 files changed, 25 deletions(-) delete mode 100644 packages/bsp/helios4/fancontrol.patch diff --git a/config/sources/mvebu-helios4.inc b/config/sources/mvebu-helios4.inc index 95e1a50916..9cdd274e57 100644 --- a/config/sources/mvebu-helios4.inc +++ b/config/sources/mvebu-helios4.inc @@ -41,9 +41,6 @@ family_tweaks_s() # copy hwmon rules to fix device mapping cp $SRC/packages/bsp/helios4/90-helios4-hwmon.rules $SDCARD/etc/udev/rules.d/ - # patch fancontrol - patch $SDCARD/usr/sbin/fancontrol $SRC/packages/bsp/helios4/fancontrol.patch - # copy fancontrol config case $BRANCH in default) diff --git a/packages/bsp/helios4/fancontrol.patch b/packages/bsp/helios4/fancontrol.patch deleted file mode 100644 index 1024de73a5..0000000000 --- a/packages/bsp/helios4/fancontrol.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- /usr/sbin/fancontrol 2018-02-17 13:54:50.065478090 +0800 -+++ /usr/sbin/fancontrol 2018-02-17 13:58:56.910831481 +0800 -@@ -334,7 +334,7 @@ - # No enable file? Just set to max - if [ ! -f $ENABLE ] - then -- echo $MAX > $1 -+ echo $MINPWM > $1 - return 0 - fi - -@@ -433,9 +433,9 @@ - fi - - # If fanspeed-sensor output shall be used, do it -+ min_fanval=100000 - if [[ -n ${fan} ]] - then -- min_fanval=100000 - fanval= - # A given PWM output can control several fans - for one_fan in $(echo $fan | sed -e 's/+/ /')