lkml.org 
[lkml]   [2004]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: MSI to memory?
On Wed, 7 Jul 2004, Helge Hafting wrote:

> Davide Rossetti wrote:
>
> > Rajesh Shah wrote:
> >
> >> What type of usage model did you have in mind to have the
> >>
> >> device write to memory instead of using MSI for interrupts?
> >>
> >>
> > for instance for a fast wake-up trick. the driver loops on a memory
> > location until the MSI write access changes the memory content...
>
> Won't that put a bad load on the bus? Someone else might need it:
> * Another cpu in a smp system
> * Any device doing bus-master transfers, even in a UP system
>
> That polling loop had better be guaranteed to be _very_ short.

mwait/monitor is best suited for such things and doesn't result in
pounding on memory. Considering the box has MSI, there is a higher
possibility of it also having the mwait/monitor instructions.

Zwane

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.114 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site