From b3fbf3a99844938afa9af5c8a40c1deceee4746f Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Thu, 21 Dec 2017 17:19:35 +0100 Subject: [PATCH] linux-4.14: Do not use external AACRAID driver According to the developer asynchronous mode is supported in Linux 4.14. As the external driver fails to build, do not do that, and use the shipped version. ``` $ uname -a Linux mrtorgue.molgen.mpg.de 4.14.8.mx64.197 #1 SMP Thu Dec 21 17:35:49 CET 2017 x86_64 GNU/Linux $ dmesg | grep -i aac [ 0.000000] ACPI: MSCT 0x000000007BAAC000 000090 (v01 DELL PE_SC3 00000001 DELL 00000001) [ 171.387352] Adaptec aacraid driver 1.2.1[50834]-custom [ 171.387427] aacraid 0000:84:00.0: can't disable ASPM; OS doesn't have ASPM control [ 171.387960] aacraid: Comm Interface type3 enabled [ 171.391800] AAC0: kernel 3.52-0[0] Sep 7 2017 [ 171.391802] AAC0: monitor 0.0-0[0] [ 171.391803] AAC0: bios 0.13-209[32000] [ 171.391804] AAC0: serial 10F447 [ 171.391805] AAC0: Non-DASD support enabled. [ 171.391806] AAC0: 64bit support enabled. [ 171.391807] aacraid 0000:84:00.0: 64 Bit DAC enabled [ 171.393542] scsi host11: aacraid ``` --- linux-4.14.8-197.bee | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/linux-4.14.8-197.bee b/linux-4.14.8-197.bee index 747d13792..44f08b358 100755 --- a/linux-4.14.8-197.bee +++ b/linux-4.14.8-197.bee @@ -29,35 +29,6 @@ same_revision_files=$(ls ${BEE_PKGDIR}/linux-[0-9].[0-9]*-${PKGREVISION}.x86_64. && echo "A kernel with revision ${PKGREVISION} has already been build: $same_revision_files" \ && exit -# aacraid -# https://storage.microsemi.com/en-us/downloads/linux_source/linux_source_code/productid=aha-1000-8e&dn=microsemi+adaptec+hba+1000-8e.php -# http://download.adaptec.com/raid/aac/linux/aacraid-linux-src-1.2.1-55022.tgz -# http://twiki.molgen.mpg.de/foswiki/Medv/SoftwareRaid -# CONFIG_SCSI_AACRAID=m -# -build_aacraid_driver_update_and_do_depmod() { - local DRIVERBUILD=54013 - - pushd . - - echo "aacraid driver" - - mkdir -pv ${B}/aacraid_update - cd ${B}/aacraid_update - tar -xf /src/mariux/beeroot/downloads/aacraid_source_1.2.1-${DRIVERBUILD}.tgz - cd aacraid-1.2.1-${DRIVERBUILD} - chmod -x * - make -C ${B} M=${B}/aacraid_update/aacraid-1.2.1-${DRIVERBUILD} modules - - mkdir -pv ${D}/lib/modules/${FULLKERNELVERSION}/updates/drivers/scsi/aacraid - cp -v aacraid.ko ${D}/lib/modules/${FULLKERNELVERSION}/updates/drivers/scsi/aacraid - - cd ${D}/lib/modules/${FULLKERNELVERSION} - depmod -a -b ${D} ${FULLKERNELVERSION} - - popd -} - plaininstall_for_modules() { local dir=$1 local tar=$2 @@ -884,7 +855,6 @@ mee_install() { make install INSTALL_PATH=${D}/boot # make firmware_install INSTALL_MOD_PATH=${D} - build_aacraid_driver_update_and_do_depmod build_spl_zfs_extra_modules_and_do_depmod rm -v ${D}/lib/modules/${FULLKERNELVERSION}/{source,build}