Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2263873rwb; Thu, 17 Nov 2022 08:30:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/mAHbzz4JbZIvJiwyHJcLonQhY88XY7BnzkpBv+SyyYAKb7aTR6AoAtKPmcJ5KOrUz7RO X-Received: by 2002:a63:e644:0:b0:45f:702a:aec2 with SMTP id p4-20020a63e644000000b0045f702aaec2mr2725766pgj.450.1668702627423; Thu, 17 Nov 2022 08:30:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668702627; cv=none; d=google.com; s=arc-20160816; b=fukPWtjzBTTrdEVXq47PSsTsS8i7LY/EJ0pEwf23ti+cUiIUhmG+yYi8HrYBwvG6x8 RIXWV0GHvWog22iWIXxadBm/sh2L7bP8BUUipIIxJc5/XDAkViJiNLxw4wny2OlIy1EI Ifd5fiIWGfdHbb8L5Vd6GjlAkJtIQrJcUVg8xMQ0hQuu70PhAv2Stu/HJmY9K0tBfVpO 1x+a9154l5IOkn3GtbGXKa/9PSk3Kdrw5QzXx1eo2WCMvp8JapKSaaf8UHQNVxHp3Rf/ cko9CuOc5hegD8QW4Gs9jjxYXGJzDb394hi4F0GS2JQJJCuFaDf9YAAvmi2M15MtYtkW A5gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NflmCZsAhMVAxu/WHuuOsNN5npQB3a4kG4QqpoNqtmk=; b=KL+GyY1UfsEpOCjI6wbhYegOxgqTk3P7aZxHlZw4oOkR28EQMXzT3PtqriL8rBjOIL +r6NoiPiceee5WVk3RsLa6y/7BLt89R/3c/gtqaT+/GOJUFYi/MVNGuB/OKwSef/bZW0 lseAgeYTCt8kMfM4SY2j5XW39C4/dg8AfFt/FG+p2EPSwQNVNKuZBMCSkYHpdPrrrRW3 dgeyn3WAJi+b8dYXuKXGuuEdfElhCtbTP2k34IYvYFGkX2Qb4n1pL1VrcO8XX1blc3bV U0AYotXeBHqq9y24kWPQV7+M1LVF7Mp/k6c5fcyyoIEiD0npF2YvzOxCAoGxW1n6B/9H 23WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="U/iqHQwg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a056a00218300b005397c4ad9e1si1358673pfi.134.2022.11.17.08.30.12; Thu, 17 Nov 2022 08:30:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="U/iqHQwg"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240489AbiKQQUq (ORCPT + 92 others); Thu, 17 Nov 2022 11:20:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240311AbiKQQUN (ORCPT ); Thu, 17 Nov 2022 11:20:13 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E55751B781 for ; Thu, 17 Nov 2022 08:20:12 -0800 (PST) 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 7D1E0621A1 for ; Thu, 17 Nov 2022 16:20:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 193D0C433D7; Thu, 17 Nov 2022 16:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668702011; bh=2wErdCeNkaNdVedR35HXhehReifMfZjL5HunWURqqww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U/iqHQwg8HhZNokac+QmuPk/zLNrD+A281k23LFtZfzsWMutPnllhqa2J2fI6EMbL L8u6zayvcnu4BNnyyPefGdBK1tkEj1vKfv6THbz6hGqnIY44e3MFqTwQMcpZWfIGbS wr0HPnd0IrwYhmlTz1tp3ijEOjHAS+/trVoFQCdkNdXq1WF4QNpgR/DtCczhfdCGat 7kywp3GncQzjEtteZbVUeuo2zAlKD3FwhgOaEVODUqf6UMR4CDMDpVTqPeESygQuAj OtSVyB6uaROMzMDygU1npGQO8h2xUnsKU2wuWZSvSUa0PF2+T/3zAfV0Ke++yxrAuk mv0S4xKpwOjag== From: Oded Gabbay To: linux-kernel@vger.kernel.org Cc: Tomer Tayar Subject: [PATCH 12/20] habanalabs/gaudi: fix print for firmware-alive event Date: Thu, 17 Nov 2022 18:19:43 +0200 Message-Id: <20221117161951.845454-12-ogabbay@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221117161951.845454-1-ogabbay@kernel.org> References: <20221117161951.845454-1-ogabbay@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomer Tayar Add missing le{32,64}_to_cpu conversions. Signed-off-by: Tomer Tayar Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/misc/habanalabs/gaudi/gaudi.c b/drivers/misc/habanalabs/gaudi/gaudi.c index 7b93f0d26dd0..9f5e208701ba 100644 --- a/drivers/misc/habanalabs/gaudi/gaudi.c +++ b/drivers/misc/habanalabs/gaudi/gaudi.c @@ -7356,9 +7356,10 @@ static void gaudi_print_fw_alive_info(struct hl_device *hdev, { dev_err(hdev->dev, "FW alive report: severity=%s, process_id=%u, thread_id=%u, uptime=%llu seconds\n", - (fw_alive->severity == FW_ALIVE_SEVERITY_MINOR) ? - "Minor" : "Critical", fw_alive->process_id, - fw_alive->thread_id, fw_alive->uptime_seconds); + (fw_alive->severity == FW_ALIVE_SEVERITY_MINOR) ? "Minor" : "Critical", + le32_to_cpu(fw_alive->process_id), + le32_to_cpu(fw_alive->thread_id), + le64_to_cpu(fw_alive->uptime_seconds)); } static void gaudi_print_nic_axi_irq_info(struct hl_device *hdev, u16 event_type, -- 2.25.1