Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3093868pxy; Sun, 25 Apr 2021 13:48:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoaOdkjt+soMqKgTFzFtGTYwmeOWaJzgby7YwSxXRM6CAX2HcPQ2T8o5WUIJw21pX08fzT X-Received: by 2002:a63:1316:: with SMTP id i22mr13537200pgl.419.1619383687652; Sun, 25 Apr 2021 13:48:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619383687; cv=none; d=google.com; s=arc-20160816; b=SWmnimJgJsVWX6GloRmegsMuOwqE8FOu8hGT/ERlu2b/0LEmsYJ9nN/WxOgME2vnjc hAFRY6ndnWWWihYDFhlYk/Do4rQUius8vuq9umj+UbteaFqCV9mSgb60PfE6t3JR6813 iYRO7h5l89eQU7csN/VSbFk5qLzsZurjEZj+y349QwXhdeltU8ijWJqjsWNapv+em/H7 RwO9WjVFBo0bs57551oybh+Nb1Zy4Ye47X+qlkc1bycJUPCXkxW20Wy0nWQU3yyc3DtP o6FHkzJFu0MJlI7L27k/NUNabEsG6DaGZGNES79ZTT7F0j2DitQwWHWNE/OgWjq3JTJ3 lFNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mf3PfXpISSLDZMwm9YZTjHVTAuZA/fvHBTlgaYQIzcI=; b=y58/7mI9UnjnB6w2icq1N0R5nJSchxek/r7S0hLRELZbeln0vdMvyscUSfu+uuuv+t daVCOrYMkVfNat4u1IgR07MVSnT3+t9waAMpFJ1ePhdILfvvQXrtZXHdw8JcLZMLRh+d 8w5rzGhYaZBdyyZzx+LvNyJH3piQ18RtlZVlGoYQltwB9niGvoiNq/XmZG8QTrXRWuJb cVNKlk40FOLVbs89yKi8e7Q6l6sHRaND5RbpLKSzuxycFhFaKDeUk2XeUGvgs5KFPTtd fLbxUgGE9aDW0aA+R4sYVlzNXUab9J9aGx7GAAMFwk+dtyffaQxXJKfPiTDLOGI4r+X3 9vMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=X5AVotbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fs12si14488427pjb.17.2021.04.25.13.47.55; Sun, 25 Apr 2021 13:48:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@telus.net header.s=google header.b=X5AVotbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231197AbhDYUsC (ORCPT + 99 others); Sun, 25 Apr 2021 16:48:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230494AbhDYUsB (ORCPT ); Sun, 25 Apr 2021 16:48:01 -0400 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 869EEC061574 for ; Sun, 25 Apr 2021 13:47:21 -0700 (PDT) Received: by mail-io1-xd29.google.com with SMTP id v123so2909094ioe.10 for ; Sun, 25 Apr 2021 13:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mf3PfXpISSLDZMwm9YZTjHVTAuZA/fvHBTlgaYQIzcI=; b=X5AVotbEK6atQhNjrhtrKs3bygci5Hs9SdVKnTVbPJDpTIwFNEExX/mnZzzaIdYN56 We87O01mb+dinYzuDIkE/XV7X1vEDC4s4HdXwijqqdwtS7HAUrVy61RfAHMqoCuGCyo0 iXVBDvNwY6dcWBtMwEGuEjADsc3EnDeqpmfm5IkABz+d0gjFduOp8i+EaHSzTxCvrlwt ooTjGMtdNMvWmGYsWaV6hnPZ/DCQkJBFckbUYsB9c5m9gRat1RJ1MjNwU2LYK+qcjiuv jfeJiTcUhCgFaBjwR7/Yy/+1OUwpC3KXdnCJfaYrniNABJ5m94F47gR+DlhbLbzH8XNu xCGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mf3PfXpISSLDZMwm9YZTjHVTAuZA/fvHBTlgaYQIzcI=; b=VVvd9Xdz5QWFqdrJ9ej1qShhWka4ee0b0aEowKkaL6i1V0JhJmM9EUsKwZNjZJYNdZ 0NUpLrDsabagyJfG5EIM24AXf2GUvmMMvjzV01zkdfOYswY6MUhyMqxTUYHyIR3+1rIV yk9pT/ySBoYFE0MwcfrpOpouhqsGDK0zfrSlxEy0pJLeylwcHXkifgVeGRWgsDp6l+cE LZyTNGbimYWm0bYEdJKdN7Rsn1SkrxL0iztI06QDryxGQrA04Sgij+PmRo38EONHLCmU /r/dh7tEMB/7G6oPWrRbu5USXXxneOxd7cl9bC1ci7jLcscs/nQgL44nSTtzHAMUdlqh jJyA== X-Gm-Message-State: AOAM532I44lQfjAg7zWmTwGgKpEOanyqj26D0jLQNuoHTqgYnKS6Sb6m GGfQ6qOgUMh5400RjidYTw9p09Z5/kPcbTvdpt2cGA== X-Received: by 2002:a05:6638:2044:: with SMTP id t4mr13460135jaj.12.1619383640861; Sun, 25 Apr 2021 13:47:20 -0700 (PDT) MIME-Version: 1.0 References: <20210412074309.38484-1-psampat@linux.ibm.com> <20210412074309.38484-2-psampat@linux.ibm.com> In-Reply-To: <20210412074309.38484-2-psampat@linux.ibm.com> From: Doug Smythies Date: Sun, 25 Apr 2021 13:47:10 -0700 Message-ID: Subject: Re: [RFC v4 1/2] cpuidle: Extract IPI based and timer based wakeup latency from idle states To: Pratik Rajesh Sampat Cc: rjw@rjwysocki.net, Daniel Lezcano , shuah@kernel.org, ego@linux.vnet.ibm.com, svaidy@linux.ibm.com, Linux PM list , Linux Kernel Mailing List , linux-kselftest@vger.kernel.org, pratik.r.sampat@gmail.com, dsmythies Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pratik, On Mon, Apr 12, 2021 at 12:43 AM Pratik Rajesh Sampat wrote: > > Introduce a mechanism to fire directed IPIs from a specified source CPU > to a specified target CPU and measure the difference in time incurred on > wakeup. > > Also, introduce a mechanism to queue a HR timer on a specified CPU and > subsequently measure the time taken to wakeup the CPU. > > Finally define a simple debugfs interface to control the knobs to fire > the IPI and Timer events on specified CPU and view their incurred idle > wakeup latencies. > > Signed-off-by: Pratik Rajesh Sampat Reviewed-by: Doug Smythies