From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usb/host/pci-quirks: Only reset USB bus on NVIDIA devices
Date: Mon, 2 Jul 2018 17:52:43 +0200 [thread overview]
Message-ID: <3301ef51-e35f-1273-6efc-8c11f31a945c@molgen.mpg.de> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1807021135320.1574-100000@iolanthe.rowland.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
next prev parent reply other threads:[~2018-07-02 15:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-01 21:16 Paul Menzel
2018-07-02 15:45 ` Alan Stern
2018-07-02 15:52 ` Paul Menzel [this message]
2018-07-02 16:03 ` Alan Stern
2018-07-02 16:18 ` Paul Menzel
2018-07-02 16:34 ` Alan Stern
2018-07-02 17:19 ` Alan Stern
2018-07-03 6:49 ` Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3301ef51-e35f-1273-6efc-8c11f31a945c@molgen.mpg.de \
--to=pmenzel@molgen.mpg.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®