From: Nicholas Piggin <npiggin@gmail.com>
To: Joel Stanley <joel@jms.id.au>
Cc: opensbi@lists.infradead.org
Subject: Re: [PATCH 4/4] platform: generic: tenstorrent: Add RISC-V IOMMU support
Date: Thu, 23 Apr 2026 11:01:24 +1000 [thread overview]
Message-ID: <aelvClhzx8JMr_Ca@lima-default> (raw)
In-Reply-To: <CACPK8Xf4HHF1immMSW632KmAuwRc+7nuvhXnLyuVNPvdO7Lg-w@mail.gmail.com>
On Wed, Apr 01, 2026 at 11:21:04PM +1030, Joel Stanley wrote:
> On Tue, 10 Mar 2026 at 11:19, Nicholas Piggin <npiggin@gmail.com> wrote:
>
> > --- /dev/null
> > +++ b/platform/generic/tenstorrent/iommu.c
>
> > +int tt_iommu_fdt_configure(const void *fdt)
> > +{
> > + const char *compatible = "tenstorrent,riscv-iommu";
> > + bool found_dt = false;
> > + int offset = -1;
> > +
> > + for (;;) {
> > + uint64_t addr, size;
> > + int rc;
> > +
> > + offset = fdt_node_offset_by_compatible(fdt, offset, compatible);
> > + if (offset < 0)
> > + break;
> > +
> > + rc = fdt_get_node_addr_size_by_name(fdt, offset, "machine",
> > + &addr, &size);
> > + if (rc < 0 || !size) {
> > + sbi_printf("tenstorrent,riscv-iommu did not find "
> > + "machine regs\n");
> > + continue;
> > + }
> > +
> > + if (size < RISCV_IOMMU_REG_MACHINE_SIZE) {
> > + sbi_printf("tenstorrent,riscv-iommu@0x%016lx "
> > + " machine regs region too small\n", addr);
> > + continue;
> > + }
>
> should this set found_dt = true here?
Yes it should.
Thanks,
Nick
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
prev parent reply other threads:[~2026-04-23 1:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 0:49 [PATCH 1/4] platform: generic: Tenstorrent Atlantis support Nicholas Piggin
2026-03-10 0:49 ` [PATCH 2/4] lib: sbi: Move PMP encoding into a new file Nicholas Piggin
2026-04-01 12:50 ` Joel Stanley
2026-04-23 0:59 ` Nicholas Piggin
2026-03-10 0:49 ` [PATCH 3/4] lib: sbi: Add hart_ prefix to PMP functions Nicholas Piggin
2026-04-01 12:50 ` Joel Stanley
2026-03-10 0:49 ` [PATCH 4/4] platform: generic: tenstorrent: Add RISC-V IOMMU support Nicholas Piggin
2026-04-01 12:51 ` Joel Stanley
2026-04-23 1:01 ` Nicholas Piggin [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=aelvClhzx8JMr_Ca@lima-default \
--to=npiggin@gmail.com \
--cc=joel@jms.id.au \
--cc=opensbi@lists.infradead.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