Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Alfred Perlstein
* Hans Petter Selasky [EMAIL PROTECTED] [081105 08:26] wrote:
 
 Hi,
 
 I will get this patch in next time an USB2 update gets committed to 
 FreeBSD-current.

Hey Hans, can you look into using svk for your repository?  I think
it will make commits to svn easier for both of us.  Easier for
me to pull your changes and easier for you to track changes
in FreeBSD... ?

-Alfred
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


usb keyboard dying at loader prompt

2008-11-06 Thread Andriy Gapon

I have a quite strange problem.
This is with 7-BETA amd64.
All of USB is out of kernel and is loaded via modules.
BIOS has Legacy USB enabled.
I have only a USB keyboard, no PS/2 port.

The keyboard works file in BIOS and for selecting boot device in boot0
menu. It also works in loader menu. If in the menu I select to go to
loader prompt then it works for about 5 seconds and then dies - no
reaction to key presses, no led change, nothing.
I haven't actually verified if the keyboard would still work if I stayed
in loader menu for longer than ~10 seconds.

This doesn't happen if USB is built into kernel.

Weird...

-- 
Andriy Gapon
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Bruce Cran
On Wed, 5 Nov 2008 17:22:43 +0100
Hans Petter Selasky [EMAIL PROTECTED] wrote:

 On Wednesday 05 November 2008, kevin wrote:
  Hans Petter Selasky wrote:
   On Wednesday 05 November 2008, kevin wrote:
   Hans Petter Selasky wrote:
   Hi,
  
   A new USB release is available:
  
   http://www.selasky.org/hans_petter/usb4bsd/for_review/
  
   %md5 usb2_release_003.*
   MD5 (usb2_release_003.diff) = e31a032d0234bb7d72eb968c33118d84
   MD5 (usb2_release_003.tar.gz) = 0a0d9dd44e93ba2ceaa849c577f6fecf
   %sha256 usb2_release_003.*
   SHA256 (usb2_release_003.diff) =
   9b4359f76eeef43d9b6c0c524198e529f2debff14e6158ebac8f35d51efb211b
   SHA256 (usb2_release_003.tar.gz) =
   3040714546fc21bc2943c2e7aec1734150845271664aad44639ff5c553e3ed31
  
   Changes since 002 release:
  
   I try to compile kernel with usb2.
  
   Hi,
  
   Try to load the module instead of having bluetooth in the kernel.
   Then all dependancies are loaded automatically.
  
   Depends on some bluetooth stuff.
  
   --HPS
 
  I build kernel without usb2_bluetooth_ng successfully. i notice that
  fingerpring and bluetooth mouse nolonger work now.
  in dmesg:
  ugen0.2: Broadcom Corp at usbus0
  ugen0.3: STMicroelectronics at usbus0
  maybe /etc/rc.d/bthidd and fprint package need update now.
 
 
 Try:
 
 kldload usb2_bluetooth_ng

I don't know if this is a problem in general, but I can't load
usb2_serial_modem and have usb2_serial load automatically:

 kldload usb2_serial_modem
interface ucom.1 already present in the KLD 'ucom.ko'!
kldload: /boot/kernel/usb2_serial.ko: Unsupported file type
KLD usb2_serial_modem.ko: depends on usb2_serial - not available
kldload: /boot/kernel/usb2_serial_modem.ko: Unsupported file type

kldload'ing usb2_serial followed by usb2_serial_modem works though.

-- 
Bruce Cran
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Alexey Shuvaev
On Thu, Nov 06, 2008 at 05:04:16AM -0800, Bruce Cran wrote:
 
 I don't know if this is a problem in general, but I can't load
 usb2_serial_modem and have usb2_serial load automatically:
 
  kldload usb2_serial_modem
 interface ucom.1 already present in the KLD 'ucom.ko'!
   ^^^
I think it is a module from the old usb stack.

 kldload: /boot/kernel/usb2_serial.ko: Unsupported file type
 KLD usb2_serial_modem.ko: depends on usb2_serial - not available
 kldload: /boot/kernel/usb2_serial_modem.ko: Unsupported file type
 
 kldload'ing usb2_serial followed by usb2_serial_modem works though.
 
I also see automatic loading of the old stack modules,
for example (entries 17, 18):

