[Bug 253990] NTB driver causes panic: page fault

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 16 Jun 2021 18:04:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253990

--- Comment #2 from Alexander Motin <mav@FreeBSD.org> ---
I am definitely agree that ntb->hw_info->db_count assignment in
amd_ntb_init_isr() is logically incorrect.  May be it could be per-instance.  I
have documentation not hardware for the AMD NTB, but I guess the proper
solution may instead be to implement multiple doorbells with single/few
interrupt vectors instead of reducing their count.  For example, PLX NTB driver
uses single legacy IRQ to implement 16 doorbells.  Changing number of doorbells
depending on attach errors may cause a problem for upper layers, when they try
to use expected number of doorbells and won't find them.

-- 
You are receiving this mail because:
You are the assignee for the bug.