From nobody@FreeBSD.org  Sat Nov  3 12:22:36 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 54E6637B416
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  3 Nov 2001 12:22:35 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fA3KMZu82980;
	Sat, 3 Nov 2001 12:22:35 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111032022.fA3KMZu82980@freefall.freebsd.org>
Date: Sat, 3 Nov 2001 12:22:35 -0800 (PST)
From: Joey <joey@kjdesigns.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DMA mode not possible switching to PIO mode?
X-Send-Pr-Version: www-1.0

>Number:         31736
>Category:       misc
>Synopsis:       DMA mode not possible switching to PIO mode?
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 03 12:30:02 PST 2001
>Closed-Date:    Mon May 06 11:43:52 PDT 2002
>Last-Modified:  Mon May 06 11:43:52 PDT 2002
>Originator:     Joey
>Release:        FreeBSD 4.4-RELEASE
>Organization:
KJ Designs
>Environment:
FreeBSD kjdesigns.xs4all.nl 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Sat Nov  3 17:15:52 CET 2001     breezer@kjdesigns.xs4all.nl:/usr/src/sys/compile/NIEUW  i386

>Description:
When booting FreeBSD the following error came up. It looks like there is an error with writing in DMA mode to my harddisk and after a few retries it is switching from DMA to PIO mode. My harddisk is 100% correct and supports DMA33/66 and my motherbord with SiS 5591 chipset works fine, also the cable is correct (more cables allready tried). Under linux everything is working fine...
(when I go on and ignore the error it looks like my system becomes unstable)
dmesg:

ad1: 16479MB <Maxtor 91728D8> [33483/16/63] at ata0-slave UDMA33
acd0: CDROM <CD-ROM 40X/AKU> at ata1-slave using PIO4
Mounting root from ufs:/dev/ad1s1a
ad1: WRITE command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad1: WRITE command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad1: WRITE command timeout tag=0 serv=0 - resetting
ata0: resetting devices .. done
ad1: WRITE command timeout tag=0 serv=0 - resetting
ad1: trying fallback to PIO mode
ata0: resetting devices .. done

>How-To-Repeat:
Everytime on booting the problem exist...
>Fix:
There is a little solution to call sysctl before mounting the harddisk and give it the command to setting dma to pio mode, but pio mode is much slower then DMA mode, about 9 mb/s with linux... If it's possible I want to run in DMA mode offcourse :)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: silby 
State-Changed-When: Sat Jan 5 15:05:25 PST 2002 
State-Changed-Why:  
Soren recently made some changes to the SiS support in the ATA 
driver.  Please update to -stable and see if you are still 
experiencing problems. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31736 
State-Changed-From-To: feedback->closed 
State-Changed-By: sos 
State-Changed-When: Mon May 6 11:42:42 PDT 2002 
State-Changed-Why:  
This is bleived to be fixed in 4.6 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31736 
>Unformatted:
