Discussion:
timeout on siside0
Roy Bixler
2014-05-20 00:11:14 UTC
Permalink
Hi:

I am new to this list but not to NetBSD. I tried NetBSD long ago when
it was at v. 1.6. I have come back to it in part because I have some
old hardware and prefer a lighter OS and in part because I do not like
the recent trend in the Linux world towards replacing the init system
with something like systemd.

I came back to NetBSD with the 6.x series and my first few
installations of it went flawlessly. However, I came upon a
configuration where I could not install it. It is a dated PC with a
SiS chipset. What happens is that the kernel boots but I get timeout
errors as soon as it tries to mount the filesystem for the installer.
I don't think that this is a hardware problem per se, since I was able
to install Debian wheezy and OpenBSD v. 5.5 on this system. I also
successully used the FreeBSD v. 10 LiveCD. This gives me hope that I
can also fix the problem in NetBSD.

I wrote down what I think are the relevant boot messages:

siside0 at pci0 dev 2 function 5
siside0: Silicon Integrated Systems 96X UDMA6746 IDE controller (rev. 0x00)
siside0: primary channel interrupting at ioapic0 pin 14
atabus0 at siside0 channel 0
siside0: seondary channel interrupting at ioapic0 pin 15
atabus1 at siside0 channel 1

and then:

siside0:0:1:0: lost interrupt
type atapi tc_bcount: 2048 tc_skip: 0
siside0: bus master DMA error: missing interrupt, status=0x61
siside0: device timeout, c_hcount=2048, c_skip=0

I also saved the boot messages for the FreeBSD and OpenBSD
installations, in case those are helpful. (The FreeBSD boot messages
in particular seem to be detailed.) If there are more NetBSD boot
messages I should write down, then I could do that too. Does anyone
have ideas on steps I could take to get the installer to boot or to
debug this problem?
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
Roy Bixler
2014-05-21 11:25:37 UTC
Permalink
Post by Roy Bixler
I am new to this list but not to NetBSD. I tried NetBSD long ago when
it was at v. 1.6. I have come back to it in part because I have some
old hardware and prefer a lighter OS and in part because I do not like
the recent trend in the Linux world towards replacing the init system
with something like systemd.
I came back to NetBSD with the 6.x series and my first few
installations of it went flawlessly. However, I came upon a
configuration where I could not install it. It is a dated PC with a
SiS chipset.
Just to follow up, I got the installation to go by setting up a PXE
boot. The system boots up just fine with NetBSD 6.1.4 afterwards.
I also took a look at the bug tracking system and see that there are
still some old, unresolved bugs regarding DMA timeouts with SiS IDE.
I suppose I could add to one of those tickets when I have some time.
It would still be nice to be able to use the CD-ROM as an installation
media on this system.
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
Roy Bixler
2014-05-22 00:22:38 UTC
Permalink
Post by Roy Bixler
Post by Roy Bixler
I am new to this list but not to NetBSD. I tried NetBSD long ago when
it was at v. 1.6. I have come back to it in part because I have some
old hardware and prefer a lighter OS and in part because I do not like
the recent trend in the Linux world towards replacing the init system
with something like systemd.
I came back to NetBSD with the 6.x series and my first few
installations of it went flawlessly. However, I came upon a
configuration where I could not install it. It is a dated PC with a
SiS chipset.
Just to follow up, I got the installation to go by setting up a PXE
boot. The system boots up just fine with NetBSD 6.1.4 afterwards.
I also took a look at the bug tracking system and see that there are
still some old, unresolved bugs regarding DMA timeouts with SiS IDE.
I suppose I could add to one of those tickets when I have some time.
It would still be nice to be able to use the CD-ROM as an installation
media on this system.
Out of curiosity are you able to mount and copy the files off the CD from
the installed system?
I didn't expect that this would work and, after trying, I confirmed my
suspicion. After the initial boot, the system wouldn't recognise that
there was a CD-ROM in the drive. After reloading the CD, I was able
to mount it, but then I quickly got a read error when trying a "du"
command on the filesystem.
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
Roy Bixler
2014-05-22 11:49:30 UTC
Permalink
Post by Roy Bixler
Post by Roy Bixler
Post by Roy Bixler
I came back to NetBSD with the 6.x series and my first few
installations of it went flawlessly. However, I came upon a
configuration where I could not install it. It is a dated PC with a
SiS chipset.
Just to follow up, I got the installation to go by setting up a PXE
boot. The system boots up just fine with NetBSD 6.1.4 afterwards.
I also took a look at the bug tracking system and see that there are
still some old, unresolved bugs regarding DMA timeouts with SiS IDE.
I suppose I could add to one of those tickets when I have some time.
It would still be nice to be able to use the CD-ROM as an installation
media on this system.
Out of curiosity are you able to mount and copy the files off the CD from
the installed system?
I didn't expect that this would work and, after trying, I confirmed my
suspicion. After the initial boot, the system wouldn't recognise that
there was a CD-ROM in the drive. After reloading the CD, I was able
to mount it, but then I quickly got a read error when trying a "du"
command on the filesystem.
Since I have the system installed, at least now I can give a precise
"dmesg" output. I'll include it below. As you will see, this system
has a primary and secondary IDE bus. The primary has 2 disks
attached. The secondary has the CD drive as master and another drive
as slave. The system is installed on the primary master drive. I
also tried the primary slave drive and that works. I made a limited
test on the drive on the secondary slave and it seems to work, so it
looks like only the CD drive (secondary master) is throwing errors.

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.

