From owner-freebsd-bugs@freebsd.org Sat May 2 11:01:12 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 BFE512CBD82 for ; Sat, 2 May 2020 11:01:12 +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 49DmQ04kSjz43S5 for ; Sat, 2 May 2020 11:01:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id A03542CBD81; Sat, 2 May 2020 11:01:12 +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 9FF5B2CBD7E for ; Sat, 2 May 2020 11:01:12 +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) server-signature RSA-PSS (4096 bits) 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 49DmQ03pFyz43S4 for ; Sat, 2 May 2020 11:01:12 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7E03620A3C for ; Sat, 2 May 2020 11:01:12 +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 042B1CVk072872 for ; Sat, 2 May 2020 11:01:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 042B1COP072871 for bugs@FreeBSD.org; Sat, 2 May 2020 11:01:12 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 246119] ahci: MFC of r359499 in 12.1-STABLE r359972 breaks cd device detection on JMicron JMB362 Date: Sat, 02 May 2020 11:01:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rk@ronald.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2020 11:01:12 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246119 Bug ID: 246119 Summary: ahci: MFC of r359499 in 12.1-STABLE r359972 breaks cd device detection on JMicron JMB362 Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: rk@ronald.org The following MFC in r359972 breaks the detection of cd0 on the JMB362 ahci controller on 12.1-STABLE: MFC r359499: Add ID for JMicron JMB582/JMB585 AHCI controller. JMB582 has 2 6Gbps SATA ports and PCIe 3.0 x1. JMB585 has 5 6Gbps SATA ports and PCIe 3.0 x2. Both chips support AHCI v1.31, Port Multiplier with FBS and 8 MSI vectors. Before that change (e.g. r359957): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D pci3: on pcib3 atapci1: port 0xc040-0xc047,0xc030-0xc033,0xc020-0xc027,0xc010-0xc013,0xc000-0xc00f mem 0xfe510000-0xfe5101ff irq 46 at device 0.0 on pci3 ahci1: at channel -1 on atapci1 ahci1: AHCI v1.10 with 2 3Gbps ports, Port Multiplier supported ahcich2: at channel 0 on ahci1 ahcich3: at channel 1 on ahci1 ... cd0 at ahcich3 bus 0 scbus3 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number 2512075 216211500893 cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - t= ray closed -> cd0 is detected, all is well With r359972: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D pci3: on pcib3 ahci1: port 0xc040-0xc047,0xc030-0xc033,0x c020-0xc027,0xc010-0xc013,0xc000-0xc00f mem 0xfe510000-0xfe5101ff irq 46 at devi ce 0.0 on pci3 ahci1: AHCI v1.10 with 2 3Gbps ports, Port Multiplier supported ahcich2: at channel 0 on ahci1 ahcich3: at channel 1 on ahci1 ... Root mount waiting for: CAM [repeated for multiple seconds] ... ahcich3: Poll timeout on slot 1 port 15 ahcich3: is 00000000 cs 00000002 ss 00000000 rs 00000002 tfd 77 serr 000000= 00 cm d 0004c117 Root mount waiting for:(aprobe1:ahcich3:0:15:0): SOFT_RESET. ACB: 00 00 00 = 00 00 00 00 00 00 00 00 00 CAM(aprobe1:ahcich3:0:15:0): CAM status: Command timeout (aprobe1:ahcich3:0:15:0): Error 5, Retries exhausted Root mount waiting for: CAM last message repeated 15 times ahcich3: Poll timeout on slot 2 port 0 ahcich3: is 00000000 cs 00000004 ss 00000000 rs 00000004 tfd 77 serr 000000= 00 cm d 0004c217 (aprobe0:ahcich3:0:0:0): SOFT_RESET. ACB: 00 00 00 00 00 00 00 00 00 00 00 = 00 (aprobe0:ahcich3:0:0:0): CAM status: Command timeout (aprobe0:ahcich3:0:0:0): Error 5, Retries exhausted --> no cd0 detected, hence unusable --=20 You are receiving this mail because: You are the assignee for the bug.=