gpu: nvgpu: gm20b: Enable CTA preemption

CTA preemption needs to be enabled by setting a value in context. Set
it for gm20b.

Bug 200063473
Bug 1517461

Change-Id: I080cd71b348d08f834fd23ebbe7443dba79224db
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/661299
This commit is contained in:
Terje Bergstrom
2014-12-09 10:04:05 +02:00
committed by Dan Willemsen
parent 4ccb162da7
commit 5df3d09e16
5 changed files with 60 additions and 8 deletions

View File

@@ -150,11 +150,15 @@ struct gr_ctx_desc {
u64 iova;
size_t size;
u64 gpu_va;
int preempt_mode;
#ifdef CONFIG_ARCH_TEGRA_18x_SOC
struct gr_ctx_desc_t18x t18x;
#endif
};
#define NVGPU_GR_PREEMPTION_MODE_WFI 0
#define NVGPU_GR_PREEMPTION_MODE_CTA 2
struct compbit_store_desc {
struct page **pages;
struct sg_table *sgt;