From owner-freebsd-bugs@freebsd.org Fri Sep 23 03:22:49 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6FB3BE5F1B for ; Fri, 23 Sep 2016 03:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D6824111D for ; Fri, 23 Sep 2016 03:22:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u8N3MnLl038510 for ; Fri, 23 Sep 2016 03:22:49 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 212914] CAM: SATA drives are getting deleted and then re-added after controller rescan Date: Fri, 23 Sep 2016 03:22:49 +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: 11.0-RC1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kashyap.desai@broadcom.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2016 03:22:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212914 Bug ID: 212914 Summary: CAM: SATA drives are getting deleted and then re-added after controller rescan Product: Base System Version: 11.0-RC1 Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: kashyap.desai@broadcom.com This issue is even common for LSI/Broadcom IT HBA (mpr driver), so looks to= be a common issue.=20 If you have SATA drive and just do "camcontrol rescan all", SATA disc is ad= ded and removed back by CAM layer. On FreeBSD11.0 RC1, we are facing an issue where SATA drives connected behi= nd LSI's MegaRAID controller getting deleted and added back after controller reset. I am using Broadcom/Avago/LSI's MegaRAID Invader controller(device ID- 0x005d). The point to note here is- this behavior is not observed with SAS drives on FreeBSD11.0-RC1. Also on FreeBSD10.3 this behavior is not at all observed on SATA as well. We are debugging the issue but it would be much helpful if we can get quick inputs/pointers. Please find below the detailed information- OS: FreeBSD 11.0 RC1 Controller: LSI's MegaRAID invader controller Connected devices list: root@freeBSD11:~ # camcontrol devlist at scbus5 target 0 lun 0 (pass0,ada0) at scbus6 target 0 lun 0 (ses0,pass1) at scbus8 target 51 lun 0 (da9,pass11)----------------------------------------->this is SATA drive wh= ich is getting deleted and re-added post controller reset at scbus8 target 163 lun 0 (da8,pass10) at scbus9 target 0 lun 0 (da6,pass8) at scbus9 target 1 lun 0 (da2,pass4) at scbus9 target 2 lun 0 (da0,pass2) at scbus9 target 3 lun 0 (da7,pass9) at scbus9 target 4 lun 0 (da3,pass5) at scbus9 target 5 lun 0 (da1,pass3) at scbus10 target 48 lun 0 (da4,pass6) at scbus10 target 54 lun 0 (da5,pass7) Relevant dmesg logs snippet(da9 is SATA drive which is getting deleted and added back): =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 mrsas0: Initiaiting OCR because of FW fault! mrsas0: Waiting for FW to come to ready state mrsas0: Jbod map is supported mrsas0: Reset successful da9 at mrsas0 bus 1 scbus8 target 51 lun 0 da9: s/n 9XE02AR2 detached (da9:mrsas0:1:51:0): Periph destroyed (da9:mrsas0:1:51:0): UNMAPPED (da9:mrsas0:1:51:0): fatal error, could not acquire reference count g_access(918): provider da9 has error g_access(918): provider da9 has error g_access(918): provider da9 has error (da9:mrsas0:1:51:0): UNMAPPED da9 at mrsas0 bus 1 scbus8 target 51 lun 0 da9: Fixed Direct Access SPC-4 SCSI device da9: Serial Number 9XE02AR2 da9: 150.000MB/s transfers da9: 238475MB (488397168 512 byte sectors) =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 --=20 You are receiving this mail because: You are the assignee for the bug.=