linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Nicholas Johnson <nicholas.johnson-opensource@outlook.com.au>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	Mika Westerberg <mika.westerberg@linux.intel.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Logan Gunthorpe <logang@deltatee.com>
Subject: Re: [PATCH v12 0/4] PCI: Patch series to improve Thunderbolt enumeration
Date: Fri, 20 Dec 2019 08:38:56 -0600	[thread overview]
Message-ID: <20191220143856.GA92795@google.com> (raw)
In-Reply-To: <PSXP216MB043888F94710A361E4D84DFF802D0@PSXP216MB0438.KORP216.PROD.OUTLOOK.COM>

On Fri, Dec 20, 2019 at 08:50:14AM +0000, Nicholas Johnson wrote:
> On Thu, Dec 19, 2019 at 06:03:58PM -0600, Bjorn Helgaas wrote:
> > On Wed, Dec 18, 2019 at 12:54:25AM +0000, Nicholas Johnson wrote:
> > > On Tue, Dec 17, 2019 at 09:12:48AM -0600, Bjorn Helgaas wrote:
> > > > On Mon, Dec 09, 2019 at 12:59:29PM +0000, Nicholas Johnson wrote:

> > > > > Nicholas Johnson (4):
> > > > >   PCI: Consider alignment of hot-added bridges when distributing
> > > > >     available resources
> Prevent failure to assign hot-added Thunderbolt PCI BARs with alignment >1M 
> 
> > > > >   PCI: In extend_bridge_window() change available to new_size
> Change variable name in extend_bridge_window() to better reflect its 
> purpose
> 
> ^ I would have preferred this not be its own commit. Is it too late to 
> squash it back together with patch 3/4?

Not too late; it's trivial to squash it.  I consider these branches to
be drafts, subject to revision until I ask Linus to pull them.

But ... why?  In general, the smaller the patch the better.

> > Basically, I'm not comfortable asking Linus to pull material unless I
> > can explain what the benefit is.  I'm still struggling to articulate
> > the benefit in this case.  I think it makes hotplug work better in
> > some cases where we need more alignment than we currently have, but
> > that's pretty sketchy.
>
> In my opinion, fixing failure to assign is a clear reason to merge, 
> especially when the failure will result in a user wondering why the 
> device they plugged in does not work.

Sure.  But there's nothing specific in the commit logs about what the
problem is and how these fix it.

For example, I think the first patch ("PCI: Consider alignment of
hot-added bridges when distributing available resources") is something
to do with increasing the alignment of bridge windows to account for
descendants that require greater alignment.

But the log says "Rewrite pci_bus_distribute_available_resources to
better handle bridges with different resource alignment requirements."
That says nothing about what the problem was or how you fix it.

Ideally that patch would very specifically change *alignment* details.
It currently also contains a bunch of other changes (interface change,
removing "b" in favor "dev->subordinate", etc).  These make the patch
bigger and harder to understand and justify.  Some of these lead up to
the alignment change but possibly could be split to separate patches.

Bjorn

  parent reply	other threads:[~2019-12-20 14:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-09 12:59 [PATCH v12 0/4] PCI: Patch series to improve Thunderbolt enumeration Nicholas Johnson
2019-12-10 21:38 ` Bjorn Helgaas
2019-12-12 10:23   ` Nicholas Johnson
2019-12-13 18:04     ` Bjorn Helgaas
2019-12-17 15:12 ` Bjorn Helgaas
2019-12-18  0:54   ` Nicholas Johnson
2019-12-20  0:03     ` Bjorn Helgaas
2019-12-20  8:50       ` Nicholas Johnson
2019-12-20 10:18         ` Mika Westerberg
2019-12-20 14:38         ` Bjorn Helgaas [this message]
2019-12-21  5:48           ` Nicholas Johnson

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=20191220143856.GA92795@google.com \
    --to=helgaas@kernel.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=logang@deltatee.com \
    --cc=mika.westerberg@linux.intel.com \
    --cc=nicholas.johnson-opensource@outlook.com.au \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).