Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp722445rwb; Thu, 11 Aug 2022 08:52:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5E55B15vpfEcxo8wfzWEjbyutuN/Uzn3TwDSjD1K5e94fu+EeCgnupWM7tIsA9bWpvUsDC X-Received: by 2002:a05:6402:34c3:b0:43d:d8d7:a328 with SMTP id w3-20020a05640234c300b0043dd8d7a328mr32059779edc.297.1660233122554; Thu, 11 Aug 2022 08:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660233122; cv=none; d=google.com; s=arc-20160816; b=HEOFNvRyDou4bmJJhdC8oGobclIhd6WXW7pselPv4fpFHez7HyRmrZ8/GQX4/sUoUs 3iV+pjk9TU/p48Th76l12eSO50P2QooSJkF9vuNitQYxKv2AHc/8RtwlPblGT/c2XK8U hzBpNyUdy/t9TzwgMhYiOnvUwLc6mq8XHckpfNv2acFlGPLRlvytBu8cxu7NYb5Rnml4 R5hn8xC5L+nRpCbbRgywk02gj9mU4xX8jnxioSJ7Pg2TsZMYkv4p4DdMKnbdnGYJUbFE MrWGkf/aBl1I38phgI+xa03iYq//7VlLBIMhXNNlj0oGOcl1kGoLxufYPqOJlElSMBn/ tL9Q== 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=+WsXTB496pRiThsdIYxgt06NE3Gcvk+x9eC2e8AKguc=; b=RO70P1RDz2jst0HL5nlMiHMUuwbMHPUR0KUbrjOEMjfliKliZkGDrtUTAkm4r6k7ax FpZOFdAUmKjDQqvBhmkZISKPXAtdc2VFu0uLGn2gi6ONN05ItrP+Uxxpfars3Qalz+Zm tq0+S27CtL31XGEkEtcDFxBDnkdn4dqExiU/PIubz3sN1kI5rnytzerxxw1ocdu8XJex cZ9Dp4MYlY52hv2LJnsSZ9rQp0cc8mwERYbJhTbBwk7y3Oa2RxQuJuf4SiTJ54WaXYnU eYIdtkxahOyn1eqD3Y93939PIYAQsfFoIuuzHOJcZKNncvlvwfYPmLtpqkcfArzQqzgw Hwrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UVRLId1U; 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=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go35-20020a1709070da300b0070f153ebd89si8936354ejc.7.2022.08.11.08.51.35; Thu, 11 Aug 2022 08:52:02 -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=@163.com header.s=s110527 header.b=UVRLId1U; 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=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235630AbiHKPRs (ORCPT + 99 others); Thu, 11 Aug 2022 11:17:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235601AbiHKPRr (ORCPT ); Thu, 11 Aug 2022 11:17:47 -0400 Received: from m12-11.163.com (m12-11.163.com [220.181.12.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB31589814; Thu, 11 Aug 2022 08:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=+WsXT B496pRiThsdIYxgt06NE3Gcvk+x9eC2e8AKguc=; b=UVRLId1UWuRhNt+Z81hLa xIIjzlL9Thuh7GE5sNukxhD8IOl0N8PKCCid6WxtdXIeJySQz/y8OupqY0SH0vbT QFpncRHqcMPaZxgNKIwA1uaiDDwGqwIoX/63k16Nd6dwXRD8qfSnnmevw2rpemDC 4WpEMYAH8iOsL7i5KT8thU= Received: from localhost.localdomain (unknown [113.87.232.118]) by smtp7 (Coremail) with SMTP id C8CowAD3ipBlHfViwDT+Tg--.45567S4; Thu, 11 Aug 2022 23:17:09 +0800 (CST) From: Chen Lin To: ioana.ciornei@nxp.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, yi.liu@nxp.com, Chen Lin , Chen Lin Subject: [PATCH v2] dpaa2-eth: trace the allocated address instead of page struct Date: Thu, 11 Aug 2022 23:16:51 +0800 Message-Id: <20220811151651.3327-1-chen45464546@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220811144143.b4mlngr6x76bozwg@skbuf> References: <20220811144143.b4mlngr6x76bozwg@skbuf> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: C8CowAD3ipBlHfViwDT+Tg--.45567S4 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4xKr4UZF13Ar4xXrW7CFg_yoWDAFbE9r nFqr13JF4jkFy0ka1rKr4UXa4v9r47Zr48AF1SgFW3Gr9rAry8Jr1kA34xArZ3ur4SkF9x Jw17Aa43J3s3JjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRCSoGPUUUUU== X-Originating-IP: [113.87.232.118] X-CM-SenderInfo: hfkh0kqvuwkkiuw6il2tof0z/1tbiQhVanlaECkcrUQAAs2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 We should trace the allocated address instead of page struct. Fixes: 27c874867c4 ("dpaa2-eth: Use a single page per Rx buffer") Signed-off-by: Chen Lin Reviewed-by: Ioana Ciornei --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index cd9ec8052..75d515726 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1660,8 +1660,8 @@ static int dpaa2_eth_add_bufs(struct dpaa2_eth_priv *priv, buf_array[i] = addr; /* tracing point */ - trace_dpaa2_eth_buf_seed(priv->net_dev, - page, DPAA2_ETH_RX_BUF_RAW_SIZE, + trace_dpaa2_eth_buf_seed(priv->net_dev, page_address(page), + DPAA2_ETH_RX_BUF_RAW_SIZE, addr, priv->rx_buf_size, bpid); } -- 2.25.1