From nobody Thu Oct 19 16:37:53 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SBD0f4Yfkz4xdSH for ; Thu, 19 Oct 2023 16:37:54 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SBD0f2HKgz3K2Q for ; Thu, 19 Oct 2023 16:37:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697733474; a=rsa-sha256; cv=none; b=v7/R1nQrzZNEFFcdVSXxx3B9o/r4lSPjITRoVXpTw/WmNO6bKx11+vuj0VEdVqa5Q8KUK5 sDtndZYEAhl38ufjpMhr1VOtCzAULEH/JHf0IMCbTkb13kAno3mDQGiZQ2OQVTE4BmWiVI X/rWoaMOxU+kbga56aGYGYhml8o/vcU6inGNM3dfJdHDoPwZTLz4X3FfXDB5jaGgz3gSge 0z4tzb/vDxSAx5ul4RwIDUrqBfbVKiXFoUEWWeFohS3+HGE+sczGpHqlDIZH+/0pfZ8V9x oONXvZWufg35NmGwPYP5BzclmKela52ZknTlShvGSHhn7s7vXy7ou1+pHvQWkg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697733474; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SunKunXaGBz4sXmS1nM/7X9ZUWCUOAxHs4Pcc/VX21g=; b=wq9PXKCgtdtTbIA6WoP+GW9AJcMprnPTtl7uaBwlfUA7PogH1TUPDEYjiGh2g3WAZqXGtK ebEKei74rQFkZmfVda705xq65RRSYy2kdv6Tlc3oD6jN9nQBNNdeSHwiRgFU7k0HwymriI sKQcQG2U8joDddck8oIAC5dRHPJ2vVh+DOwi9bUmtry5OGP1R3Vk5/+QGCXkBv2BrJtP5M iIO5rkxon3R1qs+t5RChVfgnQgh71fDoVeyKi1JjKkqRra0L90zf/HliLpjBPpFEF69Y7W oNdMc4C08+u1J3M4GkV2y2cn6KH9UpggQXA2tBuyoHAHQUy6LY4R0JcPErvrRw== 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 4SBD0f1Gg5zx4f for ; Thu, 19 Oct 2023 16:37:54 +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 39JGbsHS025639 for ; Thu, 19 Oct 2023 16:37:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 39JGbsTr025638 for bugs@FreeBSD.org; Thu, 19 Oct 2023 16:37:54 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 273289] smartpqi: fix panic on removal of SAS drive Date: Thu, 19 Oct 2023 16:37:53 +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: 13.2-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273289 --- Comment #15 from John F. Carr --- I copied the latest driver from main (f07b267d8cc8) to my 13.2 system and verified there is no panic on removing and reinserting an SAS drive with INVARIANTS configured. [NOTE]:[ pqisrc_display_device_info ] [ 274 ]removed scsi BTL 0:8:0: SEAGA= TE=20 XS960SE70004 Physical SSDSmartPathCap- En- Exp+ qd=3D65535 [NOTE]:[ pqisrc_remove_device ] [ 1443 ]vendor: SEAGATE XS960SE70004 mo= del: XS960SE70004 bus:0 target:8 lun:0 is_physical_device:0x1 expose_device:= 0x1 volume_offline 0x0 volume_status 0x0=20 [WARN]:[67:655.0][0,8,0][CPU 0][pqisrc_wait_for_device_commands_to_complete][430]:Device Outstanding IO count =3D 0 [NOTE]:[ pqisrc_free_device ] [ 1643 ]Giving back target 8=20 [NOTE]:[ pqisrc_delete_softs_entry ] [ 363 ]Invalid device, either it was already removed or never added [NOTE]:[ pqisrc_free_device ] [ 1673 ]Removed memory for device : B 0: T 8:= L 0 da7 at smartpqi0 bus 0 scbus0 target 8 lun 0 da7: s/n HLJ03TL80000822150Z3 detached (da7:smartpqi0:0:8:0): Periph destroyed [NOTE]:[ pqisrc_add_softs_entry ] [ 288 ]Added device [7 of 10]: B 0: T 8: = L 0 [NOTE]:[ pqisrc_add_device ] [ 1420 ]vendor: SEAGATE XS960SE70004 model: XS960SE70004 bus:0 target:8 lun:0 is_physical_device:0x1 expose_device:= 0x1 volume_offline 0x0 volume_status 0x0=20 [NOTE]:[ pqisrc_display_device_info ] [ 274 ]added scsi BTL 0:8:0: SEAGATE= =20 XS960SE70004 Physical SSDSmartPathCap- En- Exp+ qd=3D65535 ses0: da7,pass8 in 'ArrayElement0007', SAS Slot: 1 phys at slot 8 ses0: phy 0: SAS device type 1 phy 7 Target ( SSP ) ses0: phy 0: parent 51402ec013d6a5b4 addr 5000c5003e85f2bd da7 at smartpqi0 bus 0 scbus0 target 8 lun 0 da7: Fixed Direct Access SPC-5 SCSI device da7: Serial Number HLJ03TL80000822150Z3 da7: 1200.000MB/s transfers da7: Command Queueing enabled da7: 915715MB (1875385008 512 byte sectors) --=20 You are receiving this mail because: You are the assignee for the bug.=