From f82d6e9d190449b06066eff1a01700e8387eb7c2 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Mon, 3 Nov 2014 10:40:02 +0200 Subject: gpu: nvgpu: Regenerate HW headers Regenerate HW headers after adding SM debugger registers. Change-Id: Icc47c11f8e9ff52c0cf1f3a54233fb781c2c2b67 Signed-off-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 63ab6c9f..f87608d1 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -7285,7 +7285,7 @@ void gk20a_resume_all_sms(struct gk20a *g) gr_gpcs_tpcs_sm_dbgr_control0_r(), dbgr_control0); /* Run trigger */ - dbgr_control0 |= gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_enable_f(); + dbgr_control0 |= gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(); gk20a_writel(g, gr_gpcs_tpcs_sm_dbgr_control0_r(), dbgr_control0); } diff --git a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h index 65a3072c..3b16df58 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h @@ -2812,7 +2812,7 @@ static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_enable_f(void) } static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_stop_trigger_disable_f(void) { - return 0x00000000; + return 0x0; } static inline u32 gr_gpc0_tpc0_sm_dbgr_control0_run_trigger_task_f(void) { @@ -3234,38 +3234,40 @@ static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r(void) { return 0x00419e10; } - -static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_r_debugger_mode_v(u32 r) +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_f(u32 v) { - return (r >> 0) & 0x1; + return (v & 0x1) << 0; } - -static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r) +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_v(void) { - return (r >> 31) & 0x1; + return 0x00000001; } static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_m(void) { return 0x1 << 31; } +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_v(u32 r) +{ + return (r >> 31) & 0x1; +} static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_enable_f(void) { return 0x80000000; } -static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r) +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_stop_trigger_disable_f(void) { - return (r >> 30) & 0x1; + return 0x0; } static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_m(void) { return 0x1 << 30; } -static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_enable_f(void) +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_v(u32 r) { - return 0x40000000; + return (r >> 30) & 0x1; } -static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_debugger_mode_on_f(void) +static inline u32 gr_gpcs_tpcs_sm_dbgr_control0_run_trigger_task_f(void) { - return 0x1; + return 0x40000000; } #endif -- cgit v1.2.2