From: Nam Cao <namcao@linutronix.de>
To: Claudiu <claudiu.beznea@tuxon.dev>,
marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com,
lpieralisi@kernel.org, kwilczynski@kernel.org, mani@kernel.org,
robh@kernel.org, bhelgaas@google.com, geert+renesas@glider.be,
magnus.damm@gmail.com, tglx@linutronix.de
Cc: claudiu.beznea@tuxon.dev, linux-pci@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Subject: Re: [PATCH] PCI: rcar-host: Use proper IRQ domain
Date: Sat, 09 Aug 2025 17:18:01 +0200 [thread overview]
Message-ID: <87zfc8h6c6.fsf@yellow.woof> (raw)
In-Reply-To: <20250809144447.3939284-1-claudiu.beznea.uj@bp.renesas.com>
Claudiu <claudiu.beznea@tuxon.dev> writes:
> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
>
> Starting with commit dd26c1a23fd5 ("PCI: rcar-host: Switch to
> msi_create_parent_irq_domain()"), the MSI parent IRQ domain is NULL because
> the object of type struct irq_domain_info passed to:
>
> msi_create_parent_irq_domain() ->
> irq_domain_instantiate()() ->
> __irq_domain_instantiate()
>
> has no reference to the parent IRQ domain. Using msi->domain->parent as an
> argument for generic_handle_domain_irq() leads to a "Unable to handle
> kernel NULL pointer dereference at virtual address" error.
Right. Before that commit, msi->domain is the domain of the children PCI
devices, and msi->domain->parent is the domain of this device.
That commit changed msi->domain to be the domain of this
device. msi->domain->parent does not exist anymore.
drivers/pci/controller/pcie-xilinx.c has the same issue, let me send a
patch..
> This error was identified while switching the upcoming RZ/G3S PCIe host
> controller driver to msi_create_parent_irq_domain() (which was using a
> similar pattern to handle MSIs (see link section)), but it was not tested
> on hardware using the pcie-rcar-host controller driver due to lack of
> hardware.
>
> Link: https://lore.kernel.org/all/20250704161410.3931884-6-claudiu.beznea.uj@bp.renesas.com/
> Fixes: dd26c1a23fd5 ("PCI: rcar-host: Switch to msi_create_parent_irq_domain()")
> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Reviewed-by: Nam Cao <namcao@linutronix.de>
next prev parent reply other threads:[~2025-08-09 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-09 14:44 Claudiu
2025-08-09 15:18 ` Nam Cao [this message]
2025-08-27 7:35 ` Manivannan Sadhasivam
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=87zfc8h6c6.fsf@yellow.woof \
--to=namcao@linutronix.de \
--cc=bhelgaas@google.com \
--cc=claudiu.beznea.uj@bp.renesas.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=geert+renesas@glider.be \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mani@kernel.org \
--cc=marek.vasut+renesas@gmail.com \
--cc=robh@kernel.org \
--cc=tglx@linutronix.de \
--cc=yoshihiro.shimoda.uh@renesas.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
all inboxes | Powered by JetHome®