From: Peter Maydell <peter.maydell@linaro.org>
To: Aditya Gupta <adityag@linux.ibm.com>
Cc: Shivang Upadhyay <shivangu@linux.ibm.com>,
qemu-ppc@nongnu.org, qemu-devel@nongnu.org, npiggin@gmail.com,
milesg@linux.ibm.com, Harsh Prateek Bora <harshpb@linux.ibm.com>,
BALATON Zoltan <balaton@eik.bme.hu>,
qemu-stable@nongnu.org, Nathan Chancellor <nathan@kernel.org>
Subject: Re: [PATCH] ppc/pnv: generate dtb after machine initialization is complete
Date: Thu, 26 Mar 2026 11:25:45 +0000 [thread overview]
Message-ID: <CAFEAcA-f+XQPgQ+udz9ts-V51E+jqBHwKpPsh=oArfs1d19wfg@mail.gmail.com> (raw)
In-Reply-To: <acUTurZoQJf8jRhJ@li-3c92a0cc-27cf-11b2-a85c-b804d9ca68fa.ibm.com>
On Thu, 26 Mar 2026 at 11:16, Aditya Gupta <adityag@linux.ibm.com> wrote:
> But still the dts we have is different from what we should have at
> pnv_reset. Adding a pnv_dt_create at the end of pnv_reset, as it used to
> be before, gives me a 'bmc' node also in device tree.
>
> $ diff /tmp/dts.machinedone /tmp/dts.pnvreset
> 16a17,33
> > bmc {
> >
> > sensors {
> > #size-cells = <0x00>;
> > #address-cells = <0x01>;
> >
> > sensor@0 {
> > ipmi-sensor-type = <0x23>;
> > ipmi-entity-instance = <0x01>;
> > ipmi-entity-id = <0x23>;
> > ipmi-sensor-reading-type = <0x6f>;
> > compatible = "ibm,ipmi-sensor";
> > reg = <0x00>;
> > };
> > };
> > };
> >
>
> This isn't handled at machine_init_done as 'pnv->bmc' is not set at this
> time
>
> Two ways to fix it:
> 1. Have pnv_dt_create in pnv_reset as well, like previously
> 2. Move the pnv_bmc_find code in pnv_reset to pnv_init
>
> What do you say ?
My feeling would be that the pnv_bmc_find() handling
should move to the machine-init-done notifier. (pnv_init()
would be too early -- the pnv_bmc_find() code is looking
for a device that has been added via the -device command
line option, so it won't be there yet in pnv_init().)
-- PMM
next prev parent reply other threads:[~2026-03-26 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 13:50 [PATCH] ppc/pnv: generate dtb after machine initialization is complete Shivang Upadhyay
2026-03-24 13:54 ` Peter Maydell
2026-03-24 19:22 ` Nathan Chancellor
2026-03-26 11:16 ` Aditya Gupta
2026-03-26 11:25 ` Peter Maydell [this message]
2026-03-26 11:55 ` Aditya Gupta
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='CAFEAcA-f+XQPgQ+udz9ts-V51E+jqBHwKpPsh=oArfs1d19wfg@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=adityag@linux.ibm.com \
--cc=balaton@eik.bme.hu \
--cc=harshpb@linux.ibm.com \
--cc=milesg@linux.ibm.com \
--cc=nathan@kernel.org \
--cc=npiggin@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=shivangu@linux.ibm.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