[PATCH 21.11] net/hns3: fix IMP or global reset

Kevin Traynor ktraynor at redhat.com
Thu Nov 23 11:52:16 CET 2023


On 23/11/2023 01:19, Dengdui Huang wrote:
> [ upstream commit 1eee1ea75c0eadaea6dde368b289cf0acf6a1190 ]
> 
> Currently, when the IMP or Global reset detected, the vector0
> interrupt is enabled before the reset process is completed.
> At this moment, if the initialization of IMP is not completed,
> and the vector0 interrupt may continue to be reported. In this
> scenario, the IMP/global reset being performed by the driver
> does not need to be interrupted. Therefore, for IMP and global
> resets, the driver has to enable the interrupt after the end
> of reset.
> 
> The RAS interrupt is also shared with the vector0 interrupt.
> When the interrupt is disabled, the RAS interrupt can still be
> reported to the driver and the driver interrupt processing
> function is also called. In this case, the interrupt status of
> the IMP/global may still exist. Therefore, this patch also has
> to the check of the new reset level based on the priority of
> reset level in the interrupt handler.
> 
> Fixes: 2790c6464725 ("net/hns3: support device reset")
> Fixes: 3988ab0eee52 ("net/hns3: add abnormal interrupt process")
> Cc:stable at dpdk.org
> 
> Signed-off-by: Dengdui Huang<huangdengdui at huawei.com>
> ---
>   drivers/net/hns3/hns3_ethdev.c | 88 ++++++++++++++++++++++++++++------
>   drivers/net/hns3/hns3_ethdev.h |  1 +
>   drivers/net/hns3/hns3_intr.c   |  2 +
>   3 files changed, 77 insertions(+), 14 deletions(-)

Applied to 21.11 branch. Thanks for backporting.



More information about the stable mailing list