Files
linux-nvgpu/drivers/gpu/nvgpu/include/nvgpu/class.h
Seshendra Gadagottu ad3cf4e79a gpu: nvgpu: disable graphics class support for safety build
Disabled graphics class support for safety build.

JIRA NVGPU-4314

Change-Id: I72ea732263f1777cb19fffa0c0128deeb435efa6
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2233581
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2020-12-15 14:10:29 -06:00

108 lines
3.0 KiB
C

/*
* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#ifndef NVGPU_CLASS_H
#define NVGPU_CLASS_H
/**
* @defgroup NVGPU_CLASS_VALID_NUM
*
* List of valid class numbers allowed in FuSa code.
*/
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for DMA copy class methods on Kepler chips.
*/
#define KEPLER_DMA_COPY_A 0xA0B5U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for Inline to memory class methods on Kepler and chips beyond.
* The source data is always from the pushbuffer, hence the name
* inline_to_memory.
*/
#define KEPLER_INLINE_TO_MEMORY_B 0xA140U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for Channel_GPFIFO class methods on Maxwell chips.
*/
#define MAXWELL_CHANNEL_GPFIFO_A 0xB06FU
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for DMA copy class methods on Maxwell chips.
*/
#define MAXWELL_DMA_COPY_A 0xB0B5U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for Channel_GPFIFO class methods on Pascal chips.
*/
#define PASCAL_CHANNEL_GPFIFO_A 0xC06FU
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for DMA copy class methods on Pascal chips.
*/
#define PASCAL_DMA_COPY_A 0xC0B5U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for Channel_GPFIFO class methods on Volta chips.
*/
#define VOLTA_CHANNEL_GPFIFO_A 0xC36FU
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for compute class methods on Volta chips.
*/
#define VOLTA_COMPUTE_A 0xC3C0U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for DMA copy class methods on Volta chips.
*/
#define VOLTA_DMA_COPY_A 0xC3B5U
#ifdef CONFIG_NVGPU_GRAPHICS
#define FERMI_TWOD_A 0x902DU
#define MAXWELL_B 0xB197U
#define PASCAL_A 0xC097U
#define VOLTA_A 0xC397U
#define TURING_A 0xC597U
#endif
#ifdef CONFIG_NVGPU_NON_FUSA
#define MAXWELL_COMPUTE_B 0xB1C0U
#define PASCAL_COMPUTE_A 0xC0C0U
#define TURING_CHANNEL_GPFIFO_A 0xC46FU
#define TURING_COMPUTE_A 0xC5C0U
#define TURING_DMA_COPY_A 0xC5B5U
#endif
#endif /* NVGPU_CLASS_H */