mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: add NVGPU_SUPPORT_COMPRESSION flag
Add NVGPU_SUPPORT_COMPRESSION to indicate if compression feature is supported in nvgpu. If not, set cbc.init, cbc.ctrl and cbc.alloc_comptags hals to NULL. Add corresponding GPU characteristics flag and IOCTL mapping to sync compression support status with nvrm_gpu. JIRA NVGPU-4666 Change-Id: I2e685688ddac592b3bb918ee70c82ea5524d695a Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2338926 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
cfc5bac059
commit
ee216bc941
@@ -250,7 +250,9 @@ static struct nvgpu_flags_mapping flags_mapping[] = {
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_SET_CTX_MMU_DEBUG_MODE,
|
||||
NVGPU_SUPPORT_SET_CTX_MMU_DEBUG_MODE},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_FAULT_RECOVERY,
|
||||
NVGPU_SUPPORT_FAULT_RECOVERY}
|
||||
NVGPU_SUPPORT_FAULT_RECOVERY},
|
||||
{NVGPU_GPU_FLAGS_SUPPORT_COMPRESSION,
|
||||
NVGPU_SUPPORT_COMPRESSION}
|
||||
};
|
||||
|
||||
static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g)
|
||||
|
||||
Reference in New Issue
Block a user