Prevent probing the secondary channel on CMD646 controllers if the

channel has been disabled by BIOS. This prevents a bus timeout
machine check on B&W G3 PowerMacs, which have a primary-only CMD646
on the motherboard.

Approved by: sos
Obtained from: NetBSD
This commit is contained in:
Peter Grehan 2003-06-27 10:11:54 +00:00
parent 6cda41555b
commit 09bf574a28
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116915

View File

@ -1509,6 +1509,12 @@ ata_sii_chipinit(device_t dev)
}
else
ctlr->setmode = ata_cmd_setmode;
if ((pci_read_config(dev, 0x51, 1) & 0x08) != 0x08) {
device_printf(dev, "secondary channel disabled\n");
ctlr->channels = 1;
}
return 0;
}