Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2026 09:20:44 -0400
From:      Mark Johnston <markj@freebsd.org>
To:        Andrew Turner <andrew@fubar.geek.nz>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Harry Moulton <harry.moulton@arm.com>
Subject:   Re: git: 58de79153622 - main - arm64: mte: configure initial state for system registers
Message-ID:  <afIFrEPdpSpOqznT@nuc>
In-Reply-To: <A04F2193-0FC7-418B-A5E6-DBB7767146E3@fubar.geek.nz>
References:  <69dcfc89.464ef.4e312925@gitrepo.freebsd.org> <afF1eUqL51aCjV-P@nuc> <A04F2193-0FC7-418B-A5E6-DBB7767146E3@fubar.geek.nz>

index | next in thread | previous in thread | raw e-mail

On Wed, Apr 29, 2026 at 02:06:28PM +0100, Andrew Turner wrote:
> 
> 
> > On 29 Apr 2026, at 04:05, Mark Johnston <markj@freebsd.org> wrote:
> > 
> > On Mon, Apr 13, 2026 at 02:24:09PM +0000, Andrew Turner wrote:
> >> The branch main has been updated by andrew:
> >> 
> >> URL: https://cgit.FreeBSD.org/src/commit/?id=58de79153622145cb6fc57bc92c4de678876992f
> >> 
> >> commit 58de79153622145cb6fc57bc92c4de678876992f
> >> Author:     Harry Moulton <harry.moulton@arm.com>
> >> AuthorDate: 2026-04-13 11:54:38 +0000
> >> Commit:     Andrew Turner <andrew@FreeBSD.org>
> >> CommitDate: 2026-04-13 14:23:05 +0000
> >> 
> >>    arm64: mte: configure initial state for system registers
> >> 
> >>    The fields in SCTLR_EL1 and HCR_EL2 for enabling MTE are set, and if the
> >>    ID_AA64PFR1_EL1 register shows MTE is present, the GCR_EL1 register is
> >>    also configured, and the two TFSR registers which hold pending tag check
> >>    faults are cleared.
> >> 
> >>    Reviewed by:    andrew
> >>    Sponsored by:   Arm Ltd
> >>    Signed-off-by:  Harry Moulton <harry.moulton@arm.com>
> >>    Differential Revision:  https://reviews.freebsd.org/D55946
> > 
> > After this commit I can't boot a FreeBSD aarch64 VM in qemu using "-cpu
> > max": boot hangs shortly after the loader handoff.  If I revert just
> > this commit on the latest main, I'm able to boot.
> 
> I guess only FEAT_MTE is enabled so the system registers aren’t supported. I’ve fixed it to check for FEAT_MTE2 in 2783fb7e7321.

That fixes the problem for me, thank you.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?afIFrEPdpSpOqznT>