summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
index 25509d50..edf536f5 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h
@@ -16,6 +16,8 @@
16#ifndef _NVGPU_GR_GP10B_H_ 16#ifndef _NVGPU_GR_GP10B_H_
17#define _NVGPU_GR_GP10B_H_ 17#define _NVGPU_GR_GP10B_H_
18 18
19#include <linux/version.h>
20
19struct gpu_ops; 21struct gpu_ops;
20 22
21enum { 23enum {
@@ -46,9 +48,15 @@ struct ecc_stat {
46struct gr_t18x { 48struct gr_t18x {
47 struct { 49 struct {
48 u32 preempt_image_size; 50 u32 preempt_image_size;
51#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
49 u32 force_preemption_gfxp; 52 u32 force_preemption_gfxp;
50 u32 force_preemption_cilp; 53 u32 force_preemption_cilp;
51 u32 dump_ctxsw_stats_on_channel_close; 54 u32 dump_ctxsw_stats_on_channel_close;
55#else
56 bool force_preemption_gfxp;
57 bool force_preemption_cilp;
58 bool dump_ctxsw_stats_on_channel_close;
59#endif
52 struct dentry *debugfs_force_preemption_cilp; 60 struct dentry *debugfs_force_preemption_cilp;
53 struct dentry *debugfs_force_preemption_gfxp; 61 struct dentry *debugfs_force_preemption_gfxp;
54 struct dentry *debugfs_dump_ctxsw_stats; 62 struct dentry *debugfs_dump_ctxsw_stats;