aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2005-01-13 23:03:12 +0000
committerKen Smith <kensmith@FreeBSD.org>2005-01-13 23:03:12 +0000
commit56fa421a154b3cab219cfba19fb96486c291abb1 (patch)
tree942ec0dd36b3323452cc14bb61cecfd7f666d4fc
parent2e85ae46730ca5987be680ba8ca8212dbaa69e37 (diff)
downloadsrc-56fa421a154b3cab219cfba19fb96486c291abb1.tar.gz
src-56fa421a154b3cab219cfba19fb96486c291abb1.zip
MFS revision 1.50.2.48
date: 2005/01/11 18:25:01; author: kensmith; state: Exp; lines: +1 -1 MFC of an off-by-one fix sos made to HEAD in v1.96 of ata-chipset.c and v1.50 of ata-lowlevel.c. From his log message: Log: Compensate for off by one bugs in disk firmware for 48BIT addressing cutover. Requested by: marck Glanced at by: sos Approved by: re (scottl)
Notes
Notes: svn path=/releng/4.11/; revision=140208
-rw-r--r--sys/dev/ata/ata-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index 570a3b84a6c2..df91513f69f1 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -1035,7 +1035,7 @@ ata_command(struct ata_device *atadev, u_int8_t command,
}
/* only use 48bit addressing if needed because of the overhead */
- if ((lba > 268435455 || count > 256) && atadev->param &&
+ if ((lba >= 268435455 || count > 256) && atadev->param &&
atadev->param->support.address48) {
ATA_OUTB(atadev->channel->r_io, ATA_FEATURE, (feature>>8) & 0xff);
ATA_OUTB(atadev->channel->r_io, ATA_FEATURE, feature);