]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
cxgb4: Fix initialization of SGE_CONTROL register
authorVipul Pandya <vipul@chelsio.com>
Wed, 7 Nov 2012 03:45:46 +0000 (03:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Nov 2012 00:02:19 +0000 (19:02 -0500)
INGPADBOUNDARY_MASK is already shifted. No need to shift it again. On reloading
a driver it was resulting in a bad SGE FL MTU sizes [1536, 9088] error. This
only causes an issue on systems that have L1 cache size of 32B, 128B, 512B,
2048B or 4096B.

Signed-off-by: Jay Hernandez <jay@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

index 01fa5b79162cf47bd58319b8eb977c1f7b61da87..730ae2cfa49e34ee5d361d73ac437ff715d4e50d 100644 (file)
@@ -2831,7 +2831,7 @@ int t4_fixup_host_params(struct adapter *adap, unsigned int page_size,
                     HOSTPAGESIZEPF7(sge_hps));
 
        t4_set_reg_field(adap, SGE_CONTROL,
-                        INGPADBOUNDARY(INGPADBOUNDARY_MASK) |
+                        INGPADBOUNDARY_MASK |
                         EGRSTATUSPAGESIZE_MASK,
                         INGPADBOUNDARY(fl_align_log - 5) |
                         EGRSTATUSPAGESIZE(stat_len != 64));