Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4680484rwb; Tue, 20 Sep 2022 18:32:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM49qclf0BUPZSNKPcg3BEHxe2fXjr23aID9RzrtlzbJSZkJ5ip2Rxkrcp1T0dVIrJAQauY+ X-Received: by 2002:a17:902:8c81:b0:178:1701:cd with SMTP id t1-20020a1709028c8100b00178170100cdmr2454581plo.138.1663723966812; Tue, 20 Sep 2022 18:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663723966; cv=none; d=google.com; s=arc-20160816; b=RCIt0wR79Dps73PHKYm0E7c4SnAm/rQ5X/oqR3sp2LvH9PbgnE368VvqggxK7RGbRd VfX9+7dRE4L36lI/7mAtIULzrf2CZNwcx2iJ6XPc9VQSSAclFHf8az7kTtSHHL+QG9Pv IBmxnKCVnmibQAzdRcfZK4trj3956YoUROl+NgfBA50gsV9Dcuw7oV+ADfGqGn1g6Y2Z 8e5GiEYWPC05tWw4ESRRttSniHH/VtCa/JpYMJLX/Z2O5VJ/vcsWVQ1GE0kfY9k1E358 YBu3iJiuXqlXfL/lKMRPNqgSNZQjmJ1fF4P9WpfYtEpsu03hESESH7+fIvbKaQaUMD+3 db9w== 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=rC0GRMnD1jYpEG0yPRlbVifq0LE8zs1R4qyGvKkv0lA=; b=tpKCCSxhHbASHtouhf7zuArfNtmPB4rm1IrnkotDWIvpfhJFRvKXtrQf0sFWodSi4w 6Fauy6cc67/XtXXKh9k0IDTlZiHHUqn2DG4zChLQxsmmtuEbMciQrM24MImWw/+xJ5Rs A88PX4OH5N0ae3/YAKNnEw3LPUnKi2jNXOEEWhS8JebNtTiSyfWHPzegaN4G8NPGXB7u mPxTtXVNPWNxySL+DlBwsu6x/+jDXZSxNXLErN4UAHNNfA9CZ1KRa5F+TXe0PN0wPEeG V5UOsF50HsAiKXLmKgZw8vUS2xujYwc/VUkEQIUxHt2ISvdhrUPqR88UrIiO8eWu5jTe NHIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=C8jxNHbO; 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 oo15-20020a17090b1c8f00b001fd70129092si1735983pjb.15.2022.09.20.18.32.34; Tue, 20 Sep 2022 18:32:46 -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=C8jxNHbO; 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 S231365AbiIUBXr (ORCPT + 99 others); Tue, 20 Sep 2022 21:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231390AbiIUBXG (ORCPT ); Tue, 20 Sep 2022 21:23:06 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 872967AC24; Tue, 20 Sep 2022 18:23:03 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1004) id 5D0C0205DC89; Tue, 20 Sep 2022 18:23:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 5D0C0205DC89 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1663723383; bh=rC0GRMnD1jYpEG0yPRlbVifq0LE8zs1R4qyGvKkv0lA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From; b=C8jxNHbOvBNc35DRHb0zByIKFRssIEDLHAlm7vTjYMFNy39bX6Y5aPoX+7zxS/tEr k+AHVpDVJalHZNPIoF6p2/6zgriKVxvr99OGOL7uY6+eoBfVnZUvigng0KpngvvD61 ighiLCm0LRXT6UgljKMDlLReDULnXlVyJJBesXBY= 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 v6 10/12] net: mana: Define and process GDMA response code GDMA_STATUS_MORE_ENTRIES Date: Tue, 20 Sep 2022 18:22:30 -0700 Message-Id: <1663723352-598-11-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1663723352-598-1-git-send-email-longli@linuxonhyperv.com> References: <1663723352-598-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,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 Reviewed-by: Dexuan Cui Signed-off-by: Long Li Acked-by: Haiyang Zhang --- 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 76829ab43d40..9d1507eba5b9 100644 --- a/drivers/net/ethernet/microsoft/mana/hw_channel.c +++ b/drivers/net/ethernet/microsoft/mana/hw_channel.c @@ -836,7 +836,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 9b050aabf76e..42344cd5e8ce 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