diff options
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i.h | 2 | ||||
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_hwi.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i.h b/drivers/scsi/bnx2i/bnx2i.h index d7576f28c6e9..5edde1a8c04d 100644 --- a/drivers/scsi/bnx2i/bnx2i.h +++ b/drivers/scsi/bnx2i/bnx2i.h | |||
@@ -100,6 +100,8 @@ | |||
100 | #define CTX_OFFSET 0x10000 | 100 | #define CTX_OFFSET 0x10000 |
101 | #define MAX_CID_CNT 0x4000 | 101 | #define MAX_CID_CNT 0x4000 |
102 | 102 | ||
103 | #define BNX2I_570X_PAGE_SIZE_DEFAULT 4096 | ||
104 | |||
103 | /* 5709 context registers */ | 105 | /* 5709 context registers */ |
104 | #define BNX2_MQ_CONFIG2 0x00003d00 | 106 | #define BNX2_MQ_CONFIG2 0x00003d00 |
105 | #define BNX2_MQ_CONFIG2_CONT_SZ (0x7L<<4) | 107 | #define BNX2_MQ_CONFIG2_CONT_SZ (0x7L<<4) |
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 41e1b0e7e2ef..5c8d7630c13e 100644 --- a/drivers/scsi/bnx2i/bnx2i_hwi.c +++ b/drivers/scsi/bnx2i/bnx2i_hwi.c | |||
@@ -2386,7 +2386,7 @@ int bnx2i_map_ep_dbell_regs(struct bnx2i_endpoint *ep) | |||
2386 | ctx_sz = (config2 & BNX2_MQ_CONFIG2_CONT_SZ) >> 3; | 2386 | ctx_sz = (config2 & BNX2_MQ_CONFIG2_CONT_SZ) >> 3; |
2387 | if (ctx_sz) | 2387 | if (ctx_sz) |
2388 | reg_off = CTX_OFFSET + MAX_CID_CNT * MB_KERNEL_CTX_SIZE | 2388 | reg_off = CTX_OFFSET + MAX_CID_CNT * MB_KERNEL_CTX_SIZE |
2389 | + PAGE_SIZE * | 2389 | + BNX2I_570X_PAGE_SIZE_DEFAULT * |
2390 | (((cid_num - first_l4l5) / ctx_sz) + 256); | 2390 | (((cid_num - first_l4l5) / ctx_sz) + 256); |
2391 | else | 2391 | else |
2392 | reg_off = CTX_OFFSET + (MB_KERNEL_CTX_SIZE * cid_num); | 2392 | reg_off = CTX_OFFSET + (MB_KERNEL_CTX_SIZE * cid_num); |