🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Possible IDE corruption bug?

#2
From: Jeffrey S. Worley
Date: Tue, 27 Oct 2026 04:57
161 lines
9903 bytes
The onboard ata driver is broken on NetBSD 11.  It is moribund on 10.1
and below.  It is unfenced, Alpha requires memory barriers for ordered
IO, the coder did not get that memo.

I boot my Alpha from the onboard ATA controller just to get kernel into
memory, then pivot to an SI3124 SATA controller.  It runs a
100meg@sec!, and is bulletproof.

If you need to keep the onboard ata controller as your primary disk,
use NetBSD 9.2.  That is the latest version on which the ATA controller
is useable for such and the last version with which I have succeeded in
running a local X session.

You can sure email me directly.  Also you can check "Technoid Mutant"'s
DMESG post at https://dmesgd.nycbug.org/dmesgd?do=view&id=9246

That list is my XP900 (ev6@466mhz).

My SATA solution way outperforms any SCSI solution available, is cheap
as dirt, uses commonly available modern ssd's...  It is not bootable.

What you can do is compile your kernel to DISABLE the IDE controller,
at least the Primary.  The SRM doesn't know BSD is ignorant of the
controller and will dutifully bootstrap the kernel in from it, kernel
will look for the first available controller and drive, find the
Sil3124 and assign it sd0 and continue the boot as though it had
actually loaded the kernel from there.  It is a split-boot, like a
netboot but faster and entirely local.  To get kernel in, I use a cheap
sata ssd with pata adapter.  The problem with the controller is
entirely in the BSD's, and so it doesn't really matter what you use,
even a physical cd.

OpenBSD is no better.  The driver is shared code and is horrible.  When
you get a 3124 controller in, you'll see how drivers make all the
difference.  The combination of a properly fenced driver and a well-
implemented busmaster really shines on this machine.

I would recommend the PCIx version of the controller, not knowing which
alpha you have...

The only other options are scsi.  I've installed a U320 scsi card and a
Bluescsi Ultra-Wide, getting a good 18meg@sec, but that compares not at
all to the Sil3124's 124meg@sec... I've gotten 40meg@sec with a real
fast-wide scsi drive, but that's for linear reads.  In a race, the
physical disk has you in the straights but gets clobbered in the
curves.  SSD has zero latency and disk's is comparatively glacial, so
even there the scsi emulator wins.

NEC USB is useable on Alpha, and the Intel Dual 100tx card is golden.

