Debian not loading updated kernel module version

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

chinesestunna

Active Member
Jan 23, 2015
621
194
43
56
I'm a bit stumped here, I've just attempted P26 kernel module install from the Broadcom/Avago package: SAS 9300-8e Host Bus Adapter
This is technically for my LSI 2308 SAS2 controller, but the module package includes both mpt3sas and mpt2sas files.

Here's the install, no errors:
Code:
root@openmediavault:~/lsidriver/debian/rpms-1# dpkg -i mpt3sas-26.00.00.00-1_Debian8.0.amd64.deb
Selecting previously unselected package mpt3sas.
(Reading database ... 49001 files and directories currently installed.)
Preparing to unpack mpt3sas-26.00.00.00-1_Debian8.0.amd64.deb ...
pre 26.00.00.00
Unpacking mpt3sas (26.00.00.00-1) ...
Setting up mpt3sas (26.00.00.00-1) ...
post 26.00.00.00
post Install Done.
Verifying the install, version is correct:
Code:
root@openmediavault:~/lsidriver/debian/rpms-1# dpkg -s mpt3sas
Package: mpt3sas
Status: install ok installed
Priority: extra
Section: alien
Installed-Size: 4049
Maintainer: root <root@debian80x8664>
Architecture: amd64
Version: 26.00.00.00-1
Description: LSI MPT Fusion drivers for SAS 3.0
 Drivers for (i686, x86_64 and updates) for the
 LSI Corporation MPT Fusion Architecture parts.
 .
 (Converted from a rpm package by alien version 8.92.)
Seems good, we're at version 26, but on reboot, the modinfo output still shows version 17.100.00.00:
Code:
root@openmediavault:~/lsidriver/debian/rpms-1# modinfo mpt3sas
filename:       /lib/modules/4.16.0-0.bpo.2-amd64/kernel/drivers/scsi/mpt3sas/mpt3sas.ko
alias:          mpt2sas
version:        17.100.00.00
license:        GPL
description:    LSI MPT Fusion SAS 3.0 Device Driver
author:         Avago Technologies <MPT-FusionLinux.pdl@avagotech.com>
srcversion:     CC159339243D2AF95E0DD16
I was curious if the version 26.00.00.00-1 only applies to mpt3sas, so I dug into the source code of the package, it clearely shows in mpt3sas_base.h that the mpt2sas component should still be version 20.00.03.00, although not 26.xxxxxx, definitely seems shouldn't be 17.xxxxxx either

Code:
/* mpt2sas driver versioning info */
#define MPT2SAS_DRIVER_NAME		"mpt2sas"
#define MPT2SAS_DESCRIPTION	"LSI MPT Fusion SAS 2.0 Device Driver"
#define MPT2SAS_DRIVER_VERSION		"20.00.03.00"
#define MPT2SAS_MAJOR_VERSION		20
#define MPT2SAS_MINOR_VERSION		0
#define MPT2SAS_BUILD_VERSION		3
#define MPT2SAS_RELEASE_VERSION		0
Thoughts?
 

chinesestunna

Active Member
Jan 23, 2015
621
194
43
56
yea, got further along - it seems the pre-made packages from Broadcom targets specific kernel version, while my OpenMediaVault build runs a different kernel so the mpt3sas.ko file never made it. I've since manually backed up the current ver.17 mpt3sas.ko and copied over the ver.26 file. This does allow modinfo mpt3sas to show ver.26 in the kernel/modules folder, but I'm unable to successfully run "update-initrmfs -u" to update my boot image, after booting up dmesg | grep mpt still shows ver.17 mpt3sas loading, while modinfo mpt3sas shows ver.26 in the modules folder
:(
I'm trying to figure out how to compile the source code from Broadcom right now
 

EffrafaxOfWug

Radioactive Member
Feb 12, 2015
1,394
511
113
Not entirely sure what you've done here, has or what you're trying to do, but has whatever it is you've installed replaced the module under lib/modules/$(uname -r)/kernel/drivers/scsi/ ? The fact you've used alien to convert an RPM into a dpkg suggests whatever you're trying to do isn't intended for debian... and I'd be exceptionally surprised if you could install a third-party module and have it work against a random debian kernel.

What files has the package actually installed? Don't know if it works with alien packages but `apt-file list mpt3sas` might hopefully show you what it's actually done.
 

chinesestunna

Active Member
Jan 23, 2015
621
194
43
56
@EffrafaxOfWug basically still trying to troubleshoot and fix my issue documented here: https://forums.servethehome.com/ind...-2308it-drive-drops-on-wake-from-sleep.21329/
See other folks with similar problem: ZFS io error when disks are in idle/standby/spindown mode · Issue #4713 · zfsonlinux/zfs
It seems that Linux post kernel 2.6 builds has an issue where the OS will drop devices from a ZFS (in my case mdadm) array if the drives don't wake up fast enough. It seems random and arbitrary while device gets dropped and it's not a hardware issue.
Anyways, I checked the mpt3sas module for LSI SAS controllers in OpenMediaVault4 and noticed it was still version 17.00.xxxx so decided to see if updating it will help. Spend last 3 hours trying to get it working. The drivers/modules I'm trying to install comes from Broadcom directly, SAS 9300-8e Host Bus Adapter
current version of mpt3sas is version 26.00.00.00, after downloading the package I've been trying to install the .deb packages in the Debian folder.

So far no luck because the pre-compiled modules target specific kernel builds (older 4.0.4) vs. my OMV4 machine running on 4.0.16 already so dpkg -i will place files in the wrong folders
 

EffrafaxOfWug

Radioactive Member
Feb 12, 2015
1,394
511
113
According to the linus kernel tree the latest version in mainline at least is 25
mpt3sas_base.h\mpt3sas\scsi\drivers - kernel/git/torvalds/linux.git - Linux kernel source tree

Easiest method to get a more "recent" version would be to install a kernel from backports to get yourself a debian-supplied-and-working kernel more recent than the one you're currently using.

If you want the v26 that broadcom claim to be using I suspect you'd need to pull in from their kernel tree and build a custom kernel, or at the very least a custom module built against your own kernel source tree. But have you got verification that this is fixed in later versions of the mpt3sas driver or are you doing shotgun debugging/upgrading?

Don't pay too much attention to the RHEL/centos kernel version numbers - there's a million and one backports and customisations in there such that the current 2.6.x version likely bears next to no resemblance to the vanilla 2.6.x (which ceased being actively developed years ago).
 

chinesestunna

Active Member
Jan 23, 2015
621
194
43
56
yes that's another strange thing that I noticed, that change was committed back in April 2018, my kernel from OMV4 is 4.17.0-0.bpo.1-amd64 (just updated from 4.16.0-0.bpo.2-amd64) but it still had the old version 17 kernel module.
I'm fine with v25 in the mainline but for whatever reason OMV didn't add that change for their builds?
 

chinesestunna

Active Member
Jan 23, 2015
621
194
43
56

EffrafaxOfWug

Radioactive Member
Feb 12, 2015
1,394
511
113
I copied the mpt3sas.ko file directly
Generally speaking this'll never work. Kernel modules need to be compiled against the same kernel the rest of the system is using and it seems like OMV aren't using stock debian for one reason or another.

But I don't see anyone in that issues thread saying newer versions of the mpt3sas driver have fixed anything?