Re: MSI to memory?

From: Zwane Mwaikambo
Date: Wed Jul 07 2004 - 12:04:51 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/