aboutsummaryrefslogtreecommitdiffstats
path: root/runlist_procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'runlist_procfs.c')
-rw-r--r--runlist_procfs.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/runlist_procfs.c b/runlist_procfs.c
index a3a6df3..d4b5a4d 100644
--- a/runlist_procfs.c
+++ b/runlist_procfs.c
@@ -9,13 +9,9 @@
9 9
10#include "nvdebug_linux.h" 10#include "nvdebug_linux.h"
11 11
12// We cannot touch PRAMIN (via page table operations or ctxsw access) if we're
13// using it to walk the runlist
14//#ifndef FALLBACK_TO_PRAMIN
15// Uncomment to expand channel status, instance, and context information when 12// Uncomment to expand channel status, instance, and context information when
16// printing the runlist 13// printing the runlist
17#define DETAILED_CHANNEL_INFO 14#define DETAILED_CHANNEL_INFO
18//#endif
19 15
20#ifdef DETAILED_CHANNEL_INFO 16#ifdef DETAILED_CHANNEL_INFO
21// Print the channel instance and context swtich blocks 17// Print the channel instance and context swtich blocks
@@ -29,8 +25,13 @@ static int runlist_detail_seq_show_inst(struct seq_file *s, struct nvdebug_state
29 int i; 25 int i;
30 26
31#ifdef FALLBACK_TO_PRAMIN 27#ifdef FALLBACK_TO_PRAMIN
28 uint32_t window_reg;
29 if ((g->chip_id >= NV_CHIP_ID_HOPPER && g->chip_id < NV_CHIP_ID_ADA) || g->chip_id >= NV_CHIP_ID_BLACKWELL)
30 window_reg = NV_XAL_EP_BAR0_WINDOW_BASE;
31 else
32 window_reg = NV_PBUS_BAR0_WINDOW;
32 bar0_window_t win; 33 bar0_window_t win;
33 win.raw = nvdebug_readl(g, NV_XAL_EP_BAR0_WINDOW_BASE); 34 win.raw = nvdebug_readl(g, window_reg);
34 inst = g->regs + NV_PRAMIN + addr_to_pramin_mut(g, instance_ptr, instance_target); 35 inst = g->regs + NV_PRAMIN + addr_to_pramin_mut(g, instance_ptr, instance_target);
35#else 36#else
36 if (IS_ERR(inst = instance_deref(g, instance_ptr, instance_target))) 37 if (IS_ERR(inst = instance_deref(g, instance_ptr, instance_target)))
@@ -81,14 +82,14 @@ static int runlist_detail_seq_show_inst(struct seq_file *s, struct nvdebug_state
81 82
82 if (IS_ERR(ctxsw = get_ctxsw(g, inst))) { 83 if (IS_ERR(ctxsw = get_ctxsw(g, inst))) {
83#ifdef FALLBACK_TO_PRAMIN 84#ifdef FALLBACK_TO_PRAMIN
84 nvdebug_writel(g, NV_XAL_EP_BAR0_WINDOW_BASE, win.raw); 85 nvdebug_writel(g, window_reg, win.raw);
85#endif 86#endif
86 return PTR_ERR(ctxsw); 87 return PTR_ERR(ctxsw);
87 } 88 }
88 // If unable to access CTXSW block, skip 89 // If unable to access CTXSW block, skip
89 if (!ctxsw) { 90 if (!ctxsw) {
90#ifdef FALLBACK_TO_PRAMIN 91#ifdef FALLBACK_TO_PRAMIN
91 nvdebug_writel(g, NV_XAL_EP_BAR0_WINDOW_BASE, win.raw); 92 nvdebug_writel(g, window_reg, win.raw);
92#endif 93#endif
93 return 0; 94 return 0;
94 } 95 }
@@ -107,7 +108,7 @@ static int runlist_detail_seq_show_inst(struct seq_file *s, struct nvdebug_state
107 seq_printf(s, "%s| #GFXP Saves:%8d|\n", prefix, ctxsw->num_gfxp_save_operations); 108 seq_printf(s, "%s| #GFXP Saves:%8d|\n", prefix, ctxsw->num_gfxp_save_operations);
108 seq_printf(s, "%s| #CILP Saves:%8d|\n", prefix, ctxsw->num_cilp_save_operations); 109 seq_printf(s, "%s| #CILP Saves:%8d|\n", prefix, ctxsw->num_cilp_save_operations);
109#ifdef FALLBACK_TO_PRAMIN 110#ifdef FALLBACK_TO_PRAMIN
110 nvdebug_writel(g, NV_XAL_EP_BAR0_WINDOW_BASE, win.raw); 111 nvdebug_writel(g, window_reg, win.raw);
111#endif 112#endif
112 return 0; 113 return 0;
113} 114}
;id=0da35d673e1c1717821f724d8fb00379477b65be'>0da35d6
95b383c








0da35d6


95b383c
0da35d6






95b383c
0da35d6
95b383c

0da35d6
95b383c
0da35d6
95b383c
0da35d6
95b383c
0da35d6
95b383c

0da35d6
95b383c
0da35d6
95b383c
0da35d6
95b383c
0da35d6
95b383c


0da35d6
95b383c
0da35d6
95b383c


0da35d6

95b383c


0da35d6

95b383c
0da35d6
95b383c

0da35d6

95b383c
0da35d6

95b383c
0da35d6




95b383c
0da35d6
95b383c
0da35d6


95b383c
0da35d6

95b383c








0da35d6
95b383c
0da35d6




95b383c
0da35d6











95b383c
0da35d6

95b383c
0da35d6



95b383c
0da35d6
95b383c
0da35d6

95b383c
0da35d6
95b383c
0da35d6























95b383c
0da35d6
95b383c



0da35d6


95b383c




























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
32