From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C981EC2D0A3 for ; Mon, 9 Nov 2020 11:21:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E147206A4 for ; Mon, 9 Nov 2020 11:21:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729542AbgKILVd convert rfc822-to-8bit (ORCPT ); Mon, 9 Nov 2020 06:21:33 -0500 Received: from avasout03.plus.net ([84.93.230.244]:49831 "EHLO avasout03.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbgKILVd (ORCPT ); Mon, 9 Nov 2020 06:21:33 -0500 Received: from APOLLO ([212.159.61.44]) by smtp with ESMTPA id c5EmkQQQ899nqc5EokihfX; Mon, 09 Nov 2020 11:21:31 +0000 X-Clacks-Overhead: "GNU Terry Pratchett" X-CM-Score: 0.00 X-CNFS-Analysis: v=2.3 cv=Uoz4y94B c=1 sm=1 tr=0 a=AGp1duJPimIJhwGXxSk9fg==:117 a=AGp1duJPimIJhwGXxSk9fg==:17 a=IkcTkHD0fZMA:10 a=iox4zFpeAAAA:8 a=VwQbUJbxAAAA:8 a=Lkthg0g8UsnYpIhIs2EA:9 a=QEXdDO2ut3YA:10 a=WzC6qhA0u3u7Ye7llzcV:22 a=AjGcO6oz07-iQ99wixmX:22 X-AUTH: perdrix52@:2500 From: "David C. Partridge" To: "'Oliver Neukum'" , References: <004f01d6b5bd$d4f08ff0$7ed1afd0$@perdrix.co.uk> <001601d6b67d$e97a1e30$bc6e5a90$@perdrix.co.uk> In-Reply-To: Subject: RE: Issues with LaCie USB3 drive and UAS Date: Mon, 9 Nov 2020 11:21:28 -0000 Message-ID: <001b01d6b68a$79937fa0$6cba7ee0$@perdrix.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQEj7PcoQVookx4f1d3/LPoLd4O7AAH2dKS3AXO3T8ACPDV8Aar4B6wQ Content-Language: en-gb X-CMAE-Envelope: MS4wfJsdUCm72/WDaTunszwaykakj/6chGeYceF+k+eV6xFaAk2scSLypubodwby/HETZ5g4yI8pNg9OtWYFajgSUSqSXOMVx5HR9nu2J/Zx/f3hBXs9xOkE Sdc/GSHedcug3TKkEEqhi0D/Ui2dlsPGFhc9YyZNtvkhP4JaZ8bdTSsyLac3j+PTAs7ehxBu2+AcKg== Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Please could I ask you to provide detailed instructions on how to blacklist UAS for just this device? Thanks Daivd -----Original Message----- From: Oliver Neukum [mailto:oneukum@suse.com] Sent: 09 November 2020 10:14 To: David C. Partridge; linux-usb@vger.kernel.org Subject: Re: Issues with LaCie USB3 drive and UAS Am Montag, den 09.11.2020, 09:51 +0000 schrieb David C. Partridge: > I'm sure you are right in your diagnosis (absent any knowledge to the contrary). It is a guess, merely. Based on long woefull experience with the quality of some hardware. > Now what's the treatment? Use WRITE, not WRITE SAME. That is a task of the SCSI layer, not UAS. > Would uas black-list provide a work-araound? If so a detailed recipe will be needed by me ... Indirectly. The storage driver sets no_write_same. UAS does not. It looks like UAS will need a kernel patch for that. > Fix to the code? Ideal, but takes lots longer, so a work-around may be needed for a while Very well. For experimentation, please try blacklisting UAS. If that fails I have guessed wrong. If it works, I will make a test patch. Regards Oliver