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