summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h38
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h38
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_ccsr_gp106.h34
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h38
4 files changed, 142 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h
index 4877e4a8..c6f792e7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gk20a/hw_ccsr_gk20a.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2012-2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2012-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -114,6 +114,42 @@ static inline u32 ccsr_channel_status_v(u32 r)
114{ 114{
115 return (r >> 24) & 0xf; 115 return (r >> 24) & 0xf;
116} 116}
117static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
118{
119 return 0x00000002;
120}
121static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
122{
123 return 0x00000004;
124}
125static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
126{
127 return 0x0000000a;
128}
129static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
130{
131 return 0x0000000b;
132}
133static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
134{
135 return 0x0000000c;
136}
137static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
138{
139 return 0x0000000d;
140}
141static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
142{
143 return 0x0000000e;
144}
145static inline u32 ccsr_channel_next_v(u32 r)
146{
147 return (r >> 1) & 0x1;
148}
149static inline u32 ccsr_channel_next_true_v(void)
150{
151 return 0x00000001;
152}
117static inline u32 ccsr_channel_busy_v(u32 r) 153static inline u32 ccsr_channel_busy_v(u32 r)
118{ 154{
119 return (r >> 28) & 0x1; 155 return (r >> 28) & 0x1;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h
index 2fdf73ae..3f5d312f 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gm20b/hw_ccsr_gm20b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -110,6 +110,42 @@ static inline u32 ccsr_channel_status_v(u32 r)
110{ 110{
111 return (r >> 24) & 0xf; 111 return (r >> 24) & 0xf;
112} 112}
113static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
114{
115 return 0x00000002;
116}
117static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
118{
119 return 0x00000004;
120}
121static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
122{
123 return 0x0000000a;
124}
125static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
126{
127 return 0x0000000b;
128}
129static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
130{
131 return 0x0000000c;
132}
133static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
134{
135 return 0x0000000d;
136}
137static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
138{
139 return 0x0000000e;
140}
141static inline u32 ccsr_channel_next_v(u32 r)
142{
143 return (r >> 1) & 0x1;
144}
145static inline u32 ccsr_channel_next_true_v(void)
146{
147 return 0x00000001;
148}
113static inline u32 ccsr_channel_busy_v(u32 r) 149static inline u32 ccsr_channel_busy_v(u32 r)
114{ 150{
115 return (r >> 28) & 0x1; 151 return (r >> 28) & 0x1;
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_ccsr_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_ccsr_gp106.h
index 65146d39..13bd4251 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_ccsr_gp106.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_ccsr_gp106.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -114,12 +114,40 @@ static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
114{ 114{
115 return 0x00000002; 115 return 0x00000002;
116} 116}
117static inline u32 ccsr_channel_busy_v(u32 r) 117static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
118{ 118{
119 return (r >> 28) & 0x1; 119 return 0x00000004;
120}
121static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
122{
123 return 0x0000000a;
124}
125static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
126{
127 return 0x0000000b;
128}
129static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
130{
131 return 0x0000000c;
132}
133static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
134{
135 return 0x0000000d;
136}
137static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
138{
139 return 0x0000000e;
120} 140}
121static inline u32 ccsr_channel_next_v(u32 r) 141static inline u32 ccsr_channel_next_v(u32 r)
122{ 142{
123 return (r >> 1) & 0x1; 143 return (r >> 1) & 0x1;
124} 144}
145static inline u32 ccsr_channel_next_true_v(void)
146{
147 return 0x00000001;
148}
149static inline u32 ccsr_channel_busy_v(u32 r)
150{
151 return (r >> 28) & 0x1;
152}
125#endif 153#endif
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
index 99398961..33c83c80 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_ccsr_gp10b.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -110,6 +110,42 @@ static inline u32 ccsr_channel_status_v(u32 r)
110{ 110{
111 return (r >> 24) & 0xf; 111 return (r >> 24) & 0xf;
112} 112}
113static inline u32 ccsr_channel_status_pending_ctx_reload_v(void)
114{
115 return 0x00000002;
116}
117static inline u32 ccsr_channel_status_pending_acq_ctx_reload_v(void)
118{
119 return 0x00000004;
120}
121static inline u32 ccsr_channel_status_on_pbdma_ctx_reload_v(void)
122{
123 return 0x0000000a;
124}
125static inline u32 ccsr_channel_status_on_pbdma_and_eng_ctx_reload_v(void)
126{
127 return 0x0000000b;
128}
129static inline u32 ccsr_channel_status_on_eng_ctx_reload_v(void)
130{
131 return 0x0000000c;
132}
133static inline u32 ccsr_channel_status_on_eng_pending_ctx_reload_v(void)
134{
135 return 0x0000000d;
136}
137static inline u32 ccsr_channel_status_on_eng_pending_acq_ctx_reload_v(void)
138{
139 return 0x0000000e;
140}
141static inline u32 ccsr_channel_next_v(u32 r)
142{
143 return (r >> 1) & 0x1;
144}
145static inline u32 ccsr_channel_next_true_v(void)
146{
147 return 0x00000001;
148}
113static inline u32 ccsr_channel_busy_v(u32 r) 149static inline u32 ccsr_channel_busy_v(u32 r)
114{ 150{
115 return (r >> 28) & 0x1; 151 return (r >> 28) & 0x1;