[RFC/PATCH 0/16] Ops based MSI Implementation
Eric W. Biederman
ebiederm at xmission.com
Fri Jan 26 18:15:40 EST 2007
Grant Grundler <grundler at parisc-linux.org> writes:
> On Thu, Jan 25, 2007 at 11:18:20PM -0700, Eric W. Biederman wrote:
>> You code appears to be nice simple clean and to not support MSI in
>> a useful way. I may be reading too quickly but at the moment your
>> infrastructure appears useless if you are on a platform that doesn't
>> enforce MSI's get filtered with a legacy interrupt controller.
>
> Hrm?
> Isn't the point of MSI to avoid any sort of interrupt controller?
That is how the supported platforms were designed. But something needs
to translate a pci message to a cpu interrupt and on PPC apparently
they implemented this in their interrupt controller.
To be fair there are also ioapic on x86 which can do this as well
they just haven't been sufficiently interesting to support.
The interesting case will be when there is the equivalent of an
iommu for msi interrupts (and quite possibly it will be the iommu)
that filters iommu for hardware isolation purposes.
>> You don't have MSI-X support (which is the interesting case) and you
>> don't have suspend/resume support.
>
> I saw save/restore entry points.
> I expected suspend/resume code would use those.
> Do you agree (or not)?
Mostly for that bit I was relying on the documented part that said
they don't work yet.
>> You don't support the MSI mask bit.
>>
>> Looking at your msi_ops it does not map to what I am doing on x86. There
>> is the implicit assumption that the msi_message is fixed for the lifetime
>> of the msi. Which is wrong.
>
> Erm...wouldn't changing the message also effectively change which handler
> ends up catching the interrupt?
> I always understood the addr/msg were a pair that HW would map to a handler.
> Can you explain what you mean by "lifetime" and "fixed"?
> What event would change the message? system Suspend/resume?
Suspend/resume and irq migration. Currently the architecture code pushes
what it thinks best at the controller, instead of the pull model in
Micheal Ellerman's patch.
> ...
>> After I get some sleep I will see if I can up with some constructive
>> criticism on how we can make things work.
>
> Well, I hope the questions I pose above help lead the discussion in
> that direction.
We will see. My current observation seems to be that problems that are
currently solved and the problems that Michael needed to solve to support
ppc are almost disjoint. Making it a challenge to understand what the
other architecture is doing.
Eric
More information about the Linuxppc-dev
mailing list