[PATCH net] cxgb4: Fix MC1 memory offset calculation

2015-04-29 Thread Hariprasad Shenai
is to read the size of MC0 instead of MC1 for offset calculation Signed-off-by: Steve Wise sw...@opengridcomputing.com Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net

[PATCH net-next 0/6] Trivial fixes and changes for SGE

2015-05-04 Thread Hariprasad Shenai
Ethernet Queue is done by firmware now. This patch series has been created against net-next tree and includes patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (6

[PATCH net-next 0/2] cxgb4: Cleanup and update T4/T4 register ranges

2015-05-20 Thread Hariprasad Shenai
drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: Optimize and cleanup setup memory window code cxgb4: Update T4/T5 adapter register ranges drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 + drivers/net/ethernet

[PATCH net-next 2/2] cxgb4: Update T4/T5 adapter register ranges

2015-05-20 Thread Hariprasad Shenai
Remove some T4/T5 registers that were included incorrectly. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 75 ++ 1 file changed, 44 insertions(+), 31 deletions(-) diff --git a/drivers/net/ethernet/chelsio

[PATCH net-next 4/6] cxgb4: Set mac addr from vpd, when we can't contact firmware

2015-06-04 Thread Hariprasad Shenai
Grab the Adapter MAC Address out of the VPD and use it for the debug network interface when either we can't contact the firmware Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 32 + drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 2/6] cxgb4: Add sge ec context flush service

2015-06-04 Thread Hariprasad Shenai
Add function to flush the sge ec context cache, and utilize this new function in the driver Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 5 + drivers/net/ethernet/chelsio

[PATCH net-next 3/6] cxgb4: Rename t4_link_start() to t4_link_l1cfg

2015-06-04 Thread Hariprasad Shenai
to t4_link_l1cfg() for better documentation. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 4 ++-- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c| 2 +- drivers/net/ethernet

[PATCH net-next 1/6] cxgb4: Free Virtual Interfaces in remove routine

2015-06-04 Thread Hariprasad Shenai
Free VI interfaces in remove routine. If we don't do this then the firmware will never drop the physical link to the peer. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 5

[PATCH net-next 5/6] cxgb4: program pci completion timeout

2015-06-04 Thread Hariprasad Shenai
Set pci completion timeout to 0xd. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 6/6] cxgb4: Use FW LDST cmd to access TP_PIO_{ADDR,DATA} register first

2015-06-04 Thread Hariprasad Shenai
-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 102 +++- 2 files changed, 83 insertions(+), 21 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net-next 0/6] Free VI, flush sge ec and some other misc. fixes

2015-06-04 Thread Hariprasad Shenai
to access TP_PIO_XXX registers This patch series has been created against net-next tree and includes patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (6): cxgb4: Free

[PATCH net-next] cxgb4: Fix static checker warning

2015-06-04 Thread Hariprasad Shenai
) page_shift' be a 64 bit type? This patch fixes it Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 1/3] cxgb4: Add a debugfs entry to dump CIM MA logic analyzer logs

2015-06-09 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 47 ++ drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 21 ++ drivers/net/ethernet/chelsio

[PATCH net-next 0/3] Add cim_ma_la, cim_pif_la and tx_rate debugfs entry

2015-06-09 Thread Hariprasad Shenai
included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (3): cxgb4: Add a debugfs entry to dump CIM MA logic analyzer logs cxgb4: Add debugfs entry to dump CIM PIF logic analyzer contents cxgb4: Add

[PATCH net-next 2/3] cxgb4: Add debugfs entry to dump CIM PIF logic analyzer contents

2015-06-09 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 3 ++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 44 ++ drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 34 + drivers/net/ethernet

[PATCH net-next 3/3] cxgb4: Add debugfs entry to dump channel rate

2015-06-09 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 34 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 46 ++ drivers/net/ethernet

[PATCH net-next 2/4] cxgb4: Add support in ethtool to dump channel stats

