mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: update SSMD array size
-Update SSMD array size to hold all supported super-surface members -Handle the error and report if invalid SSMD ID is found. issue: At present SSMD array size set to 32 but overall 33 super-surface members are supported, when 33rd member accessed system crash happened due to overflow access, so fixing it by setting the SSMD array size to actual number of super-surface members supported Bug 200721968 Bug 200721966 Change-Id: I5ba1084a661d7497056f13a053d2fc79d50f595c Signed-off-by: mkumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2528569 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2514814851
commit
d2349b32ec
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2019-2021, 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"),
|
||||
@@ -63,7 +63,7 @@ u32 nvgpu_pmu_get_ss_member_get_status_offset(struct gk20a *g,
|
||||
struct nvgpu_pmu *pmu, u32 member_id);
|
||||
u32 nvgpu_pmu_get_ss_member_get_status_size(struct gk20a *g,
|
||||
struct nvgpu_pmu *pmu, u32 member_id);
|
||||
void nvgpu_pmu_ss_create_ssmd_lookup_table(struct gk20a *g,
|
||||
int nvgpu_pmu_ss_create_ssmd_lookup_table(struct gk20a *g,
|
||||
struct nvgpu_pmu *pmu, struct nvgpu_pmu_super_surface *ss);
|
||||
struct nvgpu_mem *nvgpu_pmu_super_surface_mem(struct gk20a *g,
|
||||
struct nvgpu_pmu *pmu, struct nvgpu_pmu_super_surface *ss);
|
||||
|
||||
Reference in New Issue
Block a user