From owner-freebsd-bugs@freebsd.org Mon Dec 21 23:41:05 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7BB954C6FB0 for ; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4D0GFF2tQ3z4gHg for ; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 611E44C6D7A; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60E254C68FA for ; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D0GFF2DY8z4gNB for ; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3F6712A088 for ; Mon, 21 Dec 2020 23:41:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BLNf5Gh088161 for ; Mon, 21 Dec 2020 23:41:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0BLNf5De088160 for bugs@FreeBSD.org; Mon, 21 Dec 2020 23:41:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 243401] ahci driver problems with Marvell 88SE9230 (Dell BOSS-S1) Date: Mon, 21 Dec 2020 23:41:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pen@lysator.liu.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Dec 2020 23:41:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243401 --- Comment #4 from Peter Eriksson --- 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: 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 ahci2: Caps: 64bit NCQ 6Gbps PMD 32cmd 3ports ahci2: Caps2: ahcich14: at channel 0 on ahci2 ahcich14: Caps: CPD ahcich15: at channel 1 on ahci2 ahcich15: Caps: CPD ahcich16: 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: 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: 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: 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: 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.=