Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4820686rwe; Tue, 30 Aug 2022 18:21:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR6j1Ikiblfpa+fKuebvMaeGYFSo7r9Dt3OKuZDRFlJr6xSbQIdWqKo1rkA4ifTYpk+crLW4 X-Received: by 2002:a63:2c43:0:b0:41c:66a6:4125 with SMTP id s64-20020a632c43000000b0041c66a64125mr20468774pgs.598.1661908877580; Tue, 30 Aug 2022 18:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661908877; cv=none; d=google.com; s=arc-20160816; b=MTcCEy9RUCpR/BoEWz1xoDldf/vG05NYk1WsZPKk4NmbY+vGYgHPbYgEd9+qnB9m0o 5z/eZu6Gq/9XWSyLZlWLAZ6Ty4lcKJ3Tg093Z3LFhhrJnu/+jTREC/t8Lm05k/o3BDyV efJcY3prb6fHCfF+OHqRL6FvSXwGlpOD53mkb8tycpJCzmsst4lLXZYqsSqUzRD3DhSs WYN0lW8x1iSbi379IlO7dqQm/ZnLs7g2Hoz7VNFpQKcNdpjkWMXkPiz/z9mwwi/PycYz IFbnImk3IaUssV1JCgYxZy0/nZe+3JXU+gmP8tLcr+dxDskmxdDC2PKzRqXVv0OYotbx CaGg== 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=ly/v95nVtvTxi7CmF5l/6pdVgk+T1qAVeTuRQ7wtPBo=; b=rIHCfVU0mVJZWOxakOVy7QVVk/UfXMixYJVK+nzmSerFsaCdTrfEtXNHTuMtFPMw+R 4mvvEZyTpHNKwG1AVjZzAhfuQmOLiDvzyoBG/qQ/Oc1rC8RxCJvzqvHoy0DeYaba1bhA essUMxJR91r3NhY13fmG89h7FeSNb5Tc/N4GT6Z5uXoUYFWCKau7vE0nZx7ugpD8Lk06 m9G7nTqnSUMc/bjfCyH43gdh+NRiGO7Lr8H1qZuaTWZCvTKzDKtzJw/16lJ0EcftHmWM mUCPpJ4MJhb/PjOM167HJJHB5SKNjEfXnf8y5ywFrwYwXPt3b5Spj33o8lf17xmj+j/L eyuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxonhyperv.com header.s=default header.b=PaU81mUB; 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 k5-20020a170902c40500b00175430821b1si719849plk.430.2022.08.30.18.21.06; Tue, 30 Aug 2022 18:21:17 -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=PaU81mUB; 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 S231823AbiHaAfc (ORCPT + 99 others); Tue, 30 Aug 2022 20:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230241AbiHaAfG (ORCPT ); Tue, 30 Aug 2022 20:35:06 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3AC261007; Tue, 30 Aug 2022 17:34:46 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1004) id 1E1022045E01; Tue, 30 Aug 2022 17:34:46 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1E1022045E01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1661906086; bh=ly/v95nVtvTxi7CmF5l/6pdVgk+T1qAVeTuRQ7wtPBo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To:From; b=PaU81mUBzRph9nd7OvFglfXZBAWsOsLaeFBftcTSQQQYV+Wr+j0JP1heafVZFyqjb 9CrC3bXtFK1cYYd+/tGfYbGVNpOMbxVesQ8TotEJiwypY/sgrXf5I+5YoogQ5wvMSZ 7gdEsthNHILx5zMUg263yd2zaLnKciUQyRPillh0= 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 v5 10/12] net: mana: Define and process GDMA response code GDMA_STATUS_MORE_ENTRIES Date: Tue, 30 Aug 2022 17:34:29 -0700 Message-Id: <1661906071-29508-11-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1661906071-29508-1-git-send-email-longli@linuxonhyperv.com> References: <1661906071-29508-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 Reviewed-by: Dexuan Cui 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 e9ad03ccc98b..2442e72628d9 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