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>
This commit is contained in:
Seshendra Gadagottu
2019-11-06 14:05:28 -08:00
committed by Alex Waterman
parent 3d202fcceb
commit ad3cf4e79a
2 changed files with 6 additions and 11 deletions

View File

@@ -33,12 +33,16 @@ bool gv11b_class_is_valid(u32 class_num)
nvgpu_speculation_barrier();
switch (class_num) {
case VOLTA_A:
case VOLTA_COMPUTE_A:
case VOLTA_DMA_COPY_A:
case VOLTA_CHANNEL_GPFIFO_A:
valid = true;
break;
#ifdef CONFIG_NVGPU_GRAPHICS
case VOLTA_A:
valid = true;
break;
#endif
default:
valid = gp10b_class_is_valid(class_num);
break;

View File

@@ -69,16 +69,6 @@
*/
#define PASCAL_DMA_COPY_A 0xC0B5U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
* Class number for 3D graphics class methods on Volta chips.
*
* WAR: Lot of qnx safety tests are still using graphics 3d class. Until these
* tests get fixed, allowing 3d graphics class as valid class for
* safety build.
*/
#define VOLTA_A 0xC397U
/**
* @ingroup NVGPU_CLASS_VALID_NUM
*
@@ -102,6 +92,7 @@
#define FERMI_TWOD_A 0x902DU
#define MAXWELL_B 0xB197U
#define PASCAL_A 0xC097U
#define VOLTA_A 0xC397U
#define TURING_A 0xC597U
#endif