[linux-usb-devel] [PATCH] Maxtor OneTouch button support for older drives

2005-11-14 Thread Antti Andreimann
Hi!

This small patch adds a device ID used by older Maxtor OneTouch drives
(the ones with blue face-plate instead of the fancy silver one used in
newer models). The button on those drives works well with the current
driver.

-- 
 Antti Andreimann - Security Expert
  Using Linux since 1993
  Member of ELUG since 29.01.2000
--- ./drivers/usb/storage/unusual_devs.h.orig	2005-11-14 06:35:03.0 +0200
+++ ./drivers/usb/storage/unusual_devs.h	2005-11-14 06:35:22.0 +0200
@@ -976,6 +976,11 @@
  *
  */
 #ifdef CONFIG_USB_STORAGE_ONETOUCH
+	UNUSUAL_DEV(  0x0d49, 0x7000, 0x, 0x,
+			Maxtor,
+			OneTouch External Harddrive,
+			US_SC_DEVICE, US_PR_DEVICE, onetouch_connect_input,
+			0),
 	UNUSUAL_DEV(  0x0d49, 0x7010, 0x, 0x,
 			Maxtor,
 			OneTouch External Harddrive,


[linux-usb-devel] Re: [PATCH] ehci: buzz free split iso out

2005-03-25 Thread Antti Andreimann
hel kenal peval (teisipev, 22. mrts 2005, 11:38-0800), kirjutas
David Brownell:

 Well, this looks right to me, but as you know I don't have a good way to
 reproduce it.  See if this version behaves for you.

I tested the patch with 2.6.11.
Here is what I get, when I try to start jackd:

ehci_hcd :00:1d.7: iso sched full daea6440 (now 864 max 9056)
cannot submit datapipe for urb 0, err = -28

Hardware: Creative Labs Soundblaster Audigy2 NX connected through USB2.0
HUB with a Genesys chip (I own one with Philips chip as well so I can
test with it too).

PS! Reproducing the former OOPS with debugging enabled didn't provide
any additional information.

-- 
 Antti Andreimann - Security Expert
  Using Linux since 1993
  Member of ELUG since 29.01.2000


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


Re: [linux-usb-devel] Re: [PATCH] ehci: buzz free split iso out

2005-03-25 Thread Antti Andreimann
On R, 2005-03-25 at 13:30 -0800, David Brownell wrote:
 If that's an ISO-IN then I'd still not expect it to work.
 Though Karsten has some not clean patches that may help you.

It probably is an ISO-IN transaction, and opening sound device in output
only mode does produce exactly the same error. I don't know exactly, but
I suspect that some inbound data is used for synchronization in
snd_usb_audio driver.
Where can I get those patches You referred to? I'd be glad to test them.

-- 
 Antti Andreimann - Security Expert
  Using Linux since 1993
  Member of ELUG since 29.01.2000


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel


Re: [linux-usb-devel] What's wrong with iso-IN split transactions?

2005-03-18 Thread Antti Andreimann
hel kenal peval (neljapev, 17. mrts 2005, 18:12-0800), kirjutas
David Brownell:

 Those are all new errors.  Send stack traces and I can offer suggestions;
 they'd be the best indicators that anything's wrong!

Ok, I've attatched a crash log I produced yesterday.
It's done with preemption enabled and unfortunately with no USB
debugging
turned on. I'll try to produce some more reasonable crash logs today
after work.
Kernel is 2.6.11 with software suspend 2.1.8 patches.

PS! Sorry for multiple posts, my mail client acted out (bad client!) :P

-- 
 Antti Andreimann - Security Expert
  Using Linux since 1993
  Member of ELUG since 29.01.2000
Mar 18 02:54:40 klots kernel: Unable to handle kernel paging request at virtual 
address 83020239
Mar 18 02:54:40 klots kernel:  printing eip:
Mar 18 02:54:40 klots kernel: f99bffbe
Mar 18 02:54:40 klots kernel: *pde = 
Mar 18 02:54:40 klots kernel: Oops:  [#1]
Mar 18 02:54:40 klots kernel: PREEMPT 
Mar 18 02:54:40 klots kernel: Modules linked in: ehci_hcd radeon vmnet vmmon 
md5 ipv6 parport_pc lp parport autofs4 rfcomm l2cap bluetooth sunrpc pcmcia 
realtime commoncap sg snd_seq_midi snd_seq_midi_event snd_seq cpufreq_ondemand 
cpufreq_powersave nvram dm_mod sd_mod sr_mod video ibm_acpi container button 
battery ac yenta_socket rsrc_nonstatic ftdi_sio pcmcia_core usbserial 
snd_usb_audio snd_usb_lib snd_rawmidi snd_seq_device usb_storage scsi_mod 
uhci_hcd i2c_i801 snd_intel8x0m snd_intel8x0 snd_ac97_codec snd_pcm_oss 
snd_mixer_oss snd_pcm snd_timer snd soundcore snd_page_alloc e1000 floppy 
ide_cd cdrom ext3 jbd
Mar 18 02:54:40 klots kernel: CPU:0
Mar 18 02:54:40 klots kernel: EIP:0060:[f99bffbe]Tainted: P  VLI
Mar 18 02:54:40 klots kernel: EFLAGS: 00010046   (2.6.11-tank) 
Mar 18 02:54:40 klots kernel: EIP is at tt_no_collision+0xbe/0x150 [ehci_hcd]
Mar 18 02:54:40 klots kernel: eax: 83020205   ebx: ec3e9120   ecx: f5c4bc00   
edx: ed96c000
Mar 18 02:54:40 klots kernel: esi: 0269   edi: 0040   ebp: f5c4bc00   
esp: ed783d40
Mar 18 02:54:40 klots kernel: ds: 007b   es: 007b   ss: 0068
Mar 18 02:54:40 klots kernel: Process jackd (pid: 7902, threadinfo=ed782000 
task=ed5500f0)
Mar 18 02:54:40 klots kernel: Stack: ed96c000 0400 f657  
0003 ed31a480 2000 f99c1771 
Mar 18 02:54:40 klots kernel:0029 0038 0004 0040 
0055 0029 0038 014b 
Mar 18 02:54:40 klots kernel:ed31a400 0008 32fc 134b 
eca7fcc0 f615670c f615670c eca7fcc0 
Mar 18 02:54:40 klots kernel: Call Trace:
Mar 18 02:54:40 klots kernel:  [f99c1771] iso_stream_schedule+0x1f1/0x2c0 
[ehci_hcd]
Mar 18 02:54:40 klots kernel:  [f99c28ff] sitd_submit+0xdf/0x200 [ehci_hcd]
Mar 18 02:54:40 klots kernel:  [c012a502] __do_softirq+0x42/0xa0
Mar 18 02:54:40 klots kernel:  [f99c4194] ehci_urb_enqueue+0x94/0xd0 
[ehci_hcd]
Mar 18 02:54:40 klots kernel:  [c0300576] hcd_submit_urb+0x1e6/0x340
Mar 18 02:54:40 klots kernel:  [c030174e] usb_submit_urb+0x1de/0x300
Mar 18 02:54:40 klots kernel:  [f9a3676c] start_urbs+0xac/0x160 
[snd_usb_audio]
Mar 18 02:54:40 klots kernel:  [f9a3690f] snd_usb_pcm_trigger+0x3f/0x50 
[snd_usb_audio]
Mar 18 02:54:40 klots kernel:  [f997885d] snd_pcm_do_start+0x1d/0x30 [snd_pcm]
Mar 18 02:54:40 klots kernel:  [f9977ed5] snd_pcm_action_group+0x255/0x370 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [f9977f17] snd_pcm_action_group+0x297/0x370 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [f9978370] snd_pcm_action_lock_irq+0x120/0x4d0 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [f9978777] snd_pcm_action_nonatomic+0x57/0x90 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [f997cd76] snd_pcm_playback_ioctl1+0x46/0x490 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [c03b40e2] preempt_schedule+0x42/0x60
Mar 18 02:54:40 klots kernel:  [c03b3d32] schedule+0x322/0x690
Mar 18 02:54:40 klots kernel:  [f997d4ae] snd_pcm_playback_ioctl+0x2e/0x50 
[snd_pcm]
Mar 18 02:54:40 klots kernel:  [c01abf0a] do_ioctl+0x6a/0xa0
Mar 18 02:54:40 klots kernel:  [c01ac16e] vfs_ioctl+0x5e/0x1d0
Mar 18 02:54:40 klots kernel:  [c01ac357] sys_ioctl+0x77/0x90
Mar 18 02:54:40 klots kernel:  [c0103c69] sysenter_past_esp+0x52/0x75
Mar 18 02:54:40 klots kernel: Code: 00 00 8d 74 26 00 8d bc 27 00 00 00 00 8b 
5c 24 0c 89 d0 8b 74 24 10 8b 7c 24 14 8b 6c 24 18 83 c4 1c c3 83 f8 04 75 65 
8b 43 64 8b 50 34 89 e8 e8 e8 fe ff ff 85 c0 75 34 8b 03 8b 5b 28 83 e0 
Mar 18 02:54:40 klots kernel:  drivers/usb/host/ehci-hcd.c:833: 
spin_lock(drivers/usb/host/ehci-hcd.c:f615670c) already locked by 
drivers/usb/host/ehci-sched.c/1814
Mar 18 02:54:40 klots kernel: note: jackd[7902] exited with preempt_count 5
Mar 18 02:54:40 klots kernel: Debug: sleeping function called from invalid 
context at kernel/fork.c:420
Mar 18 02:54:40 klots kernel: in_atomic():1, irqs_disabled():0
Mar 18 02:54:40 klots kernel:  [c011f133] __might_sleep+0xa3/0xc0
Mar 18 02:54:40 klots kernel:  [c011fb29] mm_release+0x69/0xd0
Mar 18 02:54:40 klots kernel:  [c0126022] exit_mm+0x12

[linux-usb-devel] What's wrong with iso-IN split transactions?

2005-03-17 Thread Antti Andreimann
Hi!

I see from the drivers/usb/host/ehci-sched.c that those are not
supported. I also found a year-old post in this list by David Brownell
which states:

 It's essentially all coded, but microframe scheduling needs tweaks
 for the IN cases.  I decided to force ENOMEM until that code is
 ready ... someone willing to play with the code could turn it on and
 shouldn't find it needs many changes.

What is the status of this stuff now? Has anyone done any work on this
and what exactly is the problem with current code?
I did try to turn it on for my USB soundcard (so it would work through a
USB 2.0 hub) and experienced a NULL pointer dereference plus some
spinlock errors. I haven't tried it without pre-emption yet. I am
willing to spend some time to tweak and test it if I'd know what exactly
needs tweaking ;)

-- 
 Antti Andreimann - Security Expert
  Using Linux since 1993
  Member of ELUG since 29.01.2000


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel