mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
perf: arm_brbe: Remove the check for TME transaction states
When an event samples branch flags, the BRBE driver warns once if a branch record has BRBINFx_EL1.T or LASTFAILED set, which its comment calls TME-related information. FEAT_TME has been withdrawn from the architecture, and both fields are RES0 in DDI0601 2026-09, so the check tests fields that no longer exist. Remove the check and its two accessors, which were the only users of the fields' defines, and mark both fields RES0 in the sysreg file. Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
cbaca3920f
commit
4a90fba44e
|
|
@ -1338,10 +1338,7 @@ Res0 63:47
|
|||
Field 46 CCU
|
||||
Field 45:40 CC_EXP
|
||||
Field 39:32 CC_MANT
|
||||
Res0 31:18
|
||||
Field 17 LASTFAILED
|
||||
Field 16 T
|
||||
Res0 15:14
|
||||
Res0 31:14
|
||||
Enum 13:8 TYPE
|
||||
0b000000 DIRECT_UNCOND
|
||||
0b000001 INDIRECT
|
||||
|
|
|
|||
|
|
@ -166,21 +166,11 @@ static bool brbe_record_is_target_only(u64 brbinf)
|
|||
return brbe_record_valid(brbinf) == BRBINFx_EL1_VALID_TARGET;
|
||||
}
|
||||
|
||||
static int brbinf_get_in_tx(u64 brbinf)
|
||||
{
|
||||
return FIELD_GET(BRBINFx_EL1_T_MASK, brbinf);
|
||||
}
|
||||
|
||||
static int brbinf_get_mispredict(u64 brbinf)
|
||||
{
|
||||
return FIELD_GET(BRBINFx_EL1_MPRED_MASK, brbinf);
|
||||
}
|
||||
|
||||
static int brbinf_get_lastfailed(u64 brbinf)
|
||||
{
|
||||
return FIELD_GET(BRBINFx_EL1_LASTFAILED_MASK, brbinf);
|
||||
}
|
||||
|
||||
static u16 brbinf_get_cycles(u64 brbinf)
|
||||
{
|
||||
u32 exp, mant, cycles;
|
||||
|
|
@ -627,14 +617,6 @@ static bool perf_entry_from_brbe_regset(int index, struct perf_branch_entry *ent
|
|||
entry->mispred = brbinf_get_mispredict(brbinf);
|
||||
entry->predicted = !entry->mispred;
|
||||
}
|
||||
|
||||
/*
|
||||
* Currently TME feature is neither implemented in any hardware
|
||||
* nor it is being supported in the kernel. Just warn here once
|
||||
* if TME related information shows up rather unexpectedly.
|
||||
*/
|
||||
if (brbinf_get_lastfailed(brbinf) || brbinf_get_in_tx(brbinf))
|
||||
pr_warn_once("Unknown transaction states\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user