Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 17:29 schrieb David Howells: > How about the following: > > > INTERRUPT HANDLING > -- > > Execution of the interrupt handler chain for an interrupt not bound to a CPU > is bounded by a lock/unlock at either side. Furthermore, recurrence of that > in

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread David Howells
Oliver Neukum <[EMAIL PROTECTED]> wrote: > + (*) entering and returning from interrupt handlers implies a full barrier That shouldn't really be under the "MISCELLANEOUS FUNCTIONS" subheading as it's not precisely describing a callable function that has barrier effects. Hmmm... also it isn't quit

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 10:39 schrieb Robert Marquardt: > Oliver Neukum wrote: > > >>> OK, thanks. I am relieved. > >>> Should I add a section concerning this to Documentation? > >> Is that a trick question? :-) > > > > No. > > Your question if it should be documented bears itself the answ

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Robert Marquardt
Oliver Neukum wrote: >>> OK, thanks. I am relieved. >>> Should I add a section concerning this to Documentation? >> Is that a trick question? :-) > > No. Your question if it should be documented bears itself the answer. Of course! If an expert has doubts then lesser experts and common folk do n

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 09:57 schrieb Robert Marquardt: > Oliver Neukum wrote: > > > OK, thanks. I am relieved. > > Should I add a section concerning this to Documentation? > > Is that a trick question? :-) No. Regards Oliver ---

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Robert Marquardt
Oliver Neukum wrote: > OK, thanks. I am relieved. > Should I add a section concerning this to Documentation? Is that a trick question? :-) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Donnerstag, 15. März 2007 09:16 schrieb Greg KH: > On Wed, Mar 14, 2007 at 08:44:22PM +0100, Oliver Neukum wrote: > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the incremented var

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-15 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 23:44 schrieb David Howells: > Pete Zaitcev <[EMAIL PROTECTED]> wrote: > > > I think he is concerned about CPU A executing an interrupt handler, its > > stores getting stuck in its store buffer or its write-back cache, the IRQ > > finished, IRQ get migrated to CPU B, CPU

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread David Howells
Pete Zaitcev <[EMAIL PROTECTED]> wrote: > I think he is concerned about CPU A executing an interrupt handler, its > stores getting stuck in its store buffer or its write-back cache, the IRQ > finished, IRQ get migrated to CPU B, CPU B taking next interrupt and seeing > old RAM state. I don't see

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 22:21 schrieb Pete Zaitcev: > On Wed, 14 Mar 2007 20:59:29 +, David Howells <[EMAIL PROTECTED]> wrote: > > > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > > > It is called in interrupt and uses no locking. What happens if the next > > > irq is processed on another

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Pete Zaitcev
On Wed, 14 Mar 2007 20:59:29 +, David Howells <[EMAIL PROTECTED]> wrote: > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the increment

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Am Mittwoch, 14. März 2007 21:59 schrieben Sie: > Oliver Neukum <[EMAIL PROTECTED]> wrote: > > > It is called in interrupt and uses no locking. What happens if the next > > irq is processed on another cpu? Is that cpu guaranteed to see the updates > > to the incremented variables? > > I thought t

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread David Howells
Oliver Neukum <[EMAIL PROTECTED]> wrote: > It is called in interrupt and uses no locking. What happens if the next > irq is processed on another cpu? Is that cpu guaranteed to see the updates > to the incremented variables? I thought that possibility was prevented by IRQ_INPROGRESS. David -

[linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Hi, I am looking at this code: if (new_msr & (MOS_MSR_DELTA_CTS | MOS_MSR_DELTA_DSR | MOS_MSR_DELTA_RI | MOS_MSR_DELTA_CD)) { icount = &mos7840_port->icount; /* update input line counters */ if (new_msr & MOS_MSR_DE

Re: [linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Alan Stern
On Wed, 14 Mar 2007, Oliver Neukum wrote: > Hi, > > I am looking at this code: > > if (new_msr & > (MOS_MSR_DELTA_CTS | MOS_MSR_DELTA_DSR | MOS_MSR_DELTA_RI | >MOS_MSR_DELTA_CD)) { > icount = &mos7840_port->icount; > > /* update input line

[linux-usb-devel] question on irqs and memory ordering

2007-03-14 Thread Oliver Neukum
Hi, I am looking at this code: if (new_msr & (MOS_MSR_DELTA_CTS | MOS_MSR_DELTA_DSR | MOS_MSR_DELTA_RI | MOS_MSR_DELTA_CD)) { icount = &mos7840_port->icount; /* update input line counters */ if (new_msr & MOS_MSR_DE