From patchwork Sat Apr 15 17:05:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 8238 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1149687vqo; Sat, 15 Apr 2023 10:07:16 -0700 (PDT) X-Google-Smtp-Source: AKy350alyPUxwQ+8RKi/3bxXXR8hOxaiwjBt9GlJkU2v1FdUmmocWkoeB3d1F62JgF6PhicpKOst X-Received: by 2002:a05:6a00:228a:b0:63b:1708:10aa with SMTP id f10-20020a056a00228a00b0063b170810aamr14844397pfe.34.1681578435932; Sat, 15 Apr 2023 10:07:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681578435; cv=pass; d=google.com; s=arc-20160816; b=RDhm3Kw2XERWqJefJH188Dtm3lq904nH9Shelr0jXdSbhaD0bYFumePh+RsTULlAtt 0sV6m+9Mn0zPOys1EId8uAg4H0SkKiffIkqrdH0kcAoVkHx2mG2lRLtKtBL+gvaeqnRn oWmcNcuySzQlQAUqZSNCVM8RT3LXVS+TKbYydwp8ImuWFAP3AfIJjoMjfmxg/g7XrSrc l/zOlzYCcPILG4csXb0uYCa5eKyK8ubpYBBggHwjfgzWHwK0A24pq87f2yxuqcUPiscM EZsAIARRb43DGOweU48xdTpYccuDvB58LQEP9kcwxrx0/31IAnPmP8wyMHClVcR+gOP6 rKWw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=afY6r0Kn+k6weONKGzaM+H6Kcb4u6DXJGxF9+T37KLs=; b=Pnrn8TvehOHPhpO2rWGku9DN2eA4fpU31i0gd0JlMi0Tp+GCvNhR/8J4qYm56U+a1V eoCOYDXgmZX73lH7nlrkFLjQVyG5HUl4iKRuqhCOKNZwrUO8KQpNC/ew4nKSpqd4FYvu pxfpjnEwayPazNyPMYXX2r4cHUE64oxpseGhhV+c7PIuxU/Rfs3CGbfTAENDP5DqMOmo uqauFnvfKHZASZfxF28AMwR3qy7a5Lh4sWL7bL/3z4OhvoiCPxCtUN3cokRRP8RKUKW/ D8y6KYFkmGtQpOzuMOXet5LPQXYDi2lf4x2mDTSUpKSg7/2YvcPifrCF4MFT/O0R/rii j1LQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=XioVDDmn; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t184-20020a625fc1000000b0063731f72bf4si7386062pfb.221.2023.04.15.10.07.04; Sat, 15 Apr 2023 10:07:15 -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=@nxp.com header.s=selector2 header.b=XioVDDmn; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230058AbjDORGN (ORCPT + 99 others); Sat, 15 Apr 2023 13:06:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbjDORGL (ORCPT ); Sat, 15 Apr 2023 13:06:11 -0400 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2052.outbound.protection.outlook.com [40.107.8.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26E730C6; Sat, 15 Apr 2023 10:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U8W5mn/7olVcASxe8lEWNorRnxRpRxXyQendCs+W8PLSsWgkPHzHo93XnC6xnbYIp56h84gMkspVY9mSIEe7+gHDLhda3MaQkRJnoA3BauMNIyNqcSHohcPrCNpwukHeSCTa80XHGtU0ePAAqHeznZcFdm4+LPZNNxoXYZHUmZwnawbQ1N0Dlgw17SrhqQEzu5+pG/7zkFZxFVQtZ7rAINV9dZhUfypgSnUg3MMySCWeSrwq/6vUA8tfUzm9b3d+V/2cidRCTyJN3/N09A687TCdWqkAdRbj25EdpKVqQS1P6aNrWjL2vTP54z1z78D5x6S6cHj5VfDxgqoRAuzf9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=afY6r0Kn+k6weONKGzaM+H6Kcb4u6DXJGxF9+T37KLs=; b=BNs32kg9jdvuLXU1jYE9dKusdd1tWsYpZVurS69mXjcIXibrIfpnblBbYOeStJg08yGgw6WBns/Q7/roF8LnZVAO6zBkSJM+IThF80j5MXMUAWbQtjBr2c7qktZYmgqjxI5as36eosbp/RegKEBA+AlwTALmbeNBDYqa0HBa4s7DyIy1cL/pEehSjjwP6v8I242x+g98Wzaly7cTBvoWZncpxMuqrKxK+XaWcXOeXm3W47WHpMdpt8Ed6PzSdeBPER9mDq/Vbdvl3kYycWlY6eNhoUmrfKT5BFGaPmGAHn2XFJvxRsyD4MUNFnFJQbSo9E5GCKdACShIc7asQYmpJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=afY6r0Kn+k6weONKGzaM+H6Kcb4u6DXJGxF9+T37KLs=; b=XioVDDmnkM4iwv+b6zOwwZ3KylPJIfxmyR7xWAG5CgLBobiZ+3b6gFMCEtRFuiD2qI/iBybRh3FBWVPp10KAO/vXOenns3j1clG+kJvAQ8lgSwVjLIOgMmBo0IL3w3Llij0pz4+FjovpZ7Mpew2TuBzJCYP9XZmieKYgWOb5U74= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) by PAXPR04MB8158.eurprd04.prod.outlook.com (2603:10a6:102:1c3::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.30; Sat, 15 Apr 2023 17:06:03 +0000 Received: from AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b]) by AM0PR04MB6452.eurprd04.prod.outlook.com ([fe80::55b1:d2dd:4327:912b%5]) with mapi id 15.20.6298.028; Sat, 15 Apr 2023 17:06:03 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Xiaoliang Yang , linux-kernel@vger.kernel.org Subject: [PATCH net-next 0/7] Ocelot/Felix driver support for preemptible traffic classes Date: Sat, 15 Apr 2023 20:05:44 +0300 Message-Id: <20230415170551.3939607-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: FR0P281CA0100.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::6) To AM0PR04MB6452.eurprd04.prod.outlook.com (2603:10a6:208:16d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR04MB6452:EE_|PAXPR04MB8158:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f0f1a08-5fa2-4ce2-82f5-08db3dd3b1ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1mlM67TYuobDk2vLgiRsC6jccMQaj12n8NkCeSiSPK3nwQnwwVtslVRBD58kaWbBLkF6U7BewKpZlVb2h29Uv7xqBhc9eYc0+Hi0iF534CIR8SrDYusls/QtfSWpfgOupTdkyr4duNoZFm9JhpOnoCM4/9+T+wFTndNgqZ22q5G2BO6H1UWhIsLHAGGxrsoAbXa9qNGoD3apNruMgsV2umcvyyfOaYE6DxLLo5+ihvuuOL+MnZJGJfhjOdWT0v/arZG+65G0hVz5wzqCYnCSMC8/RosWypeVnq36Z0tHPeoO4ZEiwx84uX6wAQfxEA2LYBZCSGNGICgSycRtiN3Ok9r0fQCW6wL5bAOxTxY0cD0KOZCk3s+CgocHGypOLiylsfHryDiVfSK+Vm75aN/SkqO3rrPt5Hievc8MAO5+lyGWFHmxZF64Brrp4Y4K5wqQdGv3unNgtd18+lAiISKBaCtHNMAvsTlB0emhqGhrR4Mb3cAmWX7YY2bIXxmwo49d65LUuQl5Q7tHdjDqajejjO9YV/DIrb5NUB2Tw2RyhsELjI49HODjqPrJSgkr6+ss1JY9MTSceMigFA275yyQTT4UP9VsZCZo8VBlQUQrXL8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR04MB6452.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(366004)(39860400002)(376002)(346002)(396003)(451199021)(316002)(4326008)(38100700002)(38350700002)(6916009)(66556008)(66946007)(66476007)(5660300002)(44832011)(2616005)(6666004)(52116002)(36756003)(86362001)(6486002)(966005)(41300700001)(54906003)(1076003)(186003)(6506007)(26005)(6512007)(2906002)(8676002)(7416002)(8936002)(83380400001)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qCRL550JyZIaYtIqFzUJ5icv/qoUKnbMDHU4Q9CYeRWgKd72FdMULBjYCTJmjQb2cKXsCwI5C+syQpqtlHelixlCVZmdfufl5LhWV3CJ06qVx3KyNnF8VPL4HtHTR44dUsbjn9BlsJNJ5nCC8bHe+GQWUesncrd9FhtSV4wbH0XLY3NziZLsqOLgrnGKj5pZOemjmbWe7LgExiHofUNUILDa6WCtmbtVRb+k+uNkDUakitiq03DsPYzBsp6QWUrjlfb5mw2a/iq3wNw8Q3K19P+wl1VNaQ1s/zPjhcCS78q7GSs5heekA1i9Sf3QQVy5/dBaSPK3k8L/UrChbKG7e7PUEKDAKDqlKpxFZnXzJhDcjML3ZvoaOFuS/OSZzu48NY/S+BZAM760yyC32S2X1NclRkaRq5+m7CfBX1YSJlnQ8p/2lRK1fCvBNUDoquV27M9Ke8oZ5l2/FGaM9F+J5hnSRGAAJ/XSJozQPoB0TS09qR6nBGXxHdQGvFzl7/TMkoVmtpJLSjKbktZK4woMFJMKfX239shk46MYqxT9F/UZ70jGHChINqxm5XduMlYQomi0tOg9ORbcEVt0eAIecSRnAlihabZlmOA2wqERKHHDVpfzEbqxnZz63gb2osu7GADhjoyuuWhLfUt/qNNfViZwkHzpPAzPgWZ9WKUT6F+eBseyujyovbCKmB7NH3k1gMG4jX/f+Kkh3J1RaQBtUzFYdAnrsQZ2nvNiQSPeFibBr167pKQPkHeeP5NBV15/bngWBNdcBWhC76269jbn8LDPonNNJeD3K1aJ8UxSD87I9GynOwyDJqaJVHd0zudB16kRD/gDDQNH8F8u74cGlhWfMIxDy74VOePqdq/N7Fxr8PPRYhXCR7FLUkEF1QPSC8lrNheo61h2W+P4xpub0RXcbypfP8CFnmj4ZTXu9At7wdfi3ZsR/s0xR0lP7BqMlrZ6uwwGUb4a4N9839Sol6UTOV0HlZil/rzXIpjEay1u1q60sOjmPCy9Pykh6rHVuCrouKnhONUtFsP1P+hsBffS7rWxZ+WMWjrfpj44rrffFF4y7CEA6Q+0xdNQKTP9TyQrCmCWgsYGH6d1lqdE8uZpYuVIbiUPegT6gdqgfxz/g4jYOZbht9mI2JAx3h42Q1cZL/31e+AT68Ny36CuGzXWVLglI/qOcP64kG8qbgNFLOFUSCDJtBB8QIpvKsfPRQgg7BvIoVVW2gJ8cq8sFowCc2NaqknF3GmicZ7TxovNBmhGH0yPJXzSzWzybBwdVCq/2DBIuydkjcJ3C55ak6HYR2m1jhn32u7slvMj5CWygm97XRJ5myWbTV6Uc9UURE1XYfTiurzAm2Ef4+uukDSefaF0/AawT5JN8fhwMGLgiRgpezK3sNeAW83cxIuFFYtBPpCPsFITUu2zsIFKIPsQCSs/xgB1b5T+1f5uKVTvZtztIb/YSiqAkYg/7OGsHi6Y18lbxWcbQS1HtBiKvSO8urcjB0Ud3SGLYiV//6Go2uDULHT9A9BSG/UnldITT4Avkq4yG2ltAbiYoegnTZx5SeONBDPFlgpPkoKX9PL0zfVNXtxelxQ6gt9z11sswWjVu15yBv5te3lPWnNWqw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f0f1a08-5fa2-4ce2-82f5-08db3dd3b1ae X-MS-Exchange-CrossTenant-AuthSource: AM0PR04MB6452.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2023 17:06:03.3527 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9bLBmqjAtPu4+OiFcUG93S9gmzxSB6a8XQxZt3Vt7+BFXYFzZxa1nF5bkEboAOmY23FtIoq3ek7d9eD+r0ziUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8158 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763262789743569347?= X-GMAIL-MSGID: =?utf-8?q?1763262789743569347?= The series "Add tc-mqprio and tc-taprio support for preemptible traffic classes" from: https://lore.kernel.org/netdev/20230220122343.1156614-1-vladimir.oltean@nxp.com/ was eventually submitted in a form without the support for the Ocelot/Felix switch driver. This patch set picks up that work again, and presents a fairly modified form compared to the original. Vladimir Oltean (7): net: mscc: ocelot: export a single ocelot_mm_irq() net: mscc: ocelot: remove struct ocelot_mm_state :: lock net: mscc: ocelot: optimize ocelot_mm_irq() net: mscc: ocelot: don't rely on cached verify_status in ocelot_port_get_mm() net: mscc: ocelot: add support for mqprio offload net: dsa: felix: act upon the mqprio qopt in taprio offload net: mscc: ocelot: add support for preemptible traffic classes drivers/net/dsa/ocelot/felix_vsc9959.c | 43 +++++++--- drivers/net/ethernet/mscc/ocelot.c | 60 +++++++++++++- drivers/net/ethernet/mscc/ocelot.h | 3 + drivers/net/ethernet/mscc/ocelot_mm.c | 107 ++++++++++++++++++++++--- include/soc/mscc/ocelot.h | 11 ++- 5 files changed, 199 insertions(+), 25 deletions(-)