2015-06-03 Thread Hariprasad Shenai
Add support in ethtool to dump adapter channel stats Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 14 drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 75 +- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 1/4] cxgb4: Add ethtool support to get adapter stats

2015-06-03 Thread Hariprasad Shenai
Add ethtool support to get adapter specific hardware statistics Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/infiniband/hw/cxgb4/provider.c | 8 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 58 ++--- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 0/4] cxgb4: Adds support for various ethtool stats

2015-06-03 Thread Hariprasad Shenai
and includes patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (4): cxgb4: Add ethtool support to get adapter stats cxgb4: Add support in ethtool to dump channel

[PATCH net-next 4/4] cxgb4: Remove WOL get/set ethtool support

2015-06-03 Thread Hariprasad Shenai
Remove ethtool get/set support for wake on lan, adapter doesn't support it. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 - drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 33 --- drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 3/4] cxgb4: Add support to dump loopback port stats

2015-06-03 Thread Hariprasad Shenai
Add support in ethtool to dump loopback port statistics Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 43 ++- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

[PATCH net-next] cxgb4: Add PCI device ID for custom T522 T520 adapter

2015-06-16 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index 1a9a6f3..d7ca106

[PATCH net-next 1/2] cxgb4: Add debugfs facility to inject FL starvation

2015-05-27 Thread Hariprasad Shenai
Add debugfs entry to inject Freelist starvation, used only for debugging purpose. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 56 ++ drivers/net

[PATCH net-next 2/2] cxgb4/cxgb4vf: function and argument name cleanup

2015-05-27 Thread Hariprasad Shenai
alignment for these function. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 16 ++--- drivers/net/ethernet/chelsio

[PATCH net-next] cxgb4: remove unused fn to enable/disable db coalescing

2015-06-01 Thread Hariprasad Shenai
Remove unused function cxgb4_enable_db_coalescing() and cxgb4_disable_db_coalescing() Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 19 --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h | 2 -- 2 files changed, 21

[PATCH net-next 3/3] cxgb4vf: Adds SRIOV driver changes for T6 adapter

2015-06-01 Thread Hariprasad Shenai
Adds vnic driver register related changes for T6 adapter Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 45 ++ drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | 8 drivers/net/ethernet/chelsio/cxgb4vf

[PATCH net-next 2/3] cxgb4: Adds support for T6 adapter

2015-06-01 Thread Hariprasad Shenai
Adds NIC driver related changes for T6 adapter. Register related changes, MC related changes, VF related changes, doorbell related changes, debugfs changes, etc Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 11 +- drivers/net

[PATCH net-next 0/3] cxgb4/cxgb4vf: Adds support for Chelsio T6 adapter

2015-06-01 Thread Hariprasad Shenai
review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (3): cxgb4: Add is_t6 macro and T6 register ranges cxgb4: Adds support for T6 adapter cxgb4vf: Adds SRIOV driver changes for T6 adapter drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 21

[PATCH net-next 1/3] cxgb4: Add is_t6 macro and T6 register ranges

2015-06-01 Thread Hariprasad Shenai
Adds new macro is_t6 and adds the register address range for T6 adapter Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 10 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 344 + 2 files changed, 354 insertions

[PATCHv2 net-next 0/3] cxgb4/cxgb4vf: Adds support for Chelsio T6 adapter

2015-06-01 Thread Hariprasad Shenai
review the change and let us know in case of any review comments. Thanks V2: Fixed compilation issue, when CHELSIO_T4_FCOE is set Hariprasad Shenai (3): cxgb4: Add is_t6 macro and T6 register ranges cxgb4: Adds support for T6 adapter cxgb4vf: Adds SRIOV driver changes for T6 adapter

[PATCHv2 net-next 1/3] cxgb4: Add is_t6 macro and T6 register ranges

2015-06-01 Thread Hariprasad Shenai
Adds new macro is_t6 and adds the register address range for T6 adapter Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 10 + drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 344 + 2 files changed, 354 insertions

[PATCHv2 net-next 2/3] cxgb4: Adds support for T6 adapter

