From patchwork Mon Sep 18 14:31:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13389720 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 5EA4EC46CA1 for ; Mon, 18 Sep 2023 14:32:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D84610E2A8; Mon, 18 Sep 2023 14:32:31 +0000 (UTC) Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9288A10E289 for ; Mon, 18 Sep 2023 14:32:23 +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 sin.source.kernel.org (Postfix) with ESMTPS id ED1C5CE0FEA; Mon, 18 Sep 2023 14:32:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3692FC32789; Mon, 18 Sep 2023 14:32:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695047538; bh=YMXU418eyrpH/EuRlc9SrcB0SbdT9/4ds3DNyrVCxH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n3rAifWa3IozPiJUk6DWlVyF2Uk+kX9bmM7Z8JPQq7BAN9Z2Qz+e2+j7/wNWoNRro m/tyfGkNQwcE56GkS+0IcJGRxon2PM0maScIMN0cEb3tCVy24nsDCLLLf+KikrujAP +GFz9Z/VXv4/IOVMSB8Wju5gtpQ7BP6+9jHrKK/5EEB5fablCjkexGNwtJQnv8B0jK qyF+wmtofCMVsV8ZqqWyt87CNrNzBNzPGu8nkvx4lZdb/6yJdwIW2EvKfSA4g9laF8 G0l59CEupBxbSgjih043d1FbsDEFXHCVp8G/MlDCWwR9cfTtMbkxEWIFCRHk6NDrLP bop/6PQ3PN60A== From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH 10/10] accel/habanalabs: update boot status print Date: Mon, 18 Sep 2023 17:31:58 +0300 Message-Id: <20230918143158.903207-10-ogabbay@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230918143158.903207-1-ogabbay@kernel.org> References: <20230918143158.903207-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: Ariel Suller Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Ariel Suller FW shutdown preparation status was added to spec. Signed-off-by: Ariel Suller Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/accel/habanalabs/common/firmware_if.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/accel/habanalabs/common/firmware_if.c b/drivers/accel/habanalabs/common/firmware_if.c index 0fb360cca9cc..47e8384134aa 100644 --- a/drivers/accel/habanalabs/common/firmware_if.c +++ b/drivers/accel/habanalabs/common/firmware_if.c @@ -1464,6 +1464,10 @@ static void detect_cpu_boot_status(struct hl_device *hdev, u32 status) dev_err(hdev->dev, "Device boot progress - Stuck in preboot after security initialization\n"); break; + case CPU_BOOT_STATUS_FW_SHUTDOWN_PREP: + dev_err(hdev->dev, + "Device boot progress - Stuck in preparation for shutdown\n"); + break; default: dev_err(hdev->dev, "Device boot progress - Invalid or unexpected status code %d\n", status);