From e063d55fffbae076d4a38a0f08000a3c5a32c5fe Mon Sep 17 00:00:00 2001 From: dbadgaiyan Date: Sun, 23 Jul 2023 17:47:31 +0000 Subject: [PATCH] nvscic2c-pcie: update async error reporting NVSCIC2C_PCIE_EDMA_XFER_ERROR is returned when failure received from PCIe EDMA in callback or when job scheduling failed. Remove returning NVSCIC2C_PCIE_EDMA_XFER_ERROR in case of PCIe EDMA job schedule failure as schedule failure should be due to validation failure. UMD will return NVSCIC2C_PCIE_VALIDATION_ERROR for this case too. Jira NVIPC-1333 Bug 4197626 Signed-off-by: dbadgaiyan Change-Id: I6e079360b4129aebcd75204267934f7b821a4b99 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2941054 (cherry picked from commit 6e58a46b78e37b5a6399bebc2f16c338b6444487) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2947673 Reviewed-by: svcacv Reviewed-by: Arihant Jejani Reviewed-by: Vipin Kumar GVS: Gerrit_Virtual_Submit Tested-by: Deepak Kumar Badgaiyan --- drivers/misc/nvscic2c-pcie/stream-extensions.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/misc/nvscic2c-pcie/stream-extensions.c b/drivers/misc/nvscic2c-pcie/stream-extensions.c index c7fc8005..c73e5f82 100644 --- a/drivers/misc/nvscic2c-pcie/stream-extensions.c +++ b/drivers/misc/nvscic2c-pcie/stream-extensions.c @@ -609,9 +609,6 @@ ioctl_submit_copy_request(struct stream_ext_ctx_t *ctx, ret = -EIO; atomic_dec(&ctx->transfer_count); release_copy_request_handles(cr); - /* Scheduling edma job failed. Update edma error and Notify user. */ - (void)pci_client_set_edma_error(ctx->pci_client_h, ctx->ep_id, - NVSCIC2C_PCIE_EDMA_XFER_ERROR); goto reclaim_cr; }