2015-06-01 Thread Hariprasad Shenai
Adds NIC driver related changes for T6 adapter. Register related changes, MC related changes, VF related changes, doorbell related changes, debugfs changes, etc Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 11 +- drivers/net

[PATCHv2 net-next 3/3] cxgb4vf: Adds SRIOV driver changes for T6 adapter

2015-06-01 Thread Hariprasad Shenai
Adds vnic driver register related changes for T6 adapter Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 45 ++ drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | 8 drivers/net/ethernet/chelsio/cxgb4vf

[PATCH net-next] cxgb4: Add PCI device ids for few more T5 and T6 adapters

2015-07-06 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index

[PATCH net] cxgb4: Fix incorrect sequence numbers shown in devlog

2015-07-02 Thread Hariprasad Shenai
endianness code now in devlog_open() is the small loop to find the earliest (lowest Sequence Number) Device Log entry in the circular buffer. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 25 +++--- 1 file changed, 13

[PATCH net-next] cxgb4: Add PHY firmware support for T420-BT cards

2015-05-22 Thread Hariprasad Shenai
Add support for flashing 10GBaseT adapter with BCM 84834 PHY and Aquantia AQ1202 PHY. Updating of the PHY firmware must happen before the INITIALIZE_CMD. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 39 - drivers/net/ethernet

[PATCH net-next] cxgb4: Add MPS tracing support

2015-08-12 Thread Hariprasad Shenai
Handle TRACE_PKT, stack can sniff them on the first port Add debubfs enrty to configure tracing for offload traffic like iWARP iSCSI for debugging purpose. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 8 + drivers/net

[PATCHv2 net-next 0/4] add meminfo, bist status and misc. fixes

2015-08-03 Thread Hariprasad Shenai
in get_chip_type() and some more style fixes based on review comment by Sergei Shtylyov sergei.shtyl...@cogentembedded.com Hariprasad Shenai (4): cxgb4: Add debugfs support to dump meminfo cxgb4: Add support to dump edc bist status cxgb4/cxgb4vf: read the correct bits of PL Who Am I

[PATCHv2 net-next 4/4] cxgb4: Update T6 register ranges

2015-08-03 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index

[PATCHv2 net-next 2/4] cxgb4: Add support to dump edc bist status

2015-08-03 Thread Hariprasad Shenai
Add support to dump edc bist status for ECC data errors Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 39 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 5 ++-- 2 files changed, 42 insertions(+), 2

[PATCHv2 net-next 1/4] cxgb4: Add debugfs support to dump meminfo

2015-08-03 Thread Hariprasad Shenai
Add debug support to dump memory address ranges of various hardware modules of the adapter. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 285 + drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 122

[PATCHv2 net-next 3/4] cxgb4/cxgb4vf: read the correct bits of PL Who Am I register

2015-08-03 Thread Hariprasad Shenai
Read the correct bits of PL Who Am I for the Source PF field which has changed in T6 Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 34 - drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 8 -- drivers

[PATCH net-next 3/4] cxgb4/cxgb4vf: read the correct bits of PL Who Am I register

2015-08-03 Thread Hariprasad Shenai
Read the correct bits of PL Who Am I for the Source PF field which has changed in T6 Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 36 - drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 10 +-- drivers

[PATCH net-next 1/4] cxgb4: Add debugfs support to dump meminfo

2015-08-03 Thread Hariprasad Shenai
Add debug support to dump memory address ranges of various hardware modules of the adapter. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 285 + drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 122

[PATCH net-next 2/4] cxgb4: Add support to dump edc bist status

2015-08-03 Thread Hariprasad Shenai
Add support to dump edc bist status for ECC data errors Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 39 drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 5 ++-- 2 files changed, 42 insertions(+), 2

[PATCH net-next 4/4] cxgb4: Update T6 register ranges

2015-08-03 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index

[PATCH net-next 0/4] Add meminfo, bist status and misc. fixes

2015-08-03 Thread Hariprasad Shenai
and includes patches on cxgb4 and cxgb4vf driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (4): cxgb4: Add debugfs support to dump meminfo cxgb4: Add support to dump edc bist

