diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h | 194 |
1 files changed, 193 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h index f60b34e2..6db5654b 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_ltc_gk20a.h | |||
@@ -54,6 +54,14 @@ static inline u32 ltc_ltcs_lts0_cbc_ctrl1_r(void) | |||
54 | { | 54 | { |
55 | return 0x001410c8; | 55 | return 0x001410c8; |
56 | } | 56 | } |
57 | static inline u32 ltc_ltc0_lts0_dstg_cfg0_r(void) | ||
58 | { | ||
59 | return 0x00141200; | ||
60 | } | ||
61 | static inline u32 ltc_ltcs_ltss_dstg_cfg0_r(void) | ||
62 | { | ||
63 | return 0x0017ea00; | ||
64 | } | ||
57 | static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void) | 65 | static inline u32 ltc_ltc0_lts0_tstg_cfg1_r(void) |
58 | { | 66 | { |
59 | return 0x00141104; | 67 | return 0x00141104; |
@@ -104,7 +112,7 @@ static inline u32 ltc_ltcs_ltss_cbc_ctrl1_clear_active_f(void) | |||
104 | } | 112 | } |
105 | static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void) | 113 | static inline u32 ltc_ltc0_lts0_cbc_ctrl1_r(void) |
106 | { | 114 | { |
107 | return 0x0017e8c8; | 115 | return 0x001410c8; |
108 | } | 116 | } |
109 | static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void) | 117 | static inline u32 ltc_ltcs_ltss_cbc_ctrl2_r(void) |
110 | { | 118 | { |
@@ -242,4 +250,188 @@ static inline u32 ltc_ltc0_ltss_intr_r(void) | |||
242 | { | 250 | { |
243 | return 0x00140820; | 251 | return 0x00140820; |
244 | } | 252 | } |
253 | static inline u32 ltc_ltcs_ltss_intr_r(void) | ||
254 | { | ||
255 | return 0x0017e820; | ||
256 | } | ||
257 | static inline u32 ltc_ltcs_ltss_intr_en_evicted_cb_m(void) | ||
258 | { | ||
259 | return 0x1 << 20; | ||
260 | } | ||
261 | static inline u32 ltc_ltc0_lts0_intr_r(void) | ||
262 | { | ||
263 | return 0x00141020; | ||
264 | } | ||
265 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_r(void) | ||
266 | { | ||
267 | return 0x0017e910; | ||
268 | } | ||
269 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_v(u32 r) | ||
270 | { | ||
271 | return (r >> 0) & 0x1; | ||
272 | } | ||
273 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_v(void) | ||
274 | { | ||
275 | return 0x00000001; | ||
276 | } | ||
277 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_pending_f(void) | ||
278 | { | ||
279 | return 0x1; | ||
280 | } | ||
281 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_v(u32 r) | ||
282 | { | ||
283 | return (r >> 8) & 0xf; | ||
284 | } | ||
285 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_v(void) | ||
286 | { | ||
287 | return 0x00000003; | ||
288 | } | ||
289 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_max_cycles_between_invalidates_3_f(void) | ||
290 | { | ||
291 | return 0x300; | ||
292 | } | ||
293 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_v(u32 r) | ||
294 | { | ||
295 | return (r >> 28) & 0x1; | ||
296 | } | ||
297 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_v(void) | ||
298 | { | ||
299 | return 0x00000001; | ||
300 | } | ||
301 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_last_class_true_f(void) | ||
302 | { | ||
303 | return 0x10000000; | ||
304 | } | ||
305 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_v(u32 r) | ||
306 | { | ||
307 | return (r >> 29) & 0x1; | ||
308 | } | ||
309 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_v(void) | ||
310 | { | ||
311 | return 0x00000001; | ||
312 | } | ||
313 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_normal_class_true_f(void) | ||
314 | { | ||
315 | return 0x20000000; | ||
316 | } | ||
317 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_v(u32 r) | ||
318 | { | ||
319 | return (r >> 30) & 0x1; | ||
320 | } | ||
321 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_v(void) | ||
322 | { | ||
323 | return 0x00000001; | ||
324 | } | ||
325 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt0_invalidate_evict_first_class_true_f(void) | ||
326 | { | ||
327 | return 0x40000000; | ||
328 | } | ||
329 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_r(void) | ||
330 | { | ||
331 | return 0x0017e914; | ||
332 | } | ||
333 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_v(u32 r) | ||
334 | { | ||
335 | return (r >> 0) & 0x1; | ||
336 | } | ||
337 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_v(void) | ||
338 | { | ||
339 | return 0x00000001; | ||
340 | } | ||
341 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_pending_f(void) | ||
342 | { | ||
343 | return 0x1; | ||
344 | } | ||
345 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_v(u32 r) | ||
346 | { | ||
347 | return (r >> 8) & 0xf; | ||
348 | } | ||
349 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_v(void) | ||
350 | { | ||
351 | return 0x00000003; | ||
352 | } | ||
353 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_max_cycles_between_cleans_3_f(void) | ||
354 | { | ||
355 | return 0x300; | ||
356 | } | ||
357 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_v(u32 r) | ||
358 | { | ||
359 | return (r >> 16) & 0x1; | ||
360 | } | ||
361 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_v(void) | ||
362 | { | ||
363 | return 0x00000001; | ||
364 | } | ||
365 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_wait_for_fb_to_pull_true_f(void) | ||
366 | { | ||
367 | return 0x10000; | ||
368 | } | ||
369 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_v(u32 r) | ||
370 | { | ||
371 | return (r >> 28) & 0x1; | ||
372 | } | ||
373 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_v(void) | ||
374 | { | ||
375 | return 0x00000001; | ||
376 | } | ||
377 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_last_class_true_f(void) | ||
378 | { | ||
379 | return 0x10000000; | ||
380 | } | ||
381 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_v(u32 r) | ||
382 | { | ||
383 | return (r >> 29) & 0x1; | ||
384 | } | ||
385 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_v(void) | ||
386 | { | ||
387 | return 0x00000001; | ||
388 | } | ||
389 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_normal_class_true_f(void) | ||
390 | { | ||
391 | return 0x20000000; | ||
392 | } | ||
393 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_v(u32 r) | ||
394 | { | ||
395 | return (r >> 30) & 0x1; | ||
396 | } | ||
397 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_v(void) | ||
398 | { | ||
399 | return 0x00000001; | ||
400 | } | ||
401 | static inline u32 ltc_ltcs_ltss_tstg_cmgmt1_clean_evict_first_class_true_f(void) | ||
402 | { | ||
403 | return 0x40000000; | ||
404 | } | ||
405 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_r(void) | ||
406 | { | ||
407 | return 0x00140910; | ||
408 | } | ||
409 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_v(u32 r) | ||
410 | { | ||
411 | return (r >> 0) & 0x1; | ||
412 | } | ||
413 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_v(void) | ||
414 | { | ||
415 | return 0x00000001; | ||
416 | } | ||
417 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt0_invalidate_pending_f(void) | ||
418 | { | ||
419 | return 0x1; | ||
420 | } | ||
421 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_r(void) | ||
422 | { | ||
423 | return 0x00140914; | ||
424 | } | ||
425 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_v(u32 r) | ||
426 | { | ||
427 | return (r >> 0) & 0x1; | ||
428 | } | ||
429 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_v(void) | ||
430 | { | ||
431 | return 0x00000001; | ||
432 | } | ||
433 | static inline u32 ltc_ltc0_ltss_tstg_cmgmt1_clean_pending_f(void) | ||
434 | { | ||
435 | return 0x1; | ||
436 | } | ||
245 | #endif | 437 | #endif |