🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.port.alpha
Article #14

Re: Possible IDE corruption bug?

#14
From: Rhialto
Date: Wed, 28 Oct 2026 19:00
125 lines
6889 bytes
--fjCd6xP98/N527td
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I used to use a PWS 433a with NetBSD 2.0 and earlier, where the Pyxis
chip set was buggy for the particular cmd ata controller. It seems I
have scsi in the box too, at least that is what my kernel config
suggests.

I had some config lines in my kernel config to nail down the ata
controller. I don't have a dmesg around from 25 years ago but I do have
the kernel config.

=46rom what I remember, first I just added some flags to the ata
controller (disabling dma). To be sure you're getting the right one you
basically "nail down" everything between it and the root. Later I added
a PCI ata controller which wasn't buggy, and I extended the config to
allow that one without the limiting flag option.

I think these lines from my configuration for 2.0 are the relevant ones:

# PCI host bus adapter support
cia0    at      mainbus0                        # for nailing down pciide0
cia*    at      mainbus?                        # just in case there are mo=
re

 PCI bus support
pci0    at      cia0                            # for nailing down pciide0
pci*    at      cia?                            # just in case there are mo=
re

# PCI devices
pciide0 at      pci0 dev 4 function 0           # built-in PCI IDE controll=
er
pciide* at      pci? dev ? function ?           # PCI IDE controllers

# ST506/ESDI/IDE devices
pciide* at      pci? dev ? function ?           # GENERIC pciide driver
cmdide0 at      pci? dev ? function ?           # CMD tech IDE controllers
pdcide* at      pci? dev ? function ?           # Promise IDE controllers

# ATA (IDE) bus support
atabus0 at cmdide0 channel 0
atabus1 at cmdide0 channel 1
atabus* at ata?

# IDE drives
wd*     at      atabus0 drive ? flags 0xffc     # Use PIO mode 4, no DMA
wd*     at      atabus1 drive ? flags 0xffc     # Use PIO mode 4, no DMA
wd*     at      atabus? drive ?                 # Allow DMA on IDE cards

Since you have a cd0 at atapibus0 at atabus1 at cmdide0, you'd need to
nail that down too, in a similar way, to supply the flags argument.

(I think I left pciide0 in only as a fallback driver, "just in case".
You can probably remove it completely)

On Tue 27 Oct 2026 at 15:25:16 -0500, John Goerzen wrote:

> [     1.000000] mainbus0 (root)
> [     1.000000] cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis=
), pass 2
> [     1.000000] cia0: extended capabilities: 0x1<BWEN>
> [     1.000000] cia0: using BWX for PCI config access

There is the Pyxis.

> [     1.000000] cmdide0 at pci0 dev 11 function 0: CMD Technology PCI0646=
 (rev. 0x01)
> [     1.000000] cmdide0: bus-master DMA support present
> [     1.000000] cmdide0: primary channel wired to compatibility mode, cha=
nnel non-independent
> [     1.000000] cmdide0: primary channel interrupting at isa irq 14
> [     1.000000] atabus0 at cmdide0 channel 0
> [     1.000000] cmdide0: secondary channel wired to compatibility mode, c=
hannel non-independent
> [     1.000000] cmdide0: secondary channel interrupting at isa irq 15
> [     1.000000] atabus1 at cmdide0 channel 1

> [     1.000260] scsibus0: waiting 2 seconds for devices to settle...
> [     4.179905] wd0 at atabus0 drive 0
> [     4.219946] wd0: <IBM-DTLA-305040>
> [     4.259527] wd0: drive supports 16-sector PIO transfers, LBA addressi=
ng
> [     4.259527] wd0: 39266 MB, 79780 cyl, 16 head, 63 sec, 512 bytes/sect=
 x 80418240 sectors
> [     4.357637] wd0: 32-bit data port
> [     4.358614] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mod=
e 5 (Ultra/100)
> [     4.358614] wd0(cmdide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)

> [     4.358614] atapibus0 at atabu#s1: 2 targets
> [     4.413303] cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6302B, , 101=
2> cdrom removable
> [     4.507093] cd0: 32-bit data port
> [     4.508029] cd0: drive supports PIO mode 4, DMA mode 2
> [     4.508029] cd0(cmdide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)

-Olaf.
--=20
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

--fjCd6xP98/N527td
Content-Type: application/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iQFPBAEBCAA5FiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmriRi0bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwzAAoJEJmJxkVhw/vTc1AH/3jvZbj/hUZ/Z+TcmX1c
ZT9Mr8R4JVrImOm6i4xg6y9wUQILWxqlKX0ooE5JrdujoemrOKwSitCpG3kaKpvv
45uezU4VnjDoa3262seXhsoiLezZpWe0Bf9e03mKiN+RUA9eW6YktBvAEKBpqG3J
AOdVrW8hbzEXtyWN1M13QJjipRaNgEbtLgcdrUn0xDryMIGkbf6RAXyQOZNMMZfc
89rjeNptb49grJZW0J7eH9/y3RrEjLOgocC2xo+liVjNVs2B1WwxIVRacauOSGjQ
rW3tB/05mQKKneSDNcu8TttdznBdC9iwvRQ5DmwUkMM6jZniP2L8/GbUS22kUGey
X5E=
=LFUo
-----END PGP SIGNATURE-----

--fjCd6xP98/N527td--

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <auJGLVkNpbz4t0yL@falu.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <877bj2opqr.fsf@complete.org> <>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Rhialto <rhialto@falu.nl>
Newsgroups: muc.lists.netbsd.port.alpha
Subject: Re: Possible IDE corruption bug?
Date: Wed, 28 Oct 2026 20:00:02 +0100
Organization: Newsgate at muc.de e.V.
Sender: port-alpha-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <auJGLVkNpbz4t0yL@falu.nl>
References: <877bj2opqr.fsf@complete.org> <>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="fjCd6xP98/N527td"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="56353"; mail-complaints-to="news-admin@muc.de"
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (2048-bit key) header.d=falu.nl
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=falu.nl; s=mail;
	t=1793214003; bh=av/IC3uMM0f1zQxOO7cHa28MjQK7kEfLkyDbu0/oqDU=;
	h=Date:From:To:Cc:Subject:Message-ID:Content-Type:Date:From:To:Cc:
	 Subject:Message-ID:Content-Type;
	b=ZZOcxDclJb1TCxgaZaP2I0TIXJwUZQBxo3Wf5mZe0CUUuK7DMKWxcJk04exYL87tB
	 HwgQI75zE6/kHlStOcz1bqB7NLDBoKDnBV2FB6foyLTsdBstFkFXzHIP3EblSEDUQN
	 kPavE2R61tqmU82qk+ZtwI5FzYj8WBh28IBR8vuBQRWsYL7ZpbSmK5d+lP6dxCA7mg
	 2lRjuVdaGhCf2scmfFcvYZANO965jR2znK+VJCXUqw2XCm4vsRmgx1QZMBwEWdafy3
	 FMf+uTSuVTp6z6mOT7/b6SuSrQnEzCf2JAM5T53li5dQe4qyNYAf0j3ifZo88uDWNt
	 y+EzTv3UESbiQ==
Content-Disposition: inline
In-Reply-To: <877bj2opqr.fsf@complete.org>
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes