From owner-freebsd-scsi@freebsd.org Sun Dec 3 02:17:02 2017 Return-Path: Delivered-To: freebsd-scsi@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 5197BDBAA75 for ; Sun, 3 Dec 2017 02:17:02 +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 3C7F16532D for ; Sun, 3 Dec 2017 02:17:02 +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 vB32H2rv035585 for ; Sun, 3 Dec 2017 02:17:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Sun, 03 Dec 2017 02:17:02 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 02:17:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |DUPLICATE --- Comment #15 from Conrad Meyer --- *** This bug has been marked as a duplicate of bug 210316 *** --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Sun Dec 3 09:26:05 2017 Return-Path: Delivered-To: freebsd-scsi@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 EF0AFDF5634 for ; Sun, 3 Dec 2017 09:26:05 +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 DD441721D7 for ; Sun, 3 Dec 2017 09:26:05 +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 vB39Q5mv067145 for ; Sun, 3 Dec 2017 09:26:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Sun, 03 Dec 2017 09:26:05 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 09:26:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #16 from Andriy Gapon --- (In reply to Conrad Meyer from comment #13) Call me stubborn, but to me EACCESS is from the realm of software (logical) permissions, not from the realm of hardware access. I consider EACCESS and EPERM as two confusing twins. But my opinion is moot. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Sun Dec 3 11:28:52 2017 Return-Path: Delivered-To: freebsd-scsi@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 8452EDF8097 for ; Sun, 3 Dec 2017 11:28:52 +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 722DC754A5 for ; Sun, 3 Dec 2017 11:28:52 +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 vB3BSotV057179 for ; Sun, 3 Dec 2017 11:28:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Sun, 03 Dec 2017 11:28:51 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 11:28:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #17 from Andriy Gapon --- (In reply to Petr Leszkow from comment #7) I actually like the idea in this comment. I think that we need to fix a bug that leads to the geom_vfs / buffer-cache crash in any case. It might be also nice to add the r/o mount fallback mechanism. But on top of those things we could modify g_disk_access() to prevent the w= rite access altogether if a disk is in the write-protected mode. We could either add a new flag to flags in struct disk or, perhaps, a new parameter (open m= ode) to d_open. scsi_da could then use either WP bit (0x80) in the device-specific byte of = the mode parameter header (dev_spec field of scsi_mode_header_6 / scsi_mode_header_10) or SWP bit (SCP_SWP) in the Control mode page (0x0A) t= hat we query at PROBE_MODE_SENSE stage. I am not sufficiently fluent with CAM to implement the CAM (scsi_da) part. = The geom_disk part is rather trivial, of course. P.S. It seems that scsi_sa.c already queries bit 7 in dev_spec, so that's an example. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Sun Dec 3 17:33:52 2017 Return-Path: Delivered-To: freebsd-scsi@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 E0F51E57A6D for ; Sun, 3 Dec 2017 17:33:52 +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 CECBB80088 for ; Sun, 3 Dec 2017 17:33:52 +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 vB3HXpO7063995 for ; Sun, 3 Dec 2017 17:33:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Sun, 03 Dec 2017 17:33:51 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 17:33:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #18 from Conrad Meyer --- (In reply to Andriy Gapon from comment #17) > I think that we need to fix a bug that leads to the geom_vfs / buffer-cac= he > crash in any case. Agreed. That's my focus with this chain of duplicated bugs. > It might be also nice to add the r/o mount fallback mechanism. Yes, although that is an orthogonal enhancement, IMO, and met some resistan= ce in the earlier attempt. If mount fails with EROFS or EACCES or whatever and dmesg contains the same CAM errors they do now, I think sysamdmins will fig= ure it out. > But on top of those things we could modify g_disk_access() to prevent the= write > access altogether if a disk is in the write-protected mode. Yeah, that makes sense too. It would reduce the complexity required in hig= her level layers. Instead of having to wait for the first IO to fail (probably whatever sets the dirty flag on a superblock), filesystems that rely on the underlying device to be a GEOM object (e.g., msdosfs) will encounter an err= or trying to g_access() (via g_vfs_open(..., 1)) the underlying disk writable. That would also solve the initial bug without having to change the filesyst= em level at all. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Sun Dec 3 17:36:20 2017 Return-Path: Delivered-To: freebsd-scsi@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 E05EDE57CD0 for ; Sun, 3 Dec 2017 17:36:20 +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 CE410802B5 for ; Sun, 3 Dec 2017 17:36:20 +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 vB3HaKUH067570 for ; Sun, 3 Dec 2017 17:36:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Sun, 03 Dec 2017 17:36:21 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 17:36:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #19 from Conrad Meyer --- So for (3), what is the right way to expose media readonly status to GEOM f= rom CAM? --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Sun Dec 3 22:55:27 2017 Return-Path: Delivered-To: freebsd-scsi@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 F184AE6B089 for ; Sun, 3 Dec 2017 22:55:27 +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 DF5596D36D for ; Sun, 3 Dec 2017 22:55:27 +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 vB3MtR1x053278 for ; Sun, 3 Dec 2017 22:55:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224064] [nvme][hang][resume] nvme_ctrlr_wait_for_ready called with desired_val = 0 but cc.en =1 Date: Sun, 03 Dec 2017 22:55:27 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cc 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-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2017 22:55:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224064 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-scsi@FreeBSD.org CC| |cem@freebsd.org, | |imp@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Mon Dec 4 00:38:35 2017 Return-Path: Delivered-To: freebsd-scsi@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 E8E24E6E16E; Mon, 4 Dec 2017 00:38:35 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from symbion.zaytman.com (inet-64-112-176-10.bos.netblazr.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B07470955; Mon, 4 Dec 2017 00:38:31 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id vB40cPRB000968 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 3 Dec 2017 19:38:25 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.1.10]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id vB40cO9C073348; Sun, 3 Dec 2017 19:38:24 -0500 (EST) (envelope-from mi+thun@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.1.10] claimed to be aldan.narawntapu To: freebsd-fs , freebsd-scsi@FreeBSD.org Cc: Alexander Motin From: "Mikhail T." Subject: Is Intel ESB2-controller SAS-compatible? Message-ID: <2abfc6e8-3c4c-028c-642d-39a912180ba7@aldan.algebra.com> Date: Sun, 3 Dec 2017 19:38:24 -0500 MIME-Version: 1.0 Content-Language: en-US X-DCC-Etherboy-Metrics: narawntapu 1002; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-2.9 required=7.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on narawntapu.narawntapu Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 00:38:36 -0000 Hello! I got a really good deal on a SAS-drive. Will it work -- (assuming, I use a SAS-to-SATA connection adapter) with the Intel ESB2 controller I have on the motherboard? Reportedly, some controllers are actually "hybrid"... Thanks! Yours, -mi From owner-freebsd-scsi@freebsd.org Mon Dec 4 00:56:21 2017 Return-Path: Delivered-To: freebsd-scsi@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 9A2A4E6EB73; Mon, 4 Dec 2017 00:56:21 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-yb0-x22c.google.com (mail-yb0-x22c.google.com [IPv6:2607:f8b0:4002:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 50670714DE; Mon, 4 Dec 2017 00:56:21 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: by mail-yb0-x22c.google.com with SMTP id i206so5981629ybc.10; Sun, 03 Dec 2017 16:56:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0mezz8JKt7ryn4lSLAEfpP5MSovnQo5+1B4/w7Z/uV4=; b=KVY4n0aWVqfAeSKfnTJr2ZGO5SV9TSbptjrp9WqoTsQwa48vd8robS5SpWRyXYPA/B b6aFaPoo0k1iqDDdzdz/PcKHeQGCybxbQQjeW1KMzC7vC6f7uQ30PG9fpp1+eW90IjIF Xo3tjYqlR7qiRb7/Zg6V5W9frzbRH1kDUQmDm/P27oSupLKpjxeGlLmUB+9Dx+FebnML FkPT/D3y/9Wif+0BKwHCC1ag+GsDfxxuyWsI9tAw/qz4HsUXspF7MNUNIJYNfFj/MmDu kqvvkXeeSyVCD9T3QYNZUlUIcxU9jSXwI7/rC92p01XN2KJenvY+sjIzbqpn/O2wCSI1 9x0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0mezz8JKt7ryn4lSLAEfpP5MSovnQo5+1B4/w7Z/uV4=; b=HiLdsEFxfCy7dyFTJPwfNvPuLVQX+2IY7kjmCh/nCe12F7vfnW5RAuG5PHuOtrmfBc Bix4/3R49E140u+JEggMFXZyFnYbhuy3PNtViSUl4AMzCA+Ui/6bRWDtSo2Q44RL2+4V A2r9QQOIjntAkT60QepzA9sTGTVbCYifXHlTGBQOg70sZVr7YNNl9UqEmL7ZpJcHgjpt 9XyyQl90gONpRsysRr04Rvbi8uY5LBtU+8c2UMFHeRHMdNqZ1oVL/5Mm2nlP6P1Refcp I2m0EipFeVtCIv5/E0W2849ZdIyM4vlYM9n7ggiHm0KFpdyRB3EwnvSf41C6JY5PL4DK W/3w== X-Gm-Message-State: AJaThX6m2MlHT/kFpU2up5e0K6R313c+aEmC5SGhl2FrxxIA5sNrk1Ss sfznoQpTq8xXSL8ko2fe769wNVpH X-Google-Smtp-Source: AGs4zMaICe982VcaOepvErsHOzYMao0E0grZ28wrGMZcL06TIRy9eo1s2cW9DMeT2PMAgSYVbSsVwg== X-Received: by 10.37.239.5 with SMTP id g5mr8296538ybd.384.1512348980190; Sun, 03 Dec 2017 16:56:20 -0800 (PST) Received: from spectre.mavhome.dp.ua ([216.238.24.142]) by smtp.gmail.com with ESMTPSA id e124sm5531327ywc.100.2017.12.03.16.56.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 16:56:19 -0800 (PST) Sender: Alexander Motin Subject: Re: Is Intel ESB2-controller SAS-compatible? To: "Mikhail T." , freebsd-fs , freebsd-scsi@FreeBSD.org References: <2abfc6e8-3c4c-028c-642d-39a912180ba7@aldan.algebra.com> From: Alexander Motin Message-ID: <61ace71d-9b1f-8baa-b49e-ec0a4cb56616@FreeBSD.org> Date: Mon, 4 Dec 2017 02:56:18 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <2abfc6e8-3c4c-028c-642d-39a912180ba7@aldan.algebra.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 00:56:21 -0000 Hi. On 04.12.2017 02:38, Mikhail T. wrote: > I got a really good deal on a SAS-drive. Will it work -- (assuming, I > use a SAS-to-SATA connection adapter) with the Intel ESB2 controller I > have on the motherboard? Reportedly, some controllers are actually > "hybrid"... No. Intel ESB2 includes SATA HBA, it won't work for SAS drives. Compatibility exists in other way -- SATA disks can be connected to SAS controller. Connection adapters (interposers) I saw are also assume SAS HBA and SATA HDD. -- Alexander Motin From owner-freebsd-scsi@freebsd.org Mon Dec 4 01:20:34 2017 Return-Path: Delivered-To: freebsd-scsi@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 04DEAE6FB7D for ; Mon, 4 Dec 2017 01:20:34 +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 E73E0726AD for ; Mon, 4 Dec 2017 01:20:33 +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 vB41KWId053040 for ; Mon, 4 Dec 2017 01:20:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Mon, 04 Dec 2017 01:20:32 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 01:20:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #20 from Conrad Meyer --- (In reply to Conrad Meyer from comment #19) We could export it via the d_getattr method, which for SCSI is dagetattr().= Or more simply, we could put it in d_flags, set via e.g. daregister (again, for SCSI). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Mon Dec 4 10:33:17 2017 Return-Path: Delivered-To: freebsd-scsi@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 28BBFDF79AB for ; Mon, 4 Dec 2017 10:33:17 +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 0CF8C2854 for ; Mon, 4 Dec 2017 10:33:17 +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 vB4AXFsc032990 for ; Mon, 4 Dec 2017 10:33:16 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Mon, 04 Dec 2017 10:33:15 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 10:33:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #21 from Andriy Gapon --- (In reply to Conrad Meyer from comment #20) Please see my proof of concept based on the second approach: https://reviews.freebsd.org/D13360 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Mon Dec 4 17:10:21 2017 Return-Path: Delivered-To: freebsd-scsi@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 BE489E5E295 for ; Mon, 4 Dec 2017 17:10:21 +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 88EDA70A8B for ; Mon, 4 Dec 2017 17:10:21 +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 vB4HALCA058920 for ; Mon, 4 Dec 2017 17:10:21 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Mon, 04 Dec 2017 17:10:21 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: scottl@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 17:10:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 Scott Long changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |scottl@FreeBSD.org --- Comment #22 from Scott Long --- Please use getattr, don't use flags. For things like this that are used on= ly at initialization, it's fine to use a slow path method like getattr. Save flags for things that are more critical. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Mon Dec 4 17:19:48 2017 Return-Path: Delivered-To: freebsd-scsi@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 2A170E5E892 for ; Mon, 4 Dec 2017 17:19:48 +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 1694D713D5 for ; Mon, 4 Dec 2017 17:19:48 +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 vB4HJliE081595 for ; Mon, 4 Dec 2017 17:19:47 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-scsi@FreeBSD.org Subject: [Bug 224037] Kernel crashes when trying to mount certain USB keys reported as WriteProtected Date: Mon, 04 Dec 2017 17:19:48 +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: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: avg@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-scsi@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 MIME-Version: 1.0 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2017 17:19:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224037 --- Comment #23 from Andriy Gapon --- (In reply to Scott Long from comment #22) Scott, I envisioned that g_disk_access would act on the WP bit and I am not sure if using d_getattr there would be really convenient as it requires setting up a bio, etc. On the other hand, I think that it would be nice to expose the write-protect status via a GEOM attribute for other uses. Another question is whether it should scsi_da code that queries the WP bit = or whether it should be scsi_xpt. Right now dagetattr is short-circuited to xpt_getattr. But it doesn't have to be, of course. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-scsi@freebsd.org Wed Dec 6 01:56:57 2017 Return-Path: Delivered-To: freebsd-scsi@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 5D5FEE8B523 for ; Wed, 6 Dec 2017 01:56:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A6237D6AA for ; Wed, 6 Dec 2017 01:56:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x234.google.com with SMTP id q15so916271ioh.2 for ; Tue, 05 Dec 2017 17:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to; bh=qCN1FiHyMVKFtDljksCA6A19zbYcRKVKdEIm2soP1k4=; b=ZLWycycxculwSnprAulIhsXIdYbjNn/C1zImjUG1pCmNqSYNgNTQ0bBibubjDnSbEn iERNk3El5I32BpcZNL3IWT8VWrb4y01OKjyk7rXRbRXXFpy4nZCNIH0x1NECuZB9895u 0ne5lxZ87jnKqzw+jh1WVh1TOS8LrXQ6HtMzgx/6zX5xVlWB9Xhv2SaOJdZ+8pvGvnz5 bmh/xm7iAHzCTUGVzH9fBIcXAzTbk/B/pJhvtxizBBJC3ZFbonE1SLdjAbj79SGwLTS7 Y2G/CRuLb4UNjuisD7i1LGPes1syZlooHAw+AAagnYWUIL/yAnEI8u1+ZAOGFOymRrx4 m4oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=qCN1FiHyMVKFtDljksCA6A19zbYcRKVKdEIm2soP1k4=; b=RiaJIP/GdjmYEkA0fhzR3/ifcUFOsjyzvcUdeu/tsXIfyDyqVwGWb5cGJhO96Am/TG 95ZcXpchQ10j1ZJalHWekXNJ9kx+PxXOMyGXD1z8qUe3aDG/lDdoSOSYvcIQJ069EJ2j zX0V5rlv/VWbhHJKO34dTZjugojYepEzyZLrcHRIAcyddmK3xsk8aJX5Hm7hB+0fi3LW SQAehir9dN20xLuJ5rrvvlwAh+r3CxEAKv35R4VnU3Sm57/cQ0Bt9v/tRFi4KXpNTbYZ 6BJJkQPrQHPtJ9l2SOVicHi9Z3RXCStuDgkoNsbr8RSrzCFTp/nxrO9UZFCEqVOCeq1D 3qyg== X-Gm-Message-State: AJaThX5RDsSeNI99ef/QgQnkcIuMJPHsPw0E1vv8Qf4ifJ53n6X/jlks TtIDulUF4aPRG4sOarmlDf1PdhwITbRUcxnspKLZX18z X-Google-Smtp-Source: AGs4zMasrWzYPw3bpYw8ZP+5RlrLhIJBt0WKrPIEl8GFSBhqtYjWJxchOG1kl/aG8E9qM/yubvVmn+p+96zfVnl9nPo= X-Received: by 10.107.104.18 with SMTP id d18mr28722615ioc.136.1512525415893; Tue, 05 Dec 2017 17:56:55 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Tue, 5 Dec 2017 17:56:55 -0800 (PST) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] From: Warner Losh Date: Tue, 5 Dec 2017 18:56:55 -0700 X-Google-Sender-Auth: w5LkrJMAhWoLXe5u692_iteECEc Message-ID: Subject: Minor CAM cleanups To: freebsd-scsi Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2017 01:56:57 -0000 Just a heads up... Here's a couple of minor cam cleanups... https://reviews.freebsd.org/D13387 -- creates a xpt_path_inq() wrapper function https://reviews.freebsd.org/D13388 -- Makes cam_periph_runccb polling safe and simplifies the dump code because of it. Both are net wins. If xpt_path_inq works out, I expect to do it for other common queries since it makes the code a lot easier to read... Warner