diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h | 26 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_perf_gv11b.h | 26 |
2 files changed, 50 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h index 4fbe37cb..268efc52 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_perf_gv100.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -56,6 +56,30 @@ | |||
56 | #ifndef _hw_perf_gv100_h_ | 56 | #ifndef _hw_perf_gv100_h_ |
57 | #define _hw_perf_gv100_h_ | 57 | #define _hw_perf_gv100_h_ |
58 | 58 | ||
59 | static inline u32 perf_pmmgpc_perdomain_offset_v(void) | ||
60 | { | ||
61 | return 0x00000200U; | ||
62 | } | ||
63 | static inline u32 perf_pmmgpc_base_v(void) | ||
64 | { | ||
65 | return 0x00180000U; | ||
66 | } | ||
67 | static inline u32 perf_pmmgpc_extent_v(void) | ||
68 | { | ||
69 | return 0x00183fffU; | ||
70 | } | ||
71 | static inline u32 perf_pmmsys_base_v(void) | ||
72 | { | ||
73 | return 0x00240000U; | ||
74 | } | ||
75 | static inline u32 perf_pmmsys_extent_v(void) | ||
76 | { | ||
77 | return 0x00243fffU; | ||
78 | } | ||
79 | static inline u32 perf_pmmfbp_base_v(void) | ||
80 | { | ||
81 | return 0x00200000U; | ||
82 | } | ||
59 | static inline u32 perf_pmasys_control_r(void) | 83 | static inline u32 perf_pmasys_control_r(void) |
60 | { | 84 | { |
61 | return 0x0024a000U; | 85 | return 0x0024a000U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_perf_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_perf_gv11b.h index 788a6ab6..1d4b2c16 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_perf_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_perf_gv11b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -56,6 +56,30 @@ | |||
56 | #ifndef _hw_perf_gv11b_h_ | 56 | #ifndef _hw_perf_gv11b_h_ |
57 | #define _hw_perf_gv11b_h_ | 57 | #define _hw_perf_gv11b_h_ |
58 | 58 | ||
59 | static inline u32 perf_pmmgpc_perdomain_offset_v(void) | ||
60 | { | ||
61 | return 0x00000200U; | ||
62 | } | ||
63 | static inline u32 perf_pmmgpc_base_v(void) | ||
64 | { | ||
65 | return 0x00180000U; | ||
66 | } | ||
67 | static inline u32 perf_pmmgpc_extent_v(void) | ||
68 | { | ||
69 | return 0x00183fffU; | ||
70 | } | ||
71 | static inline u32 perf_pmmsys_base_v(void) | ||
72 | { | ||
73 | return 0x00240000U; | ||
74 | } | ||
75 | static inline u32 perf_pmmsys_extent_v(void) | ||
76 | { | ||
77 | return 0x00243fffU; | ||
78 | } | ||
79 | static inline u32 perf_pmmfbp_base_v(void) | ||
80 | { | ||
81 | return 0x00200000U; | ||
82 | } | ||
59 | static inline u32 perf_pmasys_control_r(void) | 83 | static inline u32 perf_pmasys_control_r(void) |
60 | { | 84 | { |
61 | return 0x0024a000U; | 85 | return 0x0024a000U; |