summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
diff options
context:
space:
mode:
authorShardar Shariff Md <smohammed@nvidia.com>2016-11-01 09:39:46 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:51 -0500
commit3a032c33fb70453494e0b143a93db61f859381ea (patch)
tree64b323a90cf2c2d3db1ff00cb4ea89c1a0833c60 /drivers/gpu/nvgpu/gp10b/hal_gp10b.c
parent3621d35f95d6060d87a31164b7884fc1e896989f (diff)
gpu: nvgpu: gp10b: define fuse macro depend on kernel version
- Define fuse macros depending on kernel version as fuse offset got changed in K4.4 and for K4.4 fuse defines are defined in common header file (tegra-fuse.h) - Use fuse control read/write APIs when reading control registers for K4.4 Bug 200243956 Change-Id: I34dabd1a307d10010cb89ac6a5f1e3f5b177c0fc Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com> Reviewed-on: http://git-master/r/1245825 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hal_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hal_gp10b.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
index 2699dd7a..f0137a70 100644
--- a/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/hal_gp10b.c
@@ -15,6 +15,7 @@
15 15
16#include <linux/types.h> 16#include <linux/types.h>
17#include <linux/printk.h> 17#include <linux/printk.h>
18#include <linux/version.h>
18 19
19#include <linux/types.h> 20#include <linux/types.h>
20 21
@@ -46,7 +47,9 @@
46#include "gk20a/dbg_gpu_gk20a.h" 47#include "gk20a/dbg_gpu_gk20a.h"
47#include "gk20a/css_gr_gk20a.h" 48#include "gk20a/css_gr_gk20a.h"
48 49
50#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0)
49#define FUSE_OPT_PRIV_SEC_EN_0 0x264 51#define FUSE_OPT_PRIV_SEC_EN_0 0x264
52#endif
50#define PRIV_SECURITY_ENABLED 0x01 53#define PRIV_SECURITY_ENABLED 0x01
51 54
52static struct gpu_ops gp10b_ops = { 55static struct gpu_ops gp10b_ops = {