aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <[email protected]>2021-08-12 01:15:05 +0800
committerMarc Zyngier <[email protected]>2021-08-20 15:03:01 +0100
commit8d474deaba2c4dd33a5e2f5be82e6798ffa6b8a5 (patch)
tree6f1140710fa4c40fbd0209b301d7505ac1f0712e /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent60a1cd10b222e004f860d14651e80089c77e8e6b (diff)
irqchip/gic-v3: Fix priority comparison when non-secure priorities are used
When non-secure priorities are used, compared to the raw priority set, the value read back from RPR is also right-shifted by one and the highest bit set. Add a macro to do the modifications to the raw priority when doing the comparison against the RPR value. This corrects the pseudo-NMI behavior when non-secure priorities in the GIC are used. Tested on 5.10 with the "IPI as pseudo-NMI" series [1] applied on MT8195. [1] https://lore.kernel.org/linux-arm-kernel/[email protected]/ Fixes: 336780590990 ("irqchip/gic-v3: Support pseudo-NMIs when SCR_EL3.FIQ == 0") Reviewed-by: Alexandru Elisei <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]> [maz: Added comment contributed by Alex] Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions