Re: [PATCH] PCI: Add support for multiple MSI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Hidetoshi Seto
Date: Friday, July 11, 2008 - 1:28 am

Hi,

First of all, it seems that mask/unmask of MSI has problems.
 - Per-vector masking is optional for MSI, so I think that allocating
   multiple messages for a function without masking capability would be
   not good idea, since all vector in the block will be masked/unmasked
   at once without any agreement.
 - Even if the function supports per-vector masking, current
   mask/unmask_msi_irq() functions assume that MSI uses only one vector,
   therefore they only set/unset the first bit of the maskbits which
   for the first vector of the block.  The bits for other vectors are
   initialized as 'masked' but no one unmask them.

Matthew Wilcox wrote:

I think we should return -EINVAL here.
No one guarantee that 32 interrupts is able to be allocate at this time.

And also I think -EINVAL should be returned if nvec is greater than
the number of encoded in the function's "Multiple Message Capable", but
I could not find any mention about handling of such over-capability request
in PCI Bus Spec. 3.0.


Thanks,
H.Seto
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Multiple MSI, take 3, Matthew Wilcox, (Thu Jul 10, 5:57 pm)
[PATCH] PCI MSI: Replace 'type' with 'is_msix', Matthew Wilcox, (Thu Jul 10, 5:59 pm)
[PATCH] PCI: Add support for multiple MSI, Matthew Wilcox, (Thu Jul 10, 5:59 pm)
[PATCH] Rewrite MSI-HOWTO, Matthew Wilcox, (Thu Jul 10, 6:00 pm)
[PATCH] AHCI: Request multiple MSIs, Matthew Wilcox, (Thu Jul 10, 6:00 pm)
[PATCH] x86-64: Support for multiple MSIs, Matthew Wilcox, (Thu Jul 10, 6:00 pm)
Re: [PATCH] x86-64: Support for multiple MSIs, Kenji Kaneshige, (Thu Jul 10, 9:50 pm)
Re: [PATCH] PCI: Add support for multiple MSI, Hidetoshi Seto, (Fri Jul 11, 1:28 am)
Re: [PATCH] x86-64: Support for multiple MSIs, Matthew Wilcox, (Fri Jul 11, 1:50 am)
Re: [PATCH] PCI: Add support for multiple MSI, Matthew Wilcox, (Fri Jul 11, 2:45 am)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 3:06 am)
Re: Multiple MSI, take 3, Matthew Wilcox, (Fri Jul 11, 3:23 am)
Re: Multiple MSI, take 3, David Miller, (Fri Jul 11, 3:32 am)
Re: Multiple MSI, take 3, Matthew Wilcox, (Fri Jul 11, 3:41 am)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 4:05 am)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 4:34 am)
Re: Multiple MSI, take 3, Matthew Wilcox, (Fri Jul 11, 5:17 am)
Re: Multiple MSI, take 3, Matthew Wilcox, (Fri Jul 11, 8:10 am)
Re: Multiple MSI, take 3, Suresh Siddha, (Fri Jul 11, 2:59 pm)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 3:59 pm)
Re: Multiple MSI, take 3, Suresh Siddha, (Fri Jul 11, 4:15 pm)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 4:59 pm)
Re: [PATCH] PCI: Add support for multiple MSI, Benjamin Herrenschmidt, (Fri Jul 11, 8:45 pm)
Re: Multiple MSI, take 3, Benjamin Herrenschmidt, (Fri Jul 11, 8:52 pm)
Re: Multiple MSI, take 3, Eric W. Biederman, (Fri Jul 11, 9:41 pm)
Re: Multiple MSI, take 3, Benjamin Herrenschmidt, (Sat Jul 12, 12:36 am)
Re: Multiple MSI, take 3, Eric W. Biederman, (Sun Jul 13, 3:30 pm)
Re: Multiple MSI, take 3, Benjamin Herrenschmidt, (Sun Jul 13, 3:44 pm)
Re: Multiple MSI, take 3, Eric W. Biederman, (Sun Jul 13, 4:29 pm)
Re: Multiple MSI, take 3, Benjamin Herrenschmidt, (Sun Jul 13, 5:17 pm)
Re: Multiple MSI, take 3, David Miller, (Sun Jul 13, 5:44 pm)
Re: [PATCH] x86-64: Support for multiple MSIs, Kenji Kaneshige, (Sun Jul 13, 6:08 pm)
Re: Multiple MSI, take 3, Eric W. Biederman, (Sun Jul 13, 7:03 pm)
Re: Multiple MSI, take 3, David Miller, (Sun Jul 13, 8:19 pm)
Re: Multiple MSI, take 3, Jike Song, (Thu Sep 25, 10:30 pm)
Re: [PATCH] Rewrite MSI-HOWTO, Grant Grundler, (Thu Sep 25, 11:42 pm)
Re: Multiple MSI, take 3, Matthew Wilcox, (Sat Sep 27, 12:04 pm)