From stolz@i2.informatik.rwth-aachen.de  Fri Apr 25 06:47:52 2003
Return-Path: <stolz@i2.informatik.rwth-aachen.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 0F90337B401; Fri, 25 Apr 2003 06:47:52 -0700 (PDT)
Received: from atlas.informatik.rwth-aachen.de (atlas.Informatik.RWTH-Aachen.DE [137.226.194.2])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 76FD943FAF; Fri, 25 Apr 2003 06:47:50 -0700 (PDT)
	(envelope-from stolz@i2.informatik.rwth-aachen.de)
Received: from menelaos.informatik.rwth-aachen.de (menelaos.Informatik.RWTH-Aachen.DE [137.226.194.73])
	by atlas.informatik.rwth-aachen.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h3PDlnO32765;
	Fri, 25 Apr 2003 15:47:49 +0200
Received: (from stolz@localhost)
	by menelaos.informatik.rwth-aachen.de (8.12.6/8.12.6/Submit) id h3PDln0n080840;
	Fri, 25 Apr 2003 15:47:49 +0200 (CEST)
	(envelope-from stolz)
Message-Id: <200304251347.h3PDln0n080840@menelaos.informatik.rwth-aachen.de>
Date: Fri, 25 Apr 2003 15:47:49 +0200 (CEST)
From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Reply-To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: sos@freebsd.org
Subject: SiS 5591 ATA133 controller not supported
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51410
>Category:       kern
>Synopsis:       SiS 5591 ATA133 controller not supported
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 25 06:50:14 PDT 2003
>Closed-Date:    Mon May 05 02:57:06 PDT 2003
>Last-Modified:  Sun Dec 14 03:50:10 PST 2003
>Originator:     Volker Stolz
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Lehrstuhl fr Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.7-STABLE FreeBSD 4.7-STABLE #2: Fri Feb 7 12:48:00 CET 2003 root@menelaos.informatik.rwth-aachen.de:/usr/src/sys/compile/MENELAOS i386


>Description:
The machine has an SiS 5591 onboard ATA133 controller and a disk, a DVD-ROM
and a CDRW attached. It will lock on booting with "Resetting devices..." on
detecting the ATA disk. Disabling DMA in /boot/loader.conf or in BIOS works
around this, but obviously slows down the machine.
Last changes in sys/dev/ata: March 13th.

Booting a new kernel (notice the wrong identification string):

atapci0: <SiS 5591 ATA33 controller> port 0xb400-0xb40f,0xb800-0xb803,0xd000-0xd007,0xd400-0xd403,0xd800-0xd807 irq 5 at device 2.5 on pci0
ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xb400
ata0: mask=03 ostat0=50 ostat2=00
ata0-master: ATAPI 00 00
ata0-slave: ATAPI 00 00
ata0: mask=03 stat0=50 stat1=00
ata0-master: ATA 01 a5
ata0: devices=01
ata0: at 0x1f0 irq 14 on atapci0
ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xb408
ata1: mask=03 ostat0=50 ostat2=50
ata1-master: ATAPI 14 eb
ata1-slave: ATAPI 14 eb
ata1: mask=03 stat0=00 stat1=00
ata1: devices=0c
ata1: at 0x170 irq 15 on atapci0
...
BIOS Geometries:
 0:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors
 0 accounted for
...
ad0: success setting WDMA2 on SiS chip
Creating DISK ad0
*** Resetting devices...*

Booting a kernel containing the patched PCI-ID:

atapci0: <SiS 5591 ATA133 controller> port 0xb400-0xb40f,0xb800-0xb803,0xd000-0xd007,0xd400-0xd403,0xd800-0xd807 irq 5 at device 2.5 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ad0: 78167MB <Maxtor 4R080J0> [158816/16/63] at ata0-master UDMA100
acd0: DVD-ROM <PLAH@B@ @D\^D P\^D\^E\^D000> at ata1-master PIO4
acd1: CD-RW <PLEXTOR CD-R PX-W4012A> at ata1-slave PIO4

Output from pciconf -l:

