qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: Floris Bos <bos@je-eigen-domein.nl>,
	qemu-devel@nongnu.org, Floris Bos <dev@noc-ps.com>
Subject: Re: [Qemu-devel] [PATCH 3/3] [v2] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name
Date: Tue, 13 Mar 2012 14:28:12 +0100	[thread overview]
Message-ID: <4F5F4B6C.9040508@redhat.com> (raw)
In-Reply-To: <4F5F4A2E.2000706@redhat.com>

Il 13/03/2012 14:22, Kevin Wolf ha scritto:
>>> >>      put_le16(p + 82, (1 << 14) | (1 << 5) | 1);
>>> >>      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
>>> >>      put_le16(p + 83, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));
>> > 
>> > Bit 14 should not be set here.  Not your fault, but perhaps you can fix
>> > it too?
> 
> Table in the spec says: "14 - Shall be set to one"

uff, I hate those pages.  The wrong one is word 86.  Bit 14 is reserved
there.  It's wrong in ide_cfata_identify, too.

>>> >> -    /* 14=set to 1, 1=SMART self test, 0=SMART error logging */
>>> >> -    put_le16(p + 84, (1 << 14) | 0);
>>> >> +    /* 14=set to 1, 8=has WWN, 1=SMART self test, 0=SMART error logging */
>>> >> +    if (s->wwn) {
>>> >> +        put_le16(p + 84, (1 << 14) | (1 << 8) | 0);
>>> >> +    } else {
>>> >> +        put_le16(p + 84, (1 << 14) | 0);
>>> >> +    }
>>> >>      /* 14 = NOP supported, 5=WCACHE enabled, 0=SMART feature set enabled */
>>> >>      if (bdrv_enable_write_cache(s->bs))
>>> >>           put_le16(p + 85, (1 << 14) | (1 << 5) | 1);
>>> >> @@ -152,8 +156,12 @@ static void ide_identify(IDEState *s)
>>> >>           put_le16(p + 85, (1 << 14) | 1);
>>> >>      /* 13=flush_cache_ext,12=flush_cache,10=lba48 */
>>> >>      put_le16(p + 86, (1 << 14) | (1 << 13) | (1 <<12) | (1 << 10));

> What about ide_cfata_identify, while we're at it? Or isn't it supported
> there?

No idea.

Paolo

  reply	other threads:[~2012-03-13 13:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 12:31 [Qemu-devel] [PATCH 3/3] [v2] ide: Adds wwn=hex qdev option allowing the user to specify a disk's World Wide Name Floris Bos
2012-03-13 13:01 ` Paolo Bonzini
2012-03-13 13:22   ` Kevin Wolf
2012-03-13 13:28     ` Paolo Bonzini [this message]
2012-03-13 13:53   ` Floris Bos / Maxnet
2012-03-13 14:06     ` Paolo Bonzini
2012-03-13 14:18     ` Kevin Wolf

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=4F5F4B6C.9040508@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=bos@je-eigen-domein.nl \
    --cc=dev@noc-ps.com \
    --cc=kwolf@redhat.com \
    --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).