From: Steffen Eiden <seiden@linux.ibm.com>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Marc Zyngier <maz@kernel.org>, Oliver Upton <oupton@kernel.org>,
Mark Brown <broonie@kernel.org>,
Sascha Bischoff <Sascha.Bischoff@arm.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Fuad Tabba <tabba@google.com>
Subject: Re: [PATCH 5/9] arm64: sysreg: Reject a Fields or Mapping line with an undefined target
Date: Mon, 23 Nov 2026 11:40:34 +0100 [thread overview]
Message-ID: <20261123104034.20959-E-seiden@linux.ibm.com> (raw)
In-Reply-To: <20261123075219.369042-6-fuad.tabba@linux.dev>
On Mon, Nov 23, 2026 at 07:52:15AM +0000, Fuad Tabba wrote:
> A Sysreg block can use another block's layout. "Fields X" names a
> SysregFields block and "Mapping X" another Sysreg. The generator emits
> the register's RESx and UNKN masks as X_RES0, X_RES1 and X_UNKN, but it
> doesn't check that X exists. A misspelt or missing X gives macros that
> expand to undefined names, and the build fails only once something uses
> them. MPAM1_EL12 had such a line.
>
> Check every Fields and Mapping target once the whole file is read, since
> a target may be defined after the register that names it (MPAM1_EL1
> follows MPAM1_EL12). Either kind of block defines the masks, so the
> check accepts either kind as the target of a Fields or a Mapping line.
> Give fatal() an optional line number, so that the error is reported at
> the Fields or Mapping line.
>
> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
next prev parent reply other threads:[~2026-11-23 10:41 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 7:52 [PATCH 0/9] arm64: sysreg: More input checks in the sysreg generator Fuad Tabba
2026-11-23 7:52 ` [PATCH 1/9] arm64: sysreg: Map MPAM1_EL12 to MPAM1_EL1 Fuad Tabba
2026-11-23 8:47 ` Steffen Eiden
2026-11-23 14:42 ` Mark Brown
2026-11-23 7:52 ` [PATCH 2/9] arm64: sysreg: Remove the dead range check from parse_bitdef() Fuad Tabba
2026-11-23 8:55 ` Steffen Eiden
2026-11-23 14:56 ` Mark Brown
2026-11-23 7:52 ` [PATCH 3/9] arm64: sysreg: Reject a Sysreg and a SysregFields with the same name Fuad Tabba
2026-11-23 10:25 ` Steffen Eiden
2026-11-23 15:12 ` Mark Brown
2026-11-23 7:52 ` [PATCH 4/9] arm64: sysreg: Don't run the end-of-file checks after an error Fuad Tabba
2026-11-23 10:29 ` Steffen Eiden
2026-11-23 15:17 ` Mark Brown
2026-11-23 7:52 ` [PATCH 5/9] arm64: sysreg: Reject a Fields or Mapping line with an undefined target Fuad Tabba
2026-11-23 10:40 ` Steffen Eiden [this message]
2026-11-23 19:40 ` Mark Brown
2026-11-23 7:52 ` [PATCH 6/9] arm64: sysreg: Reject an enum value not written at its field's width Fuad Tabba
2026-11-23 10:45 ` Steffen Eiden
2026-11-23 10:47 ` Fuad Tabba
2026-11-23 15:57 ` Mark Brown
2026-11-23 7:52 ` [PATCH 7/9] arm64: sysreg: Reject a macro name defined twice Fuad Tabba
2026-11-23 11:01 ` Steffen Eiden
2026-11-23 19:22 ` Mark Brown
2026-11-23 7:52 ` [PATCH 8/9] arm64: sysreg: Reject an out-of-range register encoding Fuad Tabba
2026-11-23 11:04 ` Steffen Eiden
2026-11-23 19:32 ` Mark Brown
2026-11-23 7:52 ` [PATCH 9/9] arm64: sysreg: Reject a bit position written with a leading zero Fuad Tabba
2026-11-23 11:22 ` Steffen Eiden
2026-11-23 11:25 ` Fuad Tabba
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=20261123104034.20959-E-seiden@linux.ibm.com \
--to=seiden@linux.ibm.com \
--cc=Sascha.Bischoff@arm.com \
--cc=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=fuad.tabba@linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=oupton@kernel.org \
--cc=tabba@google.com \
--cc=will@kernel.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 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.