Skip to content

Commit 2391b00

Browse files
arjunvynipadathdavem330
authored andcommitted
cxgb4: Remove SGE_HOST_PAGE_SIZE dependency on page size
The SGE Host Page Size has nothing to do with the actual Host Page Size. It's the SGE's BAR2 Doorbell/GTS Page Size for interpreting the SGE Ingress/Egress Queue per Page values. Firmware reads all of these things and makes all the subsequent changes necessary. The Host Driver uses the SGE Host Page Size in order to properly calculate BAR2 Offsets. Signed-off-by: Casey Leedom <[email protected]> Signed-off-by: Arjun Vynipadath <[email protected]> Signed-off-by: Ganesh Goudar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e8bd8fc commit 2391b00

File tree

1 file changed

+0
-11
lines changed
  • drivers/net/ethernet/chelsio/cxgb4

1 file changed

+0
-11
lines changed

drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7141,21 +7141,10 @@ int t4_fixup_host_params(struct adapter *adap, unsigned int page_size,
71417141
unsigned int cache_line_size)
71427142
{
71437143
unsigned int page_shift = fls(page_size) - 1;
7144-
unsigned int sge_hps = page_shift - 10;
71457144
unsigned int stat_len = cache_line_size > 64 ? 128 : 64;
71467145
unsigned int fl_align = cache_line_size < 32 ? 32 : cache_line_size;
71477146
unsigned int fl_align_log = fls(fl_align) - 1;
71487147

7149-
t4_write_reg(adap, SGE_HOST_PAGE_SIZE_A,
7150-
HOSTPAGESIZEPF0_V(sge_hps) |
7151-
HOSTPAGESIZEPF1_V(sge_hps) |
7152-
HOSTPAGESIZEPF2_V(sge_hps) |
7153-
HOSTPAGESIZEPF3_V(sge_hps) |
7154-
HOSTPAGESIZEPF4_V(sge_hps) |
7155-
HOSTPAGESIZEPF5_V(sge_hps) |
7156-
HOSTPAGESIZEPF6_V(sge_hps) |
7157-
HOSTPAGESIZEPF7_V(sge_hps));
7158-
71597148
if (is_t4(adap->params.chip)) {
71607149
t4_set_reg_field(adap, SGE_CONTROL_A,
71617150
INGPADBOUNDARY_V(INGPADBOUNDARY_M) |

0 commit comments

Comments
 (0)