You can message me personally on facebook (I'm my own name), or in
email or here.  I'll be glad to help.

best,

jeff

On Mon, 2026-10-26 at 19:39 -0500, John Goerzen wrote:
> Hi folks,
> 
> I have an AlphaPC 164LX (600MHz 21164a, 256MB RAM).
> 
> This machine ran Linux many years ago, and I'm now repurposing it for
> NetBSD.
> 
> I downloaded the NetBSD 11.0 alpha ISO.  I successfully booted from
> it
> (boot dqb0 at SRM).  I partitioned the drive, selected "Full
> installation without X11", but I got the attached screen.
> 
> I went through, and HTTP installation from cdn.netbsd.org (via my
> Tulip
> NIC) was fine.  However, I didn't trust an un-authenticated download,
> so
> I tried it again.
> 
> Same thing.
> 
> This time, I opened a shell in the installer environment.  There were
> no
> I/O errors in dmesg.  I could mount the CD fine (I made a directory
> at
> /mnt3) and tried pointing the installer at that.  Same thing again!
> 
> I mounted the ISO on my file server and started a HTTP server over
> it,
> and pointed the installer at that.  It worked fine.
> 
> I verified the SHA512SUM of the downloaded ISO.  It matches.
> 
> So on my installed system, I again mounted the CD and sent into
> /cdrom/alpha/binary/sets and ran sha512 -c SHA512.
> 
> Now -- almost all of them are failing!
> 
> I tried copying xetc.tgz to my home directory.  I can scp the same
> file
> from another box into there from another box.  The scp'd file is
> fine,
> the copied one retains the bad hash from the CD.
> 
> I can compare them thusly:
> 
> alpha$ cmp -l xetc-real.tgz xetc.tgz
>   7953   0  10
>  10209 102 112
>  18607 100 101
>  25689 302 312
>  34102  33  37
> 
> In case there was a problem with the burn, I mounted the same CD on a
> Linux system and ran sha512sum -c SHA512.  All verify properly.  So
> it's
> not a bad burn.
> 
> Both the CD drive and the HDD are IDE devices, connected to the
> motherboard IDE.  I see this at boot:
> 
> [     4.110851] wd0 at atabus0 drive 0
> [     4.111829] wd0: <IBM-DTLA-305040>
> [     4.111829] wd0: drive supports 16-sector PIO transfers, LBA
> addressing
> [     4.112805] wd0: 39266 MB, 79780 cyl, 16 head, 63 sec, 512
> bytes/sect x 80418240 sectors
> [     4.114757] wd0: 32-bit data port
> [     4.114757] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA
> mode 5 (Ultra/100)
> [     4.115733] wd0(cmdide0:0:0): using PIO mode 4, DMA mode 2 (using
> DMA)
> [     4.115733] atapibus0 at atabus1: 2 targets
> [     4.122570] cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6302B, ,
> 1012> cdrom removable
> [     4.124524] cd0: 32-bit data port
> [     4.124524] cd0: drive supports PIO mode 4, DMA mode 2
> [     4.125499] cd0(cmdide0:1:0): using PIO mode 4, DMA mode 2 (using
> DMA)
> 
> This has the smell to me of a kernel bug. 
> 
> I don't really care about the CD now that it's installed, but I'm
> concerned about the implications.
> 
> Ideas?
> 
> Thanks,
> 
> John

--
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: <57ea46e9e65e6baebd65602c3215a9665182e9c7.camel@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.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: <87tsm8nfhu.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!3.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: "Jeffrey S. Worley" <technoid6502@gmail.com>
Newsgroups: muc.lists.netbsd.port.alpha
Subject: Re: Possible IDE corruption bug?
Date: Tue, 27 Oct 2026 00:57:43 -0400
Organization: Newsgate at muc.de e.V.
Sender: port-alpha-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <57ea46e9e65e6baebd65602c3215a9665182e9c7.camel@gmail.com>
References: <87tsm8nfhu.fsf@complete.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="5604"; mail-complaints-to="news-admin@muc.de"
User-Agent: Evolution 3.56.2-9
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (2048-bit key) header.d=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20251104; t=1793077064; x=1793681864; darn=netbsd.org;
        h=mime-version:user-agent:content-transfer-encoding:content-type
         :references:in-reply-to:date:to:subject:message-id:from:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=PAnHKr+6QJqe+5xe4UDqG6mcFrA1Ae3tdpomjvTgcIY=;
        b=mTmh+ISsct6tB+GghRw9YBucntI9hw1TxED0AcxT2bXsF0u1lctEdZ+6bF8VoxQ8om
         vvM15CznqlFjQ8J7/X7VOXdKBlo1tFLQD9cV3/QSajGTze858W6VcsBQmbTvOwLje2HP
         6Bk8OBoYzMDjpQtp7bMrPKlZ1yeWaHJLiSqOQA/fOnbGioDfzYxW6/YD436fG1GJmsVa
         ZCWtUmKYWdDVhSmbvsv8oCxPoQZeqiqnR6/QnEoVdcqKCvU5VAdEqAAwRckyBIs7PVJK
         MUKW1JxKoOWxuPcvpIfEreb9fnDa2+ODzBVOJzzgEa+2BbELUZuyRC4glUPcHu1ptpMf
         7ZgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793077064; x=1793681864;
        h=mime-version:user-agent:content-transfer-encoding:content-type
         :references:in-reply-to:date:to:subject:message-id:from:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=PAnHKr+6QJqe+5xe4UDqG6mcFrA1Ae3tdpomjvTgcIY=;
        b=Zfss1Kqyc+SdihLBRHSVcBLxJhuICyH9O1Iuoit8E1b4Bemrcv9/qvxqrlewuc2VJo
         XV6lXbbDvtG2IHQ5krewtt2bg05tha5GH08CvT3ucM7JbG48x7xle45X6VrVUZrXTd2y
         mopSxTuaOPvc/D0pZxxRa5FjDjb8gR45KgdsUIdrFQTq86/T1WFB9P/w1nTOkah8q6rS
         eYtowr1rr3gqHVaH3igeUJwhR7LabRNjOksKNfYWApREb4NoJch5O6SXbUNlsCrTPq72
         Cm+6n9E7AtF5oayv6zJQ2MjYWX0ccAD9Q0zYeiQvyeDc+Dv65Sg6hCcfnny1S39KzafE
         8TLw==
X-Forwarded-Encrypted: i=1; AKwUvBzWyIJp7yo9keAPOPu5xTwDPBb+5XduCzyZK2nOylU+GdC/IBR8Zw1aAglEr/Hg2pToVTvn/L7YeQrs@netbsd.org
X-Gm-Message-State: AFq9FYKKmruwGl0ne3yxs68vj8vnam0aELQeQaMocBvbswhlYdaE8YXi
	TpWlxqaWyDUxM+qOqX8bBt0oSaIimS8gPlzNUg9xSBgb3jgpncl5NtfS
X-Gm-Gg: AYBFou3L9O0tqs9r2tImQknEG2ZKGht6WFzQuNXhQeMmhGl/aUIynJHdCZtw3Bp/Yz5
	VMsikg0DER0JWcIL2bfmso1QcUR8DEDXoyOvU2BStqGVRfBDRKFsWbR6YM0rTkhIk5YwkS8AYie
	7TVs1ZUYuSj7AkqyccqCoQC0L+ds8qAHgsy8SZZbA7F5oD1JzmrrEORsGJ1L09dGyrgctDHFG2n
	N4bjujvUWxHXI0k7DfOD2GKWMf8IMTyJdlrk31kjd/R6STqKhOSuyROmSb5bb1s2byQPuypBMc5
	Vfk6eIMPaswpG0e6sDm71aBm2TgMQJM779JTwb9T92YpuCdUu1c/RhgDlAcGlKAorhPOR/zatBU
	3ZndWJ3QPI7MmijnJvNSF14cxrq0xk/cKM1aJwTcmiYEt07WzCKXDehvJgp4CefGB9rqOQOx+/x
	9l2MdamO6RDCODz0N5knpwyqiyWb6BXEphhcr6rchlnG3opCEwORNzOJJA2kyll93xC/s8FTWNG
	UTOGxXl9nhwuZ0rpBm+L9SH9JLAtaNo86oMJLShebrwOWpmtAnlsuBNra2Olm/6PykOUHnl2EHv
	aN0e
X-Google-Original-From: "Jeffrey S. Worley" <Technoid6502@gmail.com>
In-Reply-To: <87tsm8nfhu.fsf@complete.org>
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes