From: Laszlo Ersek <lersek@redhat.com>
To: Aleksandr Bezzubikov <zuban32s@gmail.com>, qemu-devel@nongnu.org
Cc: marcel@redhat.com, seabios@seabios.org, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH v5 4/4] docs: update documentation considering PCIE-PCI bridge
Date: Fri, 11 Aug 2017 12:11:11 +0200 [thread overview]
Message-ID: <dfd69208-f498-7156-a901-4275fec72e2b@redhat.com> (raw)
In-Reply-To: <1502407863-23182-5-git-send-email-zuban32s@gmail.com>
On 08/11/17 01:31, Aleksandr Bezzubikov wrote:
> +PCIE-PCI bridge hot-plug
> +=======================
> +Guest OSes require extra efforts to enable PCIE-PCI bridge hot-plug.
> +Motivation - now on init any PCI Express root port which doesn't have
> +any device plugged in, has no free buses reserved to provide any of them
> +to a hot-plugged devices in future.
> +
> +To solve this problem we reserve additional buses on a firmware level.
> +Currently only SeaBIOS is supported.
> +The way of bus number to reserve delivery is special
> +Red Hat vendor-specific PCI capability, added to the root port
> +that is planned to have PCIE-PCI bridge hot-plugged in.
> +
> +Capability layout (defined in include/hw/pci/pci_bridge.h):
> +
> + uint8_t id; Standard PCI capability header field
> + uint8_t next; Standard PCI capability header field
> + uint8_t len; Standard PCI vendor-specific capability header field
> +
> + uint8_t type; Red Hat vendor-specific capability type
> + List of currently existing types:
> + RESOURCE_RESERVE = 1
> +
> +
> + uint32_t bus_res; Minimum number of buses to reserve
> +
> + uint64_t io; IO space to reserve
> + uint32_t mem Non-prefetchable memory to reserve
> +
> + This two fields are mutually exclusive:
[*] mark this
> + uint32_t mem_pref_32; Prefetchable memory to reserve (32-bit MMIO)
> + uint64_t mem_pref_64; Prefetchable memory to reserve (64-bit MMIO)
> +
> +If any reservation field is -1 then this kind of reservation is not
> +needed and must be ignored by firmware.
> +
> +mem_pref_* fields mutual exclusiveness means they cannot be -1 both.
Please drop the last sentence; it is perfectly possible that a bridge
doesn't need either 32-bit or 64-bit prefetchable MMIO reservation.
"Mutually exclusive" usually means "at most one", not "exactly one".
(E.g., think of the "mutex" construct -- in the critical section being
protected by the mutex, there can be Thread 1, Thread 2, or none of them.)
So, beyond dropping the last sentence, I suggest to replace the one
marked with [*] with the following, for clarity:
At most one of the following two fields may be set to a value
different from -1:
With this update, for this patch:
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Thanks!
Laszlo
next prev parent reply other threads:[~2017-08-11 10:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 23:30 [Qemu-devel] [PATCH v5 0/4] Generic PCIE-PCI Bridge Aleksandr Bezzubikov
2017-08-10 23:31 ` [Qemu-devel] [PATCH v5 1/4] hw/pci: introduce pcie-pci-bridge device Aleksandr Bezzubikov
2017-08-13 10:31 ` Marcel Apfelbaum
2017-08-10 23:31 ` [Qemu-devel] [PATCH v5 2/4] hw/pci: introduce bridge-only vendor-specific capability to provide some hints to firmware Aleksandr Bezzubikov
2017-08-13 10:39 ` Marcel Apfelbaum
2017-08-10 23:31 ` [Qemu-devel] [PATCH v5 3/4] hw/pci: add QEMU-specific PCI capability to the Generic PCI Express Root Port Aleksandr Bezzubikov
2017-08-10 23:31 ` [Qemu-devel] [PATCH v5 4/4] docs: update documentation considering PCIE-PCI bridge Aleksandr Bezzubikov
2017-08-11 10:11 ` Laszlo Ersek [this message]
2017-08-13 10:52 ` Marcel Apfelbaum
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=dfd69208-f498-7156-a901-4275fec72e2b@redhat.com \
--to=lersek@redhat.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.org \
--cc=zuban32s@gmail.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).