Re: [PATCH 10/15] net: hinic: Convert tasklet API to new bottom half workqueue mechanism
From: Paolo Abeni
Date: Tue Jun 25 2024 - 06:48:17 EST
On Thu, 2024-06-20 at 22:05 -0700, Allen Pais wrote:
> @@ -968,9 +968,8 @@ void hinic_dump_ceq_info(struct hinic_hwdev *hwdev)
> ci = hinic_hwif_read_reg(hwdev->hwif, addr);
> addr = EQ_PROD_IDX_REG_ADDR(eq);
> pi = hinic_hwif_read_reg(hwdev->hwif, addr);
> - dev_err(&hwdev->hwif->pdev->dev, "Ceq id: %d, ci: 0x%08x, sw_ci: 0x%08x, pi: 0x%x, tasklet_state: 0x%lx, wrap: %d, ceqe: 0x%x\n",
> + dev_err(&hwdev->hwif->pdev->dev, "Ceq id: %d, ci: 0x%08x, sw_ci: 0x%08x, pi: 0x%x, wrap: %d, ceqe: 0x%x\n",
> q_id, ci, eq->cons_idx, pi,
> - eq->ceq_tasklet.state,
I guess here you can show work_pending() as a partial replacement for
the tasklet state.
Thanks!
Paolo