Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5081423rdb; Tue, 12 Dec 2023 19:58:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMppCvM4WHygZDFJxXXmFYXYX5kqnNPBLRI5PrOWH53aSvW1/24D8yMAQmWRRgW10bY+6J X-Received: by 2002:a05:6808:130a:b0:3b8:b4f1:24a4 with SMTP id y10-20020a056808130a00b003b8b4f124a4mr9886906oiv.31.1702439922639; Tue, 12 Dec 2023 19:58:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702439922; cv=none; d=google.com; s=arc-20160816; b=shwcuiAG+RDkHWZjb+MHhzcxYlqJIkW1wappubnoKJYZbZgeqIqOvQGkSeDrKu4obE Sab7qtQJQCLjWL1/l1tMZDK0EClatXMABcBoXrkxdDZk9RXcr7aJKeN9nhs+HZ3UlReC XLqRvNyyaERcUezqAnGfcoLoJUnBY9mJYP+XVn3OmnOziAqYTgSiJehWnHYhTS9Bu3qJ mYGJ19zdiAeTSngcCz9q9zk4WPiaHs+6xsAPZw0HV3oh4GKizEwD8oWogv8kPFF63mq/ G+r2zpiHyN+biNAiGwtTU5/H0nXvMs0h4d6gIf88XRu0MPbsp8rMi/y8vNjQ00m1MV1B su4w== 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=sSgxyO0lJDy02aWDMAq/b+ta6/FYjADN6Wj57bHu0fw=; fh=Z3DtUn0jqsdcWndZYoXD8ksus4+XEwJNSj5MZixyeUo=; b=bfs2j1dHFdic59lUPhgOtt1s3kAjgJKZlqj6W1/PAmGdGga56Gy1J04I+rKh4ennbX 1b+o1AbadHJX5ObkGghlwOpSNCftdOUPs7dT7MLGuBfH8cABAXGl4X6IBtzxwQTxR+d0 ycOBKAKv0Wb+86PKY8R4pr04ZTdtyG7BbTH8dzaXIxM7OK9lI3gTm6UPfi/O78VD2EeJ LzhSYtThJKc0N/Vw/JqmL4MslWeO2xrXgfTeFYiOjBH3mc3I2nmV954cyvvrrzagnpzL /t9q635Dk9lqI6VUwZJeGtPp2gKbpCaIpOfSNUZNnAWAQM9q+ALsMQ/dFRS5bOKPvd0z 9o9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=aaN1nCwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d17-20020a056a00245100b006cde1b8b490si8863957pfj.168.2023.12.12.19.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 19:58:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=aaN1nCwD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id DF34380AD506; Tue, 12 Dec 2023 19:58:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235222AbjLMD6Z (ORCPT + 99 others); Tue, 12 Dec 2023 22:58:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235223AbjLMD6Y (ORCPT ); Tue, 12 Dec 2023 22:58:24 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D4CFCD; Tue, 12 Dec 2023 19:58:26 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BD3XUD5012428; Tue, 12 Dec 2023 19:58:20 -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=sSgxyO0l JDy02aWDMAq/b+ta6/FYjADN6Wj57bHu0fw=; b=aaN1nCwD4Huf0+ox/4FYdL7I oM+SvuNlT73mN5TtuGoSVSPWOZPsf+Yfpl+1ozwNs7aaYR06HHtRsnsVfbu3yQdY hrAQHRdnwP/kdIibb0/Bj/sAc74Wd0w1/mK+aZoIMyyZv7qpmGOvhL/xQVv56uOh pkczu+8tTYoX7gfddpmGQ0n02NURSwiaRDpdgbSK1Z+Wzt9YWeLCQk/Y8Rh6Nq5Y YxgI1/jed+bkUXqCkGwa3CfYYNTJr66Cflg2d0wbjKUy9HXWQ+gjhL7UG52ceMqN TlLGZSkKJc6UAC+ZnIdsFJV3bulem0jFm26vmhcDkT+MIuezEVlUIrnkt9w7ew== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3uy4tgg1xd-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 19:58:20 -0800 (PST) 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.48; Tue, 12 Dec 2023 19:58:18 -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; Tue, 12 Dec 2023 19:58:18 -0800 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 4F70B3F7043; Tue, 12 Dec 2023 19:58:18 -0800 (PST) From: Shinas Rasheed To: , CC: , , , , , , , , , , , Shinas Rasheed Subject: [PATCH net-next v4 0/4] add PF-VF mailbox support Date: Tue, 12 Dec 2023 19:58:05 -0800 Message-ID: <20231213035816.2656851-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: tej4tc5MtBNQwMDUHyMx9-lG0Fn0942s X-Proofpoint-GUID: tej4tc5MtBNQwMDUHyMx9-lG0Fn0942s 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 19:58:40 -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: V4: - Included tag [1/4] in subject of first patch of series which was lost in V3 V3: https://lore.kernel.org/all/20231211063355.2630028-1-srasheed@marvell.com/ - Corrected error cleanup logic for PF-VF mbox setup - Removed double inclusion of types.h header file in octep_pfvf_mbox.c V2: https://lore.kernel.org/all/20231209081450.2613561-1-srasheed@marvell.com/ - 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