NetBSD 6.1.4 (GENERIC)
total memory = 511 MB
avail memory = 490 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
ECS M848A (5.0)
mainbus0 (root)
cpu0 at mainbus0 apid 0: AMD Athlon(tm) XP, id 0x681
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0: Intel ACPICA 20110623
acpi0: X/RSDT: OemId <AMIINT,SiS740XX,00001000>, AslId <MSFT,0100000b>
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
SYSR (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
npx1 at acpi0 (COPR, PNP0C04): io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
pckbc1 at acpi0 (PS2M, PNP0F03) (aux port): irq 12
pckbc2 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
FDC0 (PNP0700) at acpi0 not configured
UAR1 (PNP0501) at acpi0 not configured
UAR2 (PNP0501) at acpi0 not configured
ECP (PNP0401) at acpi0 not configured
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
apm0 at acpi0: Power Management spec V1.2
attimer1: attached to pcppi1
pckbd0 at pckbc2 (kbd slot)
pckbc2: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc2 (aux slot)
pckbc2: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 0x1039 product 0x0746 (rev. 0x10)
agp0 at pchb0: aperture at 0xd0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0: vendor 0x1039 product 0x0002 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x4966 (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
radeondrm0 at vga1: ATI Radeon If RV250 9000
radeondrm0: AGP at 0xd0000000 128MB
radeondrm0: Initialized radeon 1.29.0 20080613
vendor 0x1002 product 0x496e (miscellaneous display, revision 0x01) at pci1 dev 0 function 1 not configured
pcib0 at pci0 dev 2 function 0: vendor 0x1039 product 0x0008 (rev. 0x25)
siside0 at pci0 dev 2 function 5
siside0: Silicon Integrated Systems 96X UDMA6746 IDE controller (rev. 0x00)
siside0: bus-master DMA support present
siside0: primary channel wired to compatibility mode
siside0: primary channel interrupting at ioapic0 pin 14
atabus0 at siside0 channel 0
siside0: secondary channel wired to compatibility mode
siside0: secondary channel interrupting at ioapic0 pin 15
atabus1 at siside0 channel 1
auich0 at pci0 dev 2 function 7: SiS 7012 AC-97 Audio
auich0: interrupting at ioapic0 pin 18
auich0: ac97: Avance Logic ALC655 codec; no 3D stereo
auich0: ac97: ext id 0x9c4<AC97_23,LDAC,SDAC,CDAC,SPDIF>
ohci0 at pci0 dev 3 function 0: vendor 0x1039 product 0x7001 (rev. 0x0f)
ohci0: interrupting at ioapic0 pin 20
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 3 function 1: vendor 0x1039 product 0x7001 (rev. 0x0f)
ohci1: interrupting at ioapic0 pin 21
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 3 function 2: vendor 0x1039 product 0x7002 (rev. 0x00)
ehci0: interrupting at ioapic0 pin 23
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
sip0 at pci0 dev 4 function 0: SiS 900 10/100 Ethernet, rev 0x91
sip0: interrupting at ioapic0 pin 19
sip0: Ethernet address 00:19:21:71:73:75
ukphy0 at sip0 phy 1: OUI 0x0002c6, model 0x0032, rev. 10
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
isapnp0 at isa0 port 0x279
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: HLT, lat 0 us, pow 0 mW
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
audio0 at auich0: full duplex, playback, capture, independent
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
uhub0 at usb0: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
uhub1 at usb1: vendor 0x1039 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
uhub2 at usb2: vendor 0x1039 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
wd0 at atabus0 drive 0
wd0: <ST310210A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 9729 MB, 19767 cyl, 16 head, 63 sec, 512 bytes/sect x 19925880 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd1 at atabus0 drive 1
wd1: <WDC WD400BB-00GFA0>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 38166 MB, 77545 cyl, 16 head, 63 sec, 512 bytes/sect x 78165360 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(siside0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd1(siside0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HP DVD Writer 635d, 4265210056, JPS3> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd2 at atabus1 drive 1
wd2: <QUANTUM FIREBALL CR8.4A>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 8063 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
cd0(siside0:1:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd2(siside0:1:1): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
Kernelized RAIDframe activated
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
David Brownlee
2014-05-22 15:44:23 UTC
Permalink
Post by Roy Bixler
Since I have the system installed, at least now I can give a precise
"dmesg" output. I'll include it below. As you will see, this system
has a primary and secondary IDE bus. The primary has 2 disks
attached. The secondary has the CD drive as master and another drive
as slave. The system is installed on the primary master drive. I
also tried the primary slave drive and that works. I made a limited
test on the drive on the secondary slave and it seems to work, so it
looks like only the CD drive (secondary master) is throwing errors.
Curious thoughts

- does the CD work as the primary/secondary slave, or as the only device on
the secondary channel?
- the cd reports using UDMA4 ("cd0(siside0:1:0): using PIO mode 4,
Ultra-DMA mode 4 (Ultra/66) (using DMA)"). It might be worth test booting
another OS and seeing if it attaches the CD differently...
Roy Bixler
2014-05-22 17:25:46 UTC
Permalink
Post by David Brownlee
Post by Roy Bixler
Since I have the system installed, at least now I can give a precise
"dmesg" output. I'll include it below. As you will see, this system
has a primary and secondary IDE bus. The primary has 2 disks
attached. The secondary has the CD drive as master and another drive
as slave. The system is installed on the primary master drive. I
also tried the primary slave drive and that works. I made a limited
test on the drive on the secondary slave and it seems to work, so it
looks like only the CD drive (secondary master) is throwing errors.
Curious thoughts
- does the CD work as the primary/secondary slave, or as the only device on
the secondary channel?
- the cd reports using UDMA4 ("cd0(siside0:1:0): using PIO mode 4,
Ultra-DMA mode 4 (Ultra/66) (using DMA)"). It might be worth test booting
another OS and seeing if it attaches the CD differently...
I'll address your second point, since I have already succeeded in
booting other operating systems* from the CD on that system. Here is
the 'dmesg' output of the FreeBSD v. 10 LiveCD boot:

Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014
***@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
CPU: AMD Athlon(tm) XP 1800+ (1533.42-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x681 Family = 0x6 Model = 0x8 Stepping = 1
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
real memory = 536870912 (512 MB)
avail memory = 502640640 (479 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <AMIINT SiS740XX>
ioapic0: Changing APIC ID to 2
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
random: <Software, Yarrow> initialized
acpi0: <AMIINT SiS740XX> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: dfe00000 vs dec00000
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 746 host to AGP bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xb800-0xb8ff mem 0xc8000000-0xcbffffff,0xcfef0000-0xcfefffff irq 16 at device 0.0 on pci1
vgapci0: Boot video device
vgapci1: <VGA-compatible display> mem 0xc4000000-0xc7ffffff,0xcfee0000-0xcfeeffff at device 0.1 on pci1
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pcm0: <SiS 7012> port 0xdc00-0xdcff,0xd800-0xd87f irq 18 at device 2.7 on pci0
pcm0: <Avance Logic ALC655 AC97 Codec>
ohci0: <SiS 5571 USB controller> mem 0xcfffe000-0xcfffefff irq 20 at device 3.0 on pci0
usbus0 on ohci0
ohci1: <SiS 5571 USB controller> mem 0xcffff000-0xcfffffff irq 21 at device 3.1 on pci0
usbus1 on ohci1
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xcffdf000-0xcffdffff irq 23 at device 3.2 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci0
sis0: <SiS 900 10/100BaseTX> port 0xd400-0xd4ff mem 0xcffdc000-0xcffdcfff irq 19 at device 4.0 on pci0
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:19:21:71:73:75
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcafff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
ugen1.1: <SiS> at usbus1
uhub0: <SiS OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <SiS> at usbus0
uhub1: <SiS OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen2.1: <SiS> at usbus2
uhub2: <SiS EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub0: 3 ports with 3 removable, self powered
uhub1: 3 ports with 3 removable, self powered
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <ST310210A 3.17> ATA-4 device
ada0: Serial Number 3CM0R3P6
ada0: 66.700MB/s transfers (UDMA4, PIO 8192bytes)
ada0: 9729MB (19925880 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad0
ada1 at ata0 bus 0 scbus0 target 1 lun 0
ada1: <WDC WD400BB-00GFA0 09.01B09> ATA-5 device
ada1: Serial Number WD-WMAKA1554908
ada1: 100.000MB/s transfers (UDMA5, PIO 8192bytes)
ada1: 38166MB (78165360 512 byte sectors: 16H 255S/T 16383C)
ada1: Previously was known as ad1
ada2 at ata1 bus 0 scbus1 target 1 lun 0
ada2: <QUANTUM FIREBALL CR8.4A A5U.0200> ATA-4 device
ada2: Serial Number 928911710197
ada2: 66.700MB/s transfers (UDMA4, PIO 8192bytes)
ada2: 8063MB (16514064 512 byte sectors: 16H 63S/T 16383C)
ada2: Previously was known as ad3
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <HP DVD Writer 635d JPS3> Removable CD-ROM SCSI-0 device
cd0: Serial Number 4265210056
cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [288725 x 2048 byte records]
Timecounter "TSC" frequency 1533421211 Hz quality 800
uhub2: 6 ports with 6 removable, self powered

* - Debian GNU/Linux wheezy, OpenBSD v. 5.5, FreeBSD v. 10
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
David Brownlee
2014-05-24 22:06:43 UTC
Permalink
Post by Roy Bixler
Post by David Brownlee
Post by Roy Bixler
Since I have the system installed, at least now I can give a precise
"dmesg" output. I'll include it below. As you will see, this system
has a primary and secondary IDE bus. The primary has 2 disks
attached. The secondary has the CD drive as master and another drive
as slave. The system is installed on the primary master drive. I
also tried the primary slave drive and that works. I made a limited
test on the drive on the secondary slave and it seems to work, so it
looks like only the CD drive (secondary master) is throwing errors.
Curious thoughts
- does the CD work as the primary/secondary slave, or as the only device
on
Post by David Brownlee
the secondary channel?
- the cd reports using UDMA4 ("cd0(siside0:1:0): using PIO mode 4,
Ultra-DMA mode 4 (Ultra/66) (using DMA)"). It might be worth test booting
another OS and seeing if it attaches the CD differently...
I'll address your second point, since I have already succeeded in
booting other operating systems* from the CD on that system. Here is
Copyright (c) 1992-2014 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
CPU: AMD Athlon(tm) XP 1800+ (1533.42-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x681 Family = 0x6 Model = 0x8 Stepping = 1
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
AMD Features=0xc0400800<SYSCALL,MMX+,3DNow!+,3DNow!>
real memory = 536870912 (512 MB)
avail memory = 502640640 (479 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <AMIINT SiS740XX>
ioapic0: Changing APIC ID to 2
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
random: <Software, Yarrow> initialized
acpi0: <AMIINT SiS740XX> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: Length mismatch for 3 range: dfe00000 vs dec00000
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 746 host to AGP bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xb800-0xb8ff mem
0xc8000000-0xcbffffff,0xcfef0000-0xcfefffff irq 16 at device 0.0 on pci1
vgapci0: Boot video device
vgapci1: <VGA-compatible display> mem
0xc4000000-0xc7ffffff,0xcfee0000-0xcfeeffff at device 0.1 on pci1
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 WDMA2 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
pcm0: <SiS 7012> port 0xdc00-0xdcff,0xd800-0xd87f irq 18 at device 2.7 on pci0
pcm0: <Avance Logic ALC655 AC97 Codec>
ohci0: <SiS 5571 USB controller> mem 0xcfffe000-0xcfffefff irq 20 at device 3.0 on pci0
usbus0 on ohci0
ohci1: <SiS 5571 USB controller> mem 0xcffff000-0xcfffffff irq 21 at device 3.1 on pci0
usbus1 on ohci1
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xcffdf000-0xcffdffff irq
23 at device 3.2 on pci0
usbus2: EHCI version 1.0
usbus2 on ehci0
sis0: <SiS 900 10/100BaseTX> port 0xd400-0xd4ff mem 0xcffdc000-0xcffdcfff
irq 19 at device 4.0 on pci0
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:19:21:71:73:75
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
ppc0: <Parallel port> port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcafff pnpid ORM0000 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounters tick every 1.000 msec
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
ugen1.1: <SiS> at usbus1
uhub0: <SiS OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <SiS> at usbus0
uhub1: <SiS OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen2.1: <SiS> at usbus2
uhub2: <SiS EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub0: 3 ports with 3 removable, self powered
uhub1: 3 ports with 3 removable, self powered
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <ST310210A 3.17> ATA-4 device
ada0: Serial Number 3CM0R3P6
ada0: 66.700MB/s transfers (UDMA4, PIO 8192bytes)
ada0: 9729MB (19925880 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad0
ada1 at ata0 bus 0 scbus0 target 1 lun 0
ada1: <WDC WD400BB-00GFA0 09.01B09> ATA-5 device
ada1: Serial Number WD-WMAKA1554908
ada1: 100.000MB/s transfers (UDMA5, PIO 8192bytes)
ada1: 38166MB (78165360 512 byte sectors: 16H 255S/T 16383C)
ada1: Previously was known as ad1
ada2 at ata1 bus 0 scbus1 target 1 lun 0
ada2: <QUANTUM FIREBALL CR8.4A A5U.0200> ATA-4 device
ada2: Serial Number 928911710197
ada2: 66.700MB/s transfers (UDMA4, PIO 8192bytes)
ada2: 8063MB (16514064 512 byte sectors: 16H 63S/T 16383C)
ada2: Previously was known as ad3
cd0 at ata1 bus 0 scbus1 target 0 lun 0
cd0: <HP DVD Writer 635d JPS3> Removable CD-ROM SCSI-0 device
cd0: Serial Number 4265210056
cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [288725 x 2048 byte records]
Timecounter "TSC" frequency 1533421211 Hz quality 800
uhub2: 6 ports with 6 removable, self powered
So FreeBSD seems to indicate is running the CD at full speed... well, it
was worth a check.

Interestingly FreeBSD identifies it as "SiS 962/963 WDMA2 controller" and
treats it as "TYPE_133NEW" - generally found on 661GX/761GX chipsets
http://fxr.watson.org/fxr/source/dev/ata/chipsets/ata-sis.c

while NetBSD calls it a "746 IDE controller" of "TYPE_SOUTH" with
integrated southbridge
http://nxr.netbsd.org/xref/src/sys/dev/pci/siside.c

which implies different setup config, which could be affecting things

Are you able to confirm which base chipset the machine has? 746, 761 etc?
Roy Bixler
2014-05-27 19:25:41 UTC
Permalink
Post by David Brownlee
Post by Roy Bixler
atapci0: <SiS 962/963 WDMA2 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
So FreeBSD seems to indicate is running the CD at full speed... well, it
was worth a check.
Interestingly FreeBSD identifies it as "SiS 962/963 WDMA2 controller" and
treats it as "TYPE_133NEW" - generally found on 661GX/761GX chipsets
http://fxr.watson.org/fxr/source/dev/ata/chipsets/ata-sis.c
while NetBSD calls it a "746 IDE controller" of "TYPE_SOUTH" with
integrated southbridge
http://nxr.netbsd.org/xref/src/sys/dev/pci/siside.c
which implies different setup config, which could be affecting things
Are you able to confirm which base chipset the machine has? 746, 761 etc?
From the OpenBSD boot messages, it looks like it's a 746 chipset.
Here's a snippet:

pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "SiS 746 PCI" rev 0x10
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xd0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0 "SiS 86C202 AGP" rev 0x00
pci1 at ppb0 bus 1

pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x00: 746: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST310210A>
wd0: 16-sector PIO, LBA, 9729MB, 19925880 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD400BB-00GFA0>
wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HP, DVD Writer 635d, JPS3> ATAPI 5/cdrom removable
wd2 at pciide0 channel 1 drive 1: <QUANTUM FIREBALL CR8.4A>
wd2: 16-sector PIO, LBA, 8063MB, 16514064 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
Roy Bixler
2014-05-28 01:07:24 UTC
Permalink
Post by Roy Bixler
Post by David Brownlee
Post by Roy Bixler
atapci0: <SiS 962/963 WDMA2 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
So FreeBSD seems to indicate is running the CD at full speed... well, it
was worth a check.
Interestingly FreeBSD identifies it as "SiS 962/963 WDMA2 controller" and
treats it as "TYPE_133NEW" - generally found on 661GX/761GX chipsets
http://fxr.watson.org/fxr/source/dev/ata/chipsets/ata-sis.c
while NetBSD calls it a "746 IDE controller" of "TYPE_SOUTH" with
integrated southbridge
http://nxr.netbsd.org/xref/src/sys/dev/pci/siside.c
which implies different setup config, which could be affecting things
Are you able to confirm which base chipset the machine has? 746, 761 etc?
From the OpenBSD boot messages, it looks like it's a 746 chipset.
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "SiS 746 PCI" rev 0x10
sisagp0 at pchb0
agp0 at sisagp0: aperture at 0xd0000000, size 0x8000000
ppb0 at pci0 dev 1 function 0 "SiS 86C202 AGP" rev 0x00
pci1 at ppb0 bus 1
pciide0 at pci0 dev 2 function 5 "SiS 5513 EIDE" rev 0x00: 746: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST310210A>
wd0: 16-sector PIO, LBA, 9729MB, 19925880 sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD400BB-00GFA0>
wd1: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HP, DVD Writer 635d, JPS3> ATAPI 5/cdrom removable
wd2 at pciide0 channel 1 drive 1: <QUANTUM FIREBALL CR8.4A>
wd2: 16-sector PIO, LBA, 8063MB, 16514064 sectors
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
wd2(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
Looking further, I see where different operating systems give
different answers as to the chipset. Here are some results from a
Knoppix (spruced up Debian GNU/Linux) live-CD:

[ 0.896228] pata_sis 0000:00:02.5: version 0.5.2
[ 0.896301] pata_sis 0000:00:02.5: SiS 962/963 MuTIOL IDE UDMA133 controller
[ 0.897572] scsi0 : pata_sis
[ 0.897900] scsi1 : pata_sis
[ 0.899036] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[ 0.899042] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15

and then:

[ 1.063598] ata1.00: FORCE: horkage modified (noncq)
[ 1.063611] ata1.00: ATA-4: ST310210A, 3.17, max UDMA/66
[ 1.063617] ata1.00: 19925880 sectors, multi 16: LBA
[ 1.063627] ata1.01: FORCE: horkage modified (noncq)
[ 1.064735] ata1.01: ATA-5: WDC WD400BB-00GFA0, 09.01B09, max UDMA/100
[ 1.064741] ata1.01: 78165360 sectors, multi 16: LBA
[ 1.076876] ata1.00: configured for UDMA/66
[ 1.091287] ata1.01: configured for UDMA/100
[ 1.091605] scsi 0:0:0:0: Direct-Access ATA ST310210A 3.17 PQ: 0 ANSI: 5
[ 1.092157] sd 0:0:0:0: [sda] 19925880 512-byte logical blocks: (10.2 GB/9.50 GiB)
[ 1.092258] sd 0:0:0:0: [sda] Write Protect is off
[ 1.092264] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.092308] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.093185] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1.114449] sda: sda1
[ 1.114451] sda1: <netbsd: >
[ 1.114676] scsi 0:0:1:0: Direct-Access ATA WDC WD400BB-00GF 09.0 PQ: 0 ANSI: 5
[ 1.115351] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.115680] sd 0:0:1:0: [sdb] 78165360 512-byte logical blocks: (40.0 GB/37.2 GiB)
[ 1.115775] sd 0:0:1:0: [sdb] Write Protect is off
[ 1.115782] sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.115824] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.116625] sd 0:0:1:0: Attached scsi generic sg1 type 0
[ 1.144345] sdb: sdb1 sdb2
[ 1.145121] sd 0:0:1:0: [sdb] Attached SCSI disk
[ 1.193865] psmouse serio1: hgpk: ID: 10 00 64
[ 1.283578] ata2.00: FORCE: horkage modified (noncq)
[ 1.283590] ata2.00: ATAPI: HP DVD Writer 635d, JPS3, max UDMA/66
[ 1.283600] ata2.01: FORCE: horkage modified (noncq)
[ 1.283826] ata2.01: ATA-4: QUANTUM FIREBALL CR8.4A, A5U.0200, max UDMA/66
[ 1.283831] ata2.01: 16514064 sectors, multi 16: LBA
[ 1.296907] ata2.00: configured for UDMA/66
[ 1.310393] ata2.01: configured for UDMA/66
[ 1.311814] scsi 1:0:0:0: CD-ROM HP DVD Writer 635d JPS3 PQ: 0 ANSI: 5
[ 1.314228] sr0: scsi3-mmc drive: 62x/62x writer cd/rw xa/form2 cdda tray
[ 1.314235] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.314563] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 1.314913] sr 1:0:0:0: Attached scsi generic sg2 type 5
[ 1.318594] scsi 1:0:1:0: Direct-Access ATA QUANTUM FIREBALL A5U. PQ: 0 ANSI: 5
[ 1.319112] sd 1:0:1:0: [sdc] 16514064 512-byte logical blocks: (8.45 GB/7.87 GiB)
[ 1.319214] sd 1:0:1:0: [sdc] Write Protect is off
[ 1.319220] sd 1:0:1:0: [sdc] Mode Sense: 00 3a 00 00
[ 1.319265] sd 1:0:1:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.320197] sd 1:0:1:0: Attached scsi generic sg3 type 0
[ 1.325582] sdc: sdc1
[ 1.326195] sd 1:0:1:0: [sdc] Attached SCSI disk

I guess by "horkage" they mean "borkage" but the sense I get is that
they are working around some known hardware or BIOS quirk.

Then I also tried fiddling with the NetBSD kernel and I got some
results that look promising based on the following patch:

--- siside.c.orig 2014-05-27 15:49:34.000000000 -0500
+++ siside.c 2014-05-27 19:21:05.000000000 -0500
@@ -158,7 +158,7 @@
{PCI_PRODUCT_SIS_740, 0x00, 5, "740", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_741, 0x00, 5, "741", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_745, 0x00, 5, "745", SIS_TYPE_100NEW},
- {PCI_PRODUCT_SIS_746, 0x00, 6, "746", SIS_TYPE_SOUTH},
+ {PCI_PRODUCT_SIS_746, 0x00, 6, "746", SIS_TYPE_100NEW},
{PCI_PRODUCT_SIS_748, 0x00, 6, "748", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_750, 0x00, 6, "750", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_751, 0x00, 6, "751", SIS_TYPE_SOUTH},

That is, with this patch, I was able to mount a CD, do commands like
the following:

mount -rt cd9660 /dev/cd0a /mnt
find /mnt -type f |xargs wc

and get some ballpark correct results without any visible errors or
unexpected aborts (i.e. read errors without a corresponding error in
the "dmesg" output.) The other SIS_TYPEs didn't work out so well
(i.e. either unexpected aborts or the CD drive was not detected at
all.)
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
David Brownlee
2014-05-21 17:10:03 UTC
Permalink
Post by Roy Bixler
Post by Roy Bixler
I am new to this list but not to NetBSD. I tried NetBSD long ago when
it was at v. 1.6. I have come back to it in part because I have some
old hardware and prefer a lighter OS and in part because I do not like
the recent trend in the Linux world towards replacing the init system
with something like systemd.
I came back to NetBSD with the 6.x series and my first few
installations of it went flawlessly. However, I came upon a
configuration where I could not install it. It is a dated PC with a
SiS chipset.
Just to follow up, I got the installation to go by setting up a PXE
boot. The system boots up just fine with NetBSD 6.1.4 afterwards.
I also took a look at the bug tracking system and see that there are
still some old, unresolved bugs regarding DMA timeouts with SiS IDE.
I suppose I could add to one of those tickets when I have some time.
It would still be nice to be able to use the CD-ROM as an installation
media on this system.
Out of curiosity are you able to mount and copy the files off the CD from
the installed system?
Roy Bixler
2014-06-05 12:06:37 UTC
Permalink
I was able to come up with a solution to my problem. I filed a bug
report; kern/48858. The following patches work for me. I mentioned
the siside.c patch elsewhere in this thread and the pciide_sis_reg.h
patch is just copying the timing numbers from FreeBSD 10 source code
(since I'd made the observations that FreeBSD 10 works for me and that
there is a comment in the NetBSD source indicating that the timing
numbers came "mostly" from FreeBSD.) I'd appreciate it if anyone can
test this patch or offer feedback. Thanks.

--- pciide_sis_reg.h.orig 2009-10-19 18:41:16.000000000 +0000
+++ pciide_sis_reg.h 2014-06-02 18:00:46.000000000 +0000
@@ -108,4 +108,5 @@
static const u_int32_t sis_dma133new_tim[] __unused =
{0x22196008, 0x0c0a3008, 0x05093008};
static const u_int32_t sis_udma133new_tim[] __unused =
- {0x9f4, 0x64a, 0x474, 0x254, 0x234, 0x224, 0x214};
+ /* {0x9f4, 0x64a, 0x474, 0x254, 0x234, 0x224, 0x214}; */
+ {0x9fc, 0x6ac, 0x47c, 0x25c, 0x23c, 0x22c, 0x21c};

--- siside.c.orig 2014-05-27 15:49:34.000000000 -0500
+++ siside.c 2014-05-27 19:21:05.000000000 -0500
@@ -158,7 +158,7 @@
{PCI_PRODUCT_SIS_740, 0x00, 5, "740", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_741, 0x00, 5, "741", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_745, 0x00, 5, "745", SIS_TYPE_100NEW},
- {PCI_PRODUCT_SIS_746, 0x00, 6, "746", SIS_TYPE_SOUTH},
+ {PCI_PRODUCT_SIS_746, 0x00, 6, "746", SIS_TYPE_100NEW},
{PCI_PRODUCT_SIS_748, 0x00, 6, "748", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_750, 0x00, 6, "750", SIS_TYPE_SOUTH},
{PCI_PRODUCT_SIS_751, 0x00, 6, "751", SIS_TYPE_SOUTH},
--
Roy Bixler <***@nyx.net>
"The fundamental principle of science, the definition almost, is this: the
sole test of the validity of any idea is experiment."
-- Richard P. Feynman
Loading...