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:
parent
6cda41555b
commit
09bf574a28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116915
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user