Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2890884rdb; Tue, 12 Sep 2023 15:54:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1i0E0VvfcB9/rh1uohOsYmHoVFiGYEr9XmPQ+1A4XbSTcixhlM4rAb59VX0pYgNMK6eyJ X-Received: by 2002:a17:902:db09:b0:1c3:6163:210a with SMTP id m9-20020a170902db0900b001c36163210amr1107130plx.60.1694559279407; Tue, 12 Sep 2023 15:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694559279; cv=none; d=google.com; s=arc-20160816; b=sw13GSGnNYxRkLM8bcNqP/j+EylN4kxWkP8FkWUG4oTuaLZW5bsq/zDucPvItEZBwM vQ4BCHYdSsBxPRns0n93cBym+3iP2MHLRa3lyfxNtjrN3XJbCqYJTv15ssByWlfq0nXh 0HzOA7uiamIZ3INul/QfvX6R9BhwQ2euMXxlHFAAevZPfZE7oOzOLUmmIk4cYBbiqG9p LC24h8YN+/VyoDieLD9xWlIdAmKyTHB9s3cwFA0b503waAVzn2BcedP1xtRxlnHqGB+h s7Hegs7xHj2urISzNfwJUILUE6HoQhaI8lC7SrhAJ/p45IKRLJTJRE3QrAjGciVtgWsX Rvsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=9qFhBwApOtxbCRkss+cXTdVSRxiqaNw6Cm3OsXpblk0=; fh=8FvlrK8j5K7E2UwZyqzz7Xub1gYHoU+kYGmoqU555W4=; b=OiseCe3yqQyfDn3KFfn25n7FFeyn7kNjBgXIoSMXnr6kSOfSnBpfa57H3TPV7SuHIQ g/fVEAbryZib9COX/hbRJODJCK5d5UzXimPHvLS2qxeqrVqBfwvdhgTOS6ZoEt2Ac+QF SJPBilJg9xgfo4OYrjCMt5hTz3+dmR0Yesnq0s2AslmVFUWndwFYuNGH5n5mNx5HnY+3 XL0hAzbQJ3MkgfkWci5sM0VBSXO7sOvMrijSb2khBetJlSMMeEOyyZisHm/WXg6V1Rp4 EDYC/ROOjFxUv4udN3BjjD5Z3lo2/r+CdzLCWMpXFuohGbQsSaUTFrcDR+UsijDvwuHJ wj/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=NNkhvJJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id y2-20020a170902cac200b001b9da8b4eb8si8601568pld.373.2023.09.12.15.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 15:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=NNkhvJJS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3069581B17DC; Tue, 12 Sep 2023 15:54:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237815AbjILWy3 (ORCPT + 99 others); Tue, 12 Sep 2023 18:54:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbjILWy3 (ORCPT ); Tue, 12 Sep 2023 18:54:29 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB88C1; Tue, 12 Sep 2023 15:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1694559263; bh=9qFhBwApOtxbCRkss+cXTdVSRxiqaNw6Cm3OsXpblk0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NNkhvJJSuTAjyxdHn9KL8t+JxECMLmlaD2DyhL7HZu/5W/LGNlBPB8kYup011jINm x0z1ik7md75tNC7W51XDMILuvot3hiewacJvknMqa4Kb3ws4ihsRiy5FWi/6TpnaeO IKW/iy47r3GWyUzBomcanUO0KDpA14BHCvGCNEVnwAgZMcumbJmTyztECe9ufcV6gd mvD/UzUNzMjSvoZ5nUyRT5T0JqGLIClE/OOzb5pEgOgglWMK1FWT5ZdavqwkXiLJrv RwrQJAKcsmpfibrAOaxB7EPC4oavOVn9CVfCu3xiFxgz4hCwgjRMdR5zpWiWxm5pRT go2se/utZvTYw== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Rlf672wVTz4xQj; Wed, 13 Sep 2023 08:54:23 +1000 (AEST) From: Michael Ellerman To: Aboorva Devarajan , aboorvad@linux.vnet.ibm.com, npiggin@gmail.com, rmclure@linux.ibm.com, arnd@arndb.de, joel@jms.id.au, shuah@kernel.org, linux-kselftest@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, pratik.r.sampat@gmail.com Cc: sshegde@linux.vnet.ibm.com, srikar@linux.vnet.ibm.com Subject: Re: [RFC v3 1/2] powerpc/cpuidle: cpuidle wakeup latency based on IPI and timer events In-Reply-To: <20230911053620.87973-2-aboorvad@linux.vnet.ibm.com> References: <20230911053620.87973-1-aboorvad@linux.vnet.ibm.com> <20230911053620.87973-2-aboorvad@linux.vnet.ibm.com> Date: Wed, 13 Sep 2023 08:54:15 +1000 Message-ID: <87a5trvw88.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain 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 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 15:54:31 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Aboorva Devarajan writes: > From: Pratik R. Sampat > > Introduce a mechanism to fire directed IPIs from a source CPU to a > specified target CPU and measure the time incurred on waking up the > target CPU in response. > > Also, introduce a mechanism to queue a hrtimer on a specified CPU and > subsequently measure the time taken to wakeup the CPU. > > Define a simple debugfs interface that allows for adjusting the > settings to trigger IPI and timer events on a designated CPU, and to > observe the resulting cpuidle wakeup latencies. > > Reviewed-by: Srikar Dronamraju > Signed-off-by: Pratik R. Sampat > Signed-off-by: Aboorva Devarajan > --- > arch/powerpc/Kconfig.debug | 10 ++ > arch/powerpc/kernel/Makefile | 1 + > arch/powerpc/kernel/test_cpuidle_latency.c | 154 +++++++++++++++++++++ I don't see anything here that's powerpc specific? Which makes me wonder 1) could this be done with some existing generic mechanism?, and 2) if not can this test code be made generic. At the very least this should be Cc'ed to the cpuidle lists & maintainers given it's a test for cpuidle latency :) cheers