gpu:nvgpu: gp10b: update channel_setup_ramfc

Enable re-playable faults based on characteristics
flags passed in channel_setup_ramfc.

Bug 1645628

Change-Id: I7176efb3e5af9fefe5fb92cd5b49eb295e8e2c4a
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/743382
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Seshendra Gadagottu
2015-05-15 12:32:48 -07:00
committed by Deepak Nibade
parent 4b1d9ad441
commit 65ef5bc238
2 changed files with 9 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ static int channel_gp10b_commit_userd(struct channel_gk20a *c)
} }
static int channel_gp10b_setup_ramfc(struct channel_gk20a *c, static int channel_gp10b_setup_ramfc(struct channel_gk20a *c,
u64 gpfifo_base, u32 gpfifo_entries) u64 gpfifo_base, u32 gpfifo_entries, u32 flags)
{ {
void *inst_ptr; void *inst_ptr;
@@ -133,6 +133,7 @@ static int channel_gp10b_setup_ramfc(struct channel_gk20a *c,
pbdma_runlist_timeslice_timescale_3_f() | pbdma_runlist_timeslice_timescale_3_f() |
pbdma_runlist_timeslice_enable_true_f()); pbdma_runlist_timeslice_enable_true_f());
if ( flags & NVGPU_ALLOC_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE)
gp10b_set_pdb_fault_replay_flags(c->g, inst_ptr); gp10b_set_pdb_fault_replay_flags(c->g, inst_ptr);

View File

@@ -33,6 +33,12 @@
*/ */
#define NVGPU_AS_MAP_BUFFER_FLAGS_IO_COHERENT (1 << 4) #define NVGPU_AS_MAP_BUFFER_FLAGS_IO_COHERENT (1 << 4)
/*
* this flag is used in struct nvgpu_alloc_gpfifo_args
* to enable re-playable faults for that channel
*/
#define NVGPU_ALLOC_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2)
#endif /* _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ */ #endif /* _UAPI__LINUX_NVGPU_T18X_IOCTL_H_ */