Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntb: intel: Fix using link status DB's

Make sure we are not using DB's which were remapped for link status.

Fixes: f6e51c354b60 ("ntb: intel: split out the gen3 code")
Signed-off-by: Nikita Shubin <n.shubin@yadro.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>

authored by

Nikita Shubin and committed by
Jon Mason
8144e9c8 de203da7

+3
+3
drivers/ntb/hw/intel/ntb_hw_gen3.c
··· 215 215 } 216 216 217 217 ndev->db_valid_mask = BIT_ULL(ndev->db_count) - 1; 218 + /* Make sure we are not using DB's used for link status */ 219 + if (ndev->hwerr_flags & NTB_HWERR_MSIX_VECTOR32_BAD) 220 + ndev->db_valid_mask &= ~ndev->db_link_mask; 218 221 219 222 ndev->reg->db_iowrite(ndev->db_valid_mask, 220 223 ndev->self_mmio +