From patchwork Tue Sep 26 08:13:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13398821 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 5DBD8E7D24D for ; Tue, 26 Sep 2023 08:14:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9061B10E369; Tue, 26 Sep 2023 08:14:06 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id C83A910E0D0 for ; Tue, 26 Sep 2023 08:13:58 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2FDE661337 for ; Tue, 26 Sep 2023 08:13:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55A11C433C8; Tue, 26 Sep 2023 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695716037; bh=c2byi9VLht35+07GvYDKXq5iwgVqSZPYJVjeHGyVh5I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=t29FIkWIvtQkJlTnlokSQ+55bAIH6AKaaMbKlt71yrSEBsjX10+d4hpCCv8/pnIXU gkYXDtOceKN9Cs0ijf5ILs+jgT0+TIUM2HTqbcvBtIAjmsRK83g6PwRxMX5OYa9qh3 mp9LdYSGGPJP2TLncpK/Snzb3n6kajL2C29tgSxh3SZ90MT4eNZ7RfC7TQ/T0zsddR hW56SNlnH6awedCxgRk+Ei/pX+ZUVZuuU6HwujS74bmDaiGtKoekWrtkk+fqQm83gf V5IN1497w3iy/cR28F6BnSRWz+DbVVumTosI97g32/nkg5PGnJWNa5vEys1KdsZ96+ ok6eilu97NOYA== From: Oded Gabbay To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/9] accel/habanalabs: print device name when it is removed Date: Tue, 26 Sep 2023 11:13:42 +0300 Message-Id: <20230926081345.240927-6-ogabbay@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230926081345.240927-1-ogabbay@kernel.org> References: <20230926081345.240927-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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Notifies the user which device was removed. It is important in a server with multiple devices. 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 b1d330cd2537..9711e8fc979d 100644 --- a/drivers/accel/habanalabs/common/device.c +++ b/drivers/accel/habanalabs/common/device.c @@ -2420,7 +2420,7 @@ void hl_device_fini(struct hl_device *hdev) u64 reset_sec; int i, rc; - dev_info(hdev->dev, "Removing device\n"); + dev_info(hdev->dev, "Removing device %s\n", dev_name(&(hdev)->pdev->dev)); hdev->device_fini_pending = 1; flush_delayed_work(&hdev->device_reset_work.reset_work);