mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Falcon controller halt interrupt status clear
- Added nvgpu_flcn_clear_halt_intr_status() to Wait for halt interrupt status clear by clear_halt_interrupt_status() HAL within timeout - Added gk20a_flcn_clear_halt_interrupt_status() to clear falcon controller halt interrupt status - Replaced flacon halt interrupt clear with nvgpu_flcn_clear_halt_intr_status() method NVGPU JIRA-99 Change-Id: I762a3c01cd1d02028eb6aaa9898a50be94376619 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master/r/1511333 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fbeca4a841
commit
2cf964d175
@@ -129,6 +129,7 @@ struct nvgpu_falcon_engine_dependency_ops {
|
||||
struct nvgpu_falcon_ops {
|
||||
int (*reset)(struct nvgpu_falcon *flcn);
|
||||
void (*set_irq)(struct nvgpu_falcon *flcn, bool enable);
|
||||
bool (*clear_halt_interrupt_status)(struct nvgpu_falcon *flcn);
|
||||
bool (*is_falcon_cpu_halted)(struct nvgpu_falcon *flcn);
|
||||
bool (*is_falcon_idle)(struct nvgpu_falcon *flcn);
|
||||
bool (*is_falcon_scrubbing_done)(struct nvgpu_falcon *flcn);
|
||||
@@ -167,6 +168,8 @@ struct nvgpu_falcon {
|
||||
|
||||
int nvgpu_flcn_wait_idle(struct nvgpu_falcon *flcn);
|
||||
int nvgpu_flcn_wait_for_halt(struct nvgpu_falcon *flcn, unsigned int timeout);
|
||||
int nvgpu_flcn_clear_halt_intr_status(struct nvgpu_falcon *flcn,
|
||||
unsigned int timeout);
|
||||
int nvgpu_flcn_reset(struct nvgpu_falcon *flcn);
|
||||
void nvgpu_flcn_set_irq(struct nvgpu_falcon *flcn, bool enable,
|
||||
u32 intr_mask, u32 intr_dest);
|
||||
|
||||
Reference in New Issue
Block a user