gpu: nvgpu: Remove redundant warnings from gk20a_ctrl_dev_ioctl

Remove redundant warnings that are being generated when nvpgu is returning
proper error codes. Add nvgpu_warns instead.

Bug 200457091

Change-Id: Ida44cd6bd784ad4ce55b44a8cf974bb89a5f3301
Signed-off-by: Anup Mahindre <amahindre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1980734
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Anup Mahindre
2018-12-26 13:26:45 +05:30
committed by mobile promotions
parent f6874ca733
commit 49f2692bc0

View File

@@ -942,13 +942,15 @@ static int nvgpu_gpu_alloc_vidmem(struct gk20a *g,
nvgpu_log_fn(g, " ");
/* not yet supported */
if (WARN_ON(args->in.flags & NVGPU_GPU_ALLOC_VIDMEM_FLAG_CPU_MASK)) {
if (args->in.flags & NVGPU_GPU_ALLOC_VIDMEM_FLAG_CPU_MASK) {
nvgpu_warn(g,
"Allocating vidmem with FLAG_CPU_MASK is not yet supported");
return -EINVAL;
}
/* not yet supported */
if (WARN_ON(args->in.flags & NVGPU_GPU_ALLOC_VIDMEM_FLAG_VPR)) {
if (args->in.flags & NVGPU_GPU_ALLOC_VIDMEM_FLAG_VPR) {
nvgpu_warn(g,
"Allocating vidmem with FLAG_VPR is not yet supported");
return -EINVAL;
}