Re: USB 3 strange behavior, lenovo x240

2015-01-16 Thread Hans Petter Selasky
On 01/16/15 19:00, Sean Bruno wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm seeing strange behavior when I enable USB 3 support on my laptop. Running head @r276878: Disabling USB 3 makes things behave "better" in that my wireless device will actually serve traffic and /dev/video0

Re: usb_pc_cpu_flush

2015-01-16 Thread Hans Petter Selasky
Hi Ian, Please find attached a patch which disable the double mapping of allocated DMA capable buffers in the USB stack for all drivers. Can you test it and check out the total memory usage before and after the patch? Also verify it if makes any difference on any platforms. Thank you! --HP

Re: usb_pc_cpu_flush

2015-01-14 Thread Hans Petter Selasky
On 01/14/15 16:03, Ian Lepore wrote: If you are allocating the memory using bus_dmamem_alloc() then no, absolutely not. It's working for you by accident because of the USB_HOST_ALIGN hacks which I think date back to freebsd 8 or so. When I talked to you a couple years ago about doing it the rig

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 21:25, Ian Lepore wrote: On Tue, 2015-01-13 at 17:52 +0100, Hans Petter Selasky wrote: On 01/13/15 17:29, Ian Lepore wrote: On Tue, 2015-01-13 at 16:57 +0100, Hans Petter Selasky wrote: On 01/13/15 16:40, Ian Lepore wrote: On Tue, 2015-01-13 at 16:27 +0100, Hans Petter Selasky

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
Hi Kott, Can you tell us which ARM kernel configuration file you are using for FreeBSD? Reading through this thread I cannot see this piece of information yet. Have you tested other ARM platforms? Thank you, --HPS ___ freebsd-usb@freebsd.org maili

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 17:52, Hans Petter Selasky wrote: Hi, Can you give an example of a NIC driver which you consider a good example which use DMA both for data (not only mbufs) and the control path and use busdma as you consider to be correct? --HPS So that I can compare this agains what USB is

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 17:29, Ian Lepore wrote: On Tue, 2015-01-13 at 16:57 +0100, Hans Petter Selasky wrote: On 01/13/15 16:40, Ian Lepore wrote: On Tue, 2015-01-13 at 16:27 +0100, Hans Petter Selasky wrote: On 01/13/15 15:49, Ian Lepore wrote: On Tue, 2015-01-13 at 00:14 -0700, kott wrote: Yes with

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 16:57, Hans Petter Selasky wrote: BUSDMA does. --HPS ... allow this. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-uns

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 16:40, Ian Lepore wrote: On Tue, 2015-01-13 at 16:27 +0100, Hans Petter Selasky wrote: On 01/13/15 15:49, Ian Lepore wrote: On Tue, 2015-01-13 at 00:14 -0700, kott wrote: Yes with cache disabled, this problem is not seen. Seems to be with a issue with l2 cache. Thanks kott

Re: usb_pc_cpu_flush

2015-01-13 Thread Hans Petter Selasky
On 01/13/15 15:49, Ian Lepore wrote: On Tue, 2015-01-13 at 00:14 -0700, kott wrote: Yes with cache disabled, this problem is not seen. Seems to be with a issue with l2 cache. Thanks kott Except that there are no known problems with l2 cache on armv7 right now. There are known problems with th

Re: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2"

2015-01-11 Thread Hans Petter Selasky
Hi, See: https://svnweb.freebsd.org/changeset/base/277044 Will be backported to 9-stable. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@fr

Re: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2"

2015-01-11 Thread Hans Petter Selasky
On 01/12/15 01:54, Joshua Ruehlig wrote: The machine I am trying to patch is FreeBSD9.3 and doesn't have a sys/dev/usb/usb_freebsd_loader.h Can I skip patching this file, or should I direct the changes somewhere else? Yes, you can skip this patch. --HPS ___

Re: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2"

2015-01-11 Thread Hans Petter Selasky
On 01/11/15 17:59, Joshua Ruehlig wrote: Tell meif you need anything else, thanks - Josh Hi, Can you try the attached patch? --HPS Index: sys/dev/usb/usb_freebsd.h === --- sys/dev/usb/usb_freebsd.h (revision 276981) +++ sys/dev/

Re: ZTE MF730M 3G dongle help please

