Subject: Re: Disk problem on ASUS A7V motherboard appeared in 1.5.1_BETA
To: Jeff Rizzo <riz@boogers.sf.ca.us>
From: Frank van der Linden <fvdl@wasabisystems.com>
List: port-i386
Date: 04/20/2001 09:47:26
On Thu, Apr 19, 2001 at 10:18:26PM -0700, Jeff Rizzo wrote:
> I read over the thread about the VIA chipset problems on the A7V
> motherboard, but I hadn't actually seen anything myself until
> tonight, when I went to a 1.5.1_BETA kernel from a 1.5 kernel.

This has been reported before, and the fix should be the following
(it has not been pulled up into the 1.5 branch yet)


Index: pciide.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/pci/pciide.c,v
retrieving revision 1.109
retrieving revision 1.110
diff -c -r1.109 -r1.110
*** pciide.c	2001/03/20 17:54:39	1.109
--- pciide.c	2001/03/20 17:56:46	1.110
***************
*** 3243,3253 ****
  	}
  
  	mode = PDC2xx_SCR_DMA;
! 	if (PDC_IS_265(sc)) {
! 		/* the BIOS set it up this way */
! 		mode = PDC2xx_SCR_SET_GEN(mode, 0x3);
! 		mode |= 0x80000000;
! 	} else if (PDC_IS_262(sc)) {
  		mode = PDC2xx_SCR_SET_GEN(mode, PDC262_SCR_GEN_LAT);
  	} else {
  		/* the BIOS set it up this way */
--- 3243,3249 ----
  	}
  
  	mode = PDC2xx_SCR_DMA;
! 	if (PDC_IS_262(sc)) {
  		mode = PDC2xx_SCR_SET_GEN(mode, PDC262_SCR_GEN_LAT);
  	} else {
  		/* the BIOS set it up this way */