[wep4035] ~ kldstat 
Id Refs AddressSize Name
 1   55 0x8010 8daac8   kernel (/boot/kernel/kernel)
 21 0x809db000 21ed8snd_hda.ko (/boot/kernel/snd_hda.ko)
 32 0x809fd000 749c8sound.ko (/boot/kernel/sound.ko)
 41 0x80a72000 3090 speaker.ko (/boot/kernel/speaker.ko)
 51 0x80a76000 59e8 ichsmb.ko (/boot/kernel/ichsmb.ko)
 62 0x80a7c000 2440 smbus.ko (/boot/kernel/smbus.ko)
 71 0x80a7f000 fa10 i915.ko (/boot/kernel/i915.ko)
 82 0x80a8f000 21c48drm.ko (/boot/kernel/drm.ko)
 91 0x80ab1000 e648 usb2_controller_uhci.ko 
(/boot/kernel/usb2_controller_uhci.ko)
103 0x80ac 5168 usb2_controller.ko 
(/boot/kernel/usb2_controller.ko)
118 0x80ac6000 5c548usb2_core.ko (/boot/kernel/usb2_core.ko)
121 0x80b23000 125a0usb2_controller_ehci.ko 
(/boot/kernel/usb2_controller_ehci.ko)
131 0x80b36000 4e48 usb2_input_ms.ko 
(/boot/kernel/usb2_input_ms.ko)
142 0x80b3b000 560  usb2_input.ko (/boot/kernel/usb2_input.ko)
151 0x80b3c000 ff08 usb2_storage_mass.ko 
(/boot/kernel/usb2_storage_mass.ko)
162 0x80b4c000 570  usb2_storage.ko 
(/boot/kernel/usb2_storage.ko)
171 0x80c22000 18c7 ums.ko (/boot/kernel/ums.ko)
181 0x80c24000 9612 usb.ko (/boot/kernel/usb.ko)
191 0x80c2e000 216  green_saver.ko (/boot/kernel/green_saver.ko)

Simple kldunload-ing of ums.ko unloads usb.ko also.

I am having quite reliable panics with the new stack when I insert
usb stick (actually during the first access to it).
Trying to collect more information I haven't managed to produce
memory dump. Is it working on amd64 SMP CURRENT? I remember there were
some complains about it.
I will report details of the panic when I get them.

Alexey.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Hans Petter Selasky
On Thursday 06 November 2008, Bruce Cran wrote:
 On Wed, 5 Nov 2008 17:22:43 +0100

 Hans Petter Selasky [EMAIL PROTECTED] wrote:
  On Wednesday 05 November 2008, kevin wrote:
   Hans Petter Selasky wrote:
On Wednesday 05 November 2008, kevin wrote:
Hans Petter Selasky wrote:
Hi,
   
A new USB release is available:
   
http://www.selasky.org/hans_petter/usb4bsd/for_review/
   
%md5 usb2_release_003.*
MD5 (usb2_release_003.diff) = e31a032d0234bb7d72eb968c33118d84
MD5 (usb2_release_003.tar.gz) = 0a0d9dd44e93ba2ceaa849c577f6fecf
%sha256 usb2_release_003.*
SHA256 (usb2_release_003.diff) =
9b4359f76eeef43d9b6c0c524198e529f2debff14e6158ebac8f35d51efb211b
SHA256 (usb2_release_003.tar.gz) =
3040714546fc21bc2943c2e7aec1734150845271664aad44639ff5c553e3ed31
   
Changes since 002 release:
   
I try to compile kernel with usb2.
   
Hi,
   
Try to load the module instead of having bluetooth in the kernel.
Then all dependancies are loaded automatically.
   
Depends on some bluetooth stuff.
   
--HPS
  
   I build kernel without usb2_bluetooth_ng successfully. i notice that
   fingerpring and bluetooth mouse nolonger work now.
   in dmesg:
   ugen0.2: Broadcom Corp at usbus0
   ugen0.3: STMicroelectronics at usbus0
   maybe /etc/rc.d/bthidd and fprint package need update now.
 
  Try:
 
  kldload usb2_bluetooth_ng

 I don't know if this is a problem in general, but I can't load

 usb2_serial_modem and have usb2_serial load automatically:
  kldload usb2_serial_modem

 interface ucom.1 already present in the KLD 'ucom.ko'!
 kldload: /boot/kernel/usb2_serial.ko: Unsupported file type
 KLD usb2_serial_modem.ko: depends on usb2_serial - not available
 kldload: /boot/kernel/usb2_serial_modem.ko: Unsupported file type

 kldload'ing usb2_serial followed by usb2_serial_modem works though.

Hi,

Fixed in the following commit:

http://perforce.freebsd.org/chv.cgi?CH=152584

