qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Improve ATA IDENTIFY word 64 contents.
Date: Fri, 03 Sep 2010 14:26:04 +0200	[thread overview]
Message-ID: <4C80E95C.7090205@redhat.com> (raw)
In-Reply-To: <1283470724-26262-1-git-send-email-jakllsch@kollasch.net>

Am 03.09.2010 01:38, schrieb Jonathan A. Kollasch:
> Fill in word 64 of IDENTIFY data to indicate support for PIO modes 3 and 4.
> This allows NetBSD guests to use UltraDMA modes instead of just PIO mode 0.

The Signed-off-by line is missing.

> ---
>  hw/ide/core.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/ide/core.c b/hw/ide/core.c
> index 3651d2b..2fa26f4 100644
> --- a/hw/ide/core.c
> +++ b/hw/ide/core.c
> @@ -139,6 +139,7 @@ static void ide_identify(IDEState *s)
>      put_le16(p + 61, s->nb_sectors >> 16);
>      put_le16(p + 62, 0x07); /* single word dma0-2 supported */
>      put_le16(p + 63, 0x07); /* mdma0-2 supported */
> +    put_le16(p + 64, 0x03); /* pio3-4 supported */
>      put_le16(p + 65, 120);
>      put_le16(p + 66, 120);
>      put_le16(p + 67, 120);
> @@ -199,12 +200,12 @@ static void ide_atapi_identify(IDEState *s)
>      put_le16(p + 53, 7); /* words 64-70, 54-58, 88 valid */
>      put_le16(p + 62, 7);  /* single word dma0-2 supported */
>      put_le16(p + 63, 7);  /* mdma0-2 supported */
> -    put_le16(p + 64, 0x3f); /* PIO modes supported */
> +    put_le16(p + 64, 3); /* pio3-4 supported */
>  #else
>      put_le16(p + 49, 1 << 9); /* LBA supported, no DMA */
>      put_le16(p + 53, 3); /* words 64-70, 54-58 valid */
>      put_le16(p + 63, 0x103); /* DMA modes XXX: may be incorrect */
> -    put_le16(p + 64, 1); /* PIO modes */
> +    put_le16(p + 64, 3); /* pio3-4 supported */
>  #endif
>      put_le16(p + 65, 0xb4); /* minimum DMA multiword tx cycle time */
>      put_le16(p + 66, 0xb4); /* recommended DMA multiword tx cycle time */

The two lines for byte 64 in ide_atapi_identify are now the same, so
they could be moved outside the #ifdef.

Kevin

      reply	other threads:[~2010-09-03 12:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 23:38 [Qemu-devel] [PATCH] Improve ATA IDENTIFY word 64 contents Jonathan A. Kollasch
2010-09-03 12:26 ` Kevin Wolf [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=4C80E95C.7090205@redhat.com \
    --to=kwolf@redhat.com \
    --cc=jakllsch@kollasch.net \
    --cc=qemu-devel@nongnu.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).