Bug 1418

Summary: ice: no way to disable lsc-interrupts
Product: DPDK Reporter: Robin Jarry (robin)
Component: otherAssignee: dev
Status: UNCONFIRMED ---    
Severity: normal CC: bruce.richardson, john.mcnamara, ktraynor
Priority: Normal    
Version: 24.03   
Target Milestone: ---   
Hardware: x86   
OS: Linux   

Description Robin Jarry 2024-04-23 13:08:22 CEST
Hi all,

Apparently, the ice driver does not allow disabling lsc interrupts. Starting testpmd with --no-lsc-interrupt gives this in the console:

testpmd> ice_interrupt_handler(): OICR: link state change event
Port 0: link state change event
ice_interrupt_handler(): OICR: link state change event
Port 1: link state change event

I tested with version 22.11 which seems not to have the issue. I found a suspicious commit introduced in 24.03 which may be the culprit:

commit 4e5dc111464e83e9a55fa466d8f682f0027b721e
Author: Qi Zhang <qi.z.zhang@intel.com>
Date:   Thu Dec 14 03:40:54 2023 -0500

    net/ice: fix link update
    
    The ice_aq_get_link_info function is not thread-safe. However,
    it is possible to simultaneous invocations during both the dev_start
    and the LSC interrupt handler, potentially leading to unexpected adminq
    errors. This patch addresses the issue by introducing a thread-safe
    wrapper that utilizes a spinlock.
    
    Fixes: cf911d90e366 ("net/ice: support link update")
    Cc: stable@dpdk.org
    
    Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
    Acked-by: Qiming Yang <qiming.yang@intel.com>

https://git.dpdk.org/dpdk/commit/?id=4e5dc111464e83e9a55fa466d8f682f0027b721e
Comment 1 Kevin Traynor 2024-04-23 14:06:29 CEST
Hi Robin. I do not think that is the culprit as I reproduced with 23.11 that is not containing this commit.