Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2024 22:31:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        stable@FreeBSD.org
Subject:   [Bug 271238] mpr (LSI SAS3816) driver not finding all devices in HP D6020 enclosures
Message-ID:  <bug-271238-1689-IncBs4KaEY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271238-1689@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271238-1689@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271238

--- Comment #15 from Peter Eriksson <pen@lysator.liu.se> ---
Btw, for someone else trying to read the output from "mprutil show cfgpage"=
, it=20
prints the bytes backwards...

> # mprutil show cfgpage 0x15 0 1=20
> Page 0x15: Enclosure 0, Read-only
> 0000   0f 00 00 04  |....|
> 0004   00 15 00 0a  |....|
> 0008   00 00 00 00  |....|
> 000c   41 bb 92 80  |A...|
> 0010   50 01 43 80  |P.C.|
> 0014   00 02 00 14  |....|
> 0018   00 00 00 12  |....|
> 001c   00 60 00 00  |.`..|
> 0020   00 00 00 03  |....|
> 0024   00 00 00 00  |....|

Ie for each line it print bytes data[3], data[2], data[1], data[0]. Not qui=
te
the order one expects. I'm guessing whoever wrote the code used a machine w=
ith
a Big Endian CPU (like a SPARC) :-)

Ie "0014  00 02 00 14" should be read as:
 "00 02" =3D uint16 0x0002 at address 0x0016
 "00 14" =3D uint16 0x0014 at address 0x0014

"00 12" @ 0018 is the NumSlots (18 decimal) value that the HBA claims the
enclosure has.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271238-1689-IncBs4KaEY>