Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp198445rwd; Tue, 6 Jun 2023 21:25:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RzVwShiao7IFTfbl/Iq4rF8TK7NxFlK5XDNeqsaU4iOIPDrrMNHm4h90d0j0QC5jR+E0l X-Received: by 2002:a81:a006:0:b0:559:f861:9e0b with SMTP id x6-20020a81a006000000b00559f8619e0bmr5102900ywg.5.1686111899905; Tue, 06 Jun 2023 21:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686111899; cv=none; d=google.com; s=arc-20160816; b=lnujL0OU1yoyEONMlvlhWz6S4ytxkpfKaJ1tG7RDrCKHdT53VdB8gW1GBYgyMyBKJY HuZkpulyJNEtMXP6fIcqeNMkhriG4GUiY4oZmfIjMiJT4h2ok6jbbwTH9ekdvx/qaML8 P0qaN/2tAuZqe9t6nogyqNgGB5Mqx/V4pzsYx5NGZqWRwyfGcxWSObwKYEsNJNBPTydF PXiu7pflWlpC5+Blp+z2Z6Qa8jXEKgHMlxdU0gnn7+41JQUd8YxMxbTFkRlJP5nyOPSS WTP/pvv/+PZGP06F/ig4s6JbhbPKUyjSsLNWxdlt9KVBIxM5FOmOyyjsHLpqGfqdS8bX 3Cgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HdpSHMsTOSVCkXRFROKcP6ci/vyGxzV4L9Wlzxsgow0=; b=R5lkVNHgrostBxdTc25OPki4mBczSGUH4MRIFXNTh6dCHP0NqkaHFRgFKTkmU2gWFZ HJJZSwFWFVdCGC28L/g35QKZihU/de3lP1duQ6XSrq6n+43I0UltFY2MQlxPzgjTpJqm UdQWuBhn4gevXi4WS09GjQXy0jMX2RgjtVscTwGMp+cZnWRvhZqH8TMZWhsWIihTXNiU LpIJOH8GNBkfdP3Gp3SVORrcBAbPsR8LwVJkNB4pJhDAJny0E5AEflKN9rC3qb7X5XBm B1dnhzvrl/JjT2yvf+NK7RUtBCazJ8YTTnL0qxB5fhPqfiaIWdBDJDQtew3aeEYdhbHt E16Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Go5rRhNY; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090a138200b00250a6b87c76si491275pja.142.2023.06.06.21.24.47; Tue, 06 Jun 2023 21:24:59 -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=@linaro.org header.s=google header.b=Go5rRhNY; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240867AbjFGDqO (ORCPT + 99 others); Tue, 6 Jun 2023 23:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240852AbjFGDp5 (ORCPT ); Tue, 6 Jun 2023 23:45:57 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E641F1BE3 for ; Tue, 6 Jun 2023 20:45:42 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-651ffcc1d3dso4034103b3a.3 for ; Tue, 06 Jun 2023 20:45:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686109542; x=1688701542; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=HdpSHMsTOSVCkXRFROKcP6ci/vyGxzV4L9Wlzxsgow0=; b=Go5rRhNYT07xJCUsf4tMxKB6OP+B/ECVTPpMmaE0rs1IXaf1pY8RHX4Agu1IbC1Dlp lFjBzKmTFhgR6Ha7+lCO1aI6apgzv8BxEb0geTSRhvMYKQtUin4dfnKo5h/DpHREwOyv Y0o4YHpAiV22EQX7YNHmO9Biejq3kK1IfY/m1fFEgjOVaY9NtPwq4JtDTiIqAAyv7say cRNBDQDb8w6EE4JZr41n6EQU/qxQyRY+m6OGDk4HKHziYbXmvXEGB5rsa+OzdQJXpn4o t3im/yUD+lDy5I6vCYApsepqoI0rCNzvVIZzC9u5bxGIQ0pn1vrcOjaEOnSY5Rq0pp2l 4fOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686109542; x=1688701542; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=HdpSHMsTOSVCkXRFROKcP6ci/vyGxzV4L9Wlzxsgow0=; b=hflGt8uscmwd5sb5bY5g085eqNJgGq6OzUTrYvScpROTynPTPMSir7fzIovbJvDiBJ DAjKXKMqrRM9nr2bx/cEZLNVKDKcZMuwMSqcAEoEBm+05ujTx+uml0I8K7hoNE52wgj5 WTLTJbQb6jHM3OZpoEZzYKrp60eaqhUADARM2SaHu2OiIXvVL3Bn4ScBzwtV3tXCQBlE ahOWgnSF7t8ZfmWvS4fukMvzd2pPkJqsSF7ekGe46UBxEddLAUb527T5fNIELbeYAL2u 2T2cJYqIS6JK+hfhnY9nCg1KiZrbFZDa8c6zEjQTY54XPZIrkhgc/KQ4tBYnOG1VNzYR 08xw== X-Gm-Message-State: AC+VfDx7ud3jtAB4AhQf1tt3vThKLp7AOPvqF45sjV1to36/wQbinT41 z5TJcQdRHCeLpCvjfelSzZBZbg== X-Received: by 2002:a05:6a21:33a9:b0:110:9b0b:71a5 with SMTP id yy41-20020a056a2133a900b001109b0b71a5mr1389481pzb.23.1686109542388; Tue, 06 Jun 2023 20:45:42 -0700 (PDT) Received: from localhost ([122.172.87.195]) by smtp.gmail.com with ESMTPSA id c16-20020a170903235000b001b2404c7d53sm1486521plh.175.2023.06.06.20.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 20:45:41 -0700 (PDT) Date: Wed, 7 Jun 2023 09:15:40 +0530 From: Viresh Kumar To: Mark Brown Cc: "Rafael J. Wysocki" , Shuah Khan , linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/cpufreq: Don't enable generic lock debugging options Message-ID: <20230607034540.ldjugl3g6ryyyi5q@vireshk-i7> References: <20230605-kselftest-cpufreq-options-v1-1-d4621e0c7cbe@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230605-kselftest-cpufreq-options-v1-1-d4621e0c7cbe@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 On 06-06-23, 15:11, Mark Brown wrote: > Currently the the config fragment for cpufreq enables a lot of generic > lock debugging. While these options are useful when testing cpufreq > they aren't actually required to run the tests and are therefore out of > scope for the cpufreq fragement, they are more of a thing that it's good > to enable while doing testing than an actual requirement for cpufreq > testing specifically. Having these debugging options enabled, > especially the mutex and spinlock instrumentation, mean that any build > that includes the cpufreq fragment is both very much larger than a > standard defconfig (eg, I'm seeing 35% on x86_64) and also slower at > runtime. > > This is causing real problems for CI systems. In order to avoid > building large numbers of kernels they try to group kselftest fragments > together, frequently just grouping all the kselftest fragments into a > single block. The increased size is an issue for memory constrained > systems and is also problematic for systems with fixed storage > allocations for kernel images (eg, typical u-boot systems) where it > frequently causes the kernel to overflow the storage space allocated for > kernels. The reduced performance isn't too bad with real hardware but > can be disruptive on emulated platforms. > > In order to avoid these issues remove these generic instrumentation > options from the cpufreq fragment, bringing the cpufreq fragment into > line with other fragments which generally set requirements for testing > rather than nice to haves. Acked-by: Viresh Kumar > Signed-off-by: Mark Brown > --- > tools/testing/selftests/cpufreq/config | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/tools/testing/selftests/cpufreq/config b/tools/testing/selftests/cpufreq/config > index 75e900793e8a..ce5068f5a6a2 100644 > --- a/tools/testing/selftests/cpufreq/config > +++ b/tools/testing/selftests/cpufreq/config > @@ -5,11 +5,3 @@ CONFIG_CPU_FREQ_GOV_USERSPACE=y > CONFIG_CPU_FREQ_GOV_ONDEMAND=y > CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y > CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y > -CONFIG_DEBUG_RT_MUTEXES=y > -CONFIG_DEBUG_PLIST=y > -CONFIG_DEBUG_SPINLOCK=y > -CONFIG_DEBUG_MUTEXES=y > -CONFIG_DEBUG_LOCK_ALLOC=y > -CONFIG_PROVE_LOCKING=y > -CONFIG_LOCKDEP=y > -CONFIG_DEBUG_ATOMIC_SLEEP=y FWIW, I enabled these earlier as cpufreq core had a history of races that are normally not caught without these enabled. But I think we have come a long way from that and these can be removed now. -- viresh