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 3/3] PCI: vmd: Wire up VMD for fallback resource assignment
Date: Sun, 27 Sep 2020 21:06:09 -0400 [thread overview]
Message-ID: <20200928010609.5375-4-jonathan.derrick@intel.com> (raw)
In-Reply-To: <20200928010609.5375-1-jonathan.derrick@intel.com>
The VMD subdevice domain would prefer all devices be assigned resources
and working rather than a few or none assigned, but with valid hotplug
bridge resources. The resource assignment fallback algorithm works best
for these requirements.
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
---
drivers/pci/controller/vmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/vmd.c b/drivers/pci/controller/vmd.c
index fdc1a206f73e..4debc547c813 100644
--- a/drivers/pci/controller/vmd.c
+++ b/drivers/pci/controller/vmd.c
@@ -777,7 +777,7 @@ static int vmd_enable_domain(struct vmd_dev *vmd, unsigned long features)
dev_set_msi_domain(&vmd->bus->dev, vmd->irq_domain);
pci_scan_child_bus(vmd->bus);
- pci_assign_unassigned_bus_resources(vmd->bus);
+ pci_bus_assign_resources_fallback_sizing(vmd->bus);
/*
* VMD root buses are virtual and don't return true on pci_is_pcie()
--
2.18.1
next prev parent 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 [PATCH 0/3] PCI: Minimizing resource assignment algorithm Jon Derrick
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 ` Jon Derrick [this message]
2020-09-28 7:16 ` [PATCH 0/3] PCI: Minimizing resource " 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-4-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 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).