Skip to content

Commit

Permalink
liquidio: add debug error messages to report command timeout
Browse files Browse the repository at this point in the history
Add timeout error message in lio_process_ordered_list().  Add host failure
status in existing error message in if_cfg_callback().

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rick Farrington authored and David S. Miller committed Mar 22, 2017
1 parent 1f697ab commit c5b71e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/cavium/liquidio/lio_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2225,8 +2225,8 @@ static void if_cfg_callback(struct octeon_device *oct,

oct = lio_get_device(ctx->octeon_id);
if (resp->status)
dev_err(&oct->pci_dev->dev, "nic if cfg instruction failed. Status: %llx\n",
CVM_CAST64(resp->status));
dev_err(&oct->pci_dev->dev, "nic if cfg instruction failed. Status: 0x%llx (0x%08x)\n",
CVM_CAST64(resp->status), status);
WRITE_ONCE(ctx->cond, 1);

snprintf(oct->fw_info.liquidio_firmware_version, 32, "%s",
Expand Down
2 changes: 2 additions & 0 deletions drivers/net/ethernet/cavium/liquidio/response_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ int lio_process_ordered_list(struct octeon_device *octeon_dev,
}
} else if (force_quit || (sc->timeout &&
time_after(jiffies, (unsigned long)sc->timeout))) {
dev_err(&octeon_dev->pci_dev->dev, "%s: cmd failed, timeout (%ld, %ld)\n",
__func__, (long)jiffies, (long)sc->timeout);
status = OCTEON_REQUEST_TIMEOUT;
}

Expand Down

0 comments on commit c5b71e6

Please sign in to comment.