gpu: nvgpu: add invalid ctxsw method

* For ctxsw negative testing, nvgpu need to send and invalid method
 * Sending 0xFFFF method will result in triggering ctxsw error intr.

JIRA NVGPU-5080

Change-Id: I6c16137d86ee2ddb25f1508161d9d6befcbcbefe
Signed-off-by: sagar <skadamati@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2317502
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
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: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
sagar
2020-03-24 12:06:56 +05:30
committed by Alex Waterman
parent 21e2214c3d
commit b8a3e54dda

View File

@@ -743,7 +743,11 @@ int gm20b_gr_falcon_ctrl_ctxsw(struct gk20a *g, u32 fecs_method,
defined(CONFIG_NVGPU_CTXSW_FW_ERROR_CODE_TESTING)
case NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_PM_IMAGE_SIZE:
op.method.addr =
#if defined(CONFIG_NVGPU_CTXSW_FW_ERROR_CODE_TESTING)
0xFFFF;
#else
gr_fecs_method_push_adr_discover_pm_image_size_v();
#endif
op.mailbox.ret = ret_val;
flags |= NVGPU_GR_FALCON_SUBMIT_METHOD_F_SLEEP;
break;