Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2828139rdb; Sat, 9 Dec 2023 00:16:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnWYO0mzuKhqvQdxrEt3ZZN3rFMXFo9jUoleLgTbv7WwUE4WWcrLM6+oAJoYSNqJRSJWvg X-Received: by 2002:a05:6358:99a0:b0:170:2e2f:8c8 with SMTP id j32-20020a05635899a000b001702e2f08c8mr1420220rwb.5.1702109780481; Sat, 09 Dec 2023 00:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702109780; cv=none; d=google.com; s=arc-20160816; b=VgsLkid15qxvDu5CC0OT5dsDidE7hfVPSj5dEefXh40PuJI+sw7AlKiLbdHddPNFem wB7xCuUwA8tMWQFh0TVlJ5rT0JZ3hVmwAwpDD3KFqikoyQzN0oQ4sNSQk6H0PInYzR1j Uk+rAokkNwXN/CbYw9Bin6h2EgZlOgNTuDUxIgFCMTh1zKvqOoXgiIt7txiLNDr+0d4c 37NsZ0rXxi9ljwvSXlTMFj8D6s/e5RHEgWXWgfpMSiFmToMlUZkNSmaIOAsiKgvu/i2N CxhpZQavyAq/LjTj9nOnkwvH7AoVXhuY9jbEz7NsnFSBs+SidGdSWd3BzbrL+NTvq7el PKHQ== 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=sDRjGat0ZBUDwU4+NcA2S9rlaRUQA/aHu/5DtWZZfQ0=; fh=Z3DtUn0jqsdcWndZYoXD8ksus4+XEwJNSj5MZixyeUo=; b=BbwOAsZUbuM/1u9ZtKCdrb2wDIRHO7sWi1/+18O+3Rdu8NVA/hcITSXIRTWQKvux/l 4JmHNBgk7TPSgGKV637Bc93aaEN1zB2WnjEM2zbFQ1TYnv/HlDVyZ3I7aRWOgjehTqbP +cpWTyO7/H50/EjtJC2ZsSxZ6zqA/VsTN3NPpa04DwUIIWaCwcHDpQspQBOrhSfQA86V dlQUL4rXxRwP7Aai5bQL/UsJ/vYAe05ge7zOl6woHNypMDaxfXEf9mtHMccFJ5QzjtH4 KfctTONaECilsy4sqC3z96r8gHptKLPlMcktUX6r4Jfm6HAVjK7xVjvlZOcNCRIq/Kka d95w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=acHDlSA5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id bx21-20020a17090af49500b00286c0eb88f3si4163071pjb.34.2023.12.09.00.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 00:16:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=acHDlSA5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 3DEC18072442; Sat, 9 Dec 2023 00:15:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234388AbjLIIPJ (ORCPT + 99 others); Sat, 9 Dec 2023 03:15:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjLIIPI (ORCPT ); Sat, 9 Dec 2023 03:15:08 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05D9F137; Sat, 9 Dec 2023 00:15:14 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B984onR022969; Sat, 9 Dec 2023 00:15:08 -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=sDRjGat0ZBUDwU4+NcA2S9rlaRUQA/aHu/5DtWZZfQ0=; b=acHDlSA5GTnFiAeptB2tkolsr0+T6x91H92RaeN8P6F70JWyTc/YkSV4/D2dk0TGJ1Pe J0RsGT3MeS2RlNJQAgimq24qEe32rBfdRc5T+lWgYXn9mYi0mPZI8UfThlFktzr7klz+ q8K7XemuckGwPkc6htstvhPkHGDAiPuNYHgIlkBvYhseiTJtMoo2tYTYaxy/5QEzX6iR XgZtYyvnHqXOATlqYL8dlH2kfd8TJAk70GLcouaQc4LLwvNOmWkR1QRbbnT8nS0DFGA2 42S0e60/xjIewAvNzpvJML6mtkE9InDswwyLb6rPKsqC3CrgCZ8bsdRpNAhBO67aDJT7 sw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3uubddfkhp-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 09 Dec 2023 00:15:08 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Sat, 9 Dec 2023 00:14:52 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Sat, 9 Dec 2023 00:14:52 -0800 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 618043F7095; Sat, 9 Dec 2023 00:14:52 -0800 (PST) From: Shinas Rasheed To: , CC: , , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v2 0/4] add PF-VF mailbox support Date: Sat, 9 Dec 2023 00:14:46 -0800 Message-ID: <20231209081450.2613561-1-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 0hGVGzQwc4ScE3WCogUgPJ1jploSQjSe X-Proofpoint-GUID: 0hGVGzQwc4ScE3WCogUgPJ1jploSQjSe 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-09_02,2023-12-07_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Sat, 09 Dec 2023 00:15:26 -0800 (PST) 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. Changes: V2: - Removed unused variable in PATCH 1/4 V1: https://lore.kernel.org/all/20231208070352.2606192-1-srasheed@marvell.com/ 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 -- 2.25.1