• Kenji Kaneshige's avatar
    PCI ASPM: introduce capable flag · 07d92760
    Kenji Kaneshige authored
    Introduce 'aspm_capable' field to maintain the capable ASPM setting of
    the link. By the 'aspm_capable', we don't need to recheck latency
    every time ASPM policy is changed.
    
    Each bit in 'aspm_capable' is associated to ASPM state (L0S/L1). The
    bit is set if the associated ASPM state is supported by the link and
    it satisfies the latency requirement (i.e. exit latency < endpoint
    acceptable latency). The 'aspm_capable' is updated when
    
      - an endpoint device is added (boot time or hot-plug time)
      - an endpoint device is removed (hot-unplug time)
      - PCI power state is changed.
    Acked-by: default avatarShaohua Li <shaohua.li@intel.com>
    Signed-off-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    07d92760
aspm.c 26.9 KB