Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp781190rwb; Tue, 29 Nov 2022 05:24:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4vAxqdh2yzm9pS8OtSeGZlc+H+cbGBM+O7KtFVf5xvEtov7Xzs77eknV18lIwc56hr8jwx X-Received: by 2002:a17:902:6505:b0:186:e568:3442 with SMTP id b5-20020a170902650500b00186e5683442mr49724571plk.56.1669728274582; Tue, 29 Nov 2022 05:24:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669728274; cv=none; d=google.com; s=arc-20160816; b=0VgrGah4LEEGOJqjJ62XeqbYfVl9EVxzarzOTWWr0BJrswI6h7FfIOG7NnuzyqDg1i mYXO3MDsmq9JaMCyk5rImODiy/+hU6jRM20YNmkfpM4WxSytmFeVizMGqygnXCuN2nFU 3hciwXoexDV9HKY+HnVW+EOdH1V5si+0mrf5urfLvIO8nmRWuGU18pSMYkZ8Qc62F11E IkwoWnG0067sXdNqvrjeO9JNGX99FZYzi9gKG5hMWBrzDGMoSi1VR+ydKod/Y5J4SRwG bd7ygIfpMnLP2FvdJM1x+oCQP5cI7XbYBtvDCVui/YnK4YA5Qi83WtxcrgYPm23bN1l0 JvhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ziWSXeV9ysDgZr0fXLpkUbdYkY2wr1vhV42a/SQFj98=; b=hm3u2G9VYATAMQzUPLrMubidcXS0GXHvdpAhGO/9aiM4RuzdrSekyG0KGaHutOR2CQ DxdMOQPKvrGC5Fg/vGM2pvmeJgWjdWw3jOHhUmOps4fB/wEnD8msyUL+xnG7UN5JZK7T nl4SwsRneuyqzLwj2tGhtKjU3nIdy+9r1A+mSSwsWIyND4CgrmFjH620CUbSw6h61tzF uZjVyR5U+vHL8NHoaRXdmbwbOTa3aZF25x/m3CEuiwte9MGPH+95LnY3TtuuJgEnj2G8 bbhfdFwTT9/GBt5KHFALDBVzXfUYoZiYQ9MKndKVTneyQjqg/rP19nTV7BxmBs57KJ6e efWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=DwdJ8NxK; 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=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x2-20020a63db42000000b00452baa58e5dsi14746222pgi.275.2022.11.29.05.24.21; Tue, 29 Nov 2022 05:24:34 -0800 (PST) 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=@marvell.com header.s=pfpt0220 header.b=DwdJ8NxK; 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=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233171AbiK2NKH (ORCPT + 84 others); Tue, 29 Nov 2022 08:10:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232527AbiK2NJ6 (ORCPT ); Tue, 29 Nov 2022 08:09:58 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF262F2; Tue, 29 Nov 2022 05:09:57 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ATBxjWr029859; Tue, 29 Nov 2022 05:09:49 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=ziWSXeV9ysDgZr0fXLpkUbdYkY2wr1vhV42a/SQFj98=; b=DwdJ8NxKq3RX1ncL5b/aOqhD10P/vNofba5WumP54Wdpz+MhdItHrZe1yc6abRNVWbwH AB4sK+YnW2AHKVz8umHQT0HiuKhj+AqClywP8S5ZcCIzxaMmuewY90b7IjSLG2KgSdED 7ZB50DFc9Z/aO8ch2fh7KaiAhQBYQ17dwtCWm0BFDO00wTqkxH1tS2B6I11sA6x1qaCy tq3Fda2ZID3uOV0IWb3z39u7BZLsj52hbYVqZ6YHsx8w3/rnbgrNJQxykyem6OUv2OG+ EgVXwshNIEONrlYyXN9E+NmCgYseFdk9cXu2BmEcYto7d/pOyP1Xx1ZA4iJjVs8sy5AT YA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m5a509ysx-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 29 Nov 2022 05:09:48 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 29 Nov 2022 05:09:39 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Tue, 29 Nov 2022 05:09:39 -0800 Received: from sburla-PowerEdge-T630.caveonetworks.com (unknown [10.106.27.217]) by maili.marvell.com (Postfix) with ESMTP id 631453F7084; Tue, 29 Nov 2022 05:09:39 -0800 (PST) From: Veerasenareddy Burru To: , , , , , CC: , Veerasenareddy Burru , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH net-next v2 0/9] octeon_ep: Update PF mailbox for VF Date: Tue, 29 Nov 2022 05:09:23 -0800 Message-ID: <20221129130933.25231-1-vburru@marvell.com> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: DNHue05sYINjsqhYFL1YSGs5Wa7KWSoE X-Proofpoint-GUID: DNHue05sYINjsqhYFL1YSGs5Wa7KWSoE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_08,2022-11-29_01,2022-06-22_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE 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 Update PF mailbox for VF support. Octeon VF driver will be submitted as separate patchset. v1 -> v2: - remove separate workqueue task to wait for firmware ready. instead defer probe when firmware is not ready. Reported-by: Leon Romanovsky - This change has resulted in update of 0001-xxx.patch and all other patches in the patchset. Veerasenareddy Burru (9): octeon_ep: defer probe if firmware not ready octeon_ep: poll for control messages octeon_ep: control mailbox for multiple PFs octeon_ep: enhance control mailbox for VF support octeon_ep: support asynchronous notifications octeon_ep: control mbox support for VF stats and link info octeon_ep: add SRIOV VF creation octeon_ep: add PF-VF mailbox communication octeon_ep: add heartbeat monitor .../net/ethernet/marvell/octeon_ep/Makefile | 3 +- .../marvell/octeon_ep/octep_cn9k_pf.c | 114 +++-- .../ethernet/marvell/octeon_ep/octep_config.h | 6 + .../marvell/octeon_ep/octep_ctrl_mbox.c | 318 ++++++++------ .../marvell/octeon_ep/octep_ctrl_mbox.h | 102 +++-- .../marvell/octeon_ep/octep_ctrl_net.c | 404 ++++++++++++------ .../marvell/octeon_ep/octep_ctrl_net.h | 196 +++++---- .../marvell/octeon_ep/octep_ethtool.c | 12 +- .../ethernet/marvell/octeon_ep/octep_main.c | 246 ++++++++--- .../ethernet/marvell/octeon_ep/octep_main.h | 62 ++- .../marvell/octeon_ep/octep_pfvf_mbox.c | 305 +++++++++++++ .../marvell/octeon_ep/octep_pfvf_mbox.h | 126 ++++++ .../marvell/octeon_ep/octep_regs_cn9k_pf.h | 15 + .../net/ethernet/marvell/octeon_ep/octep_tx.h | 24 +- 14 files changed, 1427 insertions(+), 506 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.h base-commit: 7a168f560e3c3829b74a893d3655caab14a7aef8 -- 2.36.0