[PATCH net-next 2/4] cxgb4: Differentiates between TIDs being used in TCAM and HASH

2015-08-12 Thread Hariprasad Shenai
For the tid info, differentiate from which region the TID is allocated from. It can be from TCAM region or HASH region. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 32 + drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 1/4] cxgb4: Add some more details to sge qinfo

2015-08-12 Thread Hariprasad Shenai
Adding more details to sge qinfo for debugging purpose. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 61 +++--- 1 file changed, 53 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 3/4] cxgb4: Differentiate between stids between server and filter region

2015-08-12 Thread Hariprasad Shenai
For T4 adapter, offloaded servers tid for IPv4 connections are allocated from filter region. So add a new field for server filter tid if server tid is allocated from filter region. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 15

[PATCH net-next 4/4] cxgb4: Add debugfs support to dump tid info

2015-08-12 Thread Hariprasad Shenai
Add debugfs support to dump tid info like stid, sftid, tids, atid and hwtids Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 68 ++ drivers/net/ethernet/chelsio/cxgb4/sge.c | 9 ++- drivers/net

[PATCH net-next 0/4] Add some more debug info

2015-08-12 Thread Hariprasad Shenai
the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (4): cxgb4: Add some more details to sge qinfo cxgb4: Differentiates between TIDs being used in TCAM and HASH cxgb4: Differentiate between stids between

[PATCH net-next] cxgb4vf: Read correct FL congestion threshold for T5 and T6

2015-07-23 Thread Hariprasad Shenai
VF driver was reading incorrect freelist congestion notification threshold for FLM queues when packing is enabled for T5 and T6 adapter. Fixing it now. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 5 + drivers/net/ethernet

[PATCH net-next] cxgb4: Allow firmware flash, only if cxgb4 is the master driver

2015-07-22 Thread Hariprasad Shenai
Adapter can go for a toss, if cxgb4 is loaded as slave and we try to upgrade the firmware. So add a check for the same before flashing firmware using ethtool. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 14 ++ 1

[PATCH net-next] cxgb4: Add debugfs entry to enable/disable backdoor access

2015-07-20 Thread Hariprasad Shenai
Add debugfs entry 'use_backdoor' to enable/disable backdoor access to read sge context. By default, we read sge context's via firmware. In case of FW issues, one can enable backdoor access via debugfs to dump sge context for debugging purpose. Signed-off-by: Hariprasad Shenai haripra

[PATCHv2 net-next] cxgb4: Add debugfs entry to enable backdoor access

2015-07-21 Thread Hariprasad Shenai
Add debugfs entry 'use_backdoor' to enable backdoor access to read sge context. By default, we read sge context's via firmware. In case of FW issues, one can enable backdoor access via debugfs to dump sge context for debugging purpose. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com

[PATCH net-next] cxgb4: Enhance driver to update FW, when FW is too old

2015-10-06 Thread Hariprasad Shenai
a few times before returning failure. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 6 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drive

[PATCHv2 net-next] cxgb4: Enhance driver to update FW, when FW is too old

2015-10-07 Thread Hariprasad Shenai
the operation a few times before returning failure. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Retry t4_get_fw_version() only if ret value is EBUSY or EAGAIN Based on review comment by Neil Horman <nhro...@tuxdriver.com> drivers/net/ethernet/chelsio/cxgb4/cxgb

[PATCH net-next 8/8] cxgb4: Update ethtool get_drvinfo to get regdump len

2015-10-21 Thread Hariprasad Shenai
Update ethtool get_drvinfo to display regdump len and also update firmware string version print to display N/A in case FW isn't present Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 5 - 1 file changed, 4 insertions

[PATCH net-next 7/8] cxgb4: Use vmalloc, if kmalloc fails

2015-10-21 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_eth

[PATCH net-next 6/8] cxgb4: Return error if setup_rss is called before probe

2015-10-21 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c b/drivers/net/ethernet/chelsio

