mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: update the config options & makefile
Added dependency between the Kconfig options as follows where '->' indicates 'depends on' relation: SUPPORT_CDE -> COMPRESSION -> DMABUF_HAS_DRVDATA DGPU -> GK20A_PCI Defined Kconfig option for VPR and for DGPU that is dependent GK20A_PCI as well. DGPU related sources are now compiled under config flag DGPU. Also update conditional compilation of the driver paths w.r.t DGPU, VPR and COMPRESSION flags. Bug 2834141 Change-Id: Ia0a39d6d4cf8b36e7f955b7355a5ab41783f821c Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2299627 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
ef69bbc92b
commit
630eaa46cb
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Tegra GK20A GPU Debugger/Profiler Driver
|
||||
*
|
||||
* Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
@@ -1565,6 +1565,7 @@ nvgpu_dbg_gpu_ioctl_suspend_resume_contexts(struct dbg_session_gk20a *dbg_s,
|
||||
return err;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
static int nvgpu_dbg_gpu_ioctl_access_fb_memory(struct dbg_session_gk20a *dbg_s,
|
||||
struct nvgpu_dbg_gpu_access_fb_memory_args *args)
|
||||
{
|
||||
@@ -1643,6 +1644,7 @@ fail_dmabuf_put:
|
||||
|
||||
return err;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int nvgpu_ioctl_profiler_reserve(struct dbg_session_gk20a *dbg_s,
|
||||
struct nvgpu_dbg_gpu_profiler_reserve_args *args)
|
||||
@@ -2123,10 +2125,12 @@ long gk20a_dbg_gpu_dev_ioctl(struct file *filp, unsigned int cmd,
|
||||
(struct nvgpu_dbg_gpu_suspend_resume_contexts_args *)buf);
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
case NVGPU_DBG_GPU_IOCTL_ACCESS_FB_MEMORY:
|
||||
err = nvgpu_dbg_gpu_ioctl_access_fb_memory(dbg_s,
|
||||
(struct nvgpu_dbg_gpu_access_fb_memory_args *)buf);
|
||||
break;
|
||||
#endif
|
||||
|
||||
case NVGPU_DBG_GPU_IOCTL_PROFILER_ALLOCATE:
|
||||
err = nvgpu_ioctl_allocate_profiler_object(dbg_s_linux,
|
||||
|
||||
Reference in New Issue
Block a user