From: Marc Zyngier <maz@kernel.org>
To: Chris Packham <judge.packham@gmail.com>
Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org>,
u-boot <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available
Date: Mon, 16 Oct 2023 12:21:19 +0100 [thread overview]
Message-ID: <87y1g2lsnk.wl-maz@kernel.org> (raw)
In-Reply-To: <CAFOYHZCNKJBv+J7dkoOjmPrfjr2TXB_vLqzKB2X4u0iwRpOCgA@mail.gmail.com>
On Mon, 16 Oct 2023 02:42:08 +0100,
Chris Packham <judge.packham@gmail.com> wrote:
>
> On Sun, Oct 15, 2023 at 10:29 AM Chris Packham <judge.packham@gmail.com> wrote:
> >
> >
> >
> > On Sat, 14 Oct 2023, 11:04 am Marc Zyngier, <maz@kernel.org> wrote:
> >>
> >> On 2023-10-13 03:40, Chris Packham wrote:
> >> > Hi Marc, Paul,
> >> >
> >> > On Sat, Mar 18, 2023 at 5:23 AM Ying-Chun Liu (PaulLiu)
> >> > <paul.liu@linaro.org> wrote:
> >> >>
> >> >> From: Marc Zyngier <maz@kernel.org>
> >> >>
> >> >> Some recent arm64 cores have a facility that allows the page
> >> >> table walker to track the dirty state of a page. This makes it
> >> >> really efficient to perform CMOs by VA as we only need to look
> >> >> at dirty pages.
> >> >>
> >> >> Signed-off-by: Marc Zyngier <maz@kernel.org>
> >> >> [ Paul: pick from the Android tree. Rebase to the upstream ]
> >> >> Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
> >> >> Cc: Tom Rini <trini@konsulko.com>
> >> >> Link:
> >> >> https://android.googlesource.com/platform/external/u-boot/+/3c433724e6f830a6b2edd5ec3d4a504794887263
> >> >
> >> > I think this may have caused a regression for the Marvell AC5X
> >> > board(s). I found that v2023.07 locked up at boot but v2023.01 was
> >> > fine. The lockup seemed to be in the 'Net:' init probably just as the
> >> > mvneta driver was being initialised.
> >> >
> >> > A git bisect led me to this change although for this specific change
> >> > instead of the lockup I get a crash so maybe I'm actually hitting a
> >> > different issue.
> >> >
> >> > Any thoughts as to why this may have caused problems?
> >>
> >> Not really. What CPUs does this platform have? What is the offending
> >> driver doing to trigger the issue? Can you provide some level of
> >> tracing?
> >
> >
> > The Marvell AC5X is a network switch ASIC with an integrated ARMv8 CPU (8.1 specifically I think).
> >
> > I think there is something that the mvneta driver is doing triggering the issue. I have another AC5X based board without an Ethernet port that boots just fine (this is also why I didn't notice earlier).
> >
> > I'll try and get some more debug out when I'm back in the office
> >
>
> The thing the mvneta driver does that upsets things appears to be
>
> mmu_set_region_dcache_behaviour((phys_addr_t)bd_space, BD_SPACE,
> DCACHE_OFF);
>
> I can comment that line out and everything works.
This leads to two questions:
- is the device cache coherent, in which case it doesn't need the
memory being non-cacheable? If everything is OK, then why the switch
to device memory?
- what goes wrong when these attributes are applied? do we have to
split a block mapping?
Instrumenting the MMU code would certainly help understanding what
goes wrong here.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
next prev parent reply other threads:[~2023-10-16 11:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 16:22 [PATCH 0/3] Use FEAT_HAFDBS to track dirty pages Ying-Chun Liu (PaulLiu)
2023-03-17 16:22 ` [PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available Ying-Chun Liu (PaulLiu)
2023-04-26 12:30 ` Tom Rini
2023-10-13 2:40 ` Chris Packham
2023-10-13 22:04 ` Marc Zyngier
2023-10-14 21:29 ` Chris Packham
2023-10-16 1:42 ` Chris Packham
2023-10-16 11:21 ` Marc Zyngier [this message]
2023-10-17 4:22 ` Chris Packham
2023-03-17 16:22 ` [PATCH 2/3] arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present Ying-Chun Liu (PaulLiu)
2023-04-26 12:30 ` Tom Rini
2023-03-17 16:22 ` [PATCH 3/3] armv8: enable HAFDBS for other ELx " Ying-Chun Liu (PaulLiu)
2023-04-26 12:30 ` Tom Rini
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=87y1g2lsnk.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=judge.packham@gmail.com \
--cc=paul.liu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.