Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3292319rwa; Tue, 23 Aug 2022 02:07:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7X1Fd3UGRzBXGXbbx6gJOXJCh9QFJV3d9HaA/02UrRgmLGBsIbf79c0HrUAQNZC6Kl7OXd X-Received: by 2002:a17:907:96a3:b0:73d:6859:70df with SMTP id hd35-20020a17090796a300b0073d685970dfmr9277726ejc.320.1661245662703; Tue, 23 Aug 2022 02:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661245662; cv=none; d=google.com; s=arc-20160816; b=K1MTYKB5ptXAOaW/B1ChODsKlW+YBxSyXarxw5jfritSBFH8NANFYXIkPmE6iaiT/M V/5Tcthf+X0mad3ZMOaKwHkEiyQcDUSIHn8H5I/ICGvePI60BVyEKRRv0blfD3ZtJB6r z/6Mu6/Gaw/PQVPFDbNmtqgYmlVbrVtVG+zFe+CiLZYTU+hmKOusxcxEznCghaIirLwa ebONimu5bP1wyezfNh6OUVWP3F3+x7awc4dR+yHGjhl0Qhwc+BZYML0IR3trGA6MRYN4 hCpwiTfM4Et9fKGTwnzc7bZOfctgOJg0fGVNH16+7M99Sz+GtUw9Rw8xv4nunB1kePXm DFUQ== 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=LEdCOMuoR1R370R5oKE5HCI1R5TLNtbROcKAuaeNwOg=; b=KV0aA6cvWCTr1frj2LrTO/fF/hs2b8w5mOGD81XTHpJjBHvxfTdU8ysAfbeXytSdyG /giSjJcVRkHq0bW3I9EEjbG4Ssy5X9QcFICtHbQ8B6hPBuRKrWNcj3BZQOkGqqmt4Atg 7v9zRXFG7fe6jQYW2lSpbartNmwj3jiTh9O3oPd2TMdvZkUMTs9holqJZD0VZiTPnHQc ShApLE0rzJUVbIYF6uyPBOqnp6HZwjvCbnpHhgPjF6ameIVQBf35RQFwuKSxHer7IYOc SMXvkzwQxEekiK65Mkrbm6LSIGE18+DkX/VZKq8KuJhzbKudlA0CFnKiPg/9wZKboP03 CQVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="ZjrQ3Z/E"; 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 jg21-20020a170907971500b0072ab62ae019si11267462ejc.859.2022.08.23.02.07.15; Tue, 23 Aug 2022 02:07:42 -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="ZjrQ3Z/E"; 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 S1344428AbiHWIj3 (ORCPT + 99 others); Tue, 23 Aug 2022 04:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345248AbiHWIhl (ORCPT ); Tue, 23 Aug 2022 04:37:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 362DC77EA1; Tue, 23 Aug 2022 01:17:48 -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 D76E961344; Tue, 23 Aug 2022 08:17:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD524C433D6; Tue, 23 Aug 2022 08:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242667; bh=t0Sc8RZxa/pZqGq0aB0vjxLJ2hWzF2qUPy/sMJKfolU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZjrQ3Z/E3FP7RILuFEnQF3kmYRC1RajdcEG88dUvWjhpaycKXgHtj2s8Oqth9Sm+N E/Ru0pIgf7vokQHJYyTyuVZyTu9GoJHE9zcsWXA2vj4J614HojJYqLhAhHV+eiT2ko th6ceVRfyGYJibH70fSamjQjjY4i57oZakgbJpWo= 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.19 159/365] dpaa2-eth: trace the allocated address instead of page struct Date: Tue, 23 Aug 2022 10:01:00 +0200 Message-Id: <20220823080124.878068449@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@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 @@ -1660,8 +1660,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); }