Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1940340ybz; Sun, 26 Apr 2020 07:36:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJLwjSFrV5Qzgn/1NQhil3su/jBI/LHDkIU3yyIQXLZY86EuNG5RFb1eS8pix5vssLRGc+p X-Received: by 2002:a17:906:4542:: with SMTP id s2mr16219282ejq.34.1587911791177; Sun, 26 Apr 2020 07:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587911791; cv=none; d=google.com; s=arc-20160816; b=Z9JhXq748KPpy+ZRRsiV+V3ZW+9nxf4ne3GBEiG3DS37HmZ2dMfRKBv3B9PuthkY9M 5s15tIj0/T1qXx7EnoX6hYWNBTCqPX17Hx844i0/aFAfC3uA/S7c4Y82wV3VfgPorLjg MkVop4s1WlVIk4K/urBc+GtVBNvy6Hz1vRzEeBY+aqzIio+F3iJecHPv6WcjSQm3RSoa Q9PIXc9ILCAaTceUigO3pnGDVLr1NdptA8mqGLI4CNzNLGB3JjqO4ZjZqjB6lvPUs1wT zb1SnBGv9BT6g+QluWFzicwCNCVKhPdImjg1jDu8bSjWZugtyH+c1WYOwB1PoKzezhaM fBow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=W00tm+2NJTmcp2uOFqLjFkC3Kxl+1orYPZ1Qu+Zdrw4=; b=GxqgF7cJtg2or1D1SBvjsHRa2gNvgAjWBRYWa+P9SbSdkpDtlVdujHMY7UpNzdVbNU tbOiGBR3qxneFBt7UaMe7N1D/0trWo+0dkhIPuB/70QLWMELpjbJ9F7NGcpimUoZIpck 2Dgz8VgQZzTq803+b1hBbFHCRNGPXDv+eqM62FNrKxHoV0CkjEz+exmiL0G1sp06vHz0 Se3if88/ZA5asRZ2FqJC62rWyCRM0C417ZB53I8VL1WsQhaok0FXx3IQZ9ZCouhudUA7 ZFCb937DPzKf1yO6dAKXc1ewLI+56njn5ztXjyiav1Bt6S96tolF1Z49N5RKnyF+K9Oy bmCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si6908213ejr.264.2020.04.26.07.36.07; Sun, 26 Apr 2020 07:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726189AbgDZOcA (ORCPT + 99 others); Sun, 26 Apr 2020 10:32:00 -0400 Received: from netrider.rowland.org ([192.131.102.5]:49747 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1725876AbgDZOb7 (ORCPT ); Sun, 26 Apr 2020 10:31:59 -0400 Received: (qmail 16225 invoked by uid 500); 26 Apr 2020 10:31:58 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Apr 2020 10:31:58 -0400 Date: Sun, 26 Apr 2020 10:31:58 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Vladimir Stankovic cc: gregkh@linuxfoundation.org, , , Subject: Re: [PATCH v5 5/8] usb: mausb_host: Introduce PAL processing In-Reply-To: <48e45671-1f07-c994-8083-04199822c818@displaylink.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 26 Apr 2020, Vladimir Stankovic wrote: > On 26.4.20. 02:32, Alan Stern wrote: > > On Sat, 25 Apr 2020 vladimir.stankovic@displaylink.com wrote: > > > >> Protocol adaptation layer (PAL) implementation has been added to > >> introduce MA-USB structures and logic. > >> > >> Signed-off-by: Vladimir Stankovic > > > > ... > > > >> + /* > >> + * Masking URB_SHORT_NOT_OK flag as SCSI driver is adding it where it > >> + * should not, so it is breaking the USB drive on the linux > >> + */ > >> + urb->transfer_flags &= ~URB_SHORT_NOT_OK; > > > > Removing the SHORT_NOT_OK flag is _not_ a valid thing to do. It will > > cause drivers to malfunction. > > > > Can you please explain this comment? > > > > What SCSI driver? > > > > When is the flag being added? > > > > How does it break USB drives? > > > > Why haven't you already reported this problem to the > > appropriate maintainers? > > > > Alan Stern > > > > Hi, > > Issue that removal of SHORT_NOT_OK flag addressed is linked to particular > set of Kingston USB 3.0 flash drives (super speed) - other USB flash drives > haven't had this flag set. Without this "fix", those Kingston flash drives > are not being enumerated properly. Please explain in detail how the enumeration of these Kingston flash drives fails. Or if such an explanation has already been posted, please provide a link to it. > This particular line was added in the early stage of development, during > enumeration process implementation. The reason why it remained in the code > since is because we haven't noticed any side-effects, even with various > USB devices being attached to remote MA-USB device, including flash drives, > cameras, wireless mice, etc. Come to think of it, the SHORT_NOT_OK flag is mainly used with HCDs that don't have scatter-gather support. Since your mausb driver does support scatter-gather, you most likely won't encounter any problems unless you go looking for them specifically. > The problem has been reported, and is actively being investigated. Where was the problem reported (URL to a mailing list archive)? Who is investigating it? > As soon as it gets addressed properly (w/o global negation of the flag), > a new patch will be pushed. Thank you. Alan Stern