Lines Matching full:l1
3 * Enable PCIe link L0s/L1 state and Clock Power Management
32 #define ASPM_STATE_L1 (4) /* L1 state */
33 #define ASPM_STATE_L1_1 (8) /* ASPM L1.1 state */
34 #define ASPM_STATE_L1_2 (0x10) /* ASPM L1.2 state */
35 #define ASPM_STATE_L1_1_PCIPM (0x20) /* PCI PM L1.1 state */
36 #define ASPM_STATE_L1_2_PCIPM (0x40) /* PCI PM L1.2 state */
94 * The L1 PM substate capability is only implemented in function 0 in a
114 /* Enable ASPM L0s/L1 */ in policy_to_aspm_state()
285 /* Convert L1 latency encoding to ns */
295 /* Convert L1 acceptable latency encoding to ns */
319 * Encode an LTR_L1.2_THRESHOLD value for the L1 PM Substates Control 1
320 * register. Ports enter L1.2 when the most recent LTR value is greater
322 * don't enter L1.2 too aggressively.
377 /* Calculate endpoint L1 acceptable latency */ in pcie_aspm_check_latency()
404 * Check L1 latency. in pcie_aspm_check_latency()
406 * more microsecond for L1. Spec doesn't mention L0s. in pcie_aspm_check_latency()
408 * The exit latencies for L1 substates are not advertised in pcie_aspm_check_latency()
410 * to determine max latencies introduced by enabling L1 in pcie_aspm_check_latency()
412 * a L1 substate exit latency check. We assume that the in pcie_aspm_check_latency()
413 * L1 exit latencies advertised by a device include L1 in pcie_aspm_check_latency()
437 /* Calculate L1.2 PM substate timing parameters */
470 * Link from L0 to L1.2 and back to L0 so we enter L1.2 only if in aspm_calc_l12_info()
475 * Table 5-11. T(POWER_OFF) is at most 2us and T(L1.2) is at in aspm_calc_l12_info()
482 /* Some broken devices only support dword access to L1 SS */ in aspm_calc_l12_info()
492 /* Disable L1.2 while updating. See PCIe r5.0, sec 5.5.4, 7.8.3.3 */ in aspm_calc_l12_info()
536 /* Setup L1 substate */ in aspm_l1ss_init()
549 * to this device, we can't use ASPM L1.2 because it relies on the in aspm_l1ss_init()
612 * clock configuration. L0s & L1 exit latencies in the otherwise in pcie_aspm_cap_init()
636 /* Setup L1 state */ in pcie_aspm_cap_init()
661 /* Configure the ASPM L1 substates */
671 * - When enabling L1.x, enable bit at parent first, then at child in pcie_config_aspm_l1ss()
672 * - When disabling L1.x, disable bit at child first, then at parent in pcie_config_aspm_l1ss()
673 * - When enabling ASPM L1.x, need to disable L1 in pcie_config_aspm_l1ss()
675 * - The ASPM/PCIPM L1.2 must be disabled while programming timing in pcie_config_aspm_l1ss()
682 /* Disable all L1 substates */ in pcie_config_aspm_l1ss()
688 * If needed, disable L1, and it gets enabled later in pcie_config_aspm_l1ss()
730 /* Can't enable any substates if L1 is not enabled */ in pcie_config_aspm_link()
758 * same setting for ASPM. Enabling ASPM L1 should be done in in pcie_config_aspm_link()
760 * versa for disabling ASPM L1. Spec doesn't mention L0S. in pcie_config_aspm_link()
1138 /* L1 PM substates require L1 */ in pci_enable_link_state()
1245 /* need to enable L1 for substates */ in aspm_attr_store_common()
1271 ASPM_ATTR(l1_aspm, L1) in ASPM_ATTR()