summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h
diff options
context:
space:
mode:
authorSeshendra Gadagottu <sgadagottu@nvidia.com>2015-02-06 15:39:05 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:04 -0500
commit8fe7abebbbbfdc8b1acedd41aa8ac1926a24dc93 (patch)
tree34d1179b51df7b1a94698eed1e8f6d98c8055add /drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h
parent750014be79cce9562653db96e735f78fdc2e058f (diff)
gpu: nvgpu: gp10b: Add replayable pagefault buffer
Add support for replayable fault buffer and enable it. Bug 1587836 Change-Id: Iee4ba42ab175c0d72d2c041fdb3ac9d845358847 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/661668 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h b/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h
new file mode 100644
index 00000000..965c9573
--- /dev/null
+++ b/drivers/gpu/nvgpu/gp10b/rpfb_gp10b.h
@@ -0,0 +1,30 @@
1/*
2 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
3 *
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,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 */
13
14#ifndef RPFB_GP20B_H
15#define RPFB_GP20B_H
16struct gk20a;
17
18#define NV_UVM_FAULT_BUF_SIZE 32
19
20int gp10b_replayable_pagefault_buffer_init(struct gk20a *g);
21u32 gp10b_replayable_pagefault_buffer_get_index(struct gk20a *g);
22u32 gp10b_replayable_pagefault_buffer_put_index(struct gk20a *g);
23bool gp10b_replayable_pagefault_buffer_is_empty(struct gk20a *g);
24bool gp10b_replayable_pagefault_buffer_is_full(struct gk20a *g);
25bool gp10b_replayable_pagefault_buffer_is_overflow(struct gk20a *g);
26void gp10b_replayable_pagefault_buffer_clear_overflow(struct gk20a *g);
27void gp10b_replayable_pagefault_buffer_info(struct gk20a *g);
28void gp10b_replayable_pagefault_buffer_deinit(struct gk20a *g);
29
30#endif