From patchwork Fri Dec 8 07:03:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shinas Rasheed X-Patchwork-Id: 17737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5286878vqy; Thu, 7 Dec 2023 23:04:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9E3rPm6z9sZ0BVgknAt0gr/1OY9JfCZakkf6KjbjlpS2Fni8JS7RKAeisn3Cs1FtRT+7o X-Received: by 2002:a05:6a00:3391:b0:6ce:2732:1de9 with SMTP id cm17-20020a056a00339100b006ce27321de9mr3665265pfb.35.1702019059461; Thu, 07 Dec 2023 23:04:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702019059; cv=none; d=google.com; s=arc-20160816; b=uQJMaBrCXSVHzuoyvdwchsqOvFYKUG0fxTKQcUhCXkt7TnSWwZQT/qGZRBehcOz3Ar BD7AhulK6+ThlWu+Le/dTky3EtvxrvxZeaEhMlHo9MX2ZRR8VtKlKa20LcdICEvfskEs BI7mXYnZGRAU9EXoR2u6jcaOm7ln6o+NKmIwpNPP+XMKAjEZzG43Yk5KbcqZcM8ke+Ii 8tLDR9W/s5hs+h/rwuqJQd5cQ7aWXeXpBEvv08y6IgeRpRmVamAiibjtgqCG2/y6NjWU s6sBIBFlxYGVmPE+tkQXdz5zDG97NMC9lr/kQA0AUWfczY7Ixy77kWShGVANroFZNFa6 EM9Q== 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=4jGCs3tqqsYXxEjAdXotOjunj+nQIWR7js8J9C7RAno=; fh=Z3DtUn0jqsdcWndZYoXD8ksus4+XEwJNSj5MZixyeUo=; b=Il6sIUDgOoUufXmYV4sFKwEiuIkrYwBdS91/XK8e91wJDH0GvqjTV1f6jl3WauTsdK U0wYDDdeztq0IvS6JJid0Qj5ihu/WWy1LZb2RPlLw5QPtdnYHhOq6r3uf6CFBBTHV9K+ GW8UmJbB5oX9ejsHjggyGG2AN7xCoTuqO7hGsl+qkQ9JfRpfLBDX2wGda+EVS1trHQHi /QyfPcA6imkCiztlDSSaG1KJEOdohJXMbne3EdaJGwkB5If2YuDe3x3s5QAbfPXVPPtF Z7ORAv4kf3I/UrnP4wdNXewGOnmZcensWKw0p5/IjKMsKuiYPXh174Io9lQmyjwca/TW xGvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=IHICS2wv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id h14-20020a65638e000000b005aa644010a6si1051515pgv.205.2023.12.07.23.04.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 23:04:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=IHICS2wv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5C0A580775B7; Thu, 7 Dec 2023 23:04:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233009AbjLHHEE (ORCPT + 99 others); Fri, 8 Dec 2023 02:04:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235710AbjLHHD6 (ORCPT ); Fri, 8 Dec 2023 02:03:58 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B40A1728; Thu, 7 Dec 2023 23:04:02 -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 3B84FUgc017113; Thu, 7 Dec 2023 23:03:56 -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=4jGCs3tqqsYXxEjAdXotOjunj+nQIWR7js8J9C7RAno=; b=IHICS2wv2UyV0PyDfgyteV0wFwef0EVQMdt7y3HXsQUk5QOTCC1DQXHxZD9O1C/Ebate oCP5WWFX2zgI6lSFn96HmjW3lovpyt0CGMkSPT1PL8fDHW/7/94y+K+qDa9AAlAWNd7+ HqFjcs8l5258s43FhRMXLjk3H2a+ZcKAz/u6fMWtmF3ilLvsEwRQnGlPDMQ6O7fn6uro Jlr6pVybORyj4qAq23Ycn19jT5ykPTdPGW/SA+TpAFPgcZuhPwLl443UTfXBevec+75Q 1XIuNsLW0lJ8KBUTFEwGEvbMim7ZI3QJYAsuOv7rcEJXGp3OovGiSkPQgCkgT0DpIeDo cg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uu8qecp9y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Dec 2023 23:03:56 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 7 Dec 2023 23:03:55 -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.48 via Frontend Transport; Thu, 7 Dec 2023 23:03:55 -0800 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id F2C4F3F70AA; Thu, 7 Dec 2023 23:03:54 -0800 (PST) From: Shinas Rasheed To: , CC: , , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v1 0/4] add PF-VF mailbox support Date: Thu, 7 Dec 2023 23:03:48 -0800 Message-ID: <20231208070352.2606192-1-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: DPsZawPk4rtzKyfY1Wpu6doTktfxOiCD X-Proofpoint-ORIG-GUID: DPsZawPk4rtzKyfY1Wpu6doTktfxOiCD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-08_02,2023-12-07_01,2023-05-22_02 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_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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 23:04:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784696337509931888 X-GMAIL-MSGID: 1784696337509931888 This patchset aims to add PF-VF mailbox support, its related version support, and relevant control net support for immediate functionalities such as firmware notifications to VF. Shinas Rasheed (4): octeon_ep: add PF-VF mailbox communication octeon_ep: PF-VF mailbox version support octeon_ep: control net framework to support VF offloads octeon_ep: support firmware notifications for VFs .../net/ethernet/marvell/octeon_ep/Makefile | 2 +- .../marvell/octeon_ep/octep_cn9k_pf.c | 59 ++- .../marvell/octeon_ep/octep_cnxk_pf.c | 49 +- .../marvell/octeon_ep/octep_ctrl_mbox.h | 4 +- .../marvell/octeon_ep/octep_ctrl_net.c | 6 + .../ethernet/marvell/octeon_ep/octep_main.c | 84 +++- .../ethernet/marvell/octeon_ep/octep_main.h | 46 +- .../marvell/octeon_ep/octep_pfvf_mbox.c | 450 ++++++++++++++++++ .../marvell/octeon_ep/octep_pfvf_mbox.h | 167 +++++++ .../marvell/octeon_ep/octep_regs_cn9k_pf.h | 9 + .../marvell/octeon_ep/octep_regs_cnxk_pf.h | 13 + .../net/ethernet/marvell/octeon_ep/octep_tx.h | 24 +- 12 files changed, 864 insertions(+), 49 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