agp0@pci0:0:0:	class=0x060000 card=0x80811043 chip=0x06461039 rev=0x00 hdr=0x00
pcib2@pci0:1:0:	class=0x060400 card=0x00000000 chip=0x00011039 rev=0x00 hdr=0x01
isab0@pci0:2:0:	class=0x060100 card=0x00000000 chip=0x09621039 rev=0x04 hdr=0x00
atapci0@pci0:2:5:	class=0x01018a card=0x807a1043 chip=0x55131039 rev=0x00 hdr=0x00
ohci0@pci0:3:0:	class=0x0c0310 card=0x807a1043 chip=0x70011039 rev=0x0f hdr=0x00
ohci1@pci0:3:1:	class=0x0c0310 card=0x807a1043 chip=0x70011039 rev=0x0f hdr=0x00
ohci2@pci0:3:2:	class=0x0c0310 card=0x807a1043 chip=0x70011039 rev=0x0f hdr=0x00
none0@pci0:3:3:	class=0x0c0320 card=0x807a1043 chip=0x70021039 rev=0x00 hdr=0x00
pcm0@pci0:5:0:	class=0x040100 card=0x80e21043 chip=0x011113f6 rev=0x10 hdr=0x00
fxp0@pci0:9:0:	class=0x020000 card=0x00408086 chip=0x12298086 rev=0x0c hdr=0x00
amd0@pci0:10:0:	class=0x010000 card=0x00000000 chip=0x20201022 rev=0x10 hdr=0x00
drm0@pci1:0:0:	class=0x030000 card=0x0f84102b chip=0x2527102b rev=0x01 hdr=0x00

>How-To-Repeat:
Track -STABLE, boot new kernel
>Fix:
Weeeeeeell, hardwiring the PCI-ID in sys/dev/ata works, but according
to sos@ could break any minute.
>Release-Note:
>Audit-Trail:

From: Ceri Davies <ceri@FreeBSD.org>
To: FreeBSD Gnats Submit <freebsd-gnats-submit@FreeBSD.org>
Cc:  
Subject: Re: kern/51410: SiS 5591 ATA133 controller not supported
Date: Wed, 30 Apr 2003 22:55:38 +0100

 Adding to audit trail, from misfiled PR 51411.
 
 Message-Id: <200304251350.h3PDoOm4022394@spider.deepcore.dk>
 Date: Fri, 25 Apr 2003 15:50:24 +0200 (CEST)
 From: Soeren Schmidt <sos@spider.deepcore.dk>
 To: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
 In-Reply-To: <200304251347.h3PDln0n080840@menelaos.informatik.rwth-aachen.de>
  
  You need to upgrade to -current for that chip to be supported...
  
  -Sren
 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Mon May 5 02:56:41 PDT 2003 
State-Changed-Why:  
This is fixed in 5.1 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51410 

From: Gleb Smirnoff <glebius@cell.sick.ru>
To: =?koi8-r?Q?S=F8ren?= Schmidt <sos@FreeBSD.org>
Cc: stolz@i2.informatik.rwth-aachen.de
Subject: Re: kern/51410: SiS 5591 ATA133 controller not supported
Date: Tue, 9 Dec 2003 13:31:19 +0300

 On Mon, May 05, 2003 at 02:57:05AM -0700, Sren Schmidt wrote:
 S> Synopsis: SiS 5591 ATA133 controller not supported
 S> 
 S> State-Changed-From-To: open->closed
 S> State-Changed-By: sos
 S> State-Changed-When: Mon May 5 02:56:41 PDT 2003
 S> State-Changed-Why: 
 S> This is fixed in 5.1
 
 Since 4.x branch of FreeBSD is still supported, this PR should
 be reopened. Leaving it closed means that FreeBSD 4.x will not
 work at all on a large number of mainboards based on SiS chipset,
 and FreeBSD team is not going to fix this. These mainboards support
 CPUs > 1 GHz (so they are not trash yet), and are sold all over
 the world.
 
 If Sren says, that hardwiring PCI-ID can break something, than,
 at least, some option like SIS5591_HACK in kernel config must be
 present, which enables this hack.
 
 P.S. I have 3 boxes with this controller onboard, running 4-STABLE
 with uptime > 90 days. I use patch from originator, which
 hardwires PCI-ID.
 
 -- 
 Totus tuus, Glebius.
 GLEBIUS-RIPN GLEB-RIPE
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
>Unformatted:
