[PATCH] perf: RISC-V: fix IRQ detection on T-Head C908
Yangyu Chen
cyy at cyyself.name
Thu Apr 11 23:27:28 PDT 2024
>> IMHO, it may be better to use a new DT property like "riscv,cpu-errata" or
>> "<vendor>,cpu-errata". It can achieve almost everything like using pseudo
>> isa. And the only cost I think is a small amount code to parse this.
>
> I suppose we could do that, but accounting for vendor specifics was one
> of the goals for the property I only just added and that I am suggesting
> to use here.
I think there is a simpler way to do that. We use T-Head PMU by default
for All T-Head CPUs (from mvendor id). Then, to test there is sscofpmf in
the ISA string being probed by the kernel. If yes, then use scofpmf.
Otherwise, use T-Head PMU.
I will check if this can also be switched in any vendor CSR like Svpbmt and
T-Head MAE we discussed before.
Thanks,
Yangyu Chen
More information about the linux-arm-kernel
mailing list