From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 05FDF46A74; Fri, 27 Jun 2025 21:33:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A89184026D; Fri, 27 Jun 2025 21:33:25 +0200 (CEST) Received: from ns2.wilbury.net (ns2.wilbury.net [92.60.51.55]) by mails.dpdk.org (Postfix) with ESMTP id 2C0FA400EF for ; Fri, 27 Jun 2025 21:33:24 +0200 (CEST) Received: from webmail.wilbury.net (localhost [IPv6:::1]) (Authenticated sender: priikone@silc.fi) by svc.wilbury.net (Postfix) with ESMTPA id 6A4F762266; Fri, 27 Jun 2025 21:33:22 +0200 (CEST) MIME-Version: 1.0 Date: Fri, 27 Jun 2025 22:33:22 +0300 From: Pekka Riikonen To: Thomas Monjalon Cc: dev@dpdk.org Subject: Re: [PATCH] bus/pci: fix automatic interrupt type selection In-Reply-To: <7218036.9CP3fYhb5E@thomas> References: <8f5b22d3bedef793bf489c230b52b145@iki.fi> <7218036.9CP3fYhb5E@thomas> User-Agent: Roundcube Webmail/1.6.10 Message-ID: X-Sender: priikone@iki.fi Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on ns2.wilbury.net X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2025-06-27 19:00, Thomas Monjalon wrote: > 20/06/2025 13:47, priikone@iki.fi: >> Check if kernel returns 0 interrupt vectors and try another interrupt >> type in that case. Failing to check the vector count can select an >> interrupt type that's unusable. >> >> Signed-off-by: Pekka Riikonen > > Please could you be explicit about the use case you are trying to fix? This particular case was with e1000em that only supported INTx, but the function selected MSI-X simply because it's the first one attempted, even though it got 0 vectors. Enabling interrupts then failed. If the function had checked the vector count it would have correctly selected INTx. Now, my setup might have been quite old but it doesn't change that it selected wrong interrupt type. Pekka