From patchwork Tue Jun 25 11:16:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shengyu Qu X-Patchwork-Id: 13710906 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C069C2BBCA for ; Tue, 25 Jun 2024 11:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=u1ulyIAQjzyUfG07pp/g/SI68AT+Kj5KdaZF30N67Lc=; b=LyQWqDJZrv2nZIaqSM1Tzk/33f 4osHS1Ym7EjgrKORnshlM9daxP2p2HjbSG5tHjG7K61W2iiuvBjAZ1MIycRG8Y1vYFtCbgMMidpko Oz/6VjuKS+C49Rv4VJl23cYI0BQnnBigchA6IvmuqCsXY2eRp3M26gSEcX8uOdXb20bpRDqmaq+fg 1iGiaXq7TXnwbdi0+oxdZMrqcca0C/9MfYqwyHDIugsszX3IMNVRhRiNv19xN1fBWzJiBXj8maF9j 1Z33O7SSvZQ2r8KKDKVI6jlM+3JgTQT5VVrb9oLAjsRBYbkQy9XdTPh0N2X0RRHaRBZRD77oIQE2T DbfOEJ2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM4Uw-00000002ZPg-3evp; Tue, 25 Jun 2024 11:38:06 +0000 Received: from mail-tycjpn01olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2814::801] helo=JPN01-TYC-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM4Ut-00000002ZP4-319I; Tue, 25 Jun 2024 11:38:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fDaPliKFP/lLZ1rmVyRlyCgVzQry0/G3lUZDdBchRav7eA3yFwopLZOqbf8fy0XJIrskfCJSmFyflmu/qxaMEYX7McG5oV84cyNInO4sBaeFyZKPa1p+fcBNr9FI126amDERu+4iANZ6+rF+wNlm8bJZkWKQ+w3g69bICHPlAe3118o511OWpU466sD0+Cd4XhSYLwPgMwBjEVJPfv81bDeMCp3YdL11Miib7Wzd1bi9iFTBaEWKQYWG3OM1wIbHpUfRY0SRqvsjAIR3DrHZPn4vr4yA4tk82sLXQFQpRutIYRjBfZPKZUhSeUCpMPewhOJqNaSv7GoZO840DUZJbg== 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=u1ulyIAQjzyUfG07pp/g/SI68AT+Kj5KdaZF30N67Lc=; b=UfFQj2WElQ/NE9jKJWrsVySXPYCv3eJwLiWuL7U4jY2er1kW+OiW7Qd4NtKabzjwL4aEwt75AniM65jvvsU9wB3mwAktIfv1Jc3M16qK1x4DJeb2TTMtYJkkygeZRhpcLKj9U0i+rFswPgd/g6dXm1ys5JMS9mJvBCLV/8gj9BSIBIugrExkH4jbWjH/n0orCBbpWNQjet6gksfgcyU/hnD2s4OSxBd7xB7FU4BCOmEym6DIXet7rRDGChx9HnkuAFqQFGfCD7vYb1dFpZZM0v16HacX6wjtWfh1R3kyaTpRIz/osfPDHXNwGu4RVR0ONZMzqhK51U1AzwbNwkyXHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u1ulyIAQjzyUfG07pp/g/SI68AT+Kj5KdaZF30N67Lc=; b=asv0GNAAca9zJwgKNCUjKKv9dD5yZuu+Zwxdh3txYWmz6/EOA+8NsKSE4cxDqQ+QArKbBwJ715c9jjBJWk0mJtjb2If3C2qxatwSMn1MP4hIGSTmXnjoK7mMWfKuTkSXXIGXz1OGo5GD+cMqq/HEuP53sT3LB77JQoIQUrFjLwXyXMiV5C1u0TFq4QkG/c2xuZSTnMEZZLc4ITeSRRm1/O5aeDFwF3jvlzMR042LHsp9hB5CHcZv8O/YYwuv7lDyRG7dZJT5tV5qdOCM9MF4sT7joDkZ/LFGOzNMMuUiu02BlClKO+ghxGyRNZBXKGDvvPx7HinZLox9JGcNfSVSFw== Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:23e::10) by OS3P286MB1993.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a0::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.32; Tue, 25 Jun 2024 11:21:51 +0000 Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::85b8:3d49:3d3e:2b3]) by TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::85b8:3d49:3d3e:2b3%5]) with mapi id 15.20.7698.025; Tue, 25 Jun 2024 11:21:51 +0000 From: Shengyu Qu To: nbd@nbd.name, sean.wang@mediatek.com, Mark-MC.Lee@mediatek.com, lorenzo@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, pablo@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Shengyu Qu , stable@vger.kernel.org, Elad Yifee Subject: [PATCH v2] net: ethernet: mtk_ppe: Change PPE entries number to 16K Date: Tue, 25 Jun 2024 19:16:54 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 X-TMN: [lxrnpwbeAuex1Dm+o65ak7TD4ZWIGOB4] X-ClientProxiedBy: SI2PR01CA0045.apcprd01.prod.exchangelabs.com (2603:1096:4:193::19) To TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:23e::10) X-Microsoft-Original-Message-ID: <20240625111654.4306-1-wiagn233@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY3P286MB2611:EE_|OS3P286MB1993:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e9e283d-ee68-44e1-08af-08dc950902db X-Microsoft-Antispam: BCL:0;ARA:14566002|461199025|440099025|3412199022|1710799023; X-Microsoft-Antispam-Message-Info: 7T055KlO/VoMc8nOs22FLgs27phHAYdmxwg1V9+JeWyI6yoPzKibvFmBMud4SdEzmfnQlkWI1hy5kyW1A9apoNzKVOB/n1HI3vZJEUlNfRlQVJp0z+RochCKDTma/BWt5RwEtTenwkGYUeVDw8x39vbefazBH6ZcLWbG579llFsxHUq/1WQKsdhKl/zfhjZtgyTthcRMM0BBTns/lJrq+wouA4XYWFdwtjXUNUSVMDsBYyK8cFzxVAAGAgbi64OgnfWD8GNMk3ZIsIrbvR8PVYFW+TsOnspMWg0yfSZfuhnUQs6tiu4jtJWIFWvP9JlKXM26MXmMNOww6Qq13RMlgxfTuyDdte1p4kMimfW+n2CbOcck6JX/i+bQRsIyqFZqIkDmPS+HKH2F/1eILMnEe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VQBj4QDO00wfSHVOMsuL2oRuyK1U2nOFzF1DQ97jJ8sF2mZB7vf2gQOUHfgquQlRTYw9PEgfxYvDIjLvASMbLPr6DY9f+8QdDnV/ph5QEUrV8r3cHp5UkwMc4IWEKB5BS21tZgnjp/d0qBj5P4GdAdmhciaHb7183X3ZZAtKRRbzaC99HHMpn8v0F61s4AqCtWFiyumr28+54TDyeUaoWPRXN28rzrNC8IBAh2L4ljB2NfODK/fWMiEQbuJlxdlxmgPN8hd+dAW74HdOG4MxMW6lBMwnaNbkuTBlpA8aqIXtRpmZ1cuPog5FgLSXl5CEHStfwlZ1BAMnNGehNN7eCvS1jN/Av8AAoi55WQ72ZZAofxpjQQ/pWcl1+uXsXLSSSyj4lO65NnqFVSC+yaY3U4SM5T99mKcujtXthbNcjOs6iZen2n7OzNQw82THK6oYUObo7rsk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e9e283d-ee68-44e1-08af-08dc950902db X-MS-Exchange-CrossTenant-AuthSource: TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2024 11:21:51.8269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB1993 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_043803_977528_7C80ADE6 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org MT7981,7986 and 7988 all supports 32768 PPE entries, and MT7621/MT7620 supports 16384 PPE entries, but only set to 8192 entries in driver. So incrase max entries to 16384 instead. Cc: stable@vger.kernel.org Signed-off-by: Elad Yifee Signed-off-by: Shengyu Qu Fixes: ba37b7caf1ed ("net: ethernet: mtk_eth_soc: add support for initializing the PPE") --- Changes since V1: - Reduced max entries from 32768 to 16384 to keep compatible with MT7620/21 devices. - Add fixes tag --- drivers/net/ethernet/mediatek/mtk_ppe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mediatek/mtk_ppe.h b/drivers/net/ethernet/mediatek/mtk_ppe.h index 691806bca372..223f709e2704 100644 --- a/drivers/net/ethernet/mediatek/mtk_ppe.h +++ b/drivers/net/ethernet/mediatek/mtk_ppe.h @@ -8,7 +8,7 @@ #include #include -#define MTK_PPE_ENTRIES_SHIFT 3 +#define MTK_PPE_ENTRIES_SHIFT 4 #define MTK_PPE_ENTRIES (1024 << MTK_PPE_ENTRIES_SHIFT) #define MTK_PPE_HASH_MASK (MTK_PPE_ENTRIES - 1) #define MTK_PPE_WAIT_TIMEOUT_US 1000000