[Bug 271238] mpr (LSI SAS3816) driver not finding all devices in HP D6020 enclosures

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 26 Nov 2024 14:58:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271238

--- Comment #9 from Peter Eriksson <pen@lysator.liu.se> ---
Created attachment 255468
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=255468&action=edit
Add hw.mpr.encl_min_slots loader.conf setting to override detected num_slots

Please find enclosed a patch to the mpr driver that adds a kernel tunable knob
to enforce a minimum value for the detected enclosure "num_slots". Setting:

   hw.mpr.encl_min_slots="40" 

solves the issue with multiple D6020 enclosures connected to one controller and
makes it possible to use all 140 drives.

(The D6020 seems to report 18 instead of 43 with is wrong. Other boxes also
have strange values (a 24-drive SuperMicro storage enclosure seems to report
43, but that atleast doesn't prevent it from finding all drives).

The mpr driver probably also should add some sanity checking and give more
warnings if (like in my case) it allocates room for 18 drives and then tries to
populate with 35... but that's for another day & patch).

-- 
You are receiving this mail because:
You are on the CC list for the bug.