diff options
author | Genevieve Chan <genevieve.chan@starfivetech.com> | 2023-07-03 12:06:47 +0300 |
---|---|---|
committer | Ley Foon Tan <leyfoon.tan@starfivetech.com> | 2023-12-04 06:00:16 +0300 |
commit | f6aa9d03e22e2b47dfafef877c91abbbed9c7584 (patch) | |
tree | 5409a69276172f7fe94e687151cb09461cc40bc6 | |
parent | f020cab74344dc11ddd63ee1488bc63e6ceeebc5 (diff) | |
download | linux-f6aa9d03e22e2b47dfafef877c91abbbed9c7584.tar.xz |
riscv: dts: starfive: dubhe: Update PMU event mapping
Change PMU event mapping based on updated Dubhe Q2 2023 release
Signed-off-by: Genevieve Chan <genevieve.chan@starfivetech.com>
-rw-r--r-- | arch/riscv/boot/dts/starfive/dubhe.dtsi | 78 |
1 files changed, 26 insertions, 52 deletions
diff --git a/arch/riscv/boot/dts/starfive/dubhe.dtsi b/arch/riscv/boot/dts/starfive/dubhe.dtsi index 561dd0ed790c..49d36e1bbc9e 100644 --- a/arch/riscv/boot/dts/starfive/dubhe.dtsi +++ b/arch/riscv/boot/dts/starfive/dubhe.dtsi @@ -161,67 +161,41 @@ pmu { compatible = "riscv,pmu"; - riscv,event-to-mhpmevent = <0x00005 0x0000 0x1B>, - <0x00006 0x0000 0x1C>, - <0x00008 0x0000 0x24>, - <0x00009 0x0000 0x23>, - <0x10000 0x0000 0x93>, - <0x10001 0x0000 0x94>, - <0x10002 0x0000 0x99>, - <0x10003 0x0000 0x9A>, - <0x10008 0x0000 0x14>, - <0x10009 0x0000 0x15>, - <0x1000C 0x0000 0x18>, - <0x1000D 0x0000 0x19>, - <0x10010 0x0000 0xB2>, - <0x10011 0x0000 0xB3>, - <0x10012 0x0000 0xB4>, - <0x10013 0x0000 0xB5>, - <0x10018 0x0000 0x9F>, - <0x10019 0x0000 0xA0>, - <0x10020 0x0000 0x14>, - <0x10021 0x0000 0x10>; + riscv,event-to-mhpmevent = <0x00005 0x0000 0xA>, + <0x00006 0x0000 0xB>, + <0x00008 0x0000 0x10>, + <0x00009 0x0000 0xF>, + <0x10000 0x0000 0x19>, + <0x10001 0x0000 0x1A>, + <0x10002 0x0000 0x1B>, + <0x10003 0x0000 0x1C>, + <0x10008 0x0000 0x8>, + <0x10009 0x0000 0x9>, + <0x1000C 0x0000 0x9E>, + <0x1000D 0x0000 0x9F>, + <0x10010 0x0000 0x1D>, + <0x10011 0x0000 0x1E>, + <0x10012 0x0000 0x1F>, + <0x10013 0x0000 0x20>, + <0x10014 0x0000 0x21>, + <0x10018 0x0000 0x17>, + <0x10019 0x0000 0x18>, + <0x10020 0x0000 0x8>, + <0x10021 0x0000 0x7>; riscv,event-to-mhpmcounters = <0x00005 0x00006 0x00007FF8>, <0x00008 0x00009 0x00007FF8>, <0x10000 0x10003 0x00007FF8>, <0x10008 0x10009 0x00007FF8>, <0x1000C 0x1000D 0x00007FF8>, - <0x10010 0x10013 0x00007FF8>, + <0x10010 0x10014 0x00007FF8>, <0x10018 0x10019 0x00007FF8>, <0x10020 0x10021 0x00007FF8>; - riscv,raw-event-to-mhpmcounters = /* Event */ - <0x00 0x00 0xFFFFFFFF 0xFFFFFFE0 0x00007FF8>, /* 1-31 */ - <0x00 0x20 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 32-39 */ - <0x00 0x28 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 40-43 */ - <0x00 0x2C 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 44-45 */ - <0x00 0x36 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 54-55 */ - <0x00 0x38 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 56-63 */ - <0x00 0x40 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 64-65 */ - <0x00 0x4A 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 74-75 */ - <0x00 0x4C 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 76-79 */ - <0x00 0x50 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 80-87 */ - <0x00 0x58 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 88-91 */ - <0x00 0x64 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 100-103 */ - <0x00 0x68 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 104-107 */ - <0x00 0x6C 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 108-109 */ - <0x00 0x76 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 118-119 */ - <0x00 0x78 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 120-123 */ - <0x00 0x7C 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 124-125 */ - <0x00 0x86 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 134-135 */ - <0x00 0x88 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 136-143 */ - <0x00 0x90 0xFFFFFFFF 0xFFFFFFF0 0x00007FF8>, /* 144-159 */ - <0x00 0xA0 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 160-167 */ - <0x00 0xA8 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 168-169 */ - <0x00 0xB2 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 178-179 */ - <0x00 0xB4 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 180-183 */ - <0x00 0xB8 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 184-187 */ - <0x00 0xC4 0xFFFFFFFF 0xFFFFFFFC 0x00007FF8>, /* 196-199 */ - <0x00 0xC8 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 200-207 */ - <0x00 0xD0 0xFFFFFFFF 0xFFFFFFF8 0x00007FF8>, /* 208-215 */ - <0x00 0xD8 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* 216-217 */ - <0x00 0xDA 0xFFFFFFFF 0xFFFFFFFF 0x00007FF8>; /* 218 */ + riscv,raw-event-to-mhpmcounters = + <0x00 0x00 0xFFFFFFFF 0xFFFFFFE0 0x00007FF8>, /* Event ID 1-31 */ + <0x00 0x20 0xFFFFFFFF 0xFFFFFFFE 0x00007FF8>, /* Event ID 32-33 */ + <0x00 0x22 0xFFFFFFFF 0xFFFFFF22 0x00007FF8>; /* Event ID 34 */ }; }; }; |