Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4343005rwo; Tue, 25 Jul 2023 04:53:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlFnvPF9n59aFXgPAQVqGiHnUwwGDwq5WggmMi/Afl4BYRJlh+M0NKxXBB3gv1vmXvUc4aU1 X-Received: by 2002:a17:907:77c6:b0:987:498a:87f6 with SMTP id kz6-20020a17090777c600b00987498a87f6mr11845593ejc.34.1690286013588; Tue, 25 Jul 2023 04:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690286013; cv=none; d=google.com; s=arc-20160816; b=vZCI4Z8k+PInDJE3/qEv3pqaSU1CSqIQGqH/1oBmUq74zNRXCU2ymCbsq7Nrzgj1BY GSLU2fJgXInQxCTNxTFnTTe6/rLJ4XFduSRR3QnFjjg6nBQUF4hQ6Wt5kSuwkb80vWbK sZu6vcC5YGgT5yln/i1xV1OaqaRnOWhJS4MxnIEPljaUJ2B/8+T1/n7URC7f50Vra7Zr kuBqY61gB36x8d6uHbIYGXz/GZpE+rhGkjxMvElsvut0iyc6WDoxy/0YV/LcAUGGlXe0 XuqbuDryBTjl65tZJPakAES/jZbWwunGDr6ItZzUZonEWNWwhoHnpA3PI6yz8j8QEbhU zZ2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ezMBKSK/EY8q/B0BuW7EtqZYoTEy/3+qIvsVYAaeTBQ=; fh=HyJftipnjWJTZWriq/CZUkYtLAKWh0advAOw8rQl4Hs=; b=Mp44ovfidyC+FlGRXjmMSBY4QEqewxzKPhAKqyCXHeT2tn6epg6w9aR5JBbhHQdLM9 ZqMjF8qP1XnCsChRzSuWUjy+Bu7L6e4IUicpYX9LgMMaGA+VKZHby77urgSAXjOZIsS2 GDk1dBH3O8Oc5Ihuk3KrhWcw1OuAYb/yiTCb907+8dY97+aicyW4Jm6+dwxFB/nWI5gL n/QuKqCL1l06n5wzQzWtHaKzF4u9hGN/kOjGObjuF7KPgYOu8rOOhSHcDv2JWdMCbPSD hbTbAvc/i0CcD5jo5Uveh2CSl14whfStQc6eqXugkG/ubROEX8ofoHDwjxszNcA0Rgut sNZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=j6VXGaqA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x21-20020a1709065ad500b0098ce5bd2ed0si7991349ejs.257.2023.07.25.04.53.06; Tue, 25 Jul 2023 04:53:33 -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=@gmail.com header.s=20221208 header.b=j6VXGaqA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbjGYJti (ORCPT + 99 others); Tue, 25 Jul 2023 05:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232295AbjGYJth (ORCPT ); Tue, 25 Jul 2023 05:49:37 -0400 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D6071A3; Tue, 25 Jul 2023 02:49:36 -0700 (PDT) Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-584034c706dso18390047b3.1; Tue, 25 Jul 2023 02:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690278575; x=1690883375; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ezMBKSK/EY8q/B0BuW7EtqZYoTEy/3+qIvsVYAaeTBQ=; b=j6VXGaqA0F4Fa6HNSZLPfiCJa6rEMFKltoI6vTRR03OCVcC6wHuvS9h8v86ZA6QmbQ Q1ZBrX8m7zaH6QdKwilVQ9BsMh1G5tzrcOem+7INO+5yShXRgO2EDoiV6/CGMyyu8UOk JJLJ/g75ILbuzXlf0Aws4WXbmqbyrLWBIl60aBsjctBkPR4BgmRIHZdvnxf8gijYE3KJ CTwf+ww/3KRH8Q91EDS6xLZLSLXOhuRAU05/b6ciHIpeiXrkXfV4CC7LwfOkJpNLrXnJ GMPOA9+SdYr+wkXK/FzUtKzmWDPMA/N80/L14FKIcwrOc418+yqfrsMkDws7j4D4yWzw GGYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690278575; x=1690883375; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ezMBKSK/EY8q/B0BuW7EtqZYoTEy/3+qIvsVYAaeTBQ=; b=EPr4TIQzc9lKZaJL7o14YZsW5Vj6PMfgUn4vckMbu/SHV/Re8MHhS4CqRc7DVPI0Wh vJGpLSYHaT+DiiyMzarb/0X9dYcvaAZ+f6obDtK4KTGyrRiBqVh/x+zzXvb1mpDeBdB/ PBy6Wp7sMndiW1B5CCXK1xGjzaPTXpoEZ5YadMHXT1wb8ruamqZRgXHDyqY07pT2OqVE F4m60XEXBgHFM7tx7j6CuolEb80tqZm9XjkZakxXH+xJLCpj1KaQ4GqYZH3YxC736ohI opQEG++VozBkeakj0BwgBjq52RgYFMh1cmFdI1yRGRyc9qdNoiQ6XIDpvfgLAaZm4PJE dWVg== X-Gm-Message-State: ABy/qLaRd1mr9IDcV4miOjdJ2D7lFZveYya1wBi7UOGtMvzAuUIClPck WyvGehPIxzFjSiarbMVqW/82Zx0GYkq0pD4wPCY= X-Received: by 2002:a81:4e82:0:b0:583:52ca:4f23 with SMTP id c124-20020a814e82000000b0058352ca4f23mr9003998ywb.0.1690278575264; Tue, 25 Jul 2023 02:49:35 -0700 (PDT) MIME-Version: 1.0 References: <1689703232-24858-1-git-send-email-schakrabarti@linux.microsoft.com> <20230719070826.GF8808@unreal> In-Reply-To: <20230719070826.GF8808@unreal> From: Souradeep Chakrabarti Date: Tue, 25 Jul 2023 15:19:24 +0530 Message-ID: Subject: Re: [PATCH V4 net-next] net: mana: Configure hwc timeout from hardware To: Leon Romanovsky Cc: Souradeep Chakrabarti , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Wed, Jul 19, 2023 at 12:43=E2=80=AFPM Leon Romanovsky = wrote: > > 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 =3D NULL; > > gc->hwc.gdma_context =3D NULL; > > @@ -818,6 +839,7 @@ int mana_hwc_send_request(struct hw_channel_context= *hwc, u32 req_len, > > dest_vrq =3D hwc->pf_dest_vrq_id; > > dest_vrcq =3D 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. > In V5 I have changed it to dev_dbg from dev_err. > Thanks