Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3272405ybl; Fri, 20 Dec 2019 06:40:06 -0800 (PST) X-Google-Smtp-Source: APXvYqy4PRWN3wubbx2NEBsSEj7rRBVe73408pYyZZMWzFU5IKA+gFr6boz2BaNR+h5oCflhesZA X-Received: by 2002:aca:d4ca:: with SMTP id l193mr4053457oig.133.1576852806167; Fri, 20 Dec 2019 06:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576852806; cv=none; d=google.com; s=arc-20160816; b=px/u7Wa7keLWikHq6T9oa9ast1Bz9XQOhnvBb7p4bsoZ4I/VhxM6eZKcCrAU9VhEAt 0+BnktK1jYZd6ys/la+Xs4vsvzIYNY3nWxWCozRxP+wyviIw1K9/gvX/qS2tkb4Leey+ /imgi12LhZbQVtq4OhA5Hi7hBxnnsvdyOw0WMQI9J2YXSt/o0S3Hb764gz71jxL4VjpW pyXXeCn2Iw8lcGSjPouV8FcBTHca8LcQ5xNt6mIXnXDwScsPM7GxplwccRdUJ2D7J1i0 NynpW7N2NCHt7bMkxTMPulO/OeSMOxUjZCHJZvQEF5IkxcVYW3AhgixeyEp0qKz1Q54s vGLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=aDC3WMdpWVrFZqHIRccHwCb0ygnGTBuzNfoZy/UYXWU=; b=sL1pRed2I2yJP+Dsd9FhpdF4oo7e+N+uKortSEQTYZm7bvkT+kL1cKVgI928bQb+wb /GuzY6BVR/9uAudodt9JHo+8b9RwyZpGheRVe+ZmOR65MGOCftP8E0wAaJtLAiwurZqf 9s4lMuxJw7jHhhsg8h4x7nxGNeHIhOt7d5HxcxiVj8wMoD1wg+iF9HFnm2XBP38BgBk6 GvSSuBbTX5E3CZzl5nArhNdlk+w7HskL8XRXfZSq40WPyMo5jB93gwPhW2zMAmIxKFEh akIEayMEfmlcL1ptvyBkes7kJIBVuzYrbEVp8v5So1Kcgb0nOuA89eTapRQfuGGRzeVK vItQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S34cSLnz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si131351oiw.55.2019.12.20.06.39.54; Fri, 20 Dec 2019 06:40:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=S34cSLnz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728262AbfLTOjH (ORCPT + 99 others); Fri, 20 Dec 2019 09:39:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:43068 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727501AbfLTOi7 (ORCPT ); Fri, 20 Dec 2019 09:38:59 -0500 Received: from localhost (mobile-166-170-223-177.mycingular.net [166.170.223.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F53E222C2; Fri, 20 Dec 2019 14:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576852738; bh=Q0oWbWwjhrJYvZiFi0omMIk0e9XmFnsXGySlMCDM7Po=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=S34cSLnz12brD6nSM5Rwvixbj3fIdNLvk2cQmB4xCXmZqVEaPjAbPBX1kurbLh00D 4NIaxKUGoxQIx9HF316jcCLSslG/mXt8hOzpLFgv1/jjGodLeIhyiHu0RuDEHyQBod VYNRotRitMSXsFa32ko6DYaBtMj6FZJsmiiP9a64= Date: Fri, 20 Dec 2019 08:38:56 -0600 From: Bjorn Helgaas To: Nicholas Johnson Cc: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , Mika Westerberg , Benjamin Herrenschmidt , Logan Gunthorpe Subject: Re: [PATCH v12 0/4] PCI: Patch series to improve Thunderbolt enumeration Message-ID: <20191220143856.GA92795@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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