Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4038397rdg; Wed, 18 Oct 2023 13:03:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPTFXe/DgJlPXqb10xUMoiTTNJsrhsroGiv/QUQbeLGjIXfTFzwvjohRAuQOPygZes3VT8 X-Received: by 2002:a17:90a:f98a:b0:274:4e9b:7a1a with SMTP id cq10-20020a17090af98a00b002744e9b7a1amr167082pjb.44.1697659401201; Wed, 18 Oct 2023 13:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697659401; cv=none; d=google.com; s=arc-20160816; b=stC38j8mN2y2vjtsYoq3JeLImFMrIFZCMRt0VuvuNx7w7eZ/jW9R7nu8rPOOHC76Mr Z47mxhVxSwZyTqZg69EoXVpW4o6wt+V1T8wHA9MzZ8mcZdArjcdVXUMoV3Fk+TtbMyB9 t7bGzlEEIEemCE9v1jRLdUGFhYnrwuRHp1QH0KEisHsZIwT2JGULAMALqUnzy2xUm0jE onw2PK9QIAA1euhZCkolZ/zudzw2wLU6TS8Fkwc7FVT+/kTA0UiX+Y1FCNEy0t1ey7oc Qhm8ykeYT92b2u3GmwRH+t5cgMADZbN/ildAAN4yOoMXURsTOG8KP9r4OWuKqOCfRYP9 S4tg== 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; bh=IqQ3P/eEBiv7TqmjanCrWegaoFsDDZYBCnDT2vA9Mj4=; fh=7gBX+Ra0RLTSOhYq/ocBRRVcZ5DfH4VlvjZyXhx0eZ8=; b=e77YVTqJeF72B3XdTUtRhO1P57Crc130x0JW4Wtmlvuwo0hm9DU8awYMYxwKqT1uSn YZcl20Oko95vhsYBAy2Y83cAWPNrIFJO3xuxzoy4ZcQGg6ce1agYWcNouKjkUhupTdYR QLYg2vh3g0cYNSguEomAKLVPBeSdx+687JPZhnJkJ/PiWC0oPIRO9L9qpL49gQ2ppDJN rcVogAwHGcBFOzTIPgs5L57UH2SXkSDqLxJBnzNxzGzQxQt6BoMwd4Yck+itCLj3AfIX Pn1V2rljptJtv592qaICKpi72spC8nD4I3ywYmZn8CdpONpHwcdiEhpppr47riIo0nMi MtYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id mh1-20020a17090b4ac100b002680abc3699si639209pjb.115.2023.10.18.13.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 13:03:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3E53D81CC859; Wed, 18 Oct 2023 13:03:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbjJRUDO (ORCPT + 99 others); Wed, 18 Oct 2023 16:03:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjJRUDM (ORCPT ); Wed, 18 Oct 2023 16:03:12 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB2695; Wed, 18 Oct 2023 13:03:11 -0700 (PDT) Received: from i53875b5b.versanet.de ([83.135.91.91] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qtCl0-0004c8-12; Wed, 18 Oct 2023 22:03:06 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linux-rockchip@lists.infradead.org, Sascha Hauer Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chanwoo Choi , Kyungmin Park , MyungJoo Ham , Will Deacon , Mark Rutland , kernel@pengutronix.de, Michael Riesch , Robin Murphy , Vincent Legoll , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, Sebastian Reichel , Sascha Hauer , Chanwoo Choi Subject: Re: [PATCH v8 16/26] PM / devfreq: rockchip-dfi: Add perf support Date: Wed, 18 Oct 2023 22:03:04 +0200 Message-ID: <27832786.gRfpFWEtPU@diego> In-Reply-To: <20231018061714.3553817-17-s.hauer@pengutronix.de> References: <20231018061714.3553817-1-s.hauer@pengutronix.de> <20231018061714.3553817-17-s.hauer@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SPF_HELO_TEMPERROR 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 13:03:20 -0700 (PDT) Am Mittwoch, 18. Oktober 2023, 08:17:04 CEST schrieb Sascha Hauer: > The DFI is a unit which is suitable for measuring DDR utilization, but > so far it could only be used as an event driver for the DDR frequency > scaling driver. This adds perf support to the DFI driver. > > Usage with the 'perf' tool can look like: > > perf stat -a -e rockchip_ddr/cycles/,\ > rockchip_ddr/read-bytes/,\ > rockchip_ddr/write-bytes/,\ > rockchip_ddr/bytes/ sleep 1 > > Performance counter stats for 'system wide': > > 1582524826 rockchip_ddr/cycles/ > 1802.25 MB rockchip_ddr/read-bytes/ > 1793.72 MB rockchip_ddr/write-bytes/ > 3595.90 MB rockchip_ddr/bytes/ > > 1.014369709 seconds time elapsed > > perf support has been tested on a RK3568 and a RK3399, the latter with > dual channel DDR. > > Reviewed-by: Sebastian Reichel > Acked-by: Chanwoo Choi > Signed-off-by: Sascha Hauer Acked-by: Heiko Stuebner