NetBSD-Bugs archive

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

Re: kern/51756: wd_trim() fails



The following reply was made to PR kern/51756; it has been noted by GNATS.

From: "Jonathan A. Kollasch" <jakllsch%kollasch.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51756: wd_trim() fails
Date: Sun, 1 Jan 2017 19:53:21 -0600

 ATA's DATA SET MANAGEMENT command didn't exist when the siisata(4) chips
 were implemented.  Could you try the following patch?
 
 Index: src/sys/dev/ic/siisata.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/ic/siisata.c,v
 retrieving revision 1.29
 diff -d -u -a -p -r1.29 siisata.c
 --- src/sys/dev/ic/siisata.c	19 Sep 2016 19:07:53 -0000	1.29
 +++ src/sys/dev/ic/siisata.c	2 Jan 2017 01:43:26 -0000
 @@ -861,6 +861,11 @@ siisata_cmd_start(struct ata_channel *ch
  		siisata_disable_port_interrupt(chp);
  	}
  
 +	if (ata_c->r_command == ATA_DATA_SET_MANAGEMENT) {
 +		prb->prb_control |= htole16(PRB_CF_PROTOCOL_OVERRIDE);
 +		prb->prb_protocol_override |= htole16(PRB_PO_WRITE);
 +	}
 +
  	/* go for it */
  	siisata_activate_prb(schp, slot);
  
 Thanks.
 


Home | Main Index | Thread Index | Old Index