2015-01-11 Thread Hans Petter Selasky
On 01/11/15 15:34, Gary Palmer wrote: On Sun, Jan 11, 2015 at 11:29:51AM +0100, Hans Petter Selasky wrote: Hi, Config index 0 is the default, so you might want to try without the ", UQ_CFG_INDEX_0" in the end. USB_QUIRK(QUALCOMMINC, ZTE_MF730M, 0xf0f7, 0xf0f7, UQ_MSC_NO

Re: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2"

2015-01-11 Thread Hans Petter Selasky
Hi, Could you show the umass printouts in dmesg for your two kingston devices and especially the line about quirk= Thank you! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send a

Re: ZTE MF730M 3G dongle help please

2015-01-11 Thread Hans Petter Selasky
Hi, Config index 0 is the default, so you might want to try without the ", UQ_CFG_INDEX_0" in the end. USB_QUIRK(QUALCOMMINC, ZTE_MF730M, 0xf0f7, 0xf0f7, UQ_MSC_NO_GETMAXLUN, UQ_MSC_NO_INQUIRY, UQ_CFG_INDEX_0), --HPS ___ freebsd-usb@freebsd.org ma

Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-10 Thread Hans Petter Selasky
On 01/10/15 16:53, Adrian Chadd wrote: Real interrupt: frindex=0x12f6 ctrdsegm=0x periodic=0xda3cf000 async=0xda3d1000 port 1 status=0x1005 port 2 status=0x1000 ehci_interrupt: real interrupt cmd=0x00010031 EHCI_CMD_ITC_1 EHCI_CMD_ASE EHCI_CMD_PSE EHCI_CMD_RS sts=0x00

Re: Lynx Point USB - large amount of interrupts (300k / second)

2015-01-10 Thread Hans Petter Selasky
On 01/10/15 00:37, Daniel Kolesa wrote: 2015-01-09 23:26 GMT+00:00 Daniel Kolesa : 2015-01-09 20:24 GMT+00:00 Adrian Chadd : hi, I have a haswell desktop box at home: CPU: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz (3192.67-MHz K8-class CPU) With lynx point USB: Also Haswell here, but with H

Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage

2015-01-08 Thread Hans Petter Selasky
Hi, A fix will be in 10-stable in a weeks time: https://svnweb.freebsd.org/changeset/base/276825 Thank you! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd

Re: Action Cam SJ4000 (SJCAM) unrecognized as mass storage

2015-01-07 Thread Hans Petter Selasky
On 01/07/15 01:00, Miroslav Lachman wrote: I have action camera SJ4000 based on Novatek NTK96650+AR0330 solution. It has a USB cable and can be connected as USB mass storage, but FreeBSD 10.1 does not properly recognize it. ugen1.4: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; qui

Re: About XHCI_TD_PAGE_SIZE.

2014-12-30 Thread Hans Petter Selasky
Hi Kohji! Here you go: https://svnweb.freebsd.org/changeset/base/276407 Please verify! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@fre

Re: usb_pc_cpu_flush

2014-12-25 Thread Hans Petter Selasky
Hi, There might be an option somewhere you can set in the boot enviroment, which will disable the CPU cache ... I guess something is failing in that area. Else we would see the same with regular PCs too. --HPS ___ freebsd-usb@freebsd.org mailing lis

Re: usb_pc_cpu_flush

2014-12-24 Thread Hans Petter Selasky
On 12/24/14 15:35, kott via freebsd-usb wrote: did try with freebsd11 also and it fails in the same point at usb_pc_cpu_flush. Is this a known issue ? any suggestions would help This is not a known issue. Which ARM kernel are you building? --HPS __

Re: usb_pc_cpu_flush

2014-12-24 Thread Hans Petter Selasky
On 12/24/14 13:22, kott via freebsd-usb wrote: This platform is armv7 freebsd10. it does fail in the second usb_pc_cpu_flush Did you try booting a freebsd11 kernel? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/li

Re: usb_pc_cpu_flush

2014-12-24 Thread Hans Petter Selasky
On 12/24/14 04:41, kott via freebsd-usb wrote: the value of "r0" is 0. Hi, In the function "_ehci_append_qh" do you know if it is the second or first call to "usb_pc_cpu_flush" which fails. The pointer which is passed as an argument to this function resides in the memory which is flushed,

Re: usb_pc_cpu_flush

2014-12-23 Thread Hans Petter Selasky
On 12/23/14 19:26, kott wrote: Hello - I am seeing this fault when i plugin a external usb device, and was wondering if this indicates DMA/Cache coherency problem - _ehci_append_qh: 0xf3dd2300 to 0xf3dc3c00 Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex e

Re: About XHCI_TD_PAGE_SIZE.

2014-12-23 Thread Hans Petter Selasky
On 12/22/14 15:49, Ian Lepore wrote: On Mon, 2014-12-22 at 10:48 +0100, Hans Petter Selasky wrote: On 12/22/14 10:31, Kohji Okuno wrote: In an optimisation, we should reduce the number of LINK_TRB, too. I heard from a LSI engineer that, Generally xhci controler has the cache of TRB array. But

Re: Disconnects every 15 seconds

2014-12-22 Thread Hans Petter Selasky
will reply on that one.. thnx On Mon, Dec 15, 2014 at 1:20 AM, Hans Petter Selasky wrote: Hi, On 12/15/14 09:58, Randall Fox wrote: Dec 15 00:29:21 freenas kernel: uhub_read_port_status: port 2, wPortStatus=0x0101, wPortChange=0x0001, err=USB_ERR_NORMAL_COMPLETION This message means

Re: About XHCI_TD_PAGE_SIZE.

2014-12-22 Thread Hans Petter Selasky
On 12/22/14 10:31, Kohji Okuno wrote: In an optimisation, we should reduce the number of LINK_TRB, too. I heard from a LSI engineer that, Generally xhci controler has the cache of TRB array. But, LINK_TRB may make the cache miss. Hi, One reason for the additional link TRB's is that I think th

Re: urndis and umodem device collision for ue device

2014-12-22 Thread Hans Petter Selasky
On 12/22/14 10:29, Randall Fox wrote: On Mon, Dec 22, 2014 at 1:23 AM, Hans Petter Selasky wrote: I am not familiar with RNDIS.. This thread is about umodem and urndis. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org

Re: urndis and umodem device collision for ue device

2014-12-22 Thread Hans Petter Selasky
On 12/22/14 10:14, Randall Fox wrote: On Mon, Dec 22, 2014 at 12:42 AM, Hans Petter Selasky wrote: On 12/21/14 22:28, Randall Fox wrote: On Sun, Dec 21, 2014 at 1:02 PM, Hans Petter Selasky wrote: On 12/21/14 21:40, Randall Fox wrote: Did you update /etc/devd/usb.conf, install new

Re: About XHCI_TD_PAGE_SIZE.

2014-12-22 Thread Hans Petter Selasky
On 12/22/14 02:38, Kohji Okuno wrote: From: Hans Petter Selasky Subject: Re: About XHCI_TD_PAGE_SIZE. Date: Sat, 20 Dec 2014 10:30:36 +0100 On 12/17/14 05:42, Nidal Khalil wrote: I agree. Thanks Nidal On Dec 16, 2014 6:25 PM, "Kohji Okuno" wrote: Hi Hans, If we use PA

Re: urndis and umodem device collision for ue device

2014-12-22 Thread Hans Petter Selasky
On 12/21/14 22:28, Randall Fox wrote: On Sun, Dec 21, 2014 at 1:02 PM, Hans Petter Selasky wrote: On 12/21/14 21:40, Randall Fox wrote: Did you update /etc/devd/usb.conf, install new kernel and reboot your system? I actually had the FreeNAS team apply this fix to the nightly build and I

Re: urndis and umodem device collision for ue device

2014-12-21 Thread Hans Petter Selasky
this. On Sun, Dec 21, 2014 at 12:24 PM, Hans Petter Selasky wrote: On 12/21/14 21:21, Randall Fox wrote: Hi, The following patches should fix your problem: https://svnweb.freebsd.org/changeset/base/275790 https://svnweb.freebsd.org/changeset/base/275791 --HPS Can you get the dmesg

Re: urndis and umodem device collision for ue device

2014-12-21 Thread Hans Petter Selasky
On 12/21/14 21:21, Randall Fox wrote: Hi, The following patches should fix your problem: https://svnweb.freebsd.org/changeset/base/275790 https://svnweb.freebsd.org/changeset/base/275791 --HPS I finally was able to apply this, and it did not work for me. I am still getting the disconnect m

Re: About XHCI_TD_PAGE_SIZE.

2014-12-20 Thread Hans Petter Selasky
On 12/17/14 05:42, Nidal Khalil wrote: I agree. Thanks Nidal On Dec 16, 2014 6:25 PM, "Kohji Okuno" wrote: Hi Hans, If we use PAGE_SIZE as USB_PAGE_SIZE, we should use PAGE_SIZE as XHCI_TD_PAGE_SIZE, too. I think. As you know, one TRB can use 1~64kB for the transfer length. Hi, We curre

Re: urndis and umodem device collision for ue device

2014-12-15 Thread Hans Petter Selasky
Hi, On 12/15/14 18:12, Randall Fox wrote: The following patches should fix your problem: https://svnweb.freebsd.org/changeset/base/275790 https://svnweb.freebsd.org/changeset/base/275791 Would it be correct to assume I need to recompile the kernel to get this working? You need to build a ne

Re: urndis and umodem device collision for ue device

2014-12-15 Thread Hans Petter Selasky
Hi, The following patches should fix your problem: https://svnweb.freebsd.org/changeset/base/275790 https://svnweb.freebsd.org/changeset/base/275791 --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb T

Re: Disconnects every 15 seconds

2014-12-15 Thread Hans Petter Selasky
Hi, On 12/15/14 09:58, Randall Fox wrote: Dec 15 00:29:21 freenas kernel: uhub_read_port_status: port 2, wPortStatus=0x0101, wPortChange=0x0001, err=USB_ERR_NORMAL_COMPLETION This message means that the "UPS_C_CONNECT_STATUS" changed. My best guess is that the device had a problem and decided

Re: Disconnects every 15 seconds

2014-12-15 Thread Hans Petter Selasky
On 12/14/14 20:43, Randall Fox wrote: On everything below, I removed the USB hub I tested with in the last message and plugged the UPS directly into the computers USB port, like before. Can you send the output from "pciconv -lv" especially those lines which relate to USB controllers? Also try

Re: Disconnects every 15 seconds

2014-12-14 Thread Hans Petter Selasky
On 12/14/14 19:26, Randall Fox wrote: Thanks for the reply... Here are the answers to you questions. What USB controllers are you using? EHCI/XHCI/OHCI/UHCI? I'm not sure how to check this, but it looks like it's using EHCI, at least it shows that when running usbconfig: $ usbconfig ugen0.1:

Re: Disconnects every 15 seconds

2014-12-13 Thread Hans Petter Selasky
On 12/14/14 05:21, Randall Fox wrote: I'm using a FreeBSD derivative, called FreeNAS. It is using FreeBSD at its core. Version of FreeNAS is 9.2.1.3, which roughly corresponds to the FreeBSD version (9.2). I plug in my UPS and I get: Dec 13 20:08:49 freenas kernel: ugen1.4: at usbus1 Dec 13 2

Re: urndis and umodem device collision for ue device

2014-12-13 Thread Hans Petter Selasky
On 12/13/14 06:43, Anish Mistry wrote: I have a HP Pre3 (webos) which when switched into USB tethering mode with freetether exposes a RNDIS Ethernet Device. This should simply appear as ue0 and off to the races. Unfortunately it attached via umodem due to the usb.conf/devd usb_autoconf

Re: u3g USB ID update

2014-12-08 Thread Hans Petter Selasky
On 12/07/14 04:50, Benediktus Anindito wrote: add more usb device support for some cheap flip-flop modems. i've tried it in 8-STABLE, 9-STABLE, 10-STABLE. it should be worked on CURRENT. Hi, Thank you for supporting FreeBSD: https://svnweb.freebsd.org/changeset/base/275606 --HPS ___

Re: Is writing usb devices as files (via /dev/ugen*) supported in FreeBSD?

2014-12-07 Thread Hans Petter Selasky
On 12/07/14 23:52, Torfinn Ingolfsen wrote: Hello, Question: is writing to the device file (/dev/ugenX) with normal file calls supposed to work in FreeBSD? (as in "everything is a file" in unix-like operating systems) Background: I recently got a usb label printer for cheap: a Dymo LabelManager

Re: Question on ue devices autoconfigure versus Linux.

2014-11-28 Thread Hans Petter Selasky
On 11/29/14 02:05, Jesus Monroy via freebsd-usb wrote: Alfred, I usually don't get the USB mailing list in my inbox. However, for some reason I fished this out of spam. Indicating to me I should answer this. THE ANSWER: Hot swapping has never been a strong point for BSD. Basically they think, "

Re: request: including uhidd in base

2014-11-08 Thread Hans Petter Selasky
On 11/08/14 18:50, Adrian Chadd wrote: hi! The surface pro device keyboard/touchpad combos have a multi-HID device, which we don't support without uhidd installed. So, would anyone mind if it was just added in as a base daemon? Without it it's impossible to install FreeBSD on the Surface Pro /

Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB

2014-11-07 Thread Hans Petter Selasky
Hi, If you set: hw.usb.umass.throttle=xxx Then it might have the same effect! Needs "options USB_DEBUG" in the kernel configuration file. SYSCTL_INT(_hw_usb_umass, OID_AUTO, throttle, CTLFLAG_RWTUN, &umass_throttle, 0, "Forced delay between commands in milliseconds"); --HPS _

Re: g_vfs_done() error=5 USB disk on raspberrypi. Decrease the speed of USB

2014-11-07 Thread Hans Petter Selasky
On 11/07/14 13:25, Aurelien Martin wrote: Dear all, My raspberry-pi is crashing in g_vfs_done error 5 () when I'm trying to copy data from the rpi (with dd) to my USB drive on UFS2 I can notice a high %system load ~100% on the rpi before the crash Apparently people succeed to "fix it" by decrea

Re: ehci breaking Supermicro IPMI keyboard on uhci?

2014-11-04 Thread Hans Petter Selasky
On 11/05/14 00:26, Steven Hartland wrote: On 04/11/2014 21:58, Hans Petter Selasky wrote: On 11/04/14 21:22, Steven Hartland wrote: On 04/11/2014 17:42, Steven Hartland wrote: On 04/11/2014 16:45, Hans Petter Selasky wrote: On 11/04/14 17:40, Steven Hartland wrote: On 04/11/2014 07:22

Re: ehci breaking Supermicro IPMI keyboard on uhci?

2014-11-04 Thread Hans Petter Selasky
On 11/04/14 21:22, Steven Hartland wrote: On 04/11/2014 17:42, Steven Hartland wrote: On 04/11/2014 16:45, Hans Petter Selasky wrote: On 11/04/14 17:40, Steven Hartland wrote: On 04/11/2014 07:22, Hans Petter Selasky wrote: On 11/04/14 01:05, Steven Hartland wrote: Had the problem where

Re: ehci breaking Supermicro IPMI keyboard on uhci?

2014-11-04 Thread Hans Petter Selasky
On 11/04/14 17:40, Steven Hartland wrote: On 04/11/2014 07:22, Hans Petter Selasky wrote: On 11/04/14 01:05, Steven Hartland wrote: Had the problem where the Supermicro IPMI keyboard wouldn't work on some machines for a while, tonight I finally had time to play with all the options to s

Re: ehci breaking Supermicro IPMI keyboard on uhci?

2014-11-03 Thread Hans Petter Selasky
On 11/04/14 01:05, Steven Hartland wrote: Had the problem where the Supermicro IPMI keyboard wouldn't work on some machines for a while, tonight I finally had time to play with all the options to see if anything would make it work. Turns out adding the following to loader.conf does fixes the iss

Re: USB stack driver options for the receive side question

2014-10-27 Thread Hans Petter Selasky
On 10/28/14 04:03, Nidal Khalil wrote: Hello All, I am setting up usb to transfer 3 frames on the bulk read descriptor but all I get is one frame transferred? Basically aframe = 1 However if I use .short_frames_ok = 1, then the transfer will pend till the three frames are received. This code is

Re: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2014-10-21 Thread Hans Petter Selasky
On 10/22/14 03:09, Dewayne Geraghty wrote: Hans, Thank-you for these enhancements, as its good to have something in the armoury to try to address this issue. I applied the patch https://lists.freebsd.org/pipermail/svn-src-head/2014-October/063443.html to an updated 10.Stable overnight. Disabli

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-17 Thread Hans Petter Selasky
=== So, I've lost the cdc0 and ue0 devices, but got the u3g0 device. And we have three /dev/ttyU* and /dev/cucU* devices (and the .init and .lock devices to all of them). And of course, I can connect to the device: # cu -s 115200 -l /dev/cuaU0.0 Connected atz OK ati Manufacturer: Vodafone (Huawei

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-17 Thread Hans Petter Selasky
On 10/17/14 11:26, ga...@zahemszky.hu wrote: 2014-10-16 10:58 időpontban Hans Petter Selasky ezt írta: Hi, You need to run 11-curent, the quirk is not in 10-branch yet. The following patch for 11-current should fix your device. Hint: You can boot a 11-current kernel with 10-xxx userland

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-16 Thread Hans Petter Selasky
Hi, You need to run 11-curent, the quirk is not in 10-branch yet. The following patch for 11-current should fix your device. Hint: You can boot a 11-current kernel with 10-xxx userland! Can you test the attached patch on 11-current, and report back? --HPS _

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-16 Thread Hans Petter Selasky
On 10/16/14 09:50, ga...@zahemszky.hu wrote: 2014-10-16 09:36 időpontban Hans Petter Selasky ezt írta: On 10/16/14 08:48, ga...@zahemszky.hu wrote: I tried to switch it to USB-modem mode, but none of the usb_quirks worked. And with EJECT_HUAWEI, I got an error, too. # usbconfig -d ugen4.3

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-16 Thread Hans Petter Selasky
On 10/16/14 08:48, ga...@zahemszky.hu wrote: I tried to switch it to USB-modem mode, but none of the usb_quirks worked. And with EJECT_HUAWEI, I got an error, too. # usbconfig -d ugen4.3 add_quirk UQ_MSC_EJECT_HUAWEI Adding quirk 'UQ_MSC_EJECT_HUAWEI' failed, continuing. # Did you load the u3g

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-15 Thread Hans Petter Selasky
Hi, On 10/15/14 22:33, ga...@zahemszky.hu wrote: Hi! I borrowed a Vodafone - Huawei K3772 Mobile stick for some days. It's a bit disappointing, that I could not use it under FreeBSD. This 3g modem is made by Huawei (the K3772z is made by ZTE) with vendorID: 0x12d1 and productID: 0x1526. # usbc

Re: u3g and Vodafone k3772 (not k3772z)

2014-10-15 Thread Hans Petter Selasky
Hi, On 10/15/14 22:33, ga...@zahemszky.hu wrote: Hi! I borrowed a Vodafone - Huawei K3772 Mobile stick for some days. It's a bit disappointing, that I could not use it under FreeBSD. This 3g modem is made by Huawei (the K3772z is made by ZTE) with vendorID: 0x12d1 and productID: 0x1526. # usbc

Re: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2014-10-09 Thread Hans Petter Selasky
On 10/09/14 15:59, Oliver Pinter wrote: On 10/9/14, Hans Petter Selasky wrote: Hi Julian, On 10/09/14 01:46, Julian H. Stacey wrote: Hi Hans etc "Julian H. Stacey" wrote: Hans Petter Selasky wrote: Hi, Can you test the following kernel patch and give some feedba

Re: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2014-10-08 Thread Hans Petter Selasky
Hi Julian, On 10/09/14 01:46, Julian H. Stacey wrote: Hi Hans etc "Julian H. Stacey" wrote: Hans Petter Selasky wrote: Hi, Can you test the following kernel patch and give some feedback: https://svnweb.freebsd.org/changeset/base/272733 I'm now on latest current with src

Re: XHCI device probe inconsistency

2014-10-08 Thread Hans Petter Selasky
On 10/07/14 21:04, Mike Tancsa wrote: ugen0.4: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (200mA) Hi, If you plug the device after boot, what happens then? What speed does the BIOS enumerate the device at? Have you checked for USB related BIOS settings? --HPS _

Re: Panic in usb_unref_device

2014-10-08 Thread Hans Petter Selasky
On 10/07/14 23:19, Daniel O'Connor wrote: On 3 Oct 2014, at 21:18, Hans Petter Selasky wrote: On 10/03/14 13:19, Daniel O'Connor wrote: Hi, I have a custom USB device based on the Cypress FX2 and we are finding that with some older kernels it hangs - this was fixed

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-10-08 Thread Hans Petter Selasky
FYI This issue was fixed by: https://svnweb.freebsd.org/changeset/base/272589 --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2014-10-08 Thread Hans Petter Selasky
Hi, Can you test the following kernel patch and give some feedback: https://svnweb.freebsd.org/changeset/base/272733 After the patch you will get something like: hw.usb.disable_enumeration: 0 dev.uhub.0.disable_enumeration: 0 dev.uhub.1.disable_enumeration: 0 ... which is also settable throug

Re: BadUSB - On Accessories that Turn Evil, by Karsten Nohl + Jakob Lell

2014-10-06 Thread Hans Petter Selasky
On 10/06/14 22:30, Poul-Henning Kamp wrote: In message <201410061956.s96ju8s3089...@fire.js.berklix.net>, "Julian H. Stacey " writes: For FreeBSD, I guess for serious security, every new device that is connected & recognised by /sbin/devd should in future be personaly authorised

Re: Is here maximum size of buffer for libusb_fill_bulk_transfer() call?

2014-10-06 Thread Hans Petter Selasky
On 10/06/14 13:06, Lev Serebryakov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 06.10.2014 15:03, Hans Petter Selasky wrote: Is here practical buffer size limit? I mean, maybe, standard limits transfer size by 64K or something like this? If the transfer is too big, libusb in

Re: Is here maximum size of buffer for libusb_fill_bulk_transfer() call?

2014-10-06 Thread Hans Petter Selasky
On 10/06/14 12:54, Lev Serebryakov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Is here practical buffer size limit? I mean, maybe, standard limits transfer size by 64K or something like this? Hi, If the transfer is too big, libusb in FreeBSD loops using an internal buffer, unl

Re: CEC device not attaching to xHCI port

2014-10-05 Thread Hans Petter Selasky
On 10/05/14 16:05, Ulrich Spörlein wrote: 2014-10-05 2:11 GMT+02:00 Hans Petter Selasky : On 10/04/14 15:53, Ulrich Spörlein wrote: 2014-09-29 19:49 GMT+02:00 Ulrich Spörlein : Hi, I got a CEC adapter using libCEC to bridge the gap between my XBMC and TV. The device works fine *if* I plug

Re: CEC device not attaching to xHCI port

2014-10-04 Thread Hans Petter Selasky
On 10/04/14 15:53, Ulrich Spörlein wrote: 2014-09-29 19:49 GMT+02:00 Ulrich Spörlein : Hi, I got a CEC adapter using libCEC to bridge the gap between my XBMC and TV. The device works fine *if* I plug it into the front ports (which is a bit ugly, so I was wondering why this is not working on the

Re: Panic in usb_unref_device

2014-10-03 Thread Hans Petter Selasky
On 10/03/14 13:48, Hans Petter Selasky wrote: On 10/03/14 13:19, Daniel O'Connor wrote: Hi, I have a custom USB device based on the Cypress FX2 and we are finding that with some older kernels it hangs - this was fixed in https://svnweb.freebsd.org/base?view=revision&revision=267240 b

Re: Panic in usb_unref_device

2014-10-03 Thread Hans Petter Selasky
On 10/03/14 13:19, Daniel O'Connor wrote: Hi, I have a custom USB device based on the Cypress FX2 and we are finding that with some older kernels it hangs - this was fixed in https://svnweb.freebsd.org/base?view=revision&revision=267240 but now it panics with… Hi, There's a minor bug there

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-10-02 Thread Hans Petter Selasky
On 10/03/14 05:55, Huang Wen Hui wrote: I found that how to connect EHCI controller, use "bless" command in MacOSX with --legacy option: 1. open MacOSX terminal, mkdir /Volumes/EFI 2. mount -t msdos /dev/disk0s1 /Volumes/EFI 3. bless --setBoot --mount /Volumes/EFI --legacy 4. reboot MacOSX, press

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-10-01 Thread Hans Petter Selasky
On 10/01/14 09:24, Huang Wen Hui wrote: verbose dmesg with patch, hw.usb.xhci.debug=16 and hw.usb.xhci.use_polling=1 http://sw.gddsn.org.cn/freebsd/hps-bios-message2.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message2.txt Hi, Can you join #bsdusb on EF-net? BTW: Why are the time-stamps so

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-30 Thread Hans Petter Selasky
On 09/30/14 16:12, Huang Wen Hui wrote: http://sw.gddsn.org.cn/freebsd/hps-bios-message.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message.txt Hi, Can you try the attached patch again, and send verbose dmesg including xhci debug on? --HPS ___ f

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-30 Thread Hans Petter Selasky
On 09/30/14 15:50, Huang Wen Hui wrote: I manually patch on STABLE, Both bios and uefi still are same as before:( Hi, Can you get verbose dmesg with patch, hw.usb.xhci.debug=16 in /boot/loader.conf ? Also set: hw.usb.xhci.use_polling=1 in /boot/loader.conf Thank you! --HPS _

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-30 Thread Hans Petter Selasky
On 09/30/14 15:10, Huang Wen Hui wrote: Hi, Both bios and uefi are same as before. I never see EHCI controller from dmesg when I got this MBP:( Thanks, Huang Wen Hui Can you try the attached patch for xhci.c ? --HPS ___ freebsd-usb@freebsd.org m

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-30 Thread Hans Petter Selasky
/working-mac-uefi-pciconf.txt 2014-09-30 19:23 GMT+08:00 Hans Petter Selasky : Hi, Can you get output from "pciconf -lv" from the non-working MBP, in both UEFI and BIOS mode? --HPS Hi, It looks like you are missing an EHCI controller. What happens if you boot having: hw.pci.do_powe

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-30 Thread Hans Petter Selasky
Hi, Can you get output from "pciconf -lv" from the non-working MBP, in both UEFI and BIOS mode? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubsc

Re: CEC device not attaching to xHCI port

2014-09-29 Thread Hans Petter Selasky
On 09/29/14 19:49, Ulrich Spörlein wrote: Hi, I got a CEC adapter using libCEC to bridge the gap between my XBMC and TV. The device works fine *if* I plug it into the front ports (which is a bit ugly, so I was wondering why this is not working on the other USB hub). Non-working: ugen0.2: at us

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-27 Thread Hans Petter Selasky
On 09/28/14 06:26, Huang Wen Hui wrote: No lucky. dmesg aslo no change, I could not found "Skipped". Cheers, Huang Wen Hui Did you try searching if Linux users had such a problem already? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-27 Thread Hans Petter Selasky
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

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-27 Thread Hans Petter Selasky
Hi, Can you try the attached patch? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-27 Thread 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

Re: Does the xHCI driver has a spec violation?

2014-09-22 Thread Hans Petter Selasky
Hi, Please verify: http://svnweb.freebsd.org/changeset/base/271953 Thank you! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-22 Thread 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

Re: Does the xHCI driver has a spec violation?

2014-09-21 Thread Hans Petter Selasky
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 endpoin

Re: xhci problem on UEFI boot MacBookPro 11,3

2014-09-21 Thread 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 n

Re: Does the xHCI driver has a spec violation?

2014-09-21 Thread Hans Petter Selasky
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 Poi

Re: USB device repeatedly disconnected

2014-09-21 Thread Hans Petter Selasky
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 = 0x0

Re: [Bug 193775] [kernel/usb/u3g] GOBI2000/HP_UN2420 WWAN/GPS identification numbers

2014-09-19 Thread Hans Petter Selasky
On 09/19/14 18:32, CeDeROM wrote: On Fri, Sep 19, 2014 at 6:07 PM, wrote: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193775 I would also like to add "gobi_loader" application [1] that loads the firmware to UN2420_QDL in order UN2420 to show up and work. Firmware files are copyrighted

Re: USB ethernet adapter support

2014-09-19 Thread Hans Petter Selasky
On 09/19/14 18:18, Ross Penner wrote: On Fri, 19 Sep 2014, at 09:01 AM, Hans Petter Selasky wrote: On 09/17/14 19:58, Ross Penner wrote: The following is a discussion I had on the freebsd-questions list. I've decided to take the route of buying an adapter that works on FreeBSD 10 Releas

Re: USB ethernet adapter support

2014-09-19 Thread Hans Petter Selasky
On 09/17/14 19:58, Ross Penner wrote: The following is a discussion I had on the freebsd-questions list. I've decided to take the route of buying an adapter that works on FreeBSD 10 Release but, on suggestion, I thought I would ask on these lists if there was anywhere I could mail my useless (to

Re: U3G QDL firmware loader for GOBI2000/HP_UN2420 MiniPCI/USB 3G/GPS

2014-09-15 Thread Hans Petter Selasky
On 09/15/14 17:16, CeDeROM wrote: Hello world! :-) I have changed my machine, there is a built-in GOBI2000 / HP UN2420 3G/GPS module installable as MiniPCI card and visible as USB device. I have added its VID/PID to the usbdevs and u3g.c module, so after recompilation it gets recognised by u3g m

Re: How to obtain the "ugen" that corresponds to an "ums", "uep" or "uhid"?

2014-09-15 Thread Hans Petter Selasky
On 09/15/14 13:43, Vitaly Magerya wrote: Hi, folks. Is there a way to obtain the name of an ugen device that corresponds to a particular ums/uep/uhid device? Hi, Have you tried: usbconfig show_ifdrv The situation I'm working with is this: there's a (custom) DEVD rule that executes a script

Re: libusb and non-root access problem

2014-09-13 Thread Hans Petter Selasky
On 09/13/14 14:04, Lundberg, Johannes wrote: Hi I tried now for hours but no luck with this.. I have a special usb device to which I connect with libusb. Everything works find as root but I can seem to be able to access with normal user no matter how I configure devfs. I changed both conf and r

Re: USB storage device not recognized

2014-09-02 Thread Hans Petter Selasky
On 09/02/14 23:39, grarpamp wrote: Is there a way to actively probe out for a device from a usb port? [The other ports act the same way... a usbstick is recognized, this device isn't.] The problem was bad cable mating... power pair connected but data pair did not. Cutting back some plastic s

<    1   2   3   4   5   6   7   8   9   10   >