1. 24 9月, 2014 1 次提交
    • Y
      PCI: pciehp: Fix wait time in timeout message · d433889c
      Yinghai Lu 提交于
      When we warned about a timeout on a hotplug command, we previously printed
      the time between calls to pcie_write_cmd(), without accounting for any time
      spent actually waiting.  Consider this sequence:
      
        pcie_write_cmd
          write SLTCTL
          cmd_started = jiffies          # T1
      
        pcie_write_cmd
          pcie_wait_cmd
            now = jiffies                # T2
            wait_event_timeout           # we may wait here
            if (timeout)
              ctrl_info("Timeout on command issued %u msec ago",
                        jiffies_to_msecs(now - cmd_started))
      
      We previously printed (T2 - T1), but that doesn't include the time spent in
      wait_event_timeout().
      
      Fix this by using the current jiffies value, not the one cached before
      calling wait_event_timeout().
      
      [bhelgaas: changelog, use current jiffies instead of adding timeout]
      Fixes: 40b96083 ("PCI: pciehp: Compute timeout from hotplug command start time")
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      d433889c
  2. 17 9月, 2014 1 次提交
  3. 13 9月, 2014 16 次提交
  4. 12 9月, 2014 1 次提交
  5. 25 8月, 2014 1 次提交
  6. 23 8月, 2014 5 次提交
  7. 22 8月, 2014 10 次提交
  8. 21 8月, 2014 5 次提交