Message ID | 20230511071214.18611-2-pranavi.somisetty@amd.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4171890vqo; Thu, 11 May 2023 00:16:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7yyasgjUc7RMcyCYEJAjXPLOILCLP8Qa34XCDoz3HAQTNUyTN9cxVpzJxFX1koo0MkPSuQ X-Received: by 2002:a05:6a20:1590:b0:101:8601:467d with SMTP id h16-20020a056a20159000b001018601467dmr9352422pzj.36.1683789398766; Thu, 11 May 2023 00:16:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1683789398; cv=pass; d=google.com; s=arc-20160816; b=nFaapweij6Ane8tpkRgoMAVJmmgRz0Z1IF4Sw4nDyFUOBUe3Mwhfcge9nyWCeRVzD/ VkkwnqRJhJBQaVT8VMbqbcZl+Pz3KLbyN1kMeM9jCyZY1BnhCPuLC10sat4nPh6A/1vO fVhV0KQU64Os5fRJ5f4NxySn81XJN2ayFwGENOf3MZrxAdFdxlC0tZwog6b1aTaooT1d PnRkP1Up7zE6Zkwsu0/CvrlJht8Dhzmz72r3/kG69UZaA4Ul6OSkzBRcpAVhmJQX3EQx CjVtp44sEJ53UpsE/xL0NT6TgZQFfxvHYprSmGwE8ASX4EpF3cEsZETnm5LfT4RgnKfL O/NQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VzbtLgPz/foJPeDpIxv9Q1l6mjWc+hC52ufmoRs+F+M=; b=BbwdSWN+NQt+M9mzPk9fNmh/NR0Zat9wPbv03Ukc8jixonVcq+qIkBOXFeRtmpmTzY SUW2ZzPENNWr5/QZ8HhI3M9SrvCezEZSe55RMHgX6MtBD16oTSF2C+DrLqihdyXmfHeX eTeZxIsNa+6j5AEbU3+kE7VbnNO9hqfl1c5R/zmFUdcBIArMYH5zFaHIshwgw75TMSdx 2aoBAbZSE9Z8gQhr1VklrHViL5MPYPkVJkZl75hqB1azfb4F5SEAByhuWDLlr+lng1LY iQYyWanNk7N+Ua/PBLT/bAD2zJqI7F0Qm0u4pUuBDztQhdVxGzhHfMPlhTZjp1JIbMQb X1Hg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qwLP4gvs; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a63f508000000b005183e6198aasi6035342pgh.794.2023.05.11.00.16.24; Thu, 11 May 2023 00:16:38 -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=@amd.com header.s=selector1 header.b=qwLP4gvs; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237394AbjEKHMs (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Thu, 11 May 2023 03:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237261AbjEKHMj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 11 May 2023 03:12:39 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2086.outbound.protection.outlook.com [40.107.237.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1C52D7E; Thu, 11 May 2023 00:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rr4pTIPHPs/23v5A+EQgqYIcfiAinwFS0g5Ae1KXhdRwQTnk3lEvpUMBtwnMiQczXj0OAk08fPqLcUSx10qcK6B7P/00vwtazn81BBfXA+Dqh2rq6jAMl7oesg9dgmbij9roC2wZ4EZaFtLzKua+RF81YjLxkzAaIdyqNtLHwr1px+8vSjOlCBXuX0O+T75qVeauLQ5VsmEMLo7IuAOdqali/mxr8uonFPyUefgGvalWNqW4wiWP9fUruEm4crB/yrh94JWAeYJdBp2DryR/DIMJv5N2dW4DDBiXB3yBxeQOi2Ec+vi7ra6OPF1aTgsQU6IntvN2P2bPbEcudMph5w== 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=VzbtLgPz/foJPeDpIxv9Q1l6mjWc+hC52ufmoRs+F+M=; b=F0S6wuRVqSBFM9hz+BMkDTwe9czF6CMsu2ayG9sDnOazlUwxTNRDqFlVPlBeRrubLgY5kxeYODOkq9csDcamS1hVwElT85ZvhSVU0DHJbG2rpM016Uxd3r529WOW/WMZUPyyYxgc5fLKktLULiiuA4EXS22d7YHXwNae5Ti2po7PxovTfhQbUCKuhh/B8nNJVYJ+DiTVpkEwKILYFrc2zbhsTFhag/wZy/Dx/5mKTwiiY7eCA73hGNkdc1SOLggyblwSeQjyxvIfrU+MZUWrGjBiW4dvyUjdA/5MRnQbJAPdW1SRl3z+9Zj4Uqs0bnof8z+g9bujLSIhCWRcKsegvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=microchip.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VzbtLgPz/foJPeDpIxv9Q1l6mjWc+hC52ufmoRs+F+M=; b=qwLP4gvsCx/NJA7136kxpPexzu9zplG0dtI5h/WyJTSZW+6ct2FUNP/UHpWkznL3Xjpeb5u9iD5PW45QicHDeOJmodmDGbhaOIFIbp+Bninm4oPxXVl9g20CzshsV1DYdlBYPyI/hh9TbsmVRQfw7MgI+B0Lxl8Ib1Sia3agR2E= Received: from DM6PR13CA0045.namprd13.prod.outlook.com (2603:10b6:5:134::22) by IA1PR12MB6020.namprd12.prod.outlook.com (2603:10b6:208:3d4::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.21; Thu, 11 May 2023 07:12:25 +0000 Received: from DM6NAM11FT052.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::91) by DM6PR13CA0045.outlook.office365.com (2603:10b6:5:134::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.6 via Frontend Transport; Thu, 11 May 2023 07:12:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by DM6NAM11FT052.mail.protection.outlook.com (10.13.172.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6387.21 via Frontend Transport; Thu, 11 May 2023 07:12:25 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 11 May 2023 02:12:24 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 11 May 2023 00:12:24 -0700 Received: from xhdpranavis40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Thu, 11 May 2023 02:12:20 -0500 From: Pranavi Somisetty <pranavi.somisetty@amd.com> To: <nicolas.ferre@microchip.com>, <claudiu.beznea@microchip.com>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <richardcochran@gmail.com>, <linux@armlinux.org.uk>, <palmer@dabbelt.com> CC: <git@amd.com>, <michal.simek@amd.com>, <harini.katakam@amd.com>, <radhey.shyam.pandey@amd.com>, <pranavi.somisetty@amd.com>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-riscv@lists.infradead.org> Subject: [PATCH net-next v2 1/2] dt-bindings: net: cdns,macb: Add rx-watermark property Date: Thu, 11 May 2023 01:12:13 -0600 Message-ID: <20230511071214.18611-2-pranavi.somisetty@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230511071214.18611-1-pranavi.somisetty@amd.com> References: <20230511071214.18611-1-pranavi.somisetty@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT052:EE_|IA1PR12MB6020:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c70ffe6-cbe8-493d-5b48-08db51ef12a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sWKC01KHro2nEDyic2qEHDFLaE9ET31jdw3ZmUtvj/anVcOj6o0c/q8Z4iM9JyV1Q0usOxK+3OXOIKG6tc6yckqdAvDne5ufEAHGnJDn6DlPKCRWPWrAPE96au0SSR5VGmFVIeUxa0WCK6V2P79yMflIUv41RUEs5nvI+fHd3deG5ht0OjAILFbQf7273B0e4Gh5umCB67b5LpBAfWV4kSJlSZ2ALMEfdGUkCavGThnUYUMv2OQdDRkR7ur0gsaofw3G5KX0HcAmxPmS11oT9l6w8RKl2TfS3YQsotPTI7wZG97TgS+FN2cUeyjl39VnD5Liitk1X/0DmFgIQLpu0h14rOcmSrkC0XNuDHcusKZFg6CTlSgpC91NSN0mJznTbmHDq0PJWHnzfSwo0G9mMFiRm2ZBmc4u+0grWi5AWWojTRaUyO41LScI6BHkSuhuln7e435z8Sdz/XfAl9Dl7yCpixKIcoTQbsGq7sSfRXNowaIXW+WBQ68zPVs5okJTYzak4o2TOPwzjAP9l7sVbW40j8XgEmYAmTQMNca3JTqNGpLfDJC+JPpz9o6r0oQqmwn6jEQUN9+Fq04nyB1sOduKqe4CRgR8ov1Us7Wq2LWS4zl3AGEgZcqVDBOqlRLEj5xT2IcJWybxJQ8tGQm19LP6MhxCSmvGQ5ZExDcuXnYFomQLNip7hzxjnzJng8FuBXSXi7FA8Ug3SMFSlX+xPqlBK3mCYyTupzYGKpP8nBIyzwXS92bRr2aRTdUj8C+8nHUJyHus1pbLKfF3EeZdQA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(136003)(396003)(376002)(451199021)(40470700004)(36840700001)(46966006)(6666004)(41300700001)(70206006)(4326008)(70586007)(40480700001)(1076003)(26005)(110136005)(54906003)(316002)(478600001)(8936002)(8676002)(44832011)(5660300002)(40460700003)(7416002)(82310400005)(2616005)(36860700001)(426003)(336012)(2906002)(47076005)(83380400001)(82740400003)(81166007)(36756003)(356005)(186003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2023 07:12:25.3939 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7c70ffe6-cbe8-493d-5b48-08db51ef12a2 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6020 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765581152393313355?= X-GMAIL-MSGID: =?utf-8?q?1765581152393313355?= |
Series |
Add support for partial store and forward
|
|
Commit Message
Somisetty, Pranavi
May 11, 2023, 7:12 a.m. UTC
watermark value is the minimum amount of packet data
required to activate the forwarding process. The watermark
implementation and maximum size is dependent on the device
where Cadence MACB/GEM is used.
Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com>
---
Documentation/devicetree/bindings/net/cdns,macb.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On Thu, May 11, 2023 at 01:12:13AM -0600, Pranavi Somisetty wrote: > watermark value is the minimum amount of packet data > required to activate the forwarding process. The watermark > implementation and maximum size is dependent on the device > where Cadence MACB/GEM is used. > > Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com> Please send dt-binding patches to the dt-binding maintainers and list. get_maintainer.pl should have told you to do so & without having done so, the bindings will not get tested :/ Thanks, Conor. > --- > Documentation/devicetree/bindings/net/cdns,macb.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml > index bef5e0f895be..779bc25cf005 100644 > --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml > +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml > @@ -109,6 +109,13 @@ properties: > power-domains: > maxItems: 1 > > + rx-watermark: > + maxItems: 1 > + $ref: /schemas/types.yaml#/definitions/uint16 > + description: > + Set watermark value for pbuf_rxcutthru reg and enable > + rx partial store and forward. > + > '#address-cells': > const: 1 > > @@ -166,6 +173,7 @@ examples: > compatible = "cdns,macb"; > reg = <0xfffc4000 0x4000>; > interrupts = <21>; > + rx-watermark = /bits/ 16 <0x44>; > phy-mode = "rmii"; > local-mac-address = [3a 0e 03 04 05 06]; > clock-names = "pclk", "hclk", "tx_clk"; > -- > 2.36.1 >
On 11/05/2023 09:12, Pranavi Somisetty wrote: > watermark value is the minimum amount of packet data > required to activate the forwarding process. The watermark > implementation and maximum size is dependent on the device > where Cadence MACB/GEM is used. > > Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com> Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. You missed at least DT list (maybe more), so this won't be tested. Please resend and include all necessary entries. Best regards, Krzysztof
On Thu, May 11, 2023 at 01:12:13AM -0600, Pranavi Somisetty wrote: > watermark value is the minimum amount of packet data > required to activate the forwarding process. The watermark > implementation and maximum size is dependent on the device > where Cadence MACB/GEM is used. > > Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com> > --- > Documentation/devicetree/bindings/net/cdns,macb.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml > index bef5e0f895be..779bc25cf005 100644 > --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml > +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml > @@ -109,6 +109,13 @@ properties: > power-domains: > maxItems: 1 > > + rx-watermark: > + maxItems: 1 > + $ref: /schemas/types.yaml#/definitions/uint16 > + description: > + Set watermark value for pbuf_rxcutthru reg and enable > + rx partial store and forward. What are the units? Frames, octets, DMA scatter-gather segments, % of maximum? Andrew --- pw-bot: cr
On Thu, May 11, 2023 at 08:25:15AM +0100, Conor Dooley wrote: > On Thu, May 11, 2023 at 01:12:13AM -0600, Pranavi Somisetty wrote: > > watermark value is the minimum amount of packet data > > required to activate the forwarding process. The watermark > > implementation and maximum size is dependent on the device > > where Cadence MACB/GEM is used. > > > > Signed-off-by: Pranavi Somisetty <pranavi.somisetty@amd.com> > > Please send dt-binding patches to the dt-binding maintainers and list. > get_maintainer.pl should have told you to do so & without having done > so, the bindings will not get tested :/ The automation we run for the linux-riscv did actually run against this though, and even dtbs_check complains about this binding: Documentation/devicetree/bindings/net/cdns,macb.yaml: properties:rx-watermark:maxItems: False schema does not allow 1 hint: Scalar properties should not have array keywords from schema $id: http://devicetree.org/meta-schemas/keywords.yaml# Please test your bindings :/ Cheers, Conor.
diff --git a/Documentation/devicetree/bindings/net/cdns,macb.yaml b/Documentation/devicetree/bindings/net/cdns,macb.yaml index bef5e0f895be..779bc25cf005 100644 --- a/Documentation/devicetree/bindings/net/cdns,macb.yaml +++ b/Documentation/devicetree/bindings/net/cdns,macb.yaml @@ -109,6 +109,13 @@ properties: power-domains: maxItems: 1 + rx-watermark: + maxItems: 1 + $ref: /schemas/types.yaml#/definitions/uint16 + description: + Set watermark value for pbuf_rxcutthru reg and enable + rx partial store and forward. + '#address-cells': const: 1 @@ -166,6 +173,7 @@ examples: compatible = "cdns,macb"; reg = <0xfffc4000 0x4000>; interrupts = <21>; + rx-watermark = /bits/ 16 <0x44>; phy-mode = "rmii"; local-mac-address = [3a 0e 03 04 05 06]; clock-names = "pclk", "hclk", "tx_clk";