Thanks again for your reporting.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Hans Petter Selasky
On Thursday 06 November 2008, Alfred Perlstein wrote:
 * Hans Petter Selasky [EMAIL PROTECTED] [081105 08:26] wrote:
  Hi,
 
  I will get this patch in next time an USB2 update gets committed to
  FreeBSD-current.

 Hey Hans, can you look into using svk for your repository?  I think
 it will make commits to svn easier for both of us.  Easier for
 me to pull your changes and easier for you to track changes
 in FreeBSD... ?


Yes, I will try to set it up later today.

Should we retire the USB P4 repository then ?

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Hans Petter Selasky [EMAIL PROTECTED] writes:
: On Thursday 06 November 2008, Bruce Cran wrote:
:  On Wed, 5 Nov 2008 17:22:43 +0100
: 
:  Hans Petter Selasky [EMAIL PROTECTED] wrote:
:   On Wednesday 05 November 2008, kevin wrote:
:Hans Petter Selasky wrote:
: On Wednesday 05 November 2008, kevin wrote:
: Hans Petter Selasky wrote:
: Hi,
:
: A new USB release is available:
:
: http://www.selasky.org/hans_petter/usb4bsd/for_review/
:
: %md5 usb2_release_003.*
: MD5 (usb2_release_003.diff) = e31a032d0234bb7d72eb968c33118d84
: MD5 (usb2_release_003.tar.gz) = 0a0d9dd44e93ba2ceaa849c577f6fecf
: %sha256 usb2_release_003.*
: SHA256 (usb2_release_003.diff) =
: 9b4359f76eeef43d9b6c0c524198e529f2debff14e6158ebac8f35d51efb211b
: SHA256 (usb2_release_003.tar.gz) =
: 3040714546fc21bc2943c2e7aec1734150845271664aad44639ff5c553e3ed31
:
: Changes since 002 release:
:
: I try to compile kernel with usb2.
:
: Hi,
:
: Try to load the module instead of having bluetooth in the kernel.
: Then all dependancies are loaded automatically.
:
: Depends on some bluetooth stuff.
:
: --HPS
:   
:I build kernel without usb2_bluetooth_ng successfully. i notice that
:fingerpring and bluetooth mouse nolonger work now.
:in dmesg:
:ugen0.2: Broadcom Corp at usbus0
:ugen0.3: STMicroelectronics at usbus0
:maybe /etc/rc.d/bthidd and fprint package need update now.
:  
:   Try:
:  
:   kldload usb2_bluetooth_ng
: 
:  I don't know if this is a problem in general, but I can't load
: 
:  usb2_serial_modem and have usb2_serial load automatically:
:   kldload usb2_serial_modem
: 
:  interface ucom.1 already present in the KLD 'ucom.ko'!
:  kldload: /boot/kernel/usb2_serial.ko: Unsupported file type
:  KLD usb2_serial_modem.ko: depends on usb2_serial - not available
:  kldload: /boot/kernel/usb2_serial_modem.ko: Unsupported file type
: 
:  kldload'ing usb2_serial followed by usb2_serial_modem works though.
: 
: Hi,
: 
: Fixed in the following commit:
: 
: http://perforce.freebsd.org/chv.cgi?CH=152584
: 
: Thanks again for your reporting.

I've merged this into -head.

Warner
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Gary Jennejohn
On Thu, 6 Nov 2008 15:13:23 +0100
Alexey Shuvaev [EMAIL PROTECTED] wrote:

[big snip]
 I am having quite reliable panics with the new stack when I insert
 usb stick (actually during the first access to it).
 Trying to collect more information I haven't managed to produce
 memory dump. Is it working on amd64 SMP CURRENT? I remember there were
 some complains about it.


It works just fine for me with SMP amd64.  I tested several USB sticks
and saw absolutely no problems.  I have not tried it with a real
external USB disk.

It also works with my FTDI USB-to-serial adapters.

I do not use any USB modules.

---
Gary Jennejohn
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Alexey Shuvaev
On Thu, Nov 06, 2008 at 07:10:20PM +0100, Hans Petter Selasky wrote:
 On Thursday 06 November 2008, Gary Jennejohn wrote:
  On Thu, 6 Nov 2008 15:13:23 +0100
  Alexey Shuvaev [EMAIL PROTECTED] wrote:
 
  [big snip]
Exactly here was output from kldstat :)

 
   I am having quite reliable panics with the new stack when I insert
   usb stick (actually during the first access to it).
   Trying to collect more information I haven't managed to produce
   memory dump. Is it working on amd64 SMP CURRENT? I remember there were
   some complains about it.
 
