xhci broken on 10-CURRENT and 2013 MacBook Air?
Lundberg, Johannes
johannes at brilliantservice.co.jp
Fri Aug 30 11:54:37 UTC 2013
Still got the same behaviour after applying the patch...
Johannes Lundberg
BRILLIANTSERVICE CO., LTD. <http://www.brilliantservice.co.jp>
On Fri, Aug 30, 2013 at 12:13 PM, Hans Petter Selasky <hps at bitfrost.no>wrote:
> On 08/30/13 11:35, Lundberg, Johannes wrote:
>
>> Hi Hans
>>
>> I tried the patch and the result is the same. However, I found the command
>> that causes the freeze. Also, it is not always it freezes but maybe 9/10
>> reboots or more frequently.
>>
>> At the end of the function xhci_start_controller(..) there is a for loop:
>>
>> 487 for (i = 0; i != 100; i++) {
>> 488 usb_pause_mtx(NULL, hz / 100);
>> 489 temp = XREAD4(sc, oper, XHCI_USBSTS) & XHCI_STS_HCH;
>> 490 if (!temp)
>> 491 break;
>> 492 }
>>
>> and it freezes at usb_pause_mtx(...)
>> value of i is 0
>> value of hz is 1000
>>
>
> Hi,
>
> Can you try the attached patch?
>
> I think this is a problem inside DELAY(). Maybe you have to select another
> timing source for DELAY(), mav @ CC'ed?
>
> --HPS
>
>
More information about the freebsd-current
mailing list