From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Marc C <marc.ceeeee@gmail.com>
Cc: tj@kernel.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH v4 1/3] libata: Populate host-to-device FIS "auxiliary" field
Date: Fri, 23 Aug 2013 16:27:42 +0400 [thread overview]
Message-ID: <5217553E.4080200@cogentembedded.com> (raw)
In-Reply-To: <1377250847-24132-2-git-send-email-marc.ceeeee@gmail.com>
On 23-08-2013 13:40, Marc C wrote:
> From: Marc Carino <marc.ceeeee@gmail.com>
> SATA 3.1 added an "auxiliary" field to the host-to-device FIS.
> Populate the host-to-device FIS with the new field via the
> taskfile struct.
> Signed-off-by: Marc Carino <marc.ceeeee@gmail.com>
> ---
> drivers/ata/ahci.c | 8 ++++++++
> drivers/ata/libata-core.c | 10 ++++++----
> include/linux/libata.h | 5 +++++
> 3 files changed, 19 insertions(+), 4 deletions(-)
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index 5064f3e..8d41c57 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -1288,6 +1288,14 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> */
> if (!(hpriv->flags & AHCI_HFLAG_NO_FPDMA_AA))
> pi.flags |= ATA_FLAG_FPDMA_AA;
> +
> + /*
> + * All AHCI controllers should be forward-compatible
> + * with the new auxiliary field. This code should be
> + * conditionalized if any buggy AHCI controllers are
> + * encountered.
> + */
> + pi.flags |= ATA_FLAG_FPDMA_AUX;
[...]
> diff --git a/include/linux/libata.h b/include/linux/libata.h
> index 283d66b..6539c50 100644
> --- a/include/linux/libata.h
> +++ b/include/linux/libata.h
> @@ -223,6 +223,7 @@ enum {
> ATA_FLAG_ACPI_SATA = (1 << 17), /* need native SATA ACPI layout */
> ATA_FLAG_AN = (1 << 18), /* controller supports AN */
> ATA_FLAG_PMP = (1 << 19), /* controller supports PMP */
> + ATA_FLAG_FPDMA_AUX = (1 << 20), /* controller supports H2DFIS aux field */
I think adding this flag is a matter of a separate patch.
WBR, Sergei
next prev parent reply other threads:[~2013-08-23 12:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-23 9:40 [PATCH v4 0/3] Introduce new SATA queued commands Marc C
2013-08-23 9:40 ` [PATCH v4 1/3] libata: Populate host-to-device FIS "auxiliary" field Marc C
2013-08-23 12:27 ` Sergei Shtylyov [this message]
2013-08-23 9:40 ` [PATCH v4 2/3] libata: Add support for SEND/RECEIVE FPDMA QUEUED Marc C
2013-08-23 12:43 ` Sergei Shtylyov
2013-08-23 16:06 ` Tejun Heo
2013-08-23 9:40 ` [PATCH v4 3/3] libata: Add support for queued DSM TRIM Marc C
2013-08-23 16:07 ` Tejun Heo
2013-08-23 16:08 ` [PATCH v4 0/3] Introduce new SATA queued commands Tejun Heo
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=5217553E.4080200@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-ide@vger.kernel.org \
--cc=marc.ceeeee@gmail.com \
--cc=tj@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.