From: Bjorn Helgaas <helgaas@kernel.org>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Frederick Lawler <fred@fredlawl.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: [PATCH RFC 3/3] PCI/ASPM: add sysfs attribute for controlling ASPM
Date: Mon, 6 May 2019 17:15:09 -0500 [thread overview]
Message-ID: <20190506221509.GB156478@google.com> (raw)
In-Reply-To: <1cdf51f0-653a-f0e8-83dc-88b9d023a269@gmail.com>
On Sat, May 04, 2019 at 05:31:04PM +0200, Heiner Kallweit wrote:
> On 30.04.2019 19:53, Bjorn Helgaas wrote:
> > On Sat, Apr 13, 2019 at 11:12:41AM +0200, Heiner Kallweit wrote:
> > I like the idea of exposing these sysfs control files all the time,
> > instead of only when CONFIG_PCIEASPM_DEBUG=y, but I think when we do
> > that, we should put the files at the downstream end of the link (e.g.,
> > an endpoint) instead of at the upstream end (e.g., a root port or
> > switch downstream port). We had some conversation about this here:
> >
> > https://lore.kernel.org/lkml/20180727202619.GD173328@bhelgaas-glaptop.roam.corp.google.com
> >
> > Doing it at the downstream end would require more changes, of course,
> > and probably raises some locking issues, but I think we have a small
>
> This isn't obvious to me as I'm not that familiar with the PCIe subsystem.
> - Why do we need more changes on the downstream end?
I just meant that it might be a little more complicated because the
existing PCIEASPM_DEBUG code works at the upstream end so you can't
use it directly.
> - Which locking is affected?
Normally if we operate on device X, we only touch registers in device
X. Here we need to also touch things in the bridge upstream from X,
so it's outside the usual model. We've had locking issues in the
device enable path where we sometimes have to enable the upstream
bridge before enabling the device itself. I don't know if there are
similar issues here or not, so I mentioned it as a possibility.
> > window of opportunity here where we can tweak the sysfs structure
> > before we're committed to supporting something forever.
> >
> > Bjorn
> >
> Heiner
next prev parent reply other threads:[~2019-05-06 22:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-13 9:10 [PATCH RFC 0/3] PCI/ASPM: add sysfs attribute for controlling ASPM Heiner Kallweit
2019-04-13 9:11 ` [PATCH RFC 1/3] PCI/ASPM: add L1 sub-state support to pci_disable_link_state Heiner Kallweit
2019-04-13 9:11 ` [PATCH RFC 2/3] PCI/ASPM: allow to re-enable Clock PM Heiner Kallweit
2019-04-13 9:12 ` [PATCH RFC 3/3] PCI/ASPM: add sysfs attribute for controlling ASPM Heiner Kallweit
2019-04-30 17:53 ` Bjorn Helgaas
2019-05-04 15:18 ` Heiner Kallweit
2019-05-04 15:31 ` Heiner Kallweit
2019-05-06 22:15 ` Bjorn Helgaas [this message]
2019-05-04 18:49 ` Heiner Kallweit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190506221509.GB156478@google.com \
--to=helgaas@kernel.org \
--cc=fred@fredlawl.com \
--cc=hkallweit1@gmail.com \
--cc=linux-pci@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.