Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7818185rwp; Wed, 19 Jul 2023 00:13:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlGUal4rHVJdFP5Wuuk9FGh44e/ZpCBhWHgQJ/N75ifQvrqKAS2ZkOPP7W48tGMieV2KbJZY X-Received: by 2002:a05:6358:7205:b0:134:e4c4:ebff with SMTP id h5-20020a056358720500b00134e4c4ebffmr17005322rwa.11.1689750831483; Wed, 19 Jul 2023 00:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689750831; cv=none; d=google.com; s=arc-20160816; b=nOKw30S0FIYYqeVkfBlsVX5ovSclnpBDk01W6Pu7Rn4TQSoQHePAlxhYhjFhgP92k6 tRQNFdDOMTZKC/F45MICbZ8UIibnqP/YbCJdDnzztLsrLBfuHzD/fCN2UbLuZnRs6YJ8 5RV6aWZSu9+rK7/tAEuFt0f+WCt81Tlgu4LbI+9uwC8r7v9cY+YXtIPiMN/M82tTrbfN cCREpxpJziNx+kh7SckVfBKyEXgfCA1vq5pcbhz7Vj2xGKSERUlPcLRDGMfL6tv5I/UB wjAt9BFK9oPyuLaZwzSNkx+XzKMCQx1zPyPp1k8vS3K24Jlxg0RQOqVRzjiJfBr302Pb 7JAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7gMoXRym1RVbXCXouhlh+xKqUnYv+bYJl8K2j4CBtJk=; fh=Y3R4jNiwK4vURTCxe4NVPyVS+MXQGlVxOUGhi8ZpBDw=; b=sk/QXqy9GASIX/PfFWc207jT+L4AKsKHa599iD3KUsDEuQKbFMM+3dr/O3cW3yUGJb 0rtE0feFs2eDw3UTPc8FRcPg7JXrsoyaoSFyDKdwzLOV3zCQMDn1K9tuJBS4jlVduea6 dk3wm3KgrvnHEPQ1rbsvFScWlhbF0SG6AzimNRAdVLBNgL56iATaWy/uyHdtQkFyUMWf +h57J56NtzJaqcsakuw7ruhqTRMuHr7YuJ4mIhFX8wu4JRd4M2VqqIFM7052woVNSUss d2EJGuv0qmlqqlaBdLVYzMYJYfcN0KKiyX0ZTVCjo3g5uXDwEEgKesiz8ojyE9RKqozG umAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tWf4xPGa; 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 t5-20020a655545000000b005578c6a7645si3053836pgr.69.2023.07.19.00.13.38; Wed, 19 Jul 2023 00:13:51 -0700 (PDT) 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=tWf4xPGa; 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 S229525AbjGSHIe (ORCPT + 99 others); Wed, 19 Jul 2023 03:08:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjGSHId (ORCPT ); Wed, 19 Jul 2023 03:08:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 756C1E43; Wed, 19 Jul 2023 00:08:32 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 04AB0612B4; Wed, 19 Jul 2023 07:08:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 754CAC433C8; Wed, 19 Jul 2023 07:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689750511; bh=vIgxjK1nHjyKdJKx7z3ZJwiHL/Y2wz1xQKW4KNcqGFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tWf4xPGaf+BJQulEhvX5yAcfYPvpcX3HTkBIO4fTnH77cWUXLyCFnSjtvTCHPluLx fmrRXeVrjueyMjNq9oov+mQJSQwYXNa7TgU3Gg4GCm6DvqCIUHtAyE3pDqVNjjOfNK QUL4T05lH3g4t7UHkYEDLzEvXJ7pFeqgrbQa2qzul15xRJU5WeV85siwCCJWDDvdq1 DcmvPL3Sm9y9Tnm0Km+9qXkc6SckFbxVN26LUL2u4QcvMWH30CriGmtiHxA62p02bj BOLjc/DliDwhyq0jlQ/2yyrH5w1wK1Ph3e8QEj4G5MrmsLvbOBKZj0UujrYsVSVSYX sjnRFdl57nnNg== Date: Wed, 19 Jul 2023 10:08:26 +0300 From: Leon Romanovsky To: Souradeep Chakrabarti Cc: 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, sharmaajay@microsoft.com, 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, schakrabarti@microsoft.com Subject: Re: [PATCH V4 net-next] net: mana: Configure hwc timeout from hardware Message-ID: <20230719070826.GF8808@unreal> References: <1689703232-24858-1-git-send-email-schakrabarti@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1689703232-24858-1-git-send-email-schakrabarti@linux.microsoft.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, Jul 18, 2023 at 11:00:32AM -0700, Souradeep Chakrabarti wrote: > At present hwc timeout value is a fixed value. This patch sets the hwc > timeout from the hardware. It now uses a new hardware capability > GDMA_DRV_CAP_FLAG_1_HWC_TIMEOUT_RECONFIG to query and set the value > in hwc_timeout. > > Signed-off-by: Souradeep Chakrabarti > --- > V3 -> V4: > * Changing branch to net-next. > * Changed the commit message to 75 chars per line. > --- > .../net/ethernet/microsoft/mana/gdma_main.c | 30 ++++++++++++++++++- > .../net/ethernet/microsoft/mana/hw_channel.c | 25 +++++++++++++++- > include/net/mana/gdma.h | 20 ++++++++++++- > include/net/mana/hw_channel.h | 5 ++++ > 4 files changed, 77 insertions(+), 3 deletions(-) <...> > gc->hwc.driver_data = NULL; > gc->hwc.gdma_context = NULL; > @@ -818,6 +839,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, > dest_vrq = hwc->pf_dest_vrq_id; > dest_vrcq = hwc->pf_dest_vrcq_id; > } > + dev_err(hwc->dev, "HWC: timeout %u ms\n", hwc->hwc_timeout); Why do you print this message every time and with error level? Probably you should delete it. Thanks