Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2020 23:41:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 243401] ahci driver problems with Marvell 88SE9230 (Dell BOSS-S1)
Message-ID:  <bug-243401-227-szUteJdMyg@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243401-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243401-227@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=3D243401

--- Comment #4 from Peter Eriksson <pen@lysator.liu.se> ---
Created attachment 220793
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D220793&action=
=3Dedit
Patch for AHCI driver to make Dell BOSS-S1 detect unconfigure disks

Please find enclosed a patch that makes (atleast on my Systems) FreeBSD 12.2
detect unconfigured disks on a Dell BOSS-S1 card running the latest Dell
firmware (v7).

The patch basically increases the time limit for the loop when
initializing/probing the card for devices. It seems with firmware v5 and la=
ter
the card takes a lot longer to detect disks after a reset.

The patch also adds a "debug.ahci_verbose" flag and adds some more verbose
prints so one can "follow" what happens at probe time.=20

With firmware v4 (and an older version of the patch without modified timeou=
ts)
the probing looks like this:

ahcich14: AHCI reset...
ahcich14: SATA status changed 00000133
ahcich14: SATA connect time=3D0us status=3D00000133
ahcich14: AHCI reset: device found
ahcich14: AHCI reset: device ready after 0ms
ahcich15: AHCI reset...
ahcich15: SATA status changed 00000133
ahcich15: SATA connect time=3D0us status=3D00000133
ahcich15: AHCI reset: device found
ahcich15: AHCI reset: device ready after 0ms
ahcich16: AHCI reset...
ahcich16: SATA status changed 00000113
ahcich16: SATA connect time=3D0us status=3D00000113
ahcich16: AHCI reset: device found
ahcich16: AHCI reset: device ready after 0ms

With the latest firmware and this patch in use:

ahci2: <Marvell 88SE9230 AHCI SATA controller> port
0x7028-0x702f,0x7034-0x7037,0x7020-0x7027,0x7030-0x7033,0x7000-0x701f mem
0xab200000-0xab2007ff at device 0.0 numa-domain 0 on pci6
ahci2: AHCI v1.20 with 3 6Gbps ports, Port Multiplier not supported
ahci2: quirks=3D0x200900<NOBSYRES,ALTSIG,MRVL_SR_DEL>
ahci2: Caps: 64bit NCQ 6Gbps PMD 32cmd 3ports
ahci2: Caps2:

ahcich14: <AHCI channel> at channel 0 on ahci2
ahcich14: Caps: CPD
ahcich15: <AHCI channel> at channel 1 on ahci2
ahcich15: Caps: CPD
ahcich16: <AHCI channel> at channel 2 on ahci2
ahcich16: Caps: CPD

ahcich14: AHCI reset...
ahcich14: SATA status changed 00000000
ahcich14: SATA status changed 00000001
ahcich14: SATA status changed 00000133
ahcich14: SATA connect timeout time=3D212300us status=3D00000133
ahcich14: AHCI reset: device not found

ahcich15: AHCI reset...
ahcich15: SATA status changed 00000000
ahcich15: SATA status changed 00000001
ahcich15: SATA status changed 00000133
ahcich15: SATA connect timeout time=3D212000us status=3D00000133
ahcich15: AHCI reset: device not found

ahcich16: AHCI reset...
ahcich16: SATA status changed 00000000
ahcich16: SATA status changed 00000113
ahcich16: SATA connect time=3D100us status=3D00000113
ahcich16: AHCI reset: device found
ahcich16: AHCI reset: device ready after 0ms
ahcich16: stopping AHCI engine failed

pass2 at ahcich16 bus 0 scbus18 target 0 lun 0
pass2: <Marvell Console 1.01> Removable Processor SCSI device
pass2: Serial Number HKDP221516WL
pass2: 150.000MB/s transfers (SATA 1.x, UDMA4, ATAPI 12bytes, PIO 8192bytes)

ada0 at ahcich14 bus 0 scbus16 target 0 lun 0
ada0: <MTFDDAV480TDS D3DJ004> ACS-4 ATA SATA 3.x device
ada0: Serial Number 202729652D1E
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 457862MB (937703088 512 byte sectors)

ada1 at ahcich15 bus 0 scbus17 target 0 lun 0
ada1: <MTFDDAV480TDS D3DJ004> ACS-4 ATA SATA 3.x device
ada1: Serial Number 202729652D52
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 457862MB (937703088 512 byte sectors)

pass4 at ahcich16 bus 0 scbus18 target 0 lun 0
pass4: <Marvell Console 1.01> Removable Processor SCSI device
pass4: Serial Number HKDP221516WL
pass4: 150.000MB/s transfers (SATA 1.x, UDMA4, ATAPI 12bytes, PIO 8192bytes)

(It still claims no device found but they do show up anyway so the patch
probably needs some more fine-tuning, but atleast one can access the disks
now...)

Note the: "time=3D212300us"

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243401-227-szUteJdMyg>