[PATCH net-next 5/8] cxgb4/cxgb4vf: Update driver desc. to include Chelsio T6 adapter

2015-10-21 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 3 ++- drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_mai

[PATCH net-next 3/8] cxgb4: Restore L1 cfg, if FW rejects new L1 cfg settings

2015-10-21 Thread Hariprasad Shenai
In the ethtool set_settings() routine we need to remember our old L1 Configuration in case the firmware rejects the request and then restore that. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 15 +++ 1 file c

[PATCH net-next 2/8] cxgb4: Don't disallow turning off auto-negotiation

2015-10-21 Thread Hariprasad Shenai
For {1, 10, 40} Gb/s. Prohibiting turning off autonegotiation isn't anywhere in the standard. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drive

[PATCH net-next 1/8] cxgb4: Align ethtool get stat settings

2015-10-21 Thread Hariprasad Shenai
Align the ethtool get stats settings with the rest so it looks uniform Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 146 ++--- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/drive

[PATCH net-next 4/8] cxgb4: Add info print to display number of MSI-X vectors allocated

2015-10-21 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index c29227e..a40dab7

[PATCH net-next 0/8] Trivial fixes for cxgb4 driver

2015-10-21 Thread Hariprasad Shenai
-next tree and includes patches on cxgb4 and cxgb4vf driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (8): cxgb4: Align ethtool get stat settings cxgb4: Don't disallow turning

[PATCH net-next 2/4] cxgb4: Update register ranges for T6 adapter

2015-07-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c index 2b52aae

[PATCH net-next 1/4] cxgb4: Don't use entire L2T table, use only its slice

2015-07-07 Thread Hariprasad Shenai
The driver was retrieving the parameters for the bounds of its slice of the L2T from the firmware and then throwing those away and using the entire table. This corrects that problem. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2

[PATCH net-next 4/4] cxgb4: Enable cim_la dump to support T6

2015-07-07 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 54 -- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4

[PATCH net-next 0/4] Cleanup, T6 changes and register range update

2015-07-07 Thread Hariprasad Shenai
. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (4): cxgb4: Don't use entire L2T table, use only its slice cxgb4: Update register ranges for T6 adapter cxgb4: Read stats for only

[PATCH net-next 3/4] cxgb4: Read stats for only available channels

2015-07-07 Thread Hariprasad Shenai
Updating the driver to read the stats of only available channels. T6 and later has only 2 channels Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 73 +++--- 1 file changed, 26 insertions(+), 47 deletions(-) diff

[PATCH net-next] cxgb4vf: Fix check to use new User Doorbell mechanism

2015-07-08 Thread Hariprasad Shenai
If we don't have access to the new User GTS (T5+), use the old doorbell mechanism; otherwise use the new BAR2 mechanism. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4vf/sge.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff

[PATCH net-next] cxgb4: continue in debug mode, if probe fails

2015-08-26 Thread Hariprasad Shenai
If adapter is flashed with incorrect firmware, probe can fail. If probe fails, continue in debug mode, so one can also use the debug interface to update the firmware via ethtool. Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 9

[PATCH net-next] cxgb4: Force uninitialized state if FW in adapter is unsupported

2015-08-27 Thread Hariprasad Shenai
the FW If FW in adapter = FW_VERSION driver supports then it follows normal path Signed-off-by: Hariprasad Shenai haripra...@chelsio.com --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h| 1 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 ++ drivers/net/ethernet/chelsio/cxgb4

[PATCH net] cxgb4: Changes for new firmware 1.14.4.0

2015-09-07 Thread Hariprasad Shenai
Incorporate fw_ldst_cmd structure change for new firmware and also update version string for the same Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 33 +-- drivers/net/ethernet/chelsio/cxgb4/t4fw_ver

[PATCH net 1/2] cxgb4: Fix tx flit calculation

2015-09-08 Thread Hariprasad Shenai
In commit 0aac3f56d4a63f04 ("cxgb4: Add comment for calculate tx flits and sge length code") introduced a regression where tx flit calculation is going wrong, which can lead to data corruption, hang, stall and write-combining failure. Fixing it. Signed-off-by: Hariprasad Shena

