linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian King <brking@us.ibm.com>
To: linas <linas@austin.ibm.com>
Cc: James.Bottomley@steeleye.com, gregkh@suse.de, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] PCI Error Recovery: IPR SCSI device driver]
Date: Wed, 18 Jan 2006 11:14:34 -0600	[thread overview]
Message-ID: <43CE777A.8090308@us.ibm.com> (raw)
In-Reply-To: <20060118165110.GR26221@austin.ibm.com>

linas wrote:
> Hi James,
> Please review the patch below, and forward upstream.  I've been
> bouncing it to various mailing lists for the last half-year,
> it has been living in an -mm tree for a while, and was a part of
> GregKH's patchset for a while. I'd like to get it propely upstream.

Sorry I didn't notice this before.. Couple minor nits below


>  
> +/* --------------- PCI Error Recovery infrastructure ----------- */

Kill this comment line.

> +/** If the PCI slot is frozen, hold off all i/o
> + *  activity; then, as soon as the slot is available again,
> + *  initiate an adapter reset.
> + */

Fix to be proper kerneldoc format. The same applies for all the added
functions.

> +static int ipr_reset_freeze(struct ipr_cmnd *ipr_cmd)
> +{
> +	/* Disallow new interrupts, avoid loop */
> +	ipr_cmd->ioa_cfg->allow_interrupts = 0;
> +	list_add_tail(&ipr_cmd->queue, &ipr_cmd->ioa_cfg->pending_q);
> +	ipr_cmd->done = ipr_reset_ioa_job;
> +	return IPR_RC_JOB_RETURN;
> +}
> +
> +/** ipr_eeh_frozen -- called when slot has experience PCI bus error.
> + *  This routine is called to tell us that the PCI bus is down.
> + *  Can't do anything here, except put the device driver into a
> + *  holding pattern, waiting for the PCI bus to come back.
> + */



> +static pci_ers_result_t ipr_eeh_error_detected(struct pci_dev *pdev,
> +                                pci_channel_state_t state)
> +{
> +	switch (state) {
> +		case pci_channel_io_frozen:
> +			ipr_eeh_frozen (pdev);
> +			return PCI_ERS_RESULT_NEED_RESET;
> +
> +		case pci_channel_io_perm_failure:
> +			ipr_eeh_perm_failure (pdev);
> +			return PCI_ERS_RESULT_DISCONNECT;
> +			break;
> +		default:
> +			break;
> +	}
> +	return PCI_ERS_RESULT_NEED_RESET;
> +}
> +


> +/* ------------- end of PCI Error Recovery suport ----------- */

Kill this line as well.

Thanks,

Brian


-- 
Brian King
eServer Storage I/O
IBM Linux Technology Center

      reply	other threads:[~2006-01-18 17:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18 16:51 [PATCH] PCI Error Recovery: IPR SCSI device driver] linas
2006-01-18 17:14 ` Brian King [this message]

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=43CE777A.8090308@us.ibm.com \
    --to=brking@us.ibm.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=gregkh@suse.de \
    --cc=linas@austin.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).