Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp399067lqo; Thu, 16 May 2024 09:17:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPttYdDS2OOYUopZq6EgSXvKmiAkgfUB2Dult+W1Omof9muEjF8W+vZU4brCdlXmLEMbTWe3Qeu9L0q0yFEzudpxcPDx3wfaTg7yOIJA== X-Google-Smtp-Source: AGHT+IFakuxD+0ooT+ghtqjKhbi5H2IuBazHREDjvqnhh7MP10OMve26LUW1hxQ0VYAlQcYRV0AL X-Received: by 2002:a17:906:75a:b0:a59:fca5:ccaa with SMTP id a640c23a62f3a-a5a2d53b020mr1230209766b.13.1715876248618; Thu, 16 May 2024 09:17:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715876248; cv=pass; d=google.com; s=arc-20160816; b=WXbKLvMR2XCUD/Z8CIDBnQtbqkZCKcVrBOx4xbsHi7B8CLm7dLradA1Ddx7EH43aVc 9l1HK4iIyt9dE5tNDrhbhfgRzdYOb127JRev3kZKc6ggGEEwSEQ65rRdKQzG6owfT5Pv QOZcSiQ4hR9mFLBNWk31uUWBYov8GPVJzyrwkJoOfEfJkuC0FSI0AOgZwEKZgwDUbaLz UOFYViGIi7jnM6PZt218mAEKqRbHw6Oi+G/dUUIftbIxV144YM6eqK47dRQuKUuO18gv /tU3UIKpZmS/Fo3NafjxLyrV3jRjBptyygUlsngFbMdCla7McBTGDHXQDLFzlRb63Xbo tp/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=H1h4r/pbYCGt93I7ZZhMxZkjxnhh2Z7CdrZM+aGCgc4=; fh=DLxM37yHwOFKzmzHA7WKAr93bLFgAPsMnHG1zdt6psA=; b=bdtO1mXjvKA6EOmkGNPWNcv/TwG79nC92hJDCIVxG20aEXsapjvgtncBgJTFTQ0bxk Joo1owKbnlbUctnXWLYVunxy52ot5ZJGkJqiEhUhsD7l89I1dKtywIoM7QCfiqRH68e0 vNJxXxuQCXTaElERKlAX/ROsDCYbVMotpez2XBuKdeh6sdlxpcwyaKZPa+QfcpR6mX/Q SihG4SWrwoATXqfAsucM+O6NrWkiN9EbbRwWnnoIefJxdZn2Gp83cTLew+Qud5QWKlkX hdCr5LyGKTllDG5xQJ52vlU+o2fS4kaJ7XKo9RLvAoTe6ESYYwxHQIGcjbKmi5bVS2qL uQ+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=D+vybkna; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-181293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1797d9easi839169366b.268.2024.05.16.09.17.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 09:17:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=D+vybkna; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-181293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 954551F23DC9 for ; Thu, 16 May 2024 16:07:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EE3B14E2D4; Thu, 16 May 2024 16:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="D+vybkna" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 135A914B953; Thu, 16 May 2024 16:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715875621; cv=none; b=QdswXMcAxTf6ygHHrxIUbtzdyAcLgzuH5BA1LN8H5344SZ4QIM5fXufC/aVzJgXWIZbyNXwYc/DttpxIizeVGg32KPxlBdtJzOm4AaVBtsRyT6G3FtpuTyg290UipA92bo5zxOniJzgaGen/Dpp7gaddHg86iZB1b3If3o/WHos= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715875621; c=relaxed/simple; bh=NDl1/On8Xl0p+o2LhYUeEkJ4uggR90m3F+FyFOP1acI=; h=From:To:Cc:Subject:Date:Message-Id; b=CqsJQxS0B0s4RmwAbyYko2vuanq6rg0ncArbvBWBhQs6ZMiNLSOwdKVqJH2qVo7LzZye6C1osyOjy1qQ4RdxcBCRLUfoh+asIEdyq60xBdqTlSqFFKwrslUrxkslzzluENfjbtU5qPIwKZejREeDsKMTuec9p1sjHOjh/g2xR+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=D+vybkna; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: by linux.microsoft.com (Postfix, from userid 1099) id A63DD20B915A; Thu, 16 May 2024 09:06:59 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A63DD20B915A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1715875619; bh=H1h4r/pbYCGt93I7ZZhMxZkjxnhh2Z7CdrZM+aGCgc4=; h=From:To:Cc:Subject:Date:From; b=D+vybknaQfz6UUVxhmK+s6MkF/uqCV2n77dyEOSCZnAiG3zoC7TaFRLhckgd2UIJo SQFBIEVDS6/eD/0GUj2t/W/x9U/R4krC42cgVzaaBuC5fSkyeEK7wyoUYHxInNXplO pSEz0qef+V1q4z9SjL/tzUwUb4QZZMCVy89+Iuxw= From: Souradeep Chakrabarti To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, longli@microsoft.com, yury.norov@gmail.com, leon@kernel.org, cai.huoqing@linux.dev, ssengar@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Cc: schakrabarti@microsoft.com, Souradeep Chakrabarti , stable@vger.kernel.org Subject: [PATCH] net: mana: Fix the extra HZ in mana_hwc_send_request Date: Thu, 16 May 2024 09:05:38 -0700 Message-Id: <1715875538-21499-1-git-send-email-schakrabarti@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Commit 62c1bff593b7 added an extra HZ along with msecs_to_jiffies. This patch fixes that. Cc: stable@vger.kernel.org Fixes: 62c1bff593b7 ("net: mana: Configure hwc timeout from hardware") Signed-off-by: Souradeep Chakrabarti --- drivers/net/ethernet/microsoft/mana/hw_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c index 2729a2c5acf9..ca814fe8a775 100644 --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c @@ -848,7 +848,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, } if (!wait_for_completion_timeout(&ctx->comp_event, - (msecs_to_jiffies(hwc->hwc_timeout) * HZ))) { + (msecs_to_jiffies(hwc->hwc_timeout)))) { dev_err(hwc->dev, "HWC: Request timed out!\n"); err = -ETIMEDOUT; goto out; -- 2.34.1