mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: remove direct tsg retrieval from fifo
Added - nvgpu_tsg_check_and_get_from_id - nvgpu_tsg_get_from_id And removed direct accesses to f->tsg array. Jira NVGPU-3156 Change-Id: I8610e19c1a6e06521c16a1ec0c3a7a011978d0b7 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2101251 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
124cdb4509
commit
965062c2bc
@@ -85,7 +85,7 @@ void nvgpu_rc_pbdma_fault(struct gk20a *g, struct fifo_gk20a *f,
|
||||
/* Remove channel from runlist */
|
||||
id = pbdma_status.id;
|
||||
if (pbdma_status.id_type == PBDMA_STATUS_ID_TYPE_TSGID) {
|
||||
struct tsg_gk20a *tsg = &f->tsg[id];
|
||||
struct tsg_gk20a *tsg = nvgpu_tsg_get_from_id(g, id);
|
||||
|
||||
nvgpu_tsg_set_error_notifier(g, tsg, error_notifier);
|
||||
nvgpu_rc_tsg_and_related_engines(g, tsg, true,
|
||||
|
||||
Reference in New Issue
Block a user