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