All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Derrick <jonathan.derrick@intel.com>
To: <linux-pci@vger.kernel.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Bjorn Helgaas <helgaas@kernel.org>,
	Andrzej Jakowski <andrzej.jakowski@linux.intel.com>,
	Dave Fugate <david.fugate@intel.com>,
	Jon Derrick <jonathan.derrick@intel.com>
Subject: [PATCH 0/3] PCI: Minimizing resource assignment algorithm
Date: Sun, 27 Sep 2020 21:06:06 -0400	[thread overview]
Message-ID: <20200928010609.5375-1-jonathan.derrick@intel.com> (raw)

This set adds a minimizing resource assignment algorithm. VMD domains
frequently have issues with default hotplug settings and large arrays of
drives such as those in JBOFs. This algorithm uses the default or
user-specified hotplug resource settings, then tries with minimal
settings using 256 for IO, and 1MB for MMIO and Prefetch, and finally
tries without additional hotplug resources as if the bridge were not
hotplug capable.

This set allows a resource constrained domain to at the very least
enumerate and attach drivers to devices, though may not result in
supportable hotplug slot if a device is not already occupied in the
slot.

Jon Derrick (3):
  PCI: Create helper to release/restore bridge resources
  PCI: Introduce a minimizing assignment algorithm
  PCI: vmd: Wire up VMD for fallback resource assignment

 drivers/pci/controller/vmd.c |   2 +-
 drivers/pci/setup-bus.c      | 147 ++++++++++++++++++++++++++++-------
 include/linux/pci.h          |   2 +
 3 files changed, 124 insertions(+), 27 deletions(-)

-- 
2.18.1


             reply	other threads:[~2020-09-28  1:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28  1:06 Jon Derrick [this message]
2020-09-28  1:06 ` [PATCH 1/3] PCI: Create helper to release/restore bridge resources Jon Derrick
2020-09-28  1:06 ` [PATCH 2/3] PCI: Introduce a minimizing assignment algorithm Jon Derrick
2020-09-28  7:17   ` Christoph Hellwig
2020-09-28 13:34     ` Derrick, Jonathan
2020-09-29 17:48       ` hch
2020-09-28  1:06 ` [PATCH 3/3] PCI: vmd: Wire up VMD for fallback resource assignment Jon Derrick
2020-09-28  7:16 ` [PATCH 0/3] PCI: Minimizing resource assignment algorithm Christoph Hellwig

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=20200928010609.5375-1-jonathan.derrick@intel.com \
    --to=jonathan.derrick@intel.com \
    --cc=andrzej.jakowski@linux.intel.com \
    --cc=david.fugate@intel.com \
    --cc=helgaas@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    /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.