opnsense-src/sys/dev/mpr
Peter Eriksson 004ce88ad1 mpr: Add workaround for too few slots being automatically scanned
This patch adds a /boot/loader.conf setting that makes it possibly to
override the detected number of slots in storage enclosures. Some (yes
I'm looking at you HPE D6020!) reports less available slots that there
actually are (the D6020 seems to report 18 but actually has 35 per
drawer). This causes the mpr driver to have problems detecting/managing
all drives in a multienclosure setting. For the D6020 this occurs when
connecting two or more fully equipped (140 drives) enclosures to one
controller...

This problem can be "fixed" by adding the following to /boot/loader.conf
and rebooting:
    hw.mpr.encl_min_slots="35"

Note: I (Warner) don't have this hardware to see if there's some way to
fix the detection, so I'm committing this as a stop-gap. It's a no-op if
no tunable is set.

PR: 271238
Reivewed by: imp
2025-08-31 13:01:09 -06:00
..
mpi sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpr.c mpr: Add workaround for too few slots being automatically scanned 2025-08-31 13:01:09 -06:00
mpr_config.c mpr: endianess fix for set/get dpm page0 2024-01-31 17:33:05 -09:00
mpr_ioctl.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpr_mapping.c mpr: Add workaround for too few slots being automatically scanned 2025-08-31 13:01:09 -06:00
mpr_mapping.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpr_pci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_sas.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
mpr_sas.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpr_sas_lsi.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
mpr_table.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpr_table.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
mpr_user.c mpr: Handle errors from copyout() in ioctl handlers 2023-12-25 21:04:01 -05:00
mprvar.h mpr: Add workaround for too few slots being automatically scanned 2025-08-31 13:01:09 -06:00