All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Arjan van de Ven <arjan@infradead.org>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ahci: add a module parameter to ignore the SSS flags for async scanning
Date: Mon, 02 Feb 2009 22:42:49 -0500	[thread overview]
Message-ID: <4987BD39.6090806@garzik.org> (raw)
In-Reply-To: <20090126162856.0720ce17@infradead.org>

Arjan van de Ven wrote:
>>From f1adba17389764dd6f2ff654d61e8c32dbedbbef Mon Sep 17 00:00:00 2001
> From: Arjan van de Ven <arjan@linux.intel.com>
> Date: Mon, 26 Jan 2009 02:05:44 -0800
> Subject: [PATCH] ahci: add a module parameter to ignore the SSS flags for async scanning
> 
> The SSS flag, which directs the OS to spin up one disk at a time
> to not have the PSU blow out, sometimes gets set even when not needed.
> The effect of this is a longer-than-needed boot time.
> 
> This patch adds a module parameter that makes the driver ignore SSS
> at least as far as the parallel scan during boot is concerned...
> 
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
> ---
>  drivers/ata/ahci.c |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index 9603967..969c5e1 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -61,9 +61,14 @@
>  #define EM_MSG_LED_VALUE_ON           0x00010000
>  
>  static int ahci_skip_host_reset;
> +static int ahci_ignore_sss;
> +
>  module_param_named(skip_host_reset, ahci_skip_host_reset, int, 0444);
>  MODULE_PARM_DESC(skip_host_reset, "skip global host reset (0=don't skip, 1=skip)");
>  
> +module_param_named(ignore_sss, ahci_ignore_sss, int, 0444);
> +MODULE_PARM_DESC(ignore_sss, "Ignore staggered spinup flag (0=don't ignore, 1=ignore)");
> +
>  static int ahci_enable_alpm(struct ata_port *ap,
>  		enum link_pm policy);
>  static void ahci_disable_alpm(struct ata_port *ap);
> @@ -2660,8 +2665,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
>  	host->iomap = pcim_iomap_table(pdev);
>  	host->private_data = hpriv;
>  
> -	if (!(hpriv->cap & HOST_CAP_SSS))
> +	if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss)
>  		host->flags |= ATA_HOST_PARALLEL_SCAN;
> +	else
> +		printk(KERN_INFO "ahci: SSS flag set, parallel bus scan disabled\n");
>  
>  	if (pi.flags & ATA_FLAG_EM)

applied



      reply	other threads:[~2009-02-03  3:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27  0:28 [PATCH] ahci: add a module parameter to ignore the SSS flags for async scanning Arjan van de Ven
2009-02-03  3:42 ` Jeff Garzik [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=4987BD39.6090806@garzik.org \
    --to=jeff@garzik.org \
    --cc=arjan@infradead.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 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.