diff options
author | Andrew Jones <[email protected]> | 2023-02-24 17:26:28 +0100 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2023-03-14 21:26:05 -0700 |
commit | d25f256332cc795b0fe16ba541fe0c05f0eb2c59 (patch) | |
tree | da6ab591ea70d5ab40ea8e2743fa1137c7b7a7e0 /tools/perf/scripts/python | |
parent | 7ea5a73617e931230a46150dc7c1bbfd98f24c8e (diff) |
RISC-V: cpufeatures: Put the upper 16 bits of patch ID to work
cpufeature IDs are consecutive integers starting at 26, so a 32-bit
patch ID allows an aircraft carrier load of feature IDs. Repurposing
the upper 16 bits still leaves a boat load of feature IDs and gains
16 bits which may be used to control patching on a per patch-site
basis.
This will be initially used in Zicboz's application to clear_page(),
as Zicboz's block size must also be considered. In that case, the
upper 16-bit value's role will be to convey the maximum block size
which the Zicboz clear_page() implementation supports.
cpufeature patch sites which need to check for the existence or
absence of other cpufeatures may also be able to make use of this.
Signed-off-by: Andrew Jones <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions