Skip to content

Commit fdd13dd

Browse files
Shahed Shaikhdavem330
Shahed Shaikh
authored andcommitted
qed: Fix mask for physical address in ILT entry
ILT entry requires 12 bit right shifted physical address. Existing mask for ILT entry of physical address i.e. ILT_ENTRY_PHY_ADDR_MASK is not sufficient to handle 64bit address because upper 8 bits of 64 bit address were getting masked which resulted in completer abort error on PCIe bus due to invalid address. Fix that mask to handle 64bit physical address. Fixes: fe56b9e ("qed: Add module with basic common support") Signed-off-by: Shahed Shaikh <[email protected]> Signed-off-by: Ariel Elior <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 66fb332 commit fdd13dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/qlogic/qed/qed_cxt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#define ILT_CFG_REG(cli, reg) PSWRQ2_REG_ ## cli ## _ ## reg ## _RT_OFFSET
7878

7979
/* ILT entry structure */
80-
#define ILT_ENTRY_PHY_ADDR_MASK 0x000FFFFFFFFFFFULL
80+
#define ILT_ENTRY_PHY_ADDR_MASK (~0ULL >> 12)
8181
#define ILT_ENTRY_PHY_ADDR_SHIFT 0
8282
#define ILT_ENTRY_VALID_MASK 0x1ULL
8383
#define ILT_ENTRY_VALID_SHIFT 52

0 commit comments

Comments
 (0)