summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-02-28 15:12:38 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-01 16:46:43 -0500
commit2cc03def6a6427acdebd8a6053b1309280e5fe9b (patch)
tree4031336bf5aa0457ece4695d397a6c3b293c85fa /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
parent207e2ac7d12e62df476f4828136a4c15e156f8a6 (diff)
gpu: nvgpu: gv11b: update headers
generate headers for pri ring, pbdma intr and gmmu with updated reg generator JIRA GV11B-47 JIRA GV11B-7 Change-Id: Id198fb338c03acc52c523754cfd07db01ff9bffd Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1312756 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
index d2f22afa..45cb0ad5 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_fb_gv11b.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,
@@ -826,6 +826,10 @@ static inline u32 fb_mmu_fault_buffer_get_ptr_f(u32 v)
826{ 826{
827 return (v & 0xfffff) << 0; 827 return (v & 0xfffff) << 0;
828} 828}
829static inline u32 fb_mmu_fault_buffer_get_ptr_m(void)
830{
831 return 0xfffff << 0;
832}
829static inline u32 fb_mmu_fault_buffer_get_ptr_v(u32 r) 833static inline u32 fb_mmu_fault_buffer_get_ptr_v(u32 r)
830{ 834{
831 return (r >> 0) & 0xfffff; 835 return (r >> 0) & 0xfffff;
@@ -1330,6 +1334,10 @@ static inline u32 fb_mmu_fault_status_replayable_set_f(void)
1330{ 1334{
1331 return 0x100; 1335 return 0x100;
1332} 1336}
1337static inline u32 fb_mmu_fault_status_replayable_reset_f(void)
1338{
1339 return 0x0;
1340}
1333static inline u32 fb_mmu_fault_status_non_replayable_f(u32 v) 1341static inline u32 fb_mmu_fault_status_non_replayable_f(u32 v)
1334{ 1342{
1335 return (v & 0x1) << 9; 1343 return (v & 0x1) << 9;
@@ -1346,6 +1354,10 @@ static inline u32 fb_mmu_fault_status_non_replayable_set_f(void)
1346{ 1354{
1347 return 0x200; 1355 return 0x200;
1348} 1356}
1357static inline u32 fb_mmu_fault_status_non_replayable_reset_f(void)
1358{
1359 return 0x0;
1360}
1349static inline u32 fb_mmu_fault_status_replayable_error_f(u32 v) 1361static inline u32 fb_mmu_fault_status_replayable_error_f(u32 v)
1350{ 1362{
1351 return (v & 0x1) << 10; 1363 return (v & 0x1) << 10;
@@ -1362,6 +1374,10 @@ static inline u32 fb_mmu_fault_status_replayable_error_set_f(void)
1362{ 1374{
1363 return 0x400; 1375 return 0x400;
1364} 1376}
1377static inline u32 fb_mmu_fault_status_replayable_error_reset_f(void)
1378{
1379 return 0x0;
1380}
1365static inline u32 fb_mmu_fault_status_non_replayable_error_f(u32 v) 1381static inline u32 fb_mmu_fault_status_non_replayable_error_f(u32 v)
1366{ 1382{
1367 return (v & 0x1) << 11; 1383 return (v & 0x1) << 11;
@@ -1378,6 +1394,10 @@ static inline u32 fb_mmu_fault_status_non_replayable_error_set_f(void)
1378{ 1394{
1379 return 0x800; 1395 return 0x800;
1380} 1396}
1397static inline u32 fb_mmu_fault_status_non_replayable_error_reset_f(void)
1398{
1399 return 0x0;
1400}
1381static inline u32 fb_mmu_fault_status_replayable_overflow_f(u32 v) 1401static inline u32 fb_mmu_fault_status_replayable_overflow_f(u32 v)
1382{ 1402{
1383 return (v & 0x1) << 12; 1403 return (v & 0x1) << 12;
@@ -1394,6 +1414,10 @@ static inline u32 fb_mmu_fault_status_replayable_overflow_set_f(void)
1394{ 1414{
1395 return 0x1000; 1415 return 0x1000;
1396} 1416}
1417static inline u32 fb_mmu_fault_status_replayable_overflow_reset_f(void)
1418{
1419 return 0x0;
1420}
1397static inline u32 fb_mmu_fault_status_non_replayable_overflow_f(u32 v) 1421static inline u32 fb_mmu_fault_status_non_replayable_overflow_f(u32 v)
1398{ 1422{
1399 return (v & 0x1) << 13; 1423 return (v & 0x1) << 13;
@@ -1410,6 +1434,10 @@ static inline u32 fb_mmu_fault_status_non_replayable_overflow_set_f(void)
1410{ 1434{
1411 return 0x2000; 1435 return 0x2000;
1412} 1436}
1437static inline u32 fb_mmu_fault_status_non_replayable_overflow_reset_f(void)
1438{
1439 return 0x0;
1440}
1413static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_f(u32 v) 1441static inline u32 fb_mmu_fault_status_replayable_getptr_corrupted_f(u32 v)
1414{ 1442{
1415 return (v & 0x1) << 14; 1443 return (v & 0x1) << 14;