From: Markus Armbruster <armbru@redhat.com>
To: Bernhard Beschow <shentey@gmail.com>
Cc: qemu-devel@nongnu.org, "Eduardo Habkost" <eduardo@habkost.net>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Laurent Vivier" <laurent@vivier.eu>,
qemu-trivial@nongnu.org, qemu-arm@nongnu.org,
"Michael Tokarev" <mjt@tls.msk.ru>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Gaurav Sharma" <gaurav.sharma_7@nxp.com>
Subject: Re: [PATCH 2/5] hw/arm/fsl-imx8mp: Fix parent of ocram memory region
Date: Tue, 10 Mar 2026 10:54:29 +0100 [thread overview]
Message-ID: <871phsm2lm.fsf@pond.sub.org> (raw)
In-Reply-To: <20260308203516.160103-3-shentey@gmail.com> (Bernhard Beschow's message of "Sun, 8 Mar 2026 21:35:13 +0100")
Bernhard Beschow <shentey@gmail.com> writes:
> Rather than having a NULL parent, let the containing SoC object be the
> parent. This cleans up the QOM composition tree a bit.
>
> Fixes: 1aaf3478684f ("hw/arm/fsl-imx8mp: Add on-chip RAM")
> cc: Gaurav Sharma <gaurav.sharma_7@nxp.com>
> Signed-off-by: Bernhard Beschow <shentey@gmail.com>
> ---
> hw/arm/fsl-imx8mp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/arm/fsl-imx8mp.c b/hw/arm/fsl-imx8mp.c
> index 0119a18416..839c925e4a 100644
> --- a/hw/arm/fsl-imx8mp.c
> +++ b/hw/arm/fsl-imx8mp.c
> @@ -671,7 +671,7 @@ static void fsl_imx8mp_realize(DeviceState *dev, Error **errp)
> fsl_imx8mp_memmap[FSL_IMX8MP_PCIE_PHY1].addr);
>
> /* On-Chip RAM */
> - if (!memory_region_init_ram(&s->ocram, NULL, "imx8mp.ocram",
> + if (!memory_region_init_ram(&s->ocram, OBJECT(dev), "imx8mp.ocram",
> fsl_imx8mp_memmap[FSL_IMX8MP_OCRAM].size,
> errp)) {
> return;
This moves /machine/unattached/imx8mp.ocram[0] to
/machine/soc/imx8mp.ocram[0], as expected.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Aside: not sure why [0]. Might just be something memory regions do.
next prev parent reply other threads:[~2026-03-10 9:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 20:35 [PATCH 0/5] Trivial cleanup Bernhard Beschow
2026-03-08 20:35 ` [PATCH 1/5] hw/arm/fsl-imx8mp: Do not create redundant unimplemented devices Bernhard Beschow
2026-03-08 20:35 ` [PATCH 2/5] hw/arm/fsl-imx8mp: Fix parent of ocram memory region Bernhard Beschow
2026-03-10 9:54 ` Markus Armbruster [this message]
2026-03-10 10:00 ` Peter Maydell
2026-03-08 20:35 ` [PATCH 3/5] hw/arm/imx8mp-evk: Fix reference count of SoC object Bernhard Beschow
2026-03-08 20:35 ` [PATCH 4/5] system/vl: Fix reference count of machine object Bernhard Beschow
2026-03-08 20:35 ` [PATCH 5/5] Revert "sysbus: add irq_routing_notifier" Bernhard Beschow
2026-03-09 9:19 ` Cédric Le Goater
2026-03-08 21:27 ` [PATCH 0/5] Trivial cleanup Bernhard Beschow
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=871phsm2lm.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eduardo@habkost.net \
--cc=gaurav.sharma_7@nxp.com \
--cc=laurent@vivier.eu \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=shentey@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