mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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:
committed by
Deepak Nibade
parent
4b1d9ad441
commit
65ef5bc238
@@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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_ */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user