mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: advertise NVS capability in gpu chars
Add nvs_ioctl_nr_last in nvgpu_gpu_characteristics. Add a feature flag SUPPORTS_NVS and enable it in Linux builds. Jira NVGPU-6788 Change-Id: I19df78982cca989da7ee053511af59bbb5df1180 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2636409 Reviewed-by: Alex Waterman <alexw@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:
committed by
mobile promotions
parent
0e8184b976
commit
d474bd4206
@@ -305,6 +305,8 @@ static struct nvgpu_flags_mapping flags_mapping[] = {
|
||||
NVGPU_SUPPORT_VAB_ENABLED},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_BUFFER_METADATA,
|
||||
NVGPU_SUPPORT_BUFFER_METADATA},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_NVS,
|
||||
NVGPU_SUPPORT_NVS},
|
||||
};
|
||||
|
||||
static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g)
|
||||
@@ -468,6 +470,7 @@ static long gk20a_ctrl_ioctl_gpu_characteristics(
|
||||
gpu.event_ioctl_nr_last = NVGPU_EVENT_IOCTL_LAST;
|
||||
gpu.ctxsw_ioctl_nr_last = NVGPU_CTXSW_IOCTL_LAST;
|
||||
gpu.prof_ioctl_nr_last = NVGPU_PROFILER_IOCTL_LAST;
|
||||
gpu.nvs_ioctl_nr_last = NVGPU_NVS_IOCTL_LAST;
|
||||
gpu.gpu_va_bit_count = 40;
|
||||
gpu.max_dbg_tsg_timeslice = g->tsg_dbg_timeslice_max_us;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user