[PATCH net v2 1/4] qed: Wait for ready indication before rereading the shmem

2018-08-19 Thread Tomer Tayar
The MFW might be reset and re-update its shared memory. Upon the detection of such a reset the driver rereads this memory, but it has to wait till the data is valid. This patch adds the missing wait for a data ready indication. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers

[PATCH net v2 4/4] qed: Avoid sending mailbox commands when MFW is not responsive

2018-08-19 Thread Tomer Tayar
other PFs, the patch also adds the option to skip the blocking upon a failure. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 52 +- drivers/net/ethernet/qlogic/qed/qed_mcp.h | 6 ++- drivers/net/ethernet

[PATCH net v2 3/4] qed: Prevent a possible deadlock during driver load and unload

2018-08-19 Thread Tomer Tayar
busy-waiting, and uses it for the (un)load requests (which are not sent from an interrupt context) to prevent the possible deadlock. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 43 ++- drivers/net/ethernet/qlogi

[PATCH net v2 0/4] qed: Misc fixes in the interface with the MFW

2018-08-19 Thread Tomer Tayar
This patch series fixes several issues in the driver's interface with the management FW (MFW). v1->v2: - Fix loop counter decrement to be pre instead of post. Tomer Tayar (4): qed: Wait for ready indication before rereading the shmem qed: Wait for MCP halt and resume commands to ta

[PATCH net v2 2/4] qed: Wait for MCP halt and resume commands to take place

2018-08-19 Thread Tomer Tayar
ff-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 46 +- drivers/net/ethernet/qlogic/qed/qed_reg_addr.h | 1 + 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.c b/driver

[PATCH net 2/4] qed: Wait for MCP halt and resume commands to take place

2018-08-19 Thread Tomer Tayar
ff-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 46 +- drivers/net/ethernet/qlogic/qed/qed_reg_addr.h | 1 + 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.c b/driver

[PATCH net 1/4] qed: Wait for ready indication before rereading the shmem

2018-08-19 Thread Tomer Tayar
The MFW might be reset and re-update its shared memory. Upon the detection of such a reset the driver rereads this memory, but it has to wait till the data is valid. This patch adds the missing wait for a data ready indication. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers

[PATCH net 0/4] qed: Misc fixes in the interface with the MFW

2018-08-19 Thread Tomer Tayar
This patch series fixes several issues in the driver's interface with the management FW (MFW). Tomer Tayar (4): qed: Wait for ready indication before rereading the shmem qed: Wait for MCP halt and resume commands to take place qed: Prevent a possible deadlock during driver load and u

[PATCH net 3/4] qed: Prevent a possible deadlock during driver load and unload

2018-08-19 Thread Tomer Tayar
busy-waiting, and uses it for the (un)load requests (which are not sent from an interrupt context) to prevent the possible deadlock. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 43 ++- drivers/net/ethernet/qlogi

[PATCH net 4/4] qed: Avoid sending mailbox commands when MFW is not responsive

2018-08-19 Thread Tomer Tayar
other PFs, the patch also adds the option to skip the blocking upon a failure. Signed-off-by: Tomer Tayar Signed-off-by: Ariel Elior --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 52 +- drivers/net/ethernet/qlogic/qed/qed_mcp.h | 6 ++- drivers/net/ethernet

[PATCH v4 net-next 4/4] qed*: Advance drivers' version to 8.33.0.20

2017-12-27 Thread Tomer Tayar
Signed-off-by: Ariel Elior Signed-off-by: Chad Dupuis Signed-off-by: Manish Rangankar Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed.h | 8 drivers/net/ethernet/qlogic/qede/qede.h | 6 +++--- drivers/scsi/qedf/qedf_version.h| 8 drivers/scsi

[PATCH v4 net-next 0/4] qed*: Advance to FW 8.33.1.0

