Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2224344ybz; Sun, 26 Apr 2020 14:01:19 -0700 (PDT) X-Google-Smtp-Source: APiQypIJb/BWSTsuLxTXcQLQ5vmRWPtk15rEx3o4IRMwgUOukIIyL4c2sT8jZF4rixRVJgpatQO3 X-Received: by 2002:a17:906:4eda:: with SMTP id i26mr17196403ejv.180.1587934879380; Sun, 26 Apr 2020 14:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587934879; cv=none; d=google.com; s=arc-20160816; b=oSGgDyRSrzWeQvIWULwaY7cxwWmMoha4hWxzjyq4yMEjvWa41ccyl/q40Nkj86UzHQ 45wIQ4AVN2W0vfI+olJZy9EQ7iwRgLRPpnNmfsHZGRiEyxSANYteLr3xvDNEo/jaD2e8 WYq/ahDAQHDsMLU98FktsbkShzaj1qK4tD461qFvA3XP2V5AZR8wRLPsDQ5ApzaSNiAT tFddnQK4mdsRAwnRuKLubWuhFWfvMGCm/p/V0hmvXD2+nysdZW0Z72QH2ULwNARhmuEH iTMhv4VgF/SLAJUJKTNWMhCHUaDuFR1BmJfCEk5TI1nd/o3auRBUqeM2EZx1FiMMX9fP J58g== 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=tdWd9n0QAtgbWn8v5J9N788PehVt/uNZ4Qz+9UCcEpI=; b=XSGb++pJFS15n1QeA5bu+beCdt2cFi1ByrH8d6p53TuX/BvlzhcUjYaqnwcLv75UfM 3KlXjfzhLpNseyvYU6F8Qv/nT3SDy3OsKX40yQulzaP05mlYYl8Y/TV8R1ZrZgzxC8HD INPpmvprFKoQLW7kwpUndxcLLAP6iF5CW1sLn4Y/NxlOoWCyZt1VNszXACrRLNepzPQ+ HOv92eL9l5MrfEQ6+9txeHxDyfpCKQz9nqZCzEf/v7sQeZh5IfoNwrG9XFMTTgKZ7kzq QMCsI/6f9JE1C4xdQ8pTt6ZB3pfK9F9zU3TWTLCfPDZNuV53A7LixKTOLr64UYaOcIRR 4pDg== 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 i23si7656833edg.437.2020.04.26.14.00.56; Sun, 26 Apr 2020 14:01:19 -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 S1726340AbgDZU4n (ORCPT + 99 others); Sun, 26 Apr 2020 16:56:43 -0400 Received: from netrider.rowland.org ([192.131.102.5]:36453 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726177AbgDZU4n (ORCPT ); Sun, 26 Apr 2020 16:56:43 -0400 Received: (qmail 2181 invoked by uid 500); 26 Apr 2020 16:56:41 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 26 Apr 2020 16:56:41 -0400 Date: Sun, 26 Apr 2020 16:56:41 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Vladimir Stankovic cc: gregkh@linuxfoundation.org, , , Subject: Re: [External] Re: [PATCH v5 5/8] usb: mausb_host: Introduce PAL processing In-Reply-To: <871dcf46-19f8-f152-99c0-8185832ed109@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. 16:31, Alan Stern wrote: > > 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. > > Will reproduce the issue once again (w/o the fix) and run through the events. > Issue has been noticed during early development, and addressed right away. > > > >> 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? > > Ticket has been submitted to DisplayLink's internal issue-tracking system > and is being investigated by mausb-host-devel team. Okay. What SCSI driver does the comment refer to? Is it something internal to DisplayLink or is it part of the regular Linux kernel? Alan Stern