NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-macppc/59078: UDMA drive mode too high for Blue and White G3 using PCI IDE controller card



>Number:         59078
>Category:       port-macppc
>Synopsis:       UDMA drive mode too high for Blue and White G3 using PCI IDE controller card
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-macppc-maintainer
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 16 17:10:00 +0000 2025
>Originator:     Chris tucker
>Release:        10.1
>Organization:
>Environment:
NetBSD netbsd 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/macppc/compile/GENERIC macppc
>Description:
This problem affected my Blue and White G3 with a Sonnet PCI IDE controller card.

The problem relates both to the kernel in the installer, and also the regular kernel.

During installation and also during post-installation normal operation there's hundreds of repeated errors along the llines of "wd0: aborted command, interface CRC error" "wd0c: error reading fsbn".

Photo of such error here: https://ctucker.neocities.org/crc-netbsd-error.jpg

The problem does not manifest when using the onboard IDE controller. However, the onboard IDE controller causes rndctl to sometimes crash the computer, which is why I switched to the Sonnet PCI IDE controller, which works correctly with rndctl. (see NetBSD Problem Report #59014 for more information)

Despite the CRC warnings, the install does work, and the computer does run, but the screen gets filled with hundreds of warnings and runs much slower than normal.
>How-To-Repeat:
Run the netbsd installer or run a installed netbsd instance on a blue and white G3 fitted with a Sonnet PCI IDE card.
>Fix:
I believe the problem is due to the netbsd kernel accessing my UDMA IDE hard disk in UDMA mode 6 (ATA/133), but my Blue and White G3 specifications indicate the Mac is designed for UDMA mode 2 (ATA/33).

The Mac can't handle the higher speed and thus complains profusely.

I resolved the problem by modifying the kernel on BOTH the installer kernel and the regular kernel to limit the UDMA mode to mode 2 with this line in the kernel config:

wd*    at atabus? drive ? flags 0x0aac

(default line uses the flag 0x0000)

I notice that netbsd/macppc includes several different kernels such as netbsd-GENERIC, netbsd-GENERIC_601, netbsd-POWERMAC_G5. Perhaps you could create another such kernel like netbsd-GENERIC-BLUE-AND-WHITE-PCI-CARD (lol).

I suppose the problem may affect more machines than just the Blue-and-White.

(An alternate solution might be to change how the cmdide driver (the Blue-and-white motherboard IDE controller) works so that it doesn't cause the rndctrl error to manifest. There's something about rndctrl that causes the drive to error, although the cmd chipset is known to be wonky).



Home | Main Index | Thread Index | Old Index