Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3413284rwa; Tue, 23 Aug 2022 04:29:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7/8lXSwzwPvPJN/sKulBAYMYhVtGvzpi/JVOckc/VLmbDk5zBSHRZ958NfnT3K3HO1SOq4 X-Received: by 2002:a17:907:2be1:b0:73d:7ad9:6048 with SMTP id gv33-20020a1709072be100b0073d7ad96048mr6931988ejc.339.1661254171298; Tue, 23 Aug 2022 04:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254171; cv=none; d=google.com; s=arc-20160816; b=g0V9BWfBmQ8rqgGYRVFERV36eHjwStPl5D4Lqi7JHeoTZmcylVaxNPbFO0sEwQVFSO W44yoxIHAazav16O7mRiMDgZZHgXnKvV3+FHQ9FB6df6NUdjxCMiwnVMU8ftp5nkiTiY O8i0B5f7YuhlwS2IDlhWtG2Zz40ol6Zy7nSizIVtCfdcMqgcK56pThFLL8RgST06eW9f Xv21/9d2YvdJE7Aq3jT6/GtrKGSg5/Nv87YMjyyn/xX/rdO2pS0TnvUwDIa0cb0gf7Ep TCd4BtqRq2nzBPl3qtLqBPzdZWTXulQ5zkiC+IZoQZbnhPCY61LNpS8K02N7jsjIkhSr jeZw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l0yprqJfI7yQGtlEKrTHoLe96K07QiY3CFOfWU3VQwM=; b=ffIHHHZpmO/X/l0cL/M9lqTTwO67WdDPliWVZs7R4+tzHZHd/oYDVTZZUtIXHsZx73 cJqKFt+teBcT5G5u9NxoCf7reEeoRkeRysHXx7Xr+kkeKI74xfd0NMW7348nbRzEhD9F K8kWTBVYNM8F8Kd8pgdD9wwVddDo7/R/a4DjK1tpUUgwOU0chfQSZ4ZRSw+T1UW3OLw5 Q3PrrnljB0ZSv4Gwgmo/MJDZP3xsU7PD6Zfrhki/1qa+1gWhp/HoQ0bzJ8SzA7ARk5ns WBfIZAMEyGHuAmJouqQqmjHOqukbTahYPI/TtyVjXmKROe6+y3mUf0KSdjfiW23RWRwa OE8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FIwWlY6t; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht17-20020a170907609100b0073ced0e9bb1si10842805ejc.189.2022.08.23.04.29.05; Tue, 23 Aug 2022 04:29:31 -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=@linuxfoundation.org header.s=korg header.b=FIwWlY6t; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243500AbiHWKEf (ORCPT + 99 others); Tue, 23 Aug 2022 06:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348269AbiHWKAV (ORCPT ); Tue, 23 Aug 2022 06:00:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F21BA3; Tue, 23 Aug 2022 01:48:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4251A611DD; Tue, 23 Aug 2022 08:48:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EE1BC433D6; Tue, 23 Aug 2022 08:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244493; bh=ZYTKFm1TtlDdH0qLKY2rE3EpgKLlGflmbBtmOBDDgVQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FIwWlY6ttTDVz9nBQ2ekvRQjREhwMQ+qMfSXDzhj2fslgCPPnMcshZHEJJUeNh8h6 vMA1dS0wVSVO7znAeVtiPfeu46Jtu7MeKs4A+bcqbTLt8c136e6Njbv3iXR1QYahwn 8k3bwvpHkQAJtT1vqBBewBlR9NlZIjF4jvXbFBLg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen Lin , Ioana Ciornei , Jakub Kicinski Subject: [PATCH 5.15 102/244] dpaa2-eth: trace the allocated address instead of page struct Date: Tue, 23 Aug 2022 10:24:21 +0200 Message-Id: <20220823080102.434243625@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Chen Lin commit e34f49348f8b7a53205b6f77707a3a6a40cf420b upstream. We should trace the allocated address instead of page struct. Fixes: 27c874867c4e ("dpaa2-eth: Use a single page per Rx buffer") Signed-off-by: Chen Lin Reviewed-by: Ioana Ciornei Link: https://lore.kernel.org/r/20220811151651.3327-1-chen45464546@163.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1389,8 +1389,8 @@ static int dpaa2_eth_add_bufs(struct dpa 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); }