From: "Michael S. Tsirkin" <mst@redhat.com>
To: arei.gonglei@huawei.com
Cc: peter.crosthwaite@xilinx.com, weidong.huang@huawei.com,
marcel.a@redhat.com, armbru@redhat.com, luonengjun@huawei.com,
qemu-devel@nongnu.org, peter.huangpeng@huawei.com,
imammedo@redhat.com, pbonzini@redhat.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCH 0/2] add check for PCIe root ports and downstream ports
Date: Tue, 19 Aug 2014 23:23:41 +0200 [thread overview]
Message-ID: <20140819212341.GB10354@redhat.com> (raw)
In-Reply-To: <1408453707-9972-1-git-send-email-arei.gonglei@huawei.com>
On Tue, Aug 19, 2014 at 09:08:25PM +0800, arei.gonglei@huawei.com wrote:
> From: Gonglei <arei.gonglei@huawei.com>
>
> Root ports and downstream ports of switches are the hot
> pluggable ports in a PCI Express hierarchy.
> PCI Express supports chip-to-chip interconnect, a PCIe link can
> only connect one pci device/Switch/EndPoint or PCI-bridge.
>
> 7.3. Configuration Transaction Rules (PCI Express specification 3.0)
> 7.3.1. Device Number
>
> Downstream Ports that do not have ARI Forwarding enabled must
> associate only Device 0 with the device attached to the Logical Bus
> representing the Link from the Port.
>
> Right now, ARI Forwarding dose not support. So, only slot 0 is
> supported, regardless of hotplug or coldplug.
I'd rather we added ARI support in bridges (if that's
what you mean) than APIs for the sole purpose of
disabling functionality we'll want to re-enable later.
We have the beginning of an implementation for ARI (pcie_ari_init).
> So, adding check about slot 0 for PCIe downstream ports and
> root ports, which avoid useless operation, both hotplug and
> coldplug.
>
> Gonglei (2):
> qdev: Introduce a function to get qbus's parent
> pci: add check for pcie root ports and downstream ports
>
> hw/core/qdev.c | 7 +++++++
> hw/pci/pci.c | 41 +++++++++++++++++++++++++++++++++++++++++
> include/hw/qdev-core.h | 1 +
> 3 files changed, 49 insertions(+)
>
> --
> 1.7.12.4
>
next prev parent reply other threads:[~2014-08-19 21:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-19 13:08 [Qemu-devel] [PATCH 0/2] add check for PCIe root ports and downstream ports arei.gonglei
2014-08-19 13:08 ` [Qemu-devel] [PATCH 1/2] qdev: Introduce a function to get qbus's parent arei.gonglei
2014-08-19 13:08 ` [Qemu-devel] [PATCH 2/2] pci: add check for pcie root ports and downstream ports arei.gonglei
2014-08-19 14:37 ` Marcel Apfelbaum
2014-08-19 15:09 ` Paolo Bonzini
2014-08-20 3:10 ` Gonglei (Arei)
2014-08-20 3:20 ` Gonglei (Arei)
2014-08-20 8:47 ` Marcel Apfelbaum
2014-08-20 9:06 ` Gonglei (Arei)
2014-08-19 21:23 ` Michael S. Tsirkin [this message]
2014-08-20 3:03 ` [Qemu-devel] [PATCH 0/2] add check for PCIe " Gonglei (Arei)
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=20140819212341.GB10354@redhat.com \
--to=mst@redhat.com \
--cc=afaerber@suse.de \
--cc=arei.gonglei@huawei.com \
--cc=armbru@redhat.com \
--cc=imammedo@redhat.com \
--cc=luonengjun@huawei.com \
--cc=marcel.a@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.huangpeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=weidong.huang@huawei.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).