This reverts commit
f5b13bda8fc76f55e7312f4edb899efb2ab8a195.
WFI added with this patch times out sometimes and fails
graphics stability test
Hence revert the patch for now
Bug
200187904
Original Bug
1715732
Change-Id: Id8c936d38d2ffd60e79e6d637d1c3eda10104d4b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/
1134920
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
eng_info->runlist_id));
gk20a_writel(g, fifo_sched_disable_r(), disable);
- if (eng_info->engine_id == ENGINE_GR_GK20A)
- gr_gk20a_submit_fecs_method_wfi(g);
-
/* chid from pbdma status */
pbdma_stat = gk20a_readl(g, fifo_pbdma_status_r(eng_info->pbdma_id));
chan_stat = fifo_pbdma_status_chan_status_v(pbdma_stat);
/*
* GK20A Graphics
*
- * Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
gk20a_scale_suspend(pdev);
- ret = gk20a_fifo_disable_all_engine_activity(g, true);
- if (ret)
- return ret;
-
ret = gk20a_channel_suspend(g);
if (ret)
goto done;
return ret;
}
-int gr_gk20a_submit_fecs_method_wfi(struct gk20a *g)
-{
- u32 cur_ctx;
-
- cur_ctx = gk20a_readl(g, gr_fecs_current_ctx_r());
-
- if (gr_fecs_current_ctx_valid_v(cur_ctx))
- gr_gk20a_submit_fecs_method_op(g,
- (struct fecs_method_op_gk20a) {
- .mailbox.id = 0,
- .mailbox.data = 0,
- .mailbox.clr = ~0,
- .method.data = cur_ctx,
- .method.addr = gr_fecs_method_push_adr_wfi_v(),
- .mailbox.ret = NULL,
- .cond.ok = GR_IS_UCODE_OP_EQUAL,
- .mailbox.ok = 0x5,
- .cond.fail = GR_IS_UCODE_OP_EQUAL,
- .mailbox.fail = 0xA}, false);
-
- return 0;
-}
-
static int gr_gk20a_ctrl_ctxsw(struct gk20a *g, u32 fecs_method, u32 *ret)
{
return gr_gk20a_submit_fecs_method_op(g,
void gr_gk20a_free_gr_ctx(struct gk20a *g,
struct vm_gk20a *vm, struct gr_ctx_desc *gr_ctx);
int gr_gk20a_halt_pipe(struct gk20a *g);
-int gr_gk20a_submit_fecs_method_wfi(struct gk20a *g);
int gr_gk20a_debugfs_init(struct gk20a *g);
#if defined(CONFIG_GK20A_CYCLE_STATS)
/*
- * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
{
return 0x00000009;
}
-static inline u32 gr_fecs_method_push_adr_wfi_v(void)
-{
- return 0x0000000b;
-}
static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
{
return 0x00000015;
/*
- * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
{
return 0x00000009;
}
-static inline u32 gr_fecs_method_push_adr_wfi_v(void)
-{
- return 0x0000000b;
-}
static inline u32 gr_fecs_method_push_adr_restore_golden_v(void)
{
return 0x00000015;