[lkml]   [2022]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 36/39] PCI/MSI: Validate MSIX contiguous restriction early
On Fri, Nov 11, 2022 at 02:55:12PM +0100, Thomas Gleixner wrote:
> With interrupt domains the sanity check for MSI-X vector validation can be
> done _before_ any allocation happens. The sanity check only applies to the
> allocation functions which have an 'entries' array argument. The entries
> array is filled by the caller with the requested MSI-X indicies. Some drivers
> have gaps in the index space which is not supported on all architectures.
> The PCI/MSI irqdomain has a 'feature' bit to enforce this validation late
> during the allocation phase.
> Just do it right away before doing any other work along with the other
> sanity checks on that array.
> Signed-off-by: Thomas Gleixner <>
> ---
> drivers/pci/msi/msi.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)

Reviewed-by: Jason Gunthorpe <>


 \ /
  Last update: 2022-11-16 19:01    [W:1.137 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site