diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2016-03-09 22:10:20 -0500 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-07 14:05:49 -0400 |
commit | 37155b65f1dd6039bdef92f513d86640956bc12c (patch) | |
tree | 1deb57523c3acc445996c642da6ac96e1cf7c355 /drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h | |
parent | 6675c03603669c667c6ffec34567eaf101a2d09d (diff) |
gpu: nvgpu: support for hwpm context switching
Add support for hwpm context switching
Bug 1648200
Change-Id: I482899bf165cd2ef24bb8617be16df01218e462f
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1120450
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h index 6844ee69..d413942a 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GK20A Graphics Context | 2 | * GK20A Graphics Context |
3 | * | 3 | * |
4 | * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms and conditions of the GNU General Public License, | 7 | * under the terms and conditions of the GNU General Public License, |
@@ -75,6 +75,13 @@ union __max_name { | |||
75 | #define NETLIST_REGIONID_NETLIST_NUM 18 | 75 | #define NETLIST_REGIONID_NETLIST_NUM 18 |
76 | #define NETLIST_REGIONID_CTXREG_PPC 19 | 76 | #define NETLIST_REGIONID_CTXREG_PPC 19 |
77 | #define NETLIST_REGIONID_CTXREG_PMPPC 20 | 77 | #define NETLIST_REGIONID_CTXREG_PMPPC 20 |
78 | #define NETLIST_REGIONID_NVPERF_CTXREG_SYS 21 | ||
79 | #define NETLIST_REGIONID_NVPERF_FBP_CTXREGS 22 | ||
80 | #define NETLIST_REGIONID_NVPERF_CTXREG_GPC 23 | ||
81 | #define NETLIST_REGIONID_NVPERF_FBP_ROUTER 24 | ||
82 | #define NETLIST_REGIONID_NVPERF_GPC_ROUTER 25 | ||
83 | #define NETLIST_REGIONID_CTXREG_PMLTC 26 | ||
84 | #define NETLIST_REGIONID_CTXREG_PMFBPA 27 | ||
78 | 85 | ||
79 | struct netlist_region { | 86 | struct netlist_region { |
80 | u32 region_id; | 87 | u32 region_id; |
@@ -114,6 +121,11 @@ struct u32_list_gk20a { | |||
114 | u32 count; | 121 | u32 count; |
115 | }; | 122 | }; |
116 | 123 | ||
124 | struct ctxsw_buf_offset_map_entry { | ||
125 | u32 addr; /* Register address */ | ||
126 | u32 offset; /* Offset in ctxt switch buffer */ | ||
127 | }; | ||
128 | |||
117 | static inline | 129 | static inline |
118 | struct av_gk20a *alloc_av_list_gk20a(struct av_list_gk20a *avl) | 130 | struct av_gk20a *alloc_av_list_gk20a(struct av_list_gk20a *avl) |
119 | { | 131 | { |