diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-06-27 19:36:48 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-02 13:20:08 -0400 |
commit | 8a0221cfc735f79c94447ff5922e26c313e0f177 (patch) | |
tree | b05cd72d9ae236cae90a843e9ecf1cc027d616c6 /drivers/gpu/nvgpu/gv11b/fifo_gv11b.h | |
parent | 5a57be6ba1d491b4a3258281c82345fdb4a83675 (diff) |
gpu: nvgpu: gv11b: implement eng method buffer init/deinit
When CE hits a page fault it needs to save out methods, it will
save it out to a per runqueue per TSG method buffer. The method buffers
(one per TSG runqueue) are allocated in BAR2 space during TSG creation
All channels in a TSG that are mapped to the same runqueue will point
to the same buffer.
S/w will insert channel's method buffer pointer in the channel's
instance block entries NV_RAMIN_ENG_METHOD_BUFFER_ADDR_LO and
NV_RAMIN_ENG_METHOD_BUFFER_ADDR_HI. Method buffer in memory will
be 32B aligned.
Eng method buffer allocated per tsg will be de-allocated during
tsg_release.
JIRA GPUT19X-46
Change-Id: Ib480ae5840d9815d24fe2eadc169ac3102854cd0
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master/r/1509747
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h index ab56b876..94b7934f 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.h | |||
@@ -31,6 +31,10 @@ | |||
31 | */ | 31 | */ |
32 | #define SCHED_ERROR_CODE_BAD_TSG 0x00000020 | 32 | #define SCHED_ERROR_CODE_BAD_TSG 0x00000020 |
33 | 33 | ||
34 | /* can be removed after runque support is added */ | ||
35 | |||
36 | #define GR_RUNQUE 0 /* pbdma 0 */ | ||
37 | #define ASYNC_CE_RUNQUE 2 /* pbdma 2 */ | ||
34 | 38 | ||
35 | struct gpu_ops; | 39 | struct gpu_ops; |
36 | void gv11b_init_fifo(struct gpu_ops *gops); | 40 | void gv11b_init_fifo(struct gpu_ops *gops); |