From: Frederic Barrat <fbarrat@linux.ibm.com>
To: Daniel Henrique Barboza <danielhb413@gmail.com>, qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, clg@kaod.org
Subject: Re: [PATCH for-7.2 00/10] enable pnv-phb user created devices
Date: Fri, 5 Aug 2022 13:06:09 +0200 [thread overview]
Message-ID: <b6744c79-c07a-c26c-3243-a939e7cde380@linux.ibm.com> (raw)
In-Reply-To: <20220803134459.2633902-1-danielhb413@gmail.com>
Hi Daniel,
Other than my comment on patch 6 regarding the qom parenting of the root
port, that series looks pretty good to me!
Fred
On 03/08/2022 15:44, Daniel Henrique Barboza wrote:
> Hi,
>
> This is a rebase on top of ppc-7.2 of the previous patches sent
> here:
>
> https://lists.gnu.org/archive/html/qemu-devel/2022-07/msg01542.html
>
> Now that we have the pnv-phb rework in the tree.
>
> As a recap, the changes introduced in this series compared to what we've
> done in "[PATCH v2 00/16] powernv: introduce pnv-phb base/proxy
> devices" [1], is:
>
> - the Root Buses objects are now inheriting phb-id and chip-id. This
> turned out to be a clean way of keeping the code QOM compliant, without
> having to do things like dev->parent_bus->parent. All the attributes
> that the root port needs are found in its bus parent;
>
> - the logic exclusive to user created devices is all centered in a
> single helper inside pnv-phb realize(). PHB3/PHB4 realize() are
> oblivious to whether the device is user created or not. I believe this
> approach is clearer than what I was doing before.
>
> [1] https://lists.gnu.org/archive/html/qemu-devel/2022-05/msg06254.html
>
> Daniel Henrique Barboza (10):
> ppc/pnv: add phb-id/chip-id PnvPHB3RootBus properties
> ppc/pnv: add phb-id/chip-id PnvPHB4RootBus properties
> ppc/pnv: set root port chassis and slot using Bus properties
> ppc/pnv: add helpers for pnv-phb user devices
> ppc/pnv: turn chip8->phbs[] into a PnvPHB* array
> ppc/pnv: enable user created pnv-phb for powernv8
> ppc/pnv: add PHB4 helpers for user created pnv-phb
> ppc/pnv: enable user created pnv-phb powernv9
> ppc/pnv: change pnv_phb4_get_pec() to also retrieve chip10->pecs
> ppc/pnv: user creatable pnv-phb for powernv10
>
> hw/pci-host/pnv_phb.c | 166 ++++++++++++++++++++++++++++++---
> hw/pci-host/pnv_phb3.c | 50 ++++++++++
> hw/pci-host/pnv_phb4.c | 51 ++++++++++
> hw/pci-host/pnv_phb4_pec.c | 6 +-
> hw/ppc/pnv.c | 30 +++++-
> include/hw/pci-host/pnv_phb3.h | 9 +-
> include/hw/pci-host/pnv_phb4.h | 10 ++
> include/hw/ppc/pnv.h | 6 +-
> 8 files changed, 308 insertions(+), 20 deletions(-)
>
prev parent reply other threads:[~2022-08-05 11:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-03 13:44 [PATCH for-7.2 00/10] enable pnv-phb user created devices Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 01/10] ppc/pnv: add phb-id/chip-id PnvPHB3RootBus properties Daniel Henrique Barboza
2022-08-03 16:22 ` Cédric Le Goater
2022-08-03 13:44 ` [PATCH for-7.2 02/10] ppc/pnv: add phb-id/chip-id PnvPHB4RootBus properties Daniel Henrique Barboza
2022-08-03 16:22 ` Cédric Le Goater
2022-08-03 13:44 ` [PATCH for-7.2 03/10] ppc/pnv: set root port chassis and slot using Bus properties Daniel Henrique Barboza
2022-08-03 16:25 ` Cédric Le Goater
2022-08-03 13:44 ` [PATCH for-7.2 04/10] ppc/pnv: add helpers for pnv-phb user devices Daniel Henrique Barboza
2022-08-05 10:41 ` Frederic Barrat
2022-08-08 11:04 ` Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 05/10] ppc/pnv: turn chip8->phbs[] into a PnvPHB* array Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 06/10] ppc/pnv: enable user created pnv-phb for powernv8 Daniel Henrique Barboza
2022-08-05 10:50 ` Frederic Barrat
2022-08-08 16:50 ` Daniel Henrique Barboza
2022-08-08 23:30 ` Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 07/10] ppc/pnv: add PHB4 helpers for user created pnv-phb Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 08/10] ppc/pnv: enable user created pnv-phb powernv9 Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 09/10] ppc/pnv: change pnv_phb4_get_pec() to also retrieve chip10->pecs Daniel Henrique Barboza
2022-08-03 13:44 ` [PATCH for-7.2 10/10] ppc/pnv: user creatable pnv-phb for powernv10 Daniel Henrique Barboza
2022-08-05 11:06 ` Frederic Barrat [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=b6744c79-c07a-c26c-3243-a939e7cde380@linux.ibm.com \
--to=fbarrat@linux.ibm.com \
--cc=clg@kaod.org \
--cc=danielhb413@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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 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).