Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp134894imm; Mon, 2 Jul 2018 08:55:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL1LH/EVVFHuEgTBaplID5rW7kzTHcWGgGR0wau6kaaKW0zbzLy3ZFoXFApebyl6g2i0Lvp X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr26183785plk.231.1530546916899; Mon, 02 Jul 2018 08:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530546916; cv=none; d=google.com; s=arc-20160816; b=vm8LZDsegqzs05ZzFTgFfjujg3+1NnCrBmmOQzi8BL+ws5ctU1pjtEZgJZtXSN6QTB exCZj4FEcyS/u4uUMu2D4RWdIIN/PC2hdIMIdldFWtDeKfn5h69JMu/cTRCuGX2wlRZk lsFru6uOf8hKN0B47zN2JWlnwqUNfKLTQGE0L/VfpilzdGLtU5Cu+K1cqg9twfNEaxMd ePLCVj3LmeVsNU4hT/WDssQe+ZQUNfGlL++IOSdYDgX/TutpGRCP2KwbVjvz48sjxGGt LyOL32qSXHrEhLVNBl5Z3SO/EHbEsWqxAVVuS+PTDfKWDHSwHGn7QQy770Ys+2wp32ly HqBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=RvaWnOEsL51VABiPOOZpeWVEjEjdfJRrWJaONVbR7Uw=; b=aKxiX4vdMlVsU41DExCkBWFk0dO4ea2sKIu/g1NgnMXBaQqKUd0wLc6/oMUIDXwwfd YtOBohMQpAwdB0Td5H0w30cyITPispVqVhA3B8tz+dWGTcy9Utp/lQJycqyH+0QquAPN dVd+ye4kCQcfpDzxPA+t4Dvtv+Nz725hCr67shdpADYQo5zJL4aZM2bcFaE8ilMsD92u UAVab1Bsnu6wm7WeZD2kC/X1F1NpaBMqYEH+lGN3Tmr5o7y+y3SD4L/KD1rg4ql1HcLq qooUMvXjtHwjGc/taa/JKZEGC5xZQHu7f5LkmJ1RRYthhBmlt4/FSryciLy4ExlFhmpb Q4Yg== 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 x1-v6si14578846pga.289.2018.07.02.08.54.32; Mon, 02 Jul 2018 08:55:16 -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 S1752339AbeGBPwr (ORCPT + 99 others); Mon, 2 Jul 2018 11:52:47 -0400 Received: from mx3.molgen.mpg.de ([141.14.17.11]:57815 "EHLO mx1.molgen.mpg.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752197AbeGBPwq (ORCPT ); Mon, 2 Jul 2018 11:52:46 -0400 Received: from [141.14.220.54] (g54.guest.molgen.mpg.de [141.14.220.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id D29932012D0DC0; Mon, 2 Jul 2018 17:52:43 +0200 (CEST) Subject: Re: [PATCH] usb/host/pci-quirks: Only reset USB bus on NVIDIA devices To: Alan Stern Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Paul Menzel Message-ID: <3301ef51-e35f-1273-6efc-8c11f31a945c@molgen.mpg.de> Date: Mon, 2 Jul 2018 17:52:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Taking stable@ out of CC. I just started to use `git send-email`.] Dear Alan, Am 02.07.2018 um 17:45 schrieb Alan Stern: > On Sun, 1 Jul 2018, Paul Menzel wrote: > >> Currently, on the AMD board Asus F2A85-M Pro there is a 100 ms delay as >> the USB bus of each of the two OHCI PCI devices is reset. As a 50 ms >> delay is done per the USB specification. >> >> Commit c6187597 (OHCI: final fix for NVIDIA problems (I hope)) >> unconditionally does the bus reset for >> all chipsets, while it was only doen for NVIDIA chipsets before. > > I don't follow this at all. Prior to that commit, the bus reset (i.e., > > writel(control & OHCI_CTRL_MASK, base + OHCI_CONTROL); > > ) was performed unconditionally for _all_ controllers. (However, the > 50-ms delay was used only for NVIDIA hardware.) Following that commit, > the reset is performed for all controllers, but only if the HCFS > bitfield is nonzero. > >> As it should not be needed for non-NVIDIA chipsets, only do the reset >> for Nvidia devices. > > Therefore this reasoning is wrong. True. Thank you for checking that. >> Tested on Asus F2A85-M PRO and ASRock E350M1. The USB keyboard works and >> the LUKS passphrase can be entered. > > Unfortunately, there is a wide variety of OHCI controller hardware > available. Something that works on one or two controllers might not > work on another. The problem is, that currently 100 ms sleep is over 10 % of the overall execution time of the Linux kernel here. So I really like to not sleep if it’s not needed. > Besides, doesn't it seem like a bad idea to reset the controller while > leaving devices on the USB bus in whatever state they happened to be? Yes, it’s probably not optimal. I wonder if the reset is needed, if the firmware has already initialized the device. Kind regards, Paul