From 30e1647ddf5b4b272c63843e91d4c4b41529bd75 Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Fri, 27 Jan 2017 10:59:47 -0800 Subject: gpu: nvgpu: gv11b: add regops whitelists Add regops whitelists for gv11b. JIRA GV11B-35 Change-Id: I0ff5172c5b693250efb0523106632b3746383dcb Signed-off-by: seshendra Gadagottu Reviewed-on: http://git-master/r/1295401 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gv11b/regops_gv11b.c | 941 +++++++++++++++++++++++++++++++++ 1 file changed, 941 insertions(+) create mode 100644 drivers/gpu/nvgpu/gv11b/regops_gv11b.c (limited to 'drivers/gpu/nvgpu/gv11b/regops_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c new file mode 100644 index 00000000..8c5305b3 --- /dev/null +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c @@ -0,0 +1,941 @@ +/* + * Tegra GV11b GPU Driver Register Ops + * + * Copyright (c) 2017, 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, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include +#include +#include +#include + +#include "gk20a/gk20a.h" +#include "gk20a/dbg_gpu_gk20a.h" +#include "gk20a/regops_gk20a.h" +#include "regops_gv11b.h" + +static const struct regop_offset_range gv11b_global_whitelist_ranges[] = { + { 0x000004f0, 1}, + { 0x00001a00, 1}, + { 0x00009400, 1}, + { 0x00009410, 1}, + { 0x00009480, 1}, + { 0x00020200, 24}, + { 0x00021c04, 2}, + { 0x00021c14, 3}, + { 0x00021c24, 71}, + { 0x00021d44, 1}, + { 0x00021d4c, 1}, + { 0x00021d54, 1}, + { 0x00021d5c, 1}, + { 0x00021d68, 19}, + { 0x00021dbc, 16}, + { 0x00022430, 7}, + { 0x00022450, 1}, + { 0x0002245c, 2}, + { 0x00070000, 5}, + { 0x000840a8, 1}, + { 0x00084b5c, 1}, + { 0x000870a8, 1}, + { 0x000884e0, 1}, + { 0x000884f4, 1}, + { 0x0008e00c, 1}, + { 0x00100c18, 3}, + { 0x00100c84, 1}, + { 0x0010a0a8, 1}, + { 0x0010a4f0, 1}, + { 0x0013c808, 2}, + { 0x0013cc14, 1}, + { 0x0013ec18, 1}, + { 0x00140028, 1}, + { 0x00140280, 1}, + { 0x001402a0, 1}, + { 0x00140350, 1}, + { 0x00140480, 1}, + { 0x001404a0, 1}, + { 0x00140550, 1}, + { 0x00140680, 1}, + { 0x001406a0, 1}, + { 0x00140750, 1}, + { 0x00142028, 1}, + { 0x00142280, 1}, + { 0x001422a0, 1}, + { 0x00142350, 1}, + { 0x00142480, 1}, + { 0x001424a0, 1}, + { 0x00142550, 1}, + { 0x00142680, 1}, + { 0x001426a0, 1}, + { 0x00142750, 1}, + { 0x0017e028, 1}, + { 0x0017e280, 1}, + { 0x0017e294, 1}, + { 0x0017e29c, 2}, + { 0x0017e2ac, 1}, + { 0x0017e350, 1}, + { 0x0017e39c, 1}, + { 0x0017e480, 1}, + { 0x0017e4a0, 1}, + { 0x0017e550, 1}, + { 0x0017e680, 1}, + { 0x0017e6a0, 1}, + { 0x0017e750, 1}, + { 0x00180040, 41}, + { 0x001800ec, 1}, + { 0x001800f8, 4}, + { 0x0018010c, 1}, + { 0x00180240, 41}, + { 0x001802ec, 1}, + { 0x001802f8, 4}, + { 0x0018030c, 1}, + { 0x00180440, 41}, + { 0x001804ec, 1}, + { 0x001804f8, 4}, + { 0x0018050c, 1}, + { 0x00180640, 41}, + { 0x001806ec, 1}, + { 0x001806f8, 4}, + { 0x0018070c, 1}, + { 0x00180840, 41}, + { 0x001808ec, 1}, + { 0x001808f8, 4}, + { 0x0018090c, 1}, + { 0x00180a40, 41}, + { 0x00180aec, 1}, + { 0x00180af8, 4}, + { 0x00180b0c, 1}, + { 0x00180c40, 41}, + { 0x00180cec, 1}, + { 0x00180cf8, 4}, + { 0x00180d0c, 1}, + { 0x00180e40, 41}, + { 0x00180eec, 1}, + { 0x00180ef8, 4}, + { 0x00180f0c, 1}, + { 0x00181040, 41}, + { 0x001810ec, 1}, + { 0x001810f8, 4}, + { 0x0018110c, 1}, + { 0x00181240, 41}, + { 0x001812ec, 1}, + { 0x001812f8, 4}, + { 0x0018130c, 1}, + { 0x00181440, 41}, + { 0x001814ec, 1}, + { 0x001814f8, 4}, + { 0x0018150c, 1}, + { 0x00181640, 41}, + { 0x001816ec, 1}, + { 0x001816f8, 4}, + { 0x0018170c, 1}, + { 0x00181840, 41}, + { 0x001818ec, 1}, + { 0x001818f8, 4}, + { 0x0018190c, 1}, + { 0x00181a40, 41}, + { 0x00181aec, 1}, + { 0x00181af8, 4}, + { 0x00181b0c, 1}, + { 0x00181c40, 41}, + { 0x00181cec, 1}, + { 0x00181cf8, 4}, + { 0x00181d0c, 1}, + { 0x00181e40, 41}, + { 0x00181eec, 1}, + { 0x00181ef8, 4}, + { 0x00181f0c, 1}, + { 0x00182040, 41}, + { 0x001820ec, 1}, + { 0x001820f8, 4}, + { 0x0018210c, 1}, + { 0x00182240, 41}, + { 0x001822ec, 1}, + { 0x001822f8, 4}, + { 0x0018230c, 1}, + { 0x00182440, 41}, + { 0x001824ec, 1}, + { 0x001824f8, 4}, + { 0x0018250c, 1}, + { 0x00182640, 41}, + { 0x001826ec, 1}, + { 0x001826f8, 4}, + { 0x0018270c, 1}, + { 0x00182840, 41}, + { 0x001828ec, 1}, + { 0x001828f8, 4}, + { 0x0018290c, 1}, + { 0x00182a40, 41}, + { 0x00182aec, 1}, + { 0x00182af8, 4}, + { 0x00182b0c, 1}, + { 0x00182c40, 41}, + { 0x00182cec, 1}, + { 0x00182cf8, 4}, + { 0x00182d0c, 1}, + { 0x00182e40, 41}, + { 0x00182eec, 1}, + { 0x00182ef8, 4}, + { 0x00182f0c, 1}, + { 0x00183040, 41}, + { 0x001830ec, 1}, + { 0x001830f8, 4}, + { 0x0018310c, 1}, + { 0x00183240, 41}, + { 0x001832ec, 1}, + { 0x001832f8, 4}, + { 0x0018330c, 1}, + { 0x00183440, 41}, + { 0x001834ec, 1}, + { 0x001834f8, 4}, + { 0x0018350c, 1}, + { 0x00183640, 41}, + { 0x001836ec, 1}, + { 0x001836f8, 4}, + { 0x0018370c, 1}, + { 0x00183840, 41}, + { 0x001838ec, 1}, + { 0x001838f8, 4}, + { 0x0018390c, 1}, + { 0x00183a40, 41}, + { 0x00183aec, 1}, + { 0x00183af8, 4}, + { 0x00183b0c, 1}, + { 0x00183c40, 41}, + { 0x00183cec, 1}, + { 0x00183cf8, 4}, + { 0x00183d0c, 1}, + { 0x00183e40, 41}, + { 0x00183eec, 1}, + { 0x00183ef8, 4}, + { 0x00183f0c, 1}, + { 0x001c80a8, 1}, + { 0x001c9100, 1}, + { 0x001cc0a8, 1}, + { 0x001cd100, 1}, + { 0x001d00a8, 1}, + { 0x001d1100, 1}, + { 0x00200040, 41}, + { 0x002000ec, 1}, + { 0x002000f8, 4}, + { 0x0020010c, 1}, + { 0x00200240, 41}, + { 0x002002ec, 1}, + { 0x002002f8, 4}, + { 0x0020030c, 1}, + { 0x00200440, 41}, + { 0x002004ec, 1}, + { 0x002004f8, 4}, + { 0x0020050c, 1}, + { 0x00200640, 41}, + { 0x002006ec, 1}, + { 0x002006f8, 4}, + { 0x0020070c, 1}, + { 0x00200840, 41}, + { 0x002008ec, 1}, + { 0x002008f8, 4}, + { 0x0020090c, 1}, + { 0x00200a40, 41}, + { 0x00200aec, 1}, + { 0x00200af8, 4}, + { 0x00200b0c, 1}, + { 0x00200c40, 41}, + { 0x00200cec, 1}, + { 0x00200cf8, 4}, + { 0x00200d0c, 1}, + { 0x00200e40, 41}, + { 0x00200eec, 1}, + { 0x00200ef8, 4}, + { 0x00200f0c, 1}, + { 0x00201040, 41}, + { 0x002010ec, 1}, + { 0x002010f8, 4}, + { 0x0020110c, 1}, + { 0x00201240, 41}, + { 0x002012ec, 1}, + { 0x002012f8, 4}, + { 0x0020130c, 1}, + { 0x00201440, 41}, + { 0x002014ec, 1}, + { 0x002014f8, 4}, + { 0x0020150c, 1}, + { 0x00201640, 41}, + { 0x002016ec, 1}, + { 0x002016f8, 4}, + { 0x0020170c, 1}, + { 0x00201840, 41}, + { 0x002018ec, 1}, + { 0x002018f8, 4}, + { 0x0020190c, 1}, + { 0x00201a40, 41}, + { 0x00201aec, 1}, + { 0x00201af8, 4}, + { 0x00201b0c, 1}, + { 0x00201c40, 41}, + { 0x00201cec, 1}, + { 0x00201cf8, 4}, + { 0x00201d0c, 1}, + { 0x00201e40, 41}, + { 0x00201eec, 1}, + { 0x00201ef8, 4}, + { 0x00201f0c, 1}, + { 0x00202040, 41}, + { 0x002020ec, 1}, + { 0x002020f8, 4}, + { 0x0020210c, 1}, + { 0x00202240, 41}, + { 0x002022ec, 1}, + { 0x002022f8, 4}, + { 0x0020230c, 1}, + { 0x00202440, 41}, + { 0x002024ec, 1}, + { 0x002024f8, 4}, + { 0x0020250c, 1}, + { 0x00202640, 41}, + { 0x002026ec, 1}, + { 0x002026f8, 4}, + { 0x0020270c, 1}, + { 0x00202840, 41}, + { 0x002028ec, 1}, + { 0x002028f8, 4}, + { 0x0020290c, 1}, + { 0x00202a40, 41}, + { 0x00202aec, 1}, + { 0x00202af8, 4}, + { 0x00202b0c, 1}, + { 0x00202c40, 41}, + { 0x00202cec, 1}, + { 0x00202cf8, 4}, + { 0x00202d0c, 1}, + { 0x00202e40, 41}, + { 0x00202eec, 1}, + { 0x00202ef8, 4}, + { 0x00202f0c, 1}, + { 0x00203040, 41}, + { 0x002030ec, 1}, + { 0x002030f8, 4}, + { 0x0020310c, 1}, + { 0x00203240, 41}, + { 0x002032ec, 1}, + { 0x002032f8, 4}, + { 0x0020330c, 1}, + { 0x00203440, 41}, + { 0x002034ec, 1}, + { 0x002034f8, 4}, + { 0x0020350c, 1}, + { 0x00203640, 41}, + { 0x002036ec, 1}, + { 0x002036f8, 4}, + { 0x0020370c, 1}, + { 0x00203840, 41}, + { 0x002038ec, 1}, + { 0x002038f8, 4}, + { 0x0020390c, 1}, + { 0x00203a40, 41}, + { 0x00203aec, 1}, + { 0x00203af8, 4}, + { 0x00203b0c, 1}, + { 0x00203c40, 41}, + { 0x00203cec, 1}, + { 0x00203cf8, 4}, + { 0x00203d0c, 1}, + { 0x00203e40, 41}, + { 0x00203eec, 1}, + { 0x00203ef8, 4}, + { 0x00203f0c, 1}, + { 0x00240040, 41}, + { 0x002400ec, 1}, + { 0x002400f8, 4}, + { 0x0024010c, 1}, + { 0x00240240, 41}, + { 0x002402ec, 1}, + { 0x002402f8, 4}, + { 0x0024030c, 1}, + { 0x00240440, 41}, + { 0x002404ec, 1}, + { 0x002404f8, 4}, + { 0x0024050c, 1}, + { 0x00240640, 41}, + { 0x002406ec, 1}, + { 0x002406f8, 4}, + { 0x0024070c, 1}, + { 0x00240840, 41}, + { 0x002408ec, 1}, + { 0x002408f8, 4}, + { 0x0024090c, 1}, + { 0x00240a40, 41}, + { 0x00240aec, 1}, + { 0x00240af8, 4}, + { 0x00240b0c, 1}, + { 0x00240c40, 41}, + { 0x00240cec, 1}, + { 0x00240cf8, 4}, + { 0x00240d0c, 1}, + { 0x00240e40, 41}, + { 0x00240eec, 1}, + { 0x00240ef8, 4}, + { 0x00240f0c, 1}, + { 0x00241040, 41}, + { 0x002410ec, 1}, + { 0x002410f8, 4}, + { 0x0024110c, 1}, + { 0x00241240, 41}, + { 0x002412ec, 1}, + { 0x002412f8, 4}, + { 0x0024130c, 1}, + { 0x00241440, 41}, + { 0x002414ec, 1}, + { 0x002414f8, 4}, + { 0x0024150c, 1}, + { 0x00241640, 41}, + { 0x002416ec, 1}, + { 0x002416f8, 4}, + { 0x0024170c, 1}, + { 0x00241840, 41}, + { 0x002418ec, 1}, + { 0x002418f8, 4}, + { 0x0024190c, 1}, + { 0x00241a40, 41}, + { 0x00241aec, 1}, + { 0x00241af8, 4}, + { 0x00241b0c, 1}, + { 0x00241c40, 41}, + { 0x00241cec, 1}, + { 0x00241cf8, 4}, + { 0x00241d0c, 1}, + { 0x00241e40, 41}, + { 0x00241eec, 1}, + { 0x00241ef8, 4}, + { 0x00241f0c, 1}, + { 0x00242040, 41}, + { 0x002420ec, 1}, + { 0x002420f8, 4}, + { 0x0024210c, 1}, + { 0x00242240, 41}, + { 0x002422ec, 1}, + { 0x002422f8, 4}, + { 0x0024230c, 1}, + { 0x00242440, 41}, + { 0x002424ec, 1}, + { 0x002424f8, 4}, + { 0x0024250c, 1}, + { 0x00242640, 41}, + { 0x002426ec, 1}, + { 0x002426f8, 4}, + { 0x0024270c, 1}, + { 0x00242840, 41}, + { 0x002428ec, 1}, + { 0x002428f8, 4}, + { 0x0024290c, 1}, + { 0x00242a40, 41}, + { 0x00242aec, 1}, + { 0x00242af8, 4}, + { 0x00242b0c, 1}, + { 0x00242c40, 41}, + { 0x00242cec, 1}, + { 0x00242cf8, 4}, + { 0x00242d0c, 1}, + { 0x00242e40, 41}, + { 0x00242eec, 1}, + { 0x00242ef8, 4}, + { 0x00242f0c, 1}, + { 0x00243040, 41}, + { 0x002430ec, 1}, + { 0x002430f8, 4}, + { 0x0024310c, 1}, + { 0x00243240, 41}, + { 0x002432ec, 1}, + { 0x002432f8, 4}, + { 0x0024330c, 1}, + { 0x00243440, 41}, + { 0x002434ec, 1}, + { 0x002434f8, 4}, + { 0x0024350c, 1}, + { 0x00243640, 41}, + { 0x002436ec, 1}, + { 0x002436f8, 4}, + { 0x0024370c, 1}, + { 0x00243840, 41}, + { 0x002438ec, 1}, + { 0x002438f8, 4}, + { 0x0024390c, 1}, + { 0x00243a40, 41}, + { 0x00243aec, 1}, + { 0x00243af8, 4}, + { 0x00243b0c, 1}, + { 0x00243c40, 41}, + { 0x00243cec, 1}, + { 0x00243cf8, 4}, + { 0x00243d0c, 1}, + { 0x00243e40, 41}, + { 0x00243eec, 1}, + { 0x00243ef8, 4}, + { 0x00243f0c, 1}, + { 0x00244000, 1}, + { 0x00244008, 1}, + { 0x00244010, 3}, + { 0x00246000, 1}, + { 0x00246008, 1}, + { 0x00246010, 3}, + { 0x00248000, 1}, + { 0x00248008, 1}, + { 0x00248010, 3}, + { 0x0024a000, 1}, + { 0x0024a008, 1}, + { 0x0024a010, 3}, + { 0x0024a020, 3}, + { 0x0024a030, 3}, + { 0x0024a040, 3}, + { 0x0024a050, 3}, + { 0x0024a060, 4}, + { 0x0024a074, 7}, + { 0x0024a094, 3}, + { 0x0024a0a4, 1}, + { 0x0024a100, 6}, + { 0x0024a124, 1}, + { 0x00400500, 1}, + { 0x0040415c, 1}, + { 0x00404468, 1}, + { 0x00404498, 1}, + { 0x00405800, 1}, + { 0x00405840, 2}, + { 0x00405850, 1}, + { 0x00405908, 1}, + { 0x00405a00, 1}, + { 0x00405b50, 1}, + { 0x00406024, 5}, + { 0x00407010, 1}, + { 0x00407808, 1}, + { 0x0040803c, 1}, + { 0x00408804, 1}, + { 0x0040880c, 1}, + { 0x00408900, 2}, + { 0x00408910, 1}, + { 0x00408944, 1}, + { 0x00408984, 1}, + { 0x004090a8, 1}, + { 0x004098a0, 1}, + { 0x00409b00, 1}, + { 0x0041000c, 1}, + { 0x00410110, 1}, + { 0x00410184, 1}, + { 0x0041040c, 1}, + { 0x00410510, 1}, + { 0x00410584, 1}, + { 0x00418000, 1}, + { 0x00418008, 1}, + { 0x00418380, 2}, + { 0x00418400, 2}, + { 0x004184a0, 1}, + { 0x00418604, 1}, + { 0x00418680, 1}, + { 0x00418704, 1}, + { 0x00418714, 1}, + { 0x00418800, 1}, + { 0x0041881c, 1}, + { 0x00418830, 1}, + { 0x00418884, 1}, + { 0x004188b0, 1}, + { 0x004188c8, 3}, + { 0x004188fc, 1}, + { 0x00418b04, 1}, + { 0x00418c04, 1}, + { 0x00418c10, 8}, + { 0x00418c88, 1}, + { 0x00418d00, 1}, + { 0x00418e00, 1}, + { 0x00418e08, 1}, + { 0x00418e34, 1}, + { 0x00418e40, 4}, + { 0x00418e58, 16}, + { 0x00418f08, 1}, + { 0x00419000, 1}, + { 0x0041900c, 1}, + { 0x00419018, 1}, + { 0x00419854, 1}, + { 0x00419864, 1}, + { 0x00419a04, 2}, + { 0x00419b04, 1}, + { 0x00419b3c, 1}, + { 0x00419b48, 1}, + { 0x00419b50, 1}, + { 0x00419ba0, 2}, + { 0x00419bb0, 1}, + { 0x00419bdc, 1}, + { 0x00419c0c, 1}, + { 0x00419c8c, 1}, + { 0x00419d00, 1}, + { 0x00419d08, 2}, + { 0x00419e08, 1}, + { 0x00419e80, 8}, + { 0x00419ea8, 5}, + { 0x00419f00, 8}, + { 0x00419f28, 5}, + { 0x00419f80, 8}, + { 0x00419fa8, 5}, + { 0x0041a02c, 2}, + { 0x0041a0a0, 1}, + { 0x0041a0a8, 1}, + { 0x0041a890, 2}, + { 0x0041a8a0, 3}, + { 0x0041a8b0, 2}, + { 0x0041b014, 1}, + { 0x0041b0cc, 1}, + { 0x0041b1dc, 1}, + { 0x0041b214, 1}, + { 0x0041b2cc, 1}, + { 0x0041b3dc, 1}, + { 0x0041be0c, 3}, + { 0x0041becc, 1}, + { 0x0041bfdc, 1}, + { 0x0041c054, 1}, + { 0x0041c304, 1}, + { 0x0041c33c, 1}, + { 0x0041c348, 1}, + { 0x0041c350, 1}, + { 0x0041c3a0, 2}, + { 0x0041c3b0, 1}, + { 0x0041c3dc, 1}, + { 0x0041c40c, 1}, + { 0x0041c48c, 1}, + { 0x0041c500, 1}, + { 0x0041c508, 2}, + { 0x0041c608, 1}, + { 0x0041c680, 8}, + { 0x0041c6a8, 5}, + { 0x0041c700, 8}, + { 0x0041c728, 5}, + { 0x0041c780, 8}, + { 0x0041c7a8, 5}, + { 0x0041c854, 1}, + { 0x0041cb04, 1}, + { 0x0041cb3c, 1}, + { 0x0041cb48, 1}, + { 0x0041cb50, 1}, + { 0x0041cba0, 2}, + { 0x0041cbb0, 1}, + { 0x0041cbdc, 1}, + { 0x0041cc0c, 1}, + { 0x0041cc8c, 1}, + { 0x0041cd00, 1}, + { 0x0041cd08, 2}, + { 0x0041ce08, 1}, + { 0x0041ce80, 8}, + { 0x0041cea8, 5}, + { 0x0041cf00, 8}, + { 0x0041cf28, 5}, + { 0x0041cf80, 8}, + { 0x0041cfa8, 5}, + { 0x0041d054, 1}, + { 0x0041d304, 1}, + { 0x0041d33c, 1}, + { 0x0041d348, 1}, + { 0x0041d350, 1}, + { 0x0041d3a0, 2}, + { 0x0041d3b0, 1}, + { 0x0041d3dc, 1}, + { 0x0041d40c, 1}, + { 0x0041d48c, 1}, + { 0x0041d500, 1}, + { 0x0041d508, 2}, + { 0x0041d608, 1}, + { 0x0041d680, 8}, + { 0x0041d6a8, 5}, + { 0x0041d700, 8}, + { 0x0041d728, 5}, + { 0x0041d780, 8}, + { 0x0041d7a8, 5}, + { 0x0041d854, 1}, + { 0x0041db04, 1}, + { 0x0041db3c, 1}, + { 0x0041db48, 1}, + { 0x0041db50, 1}, + { 0x0041dba0, 2}, + { 0x0041dbb0, 1}, + { 0x0041dbdc, 1}, + { 0x0041dc0c, 1}, + { 0x0041dc8c, 1}, + { 0x0041dd00, 1}, + { 0x0041dd08, 2}, + { 0x0041de08, 1}, + { 0x0041de80, 8}, + { 0x0041dea8, 5}, + { 0x0041df00, 8}, + { 0x0041df28, 5}, + { 0x0041df80, 8}, + { 0x0041dfa8, 5}, + { 0x00500384, 1}, + { 0x005004a0, 1}, + { 0x00500604, 1}, + { 0x00500680, 1}, + { 0x00500714, 1}, + { 0x0050081c, 1}, + { 0x00500884, 1}, + { 0x005008b0, 1}, + { 0x005008c8, 3}, + { 0x005008fc, 1}, + { 0x00500b04, 1}, + { 0x00500c04, 1}, + { 0x00500c10, 8}, + { 0x00500c88, 1}, + { 0x00500d00, 1}, + { 0x00500e08, 1}, + { 0x00500f08, 1}, + { 0x00501000, 1}, + { 0x0050100c, 1}, + { 0x00501018, 1}, + { 0x00501854, 1}, + { 0x00501b04, 1}, + { 0x00501b3c, 1}, + { 0x00501b48, 1}, + { 0x00501b50, 1}, + { 0x00501ba0, 2}, + { 0x00501bb0, 1}, + { 0x00501bdc, 1}, + { 0x00501c0c, 1}, + { 0x00501c8c, 1}, + { 0x00501d00, 1}, + { 0x00501d08, 2}, + { 0x00501e08, 1}, + { 0x00501e80, 8}, + { 0x00501ea8, 5}, + { 0x00501f00, 8}, + { 0x00501f28, 5}, + { 0x00501f80, 8}, + { 0x00501fa8, 5}, + { 0x0050202c, 2}, + { 0x005020a0, 1}, + { 0x005020a8, 1}, + { 0x00502890, 2}, + { 0x005028a0, 3}, + { 0x005028b0, 2}, + { 0x00503014, 1}, + { 0x005030cc, 1}, + { 0x005031dc, 1}, + { 0x00503214, 1}, + { 0x005032cc, 1}, + { 0x005033dc, 1}, + { 0x00503e14, 1}, + { 0x00503ecc, 1}, + { 0x00503fdc, 1}, + { 0x00504054, 1}, + { 0x00504304, 1}, + { 0x0050433c, 1}, + { 0x00504348, 1}, + { 0x00504350, 1}, + { 0x005043a0, 2}, + { 0x005043b0, 1}, + { 0x005043dc, 1}, + { 0x0050440c, 1}, + { 0x0050448c, 1}, + { 0x00504500, 1}, + { 0x00504508, 2}, + { 0x00504608, 1}, + { 0x00504680, 8}, + { 0x005046a8, 5}, + { 0x00504700, 8}, + { 0x00504728, 5}, + { 0x00504780, 8}, + { 0x005047a8, 5}, + { 0x00504854, 1}, + { 0x00504b04, 1}, + { 0x00504b3c, 1}, + { 0x00504b48, 1}, + { 0x00504b50, 1}, + { 0x00504ba0, 2}, + { 0x00504bb0, 1}, + { 0x00504bdc, 1}, + { 0x00504c0c, 1}, + { 0x00504c8c, 1}, + { 0x00504d00, 1}, + { 0x00504d08, 2}, + { 0x00504e08, 1}, + { 0x00504e80, 8}, + { 0x00504ea8, 5}, + { 0x00504f00, 8}, + { 0x00504f28, 5}, + { 0x00504f80, 8}, + { 0x00504fa8, 5}, + { 0x00505054, 1}, + { 0x00505304, 1}, + { 0x0050533c, 1}, + { 0x00505348, 1}, + { 0x00505350, 1}, + { 0x005053a0, 2}, + { 0x005053b0, 1}, + { 0x005053dc, 1}, + { 0x0050540c, 1}, + { 0x0050548c, 1}, + { 0x00505500, 1}, + { 0x00505508, 2}, + { 0x00505608, 1}, + { 0x00505680, 8}, + { 0x005056a8, 5}, + { 0x00505700, 8}, + { 0x00505728, 5}, + { 0x00505780, 8}, + { 0x005057a8, 5}, + { 0x00505854, 1}, + { 0x00505b04, 1}, + { 0x00505b3c, 1}, + { 0x00505b48, 1}, + { 0x00505b50, 1}, + { 0x00505ba0, 2}, + { 0x00505bb0, 1}, + { 0x00505bdc, 1}, + { 0x00505c0c, 1}, + { 0x00505c8c, 1}, + { 0x00505d00, 1}, + { 0x00505d08, 2}, + { 0x00505e08, 1}, + { 0x00505e80, 8}, + { 0x00505ea8, 5}, + { 0x00505f00, 8}, + { 0x00505f28, 5}, + { 0x00505f80, 8}, + { 0x00505fa8, 5}, + { 0x00900100, 1}, + { 0x009a0100, 1}, +}; + +static const u32 gv11b_global_whitelist_ranges_count = + ARRAY_SIZE(gv11b_global_whitelist_ranges); + +/* context */ + +/* runcontrol */ +static const u32 gv11b_runcontrol_whitelist[] = { +}; +static const u32 gv11b_runcontrol_whitelist_count = + ARRAY_SIZE(gv11b_runcontrol_whitelist); + +static const struct regop_offset_range gv11b_runcontrol_whitelist_ranges[] = { +}; +static const u32 gv11b_runcontrol_whitelist_ranges_count = + ARRAY_SIZE(gv11b_runcontrol_whitelist_ranges); + + +/* quad ctl */ +static const u32 gv11b_qctl_whitelist[] = { +}; +static const u32 gv11b_qctl_whitelist_count = + ARRAY_SIZE(gv11b_qctl_whitelist); + +static const struct regop_offset_range gv11b_qctl_whitelist_ranges[] = { +}; +static const u32 gv11b_qctl_whitelist_ranges_count = + ARRAY_SIZE(gv11b_qctl_whitelist_ranges); + +static const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void) +{ + return gv11b_global_whitelist_ranges; +} + +static int gv11b_get_global_whitelist_ranges_count(void) +{ + return gv11b_global_whitelist_ranges_count; +} + +static const struct regop_offset_range *gv11b_get_context_whitelist_ranges(void) +{ + return gv11b_global_whitelist_ranges; +} + +static int gv11b_get_context_whitelist_ranges_count(void) +{ + return gv11b_global_whitelist_ranges_count; +} + +static const u32 *gv11b_get_runcontrol_whitelist(void) +{ + return gv11b_runcontrol_whitelist; +} + +static int gv11b_get_runcontrol_whitelist_count(void) +{ + return gv11b_runcontrol_whitelist_count; +} + +static const +struct regop_offset_range *gv11b_get_runcontrol_whitelist_ranges(void) +{ + return gv11b_runcontrol_whitelist_ranges; +} + +static int gv11b_get_runcontrol_whitelist_ranges_count(void) +{ + return gv11b_runcontrol_whitelist_ranges_count; +} + +static const u32 *gv11b_get_qctl_whitelist(void) +{ + return gv11b_qctl_whitelist; +} + +static int gv11b_get_qctl_whitelist_count(void) +{ + return gv11b_qctl_whitelist_count; +} + +static const struct regop_offset_range *gv11b_get_qctl_whitelist_ranges(void) +{ + return gv11b_qctl_whitelist_ranges; +} + +static int gv11b_get_qctl_whitelist_ranges_count(void) +{ + return gv11b_qctl_whitelist_ranges_count; +} + +static int gv11b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) +{ + /* Not needed on gv11b */ + return 0; +} + +void gv11b_init_regops(struct gpu_ops *gops) +{ + gops->regops.get_global_whitelist_ranges = + gv11b_get_global_whitelist_ranges; + gops->regops.get_global_whitelist_ranges_count = + gv11b_get_global_whitelist_ranges_count; + + gops->regops.get_context_whitelist_ranges = + gv11b_get_context_whitelist_ranges; + gops->regops.get_context_whitelist_ranges_count = + gv11b_get_context_whitelist_ranges_count; + + gops->regops.get_runcontrol_whitelist = + gv11b_get_runcontrol_whitelist; + gops->regops.get_runcontrol_whitelist_count = + gv11b_get_runcontrol_whitelist_count; + + gops->regops.get_runcontrol_whitelist_ranges = + gv11b_get_runcontrol_whitelist_ranges; + gops->regops.get_runcontrol_whitelist_ranges_count = + gv11b_get_runcontrol_whitelist_ranges_count; + + gops->regops.get_qctl_whitelist = + gv11b_get_qctl_whitelist; + gops->regops.get_qctl_whitelist_count = + gv11b_get_qctl_whitelist_count; + + gops->regops.get_qctl_whitelist_ranges = + gv11b_get_qctl_whitelist_ranges; + gops->regops.get_qctl_whitelist_ranges_count = + gv11b_get_qctl_whitelist_ranges_count; + + gops->regops.apply_smpc_war = + gv11b_apply_smpc_war; +} -- cgit v1.2.2