All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: albertl@mail.com, Mikael Pettersson <mikpe@it.uu.se>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, Doug Maxey <dwm@enoyolf.org>,
	Mark Lord <mlord@pobox.com>, Tejun Heo <htejun@gmail.com>,
	Linux IDE <linux-ide@vger.kernel.org>
Subject: Re: [PATCH 2/7] sata_promise: pdc_freeze() semantic change
Date: Tue, 02 Oct 2007 11:28:34 -0400	[thread overview]
Message-ID: <470263A2.3040803@garzik.org> (raw)
In-Reply-To: <468F3A99.5040005@tw.ibm.com>

Albert Lee wrote:
>  After checking the current implementations of freeze()/thaw(), it seems only pdc_freeze()
> does more than simple irq masking. Remove the DMA stop code from pdc_freeze().
> 
> Signed-off-by: Albert Lee <albertcc@tw.ibm.com>
> ---
> 
> diff -Nrup 01_remove_leftover_irqon/drivers/ata/sata_promise.c 02_sata_pdc_freeze/drivers/ata/sata_promise.c
> --- 01_remove_leftover_irqon/drivers/ata/sata_promise.c	2007-07-07 09:58:55.000000000 +0800
> +++ 02_sata_pdc_freeze/drivers/ata/sata_promise.c	2007-07-07 10:39:22.000000000 +0800
> @@ -578,7 +578,6 @@ static void pdc_freeze(struct ata_port *
>  
>  	tmp = readl(mmio + PDC_CTLSTAT);
>  	tmp |= PDC_IRQ_DISABLE;
> -	tmp &= ~PDC_DMA_ENABLE;
>  	writel(tmp, mmio + PDC_CTLSTAT);
>  	readl(mmio + PDC_CTLSTAT); /* flush */

Two comments:

1) I do not think it safe to simply remove this.  Have you verified that 
pdc_reset_port() without a disabled DMA engine works 100%?  At the very 
least I would say to -move- this code, rather the deleting it.

2) It was put there to disable the DMA engine at our first opportunity. 
  For some errors we really should take some preliminary 
port/DMA-disable actions in the interrupt handler, before kicking off EH 
and waiting to be scheduled in process context.

	Jeff



  reply	other threads:[~2007-10-02 15:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-07  6:57 [PATCH 0/7] libata: irq_on/off restructuring (take #2) Albert Lee
2007-07-07  7:00 ` [PATCH 1/7] libata: remove irq_on from ata_bus_reset() and ata_std_postreset() Albert Lee
2007-07-12 20:12   ` Jeff Garzik
2007-07-07  7:02 ` [PATCH 2/7] sata_promise: pdc_freeze() semantic change Albert Lee
2007-10-02 15:28   ` Jeff Garzik [this message]
2007-07-07  7:05 ` [PATCH 3/7] libata: add freeze/thaw to old EH LLDDs Albert Lee
2007-07-07  7:09 ` [PATCH 4/7] libata: use freeze/thaw for polling PIO Albert Lee
2007-07-13  6:53   ` Tejun Heo
2007-07-07  7:12 ` [PATCH 5/7] libata: integrate freeze/thaw with irq_on/off Albert Lee
2007-07-13  6:51   ` Tejun Heo
2007-07-16  9:17     ` Albert Lee
2007-07-07  7:20 ` [PATCH 6/7] libata: remove nIEN handling from ata_tf_load() Albert Lee
2007-07-07  7:23 ` [PATCH 7/7] libata: remove ap->last_ctl Albert Lee
2007-07-13  6:58   ` Tejun Heo
  -- strict thread matches above, loose matches on Subject: below --
2007-07-07 19:08 [PATCH 2/7] sata_promise: pdc_freeze() semantic change Mikael Pettersson
2007-07-10 16:06 ` Tejun Heo
2007-07-13  9:07   ` Tejun Heo
2007-07-16  9:19     ` Albert Lee

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=470263A2.3040803@garzik.org \
    --to=jeff@garzik.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=albertl@mail.com \
    --cc=dwm@enoyolf.org \
    --cc=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mikpe@it.uu.se \
    --cc=mlord@pobox.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.