linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michał Winiarski" <michal.winiarski@intel.com>
To: <linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>
Cc: "Christian König" <christian.koenig@amd.com>,
	"Ard Biesheuvel" <ardb@kernel.org>,
	"Michael J . Ruhl" <michael.j.ruhl@intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Michał Winiarski" <michal.winiarski@intel.com>
Subject: [PATCH 0/2] PCI: VF resizable BAR
Date: Wed, 15 Dec 2021 15:16:24 +0100	[thread overview]
Message-ID: <20211215141626.3090807-1-michal.winiarski@intel.com> (raw)

For regular BAR, drivers can use pci_resize_resource to resize it to the desired
size provided that it is supported by the hardware, which the driver can query
using pci_rebar_get_possible_sizes.
This series expands the API to work with IOV BAR as well.

Thanks!
-Michał

Michał Winiarski (2):
  PCI: Add support for VF Resizable Bar extended cap
  PCI: Don't fail BAR resize if nothing is reassigned

 drivers/pci/pci.c             | 25 ++++++++++++++--
 drivers/pci/setup-res.c       | 55 +++++++++++++++++++++++++++++++----
 include/uapi/linux/pci_regs.h |  1 +
 3 files changed, 73 insertions(+), 8 deletions(-)

-- 
2.34.0


             reply	other threads:[~2021-12-15 14:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-15 14:16 Michał Winiarski [this message]
2021-12-15 14:16 ` [PATCH 1/2] PCI: Add support for VF Resizable Bar extended cap Michał Winiarski
2021-12-16  0:21   ` Krzysztof Wilczyński
2021-12-17 12:38     ` Michał Winiarski
2021-12-16  7:50   ` Christian König
2021-12-17 10:58     ` Michał Winiarski
2021-12-15 14:16 ` [PATCH 2/2] PCI: Don't fail BAR resize if nothing is reassigned Michał Winiarski
2021-12-16  7:12   ` Christian König
2021-12-17 11:23     ` Michał Winiarski
2021-12-17 12:45       ` Christian König

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=20211215141626.3090807-1-michal.winiarski@intel.com \
    --to=michal.winiarski@intel.com \
    --cc=ardb@kernel.org \
    --cc=bhelgaas@google.com \
    --cc=christian.koenig@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=michael.j.ruhl@intel.com \
    --cc=rodrigo.vivi@intel.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).