diff options
author | Kevin Huang <kevinh@nvidia.com> | 2014-04-02 21:36:42 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:08:59 -0400 |
commit | ea76deaa6a6da3167a3baf7fdcf10b9ebc92d296 (patch) | |
tree | 1547c38218f98c218fe87dfb5fb8821cc782027a /drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | |
parent | bde3d332f94c452fbecf5bccc26a075c966d2471 (diff) |
video: tegra: host: fix the bundle corruption
Wait for FE idle between SW bundles.
Bug 1477234
Bug 1486347
Bug 1485069
Change-Id: I5181b1240fff73cfecd07aa3e54076cde800ea00
Signed-off-by: Kevin Huang <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/391591
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h index ece7602d..4e7ada14 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | |||
@@ -234,6 +234,10 @@ static inline u32 gr_status_r(void) | |||
234 | { | 234 | { |
235 | return 0x00400700; | 235 | return 0x00400700; |
236 | } | 236 | } |
237 | static inline u32 gr_status_fe_method_upper_v(u32 r) | ||
238 | { | ||
239 | return (r >> 1) & 0x1; | ||
240 | } | ||
237 | static inline u32 gr_status_fe_method_lower_v(u32 r) | 241 | static inline u32 gr_status_fe_method_lower_v(u32 r) |
238 | { | 242 | { |
239 | return (r >> 2) & 0x1; | 243 | return (r >> 2) & 0x1; |
@@ -242,6 +246,10 @@ static inline u32 gr_status_fe_method_lower_idle_v(void) | |||
242 | { | 246 | { |
243 | return 0x00000000; | 247 | return 0x00000000; |
244 | } | 248 | } |
249 | static inline u32 gr_status_fe_method_fe_gi_v(u32 r) | ||
250 | { | ||
251 | return (r >> 21) & 0x1; | ||
252 | } | ||
245 | static inline u32 gr_status_mask_r(void) | 253 | static inline u32 gr_status_mask_r(void) |
246 | { | 254 | { |
247 | return 0x00400610; | 255 | return 0x00400610; |