mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add intr_top_enable fifo gops
This is required for enabling fifo interrupts for nvgpu-next. JIRA NVGPU-4864 Change-Id: I5c09105296a01b82505023ecf576d71ce74f7a31 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2313013 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
d0ffb335dc
commit
b7767a604f
@@ -256,10 +256,14 @@ static void disable_fifo_interrupts(struct gk20a *g)
|
||||
g->ops.fifo.intr_0_enable(g, false);
|
||||
g->ops.fifo.intr_1_enable(g, false);
|
||||
|
||||
nvgpu_mc_intr_stall_unit_config(g, MC_INTR_UNIT_FIFO,
|
||||
if (g->ops.fifo.intr_top_enable == NULL) {
|
||||
nvgpu_mc_intr_stall_unit_config(g, MC_INTR_UNIT_FIFO,
|
||||
MC_INTR_DISABLE);
|
||||
nvgpu_mc_intr_nonstall_unit_config(g, MC_INTR_UNIT_FIFO,
|
||||
nvgpu_mc_intr_nonstall_unit_config(g, MC_INTR_UNIT_FIFO,
|
||||
MC_INTR_DISABLE);
|
||||
} else {
|
||||
g->ops.fifo.intr_top_enable(g, MC_INTR_DISABLE);
|
||||
}
|
||||
}
|
||||
|
||||
int nvgpu_fifo_suspend(struct gk20a *g)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -189,6 +189,7 @@ struct gops_fifo {
|
||||
unsigned int id_type);
|
||||
void (*intr_set_recover_mask)(struct gk20a *g);
|
||||
void (*intr_unset_recover_mask)(struct gk20a *g);
|
||||
void (*intr_top_enable)(struct gk20a *g, bool enable);
|
||||
void (*intr_0_enable)(struct gk20a *g, bool enable);
|
||||
void (*intr_1_enable)(struct gk20a *g, bool enable);
|
||||
bool (*handle_sched_error)(struct gk20a *g);
|
||||
|
||||
Reference in New Issue
Block a user