diff options
author | Sidath Senanayake <sidaths@google.com> | 2016-11-22 10:00:32 +0100 |
---|---|---|
committer | Sidath Senanayake <sidaths@google.com> | 2020-08-14 14:35:33 +0100 |
commit | 5f133f2dc7f7893f62b63f6889112c985673c502 (patch) | |
tree | 2a1b53742862a2b4b5b43c0f3504ce1048d848b8 /mali_kbase/mali_kbase_vinstr.c | |
parent | 9232778c98af5ff85caca9e5cd37b963fb3196d5 (diff) | |
download | gpu-5f133f2dc7f7893f62b63f6889112c985673c502.tar.gz |
Mali Bifrost DDK r3p0 KMD
Provenance:
7ee75b28d (collaborate/EAC/b_r3p0)
BX304L01B-BU-00000-r3p0-00rel0
BX304L06A-BU-00000-r3p0-00rel0
BX304X07X-BU-00000-r3p0-00rel0
Signed-off-by: Sidath Senanayake <sidaths@google.com>
Change-Id: I7a45a78c9d84463008986343e4cf3d11e467dce8
Diffstat (limited to 'mali_kbase/mali_kbase_vinstr.c')
-rw-r--r-- | mali_kbase/mali_kbase_vinstr.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mali_kbase/mali_kbase_vinstr.c b/mali_kbase/mali_kbase_vinstr.c index 3adb06d..7f7efc8 100644 --- a/mali_kbase/mali_kbase_vinstr.c +++ b/mali_kbase/mali_kbase_vinstr.c @@ -328,14 +328,13 @@ static int kbasep_vinstr_map_kernel_dump_buffer( struct kbase_va_region *reg; struct kbase_context *kctx = vinstr_ctx->kctx; u64 flags, nr_pages; - u16 va_align = 0; flags = BASE_MEM_PROT_CPU_RD | BASE_MEM_PROT_GPU_WR; vinstr_ctx->dump_size = kbasep_vinstr_dump_size_ctx(vinstr_ctx); nr_pages = PFN_UP(vinstr_ctx->dump_size); reg = kbase_mem_alloc(kctx, nr_pages, nr_pages, 0, &flags, - &vinstr_ctx->gpu_va, &va_align); + &vinstr_ctx->gpu_va); if (!reg) return -ENOMEM; @@ -397,7 +396,7 @@ static int kbasep_vinstr_create_kctx(struct kbase_vinstr_context *vinstr_ctx) /* Inform timeline client about new context. * Do this while holding the lock to avoid tracepoint * being created in both body and summary stream. */ - kbase_tlstream_tl_new_ctx( + KBASE_TLSTREAM_TL_NEW_CTX( vinstr_ctx->kctx, (u32)(vinstr_ctx->kctx->id), (u32)(vinstr_ctx->kctx->tgid)); @@ -428,7 +427,7 @@ static int kbasep_vinstr_create_kctx(struct kbase_vinstr_context *vinstr_ctx) kfree(element); mutex_unlock(&kbdev->kctx_list_lock); } - kbase_tlstream_tl_del_ctx(vinstr_ctx->kctx); + KBASE_TLSTREAM_TL_DEL_CTX(vinstr_ctx->kctx); vinstr_ctx->kctx = NULL; return err; } @@ -447,7 +446,7 @@ static int kbasep_vinstr_create_kctx(struct kbase_vinstr_context *vinstr_ctx) kfree(element); mutex_unlock(&kbdev->kctx_list_lock); } - kbase_tlstream_tl_del_ctx(vinstr_ctx->kctx); + KBASE_TLSTREAM_TL_DEL_CTX(vinstr_ctx->kctx); vinstr_ctx->kctx = NULL; return -EFAULT; } @@ -487,7 +486,7 @@ static void kbasep_vinstr_destroy_kctx(struct kbase_vinstr_context *vinstr_ctx) dev_warn(kbdev->dev, "kctx not in kctx_list\n"); /* Inform timeline client about context destruction. */ - kbase_tlstream_tl_del_ctx(vinstr_ctx->kctx); + KBASE_TLSTREAM_TL_DEL_CTX(vinstr_ctx->kctx); vinstr_ctx->kctx = NULL; } |