From patchwork Mon Oct 23 11:44:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shinas Rasheed X-Patchwork-Id: 156846 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1235091vqx; Mon, 23 Oct 2023 04:46:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYtgM9XWgwGGxkGM+Wncw2DsIJxO0yBYshUA0yb1rHoknEk+mZJXg0qtcnljF0A3wB+1Dn X-Received: by 2002:a05:6358:ee45:b0:168:d346:9ee3 with SMTP id ik5-20020a056358ee4500b00168d3469ee3mr5854484rwb.24.1698061572521; Mon, 23 Oct 2023 04:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061572; cv=none; d=google.com; s=arc-20160816; b=jkDxD8j5TrjDp6u5UUzGxBy2APq7rOd7I6VholR+H73KiYWflAKRlW34F8HRYmvwIg npDFLxsT9AesPGQkqXahcuEN29yWUTqdykJ1YhrN8aHsmFX7bIUudt0J1WIQrscr1Xt+ PoU+d+KRr7asDRGeCsN/hnRkx5zFcPjCmSIZrkWediUSqQzCfyidZFWB4FG5qMGNFxof nXt5lSGcxoinBhtlk/cH8qo0lk0bzkavFwsRAhSxA4RyMUUUPXxsiSPZ1ADR0q22I7is Y18lxIpDtGYGnDVAf4zSvYhi8pF+6IM8piI2zMoJAnnSJnD6VUTlGS2wAwjyt6wJV/Ju 0Hsg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UH9OxHXbOjRhxSx5V7Clo000R+zwqhWrGr3Zie/QOlk=; fh=ExM9ANAxmdP53lLzdQyGkcWMXv2I2jExERbtPlLSxEw=; b=B2rerwCC3UWY7TSyGVB0YjLgbJhFw4KpLad9600Cme+MmjRLvH+O9GWo/wJekXkbgr kURcrwtyE1w2lgFk/ex8vTjimaPO0yyBhymwMXYR57HzOANJ0tQX3BUsVdxKPhtQpX1l ihqfn6aKDqHHdVioMUpyjDE0zWg7yucoQmBMj95aK1bnl8287DMXUJtzEe/+YC54bicJ moCeaVO22Vi5ewektOhF7hZZ2FKIEQzy7q4Mh//+/Vk4L+z/5+huxShUdRqFYyC8MYnV qb9PK2zVWkJWVvNebycriQAJMzB8Kb7ANPzp7rCqApFBUgEIXWTcfxfbOE2mUPSF3Euv LAjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=IeSKqjle; 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id m9-20020a654389000000b005b884a11fdcsi5029826pgp.28.2023.10.23.04.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:46:12 -0700 (PDT) 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=IeSKqjle; 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 499A680A28C2; Mon, 23 Oct 2023 04:46:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234622AbjJWLpy (ORCPT + 27 others); Mon, 23 Oct 2023 07:45:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbjJWLpb (ORCPT ); Mon, 23 Oct 2023 07:45:31 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4127F1705; Mon, 23 Oct 2023 04:45:26 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39MLgvgB028356; Mon, 23 Oct 2023 04:45:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=UH9OxHXbOjRhxSx5V7Clo000R+zwqhWrGr3Zie/QOlk=; b=IeSKqjleSZ24eHARBpDON5VP4jPWkfz1nV/B8MxS/ZwUUXzl67bPyTFk9RjCKBN9Bj3L iqpF10YXvBzFpSUkTsuWViT5JeQ8ZRN1oeGIJ3y/Ejc8+mqUgmJPMLOOU/hnYrBfgrFk WVSUTT8L3+WDQjFjcb05XO4ohWwSBC2g8hQ88VEKwVRT1HEwwEl7AtG7g0R4k0ggiyFR eaA7IiFjhesuGo6S/BsbN9SgJfVZYr7Ouh+S/LQsDiOrEZsm+Ozb85QKLhMRmmxzDm4l IRcw77pJeYWuBLkcMwy4s3KDjRbXxkxQmrVDqcuP/LYSXgEdsVNI54e7iobGKQq6JEA2 ug== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3tve5mwjmx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 04:45:07 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 23 Oct 2023 04:45:05 -0700 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; Mon, 23 Oct 2023 04:45:05 -0700 Received: from ubuntu-PowerEdge-T110-II.sclab.marvell.com (unknown [10.106.27.86]) by maili.marvell.com (Postfix) with ESMTP id 6F3A43F7051; Mon, 23 Oct 2023 04:45:05 -0700 (PDT) From: Shinas Rasheed To: , CC: , , , , , , , , Shinas Rasheed , Veerasenareddy Burru , "Sathesh Edara" , Eric Dumazet Subject: [PATCH net-next 1/3] octeon_ep: remove dma sync in trasmit path Date: Mon, 23 Oct 2023 04:44:46 -0700 Message-ID: <20231023114449.2362147-2-srasheed@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231023114449.2362147-1-srasheed@marvell.com> References: <20231023114449.2362147-1-srasheed@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: DdNf9PQmRGDudRphlSMWOwySR6GRBYSI X-Proofpoint-GUID: DdNf9PQmRGDudRphlSMWOwySR6GRBYSI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-23_09,2023-10-19_01,2023-05-22_02 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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]); Mon, 23 Oct 2023 04:46:10 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780546611182591656 X-GMAIL-MSGID: 1780546611182591656 Cleanup dma sync calls for scatter gather mappings in trasmit path Signed-off-by: Shinas Rasheed --- drivers/net/ethernet/marvell/octeon_ep/octep_main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c index 552970c7dec0..bf1e376a4232 100644 --- a/drivers/net/ethernet/marvell/octeon_ep/octep_main.c +++ b/drivers/net/ethernet/marvell/octeon_ep/octep_main.c @@ -869,9 +869,6 @@ static netdev_tx_t octep_start_xmit(struct sk_buff *skb, if (dma_mapping_error(iq->dev, dma)) goto dma_map_err; - dma_sync_single_for_cpu(iq->dev, tx_buffer->sglist_dma, - OCTEP_SGLIST_SIZE_PER_PKT, - DMA_TO_DEVICE); memset(sglist, 0, OCTEP_SGLIST_SIZE_PER_PKT); sglist[0].len[3] = len; sglist[0].dma_ptr[0] = dma; @@ -891,10 +888,6 @@ static netdev_tx_t octep_start_xmit(struct sk_buff *skb, frag++; si++; } - dma_sync_single_for_device(iq->dev, tx_buffer->sglist_dma, - OCTEP_SGLIST_SIZE_PER_PKT, - DMA_TO_DEVICE); - hw_desc->dptr = tx_buffer->sglist_dma; }