mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Check for MSI allocation
@ 2022-06-09 15:38 Julian Vetter
  2022-06-09 15:38 ` [PATCH 1/2] msi: The MSI framework only supports 2048 platform MSIs Julian Vetter
  2022-06-09 15:38 ` [PATCH 2/2] msi: Add sanity check if more than MAX_DEV_MSIS MSIs are requested Julian Vetter
  0 siblings, 2 replies; 4+ messages in thread
From: Julian Vetter @ 2022-06-09 15:38 UTC (permalink / raw)
  To: gregkh, linux-kernel, ysionneau; +Cc: Julian Vetter

Our HW has a mailbox periph that supports up to 8192 MSIs, so the currently
supported 2048 is not enough. I believe there is no real reason to
contstrain the max platform MSIs to 2048, because the value is stored in
an irq_hw_number_t which is big enough to hold more MSIs. The value is
OR'ed with the device ID of which there is also a limited number.
The second patch contains a WARN() to warn the user if a device tries to
obtain more that MAX_DEV_MSIS, because this could lead to potentially
conflicting virtual interrupt numbers (as was the case for us) without
the Linux kernel telling us.

Julian Vetter (2):
  msi: The MSI framework only supports 2048 platform MSIs
  msi: Add sanity check if more than MAX_DEV_MSIS MSIs are requested

 drivers/base/platform-msi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-09 17:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09 15:38 [PATCH 0/2] Check for MSI allocation Julian Vetter
2022-06-09 15:38 ` [PATCH 1/2] msi: The MSI framework only supports 2048 platform MSIs Julian Vetter
2022-06-09 15:38 ` [PATCH 2/2] msi: Add sanity check if more than MAX_DEV_MSIS MSIs are requested Julian Vetter
2022-06-09 17:57   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®