From 37155b65f1dd6039bdef92f513d86640956bc12c Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 9 Mar 2016 19:10:20 -0800 Subject: gpu: nvgpu: support for hwpm context switching Add support for hwpm context switching Bug 1648200 Change-Id: I482899bf165cd2ef24bb8617be16df01218e462f Signed-off-by: Peter Daifuku Reviewed-on: http://git-master/r/1120450 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.h') 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 @@ /* * GK20A Graphics Context * - * Copyright (c) 2011-2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -75,6 +75,13 @@ union __max_name { #define NETLIST_REGIONID_NETLIST_NUM 18 #define NETLIST_REGIONID_CTXREG_PPC 19 #define NETLIST_REGIONID_CTXREG_PMPPC 20 +#define NETLIST_REGIONID_NVPERF_CTXREG_SYS 21 +#define NETLIST_REGIONID_NVPERF_FBP_CTXREGS 22 +#define NETLIST_REGIONID_NVPERF_CTXREG_GPC 23 +#define NETLIST_REGIONID_NVPERF_FBP_ROUTER 24 +#define NETLIST_REGIONID_NVPERF_GPC_ROUTER 25 +#define NETLIST_REGIONID_CTXREG_PMLTC 26 +#define NETLIST_REGIONID_CTXREG_PMFBPA 27 struct netlist_region { u32 region_id; @@ -114,6 +121,11 @@ struct u32_list_gk20a { u32 count; }; +struct ctxsw_buf_offset_map_entry { + u32 addr; /* Register address */ + u32 offset; /* Offset in ctxt switch buffer */ +}; + static inline struct av_gk20a *alloc_av_list_gk20a(struct av_list_gk20a *avl) { -- cgit v1.2.2