From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Alex Henrie <alexhenrie24@gmail.com>, Joerg Roedel <jroedel@suse.de>
Cc: Greg KH <gregkh@linuxfoundation.org>,
Mathias Nyman <mathias.nyman@intel.com>,
linux-usb@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: I'd like to donate a MacBook Pro
Date: Thu, 11 May 2017 14:16:46 +0300 [thread overview]
Message-ID: <5914481E.5070302@linux.intel.com> (raw)
In-Reply-To: <CAMMLpeT_931j3nT=9hc+zTEz=a6Nw=zQiohdtxa-8RHe6YXo_Q@mail.gmail.com>
On 04.05.2017 05:34, Alex Henrie wrote:
> 2017-05-03 8:58 GMT-06:00 Joerg Roedel <jroedel@suse.de>:
>> On Wed, May 03, 2017 at 08:35:47AM -0600, Alex Henrie wrote:
>>> 2017-05-03 5:58 GMT-06:00 Greg KH <gregkh@linuxfoundation.org>:
>>>> On Tue, May 02, 2017 at 10:55:09PM -0600, Alex Henrie wrote:
>>>>> Today I ran a regression test to determine which commit made the
>>>>> keyboard stop working entirely. The last commit that worked for me was
>>>>> c09e22d5370739e16463c113525df51b5980b1d5. After that, there is a long
>>>>> series of commits where the screen stays black, and after that, I
>>>>> start getting errors like the one above.
>>>>
>>>> So git bisect said that commit was a good change, what one was the "bad"
>>>> commit that git bisect pointed at?
>>>
>>> The commit right after that, but it's not clear whether the screen
>>> blanking problem was part of the same bug or just another bug that was
>>> introduced at about the same time.
>>
>> That would be 39ab9555c24110671f8dc671311a26e5c985b592:
>>
>> iommu: Add sysfs bindings for struct iommu_device
>>
>> And it introduced a regression when iommu-sysfs entries are accessed.
>> This is fixed in a7fdb6e648fb.
>>
>> Does that commit fix the screen blanking problem?
>
> At a7fdb6e648fb the screen works but the keyboard is broken. I think
> that the screen was actually fixed by an earlier commit, but when I
> tried to run a regression test to find when the keyboard problem
> appeared after the screen was fixed, I gave up because testing each
> revision takes about half an hour and the keyboard problem appears to
> be somewhat intermittent.
>
> -Alex
Looks like there are a few people suffering from macbook xhci related issues
From the bugs linked it looks like there are both some UEFI issues and a non-responsive
usb device at boot. at least one USB device does not respond to a address device command,
and driver times out and aborts the command after 5 second.
I don't think I can do anything about the UEFI or the first 5 second command timeout
from the xhci driver, but after that some improvement could be done.
This timeout code path in the xhci driver is not exercised that often.
Some minor races were fixed in 4.11 in this area, and better tracing added, but unfortunately
I just discovered there is also has a regression in 4.11
If you can help me debug this by compiling some new kernels and taking logs and traces on
your MacBook we could get this forward.
I set up a branch for this issue, it has the race-fixes, tracing and regression fixes:
git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git xhci-macbook
Remember to check out the xhci-macbook branch.
Can you compile and run that kernel on yout MacBook, and take logs?
Traces can be enabled by adding "trace_event=xhci-hcd" to you kernel command line,
then send me the output of both dmesg and /sys/kernel/debug/tracing/trace after the issue is seen.
Thanks
-Mathias
next prev parent reply other threads:[~2017-05-11 11:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-01 6:27 I'd like to donate a MacBook Pro Alex Henrie
2017-05-01 10:06 ` Greg KH
2017-05-03 4:55 ` Alex Henrie
2017-05-03 11:58 ` Greg KH
2017-05-03 14:35 ` Alex Henrie
2017-05-03 14:58 ` Joerg Roedel
2017-05-04 2:34 ` Alex Henrie
2017-05-11 11:16 ` Mathias Nyman [this message]
2017-05-11 20:21 ` Alex Henrie
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=5914481E.5070302@linux.intel.com \
--to=mathias.nyman@linux.intel.com \
--cc=alexhenrie24@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jroedel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
/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