linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tejun Heo <htejun@gmail.com>
To: Bastiaan Jacques <b.jacques@planet.nl>
Cc: Jeff Garzik <jeff@garzik.org>, linux-ide@vger.kernel.org
Subject: Re: [PATCH 2.6.17-rc1-mm2 1/1] ahci: add support for VIA VT8251
Date: Thu, 13 Apr 2006 12:23:33 +0900	[thread overview]
Message-ID: <443DC435.3020209@gmail.com> (raw)
In-Reply-To: <200604130208.56840.b.jacques@planet.nl>

Hello, Bastiaan.

Looks good to me.  Please see below.

Bastiaan Jacques wrote:
> Adds AHCI support for the VIA VT8251.
> 
> Includes a workaround for a hardware bug which requires a Command List
> Override before reset.
> 
> Signed-off-by: Bastiaan Jacques <b.jacques@planet.nl>
> Acked-by: Jeff Garzik <jeff@garzik.org>
> ---
[--snip--]
>  static int ahci_probe_reset(struct ata_port *ap, unsigned int *classes)
>  {
> +	if ((ap->flags & AHCI_FLAG_RESET_NEEDS_CLO) &&
> +	    (ata_busy_wait(ap, ATA_BUSY, 1000) & ATA_BUSY)) {

I'm kind of uncomfortable with busy sleeping with @cnt at 1000.  That's 
 >> 10ms of busy waiting.  However, this is a minor issue and even if it 
gets changed it probably belongs to another patch.

Hmmm, ata_busy_sleep() would be a bit weird with the 'be patient' 
message and I always thought the function contained way too much busy 
waiting.  Processors are blazing fast and context switch is cheap these 
days.

Maybe we need to update ata_busy_sleep() so that it ignores tmout_pat if 
it's zero.  What do you think, Jeff?

> +		/* ATA_BUSY hasn't cleared, so send a CLO */
> +		ahci_clo(ap);
> +	}
> +

-- 
tejun

  reply	other threads:[~2006-04-13  3:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 17:15 [PATCH/RFC] ahci: add support for VIA VT8251 Bastiaan Jacques
2006-04-11 17:41 ` Sergey Vlasov
2006-04-11 20:10   ` Bastiaan Jacques
2006-04-11 22:16 ` Jeff Garzik
2006-04-12  0:42 ` Tejun Heo
2006-04-12 19:10   ` Bastiaan Jacques
2006-04-12 19:25     ` Jeff Garzik
2006-04-12 20:59       ` Bastiaan Jacques
2006-04-12 21:46         ` Jeff Garzik
2006-04-12 22:19           ` [PATCH 2.6.17-rc1-mm2 1/1] " Bastiaan Jacques
2006-04-12 22:25             ` Bastiaan Jacques
2006-04-12 22:27             ` Jeff Garzik
2006-04-13  0:08               ` Bastiaan Jacques
2006-04-13  3:23                 ` Tejun Heo [this message]
2006-04-17 12:19               ` [PATCH libata-dev.git upstream " Bastiaan Jacques

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=443DC435.3020209@gmail.com \
    --to=htejun@gmail.com \
    --cc=b.jacques@planet.nl \
    --cc=jeff@garzik.org \
    --cc=linux-ide@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).