From nobody@junk.com  Fri May 27 11:43:48 2005
Return-Path: <nobody@junk.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8EEEA16A41C
	for <bug-followup@FreeBSD.org>; Fri, 27 May 2005 11:43:48 +0000 (GMT)
	(envelope-from nobody@junk.com)
Received: from email.aon.at (WARSL404PIP1.highway.telekom.at [195.3.96.112])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B2B5C43D1D
	for <bug-followup@FreeBSD.org>; Fri, 27 May 2005 11:43:47 +0000 (GMT)
	(envelope-from nobody@junk.com)
Received: (qmail 407 invoked from network); 27 May 2005 11:43:41 -0000
Received: from m1172p002.adsl.highway.telekom.at (HELO gandalf.xyzzy) ([80.121.18.98])
          (envelope-sender <nobody@junk.com>)
          by smarthub72.highway.telekom.at (qmail-ldap-1.03) with SMTP
          for <bug-followup@FreeBSD.org>; 27 May 2005 11:43:41 -0000
Received: from junk.com (gandalf.xyzzy [192.168.1.5])
	by gandalf.xyzzy (8.13.1/8.13.1) with ESMTP id j4RBhchj000847
	for <bug-followup@FreeBSD.org>; Fri, 27 May 2005 13:43:40 +0200 (CEST)
	(envelope-from nobody@junk.com)
Message-Id: <429707EA.8070805@junk.com>
Date: Fri, 27 May 2005 13:43:38 +0200
From: Martin Birgmeier <nobody@junk.com>
To: bug-followup@FreeBSD.org
Subject: Solution: kern/80042: FreeBSD 5.4 RC2: Promise PDC20265 on A7V mobo
 + Maxtor 6B200P0/BAH41BM0 gives only 268435455 instead of 398297088 sectors

>Number:         81552
>Category:       kern
>Synopsis:       Solution: kern/80042: FreeBSD 5.4 RC2: Promise PDC20265 on A7V mobo
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 27 11:50:01 GMT 2005
>Closed-Date:    Fri May 27 19:27:21 GMT 2005
>Last-Modified:  Fri May 27 19:27:21 GMT 2005
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 This is a multi-part message in MIME format.
 --------------070609020100070409020908
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Patch included in this mail.
 
 -- 
 Martin Birgmeier
 
 Vienna
 Austria
 
 --------------070609020100070409020908
 Content-Type: text/plain;
  name="ata-chipset.c.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="ata-chipset.c.patch"
 
 *** sys/dev/ata/ata-chipset.c.ORIG	Wed Mar 23 06:14:11 2005
 --- sys/dev/ata/ata-chipset.c	Fri May 27 13:01:27 2005
 ***************
 *** 1989,1995 ****
       if (ch->flags & ATA_48BIT_ACTIVE) {
   	ATA_OUTB(ctlr->r_res1, 0x11,
   		 ATA_INB(ctlr->r_res1, 0x11) | (ch->unit ? 0x08 : 0x02));
 ! 	ATA_OUTL(ctlr->r_res1, 0x20,
   		 ((ch->dma->flags & ATA_DMA_READ) ? 0x05000000 : 0x06000000) |
   		 (ch->dma->cur_iosize >> 1));
       }
 --- 1989,1995 ----
       if (ch->flags & ATA_48BIT_ACTIVE) {
   	ATA_OUTB(ctlr->r_res1, 0x11,
   		 ATA_INB(ctlr->r_res1, 0x11) | (ch->unit ? 0x08 : 0x02));
 ! 	ATA_OUTL(ctlr->r_res1, ch->unit ? 0x24 : 0x20,
   		 ((ch->dma->flags & ATA_DMA_READ) ? 0x05000000 : 0x06000000) |
   		 (ch->dma->cur_iosize >> 1));
       }
 
 --------------070609020100070409020908--
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri May 27 19:26:21 GMT 2005 
State-Changed-Why:  
Misfiled followup to ports/80042.  Content not migrated, since a better 
patch than this one was already included in a subsequent followup. 


Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri May 27 19:26:21 GMT 2005 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=81552 
>Unformatted:
  + Maxtor 6B200P0/BAH41BM0 gives only 268435455 instead of 398297088 sectors
