Disable CLKREQ for ASPM since re(4) doesn't implement link level power saving.
Reviewed by: yongari
This commit is contained in:
parent
271abc089d
commit
86cee3d1f6
@ -1358,15 +1358,17 @@ re_attach(device_t dev)
|
||||
CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
|
||||
}
|
||||
|
||||
/* Disable ASPM L0S/L1. */
|
||||
/* Disable ASPM L0S/L1 and CLKREQ. */
|
||||
if (sc->rl_expcap != 0) {
|
||||
cap = pci_read_config(dev, sc->rl_expcap +
|
||||
PCIER_LINK_CAP, 2);
|
||||
if ((cap & PCIEM_LINK_CAP_ASPM) != 0) {
|
||||
ctl = pci_read_config(dev, sc->rl_expcap +
|
||||
PCIER_LINK_CTL, 2);
|
||||
if ((ctl & PCIEM_LINK_CTL_ASPMC) != 0) {
|
||||
ctl &= ~PCIEM_LINK_CTL_ASPMC;
|
||||
if ((ctl & (PCIEM_LINK_CTL_ECPM |
|
||||
PCIEM_LINK_CTL_ASPMC))!= 0) {
|
||||
ctl &= ~(PCIEM_LINK_CTL_ECPM |
|
||||
PCIEM_LINK_CTL_ASPMC);
|
||||
pci_write_config(dev, sc->rl_expcap +
|
||||
PCIER_LINK_CTL, ctl, 2);
|
||||
device_printf(dev, "ASPM disabled\n");
|
||||
|
Loading…
Reference in New Issue
Block a user