From owner-freebsd-current@FreeBSD.ORG Fri Aug 30 11:54:37 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 06D14C37 for ; Fri, 30 Aug 2013 11:54:37 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C721B2DEB for ; Fri, 30 Aug 2013 11:54:36 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id m16so2574133ieq.38 for ; Fri, 30 Aug 2013 04:54:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=pQRovuPWmWz+mqLe6fbANCj99HvL0VVdN1DQagEnEfM=; b=a1HGBIb50Obiu1s0YWKmCQsc8EuI4xTz0/ptaGugSUkph4qRmnlxQ+j6SetyoX6qeW WEfuqG3rU+rbaILClYchGWnSFbcXs0xl+YKW9pqIwVVy890Ssqt98q+47PY91NKzI0+5 hvjEkXp2AYcMZKCw6ma7nkLJ9IQwGmyPN2FDj9UqgeyWL4vGsmYi6Ec+wQ2IOwdnSk5S TSmmXPFo0H8ji/LZvrgr7zGYCSEpyqQy3cA3/6fssF7I5SDBrVyPVtEEGBOVnaQr5rlG 6mhdYmbq22H5uLpOflw+CDvjGLDe6+j8dBLSaBogvbX6YDnGfsDJpXOONARXgoSPssoV Z4zw== X-Gm-Message-State: ALoCoQkISBQxlUfuQ93JOkYyWfG5DrMEAP6jvniCKpDrE//L2Nc8ptXREMje6ICCYhj8mS3yx3da X-Received: by 10.42.223.134 with SMTP id ik6mr5067774icb.4.1377863670801; Fri, 30 Aug 2013 04:54:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.43.158.74 with HTTP; Fri, 30 Aug 2013 04:54:15 -0700 (PDT) In-Reply-To: <52207030.8050107@bitfrost.no> References: <521B9CD7.8010902@bitfrost.no> <521C6C26.7050207@bitfrost.no> <52203EC9.4060808@bitfrost.no> <52207030.8050107@bitfrost.no> From: "Lundberg, Johannes" Date: Fri, 30 Aug 2013 13:54:15 +0200 Message-ID: Subject: Re: xhci broken on 10-CURRENT and 2013 MacBook Air? To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Current , "freebsd-usb@freebsd.org" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2013 11:54:37 -0000 Still got the same behaviour after applying the patch... Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Fri, Aug 30, 2013 at 12:13 PM, Hans Petter Selasky 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 > >