Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jdolecek-ncq]: src/sys/dev/ata use AT_LBA48 flag for the READ LOG EXT - ...



details:   https://anonhg.NetBSD.org/src/rev/5bc940b4c81a
branches:  jdolecek-ncq
changeset: 823001:5bc940b4c81a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Aug 12 22:31:50 2017 +0000

description:
use AT_LBA48 flag for the READ LOG EXT - it's required so that e.g. mvsata()
executes the command using wdccommandext(), it fails when executed using
wdccommand()

diffstat:

 sys/dev/ata/ata.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0341f4195098 -r 5bc940b4c81a sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Sat Aug 12 22:12:04 2017 +0000
+++ b/sys/dev/ata/ata.c Sat Aug 12 22:31:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ata.c,v 1.132.8.27 2017/08/12 15:08:38 jdolecek Exp $  */
+/*     $NetBSD: ata.c,v 1.132.8.28 2017/08/12 22:31:50 jdolecek Exp $  */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.27 2017/08/12 15:08:38 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.28 2017/08/12 22:31:50 jdolecek Exp $");
 
 #include "opt_ata.h"
 
@@ -1091,7 +1091,7 @@
        xfer->c_ata_c.r_st_pmask = WDCS_DRDY;
        xfer->c_ata_c.r_count = 1;
        xfer->c_ata_c.r_device = WDSD_LBA;
-       xfer->c_ata_c.flags = AT_READ | AT_LBA | flags;
+       xfer->c_ata_c.flags = AT_READ | AT_LBA | AT_LBA48 | flags;
        xfer->c_ata_c.timeout = 1000; /* 1s */
        xfer->c_ata_c.data = tb;
        xfer->c_ata_c.bcount = DEV_BSIZE;



Home | Main Index | Thread Index | Old Index