From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 203D13C01; Tue, 27 May 2025 17:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367323; cv=none; b=NgPoj7IPkhzEEbUYwzAQvHs4zQNlqMSvem3ZEhE90pyUG9GUrR/w6H6PE+pcTkn0Y/p3a+0wrJUdt37bQy+4+Q4obICb0S5UIHLQghV6UkqsGwthuho0arWsEByInF7OaixSwIUgukFXaqGz66UIcNZe2O27apsugXZPLWVCt0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748367323; c=relaxed/simple; bh=pbU0RBGS6y15f3UOkSGAsln9V/wwlilk7NaIKd3nJqc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nHiaE/FSFyrpDePirXQKVjp2sYKj7pOyPHjpz6lgvq7JPe5Nh4S4j/YF7/n2Nyea38Bexg1vyOFmVJBvk/IY4Bjn9E0J6W1hyPGebfWp+2jTw5nX10D/LzpbjJ3+T3sL1fmslFqjRkZF0RJqeh/2u10t9leEEglUTV02C9yI34g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xvhH58iG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xvhH58iG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A8F4C4CEE9; Tue, 27 May 2025 17:35:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748367323; bh=pbU0RBGS6y15f3UOkSGAsln9V/wwlilk7NaIKd3nJqc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xvhH58iGupVL+EdmYrEXM6D3QMtBYTkGlCYiAdFMpkeimy32VLzV57xMyV3rXewIw bVVSi/i6IjXaiOp2SrCBAJzAK62ezmX1+mIm3L//8hS0YpneSY49b6Jb/icRltr1Ei 9jY/CxU63ivc6CdhtSCBmxrcRt4UW/PQd5d7bgHM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ang Tien Sung , Kuhanh Murugasen Krishnan , Xu Yilun , Xu Yilun , Sasha Levin Subject: [PATCH 6.14 320/783] fpga: altera-cvp: Increase credit timeout Date: Tue, 27 May 2025 18:21:57 +0200 Message-ID: <20250527162526.093872402@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250527162513.035720581@linuxfoundation.org> References: <20250527162513.035720581@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kuhanh Murugasen Krishnan [ Upstream commit 0f05886a40fdc55016ba4d9ae0a9c41f8312f15b ] Increase the timeout for SDM (Secure device manager) data credits from 20ms to 40ms. Internal stress tests running at 500 loops failed with the current timeout of 20ms. At the start of a FPGA configuration, the CVP host driver reads the transmit credits from SDM. It then sends bitstream FPGA data to SDM based on the total credits. Each credit allows the CVP host driver to send 4kBytes of data. There are situations whereby, the SDM did not respond in time during testing. Signed-off-by: Ang Tien Sung Signed-off-by: Kuhanh Murugasen Krishnan Acked-by: Xu Yilun Link: https://lore.kernel.org/r/20250212221249.2715929-1-tien.sung.ang@intel.com Signed-off-by: Xu Yilun Signed-off-by: Sasha Levin --- drivers/fpga/altera-cvp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c index 6b09144324453..5af0bd33890c0 100644 --- a/drivers/fpga/altera-cvp.c +++ b/drivers/fpga/altera-cvp.c @@ -52,7 +52,7 @@ /* V2 Defines */ #define VSE_CVP_TX_CREDITS 0x49 /* 8bit */ -#define V2_CREDIT_TIMEOUT_US 20000 +#define V2_CREDIT_TIMEOUT_US 40000 #define V2_CHECK_CREDIT_US 10 #define V2_POLL_TIMEOUT_US 1000000 #define V2_USER_TIMEOUT_US 500000 -- 2.39.5