public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] habanalabs/gaudi: remove axi drain support
@ 2020-09-16 13:43 Oded Gabbay
  2020-09-16 13:43 ` [PATCH 2/3] habanalabs/gaudi: fix DMA completions max outstanding to 15 Oded Gabbay
  2020-09-16 13:43 ` [PATCH 3/3] habanalabs: add indication of security-enabled F/W Oded Gabbay
  0 siblings, 2 replies; 3+ messages in thread
From: Oded Gabbay @ 2020-09-16 13:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: SW_Drivers

AXI drain is broken in GAUDI so remove support for enabling it.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
---
 drivers/misc/habanalabs/gaudi/gaudi.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c
index 6f7f6ad7a358..2c10e3f92c86 100644
--- a/drivers/misc/habanalabs/gaudi/gaudi.c
+++ b/drivers/misc/habanalabs/gaudi/gaudi.c
@@ -2885,22 +2885,6 @@ static void gaudi_pre_hw_init(struct hl_device *hdev)
 	 */
 	RREG32(mmPCIE_WRAP_LBW_PROT_OVR);
 
-	if (hdev->axi_drain) {
-		WREG32(mmPCIE_WRAP_LBW_DRAIN_CFG,
-			1 << PCIE_WRAP_LBW_DRAIN_CFG_EN_SHIFT);
-		WREG32(mmPCIE_WRAP_HBW_DRAIN_CFG,
-			1 << PCIE_WRAP_HBW_DRAIN_CFG_EN_SHIFT);
-
-		/* Perform read to flush the DRAIN cfg */
-		RREG32(mmPCIE_WRAP_HBW_DRAIN_CFG);
-	} else {
-		WREG32(mmPCIE_WRAP_LBW_DRAIN_CFG, 0);
-		WREG32(mmPCIE_WRAP_HBW_DRAIN_CFG, 0);
-
-		/* Perform read to flush the DRAIN cfg */
-		RREG32(mmPCIE_WRAP_HBW_DRAIN_CFG);
-	}
-
 	/* Configure the reset registers. Must be done as early as possible
 	 * in case we fail during H/W initialization
 	 */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-16 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-16 13:43 [PATCH 1/3] habanalabs/gaudi: remove axi drain support Oded Gabbay
2020-09-16 13:43 ` [PATCH 2/3] habanalabs/gaudi: fix DMA completions max outstanding to 15 Oded Gabbay
2020-09-16 13:43 ` [PATCH 3/3] habanalabs: add indication of security-enabled F/W Oded Gabbay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox