Skip to contentSkip to conversation

ide: IDENTIFY word 86 bit 14 is reserved

PATCH In review Kevin Wolf 2 participants 2 messages Mar 13, 2012 – Mar 14, 2012

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

PATCH 1/1 ide: IDENTIFY word 86 bit 14 is reserved

Reserved bits should be cleared to zero.

---
 hw/ide/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ide/core.c +1 -1
index 6f06d28..771811c 100644
@@ -150,7 +150,7 @@ static void ide_identify(IDEState *s)
     else
          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));
+    put_le16(p + 86, (1 << 13) | (1 <<12) | (1 << 10));
     /* 14=set to 1, 1=smart self test, 0=smart error logging */
     put_le16(p + 87, (1 << 14) | 0);
     put_le16(p + 88, 0x3f | (1 << 13)); /* udma5 set and supported */
Signature · 1 line
1.7.6.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Kevin Wolf

Reserved bits should be cleared to zero.

---
 hw/ide/core.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ide/core.c +0 -0
index 6f06d28..771811c 100644
@@ -150,7 +150,7 @@ static void ide_identify(IDEState *s)
Quoted 5 lines

    else
         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));
+    put_le16(p + 86, (1 << 13) | (1 <<12) | (1 << 10));

Looks good. This seems like a copy-paste bug in "LBA48 support (Jens Axboe)" (c2ff060fd4c7389de2016442e3327538a66696bd) where words 83 and 86 were modified in the same way.