Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4575002ooa; Tue, 14 Aug 2018 07:46:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyNQuNyfRqjncrX7Sbu5BDMLJ3GNSB90qQfOfyRmOf1wjr9xQVE1V6TL56sMhSFZVgyELKt X-Received: by 2002:a63:3444:: with SMTP id b65-v6mr1766412pga.396.1534257978963; Tue, 14 Aug 2018 07:46:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534257978; cv=none; d=google.com; s=arc-20160816; b=QjtWe/z4NrBnDkPHYjEzFhJncwfQ7vE93L2J6Q98mkMUHdVEE2Ix+WVF8byE+YJrM3 C9QfEv07y3r0sGH9+HjBRkUmQY+iOy86Qn+y8JEATvMdf7iw5Kik1z1e2qW8LaoGDE6E fqV8uWa0LcH0eSANZW2AHxmwU+8y2WANSQpxGP4TMxJU5gUAKNCYh+c7uCqTZqelYNUg 0UYsAFsa39WZYczHPxdZa9tfkhpMYQBwRsz1sGjAFH1ZSo6SfTUxfS3Dvkp7/BGEd6LU VheQVJkJsrp8gBG3TpSW0acXu5NjrtES5JZdWLE4O/B3GORTNvKGQ74ESVwKgWHLnvt3 /37g== 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:arc-authentication-results; bh=RBCk4wQjWQmLWrFcgrGyeq7RtL2VyNpsauqlmA0Uuu4=; b=GUXz4tepa6zrRmkLpj/tDld030ukFnUiYyFee0Gpbjl+jfJx1SnIPzeVX/NnVW6IWA 4MSW0mMseXVWdHSeXikX6raQmzwiZjajc7DFZ54MphtpGG7WHIT0QO1awwcOMBUw/5eC GGmw4VT6hRBu75A6IiDQDfc+DPdfXlNfeHm01q8rfrOGcvCqQOFDv5vAz6SrttTQOHNg XalWmA/GOQD0/19GjNdWIYQIiIr910JFT92WDK8jkoG5c4rQPcfrM86usrj80isYq+na Y+FHyRfPOOfFO/hL1tHfqyfDnz8RMrMfjxLNi/NazGbYdpJT6cYFdCZa3pQIHnGCQ2Ky 1fbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 11-v6si19337646plb.383.2018.08.14.07.45.40; Tue, 14 Aug 2018 07:46:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732780AbeHNR1V (ORCPT + 99 others); Tue, 14 Aug 2018 13:27:21 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:40200 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728458AbeHNR1V (ORCPT ); Tue, 14 Aug 2018 13:27:21 -0400 Received: (qmail 3155 invoked by uid 2102); 14 Aug 2018 10:39:53 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 14 Aug 2018 10:39:53 -0400 Date: Tue, 14 Aug 2018 10:39:53 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Zengtao (B)" cc: Roger Quadros , "gregkh@linuxfoundation.org" , "mathias.nyman@linux.intel.com" , "drinkcat@chromium.org" , "felipe.balbi@linux.intel.com" , "drake@endlessm.com" , "mike.looijmans@topic.nl" , "joe@perches.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] usb: hub: try old enumeration scheme first for high speed devices In-Reply-To: <678F3D1BB717D949B966B68EAEB446ED0C9B12B9@dggemm526-mbx.china.huawei.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 Tue, 14 Aug 2018, Zengtao (B) wrote: > Hi alan: > > >-----Original Message----- > >From: linux-usb-owner@vger.kernel.org > >[mailto:linux-usb-owner@vger.kernel.org] On Behalf Of Alan Stern > >Sent: Friday, August 10, 2018 10:20 PM > >To: Roger Quadros > >Cc: Zengtao (B) ; gregkh@linuxfoundation.org; > >mathias.nyman@linux.intel.com; drinkcat@chromium.org; > >felipe.balbi@linux.intel.com; drake@endlessm.com; mike.looijmans@topic.nl; > >joe@perches.com; linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org > >Subject: Re: [PATCH] usb: hub: try old enumeration scheme first for high speed > >devices > > > >On Fri, 10 Aug 2018, Roger Quadros wrote: > > > >> Hi, > >> > >> On 10/08/18 18:01, Zeng Tao wrote: > >> > The new scheme is required just to support legacy low and full-speed > >> > devices. For high speed devices, it will slower the enumeration speed. > >> > So in this patch we try the "old" enumeration scheme first for high > >> > speed devices. > >> > >> How slow does it get? Is it significant? > >> Do we risk breaking existing HS devices that work? I don't think we > >> can be sure till we run this through testing. > > > >Indeed. I am extremely skeptical about a patch like this, unless somebody can > >show that Windows uses the "old" scheme for high-speed devices. > > Yes, this is what the windows has done, you can refer to > https://blogs.msdn.microsoft.com/usbcoreblog/2013/04/11/usb-2-1-2-0-1-1-device-enumeration-changes-in-windows-8/ And that blog post is 5 years old! Okay, I think we can go ahead and make this change. However, you should update the patch description to mention what Microsoft did in Windows 8 and say that the new behavior matches theirs. Also, as Roger mentioned, you should update the documentation to say that the old_scheme_first module parameter now applies only to low- and full-speed devices, since high- and SuperSpeed devices always use the old scheme first. Alan Stern