From: Mathias Koehrer <mathias.koehrer@etas.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"bhelgaas@google.com" <bhelgaas@google.com>
Subject: [PATCH] Extending kernel option pci=resource_alignment to be able to specify PCI device/vendor IDs - Documentation
Date: Tue, 9 Aug 2016 10:33:31 +0200 [thread overview]
Message-ID: <57A9955B.1050705@etas.com> (raw)
In-Reply-To: <20160808140127.GA14630@localhost>
Extend the documentation for kernel option pci=resource_alignment
Some uio based PCI drivers (e.g. uio_cif) do not work if the assigned
PCI memory resources are not page aligned.
By using the kernel option "pci=resource_alignment" it is possible to force
single PCI boards to use page alignment for their memory resources.
However, this is fairly cumbersome if multiple of these boards are in use as
the specification of the cards has to be done via PCI bus/slot/function number
which might change e.g. by adding another board.
This patch extends the kernel option "pci=resource_alignment" to allow to
specify the relevant boards via PCI device/vendor (and subdevice/subvendor) ids.
The specification of the devices via device/vendor is indicated by a leading
string "pci:" as argument to "pci=resource_alignment".
The format of the specification is
pci:<vendor>:<device>[:<subvendor>:<subdevice>]
Examples:
pci=resource_alignment=4096@pci:1234:abcd:1234:bcde
pci=resource_alignment=pci:1234:abcd
Signed-off-by: Mathias Koehrer <mathias.koehrer@etas.com>
---
pci/Documentation/kernel-parameters.txt | 3 +++
1 file changed, 3 insertions(+)
Index: linux-pci-git/pci/Documentation/kernel-parameters.txt
===================================================================
--- linux-pci-git.orig/pci/Documentation/kernel-parameters.txt
+++ linux-pci-git/pci/Documentation/kernel-parameters.txt
@@ -3032,6 +3032,9 @@ bytes respectively. Such letter suffixes
PAGE_SIZE is used as alignment.
PCI-PCI bridge can be specified, if resource
windows need to be expanded.
+ To specify the alignment for certain types of devices, the
+ PCI vendor/device (and subvendor/subdevice) may be
+ specified. E.g. 4096@pci:1234:abcd:1234:bcde
ecrc= Enable/disable PCIe ECRC (transaction layer
end-to-end CRC checking).
bios: Use BIOS/firmware settings. This is the
prev parent reply other threads:[~2016-08-09 8:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 7:39 [PATCH] Extending kernel option pci=resource_alignment to be able to specify PCI device/vendor IDs Koehrer Mathias (ETAS/ESW5)
2016-08-08 14:01 ` Bjorn Helgaas
2016-08-09 8:33 ` Mathias Koehrer [this message]
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=57A9955B.1050705@etas.com \
--to=mathias.koehrer@etas.com \
--cc=bhelgaas@google.com \
--cc=gregkh@linuxfoundation.org \
--cc=helgaas@kernel.org \
--cc=linux-pci@vger.kernel.org \
/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.