mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Donnelly <john.p.donnelly@oracle.com>
To: Don Brace <don.brace@microchip.com>,
	hch@infradead.org, martin.peterson@oracle.com,
	jejb@linux.vnet.ibm.com, linux-scsi@vger.kernel.org
Cc: Kevin.Barnett@microchip.com, scott.teel@microchip.com,
	Justin.Lindley@microchip.com, scott.benesh@microchip.com,
	gerry.morong@microchip.com, mahesh.rajashekhara@microchip.com,
	mike.mcgowen@microchip.com, murthy.bhat@microchip.com,
	balsundar.p@microchip.com, joseph.szczypek@hpe.com,
	jeff@canonical.com, POSWALD@suse.com, mwilck@suse.com,
	pmenzel@molgen.mpg.de, linux-kernel@vger.kernel.org
Subject: Re: [smartpqi updates V2 PATCH 5/9] smartpqi: add SCSI cmd info for resets
Date: Tue, 13 Jul 2021 20:21:14 -0500	[thread overview]
Message-ID: <0b7233d7-4b4f-61e7-ec31-8a5de59f4628@oracle.com> (raw)
In-Reply-To: <20210713210243.40594-6-don.brace@microchip.com>

On 7/13/21 4:02 PM, Don Brace wrote:
> From: Murthy Bhat <Murthy.Bhat@microchip.com>
> 
> Report on SCSI command that has triggered the reset.
>   - Also add check for NULL SCSI commands resulting from
>     issuing sg_reset when there is no outstanding commands.
> 
>     Example:
>     sg_reset -d /dev/sgXY
>     smartpqi 0000:39:00.0: resetting scsi 4:0:1:0 due to cmd 0x12
> 
> Reviewed-by: Kevin Barnett <kevin.barnett@microchip.com>
> Reviewed-by: Mike McGowen <mike.mcgowen@microchip.com>
> Reviewed-by: Scott Benesh <scott.benesh@microchip.com>
> Reviewed-by: Scott Teel <scott.teel@microchip.com>
> Signed-off-by: Murthy Bhat <Murthy.Bhat@microchip.com>
> Signed-off-by: Don Brace <don.brace@microchip.com>


Acked-by:  John Donnelly <john.p.donnelly@oracle.com>

> ---
>   drivers/scsi/smartpqi/smartpqi_init.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
> index 29382b290243..ffc7ca221e27 100644
> --- a/drivers/scsi/smartpqi/smartpqi_init.c
> +++ b/drivers/scsi/smartpqi/smartpqi_init.c
> @@ -6033,8 +6033,10 @@ static int pqi_eh_device_reset_handler(struct scsi_cmnd *scmd)
>   	mutex_lock(&ctrl_info->lun_reset_mutex);
>   
>   	dev_err(&ctrl_info->pci_dev->dev,
> -		"resetting scsi %d:%d:%d:%d\n",
> -		shost->host_no, device->bus, device->target, device->lun);
> +		"resetting scsi %d:%d:%d:%d due to cmd 0x%02x\n",
> +		shost->host_no,
> +		device->bus, device->target, device->lun,
> +		scmd->cmd_len > 0 ? scmd->cmnd[0] : 0xff);
>   
>   	pqi_check_ctrl_health(ctrl_info);
>   	if (pqi_ctrl_offline(ctrl_info))
> 


  parent reply	other threads:[~2021-07-14  1:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 21:02 [smartpqi updates V2 PATCH 0/9] smartpqi updates Don Brace
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 1/9] smartpqi: add pci ids for H3C P4408 controllers Don Brace
2021-07-14  1:11   ` John Donnelly
2021-07-14  1:20   ` John Donnelly
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 2/9] smartpqi: update copyright notices Don Brace
2021-07-14  1:12   ` John Donnelly
2021-07-14  1:20   ` John Donnelly
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 3/9] smartpqi: change driver module MACROS to microchip Don Brace
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 4/9] smartpqi: change Kconfig menu entry " Don Brace
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 5/9] smartpqi: add SCSI cmd info for resets Don Brace
2021-07-14  1:14   ` John Donnelly
2021-07-14  1:21   ` John Donnelly [this message]
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 6/9] smartpqi: add PCI-ID for new ntcom controller Don Brace
2021-07-14  1:15   ` John Donnelly
2021-07-14  1:21   ` John Donnelly
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 7/9] smartpqi: add PCI IDs for new ZTE controllers Don Brace
2021-07-14  1:15   ` John Donnelly
2021-07-14  1:24   ` John Donnelly
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 8/9] smartpqi: fix isr accessing uninitialized data Don Brace
2021-07-14  1:16   ` John Donnelly
2021-07-13 21:02 ` [smartpqi updates V2 PATCH 9/9] smartpqi: update version to 2.1.10-020 Don Brace
2021-07-14  1:17   ` John Donnelly
2021-07-14  6:21 ` [smartpqi updates V2 PATCH 0/9] smartpqi updates Paul Menzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0b7233d7-4b4f-61e7-ec31-8a5de59f4628@oracle.com \
    --to=john.p.donnelly@oracle.com \
    --cc=Justin.Lindley@microchip.com \
    --cc=Kevin.Barnett@microchip.com \
    --cc=POSWALD@suse.com \
    --cc=balsundar.p@microchip.com \
    --cc=don.brace@microchip.com \
    --cc=gerry.morong@microchip.com \
    --cc=hch@infradead.org \
    --cc=jeff@canonical.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=joseph.szczypek@hpe.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mahesh.rajashekhara@microchip.com \
    --cc=martin.peterson@oracle.com \
    --cc=mike.mcgowen@microchip.com \
    --cc=murthy.bhat@microchip.com \
    --cc=mwilck@suse.com \
    --cc=pmenzel@molgen.mpg.de \
    --cc=scott.benesh@microchip.com \
    --cc=scott.teel@microchip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®