From patchwork Thu Mar 2 09:15:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13156867 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 670F9C6FA8E for ; Thu, 2 Mar 2023 09:15:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ABA8110E3E3; Thu, 2 Mar 2023 09:15:25 +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 B1CB310E27A for ; Thu, 2 Mar 2023 09:15:23 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 039DA61542; Thu, 2 Mar 2023 09:15:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B4DC4339B; Thu, 2 Mar 2023 09:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677748522; bh=8K3T0eGMBt3hh+2gQfXVpFukgUTWqTR1QtOD5ygv6qI=; h=From:To:Cc:Subject:Date:From; b=LZv3sL6gbO79gUyYTbSgk4kJ9Y8hfmWsypb9bVgxwiHDHF76XMJm6VNJnSDM6W6cx k9d7Mq37O+Lyavj6ws7ykv1dY1a5ssO9Z6cDoFJNGCydaP1A4x3ohx07FR5iYkW+jq Adwhth+D9ogdwSJbZH3OtpCFA9sUgA1gfR3DsGjp1Q5+qHhqwIJrSwPuBZtMw8L1LG FcwyBApLoFiJXx6zG1vTziMEtk9sA4lULw9K6pJ+64VGb5xFyhsTUD6JPg3F+DfPo8 0eOmUx1tEgyaK5mxqAmjWQI9RapUTkzV0KEt6BdvPAh0fyoVjbhijHJbRiv/Ykg9yi l8H6REXtxCSkw== From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] habanalabs: unify err log of hw-fini failure in dirty state Date: Thu, 2 Mar 2023 11:15:16 +0200 Message-Id: <20230302091517.14896-1-ogabbay@kernel.org> X-Mailer: git-send-email 2.39.2 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: Dafna Hirschfeld Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Dafna Hirschfeld print more informative message when failing in dirty state Signed-off-by: Dafna Hirschfeld Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay Reviewed-by: Stanislaw Gruszka > --- --- drivers/accel/habanalabs/gaudi2/gaudi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/accel/habanalabs/gaudi2/gaudi2.c b/drivers/accel/habanalabs/gaudi2/gaudi2.c index 58e3bffb8c25..99af319cd023 100644 --- a/drivers/accel/habanalabs/gaudi2/gaudi2.c +++ b/drivers/accel/habanalabs/gaudi2/gaudi2.c @@ -2896,7 +2896,7 @@ static int gaudi2_early_init(struct hl_device *hdev) dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n"); rc = hdev->asic_funcs->hw_fini(hdev, true, false); if (rc) { - dev_err(hdev->dev, "failed to reset HW during early init (%d)\n", rc); + dev_err(hdev->dev, "failed to reset HW in dirty state (%d)\n", rc); goto pci_fini; } }