Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 2014 13:38:15 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        huanghwh@gmail.com
Cc:        "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Subject:   Re: xhci controller problem on MBPr2013
Message-ID:  <535CEC27.2030702@selasky.org>
In-Reply-To: <CAB8uncbE_scWdMF2srL06Q5ty_mCxfBuX99fNKDEud6B7Ca6iw@mail.gmail.com>
References:  <CAB8uncZxftBZ8O6vhpyBBkMJABummPqBUieN3P3xruYL-tcukQ@mail.gmail.com>	<CAB8uncZCTNk5XzFQ38KXJ1-DAvrpCF0ZR023UUn0Cu%2BCDhyFgA@mail.gmail.com>	<535CA9FF.4090601@selasky.org> <CAB8uncbE_scWdMF2srL06Q5ty_mCxfBuX99fNKDEud6B7Ca6iw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/27/14 10:57, Huang Wen Hui wrote:
> Hi,
> The system hang  at random place after  pass xhci message. Before hangs, no
> usb device
> can attach in most time.
>

Hi,

If you change IMOD_DEFAULT like shown below, does it make any difference?

> === ./xhcireg.h
> ==================================================================
> --- ./xhcireg.h	(revision 264804)
> +++ ./xhcireg.h	(local)
> @@ -166,7 +166,7 @@
>  #define	XHCI_IMOD_IVAL_SET(x)	(((x) & 0xFFFF) << 0)	/* 250ns unit */
>  #define	XHCI_IMOD_ICNT_GET(x)	(((x) >> 16) & 0xFFFF)	/* 250ns unit */
>  #define	XHCI_IMOD_ICNT_SET(x)	(((x) & 0xFFFF) << 16)	/* 250ns unit */
> -#define	XHCI_IMOD_DEFAULT	0x000001F4U	/* 8000 IRQ/second */
> +#define	XHCI_IMOD_DEFAULT	0x01F401F4U	/* 8000 IRQ/second */
>  #define	XHCI_ERSTSZ(n)		(0x0028 + (0x20 * (n)))	/* XHCI event ring segment table size */
>  #define	XHCI_ERSTS_GET(x)	((x) & 0xFFFF)
>  #define	XHCI_ERSTS_SET(x)	((x) & 0xFFFF)


Second, if you comment out in xhci.c:

	/* catch any lost interrupts */
	xhci_do_poll(&sc->sc_bus);

Does that change anything?

Try one change at a time.

Thank you!

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?535CEC27.2030702>