Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1161303rda; Mon, 23 Oct 2023 04:46:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFfSvnGg7wC+w/J14BTFlWxx823t9wkyvN4//jeCfuTfE2m4Ss+Vb+WxUuvtKUKznj5QbhB X-Received: by 2002:a05:6871:a215:b0:1e9:e975:4413 with SMTP id vu21-20020a056871a21500b001e9e9754413mr9579183oab.27.1698061580648; Mon, 23 Oct 2023 04:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061580; cv=none; d=google.com; s=arc-20160816; b=DANJ2XhdhoDfYIv2hImowZUqGn4uPDDAHpd1h3CQSOc5EnuC7ljHaRMCgCBEWFvhTF qxtS+jc27ywq8cjhqfYM4HZagQRMm3QY8QyXMnf7pASuP4heEpfEnb1snsW3UuCbw8lO PBNIGIJPeDZrjlBJ3Iie6OyAbmxnmKu9duWMM+5PRbiPC8k3vSQZo1wQ/y02msoqMG+t 8DHnToi6lGDOvuLPEgYJSHgETtX0kSoMZRuVwThobM6KTMa/5Y84V/h5+t36W7MtP5HY 1lNz6omssKHttlNZjDL8O4Euhf2Yl77Bu70faWZHPe/yEiOb/F/pOEz2HGaYFPhbK910 76cA== 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 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id x4-20020a63db44000000b005b106cd44d1si6278181pgi.486.2023.10.23.04.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; 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 23.128.96.38 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 4A9C580A2381; Mon, 23 Oct 2023 04:46:17 -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 S234620AbjJWLpy (ORCPT + 99 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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:17 -0700 (PDT) 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; } -- 2.25.1