[PATCH v5 03/22] drivers/perf: riscv: Read upper bits of a firmware counter