1. 30 8月, 2017 2 次提交
  2. 29 8月, 2017 2 次提交
  3. 17 8月, 2017 2 次提交
  4. 13 7月, 2017 1 次提交
  5. 03 7月, 2017 11 次提交
  6. 25 4月, 2017 1 次提交
  7. 22 4月, 2017 1 次提交
  8. 21 4月, 2017 1 次提交
  9. 12 4月, 2017 1 次提交
    • S
      PCI: rockchip: Set PCI_EXP_LNKSTA_SLC in the Root Port · 64d6ea60
      Shawn Lin 提交于
      All platforms using Rockchip use a common clock for the Root Port and the
      slot connected to it. Indicate this by setting the Slot Clock Configuration
      (PCI_EXP_LNKSTA_SLC) bit in the Root Port's Link Status.
      
      Per the Implementation Note in the spec (PCIe r3.1, sec 7.8.7), if the
      downstream component also sets PCI_EXP_LNKSTA_SLC, software may set the
      Common Clock Configuration (PCI_EXP_LNKCTL_CCC) bits on both ends of the
      Link. This is done by pcie_aspm_configure_common_clock().
      Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
      Cc: Brian Norris <briannorris@chromium.org>
      Cc: jeffy.chen <jeffy.chen@rock-chips.com>
      64d6ea60
  10. 04 4月, 2017 1 次提交
  11. 24 3月, 2017 3 次提交
  12. 18 2月, 2017 1 次提交
  13. 11 2月, 2017 1 次提交
  14. 31 1月, 2017 2 次提交
  15. 13 1月, 2017 1 次提交
    • S
      PCI: rockchip: Disable RC's ASPM L0s based on DT "aspm-no-l0s" · afc9595e
      Shawn Lin 提交于
      Rockchip's RC produces a 100MHz reference clock but there are two methods
      for the PHY to generate it:
      
        (1) Use the system PLL to generate a 100MHz clock.  The PHY will relock
            it, filter signal noise, and output the reference clock.  ASPM L0s
            works correctly, but circuit noise issues make it difficult to pass
            the TX compatibility test.
      
        (2) Share the SoC's 24MHZ crystal oscillator with the PHY and force the
            PHY's PLL to generate 100MHz internally.  In this case, exit from
            ASPM L0s sometimes fails due to a design error in the RC receiver
            circuit.  Even if we use extended-synch, the PHY sometimes fails to
            relock the bits from FTS, which will hang the system.
      
      We want the flexibility to use both clocking methods, so add a DT property,
      "aspm-no-l0s".  If that's present, disable L0s to avoid the issues with
      case (2).
      
      [bhelgaas: changelog]
      Reported-by: NJeffy Chen <jeffy.chen@rock-chips.com>
      Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NBrian Norris <briannorris@chromium.org>
      Acked-by: NRob Herring <robh@kernel.org>
      afc9595e
  16. 12 1月, 2017 1 次提交
    • S
      PCI: rockchip: Add system PM support · 013dd3d5
      Shawn Lin 提交于
      Add system PM support for Rockchip's RC.  For pre S3, the EP is configured
      into D3 state which guarantees the link state should be in L1.  So we could
      send PME_Turn_Off message to the EP and wait for its ACK to make the link
      state into L2 or L3 without the aux-supply.  This could help save more
      power which I think should be very important for mobile devices.
      
      As note that there is a 5s timeout for RC to wait for the PMA_ACK after
      sending PME_Turn_Off.  Technically it should depend on the hierarchy of
      devices but seems PCIe core framework doesn't handle the L2/3 for S3 at
      all.  So that means we should presume to set a default value for PME_ACK.
      From the bug report[1], we could find a statement that Microsoft Windows
      versions typically wait for 5 seconds.  So we are prone to take 5s for this
      timeout here.
      
      [1] https://lists.launchpad.net/kernel-packages/msg123315.htmlSigned-off-by: NShawn Lin <shawn.lin@rock-chips.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NBrian Norris <briannorris@chromium.org>
      013dd3d5
  17. 08 12月, 2016 8 次提交