Clear PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN for broken hardware.
Some amd64 laptops fail to boot with these flags. PR: kern/75482
This commit is contained in:
parent
fded756e72
commit
e726a7e116
@ -239,8 +239,9 @@ fwohci_pci_init(device_t self)
|
||||
cmd = pci_read_config(self, PCIR_COMMAND, 2);
|
||||
cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN |
|
||||
PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN;
|
||||
#if 1
|
||||
#if 1 /* for broken hardware */
|
||||
cmd &= ~PCIM_CMD_MWRICEN;
|
||||
cmd &= ~(PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN);
|
||||
#endif
|
||||
pci_write_config(self, PCIR_COMMAND, cmd, 2);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user