From patchwork Tue Jul 11 11:12:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13308420 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDBC6EB64DC for ; Tue, 11 Jul 2023 11:12:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 827E410E375; Tue, 11 Jul 2023 11:12:42 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id CEAC610E371 for ; Tue, 11 Jul 2023 11:12:39 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 50ACD6147B; Tue, 11 Jul 2023 11:12:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E02CAC433C9; Tue, 11 Jul 2023 11:12:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689073958; bh=WcW1OApAnq8dLkPnAdSlkE3sEmUbfEIEAAf0rJTUC08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nMiRzPofLHdgv80BBxzqrOu/1/uUa3mhnws7PtWtnOh4PKKrWG+Xcu9aMT8crHLxy gtVNBlUdNcppAHhIQe2Dd1U0+JmZ2fhCAVXAP1nentmMN52HOOEAsXOE4R3XPrLQu3 jGn9/Zryn//umSEPLiyUjhbRwZbz7FmeK2s9ijlPfn2eG6PYhsSC5Fix5Nu5OSxZaI JhUSIbWc7BuLrTQQk0MvmWBiqU7PzJIUtrOa9JWPXsiT+GPIDTZCEqf4iKAq3GQncy 8Il2KskV1Frs+KBFHV57aa5FOHpT/LlP9qj9v1hDcrR14Dw9EbIUjyi1kbidzIsMNb 2AHVj/7qkm5rg== From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH 06/12] accel/habanalabs: set default device release watchdog T/O as 30 sec Date: Tue, 11 Jul 2023 14:12:20 +0300 Message-Id: <20230711111226.163670-6-ogabbay@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230711111226.163670-1-ogabbay@kernel.org> References: <20230711111226.163670-1-ogabbay@kernel.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomer Tayar Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Tomer Tayar After being notified about certain errors, user is expected to finish his post-errors actions and to release the device within some timeout, after which is deice is being reset. The default timeout value is 5 sec, which in some case is not enough for a user application to collect debug data. Increase the default value to 30 sec. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c index d7d9198b2103..28be0fc325ea 100644 --- a/drivers/accel/habanalabs/common/device.c +++ b/drivers/accel/habanalabs/common/device.c @@ -18,7 +18,7 @@ #define HL_RESET_DELAY_USEC 10000 /* 10ms */ -#define HL_DEVICE_RELEASE_WATCHDOG_TIMEOUT_SEC 5 +#define HL_DEVICE_RELEASE_WATCHDOG_TIMEOUT_SEC 30 enum dma_alloc_type { DMA_ALLOC_COHERENT,