Re: [linux-usb-devel] ehci memory allocation question

2007-06-15 Thread David Brownell
On Friday 15 June 2007, Oliver Neukum wrote: > Hi, > > I've been looking at memory management in ehci. IMHO to cleanly > solve the deadlock, Context please. What deadlock? Has it been observed? > callers need a way to pass down memory reserves > to the HCD. As they are unique to the bus, thi

Re: [linux-usb-devel] ehci memory allocation question

2007-06-15 Thread Matthew Dharm
On Fri, Jun 15, 2007 at 04:08:57PM +0200, Oliver Neukum wrote: > Am Freitag, 15. Juni 2007 schrieb Alan Stern: > > But you're much better off avoiding partially executed requests if you > > can avoid it. It would be preferable to transmit the data one packet > > at a time: slower but more likely

Re: [linux-usb-devel] ehci memory allocation question

2007-06-15 Thread Alan Stern
On Fri, 15 Jun 2007, Oliver Neukum wrote: > > > 2. Can the SCSI layer deal with partially executed sg requests? > > > > Yes for READs and WRITEs; I'm not sure about other sorts of requests. > > > > But you're much better off avoiding partially executed requests if you > > can avoid it. It wo

Re: [linux-usb-devel] ehci memory allocation question

2007-06-15 Thread Oliver Neukum
Am Freitag, 15. Juni 2007 schrieb Alan Stern: > [Added Matt to CC: list] > > On Fri, 15 Jun 2007, Oliver Neukum wrote: > > > Hi, > > > > I've been looking at memory management in ehci. IMHO to cleanly > > solve the deadlock, callers need a way to pass down memory reserves > > to the HCD. As they

Re: [linux-usb-devel] ehci memory allocation question

2007-06-15 Thread Alan Stern
[Added Matt to CC: list] On Fri, 15 Jun 2007, Oliver Neukum wrote: > Hi, > > I've been looking at memory management in ehci. IMHO to cleanly > solve the deadlock, callers need a way to pass down memory reserves > to the HCD. As they are unique to the bus, this needs a method to allocate > such r

[linux-usb-devel] ehci memory allocation question

2007-06-15 Thread Oliver Neukum
Hi, I've been looking at memory management in ehci. IMHO to cleanly solve the deadlock, callers need a way to pass down memory reserves to the HCD. As they are unique to the bus, this needs a method to allocate such reserves from the HCD. So a few questions arise. 1. Can every HCD compute how mu