Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1046073iog; Wed, 15 Jun 2022 19:24:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vKlz5HEpv/oDe2YGEJIvcPAp2uls4oHhXhc16bS3Qt1DPu6l7OeBkZY0X0Utnu9Oq3p7Vm X-Received: by 2002:a17:90a:5b0d:b0:1ea:d1ed:186e with SMTP id o13-20020a17090a5b0d00b001ead1ed186emr2582876pji.240.1655346269719; Wed, 15 Jun 2022 19:24:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655346269; cv=none; d=google.com; s=arc-20160816; b=MVpJWpmiGjf+P9SSaIzw9mUii3nUEoCOpiTbFel9OBKCikrKeZO7zirqzOhhD/rf3b I6KEL78aoYMZoAjKdG3CSmm2ZYq/ExEadDeLCxhTY3dgfmijYrsIQKv9GPr/+DJ6GdfJ rvOGXNXFz4T96hw8D0oP+9e4cp8PvqRxjfXL8djpAdcTOWzEBuypxsxV7vV5LqGw+P5Z q6RH0YmuTTAVtlzom0JM1XEUItg38GgRlhOIX6cDtXsj+3MrzhmYv0Hj/QkGqH1YQ2xa 7yvD4SICJbPI/Ph1+toyW7ar1dJRyP/e2pIxKL2HWvqwNvrhyGJRl5LzMQauQw1Nsc+y VW/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reply-to:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=x1QcoU450lsj1EWNt9RFR2F0sIY35MmhbByrM4SKD8Y=; b=XnVfuFoD/qvcWLiTjPD7HZZMoJzIc64JEfZhsI5fu00YrXP0mpIjIZ0WpnPIEehoMx 6c0/yfNDr1OH3VuFNI+R0fDIYaMpFfDvu7PHZglZ7RmSpdIh64AO5uv3+iZ3IaQ2Qgtz DzIvRgX09ROmIf2/mUXvmmE1DtS2OLf5Ka+/Pe7GSAOzDmLxk2KfTren8YXW8jFeFGWR wnOGtwANxsammT7rALkIg7KljtGnG7kIdjkrAiBhAQkCCz/GQotSOIur2WZ8CYOppPRU FoRg8//e4sQNBRcuVgP5iAbUcbE4wDVq2VjrKpuQCTOZGIbcTjNhbikEAIz53N3UkITp 17Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b="BqrX/WSx"; 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=linuxonhyperv.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a639801000000b003fdbe9d3498si821156pgd.877.2022.06.15.19.24.17; Wed, 15 Jun 2022 19:24:29 -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=@linuxonhyperv.com header.s=default header.b="BqrX/WSx"; 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=linuxonhyperv.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236140AbiFPCIQ (ORCPT + 99 others); Wed, 15 Jun 2022 22:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351008AbiFPCHj (ORCPT ); Wed, 15 Jun 2022 22:07:39 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9FCB32BE1; Wed, 15 Jun 2022 19:07:37 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1004) id 9C43720C32B5; Wed, 15 Jun 2022 19:07:34 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9C43720C32B5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1655345254; bh=x1QcoU450lsj1EWNt9RFR2F0sIY35MmhbByrM4SKD8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From; b=BqrX/WSx6V6txwBhl7H7Nk3Zci6Jv+Mu3EZP9EJ9d4UxSUFIB+lpMIK1KGJtzH01x PRivWIj1VUuiw5Wv2rKq0pgz5w67lb0GHaMtDznL9F954RbvsncNgmpkhehWkmErl0 T6f+76EqD2Pl3QGKt0Kka6E7LehXijqe64qXPDJE= From: longli@linuxonhyperv.com To: "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Jason Gunthorpe , Leon Romanovsky , edumazet@google.com, shiraz.saleem@intel.com, Ajay Sharma Cc: linux-hyperv@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Long Li Subject: [Patch v4 11/12] net: mana: Define and process GDMA response code GDMA_STATUS_MORE_ENTRIES Date: Wed, 15 Jun 2022 19:07:19 -0700 Message-Id: <1655345240-26411-12-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1655345240-26411-1-git-send-email-longli@linuxonhyperv.com> References: <1655345240-26411-1-git-send-email-longli@linuxonhyperv.com> Reply-To: longli@microsoft.com X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_SPF_WL 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: Ajay Sharma When doing memory registration, the PF may respond with GDMA_STATUS_MORE_ENTRIES to indicate a follow request is needed. This is not an error and should be processed as expected. Signed-off-by: Ajay Sharma Signed-off-by: Long Li --- drivers/net/ethernet/microsoft/mana/hw_channel.c | 2 +- include/net/mana/gdma.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/microsoft/mana/hw_channel.c b/drivers/net/ethernet/microsoft/mana/hw_channel.c index e61cb3f6fbe1..24ecd193a185 100644 --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c @@ -820,7 +820,7 @@ int mana_hwc_send_request(struct hw_channel_context *hwc, u32 req_len, goto out; } - if (ctx->status_code) { + if (ctx->status_code && ctx->status_code != GDMA_STATUS_MORE_ENTRIES) { dev_err(hwc->dev, "HWC: Failed hw_channel req: 0x%x\n", ctx->status_code); err = -EPROTO; diff --git a/include/net/mana/gdma.h b/include/net/mana/gdma.h index ef5de92dd98d..0485902d96c9 100644 --- a/include/net/mana/gdma.h +++ b/include/net/mana/gdma.h @@ -9,6 +9,8 @@ #include "shm_channel.h" +#define GDMA_STATUS_MORE_ENTRIES 0x00000105 + /* Structures labeled with "HW DATA" are exchanged with the hardware. All of * them are naturally aligned and hence don't need __packed. */ -- 2.17.1