[linux-usb-devel] Patch to align the various USB timers to fire at the same time

2007-05-22 Thread Arjan van de Ven
the CPU up from power saving idle a lot more than needed... Signed-off-by: Arjan van de Ven <[EMAIL PROTECTED]> --- drivers/usb/core/hcd.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) Index: linux-2.6.22-rc2/driver

Re: [linux-usb-devel] 2.6.18.2: lockdep warnings on rmmod ohci_hcd

2006-11-06 Thread Arjan van de Ven
On Mon, 2006-11-06 at 15:46 +0300, Andrey Borzenkov wrote: > I presume this is lockdep; this looks initially truncated, > unfortunately this > is how it was stored in messages. I will try to get more complete > output ig > required. the interesting bits are missing unfortunately (the first 10 l

Re: [linux-usb-devel] 2.6.19-rc4: known unfixed regressions

2006-10-31 Thread Arjan van de Ven
On Tue, 2006-10-31 at 20:56 +0100, Adrian Bunk wrote: > This email lists some known regressions in 2.6.19-rc4 compared to 2.6.18 > that are not yet fixed in Linus' tree. > > If you find your name in the Cc header, you are either submitter of one > of the bugs, maintainer of an affectected subsyste

Re: [linux-usb-devel] Expertise required on building code for SMP

2006-07-13 Thread Arjan van de Ven
On Thu, 2006-07-13 at 13:12 +0530, [EMAIL PROTECTED] wrote: > We've written a device driver in linux for a pcmcia card with usb and > serial functionality. I need to test this driver on a dual core/SMP > machine. We work on kernel 2.6.15.4. I have recompiled this kernel > version on my dual core ma

Re: [linux-usb-devel] [PATCH] Airprime driver improvements to allow full speed EvDO transfers

2006-06-30 Thread Arjan van de Ven
> > tty_insert_flip_string() returns number of bytes it has actually > > inserted, but I don't believe one can do much if it returns less than > > has been requested as it means that we are out of kernel memory. > > Yes. I've been wondering if we should log the failure case somewhere, > either as

[linux-usb-devel] Re: [PATCH 0/7] isdn4linux: add drivers for Siemens Gigaset ISDN DECT PABX

2006-03-02 Thread Arjan van de Ven
t need discussing. Just a few remarks and questions: > > On 27.02.2006, Arjan van de Ven wrote: > > as a general review remark: you seem to use a LOT of atomic variables. > > This I think is not too good an approach in general, because you get > > into all kinds of race situa

[linux-usb-devel] Re: [PATCH 0/7] isdn4linux: add drivers for Siemens Gigaset ISDN DECT PABX

2006-02-27 Thread Arjan van de Ven
On Mon, 2006-02-27 at 07:23 +0100, Hansjoerg Lipp wrote: > The following patches add drivers for the Siemens Gigaset 3070 family of > ISDN DECT PABXes connected via USB, either directly or over a DECT link > using a Gigaset M105 or compatible DECT data adapter. The devices are > integrated as ISDN

[linux-usb-devel] Re: [PATCH 1/7] isdn4linux: Siemens Gigaset drivers - common module

2006-02-27 Thread Arjan van de Ven
On Mon, 2006-02-27 at 07:23 +0100, Hansjoerg Lipp wrote: > + struct semaphore sem; /* locks this structure: > + * connected is not changed, > + * hardware_up is not changed, > +

[linux-usb-devel] Re: [PATCH 2/7] isdn4linux: Siemens Gigaset drivers - event layer

2006-02-27 Thread Arjan van de Ven
On Mon, 2006-02-27 at 07:23 +0100, Hansjoerg Lipp wrote: > + } > + > + spin_lock_irqsave(&cs->lock, flags); > + ret = kmalloc(sizeof(struct at_state_t), GFP_ATOMIC); > + if (ret) { > + gigaset_at_init(ret, NULL, cs, cid); > if you move the kmalloc one

[linux-usb-devel] Re: [PATCH 2/7] isdn4linux: Siemens Gigaset drivers - event layer

2006-02-27 Thread Arjan van de Ven
On Mon, 2006-02-27 at 07:23 +0100, Hansjoerg Lipp wrote: > +static inline void new_index(atomic_t *index, int max) > +{ > + if (atomic_read(index) == max) //FIXME race? > + atomic_set(index, 0); > + else > + atomic_inc(index); > +} yes.. that's a race.

[linux-usb-devel] Re: [PATCH 1/7] isdn4linux: Siemens Gigaset drivers - common module

2006-02-27 Thread Arjan van de Ven
On Mon, 2006-02-27 at 07:23 +0100, Hansjoerg Lipp wrote: > +#define IFNULL(a) \ > + if (unlikely(!(a))) please please get rid of this! first of all, gcc ALREADY treats null pointer checks as unlikely, second of all this makes code entirely unreadable, so please just use "if (!a)" where you

[linux-usb-devel] Re: Linux 2.6.16-rc3

2006-02-14 Thread Arjan van de Ven
> reports than the usptream developers, yet we hear so little about it> the number of quality reports (eg enough information to do anything) isn't that high; Dave is pretty good in sending the good ones on, it often takes time though to get all the basic info.. --

[linux-usb-devel] Re: Linux 2.6.16-rc3

2006-02-14 Thread Arjan van de Ven
On Mon, 2006-02-13 at 20:08 -0700, Michal Jaegermann wrote: > On Mon, Feb 13, 2006 at 09:57:48AM +0100, Arjan van de Ven wrote: > > On Mon, 2006-02-13 at 00:12 -0800, Andrew Morton wrote: > > > > > > I think we can assume that it will be seen there. 2.6.16 is going

[linux-usb-devel] Re: Linux 2.6.16-rc3

2006-02-13 Thread Arjan van de Ven
On Mon, 2006-02-13 at 00:12 -0800, Andrew Morton wrote: > "Brown, Len" <[EMAIL PROTECTED]> wrote: > > > > My point is that it that on the grand scale of bugs serious enough > > to have an effect on the course of 2.6.16, this one doesn't qualify > > unless the same issue is seen on other systems.

[linux-usb-devel] Re: Linux 2.6.16-rc3

2006-02-13 Thread Arjan van de Ven
On Sun, 2006-02-12 at 19:05 -0800, Andrew Morton wrote: > We still have some serious bugs, several of which are in 2.6.15 as well: > > - The scsi_cmd leak, which I don't think is fixed. didn't this got nailed down to a 2.6.15 specific queueing bug, fixed in 2.6.16-rc ? --

Re: [linux-usb-devel] USB on alpha

2006-01-12 Thread Arjan van de Ven
etfs_fill_super': > > > drivers/usb/gadget/inode.c:2035: warning: passing arg 3 of > > `gadgetfs_make_inode' discards qualifiers from pointer target type > > > > In current GIT trees that line seems to be several lines earlier in the > > file, and

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
On Wed, 2005-12-07 at 11:01 -0500, Alan Stern wrote: > On Wed, 7 Dec 2005, Arjan van de Ven wrote: > > > > On the other hand, Oliver needs to be careful about claiming too much. > > > In > > > general atomic_t operations _are_ superior to the spinlock approa

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
> > No they're not. Both are just about equally expensive cpu wise, > > sometimes the atomic_t ones are a bit more expensive (like on parisc > > architecture). But on x86 in either case it's a locked cycle, which is > > just expensive no matter which side you flip the coin... > > But if a lock i

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
On Wed, 2005-12-07 at 16:37 +0100, Oliver Neukum wrote: > Am Mittwoch, 7. Dezember 2005 16:22 schrieb Arjan van de Ven: > > > On the other hand, Oliver needs to be careful about claiming too much. > > > In > > > general atomic_t operations _are_ superior to the

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
> On the other hand, Oliver needs to be careful about claiming too much. In > general atomic_t operations _are_ superior to the spinlock approach. No they're not. Both are just about equally expensive cpu wise, sometimes the atomic_t ones are a bit more expensive (like on parisc architecture).

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
On Wed, 2005-12-07 at 10:30 -0200, Luiz Fernando Capitulino wrote: > On Wed, 07 Dec 2005 13:27:13 +0100 > Arjan van de Ven <[EMAIL PROTECTED]> wrote: > > | > | > Isn't it right? Is the URB write so fast that switching to atomic_t > | > doesn't pay-off? &g

Re: [linux-usb-devel] Re: [PATCH 00/10] usb-serial: Switches from spin lock to atomic_t.

2005-12-07 Thread Arjan van de Ven
> Isn't it right? Is the URB write so fast that switching to atomic_t > doesn't pay-off? an atomic_t access and a spinlock are basically the same price... so what's the payoff ? --- This SF.net email is sponsored by: Splunk Inc. Do you grep

[linux-usb-devel] Re: [PATCH 01/10] usb-serial: URB write locking macros.

2005-12-06 Thread Arjan van de Ven
On Tue, 2005-12-06 at 09:57 -0200, Luiz Fernando Capitulino wrote: > Introduces URB write locking macros. ugh.. WHY ? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJ

[linux-usb-devel] Re: [PATCH] Make usbdevice_fs.h (again) useable from userspace

2005-11-14 Thread Arjan van de Ven
On Mon, 2005-11-14 at 18:37 +0100, Harald Welte wrote: > Make usbdevice_fs.h (again) useable from userspace > > If we have CONFIG_COMPAT enabled, then userspace programs using > usbdevice_fs.h won't compile anymore. how does the userspace application set CONFIG_COMPAT?? --

[linux-usb-devel] Re: usb: Patch for USBDEVFS_IOCTL from 32-bit programs

2005-10-18 Thread Arjan van de Ven
On Tue, 2005-10-18 at 11:49 -0700, Pete Zaitcev wrote: > > The problem here is that compat_ptr does NOT turn user data pointer > into a kernel pointer. It's still a user pointer, only sized > differently. So, when you do set_fs(KERNEL_DS), this pointer > is invalid (miraclously, it does work on A

[linux-usb-devel] Re: [PATCH] Avoid to use kmalloc in usb/core/message.c

2005-07-05 Thread Arjan van de Ven
On Tue, 2005-07-05 at 12:36 +0200, Duncan Sands wrote: > > I wonder why the invocations of kmalloc are needed in these functions. > > Because some architectures can't do DMA to/from the stack. doing dma to/from kmalloc also isn't too nice... should be using dma_alloc_*() API I guess -