Thread View: muc.lists.netbsd.port.alpha
13 messages
13 total messages
Started by John Goerzen
Tue, 27 Oct 2026 00:39
Possible IDE corruption bug?
Author: John Goerzen
Date: Tue, 27 Oct 2026 00:39
Date: Tue, 27 Oct 2026 00:39
78 lines
4663 bytes
4663 bytes
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
Re: Possible IDE corruption bug?
Author: Jeffrey S. Worley
Date: Tue, 27 Oct 2026 04:57
Date: Tue, 27 Oct 2026 04:57
161 lines
9903 bytes
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
Re: Possible IDE corruption bug?
Author: Martin Husemann
Date: Tue, 27 Oct 2026 09:44
Date: Tue, 27 Oct 2026 09:44
34 lines
2252 bytes
2252 bytes
On Tue, Oct 27, 2026 at 12:57:43AM -0400, Jeffrey S. Worley wrote: > 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. Someone (tm) please file a PR with the dmesg section of the controller and disks in question. For the split boot case: you can modify your kernel config to force root on some other device by default, that makes testing of the broken controller easier than removing it completely. Something like this in GENERIC.local: no config netbsd config netbsd root on "wedge:myRoot" type ffs works if you use GPT on the sata disk and label the root partition "myRoot". or hardcoded device name: no config netbsd config netbsd root on wd1 type ffs Martin -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Jason Thorpe
Date: Tue, 27 Oct 2026 10:20
Date: Tue, 27 Oct 2026 10:20
18 lines
4994 bytes
4994 bytes
> On Oct 27, 2026, at 12:57 AM, Jeffrey S. Worley <technoid6502@gmail.com> wrote: > > 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. While a bug in the driver may or may certainly exist, you might want to take a few minutes to understand how the driver abstractions in NetBSD work before making such confident-yet-false statements. -- thorpej -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: John Goerzen
Date: Tue, 27 Oct 2026 12:20
Date: Tue, 27 Oct 2026 12:20
56 lines
4645 bytes
4645 bytes
On Tue, Oct 27 2026, Martin Husemann wrote: > On Tue, Oct 27, 2026 at 12:57:43AM -0400, Jeffrey S. Worley wrote: >> 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. > > Someone (tm) please file a PR with the dmesg section of the controller and > disks in question. > > For the split boot case: you can modify your kernel config to force root > on some other device by default, that makes testing of the broken controller > easier than removing it completely. Currently it looks like the HDD is working, and the CD isn't. I still have some SYM53C875 cards floating around and may even have a SCSI CD drive. But really, I don't need the CD for anything once installed. Some sleuthing suggests that perhaps this is a CMD646 issue, such as https://en.wikipedia.org/wiki/CMD640 . Some sources are suggesting these bugs were more likely on ATAPI. I don't recall running into this on Linux, though I may be blocking something out of my memory from 10 years ago, or it's possible Linux had a workaround or I never used an IDE CD drive on this system. In any case, some further investigation suggested that "flags cmdide0 0x00f0" would disable DMA for the IDE channel the CD drive was on, but I struggled and failed to make it take effect (no combination of SRM boot arguments could get me into UserConf, /boot.cfg appears to be ignored, and I wasn't going to compile my own kernel just to test a theory). Incidentally, it would be great to have https://cdn.netbsd.org/pub/NetBSD/NetBSD-11.0/alpha/INSTALL.html cover a bit more ground on post-install boot. I had utterly failed to remember how to tell SRM what the default boot device should be, and dug that up elsewhere. -flags c and -flags "-c" both get a complaint from NetBSD as being unrecognized and drop me into single-user mode rather than userconf. I could make this system entirely SCSI. I still have two UW SCSI drives, but both are exceptionally noisy, and only the noisiest (a Cheetah) has no bad sectors. I was annoyed at that noise for years, so maybe I'll just buy a BlueSCSI or something if needed. I'm not running it to win any performance records, so that's probably sufficient. The Cheetah maxxed out at 29MB/s anyhow! John -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Jeffrey S. Worley
Date: Tue, 27 Oct 2026 18:24
Date: Tue, 27 Oct 2026 18:24
123 lines
9065 bytes
9065 bytes
I do know that the driver for onboard ata on webbrick and slate works more and more reliably as you regress the OS release versions. At version 8 is it almost useable. With 10 it is nearly unuseable and with 11 it is completely unuseable. The driver hasn't changed, but structural changes in the operating system alter its timing, exacerbating race conditions which existed prior but with more benign symptoms. The worlds fastest single-chip processor has been running PIO mode 4 with errors as below, for decades. Over the course of time NetBSD has slowly foreclosed the onboard ATA controllers, driving users to SCSI or nothing. Other machines, TSO machines like Sparc and Intel work fine with this chip. The fellow asked for help and I have been down his road before. I can save him four years of forensic detective work. The Driver is broken and has been since day one. [ 8.4604230] wd0 at atabus0 drive 0 [ 8.5004605] wd0: <SanDisk SD8SBAT032G1122> [ 8.5483162] wd0: 30533 MB, 62037 cyl, 16 head, 63 sec, 512 bytes/sect x 62533296 sectors [ 23.6411849] stray isa irq 15 [ 43.6745069] atapibus0 at atabus1: 2 targets [ 43.7227337] stray isa irq 15 [ 43.7663041] cd0 at atapibus0 drive 0: <COMPAQ CDR-8435, , 0013> cdrom removable [ 43.8659143] wd1 at atabus2 drive 0 [ 43.9050584] wd1: <Samsung SSD 870 EVO 1TB> [ 43.9539408] wd1: 931 GB, 1938021 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors [ 44.0553721] swwdog0: software watchdog initialized [ 44.1120140] wd0: no disk label [ 44.1472905] wd0: no disk label [ 44.1836936] wd0: excessive DMA errors - 4 in last 3 transfers [ 44.2523360] wd0c: error reading fsbn 32 of 32-33 (wd0 bn 32; cn 0 tn 0 sn 32), xfer 38, retry 0 [ 44.2523360] wd0: (aborted command, interface CRC error) [ 45.4206099] wd0c: error reading fsbn 32 of 32-33 (wd0 bn 32; cn 0 tn 0 sn 32), xfer 38, retry 1 [ 45.4206099] wd0: (aborted command, interface CRC error) [ 46.0836996] wd0c: error reading fsbn 32 of 32-33 (wd0 bn 32; cn 0 tn 0 sn 32), xfer 38, retry 2 [ 46.0836996] wd0: (aborted command, interface CRC error) [ 46.7467893] wd0c: error reading fsbn 32 of 32-33 (wd0 bn 32; cn 0 tn 0 sn 32), xfer 38, retry 3 [ 46.7467893] wd0: (aborted command, interface CRC error) [ 47.4098787] wd0: soft error (corrected) xfer 38 [ 47.4675010] WARNING: 1 error while detecting hardware; check system log. [ 47.5456227] wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), xfer 38, retry 0 [ 47.5456227] wd0: (aborted command, interface CRC error) [ 48.1979688] wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), xfer 38, retry 1 [ 48.1979688] wd0: (aborted command, interface CRC error) [ 48.8483630] wd0c: error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), xfer 38, retry 2 [ 48.8483630] wd0: (aborted command, interface CRC error) [ 49.4987572] wd0: soft error (corrected) xfer 38 [ 49.5510686] wd0: no disk label [ 49.5874723] root on wd0a dumps on wd0b [ 49.6321942] wd0: no disk label This is not normal, and has existed through decades of reports from us about it, and the above is a modern representation of the results of that relationship. I didn't tell the fellow to call anyone, just told him it was broken and that in all likelihood he is not, at this late juncture especially, going to be the one to convince userland of that. What I did tell him is that he can use the Hardware and firmware to get the Kernel into memory and then he can use a driver that does work, in this case the Sil3124 driver. I suggested he regress to a much earlier version of kernel, which would help him, and would help anyone diagnosing the driver (as though it would do any good to report the findings). I could point to specifics: Those 'stray interrupts' can be created only one way, unfenced io on a relaxed memory model. Another example is NEC USB. That works great on 10.1 until there is ANY degradation, any need for retries or handshaking. To test that, try isochronous IO. The driver will eat itself and you can watch. Mechanical sympathy is utterly lacking and at the heart of the problems I've explored on three apposite platforms. Indivitual register writes and status requests count as IO... These problems are similar on PARISC, FX970, and Alpha ev6. They all have something in common and it isn't that we are stupid. best, jeff On Tue, 2026-10-27 at 06:20 -0400, Jason Thorpe wrote: > > > On Oct 27, 2026, at 12:57 AM, Jeffrey S. Worley > > <technoid6502@gmail.com> wrote: > > > > 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. > > While a bug in the driver may or may certainly exist, you might want > to take a few minutes to understand how the driver abstractions in > NetBSD work before making such confident-yet-false statements. > > -- thorpej -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Jason Thorpe
Date: Tue, 27 Oct 2026 18:42
Date: Tue, 27 Oct 2026 18:42
96 lines
7744 bytes
7744 bytes
> On Oct 27, 2026, at 2:24 PM, Jeffrey S. Worley <technoid6502@gmail.com> wrote:
>
> I do know that the driver for onboard ata on webbrick and slate works
> more and more reliably as you regress the OS release versions. At
> version 8 is it almost useable. With 10 it is nearly unuseable and
> with 11 it is completely unuseable.
>
> The driver hasn't changed, but structural changes in the operating
> system alter its timing, exacerbating race conditions which existed
> prior but with more benign symptoms.
But that has absolutely *nothing* to do with “fencing” or “barriers” as you asserted in your previous message. That’s because the Alpha implementation of the bus_space(9) interface inserts the barriers on every PIO access, and has done for decades (plural).
<snip>
static inline uint8_t
__C(CHIP,_io_read_1)(void *v, bus_space_handle_t ioh, bus_size_t off)
{
register bus_space_handle_t tmpioh;
register uint32_t *port, val;
register uint8_t rval;
register int offset;
alpha_mb(); <===== OH HEY!
tmpioh = ioh + off; offset = tmpioh & 3;
port = (uint32_t *)((tmpioh << CHIP_ADDR_SHIFT) |
(0 << CHIP_SIZE_SHIFT));
val = *port; rval = ((val) >> (8 * offset)) & 0xff;
return rval;
}
.
.
.
static inline void
__C(CHIP,_io_write_1)(void *v, bus_space_handle_t ioh,
bus_size_t off, uint8_t val)
{
register bus_space_handle_t tmpioh;
register uint32_t *port, nval;
register int offset;
tmpioh = ioh + off;
offset = tmpioh & 3;
nval = val << (8 * offset);
port = (uint32_t *)((tmpioh << CHIP_ADDR_SHIFT) |
(0 << CHIP_SIZE_SHIFT));
*port = nval;
alpha_mb(); <===== OH HEY!
}
</snip>
> The worlds fastest single-chip processor has been running PIO mode 4
> with errors as below, for decades.
>
> Over the course of time NetBSD has slowly foreclosed the onboard ATA
> controllers, driving users to SCSI or nothing.
That’s a strange thing to say. I’m using the on-board ATA on my DS10L. It works just fine.
https://dmesgd.nycbug.org/dmesgd?do=view&id=8858
> Other machines, TSO machines like Sparc and Intel work fine with this
> chip.
>
> The fellow asked for help and I have been down his road before. I can
> save him four years of forensic detective work.
>
> The Driver is broken and has been since day one.
Which specific controller driver are you referring to? Different Alpha models had different controllers each of which had different sets of errata that applied to them. My DS10L has an Acer Labs controller revision that has a specific problem with certain DMA modes, for example.
> This is not normal, and has existed through decades of reports from us
> about it, and the above is a modern representation of the results of
> that relationship.
Can you point to specific bug reports in the NetBSD bug database?
-- thorpej
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Jason Thorpe
Date: Tue, 27 Oct 2026 18:54
Date: Tue, 27 Oct 2026 18:54
37 lines
5689 bytes
5689 bytes
> On Oct 26, 2026, at 8:39 PM, John Goerzen <jgoerzen@complete.org> wrote: > > Hi folks, > > I have an AlphaPC 164LX (600MHz 21164a, 256MB RAM). Hey John. I’d like to get to the bottom of this. You’re the first person who’s booted NetBSD on an “EB164” type machine in quite some years, I think. There were a flurry of variants of that system type, each with different on-board ATA controllers, as well as different core logic chipset revisions etc., so knowing what chip and revision that’s on your specific machine is going to help a lot. In particular, 164LX had the “Pyxis” flavor of the 2117x core logic chipset (which was also used on the Personal Workstation), and the Pyxis definitely had some quirks that required software workarounds. It’s entirely possible some additional work is needed there. If you could send me the entire “dmesg” output (on- or off-list, up to you), that’ll be a good start. In the mean time, I need to root through my documentation archive, I guess :-) Thanks! -- thorpej -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: John Goerzen
Date: Tue, 27 Oct 2026 20:25
Date: Tue, 27 Oct 2026 20:25
148 lines
9396 bytes
9396 bytes
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Oct 27 2026, Jason Thorpe wrote: >> On Oct 26, 2026, at 8:39=E2=80=AFPM, John Goerzen <jgoerzen@complete.org= > wrote: >>=20 >> Hi folks, >>=20 >> I have an AlphaPC 164LX (600MHz 21164a, 256MB RAM). > > Hey John. > > I=E2=80=99d like to get to the bottom of this. You=E2=80=99re the first p= erson who=E2=80=99s booted > NetBSD on an =E2=80=9CEB164=E2=80=9D type machine in quite some years, I = think. There were a > flurry of variants of that system type, each with different on-board ATA > controllers, as well as different core logic chipset revisions etc., so k= nowing > what chip and revision that=E2=80=99s on your specific machine is going t= o help a lot. Thanks, Jason! I appreciate it. I am quite pleased that a) this system still boots, and b) NetBSD can still run on it! > If you could send me the entire =E2=80=9Cdmesg=E2=80=9D output (on- or of= f-list, up to you), > that=E2=80=99ll be a good start. In the mean time, I need to root through= my > documentation archive, I guess :-) Attached here. There's nothing particularly sensitive about it. You'll see that I have a SYM53C875 plugged in, but there are no active devices connected to it. That is correct for the moment. Incidentally, your name sounded familiar but I couldn't quite figure out why. It turns out you emailed me a few times 30 years ago when I was first investigating NetBSD, before I had regular web access. That would have been about a year before I bought this Alpha. Small world. - John --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=dmesg.txt [ 1.000000] consinit: not using prom console [ 1.000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, [ 1.000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, [ 1.000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, [ 1.000000] 2024, 2025, 2026 [ 1.000000] The NetBSD Foundation, Inc. All rights reserved. [ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.000000] The Regents of the University of California. All rights reserved. [ 1.000000] NetBSD 11.0 (GENERIC) #0: Thu Jul 30 15:23:12 UTC 2026 [ 1.000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/alpha/compile/GENERIC [ 1.000000] Digital AlphaPC 164LX 599 MHz [ 1.000000] 8192 byte page size, 1 processor. [ 1.000000] total memory = 256 MB [ 1.000000] (2128 KB reserved for PROM, 253 MB used by NetBSD) [ 1.000000] avail memory = 235 MB [ 1.000000] timecounter: Timecounters tick every 0.976 msec [ 1.000000] Kernelized RAIDframe activated [ 1.000000] mainbus0 (root) [ 1.000000] cpu0 at mainbus0: ID 0 (primary), 21164A-2 (EV56) [ 1.000000] cpu0: Architecture extensions: 0x1<BWX> [ 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 [ 1.000000] pci0 at cia0 bus 0 [ 1.000000] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok [ 1.000000] vga0 at pci0 dev 6 function 0: ATI Technologies Rage XL (rev. 0x27) [ 1.000000] wsdisplay1 at vga0 kbdmux 1 [ 1.000000] wsmux1: connecting to wsdisplay1 [ 1.000000] drm at vga0 not configured [ 1.000000] esiop0 at pci0 dev 7 function 0: Symbios Logic 53c875 (ultra-wide scsi) [ 1.000000] esiop0: using on-board RAM [ 1.000000] esiop0: interrupting at eb164 irq 1 [ 1.000000] scsibus0 at esiop0: 16 targets, 8 luns per target [ 1.000000] sio0 at pci0 dev 8 function 0: Intel 82378ZB System I/O (rev. 0x43) [ 1.000000] tlp0 at pci0 dev 9 function 0: DECchip 21140A Ethernet, pass 2.2 [ 1.000000] tlp0: interrupting at eb164 irq 3 [ 1.000000] tlp0: Ethernet address 00:c0:f0:32:05:61 [ 1.000000] inphy0 at tlp0 phy 1: i82555 10/100 media interface, rev. 1 [ 1.000000] inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto [ 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, channel 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, channel non-independent [ 1.000000] cmdide0: secondary channel interrupting at isa irq 15 [ 1.000000] atabus1 at cmdide0 channel 1 [ 1.000000] isa0 at sio0 [ 1.000000] lpt0 at isa0 port 0x3bc-0x3bf irq 7 [ 1.000000] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO [ 1.000000] com0: console [ 1.000000] com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, 16-byte FIFO [ 1.000000] pckbc0 at isa0 port 0x60-0x64 [ 1.000000] pckbd0 at pckbc0 (kbd slot) [ 1.000000] pckbc0: using irq 1 for kbd slot [ 1.000000] wskbd0 at pckbd0 mux 1 [ 1.000000] wskbd0: connecting to wsdisplay1 [ 1.000000] attimer0 at isa0 port 0x40-0x43 [ 1.000000] pcppi0 at isa0 port 0x61 [ 1.000000] spkr0 at pcppi0: PC Speaker [ 1.000000] wsbell at spkr0 not configured [ 1.000000] midi0 at pcppi0: PC speaker [ 1.000000] isabeep0 at pcppi0 [ 1.000000] fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2 [ 1.000000] mcclock0 at isa0 port 0x70-0x71: mc146818 compatible time-of-day clock [ 1.000000] attimer0: attached to pcppi0 [ 1.000000] WARNING: system needs entropy for security; see entropy(7) [ 1.000000] timecounter: Timecounter "PCC" frequency 599810112 Hz quality 1000 [ 1.000003] timecounter: Timecounter "clockinterrupt" frequency 1024 Hz quality 0 [ 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 addressing [ 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 mode 5 (Ultra/100) [ 4.358614] wd0(cmdide0:0:0): using PIO mode 4, DMA mode 2 (using DMA) [ 4.358614] atapibus0 at atabus1: 2 targets [ 4.413303] cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-6302B, , 1012> 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) [ 7.593927] swwdog0: software watchdog initialized [ 7.690606] root on wd0a dumps on wd0b [ 7.771654] root file system type: ffs [ 7.846850] kern.module.path=/stand/alpha/11.0/modules [ 7.923026] entropy: best effort [ 11.393680] entropy: ready [ 17.792042] tlp0: transmit underrun; new threshold: 96/256 bytes [ 2732.711250] tlp0: transmit underrun; new threshold: 128/512 bytes [ 2734.019856] tlp0: transmit underrun; new threshold: 160/1024 bytes --=-=-=-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Mouse
Date: Tue, 27 Oct 2026 20:39
Date: Tue, 27 Oct 2026 20:39
25 lines
2314 bytes
2314 bytes
> Incidentally, your name sounded familiar but I couldn't quite figure > out why. It turns out you emailed me a few times 30 years ago when I > was first investigating NetBSD, before I had regular web access. > That would have been about a year before I bought this Alpha. Small > world. It is! Years ago, I was talking with someone (I think it was thorpej@) in person, and whoever it was told me two of my machines between them represented what were at the time the fastest and slowest machines which could run NetBSD. I think the slow one was an hp300 and the fast one was an alpha. I no longer have the hp300, but it's likely one of the two alphas I still have was the alpha in question. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML mouse@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: Rhialto
Date: Wed, 28 Oct 2026 19:00
Date: Wed, 28 Oct 2026 19:00
125 lines
6889 bytes
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
Re: Possible IDE corruption bug?
Author: Jason Thorpe
Date: Wed, 28 Oct 2026 19:10
Date: Wed, 28 Oct 2026 19:10
71 lines
7607 bytes
7607 bytes
--Apple-Mail=_88269487-BDC8-493A-BE94-837F6BCB5E43 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 28, 2026, at 3:00=E2=80=AFPM, Rhialto <rhialto@falu.nl> wrote: >=20 > 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. Some Pass 1 Pyxis parts are basically unusable for DMA to the on-board = peripherals. Pass 2 is supposed to have fixed all of the problems, but = it has other quirks. My suspicion is that disabling DMA for the on-board CMD IDE controller = is going to be the solution here. Back in the NetBSD 2.0 days, we = didn=E2=80=99t have super good ways to do this in a generic way, but we = have better facilities for it now. -- thorpej --Apple-Mail=_88269487-BDC8-493A-BE94-837F6BCB5E43 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" = content=3D"text/html; charset=3Dutf-8"></head><body = style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; = line-break: after-white-space;"><br = id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote = type=3D"cite"><div>On Oct 28, 2026, at 3:00=E2=80=AFPM, Rhialto = <rhialto@falu.nl> wrote:</div><br = class=3D"Apple-interchange-newline"><div><div>I used to use a PWS 433a = with NetBSD 2.0 and earlier, where the Pyxis<br>chip set was buggy for = the particular cmd ata controller. It seems I<br>have scsi in the box = too, at least that is what my kernel = config<br>suggests.<br></div></div></blockquote><div><br></div><div>Some = Pass 1 Pyxis parts are basically unusable for DMA to the on-board = peripherals. Pass 2 is supposed to have fixed all of the problems, = but it has other quirks.</div><div><br></div><div>My suspicion is that = disabling DMA for the on-board CMD IDE controller is going to be the = solution here. Back in the NetBSD 2.0 days, we didn=E2=80=99t have = super good ways to do this in a generic way, but we have better = facilities for it now.</div><div><br></div></div><div> <span class=3D"Apple-style-span" style=3D"border-collapse: separate; = color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant: normal; font-weight: normal; = letter-spacing: normal; line-height: normal; orphans: 2; text-align: = auto; text-indent: 0px; text-transform: none; white-space: normal; = widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; = -webkit-border-vertical-spacing: 0px; = -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: = auto; -webkit-text-stroke-width: 0px; "><div style=3D"word-wrap: = break-word; -webkit-nbsp-mode: space; -webkit-line-break: = after-white-space; ">-- thorpej</div></span> </div> <br></body></html>= --Apple-Mail=_88269487-BDC8-493A-BE94-837F6BCB5E43-- -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Possible IDE corruption bug?
Author: John Goerzen
Date: Thu, 29 Oct 2026 00:34
Date: Thu, 29 Oct 2026 00:34
18 lines
2611 bytes
2611 bytes
On Wed, Oct 28 2026, Jason Thorpe wrote: > My suspicion is that disabling DMA for the on-board CMD IDE controller is going to > be the solution here. Back in the NetBSD 2.0 days, we didn’t have super good ways to > do this in a generic way, but we have better facilities for it now. Is there a way I can do this without compiling my own kernel? I have so far struck out on passing arguments to the kernel at boot on Alpha. Thanks, John -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads