Skip to contentSkip to conversation

pds_core: no health-thread in VF path

PATCH Applied Shannon Nelson 2 participants 2 messages Feb 10, 2024 – Feb 13, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pds_core: no health-thread in VF path

The VFs don't run the health thread, so don't try to stop or restart the non-existent timer or work item.

Fixes d9407ff11809 ("pds_core: Prevent health thread from running during reset/remove")
---
 drivers/net/ethernet/amd/pds_core/main.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/ethernet/amd/pds_core/main.c +6 -0
index cdbf053b5376..0050c5894563 100644
@@ -451,6 +451,9 @@ static void pdsc_remove(struct pci_dev *pdev)
 
 static void pdsc_stop_health_thread(struct pdsc *pdsc)
 {
+	if (pdsc->pdev->is_virtfn)
+		return;
+
 	timer_shutdown_sync(&pdsc->wdtimer);
 	if (pdsc->health_work.func)
 		cancel_work_sync(&pdsc->health_work);
@@ -458,6 +461,9 @@ static void pdsc_stop_health_thread(struct pdsc *pdsc)
 
 static void pdsc_restart_health_thread(struct pdsc *pdsc)
 {
+	if (pdsc->pdev->is_virtfn)
+		return;
+
 	timer_setup(&pdsc->wdtimer, pdsc_wdtimer_cb, 0);
 	mod_timer(&pdsc->wdtimer, jiffies + 1);
 }
Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Fri, 9 Feb 2024 16:20:02 -0800 you wrote:

The VFs don't run the health thread, so don't try to stop or restart the non-existent timer or work item.

Fixes d9407ff11809 ("pds_core: Prevent health thread from running during reset/remove")

[...]

Here is the summary with links:
- [net] pds_core: no health-thread in VF path

    https://git.kernel.org/netdev/net/c/3e36031cc054

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html