[PATCH net 0/2] Fix tx flit calculation and wc stat configuration

2015-09-08 Thread Hariprasad Shenai
on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: Fix tx flit calculation cxgb4: Fix for write-combining stats configuration drivers/net/ethernet/chelsio

[PATCH net 2/2] cxgb4: Fix for write-combining stats configuration

2015-09-08 Thread Hariprasad Shenai
The write-combining configuration register SGE_STAT_CFG_A needs to be configured after FW initializes the adapter, else FW will reset the configuration Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 7 +-- 1 file chan

[PATCHv2 net] cxgb4vf: support for single-threading access to adapter mailbox registers

2015-09-14 Thread Hariprasad Shenai
mailbox commands in quick succession. What we ran into was irqbalance coming in every 10 seconds and interrogating every network interface in the system. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Updated description and using linux completion API's instead of for loop

[PATCH for-next] cxgb4: add device ID for few T5 adapters

2015-09-15 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h b/drivers/net/ethernet/chelsio/cxgb4/t4_pci_id_tbl.h index 8353a6c..0

[PATCH net] cxgb4: changes for new firmware 1.14.4.0

2015-09-09 Thread Hariprasad Shenai
Incorporate fw_ldst_cmd structure change for new firmware and also update version string for the same Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- V2: Rebased patch to apply cleanly drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h | 33 +-- drive

[PATCHv3 net-next 1/4] cxgb4 : Update T4/T5/T6 register ranges

2015-10-01 Thread Hariprasad Shenai
Update T4/T5/T6 adapter register ranges so that it doesn't read non existent registers when dumped using ethtool Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 1464 +--- 1 file changed, 1134 insertions(+

[PATCHv3 net-next 2/4] cxgb4: For T4, don't read the Firmware Mailbox Control register

2015-10-01 Thread Hariprasad Shenai
T4 doesn't have the Shadow copy of the register which we can read without side effect. So don't read mbox control register for T4 adapter Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 20 ++-- 1 file chang

[PATCHv3 net-next 3/4] cxgb4: Adds a new Device Log Facility FW_DEVLOG_FACILITY_CF

2015-10-01 Thread Hariprasad Shenai
The firmware team added a new Device Log Facility FW_DEVLOG_FACILITY_CF, but the driver has been decoding Device Log messages with that Facility as "(NULL)", fixing it. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs

[PATCHv3 net-next 0/4] cxgb4: Trivial fixes for cxgb4

2015-10-01 Thread Hariprasad Shenai
<lee...@chelsio.com> V2: Fix coding style for Patch2/4 ("cxgb4: For T4, don't read the Firmware Mailbox Control register") based on review comment by Sergei Shtylyov Hariprasad Shenai (4): cxgb4 : Update T4/T5/T6 register ranges cxgb4: For T4, don't read the Firmware Mailbox

[PATCHv3 net-next 4/4] cxgb4: Report correct link speed for unsupported ones

2015-10-01 Thread Hariprasad Shenai
When we get garbage from the firmware with weird Port Speeds, etc. we should emit a warning regarding unsupported speeds rather than use the bogus default of "10Mbps" which isn't even an option in the firmware Port Information message Signed-off-by: Hariprasad Shenai <haripra..

[PATCH net-next] cxgb4: Add HW timesptamp support for RX

2015-09-27 Thread Hariprasad Shenai
, by adding SIOCSHWTSTAMP support in driver. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 +++ drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 15 + drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c

[PATCH net-next 3/4] cxgb4: Adds a new Device Log Facility FW_DEVLOG_FACILITY_CF

2015-09-30 Thread Hariprasad Shenai
The firmware team added a new Device Log Facility FW_DEVLOG_FACILITY_CF, but the driver has been decoding Device Log messages with that Facility as "(NULL)", fixing it. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs

[PATCHv2 net-next 2/4] cxgb4: For T4, don't read the Firmware Mailbox Control register