Here I was actually asking about kernel memory dumps...
Will try harder this time.

  It works just fine for me with SMP amd64.  I tested several USB sticks
  and saw absolutely no problems.  I have not tried it with a real
  external USB disk.
 
  It also works with my FTDI USB-to-serial adapters.
 
  I do not use any USB modules.
 
 Hi Alexey,
 
 Maybe you are using the ATA interface for USB?
 
 Could you do a kldstat ?
 
Here it is:

[wep4035] ~ kldstat 
Id Refs AddressSize Name
 1   46 0x8010 8daac8   kernel (/boot/kernel/kernel)
 21 0x809db000 21ed8snd_hda.ko (/boot/kernel/snd_hda.ko)
 32 0x809fd000 749c8sound.ko (/boot/kernel/sound.ko)
 41 0x80a72000 3090 speaker.ko (/boot/kernel/speaker.ko)
 51 0x80a76000 59e8 ichsmb.ko (/boot/kernel/ichsmb.ko)
 62 0x80a7c000 2440 smbus.ko (/boot/kernel/smbus.ko)
 71 0x80a7f000 fa10 i915.ko (/boot/kernel/i915.ko)
 82 0x80a8f000 21c48drm.ko (/boot/kernel/drm.ko)
 91 0x80ab1000 e648 usb2_controller_uhci.ko 
(/boot/kernel/usb2_controller_uhci.ko)
103 0x80ac 5168 usb2_controller.ko 
(/boot/kernel/usb2_controller.ko)
118 0x80ac6000 5c548usb2_core.ko (/boot/kernel/usb2_core.ko)
121 0x80b23000 125a0usb2_controller_ehci.ko 
(/boot/kernel/usb2_controller_ehci.ko)
131 0x80b36000 4e48 usb2_input_ms.ko 
(/boot/kernel/usb2_input_ms.ko)
142 0x80b3b000 560  usb2_input.ko (/boot/kernel/usb2_input.ko)
151 0x80b3c000 ff08 usb2_storage_mass.ko 
(/boot/kernel/usb2_storage_mass.ko)
162 0x80b4c000 570  usb2_storage.ko 
(/boot/kernel/usb2_storage.ko)
191 0x80c2e000 216  green_saver.ko (/boot/kernel/green_saver.ko)

Actually here what I have:

[wep4035] ~ cat /boot/loader.conf 
loader_logo=beastie
ichsmb_load=YES
snd_hda_load=YES
speaker_load=YES
i915_load=YES
usb2_controller_uhci_load=YES
usb2_controller_ehci_load=YES
usb2_input_ms_load=YES
usb2_storage_mass_load=YES

 Or try:
 
 kldunload usb2_storage_ata
 
 And:
 
 kldload usb2_storage_mass
 
Now I will play with offending usb stick and with another one
(actually microSDHC-usb adapter).

Can it be that some modules are automatically loaded when I insert usb stick?

Alexey.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB4BSD release candidate number 3 - request for review

2008-11-06 Thread Hans Petter Selasky
On Thursday 06 November 2008, Alexey Shuvaev wrote:
 db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
 _witness_debugger() at _witness_debugger+0x49
 witness_checkorder() at witness_checkorder+0x7e6
 _sx_xlock() at _sx_xlock+0x44
 vm_map_lookup() at vm_map_lookup+0x47
 vm_fault() at vm_fault+0xfe
 trap_pfault() at trap_pfault+0x1fa
 trap() at trap+0x201
 calltrap() at calltrap+0x8
 --- trap 0xc, rip = 0x804b2466, rsp = 0xfffeba7f8ac0, rbp =
 0xfffeba7f8b00 --- bcopy() at bcopy+0x16
 usb2_bdma_pre_sync() at usb2_bdma_pre_sync+0x35
 usb2_bdma_work_loop() at usb2_bdma_work_loop+0x29b
 usb2_command_wrapper() at usb2_command_wrapper+0x76
 usb2_callback_wrapper() at usb2_callback_wrapper+0xfd
 usb2_command_wrapper() at usb2_command_wrapper+0x76
 usb2_callback_proc() at usb2_callback_proc+0x68
 usb2_process() at usb2_process+0xc0

Hi Alexey,

This looks more like a busdma problem to me. bcopy() is called from 
within bus_dmamap_sync(). Maybe you can figure out if it is the source or 
the destination address that fails?

Looks like your system has started bouncing data to the 32-bit address range.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]