Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp1274951rbe; Fri, 1 Mar 2024 09:07:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGOFeMl+qRHeXHdt8ph7NgMAGStBCM18Ue4a3vfXY2uqbXXFIpJsLCC8hTjikmK4nw/FeOdWGQCDtraR8zxxxv+2io4iU+o3UoIHPMRg== X-Google-Smtp-Source: AGHT+IFS98cwHO83nTz9FjkuxLZ/dGNA+qxXnDgx1utv9l2F/4ssIO5129pg73fFLLQKp2q5zDCI X-Received: by 2002:a17:906:8d6:b0:a44:3056:1ed0 with SMTP id o22-20020a17090608d600b00a4430561ed0mr1748372eje.62.1709312857916; Fri, 01 Mar 2024 09:07:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709312857; cv=pass; d=google.com; s=arc-20160816; b=LNHHwZFvPslwO/1gI31yZvJ3P9z/57403a86urN/52aQTcEScuBMoS8HRA3Y4DqVI3 oGeCyU6EDPXeGb7y2RW1vFZJHENC51WAgW7kP0YYcwt9D7W9vxz7Cl4vuqV1SqMo9EFn IVnYJw3uMvFwy3oPW9cEUthD9Gk/AfVGssXMhpCq8WNEBTuFix01sON88RTGEMRoVkdu g85cXwSzeLXrS1X73P+gU72qinihpovZnX7h9HphJYVRaclpQDKyJbk1HGuBrgBprS3v oOrFbz9sjNsPktYCMTaXrBidSC4eMxasOm/iKIPBLfFimrqSlaNrJe2SqGD6pNfKP5CJ BgiQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=bIo1KCw7ZxdmfgCfGv8eVZlqSF/iqLJ3syGfh7C4OAs=; fh=8MeedehL+Go/K642bsBRlGiwNsLp8ASx9otEgjEmA+M=; b=CHaBkQ/zqbi/Bz6SivInE1gyvyrymorKACBvJysYpU09+fkFfVp9+YpKdId6occ/YR iGXRU47IphjzDKVr7DKUlIwihfacjT4m14e+iS7ckqJNA882FCqGkiqHAcW8zWcCQ0Zh m8hpDq4LOpRmvCAsscA9FjuVtFcw8BgeW0CccEkaakTsbZJ45h9ZaDAILnHv9wH+XN96 kyk38KkzbfO+u18v8He56qMR8N5VpyIpAm7AD7HNVzLOo/abY+7H1V42LzOHcMR3QdRm HveEdAZwohCqTkdw1EMl7oTbtY3/OSuXFZKKlwG/gKAGOEa7MKlJiIbePZ4SPym+IXzT LKww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-88779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s4-20020a17090699c400b00a4486655b3fsi763481ejn.596.2024.03.01.09.07.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:07:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=netrider.rowland.org); spf=pass (google.com: domain of linux-kernel+bounces-88779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88779-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=harvard.edu Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6C83B1F2A10C for ; Fri, 1 Mar 2024 16:58:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AA1BD39FDD; Fri, 1 Mar 2024 16:53:54 +0000 (UTC) Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by smtp.subspace.kernel.org (Postfix) with SMTP id C885D39AD4 for ; Fri, 1 Mar 2024 16:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.131.102.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709312034; cv=none; b=KGissv3ofjdzKPQ1e7gUJ5mBC1XQMHFXheE3AMrUyICOOjCo3ci6miQ58Xax5KXxkBlXsED2Esam2bYa7QBjKs/p64FCRLn+Ro7KS+WOlhChEIQnmkbuUa/bXG2A2SaTWnbO8dZVri9OAZEQmX2M8r6OTb7Neqie2JUzwSgyxRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709312034; c=relaxed/simple; bh=29SVKj6G+k0fROpoD+ltEVOKHLMNDqiZ/KNCqWGiZI0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CTzbpmda0eD98RKcYvFEgcY8xNiKL+1aBK76A5gn5/CIGG0fzRN1RE1oab7YsHlAjTaseyVsINb7JRcOhKQT+gp17I+oTC9Fc1RJxfX9BZ7wNjT1Jr/4ew+SJau3UMyxZOSFW0S6peGl/EWdKPUucLGC/m2UY1yr7GMo3//5Lcw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu; spf=pass smtp.mailfrom=netrider.rowland.org; arc=none smtp.client-ip=192.131.102.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=rowland.harvard.edu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=netrider.rowland.org Received: (qmail 39476 invoked by uid 1000); 1 Mar 2024 11:53:45 -0500 Date: Fri, 1 Mar 2024 11:53:45 -0500 From: Alan Stern To: Tom Hu Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net Subject: Re: [PATCH] usb-storage: Add Brain USB3-FW to IGNORE_UAS Message-ID: References: <20240226075936.1744353-1-huxiaoying@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240226075936.1744353-1-huxiaoying@kylinos.cn> On Mon, Feb 26, 2024 at 03:59:36PM +0800, Tom Hu wrote: > The UAS mode of BRAIN USB_HDD is reported to fail to work on several > platforms with the following error message, then after re-connecting the > device will be offlined and not working at all. > > [ 622.518442][ 2] sd 8:0:0:0: [sda] tag#17 uas_eh_abort_handler 0 uas-tag 18 > inflight: CMD > [ 622.527575][ 2] sd 8:0:0:0: [sda] tag#17 CDB: Write(10) 2a 00 03 6f 88 00 00 > 04 00 00 > [ 622.536330][ 2] sd 8:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 1 > inflight: CMD > [ 622.545266][ 2] sd 8:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 07 44 1a 88 00 > 00 08 00 > > These disks have a broken uas implementation, the tag field of the status > iu-s is not set properly, so we need to fall-back to usb-storage. > > Signed-off-by: Hu Xiaoying > 1 What is that 1? > --- > drivers/usb/storage/unusual_uas.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/usb/storage/unusual_uas.h b/drivers/usb/storage/unusual_uas.h > index 1f8c9b16a0fb..98b7ff2c76ba 100644 > --- a/drivers/usb/storage/unusual_uas.h > +++ b/drivers/usb/storage/unusual_uas.h > @@ -83,6 +83,13 @@ UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999, > USB_SC_DEVICE, USB_PR_DEVICE, NULL, > US_FL_NO_REPORT_LUNS), > > +/* Reported-by: Tom Hu */ > +UNUSUAL_DEV(0x1234, 0x1234, 0x0000, 0x9999, The vendor and product ID values have a suspicious look, but they appear to be genuine. > + "Brain", > + "External HDD", > + USB_SC_DEVICE, USB_PR_DEVICE, NULL, > + US_FL_IGNORE_UAS), > + > /* Reported-by: Benjamin Tissoires */ > UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999, > "Initio Corporation", > -- > 2.25.1 Acked-by: Alan Stern Alan Stern