2015-09-30 Thread Hariprasad Shenai
T4 doesn't have the Shadow copy of the register which we can read without side effect. So don't read mbox control register for T4 adapter Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 18 +- 1 file chang

[PATCHv2 net-next 4/4] cxgb4: Report correct link speed for unsupported ones

2015-09-30 Thread Hariprasad Shenai
When we get garbage from the firmware with weird Port Speeds, etc. we should emit a warning regarding unsupported speeds rather than use the bogus default of "10Mbps" which isn't even an option in the firmware Port Information message Signed-off-by: Hariprasad Shenai <haripra..

[PATCHv2 net-next 1/4] cxgb4 : Update T4/T5/T6 register ranges

2015-09-30 Thread Hariprasad Shenai
Update T4/T5/T6 adapter register ranges so that it doesn't read non existent registers when dumped using ethtool Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 1464 +--- 1 file changed, 1134 insertions(+

[PATCHv2 net-next 3/4] cxgb4: Adds a new Device Log Facility FW_DEVLOG_FACILITY_CF

2015-09-30 Thread Hariprasad Shenai
The firmware team added a new Device Log Facility FW_DEVLOG_FACILITY_CF, but the driver has been decoding Device Log messages with that Facility as "(NULL)", fixing it. Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs

[PATCH net-next 4/4] cxgb4: Report correct link speed for unsupported ones

2015-09-30 Thread Hariprasad Shenai
When we get garbage from the firmware with weird Port Speeds, etc. we should emit a warning regarding unsupported speeds rather than use the bogus default of "10Mbps" which isn't even an option in the firmware Port Information message Signed-off-by: Hariprasad Shenai <haripra..

[PATCH net-next 2/4] cxgb4: For T4, don't read the Firmware Mailbox Control register

2015-09-30 Thread Hariprasad Shenai
T4 doesn't have the Shadow copy of the register which we can read without side effect. So don't read mbox control register for T4 adapter Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 18 +- 1 file chang

[PATCH net-next 0/4] cxgb4: Trivial fixes for cxgb4

2015-09-30 Thread Hariprasad Shenai
patches on cxgb4 driver. We have included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (4): cxgb4 : Update T4/T5/T6 register ranges cxgb4: For T4, don't read the Firmware Mailbox Control register

[PATCH net-next 1/4] cxgb4 : Update T4/T5/T6 register ranges

2015-09-30 Thread Hariprasad Shenai
Update T4/T5/T6 adapter register ranges so that it doesn't read non existent registers when dumped using ethtool Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 1464 +--- 1 file changed, 1134 insertions(+

[PATCHv2 net-next 0/4] cxgb4: Trivial fixes for cxgb4

2015-09-30 Thread Hariprasad Shenai
by Sergei Shtylyov Hariprasad Shenai (4): cxgb4 : Update T4/T5/T6 register ranges cxgb4: For T4, don't read the Firmware Mailbox Control register cxgb4: Adds a new Device Log Facility FW_DEVLOG_FACILITY_CF cxgb4: Report correct link speed for unsupported ones drivers/net/ethernet/che

[PATCH for-next 0/2] RDMA/cxgb4: Add iWARP support for T6 adapter

2015-09-23 Thread Hariprasad Shenai
included all the maintainers of respective drivers. Kindly review the change and let us know in case of any review comments. Thanks Hariprasad Shenai (2): cxgb4: T6 adapter lld support for iw_cxgb4 driver iw_cxgb4: Adds support for T6 adapter drivers/infiniband/hw/cxgb4/cm.c

[PATCH for-next 2/2] iw_cxgb4: Adds support for T6 adapter

2015-09-23 Thread Hariprasad Shenai
Signed-off-by: Hariprasad Shenai <haripra...@chelsio.com> --- drivers/infiniband/hw/cxgb4/cm.c | 317 - drivers/infiniband/hw/cxgb4/device.c | 10 +- drivers/infiniband/hw/cxgb4/provider.c | 2 +- drivers/infiniband/hw/cxgb4/qp.c | 16 +- d

  1   2   3   >