2017-12-27 Thread Tomer Tayar
rsion. v3->v4: Fix a compilation issue which was reported by krobot (dependency on CRC8). v2->v3: Resend the series with a fixed title in the cover letter. v1->v2: - Break the previous single patch into several patches. - Fix compilation issues which were reported by krobot. Tomer Ta

[PATCH v3 net-next 4/4] qed*: Advance drivers' version to 8.33.0.20

2017-12-26 Thread Tomer Tayar
Signed-off-by: Ariel Elior Signed-off-by: Chad Dupuis Signed-off-by: Manish Rangankar Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed.h | 8 drivers/net/ethernet/qlogic/qede/qede.h | 6 +++--- drivers/scsi/qedf/qedf_version.h| 8 drivers/scsi

[PATCH v3 net-next 0/4] qed*: Advance to FW 8.33.1.0

2017-12-26 Thread Tomer Tayar
rsion. v2->v3: Resend the series with a fixed title in the cover letter. v1->v2: - Break the previous single patch into several patches. - Fix compilation issues which were reported by krobot. Tomer Tayar (4): qed*: Refactoring and rearranging FW API with no functional impact qed*: H

[PATCH v2 net-next 4/4] qed*: Advance drivers' version to 8.33.0.20

2017-12-26 Thread Tomer Tayar
Signed-off-by: Ariel Elior Signed-off-by: Chad Dupuis Signed-off-by: Manish Rangankar Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed.h | 8 drivers/net/ethernet/qlogic/qede/qede.h | 6 +++--- drivers/scsi/qedf/qedf_version.h| 8 drivers/scsi

[PATCH v2 net-next 0/3] qed*: Advance to FW 8.33.1.0

2017-12-26 Thread Tomer Tayar
rsion. Changes from v1: - Break the previous single patch into several patches. - Fix compilation issues which were reported by krobot. Tomer Tayar (4): qed*: Refactoring and rearranging FW API with no functional impact qed*: HSI renaming for different types of HW qed*: Utilize FW 8.33.1.0

[PATCH net] qed: fix dump of context data

2017-06-13 Thread Tomer Tayar
Currently when dumping a context data only word number '1' is read for the entire context. Fixes: c965db444629 ("qed: Add support for debug data collection") Signed-off-by: Tomer Tayar --- drivers/net/ethernet/qlogic/qed/qed_debug.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH v2 net-next 2/2] qed*: Add support for the ethtool get_regs operation

2016-09-07 Thread Tomer Tayar
Signed-off-by: Tomer Tayar Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 ++ drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 24 include/linux/qed/qed_if.h | 4 3 files changed, 30 insertions(+) diff

[PATCH v2 net-next 0/2] qed*: Debug data collection

2016-09-07 Thread Tomer Tayar
next-next. - Remove the first patch as it seems that its V1 version was already applied (commit '4102426f9b7b3627c8c23a54d70363e81c93f9b7'). Tomer Tayar (2): qed: Add support for debug data collection qed*: Add support for the ethtool get_regs operation drivers/net/ethernet/qlogic/qed/Ma

[PATCH net-next 0/3] qed*: Debug data collection

2016-09-05 Thread Tomer Tayar
This patch series adds the support of debug data collection in the qed driver, and the means to extract it in the qede driver via the get_regs operation. Hi Dave, Please consider applying this to 'net-next'. Thanks, Tomer Tomer Tayar (3): qed: Add infrastructure for debug data

[PATCH net-next 1/3] qed: Add infrastructure for debug data collection

2016-09-05 Thread Tomer Tayar
Adds support for several infrastructure operations that are done as part of debug data collection. Signed-off-by: Tomer Tayar Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_hsi.h | 3 + drivers/net/ethernet/qlogic/qed/qed_mcp.c | 76

[PATCH net-next 3/3] qed*: Add support for the ethtool get_regs operation

2016-09-05 Thread Tomer Tayar
Signed-off-by: Tomer Tayar Signed-off-by: Yuval Mintz --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 ++ drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 24 include/linux/qed/qed_if.h | 4 3 files changed, 30 insertions(+) diff