From owner-freebsd-usb@FreeBSD.ORG Sun Sep 21 16:05:09 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 54F7450B for ; Sun, 21 Sep 2014 16:05:09 +0000 (UTC) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F95FA72 for ; Sun, 21 Sep 2014 16:05:08 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 1001) id AD59D1C643B; Sun, 21 Sep 2014 23:59:51 +0800 (CST) Date: Sun, 21 Sep 2014 23:59:51 +0800 From: Denny Lin To: freebsd-usb@freebsd.org Subject: USB device repeatedly disconnected Message-ID: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 16:05:09 -0000 Hi, I have a Texas Instruments OMAP4440 connected via a USB cable to my laptop running FreeBSD 10.0-RELEASE amd64. This is the output of usbconfig -d 1.7 dump_device_desc: ugen1.7: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0210 bDeviceClass = 0x00ff bDeviceSubClass = 0x00ff bDeviceProtocol = 0x00ff bMaxPacketSize0 = 0x0040 idVendor = 0x0451 idProduct = 0xd010 bcdDevice = 0x0000 iManufacturer = 0x0021 iProduct = 0x0025 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 For some reason, it repeatedly disconnects: ugen1.7: at usbus1 (disconnected) ugen1.7: at usbus1 ugen1.7: at usbus1 (disconnected) ugen1.7: at usbus1 ugen1.7: at usbus1 (disconnected) ugen1.7: at usbus1 These messages also appear in /var/log/messages: Sep 21 17:46:56 localhost kernel: ugen1.7: at usbus1 Sep 21 17:46:56 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' Sep 21 17:46:56 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' Sep 21 17:46:56 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 Sep 21 17:46:59 localhost kernel: ugen1.7: at usbus1 (disconnected) Sep 21 17:47:00 localhost kernel: ugen1.7: at usbus1 Sep 21 17:47:00 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' Sep 21 17:47:00 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' Sep 21 17:47:00 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 Sep 21 17:47:03 localhost kernel: ugen1.7: at usbus1 (disconnected) Sep 21 17:47:04 localhost kernel: ugen1.7: at usbus1 Sep 21 17:47:04 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' The problem seems similar to this one: https://www.mail-archive.com/freebsd-usb@freebsd.org/msg08372.html Would it be possible to fix this? Thanks. -- Denny Lin From owner-freebsd-usb@FreeBSD.ORG Sun Sep 21 17:04:55 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AF64C28 for ; Sun, 21 Sep 2014 17:04:55 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 042C1F14 for ; Sun, 21 Sep 2014 17:04:54 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0F0111FE027; Sun, 21 Sep 2014 19:04:50 +0200 (CEST) Message-ID: <541F052A.7000301@selasky.org> Date: Sun, 21 Sep 2014 19:04:42 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Denny Lin , freebsd-usb@freebsd.org Subject: Re: USB device repeatedly disconnected References: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> In-Reply-To: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 17:04:55 -0000 On 09/21/14 17:59, Denny Lin wrote: > Hi, > > I have a Texas Instruments OMAP4440 connected via a USB cable to my > laptop running FreeBSD 10.0-RELEASE amd64. > > This is the output of usbconfig -d 1.7 dump_device_desc: > ugen1.7: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0210 > bDeviceClass = 0x00ff > bDeviceSubClass = 0x00ff > bDeviceProtocol = 0x00ff > bMaxPacketSize0 = 0x0040 > idVendor = 0x0451 > idProduct = 0xd010 > bcdDevice = 0x0000 > iManufacturer = 0x0021 > iProduct = 0x0025 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > For some reason, it repeatedly disconnects: > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > ugen1.7: at usbus1 (disconnected) > ugen1.7: at usbus1 > > These messages also appear in /var/log/messages: > Sep 21 17:46:56 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:46:56 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > Sep 21 17:46:56 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' > Sep 21 17:46:56 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 > Sep 21 17:46:59 localhost kernel: ugen1.7: at usbus1 (disconnected) > Sep 21 17:47:00 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:47:00 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > Sep 21 17:47:00 localhost devd: Executing 'logger Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3' > Sep 21 17:47:00 localhost root: Unknown USB device: vendor 0x0451 product 0xd010 bus uhub3 > Sep 21 17:47:03 localhost kernel: ugen1.7: at usbus1 (disconnected) > Sep 21 17:47:04 localhost kernel: ugen1.7: at usbus1 > Sep 21 17:47:04 localhost devd: Executing 'env LD_PRELOAD=/usr/local/lib/libhal.so:/usr/local/lib/libdbus-1.so:/usr/local/lib/libcuse4bsd.so /usr/local/etc/rc.d/webcamd start ugen1.7' > > The problem seems similar to this one: https://www.mail-archive.com/freebsd-usb@freebsd.org/msg08372.html > > Would it be possible to fix this? Thanks. > Hi, You can try setting: hw.usb.no_cs_fail=1 Also run usbdump to capture the USB traffic. usbdump -i usbus1 -f 7 -vvv -s 65536 --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Sep 21 18:22:08 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6ED1EB33 for ; Sun, 21 Sep 2014 18:22:08 +0000 (UTC) Received: from mail.hs.ntnu.edu.tw (mail.hs.ntnu.edu.tw [140.131.149.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3824D859 for ; Sun, 21 Sep 2014 18:22:07 +0000 (UTC) Received: by mail.hs.ntnu.edu.tw (Postfix, from userid 1001) id 0BBA51C643B; Mon, 22 Sep 2014 02:22:04 +0800 (CST) Date: Mon, 22 Sep 2014 02:22:04 +0800 From: Denny Lin To: Hans Petter Selasky Subject: Re: USB device repeatedly disconnected Message-ID: <20140921182204.GD3153@mail.hs.ntnu.edu.tw> References: <20140921155951.GC3153@mail.hs.ntnu.edu.tw> <541F052A.7000301@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <541F052A.7000301@selasky.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Sep 2014 18:22:08 -0000 Hi Hans, On Sun, Sep 21, 2014 at 07:04:42PM +0200, Hans Petter Selasky wrote: > You can try setting: > > hw.usb.no_cs_fail=1 This appears to have no effect--the device still repeatedly disconnects. > Also run usbdump to capture the USB traffic. > > usbdump -i usbus1 -f 7 -vvv -s 65536 A sample dump is available at: http://n.ethz.ch/student/dlin/aos/usbdump.txt Although I didn't understand the dump, I tried tracing the code. The device is disconnected when usb_free_device() is called within uhub_reattach_port() (the repeat part) in sys/dev/usb/usb_hub.c. I'm not sure what triggers this though. -- Denny Lin From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 05:12:40 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1E28886B; Mon, 22 Sep 2014 05:12:40 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id B8713ACC; Mon, 22 Sep 2014 05:12:39 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile12) with ESMTP id s8M4w08e010824; Mon, 22 Sep 2014 13:58:00 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili14) with ESMTP id s8M4w0L14607; Mon, 22 Sep 2014 13:58:00 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi13) id s8M4w0tL010515; Mon, 22 Sep 2014 13:58:00 +0900 Received: from localhost by lomi13.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s8M4w0oX010470; Mon, 22 Sep 2014 13:58:00 +0900 Date: Mon, 22 Sep 2014 13:58:00 +0900 (JST) Message-Id: <20140922.135800.1954695532570247771.okuno.kohji@jp.panasonic.com> To: freebsd-current@freebsd.org Subject: Does the xHCI driver has a spec violation? From: Kohji Okuno Organization: Panasonic Corporation X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 05:12:40 -0000 Hi, I encountered a issue for USB mic. In fist time, my host controller (xHCI) sends single IN-tokens every 8-SOFs. This is expected action. But, after I open, close and open, my host controller sends plural IN-tokens between SOF and SOF. In Intel Lynx Point, I could not reproduce this issue. I'm sorry. Unfortunately, I can't explain details about my proprietary host controler. I found the following explanation in the xHCI 1.1 specification http://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/extensible-host-controler-interface-usb-xhci.pdf In 4.8.3 Endpoint Context State, 6. The Configure Endpoint Command (Add (A) = `1' and Drop (D) =`1') shall transition an endpoint, except the Default Control Endpoint, from the Stopped to the Running state.' So, I modify as the following, then I can run expectedly. What do you think about this change? Best regards, Kohji Okuno static usb_error_t xhci_configure_mask(struct usb_device *udev, uint32_t mask, uint8_t drop) { struct xhci_softc *sc = XHCI_BUS2SC(udev->bus); struct usb_page_search buf_inp; struct xhci_input_dev_ctx *pinp; uint32_t temp; uint8_t index; uint8_t x; index = udev->controller_slot_id; usbd_get_page(&sc->sc_hw.devs[index].input_pc, 0, &buf_inp); pinp = buf_inp.buffer; if (drop) { mask &= XHCI_INCTX_NON_CTRL_MASK; xhci_ctx_set_le32(sc, &pinp->ctx_input.dwInCtx0, mask); xhci_ctx_set_le32(sc, &pinp->ctx_input.dwInCtx1, 0); } else { - xhci_ctx_set_le32(sc, &pinp->ctx_input.dwInCtx0, 0); + xhci_ctx_set_le32(sc, &pinp->ctx_input.dwInCtx0, mask); xhci_ctx_set_le32(sc, &pinp->ctx_input.dwInCtx1, mask); From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 05:42:41 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 01F50C03 for ; Mon, 22 Sep 2014 05:42:40 +0000 (UTC) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DFCBD37 for ; Mon, 22 Sep 2014 05:42:40 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id gi9so5904720lab.24 for ; Sun, 21 Sep 2014 22:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=qUCBoxqnkjoEzd/a10gL0/5f/9HI28n3ruIEmsdf+NY=; b=a6MBT7pB2Ag+9ppyc3FNWkWVoGjh6ySE0a/b3afkRi6g3A5xD4uoY1Tzr03l6v68Hy OhpJVJsX6mO3BFhso0H9gHgHt2LWrldlL/fLnd7kelrPaeMuf+SSEhaPb3QUk2NJLRRp WYlTRffXPf1TQTaSbiy4WN4idw3cl6qZie0ZFXVDzDs6Hp44qPZCtcR4hciK0haRlIeR XeVLdoJujWMTNuhRpfDyIlj8NXiTRytI9RvothwLDcQadoNgAjW1S0iVjPHQrzTHrDWr NyCMwmvOLiWDCCInV0ttgEQmyjirPDhGChOr+dGIl42EFBy2dR7sFSVJOkZoHo4VdXaM n3JA== MIME-Version: 1.0 X-Received: by 10.112.170.138 with SMTP id am10mr738681lbc.74.1411364558401; Sun, 21 Sep 2014 22:42:38 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Sun, 21 Sep 2014 22:42:38 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: References: Date: Mon, 22 Sep 2014 13:42:38 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: "freebsd-usb@freebsd.org" , Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 05:42:41 -0000 verbose log with hw.usb.xhci.debug="15" in BIOS mode: http://sw.gddsn.org.cn/freebsd/messages-bios.txt verbose log with hw.usb.xhci.debug="15" in UEFI mode: http://sw.gddsn.org.cn/freebsd/messages-uefi.txt 2014-09-20 20:03 GMT+08:00 Huang Wen Hui : > I try to UEFI boot 10-STABLE on MacBookPro 11,3, found that xhci does not > work anymore, It works in BIOS boot. > also try to set "hw.usb.xhci.msi=0" and hw.usb.xhci.xhci_port_route="-1", > no lucky. > verbose boot log can be found at : > http://sw.gddsn.org.cn/freebsd/uefi-messages.txt > usbconfig list show: > ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER > (5.0Gbps) pwr=SAVE (0mA) > > In BIOS boot, usbconfig list show: > > ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER > (5.0Gbps) pwr=SAVE (0mA) > ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=SAVE (94mA) > ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON (0mA) > ugen0.4: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON (0mA) > ugen0.5: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON (0mA) > ugen0.6: at usbus0, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON (40mA) > ugen0.7: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) > pwr=ON (224mA) > > Cheers, > Huang Wen Hui > From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 06:02:57 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 79363D6; Mon, 22 Sep 2014 06:02:57 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34D19EFF; Mon, 22 Sep 2014 06:02:56 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7EF4D1FE027; Mon, 22 Sep 2014 08:02:53 +0200 (CEST) Message-ID: <541FBB84.6050508@selasky.org> Date: Mon, 22 Sep 2014 08:02:44 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Kohji Okuno , freebsd-current@freebsd.org Subject: Re: Does the xHCI driver has a spec violation? References: <20140922.135800.1954695532570247771.okuno.kohji@jp.panasonic.com> In-Reply-To: <20140922.135800.1954695532570247771.okuno.kohji@jp.panasonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 06:02:57 -0000 On 09/22/14 06:58, Kohji Okuno wrote: > Hi, > > I encountered a issue for USB mic. > > In fist time, my host controller (xHCI) sends single IN-tokens every > 8-SOFs. This is expected action. But, after I open, close and open, my > host controller sends plural IN-tokens between SOF and SOF. > > In Intel Lynx Point, I could not reproduce this issue. > I'm sorry. Unfortunately, I can't explain details about my proprietary > host controler. > > I found the following explanation in the xHCI 1.1 specification > http://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/extensible-host-controler-interface-usb-xhci.pdf > > In 4.8.3 Endpoint Context State, > 6. The Configure Endpoint Command (Add (A) = `1' and Drop (D) =`1') > shall transition an endpoint, except the Default Control > Endpoint, from the Stopped to the Running state.' > > > So, I modify as the following, then I can run expectedly. > What do you think about this change? Hi, I think we should issue the context drop separately. Are we certain that if both drop and add bits are set at the same time, that the drop bit will be processed before the add? This might be a bug in your hardware, which apparently doesn't check if the context has already been added or not. I'll be glad to make a workaround for it once we have settled on a solution. Can you test the attached patch using both your hardware and the Lynx Point. Thank you! --HPS > > Best regards, > Kohji Okuno From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 06:11:06 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 97DA82D3 for ; Mon, 22 Sep 2014 06:11:06 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A657FEA for ; Mon, 22 Sep 2014 06:11:06 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id C38951FE027; Mon, 22 Sep 2014 08:11:03 +0200 (CEST) Message-ID: <541FBD6F.2080507@selasky.org> Date: Mon, 22 Sep 2014 08:10:55 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: huanghwh@gmail.com, "freebsd-usb@freebsd.org" Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 06:11:06 -0000 On 09/22/14 07:42, Huang Wen Hui wrote: > verbose log with hw.usb.xhci.debug="15" in BIOS mode: > http://sw.gddsn.org.cn/freebsd/messages-bios.txt > verbose log with hw.usb.xhci.debug="15" in UEFI mode: > http://sw.gddsn.org.cn/freebsd/messages-uefi.txt > Hi, It might look as if the XHCI is receiving no interrupts, which is not an XHCI fault. When removing the timestamps and diffing I see changes like: intpin=c, irq=11 -> kernel: intpin=c, irq=255 And one ACPI change: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) vs kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 06:31:33 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 751FCA5E; Mon, 22 Sep 2014 06:31:33 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id 135521BF; Mon, 22 Sep 2014 06:31:32 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile14) with ESMTP id s8M6VMXl011826; Mon, 22 Sep 2014 15:31:22 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili11) with ESMTP id s8M6VMR08258; Mon, 22 Sep 2014 15:31:22 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi12) id s8M6VMFP001495; Mon, 22 Sep 2014 15:31:22 +0900 Received: from localhost by lomi12.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s8M6VMge001475; Mon, 22 Sep 2014 15:31:22 +0900 Date: Mon, 22 Sep 2014 15:31:22 +0900 (JST) Message-Id: <20140922.153122.2173639902447525862.okuno.kohji@jp.panasonic.com> To: hps@selasky.org Subject: Re: Does the xHCI driver has a spec violation? From: Kohji Okuno In-Reply-To: <541FBB84.6050508@selasky.org> References: <20140922.135800.1954695532570247771.okuno.kohji@jp.panasonic.com> <541FBB84.6050508@selasky.org> Organization: Panasonic Corporation X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 06:31:33 -0000 Hi HPS, Could you refer to the following document (4.6.6 Configure Endpoint:P.99)? This document shows: If the Drop Context flag is `1' and the Add Context flag is `1', the xHC shall: o Release the current Resources and Bandwidth allocated to the endpoint and assign the new Resources and Bandwidth requested for the endpoint. Regards, Kohji Okuno. > On 09/22/14 06:58, Kohji Okuno wrote: >> Hi, >> >> I encountered a issue for USB mic. >> >> In fist time, my host controller (xHCI) sends single IN-tokens every >> 8-SOFs. This is expected action. But, after I open, close and open, my >> host controller sends plural IN-tokens between SOF and SOF. >> >> In Intel Lynx Point, I could not reproduce this issue. >> I'm sorry. Unfortunately, I can't explain details about my proprietary >> host controler. >> >> I found the following explanation in the xHCI 1.1 specification >> http://www.intel.com/content/dam/www/public/us/en/documents/technical-specifications/extensible-host-controler-interface-usb-xhci.pdf >> >> In 4.8.3 Endpoint Context State, >> 6. The Configure Endpoint Command (Add (A) = `1' and Drop (D) =`1') >> shall transition an endpoint, except the Default Control >> Endpoint, from the Stopped to the Running state.' >> >> >> So, I modify as the following, then I can run expectedly. >> What do you think about this change? > > Hi, > > I think we should issue the context drop separately. Are we certain that if > both drop and add bits are set at the same time, that the drop bit will be > processed before the add? > > This might be a bug in your hardware, which apparently doesn't check if the > context has already been added or not. I'll be glad to make a workaround for > it once we have settled on a solution. > > Can you test the attached patch using both your hardware and the Lynx Point. > > Thank you! > > --HPS > >> >> Best regards, >> Kohji Okuno > From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 06:42:08 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id B0851D5C; Mon, 22 Sep 2014 06:42:08 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D542350; Mon, 22 Sep 2014 06:42:08 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F3B731FE027; Mon, 22 Sep 2014 08:42:05 +0200 (CEST) Message-ID: <541FC4B5.2030406@selasky.org> Date: Mon, 22 Sep 2014 08:41:57 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Kohji Okuno Subject: Re: Does the xHCI driver has a spec violation? References: <20140922.135800.1954695532570247771.okuno.kohji@jp.panasonic.com> <541FBB84.6050508@selasky.org> <20140922.153122.2173639902447525862.okuno.kohji@jp.panasonic.com> In-Reply-To: <20140922.153122.2173639902447525862.okuno.kohji@jp.panasonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 06:42:08 -0000 On 09/22/14 08:31, Kohji Okuno wrote: > Hi HPS, > > Could you refer to the following document (4.6.6 Configure Endpoint:P.99)? > This document shows: > > If the Drop Context flag is `1' and the Add Context flag is `1', the xHC shall: > o Release the current Resources and Bandwidth allocated to the > endpoint and assign the new Resources and Bandwidth requested for > the endpoint. > Hi, I see. Then what is missing to your patch is to mask away bits 0 and 1, because those are reserved for D0 and D1 and should be zero? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 06:53:14 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF98BF3F; Mon, 22 Sep 2014 06:53:14 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id 80C3F60E; Mon, 22 Sep 2014 06:53:14 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile14) with ESMTP id s8M6rBid008826; Mon, 22 Sep 2014 15:53:12 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili13) with ESMTP id s8M6rCJ26573; Mon, 22 Sep 2014 15:53:12 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi12) id s8M6rCYh011104; Mon, 22 Sep 2014 15:53:12 +0900 Received: from localhost by lomi12.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s8M6rBdo011074; Mon, 22 Sep 2014 15:53:12 +0900 Date: Mon, 22 Sep 2014 15:53:10 +0900 (JST) Message-Id: <20140922.155310.745066180705048059.okuno.kohji@jp.panasonic.com> To: hps@selasky.org Subject: Re: Does the xHCI driver has a spec violation? From: Kohji Okuno In-Reply-To: <541FC4B5.2030406@selasky.org> References: <541FBB84.6050508@selasky.org> <20140922.153122.2173639902447525862.okuno.kohji@jp.panasonic.com> <541FC4B5.2030406@selasky.org> Organization: Panasonic Corporation X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 06:53:15 -0000 > On 09/22/14 08:31, Kohji Okuno wrote: >> Hi HPS, >> >> Could you refer to the following document (4.6.6 Configure Endpoint:P.99)? >> This document shows: >> >> If the Drop Context flag is `1' and the Add Context flag is `1', the xHC >> shall: >> o Release the current Resources and Bandwidth allocated to the >> endpoint and assign the new Resources and Bandwidth requested for >> the endpoint. >> > > Hi, > > I see. > > Then what is missing to your patch is to mask away bits 0 and 1, because those > are reserved for D0 and D1 and should be zero? Hi, HPS, You are correct, I think. We shold mask D0 and D1. My host controller works both. Thanks, Kohji Okuno. From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 08:26:34 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 22455B9B for ; Mon, 22 Sep 2014 08:26:34 +0000 (UTC) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A469FB4 for ; Mon, 22 Sep 2014 08:26:33 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id hz20so6303173lab.15 for ; Mon, 22 Sep 2014 01:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=yGkMpBDHo2COtWM7lnc4AOQ7EHmVNP5AeTsAElsKJFc=; b=rnl6eGGiceSK9Siy4EOzLc64zGRh0dbZ+Sa2hhQ8Vd0HKkpXZ3P/pf9ElgeSZMDpxC Wj4MZtaBHPDAC02icrMCyHsjv+EofwaqsGkkFXAfDwAnh/My21Kkt7NuZjMGq+QlhYT8 xlHd0LhJOTGpLo6Cy7l81kSBxXJDzPEkTrJhdu29dAVUAjBze97acg5vqPLJzB/Bk6oU JuWvILL4TK6X+e8z0XT3qqSwHjnIYWmk++4yEHWpnpUlluQRaEfjxmLT7nNEDMgQTM/E jw7fRi5u3b78PcQv1tOulbS1UGYhx5TCZqgUno3QFGeApVzFoGpLpFSOjYsMlcun1KOM VYaQ== MIME-Version: 1.0 X-Received: by 10.152.44.136 with SMTP id e8mr24525851lam.36.1411374391048; Mon, 22 Sep 2014 01:26:31 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Mon, 22 Sep 2014 01:26:30 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: <541FBD6F.2080507@selasky.org> References: <541FBD6F.2080507@selasky.org> Date: Mon, 22 Sep 2014 16:26:30 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 08:26:34 -0000 Hi, For xhci, this is "intpin=a, irq=255", no change. vmstat -i show almost same result: interrupt total rate irq9: acpi0 887 0 irq16: ahci0 119840 20 cpu0:timer 61017 10 irq264: hdac0 11 0 irq265: bge0 100509 16 irq266: xhci0 10 0 irq267: hdac1 1651 0 cpu1:timer 45710 7 cpu7:timer 41966 7 cpu6:timer 43753 7 cpu2:timer 39606 6 cpu3:timer 49974 8 cpu4:timer 46549 7 cpu5:timer 29639 4 irq268: vgapci0 42382 7 Total 623504 104 But these message are UEFI only: Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed Cheers, Huang Wen Hui 2014-09-22 14:10 GMT+08:00 Hans Petter Selasky : > On 09/22/14 07:42, Huang Wen Hui wrote: > >> verbose log with hw.usb.xhci.debug="15" in BIOS mode: >> http://sw.gddsn.org.cn/freebsd/messages-bios.txt >> verbose log with hw.usb.xhci.debug="15" in UEFI mode: >> http://sw.gddsn.org.cn/freebsd/messages-uefi.txt >> >> > Hi, > > It might look as if the XHCI is receiving no interrupts, which is not an > XHCI fault. When removing the timestamps and diffing I see changes like: > > intpin=c, irq=11 > > -> > > kernel: intpin=c, irq=255 > > > And one ACPI change: > > kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) > > vs > > kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) > > --HPS > > From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 08:29:48 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 2889CE17 for ; Mon, 22 Sep 2014 08:29:48 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D8D94FD8 for ; Mon, 22 Sep 2014 08:29:47 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CC6721FE027; Mon, 22 Sep 2014 10:29:44 +0200 (CEST) Message-ID: <541FDDF0.90502@selasky.org> Date: Mon, 22 Sep 2014 10:29:36 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: huanghwh@gmail.com Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 References: <541FBD6F.2080507@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 08:29:48 -0000 On 09/22/14 10:26, Huang Wen Hui wrote: > Hi, > For xhci, this is "intpin=a, irq=255", no change. vmstat -i show almost > same result: > > interrupt total rate > irq9: acpi0 887 0 > irq16: ahci0 119840 20 > cpu0:timer 61017 10 > irq264: hdac0 11 0 > irq265: bge0 100509 16 > irq266: xhci0 10 0 > irq267: hdac1 1651 0 > cpu1:timer 45710 7 > cpu7:timer 41966 7 > cpu6:timer 43753 7 > cpu2:timer 39606 6 > cpu3:timer 49974 8 > cpu4:timer 46549 7 > cpu5:timer 29639 4 > irq268: vgapci0 42382 7 > Total 623504 104 > > > But these message are UEFI only: > > Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed > Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed > Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed > > Cheers, > Huang Wen Hui Can you try setting: hw.usb.xhci.use_polling=1 in /boot/loader.conf Does it make any difference? --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 09:08:04 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06FD6A8F for ; Mon, 22 Sep 2014 09:08:04 +0000 (UTC) Received: from mail-la0-x229.google.com (mail-la0-x229.google.com [IPv6:2a00:1450:4010:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 81A4B63F for ; Mon, 22 Sep 2014 09:08:03 +0000 (UTC) Received: by mail-la0-f41.google.com with SMTP id s18so6341014lam.14 for ; Mon, 22 Sep 2014 02:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=u8c1xD/JRQZuMJPvHVGGZE148/HmlFn2Od9uo1iu4zo=; b=MuLhBkz09t5ZzgQ0DFpbF1hPFUUnes0Wp3tdzebfyNjROhzYKwebnBIKYc4c3kVkA3 WhqsPAeIJhjFZlh0fGFW6b4LrTvaJVicy1DjL1mfYJE3L3b4vciPxR++KjrqaE+2ca5b OzLxSQMgy5sNH61Lu+E+W4I5hRu+BJ8IBjrjpPAS89c9UBpn0G9aglqb69cXIvzzuEYB bV4aaDW+L7j8UW7gAK8WgIChqO65k3650B329SZsZRLNVrls8psHCoqYAxXR46cVSVyA tKygJF9tCAlVRPT+xe6QUGodIXSBYdmVWq2WYx0iylgxR653wNOJXKHbqZcB+RbUkpp4 A7Ew== MIME-Version: 1.0 X-Received: by 10.152.21.6 with SMTP id r6mr24503927lae.6.1411376881342; Mon, 22 Sep 2014 02:08:01 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Mon, 22 Sep 2014 02:08:01 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: <541FDDF0.90502@selasky.org> References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> Date: Mon, 22 Sep 2014 17:08:01 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 09:08:04 -0000 xhci still not work, usbconfig list show: ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) Detail log: http://sw.gddsn.org.cn/freebsd/messages-uefi-poll.txt 2014-09-22 16:29 GMT+08:00 Hans Petter Selasky : > On 09/22/14 10:26, Huang Wen Hui wrote: > >> Hi, >> For xhci, this is "intpin=a, irq=255", no change. vmstat -i show almost >> same result: >> >> interrupt total rate >> irq9: acpi0 887 0 >> irq16: ahci0 119840 20 >> cpu0:timer 61017 10 >> irq264: hdac0 11 0 >> irq265: bge0 100509 16 >> irq266: xhci0 10 0 >> irq267: hdac1 1651 0 >> cpu1:timer 45710 7 >> cpu7:timer 41966 7 >> cpu6:timer 43753 7 >> cpu2:timer 39606 6 >> cpu3:timer 49974 8 >> cpu4:timer 46549 7 >> cpu5:timer 29639 4 >> irq268: vgapci0 42382 7 >> Total 623504 104 >> >> >> But these message are UEFI only: >> >> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed >> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed >> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed >> >> Cheers, >> Huang Wen Hui >> > > Can you try setting: > > hw.usb.xhci.use_polling=1 > > in /boot/loader.conf > > Does it make any difference? > > --HPS > From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 10:22:29 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 60B9F9CC; Mon, 22 Sep 2014 10:22:29 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D380E79; Mon, 22 Sep 2014 10:22:28 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 80A4B1FE027; Mon, 22 Sep 2014 12:22:26 +0200 (CEST) Message-ID: <541FF859.6090709@selasky.org> Date: Mon, 22 Sep 2014 12:22:17 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Kohji Okuno Subject: Re: Does the xHCI driver has a spec violation? References: <541FBB84.6050508@selasky.org> <20140922.153122.2173639902447525862.okuno.kohji@jp.panasonic.com> <541FC4B5.2030406@selasky.org> <20140922.155310.745066180705048059.okuno.kohji@jp.panasonic.com> In-Reply-To: <20140922.155310.745066180705048059.okuno.kohji@jp.panasonic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 10:22:29 -0000 Hi, Please verify: http://svnweb.freebsd.org/changeset/base/271953 Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 22 12:12:24 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 76C9CBA7; Mon, 22 Sep 2014 12:12:24 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB05D08; Mon, 22 Sep 2014 12:12:23 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile12) with ESMTP id s8MCCLAV000603; Mon, 22 Sep 2014 21:12:21 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili16) with ESMTP id s8MCCLM23752; Mon, 22 Sep 2014 21:12:21 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi15) id s8MCCLdO027424; Mon, 22 Sep 2014 21:12:21 +0900 Received: from localhost by lomi15.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s8MCCLWZ027398; Mon, 22 Sep 2014 21:12:21 +0900 Date: Mon, 22 Sep 2014 21:12:21 +0900 (JST) Message-Id: <20140922.211221.200497674823696129.okuno.kohji@jp.panasonic.com> To: hps@selasky.org Subject: Re: Does the xHCI driver has a spec violation? From: Kohji Okuno In-Reply-To: <541FF859.6090709@selasky.org> References: <541FC4B5.2030406@selasky.org> <20140922.155310.745066180705048059.okuno.kohji@jp.panasonic.com> <541FF859.6090709@selasky.org> Organization: Panasonic Corporation X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2014 12:12:24 -0000 > Hi, > > Please verify: > http://svnweb.freebsd.org/changeset/base/271953 > > Thank you! > > --HPS Hi, HPS, I confirmed your commit. It was no problem. Many thanks, Kohji Okuno. From owner-freebsd-usb@FreeBSD.ORG Fri Sep 26 22:59:55 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id 299C46C6 for ; Fri, 26 Sep 2014 22:59:55 +0000 (UTC) Received: from mail-la0-x22a.google.com (mail-la0-x22a.google.com [IPv6:2a00:1450:4010:c03::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A16D664B for ; Fri, 26 Sep 2014 22:59:54 +0000 (UTC) Received: by mail-la0-f42.google.com with SMTP id hz20so15456631lab.15 for ; Fri, 26 Sep 2014 15:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=+zD1JiGuvMFcUaxMTCaztilRoFdmJjErK1QmdfsCK4Y=; b=Dvux5YyyzSKa+IVgEvYtUZS2gYn19diD4o7gj2Xorm4EMfsAMFTL603mLKpFzlbnYl ova188VLV3Sbwtg74CzjMnfdDeNuOR6TIIGPSBdIVY6HgWPCKjcK78NFY/1RJ6gCQfuc CAYc/XtnGK7JMFhrMw36V/FRe9/U48O7mdHxD1t4rlDvtUeq0lVRXROHZyVqZT0SZzHP 1ksTkQ1ea1aF1hnLUM4Cc9Qz6fGm1OsB0LgPfsoJYMyQQNlOPTea3J8SsllklLiLpNej 0erMcNI1Tkg5yxzBiigB1fo+FZajh7UsQduiBr4O1jbyOR2DX1eFAa8UgASXUBu+hVNE Ow/Q== MIME-Version: 1.0 X-Received: by 10.112.182.42 with SMTP id eb10mr22463444lbc.7.1411772392454; Fri, 26 Sep 2014 15:59:52 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Fri, 26 Sep 2014 15:59:52 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> Date: Sat, 27 Sep 2014 06:59:52 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2014 22:59:55 -0000 Just for Ref, xhci works in UEFI mode of Fedora 20: http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt http://sw.gddsn.org.cn/freebsd/linux-lspci.txt 2014-09-22 17:08 GMT+08:00 Huang Wen Hui : > xhci still not work, usbconfig list show: > ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER > (5.0Gbps) pwr=SAVE (0mA) > > Detail log: http://sw.gddsn.org.cn/freebsd/messages-uefi-poll.txt > > > 2014-09-22 16:29 GMT+08:00 Hans Petter Selasky : > >> On 09/22/14 10:26, Huang Wen Hui wrote: >> >>> Hi, >>> For xhci, this is "intpin=a, irq=255", no change. vmstat -i show almost >>> same result: >>> >>> interrupt total rate >>> irq9: acpi0 887 0 >>> irq16: ahci0 119840 20 >>> cpu0:timer 61017 10 >>> irq264: hdac0 11 0 >>> irq265: bge0 100509 16 >>> irq266: xhci0 10 0 >>> irq267: hdac1 1651 0 >>> cpu1:timer 45710 7 >>> cpu7:timer 41966 7 >>> cpu6:timer 43753 7 >>> cpu2:timer 39606 6 >>> cpu3:timer 49974 8 >>> cpu4:timer 46549 7 >>> cpu5:timer 29639 4 >>> irq268: vgapci0 42382 7 >>> Total 623504 104 >>> >>> >>> But these message are UEFI only: >>> >>> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed >>> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed >>> Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed >>> >>> Cheers, >>> Huang Wen Hui >>> >> >> Can you try setting: >> >> hw.usb.xhci.use_polling=1 >> >> in /boot/loader.conf >> >> Does it make any difference? >> >> --HPS >> > > From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 07:10:01 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96356641 for ; Sat, 27 Sep 2014 07:10:01 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5055786D for ; Sat, 27 Sep 2014 07:10:00 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 8C6CE1FE022; Sat, 27 Sep 2014 09:09:58 +0200 (CEST) Message-ID: <542662BE.5050908@selasky.org> Date: Sat, 27 Sep 2014 09:09:50 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: huanghwh@gmail.com Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 07:10:01 -0000 On 09/27/14 00:59, Huang Wen Hui wrote: > Just for Ref, xhci works in UEFI mode of Fedora 20: > http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt > http://sw.gddsn.org.cn/freebsd/linux-lspci.txt > Hi, The Root ACPI descriptor has wrong address? FreeBSD UEFI: kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) FreeBSD BIOS: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) Linux UEFI: mbp kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) static int elf64_exec(struct preloaded_file *fp) { struct file_metadata *md; Elf_Ehdr *ehdr; vm_offset_t modulep, kernend, trampcode, trampstack; int err, i; ACPI_TABLE_RSDP *rsdp; char buf[24]; int revision; EFI_STATUS status; rsdp = efi_get_table(&acpi20_guid); if (rsdp == NULL) { rsdp = efi_get_table(&acpi_guid); } Try swapping order of efi_get_table() ? rsdp = efi_get_table(&acpi_guid); if (rsdp == NULL) { rsdp = efi_get_table(&acpi20_guid); } In "sys/boot/amd64/efi/elf64_freebsd.c". --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 08:29:28 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id BA4E83FE for ; Sat, 27 Sep 2014 08:29:28 +0000 (UTC) Received: from mail-lb0-x22b.google.com (mail-lb0-x22b.google.com [IPv6:2a00:1450:4010:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B6C2E8C for ; Sat, 27 Sep 2014 08:29:27 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id l4so15508772lbv.2 for ; Sat, 27 Sep 2014 01:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=vjZ596MeF+tEG4HXFVg8k2BEeHE8ip3RlZyaj5BUo1k=; b=L7DBVqvcd88KqKwykkQK/X+d0t1ZwakrKTs2rIt6NzKq5naUJTYq49CFTyvgPWtNlK LNhZfgto1PWZxVDe/eBcsbzWbZOfC2FjU2yJPUy8ezf/EfDkStcwxHh1ZL181gDs8qCo W2ipvJONTa6zMK/1UG6D1xP65QFN8Ng8aVf1Cab0elytd5JtCbgo998a/qp+vDCcTFrr qvhH2yCR7mhrsEGw5tOuA1kSes5AB7+BgV8weHoYlGTiEQ/AA1MQQ0f0+hAghp1AEvQv vfhMxrVrCKQPGSRR34ad9Bx3hYnzJTNOZ/8OqJPgTuzKPdHpKc0/LrzgXJ4d8azCMT4r c4Gg== MIME-Version: 1.0 X-Received: by 10.152.44.136 with SMTP id e8mr25838056lam.36.1411806566004; Sat, 27 Sep 2014 01:29:26 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Sat, 27 Sep 2014 01:29:25 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: <542662BE.5050908@selasky.org> References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> <542662BE.5050908@selasky.org> Date: Sat, 27 Sep 2014 16:29:25 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 08:29:28 -0000 >From dmesg, RSDP should like these: FreeBSD UEFI: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) FreeBSD BIOS: kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) Anyway I swapped order of efi_get_table(), I got the result: Sep 27 07:49:33 mbp kernel: ACPI: RSDP 0x7ad8e000 00014 (v00 APPLE ) Sep 27 07:49:33 mbp kernel: ACPI: RSDT 0x7ad8e038 0005C (v01 APPLE Apple00 00000000 01000013) Sep 27 07:49:33 mbp kernel: ACPI: FACP 0x7ad8d000 00074 (v01 APPLE Apple00 00000000 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: DSDT 0x7ad80000 06BF9 (v03 APPLE MacBookP 00110002 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: FACS 0x7ad1c000 00040 Sep 27 07:49:33 mbp kernel: ACPI: HPET 0x7ad8b000 00038 (v01 APPLE Apple00 00000001 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: APIC 0x7ad8a000 000BC (v02 APPLE Apple00 00000001 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: SBST 0x7ad88000 00030 (v01 APPLE Apple00 00000001 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: ECDT 0x7ad87000 00053 (v01 APPLE Apple00 00000001 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7f000 0010B (v01 APPLE SataAhci 00001000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7e000 00024 (v01 APPLE SmcDppt 00001000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7c000 00688 (v01 APPLE SDUsbLpt 00001000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad65000 09CE3 (v01 APPLE TbtPEG11 00001000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad64000 000B8 (v01 APPLE Sdxc 00001000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad62000 0065A (v01 PmRef Cpu0Ist 00003000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad61000 00B83 (v01 PmRef CpuPm 00003000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: MCFG 0x7ad89000 0003C (v01 APPLE Apple00 00000001 Loki 0000005F) Sep 27 07:49:33 mbp kernel: ACPI: DMAR 0x7ad60000 00088 (v01 APPLE HSW 00000001 AAPL 00000001) But xhci still not work. 2014-09-27 15:09 GMT+08:00 Hans Petter Selasky : > On 09/27/14 00:59, Huang Wen Hui wrote: > >> Just for Ref, xhci works in UEFI mode of Fedora 20: >> http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt >> http://sw.gddsn.org.cn/freebsd/linux-lspci.txt >> >> > Hi, > > The Root ACPI descriptor has wrong address? > > FreeBSD UEFI: > kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) > > FreeBSD BIOS: > kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) > > Linux UEFI: > mbp kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) > > > static int > elf64_exec(struct preloaded_file *fp) > { > struct file_metadata *md; > Elf_Ehdr *ehdr; > vm_offset_t modulep, kernend, trampcode, trampstack; > int err, i; > ACPI_TABLE_RSDP *rsdp; > char buf[24]; > int revision; > EFI_STATUS status; > > rsdp = efi_get_table(&acpi20_guid); > if (rsdp == NULL) { > rsdp = efi_get_table(&acpi_guid); > } > > Try swapping order of efi_get_table() ? > > rsdp = efi_get_table(&acpi_guid); > if (rsdp == NULL) { > rsdp = efi_get_table(&acpi20_guid); > } > > In "sys/boot/amd64/efi/elf64_freebsd.c". > > --HPS > From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 18:09:02 2014 Return-Path: Delivered-To: freebsd-usb@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 ESMTPS id E0E389B9 for ; Sat, 27 Sep 2014 18:09:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C7919C63 for ; Sat, 27 Sep 2014 18:09:02 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8RI92Gb066403 for ; Sat, 27 Sep 2014 18:09:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Date: Sat, 27 Sep 2014 18:09:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 18:09:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 --- Comment #2 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Sat Sep 27 18:08:40 UTC 2014 New revision: 272218 URL: https://svnweb.freebsd.org/changeset/base/272218 Log: MFC r271874: Add new USB IDs. PR: 193775 Approved by: re, gjb Changes: _U stable/10/ stable/10/sys/dev/usb/serial/u3g.c stable/10/sys/dev/usb/usbdevs -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 18:11:04 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97D8DB50 for ; Sat, 27 Sep 2014 18:11:04 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E536C84 for ; Sat, 27 Sep 2014 18:11:04 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8RIB4f0026639 for ; Sat, 27 Sep 2014 18:11:04 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Date: Sat, 27 Sep 2014 18:11:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 18:11:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Sat Sep 27 18:10:53 UTC 2014 New revision: 272219 URL: https://svnweb.freebsd.org/changeset/base/272219 Log: MFC r271874: Add new USB IDs. PR: 193775 Changes: _U stable/9/sys/ _U stable/9/sys/dev/ stable/9/sys/dev/usb/serial/u3g.c stable/9/sys/dev/usb/usbdevs -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 18:13:05 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D4B4FCE6 for ; Sat, 27 Sep 2014 18:13:05 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB5BED2C for ; Sat, 27 Sep 2014 18:13:05 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8RID5m9015546 for ; Sat, 27 Sep 2014 18:13:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers Date: Sat, 27 Sep 2014 18:13:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 18:13:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 --- Comment #4 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Sat Sep 27 18:12:06 UTC 2014 New revision: 272220 URL: https://svnweb.freebsd.org/changeset/base/272220 Log: MFC r271874: Add new USB IDs. PR: 193775 Changes: _U stable/8/sys/ _U stable/8/sys/dev/ _U stable/8/sys/dev/usb/ stable/8/sys/dev/usb/serial/u3g.c stable/8/sys/dev/usb/usbdevs -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 18:29:25 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF592273 for ; Sat, 27 Sep 2014 18:29:25 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8594FE4A for ; Sat, 27 Sep 2014 18:29:24 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D011C1FE022; Sat, 27 Sep 2014 20:29:21 +0200 (CEST) Message-ID: <542701FA.2000408@selasky.org> Date: Sat, 27 Sep 2014 20:29:14 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: huanghwh@gmail.com Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> <542662BE.5050908@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 18:29:25 -0000 Hi, Can you try the attached patch? --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Sep 27 18:32:05 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE2583B8 for ; Sat, 27 Sep 2014 18:32:05 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B2EDEF8 for ; Sat, 27 Sep 2014 18:32:05 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 396D31FE022; Sat, 27 Sep 2014 20:32:02 +0200 (CEST) Message-ID: <5427029B.3060502@selasky.org> Date: Sat, 27 Sep 2014 20:31:55 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: huanghwh@gmail.com Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> <542662BE.5050908@selasky.org> <542701FA.2000408@selasky.org> In-Reply-To: <542701FA.2000408@selasky.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 18:32:05 -0000 On 09/27/14 20:29, Hans Petter Selasky wrote: > Hi, > > Can you try the attached patch? > > --HPS === dev/pci/pci.c ================================================================== --- dev/pci/pci.c (revision 272064) +++ dev/pci/pci.c (local) @@ -3025,7 +3025,10 @@ /* Update the config register if it changed. */ if (irq != cfg->intline) { cfg->intline = irq; - pci_write_config(dev, PCIR_INTLINE, irq, 1); + if (irq != 255) + pci_write_config(dev, PCIR_INTLINE, irq, 1); + else + printf("Skipped\n"); } /* Add this IRQ as rid 0 interrupt resource. */