mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: linux: Disable diversity related support
SM and CE diversities are safety only features. Hence, we do not require to expose their ioctl and diversity related flags for Linux. JIRA NVGPU-4133 Bug 2776580 Change-Id: Icc3cc04734ffdcd901222206fca9a3594340d0e1 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2258872 Reviewed-by: Shashank Singh <shashsingh@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
80f408632a
commit
d0bc8237e3
@@ -1133,16 +1133,6 @@ long gk20a_channel_ioctl(struct file *filp,
|
||||
struct nvgpu_alloc_obj_ctx_args *args =
|
||||
(struct nvgpu_alloc_obj_ctx_args *)buf;
|
||||
|
||||
if (nvgpu_is_enabled(ch->g, NVGPU_SUPPORT_SM_DIVERSITY)) {
|
||||
if (args->sm_diversity_config >=
|
||||
ch->g->max_sm_diversity_config_count) {
|
||||
err = -EINVAL;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
args->sm_diversity_config = 0U;
|
||||
}
|
||||
|
||||
err = gk20a_busy(ch->g);
|
||||
if (err) {
|
||||
dev_err(dev,
|
||||
|
||||
Reference in New Issue
Block a user