[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <57DF969B.8030204@linux.intel.com>
Date: Mon, 19 Sep 2016 10:41:15 +0300
From: Mathias Nyman <mathias.nyman@...ux.intel.com>
To: Joel Stanley <joel@....id.au>, linux-usb@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org
Subject: Re: [RFC PATCH] xhci: do not halt the secondary HCD
On 19.09.2016 09:35, Joel Stanley wrote:
> We can't halt the secondary HCD, because it's also the primary HCD,
> which will cause problems if we have devices attached to the primary
> HCD, like a keyboard.
>
> We've been carrying this in our Linux-as-a-bootloader environment for a little
> while now. The machines all have the same TI TUSB73x0 part, and when we kexec
> the devices don't come back until a system power cycle.
>
> I'd like some advice on an acceptable way to upstream the fix, so that the xhci
> device survives kexec.
>
> Signed-off-by: Joel Stanley <joel@....id.au>
> ---
What kernel version is this?
As Greg said there are fixes in this area in the 4.8 latest rc kernel.
If that doesn't work then we need to figure out what the real issue is.
xhci hardware is really just one controller. The split into primary and secondary HCD
is a software only. We always load the primary HCD first (USB2) and secondary second (USB3).
We unload them in reverse order, and need to stop the xhci (halt the hcd) as a first step.
load primary
load secondary (starts the xhci controller
...
unload secondary (halts the controller)
unload primary (free memory)
-Mathias
Powered by blists - more mailing lists