Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2250318pxp; Mon, 21 Mar 2022 15:00:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0rwjthANbvOUYRIhWEjGMp8/KXZaF4qmpZuHa3EUjYeyChqd2mf9+vxJ+dV3bpBON7fpk X-Received: by 2002:a17:903:41c8:b0:154:7d05:9829 with SMTP id u8-20020a17090341c800b001547d059829mr2028228ple.41.1647900019514; Mon, 21 Mar 2022 15:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647900019; cv=none; d=google.com; s=arc-20160816; b=H1Soey3bw2i1I/WVwKqpwrFSTjrOdy59adb3HM3oRo65vJXlbsB2ZH/xOjPzOs2tKl BXrjfr++Pd4O2n69abMiMC/zd9vpoYW1Ev9MyjPP0vaIkT1vGPkWZHNPthgVoITxKNdl +6oMoahWojU/Q6EGp1m/1F7YMnY767DQ0Xp3bp/FzOb0MNu3zjYMvVhIzPTOvN6RAwy8 YBxBUU6mryJPFzqDT6DX0PSMvZHS77CuOelzggQU+LQF/vzcBenAfpHNzROzo2HEV9D8 AluVgvGgWUPloGEeZcf7ewBlYIbaPkhr71HWNo91PuPdK2GFxUSHiKbia4z7nRwtZ1qd KSew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=xlvyVwPz1c1jgNM8C0j/OWMHzndCfpBmElGsRKCvqOU=; b=rMeAbRot9It/SvC5dGhoHTmyZgSV1vSpWnZui0qC+MNXVusXCmU4s4ZnZtA3D5CxeZ 4ABnY0/PwKdQblevjDY9KxH3DmdR/KOLZi0RPRvDOLGNLg+yF9/lJf0XKlApWrda8e7n EDRaLFkF+o3kX20XO+aRYiafSwry3RN641MnBKRTSGQz41QG6a5Mu/DDpNQQw+ZOiT3b J57ygHrEXuvJIocawCU7W/Yq4U6aM/bZKnJfdfKAYLtv7qMWjrHsEvVQBx9UZvQQ0ila kAAiyIwvjDPuyAs8wxGg4Tf0o6vWK2hP7kjNvn5hGSojtz3sSBHErMW5Ke4TvmmHi23/ IW9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Wk1ymgOV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t190-20020a6378c7000000b003816043f0acsi15646625pgc.673.2022.03.21.15.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 15:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Wk1ymgOV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B3523458EC; Mon, 21 Mar 2022 14:25:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240917AbiCRU4j (ORCPT + 99 others); Fri, 18 Mar 2022 16:56:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240901AbiCRU4c (ORCPT ); Fri, 18 Mar 2022 16:56:32 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B71A1AA8E4; Fri, 18 Mar 2022 13:55:12 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 47EF922239; Fri, 18 Mar 2022 21:55:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1647636910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xlvyVwPz1c1jgNM8C0j/OWMHzndCfpBmElGsRKCvqOU=; b=Wk1ymgOVBsdLfg9tDk3A6BvUqx/jUo0pUroFm8eZhqpkVF2ymv0ajn7lsIpD3YuutZ/VZ8 NEAVUMpfsyPPwmJ0lx4LwC+TyD3LJ7+WHZyB1dETM2HAzo0ls0ibgW1u5Spx4Qpt3Cp5ND py/p5x6AVGcuZ2YIgrp1gFd+dXnvofE= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 18 Mar 2022 21:55:10 +0100 From: Michael Walle To: Horatiu Vultur Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v2 0/4] net: lan966x: Add support for FDMA In-Reply-To: <20220318204750.1864134-1-horatiu.vultur@microchip.com> References: <20220318204750.1864134-1-horatiu.vultur@microchip.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: michael@walle.cc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_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: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-03-18 21:47, schrieb Horatiu Vultur: > Currently when injecting or extracting a frame from CPU, the frame > is given to the HW each word at a time. There is another way to > inject/extract frames from CPU using FDMA(Frame Direct Memory Access). > In this way the entire frame is given to the HW. This improves both > RX and TX bitrate. > > v1->v2: > - fix typo in commit message in last patch > - remove first patch as the changes are already there > - make sure that there is space in skb to put the FCS > - move skb_tx_timestamp closer to the handover of the frame to the HW > > Horatiu Vultur (4): > net: lan966x: Add registers that are used for FDMA. > net: lan966x: Expose functions that are needed by FDMA > net: lan966x: Add FDMA functionality > net: lan966x: Update FDMA to change MTU. > > .../net/ethernet/microchip/lan966x/Makefile | 2 +- > .../ethernet/microchip/lan966x/lan966x_fdma.c | 775 ++++++++++++++++++ > .../ethernet/microchip/lan966x/lan966x_main.c | 44 +- > .../ethernet/microchip/lan966x/lan966x_main.h | 120 +++ > .../ethernet/microchip/lan966x/lan966x_port.c | 3 + > .../ethernet/microchip/lan966x/lan966x_regs.h | 106 +++ > 6 files changed, 1038 insertions(+), 12 deletions(-) > create mode 100644 > drivers/net/ethernet/microchip/lan966x/lan966x_fdma.c Tested-by: Michael Walle Thanks, -michael