Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Feb 2002 17:54:54 +0100 (CET)
From:      "Henryk Paluch" <paluch@KMLinux.fjfi.cvut.cz>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/34588: read-prefetch on VIA 686B IDE causes hang with CD-R HP8100i
Message-ID:  <200202031654.g13Gss916077@hp.monitor.xx>

next in thread | raw e-mail | index | archive | help

>Number:         34588
>Category:       i386
>Synopsis:       read-prefetch on VIA 686B IDE causes hang with CD-R HP8100i
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 03 09:10:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Henryk Paluch
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
Acron Communications, s.r.o
>Environment:
System: FreeBSD hp.monitor.xx 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Sun Feb 3 17:12:34 CET 2002 root@hp.monitor.xx:/usr/src/sys/compile/GENERICHP i386

>Description:
	When IDE read-prefetch is set on VIA82C686B southbridge,
        it causes hang when accessing ATAPI device CD-R HP8100i

        It is exactly same problem as reported and corrected
        in Linux 2.4.2 kernel. Please see:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0102.1/0320.html
http://www.uwsg.iu.edu/hypermail/linux/kernel/0101.2/0958.html

>How-To-Repeat:
	Just boot FreeBSD 4.x (tested on 4.5)
>Fix:
  Do not enable read-prefetch on ATAPI CD-R devices (linux kernels
  2.4.2+ leave these untouched due problems described above).
  Here is a quick fix:

--- ata-all.c.orig	Sun Feb  3 17:10:24 2002
+++ ata-all.c	Sun Feb  3 17:47:41 2002
@@ -543,7 +543,9 @@
     case 0x74111022: /* AMD 766 default setup */
 
 	/* set prefetch, postwrite */
+/*
 	pci_write_config(dev, 0x41, pci_read_config(dev, 0x41, 1) | 0xf0, 1);
+*/
 
 	/* set fifo configuration half'n'half */
 	pci_write_config(dev, 0x43, 


 BTW: IDE driver seems to completely ignore ata0 and ata0 disable comand (I tried it both in CLI and visual config, but it still attempted to access ata1 channel).

Sincerely 
  Henryk Paluch

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202031654.g13Gss916077>