[PATCH 1/8] arm64: cpufeature: Fix the visibility of compat hwcaps

Catalin Marinas catalin.marinas at arm.com
Tue Nov 1 12:07:34 PDT 2022


Hi Amit,

On Wed, Oct 26, 2022 at 11:28:06AM +0530, Amit Kachhap wrote:
> Commit 237405ebef58 ("arm64: cpufeature: Force HWCAP to be based on the
> sysreg visible to user-space") forced the hwcaps to use sanitised
> user-space view of the id registers. However, the ID register structures
> used to select few compat cpufeatures (vfp, crc32, ...) are masked and
> hence such hwcaps do not appear in /proc/cpuinfo anymore for PER_LINUX32
> personality.
> 
> Add the ID register structures explicitly and set them as visible for
> the compat hwcaps.
> 
> Fixes: 237405ebef58 ("arm64: cpufeature: Force HWCAP to be based on the sysreg visible to user-space")
> Cc: James Morse <james.morse at arm.com>
> Signed-off-by: Amit Daniel Kachhap <amit.kachhap at arm.com>

As James mentioned, could you please post this as a separate patch (and
update it with some of the comments that James had). Unless it was
posted and I missed it.

Thanks.

-- 
Catalin



More information about the linux-arm-kernel mailing list