diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_fb_gv11b.h | 74 |
1 files changed, 73 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_fb_gv11b.h index 781dc0c1..0dc52fa0 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_fb_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_fb_gv11b.h | |||
@@ -1110,7 +1110,7 @@ static inline u32 fb_mmu_fault_info_replayable_fault_en_v(u32 r) | |||
1110 | { | 1110 | { |
1111 | return (r >> 30) & 0x1; | 1111 | return (r >> 30) & 0x1; |
1112 | } | 1112 | } |
1113 | static inline u32 fb_mmu_fault_info_info_valid_v(u32 r) | 1113 | static inline u32 fb_mmu_fault_info_valid_v(u32 r) |
1114 | { | 1114 | { |
1115 | return (r >> 31) & 0x1; | 1115 | return (r >> 31) & 0x1; |
1116 | } | 1116 | } |
@@ -1318,6 +1318,14 @@ static inline u32 fb_mmu_fault_status_replayable_v(u32 r) | |||
1318 | { | 1318 | { |
1319 | return (r >> 8) & 0x1; | 1319 | return (r >> 8) & 0x1; |
1320 | } | 1320 | } |
1321 | static inline u32 fb_mmu_fault_status_replayable_set_v(void) | ||
1322 | { | ||
1323 | return 0x00000001; | ||
1324 | } | ||
1325 | static inline u32 fb_mmu_fault_status_replayable_set_f(void) | ||
1326 | { | ||
1327 | return 0x100; | ||
1328 | } | ||
1321 | static inline u32 fb_mmu_fault_status_non_replayable_f(u32 v) | 1329 | static inline u32 fb_mmu_fault_status_non_replayable_f(u32 v) |
1322 | { | 1330 | { |
1323 | return (v & 0x1) << 9; | 1331 | return (v & 0x1) << 9; |
@@ -1326,6 +1334,14 @@ static inline u32 fb_mmu_fault_status_non_replayable_v(u32 r) | |||
1326 | { | 1334 | { |
1327 | return (r >> 9) & 0x1; | 1335 | return (r >> 9) & 0x1; |
1328 | } | 1336 | } |
1337 | static inline u32 fb_mmu_fault_status_non_replayable_set_v(void) | ||
1338 | { | ||
1339 | return 0x00000001; | ||
1340 | } | ||
1341 | static inline u32 fb_mmu_fault_status_non_replayable_set_f(void) | ||
1342 | { | ||
1343 | return 0x200; | ||
1344 | } | ||
1329 | static inline u32 fb_mmu_fault_status_replayable_error_f(u32 v) | 1345 | static inline u32 fb_mmu_fault_status_replayable_error_f(u32 v) |
1330 | { | 1346 | { |
1331 | return (v & 0x1) << 10; | 1347 | return (v & 0x1) << 10; |
@@ -1334,6 +1350,14 @@ static inline u32 fb_mmu_fault_status_replayable_error_v(u32 r) | |||
1334 | { | 1350 | { |
1335 | return (r >> 10) & 0x1; | 1351 | return (r >> 10) & 0x1; |
1336 | } | 1352 | } |
1353 | static inline u32 fb_mmu_fault_status_replayable_error_set_v(void) | ||
1354 | { | ||
1355 | return 0x00000001; | ||
1356 | } | ||
1357 | static inline u32 fb_mmu_fault_status_replayable_error_set_f(void) | ||
1358 | { | ||
1359 | return 0x400; | ||
1360 | } | ||
1337 | static inline u32 fb_mmu_fault_status_non_replayable_error_f(u32 v) | 1361 | static inline u32 fb_mmu_fault_status_non_replayable_error_f(u32 v) |
1338 | { | 1362 | { |
1339 | return (v & 0x1) << 11; | 1363 | return (v & 0x1) << 11; |
@@ -1342,6 +1366,14 @@ static inline u32 fb_mmu_fault_status_non_replayable_error_v(u32 r) | |||
1342 | { | 1366 | { |
1343 | return (r >> 11) & 0x1; | 1367 | return (r >> 11) & 0x1; |
1344 | } | 1368 | } |
1369 | static inline u32 fb_mmu_fault_status_non_replayable_error_set_v(void) | ||
1370 | { | ||
1371 | return 0x00000001; | ||
1372 | } | ||
1373 | static inline u32 fb_mmu_fault_status_non_replayable_error_set_f(void) | ||
1374 | { | ||
1375 | return 0x800; | ||
1376 | } | ||
1345 | static inline u32 fb_mmu_fault_status_replayable_overflow_f(u32 v) | 1377 | static inline u32 fb_mmu_fault_status_replayable_overflow_f(u32 v) |
1346 | { | 1378 | { |
1347 | return (v & 0x1) << 12; | 1379 | return (v & 0x1) << 12; |
@@ -1350,6 +1382,14 @@ static inline u32 fb_mmu_fault_status_replayable_overflow_v(u32 r) | |||
1350 | { | 1382 | { |
1351 | return (r >> 12) & 0x1; | 1383 | return (r >> 12) & 0x1; |
1352 | } | 1384 | } |
1385 | static inline u32 fb_mmu_fault_status_replayable_overflow_set_v(void) | ||
1386 | { | ||
1387 | return 0x00000001; | ||
1388 | } | ||
1389 | static inline u32 fb_mmu_fault_status_replayable_overflow_set_f(void) | ||
1390 | { | ||
1391 | return 0x1000; | ||
1392 | } | ||
1353 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_f(u32 v) | 1393 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_f(u32 v) |
1354 | { | 1394 | { |
1355 | return (v & 0x1) << 13; | 1395 | return (v & 0x1) << 13; |
@@ -1358,6 +1398,14 @@ static inline u32 fb_mmu_fault_status_non_replayable_overflow_v(u32 r) | |||
1358 | { | 1398 | { |
1359 | return (r >> 13) & 0x1; | 1399 | return (r >> 13) & 0x1; |
1360 | } | 1400 | } |
1401 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_v(void) | ||
1402 | { | ||
1403 | return 0x00000001; | ||
1404 | } | ||
1405 | static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_f(void) | ||
1406 | { | ||
1407 | return 0x2000; | ||
1408 | } | ||
1361 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_f(u32 v) | 1409 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_f(u32 v) |
1362 | { | 1410 | { |
1363 | return (v & 0x1) << 14; | 1411 | return (v & 0x1) << 14; |
@@ -1366,6 +1414,14 @@ static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_v(u32 r) | |||
1366 | { | 1414 | { |
1367 | return (r >> 14) & 0x1; | 1415 | return (r >> 14) & 0x1; |
1368 | } | 1416 | } |
1417 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_v(void) | ||
1418 | { | ||
1419 | return 0x00000001; | ||
1420 | } | ||
1421 | static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_set_f(void) | ||
1422 | { | ||
1423 | return 0x4000; | ||
1424 | } | ||
1369 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_f(u32 v) | 1425 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_f(u32 v) |
1370 | { | 1426 | { |
1371 | return (v & 0x1) << 15; | 1427 | return (v & 0x1) << 15; |
@@ -1374,6 +1430,14 @@ static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_v(u32 r) | |||
1374 | { | 1430 | { |
1375 | return (r >> 15) & 0x1; | 1431 | return (r >> 15) & 0x1; |
1376 | } | 1432 | } |
1433 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_v(void) | ||
1434 | { | ||
1435 | return 0x00000001; | ||
1436 | } | ||
1437 | static inline u32 fb_mmu_fault_status_non_replayable_getptr_corrupted_set_f(void) | ||
1438 | { | ||
1439 | return 0x8000; | ||
1440 | } | ||
1377 | static inline u32 fb_mmu_fault_status_busy_f(u32 v) | 1441 | static inline u32 fb_mmu_fault_status_busy_f(u32 v) |
1378 | { | 1442 | { |
1379 | return (v & 0x1) << 30; | 1443 | return (v & 0x1) << 30; |
@@ -1406,4 +1470,12 @@ static inline u32 fb_mmu_fault_status_valid_set_f(void) | |||
1406 | { | 1470 | { |
1407 | return 0x80000000; | 1471 | return 0x80000000; |
1408 | } | 1472 | } |
1473 | static inline u32 fb_mmu_fault_status_valid_clear_v(void) | ||
1474 | { | ||
1475 | return 0x00000001; | ||
1476 | } | ||
1477 | static inline u32 fb_mmu_fault_status_valid_clear_f(void) | ||
1478 | { | ||
1479 | return 0x80000000; | ||
1480 | } | ||
1409 | #endif | 1481 | #endif |