Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406224

Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and downstream

From Sinan Kaya <okaya@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and downstream
Date 2016-05-24 16:50 +0200
Message-ID <rClOG-4tB-11@gated-at.bofh.it> (permalink)
References <rCeat-8d9-1@gated-at.bofh.it> <rCjab-2O9-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 5/24/2016 7:53 AM, Bjorn Helgaas wrote:
> On Tue, May 24, 2016 at 06:29:44AM +0000, Ocean HY1 He wrote:
>> > In pcie_config_aspm_link(), when convert ASPM state to
>> > upstream/downstream ASPM register state, the upstream variable and
>> > dwsream variable are reversed. This causes PCI/E link enter ASPM L0s
>> > even it should be disabled and PCI/E endpoint may reset randomly.
> Random resets of an endpoint sounds like a pretty bad problem.  Do you
> have a bug report?  We've had lots of issues with ASPM; I wonder if
> this could account for some of them.
> 

I'm seeing this problem on Linux's ASPM code using powersave option where
each side of the link is having ASPM L0s enabled without coordination with
the other side. I'm wondering if you are hitting this too.

Legacy software (either operating system or firmware) that encounters 
the previously reserved value 00b (No ASPM Support), will most likely
refrain from enabling L1, which is intended behavior. 10 Legacy software
will also most likely refrain from enabling L0s for that component’s 
Transmitter (also intended behavior), but it is unclear if such software
will also refrain from enabling L0s for the component on the other side 
of the Link. 

If software enables L0s on one side when the component on 
the other side does not indicate that it supports L0s, the result is 
undefined. 

-- 
Sinan Kaya
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and  downstream Ocean HY1 He <hehy1@lenovo.com> - 2016-05-24 08:40 +0200
  Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Bjorn Helgaas <helgaas@kernel.org> - 2016-05-24 14:00 +0200
    Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and  downstream Sinan Kaya <okaya@codeaurora.org> - 2016-05-24 16:50 +0200
      Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Bjorn Helgaas <helgaas@kernel.org> - 2016-05-25 18:40 +0200
    RE: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Ocean HY1 He <hehy1@lenovo.com> - 2016-05-25 15:10 +0200
  Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Bjorn Helgaas <helgaas@kernel.org> - 2016-05-25 19:00 +0200
    Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and  downstream Sinan Kaya <okaya@codeaurora.org> - 2016-05-25 19:30 +0200
      Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Bjorn Helgaas <helgaas@kernel.org> - 2016-05-25 20:00 +0200
        Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and  downstream Sinan Kaya <okaya@codeaurora.org> - 2016-05-25 20:20 +0200
          Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream  and downstream Bjorn Helgaas <helgaas@kernel.org> - 2016-05-25 20:40 +0200
            Re: [PATCH] PCI/ASPM: fix reverse ASPM L0s assignment of upstream and  downstream Sinan Kaya <okaya@codeaurora.org> - 2016-05-25 22:50 +0200

csiph-web