]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: arm_spe: Add format option for discard mode
authorJames Clark <james.clark@linaro.org>
Wed, 8 Jan 2025 14:28:56 +0000 (14:28 +0000)
committerWill Deacon <will@kernel.org>
Fri, 10 Jan 2025 14:50:55 +0000 (14:50 +0000)
commitd28d95bc63cb4cb55f968f0fb4bf55b816087ca2
tree41740807777acd343bfdda05b8049d2bfffaaa83
parentd00f343a63e9e40b0193ad908ad410b981574545
perf: arm_spe: Add format option for discard mode

FEAT_SPEv1p2 (optional from Armv8.6) adds a discard mode that allows all
SPE data to be discarded rather than written to memory. Add a format
bit for this mode.

If the mode isn't supported, the format bit isn't published and attempts
to use it will result in -EOPNOTSUPP. Allocating an aux buffer is still
allowed even though it won't be written to so that old tools continue to
work, but updated tools can choose to skip this step.

Signed-off-by: James Clark <james.clark@linaro.org>
Reviewd-by: Yeoreum Yun <yeoreum.yun@arm.com>
Link: https://lore.kernel.org/r/20250108142904.401139-2-james.clark@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_spe_pmu.c