mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
nvgpu: force cilp in cta
For integration testing in safety build, we need to test ctxsw firmware header interface. inorder to validate we populate header with unsupported data. Use CONFIG_NVGPU_CTXSW_FW_ERROR_HEADER_TESTING for testing CILP error. JIRA NVGPU-4471 Change-Id: Ibcd2f9cccc7a85403d2b006ad8164e37592ccaa1 Signed-off-by: sagar <skadamati@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2284602 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> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
@@ -78,6 +78,9 @@ NVGPU_COMMON_CFLAGS += \
|
||||
#
|
||||
# NVGPU_COMMON_CFLAGS += \
|
||||
# -DCONFIG_NVGPU_CTXSW_FW_ERROR_CODE_TESTING
|
||||
#
|
||||
# NVGPU_COMMON_CFLAGS += \
|
||||
# -DCONFIG_NVGPU_CTXSW_FW_ERROR_HEADER_TESTING
|
||||
|
||||
endif
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2020, 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"),
|
||||
@@ -34,7 +34,11 @@ void gp10b_ctxsw_prog_set_compute_preemption_mode_cta(struct gk20a *g,
|
||||
{
|
||||
nvgpu_mem_wr(g, ctx_mem,
|
||||
ctxsw_prog_main_image_compute_preemption_options_o(),
|
||||
#if defined(CONFIG_NVGPU_CTXSW_FW_ERROR_HEADER_TESTING)
|
||||
ctxsw_prog_main_image_compute_preemption_options_control_cilp_f());
|
||||
#else
|
||||
ctxsw_prog_main_image_compute_preemption_options_control_cta_f());
|
||||
#endif
|
||||
}
|
||||
|
||||
void gp10b_ctxsw_prog_init_ctxsw_hdr_data(struct gk20a *g,
|
||||
|
||||
Reference in New Issue
Block a user