Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2524458rwd; Fri, 9 Jun 2023 12:34:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DvfpObNP91SRQ0EZpBYSa6WvOQ7LrDFdsyO9DNVfj5qL4Y/MeLZ54wcXhqawCGyDx2igZ X-Received: by 2002:a17:902:ecc7:b0:1b1:4801:f516 with SMTP id a7-20020a170902ecc700b001b14801f516mr2403430plh.68.1686339264729; Fri, 09 Jun 2023 12:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686339264; cv=none; d=google.com; s=arc-20160816; b=QO1+cAlG/bHWKxwvWtoz/9pK2l3rBR1ICrUUB3tZonQljb48xv0p2Ctttf/dmJF0PI rkclFnwR9Pw8cmvjDDhMOnoptqg718D9brEkye3M1p6ff2AdpYFSVafrFvM/I3HIcUdc bfR2+epGDzoZvB46bBI7u/xYv8Az+vbtvxTr18FPMY5RgzKfV8v25ecCD+y/TTrUwRoN +KoTT9AZqU6aAxsOACMGZNYiNdKKasssB3Fg08xlMW2Ko0L/Eq0XbDkdqlOoDH0+rMFk 3TVoA7cm5UmGKfSaNRYhrzRJyKJSOe70WbdgYx7abhCBmfzGhXApYz06gVHltxCAmIOW C/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IAAvnQrwpO2uhBKRf2o3+v9wcqIBSyrOwUbsNA3kLcs=; b=LNP/q3soqCOL5TT0UucoOrBjzfgyLTq9G7vADNvhoXceVyVmtzyilx7OJxBCpP3y0y eY9X9S6IwfS8kWPRygCZa3z9ubBjSVO8KESCAmeYonABXFmn3EwPZ5Ce9s2qT0EUDFU4 wzOO7i0hhO1Dyr/1RgXEW2oasS8SCoPnydycntSUn2SYQwhVLKI8LvdaAD1b+3ET9i5m BXRnSfMBHHiK9BmBZ2jUciqCs0JtK5Q2HFNy+ft1CjT7A1UyMcOL/d9kxIgG8DMHNpMO JbY1qHhburkEa+0gPYZVGAIOKgnFTTyHjMsElpcRXk0RVMv7K5KH4MF7TFMAFc/WzWJq Wehw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=cQ7cheuw; 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 e7-20020a17090301c700b001b1cdef2654si3059373plh.645.2023.06.09.12.34.11; Fri, 09 Jun 2023 12:34:24 -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=google header.b=cQ7cheuw; 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 S231214AbjFISw2 (ORCPT + 99 others); Fri, 9 Jun 2023 14:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231699AbjFISwZ (ORCPT ); Fri, 9 Jun 2023 14:52:25 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9649F3A99 for ; Fri, 9 Jun 2023 11:52:24 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-77ad566f7fbso18103539f.1 for ; Fri, 09 Jun 2023 11:52:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1686336744; x=1688928744; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IAAvnQrwpO2uhBKRf2o3+v9wcqIBSyrOwUbsNA3kLcs=; b=cQ7cheuwuYxv3REKjdW8+HVI7nbwtLVhJaIdU55weF55CNRC115M4lcSna2mChpYoc Bn4BtcJZA1bRmnXcdvBfgI7lk1Uq5g2yRqK61G4RM9gbJnEHKcum0DRr/NoP96dySpvb n5cfpJ9xFLdtBi6dzy9cnrDznD3TtttAogVbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686336744; x=1688928744; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IAAvnQrwpO2uhBKRf2o3+v9wcqIBSyrOwUbsNA3kLcs=; b=Mk9O5aYmp9iGPOVeCHH49xnLlIqwzrjRfsP8hIc1J1m2tykH0eoR5ODZ5+2Bb67iaW eiWavQuVQbbbLIklkmoH8AQLxoUZch1EeC3ob1BTvIDBUvhyymLuWBwmbSpFfquNVTBT fpdJ2osATYHkQfUqlYYAEKNlfXC4BA7/Q5Ysj0gHvWrsB58Ye8fE4ZtSHkiuZWkRVYiL OpeuZDc3nQie2bOnaZFgY6FlBIjE42mue/e/v8mggN6HhRnHm0ByvjRmfAo8qBSVonmJ jMOGo0FNzAPvI8+gmPoaZW8v+yXdQL1tcVD4wkV63c0KZwD/L8XEN+xLDSQMVTak2efb 6daQ== X-Gm-Message-State: AC+VfDwFXEuvEhDWZZAg9GDrPsw3OCa51tsUx28Azgxgno+90xF/6Y19 TCPMlShJb0nbIrBYEOrTlQoPXw== X-Received: by 2002:a6b:b245:0:b0:77a:b7b7:acfc with SMTP id b66-20020a6bb245000000b0077ab7b7acfcmr1743173iof.1.1686336743928; Fri, 09 Jun 2023 11:52:23 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id h10-20020a0566380f8a00b0040f91082a4fsm1102435jal.75.2023.06.09.11.52.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jun 2023 11:52:23 -0700 (PDT) Message-ID: <703a435a-d448-360d-9344-8b8614a5cb5a@linuxfoundation.org> Date: Fri, 9 Jun 2023 12:52:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] selftests/cpufreq: Don't enable generic lock debugging options To: Viresh Kumar , Mark Brown Cc: "Rafael J. Wysocki" , Shuah Khan , linux-pm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20230605-kselftest-cpufreq-options-v1-1-d4621e0c7cbe@kernel.org> <20230607034540.ldjugl3g6ryyyi5q@vireshk-i7> Content-Language: en-US From: Shuah Khan In-Reply-To: <20230607034540.ldjugl3g6ryyyi5q@vireshk-i7> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 6/6/23 21:45, Viresh Kumar wrote: > 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. > Thank you both. Applied to linux-kselftest next for Linux 6.5-rc1 This gives us time to ensure the above mentioned races are no longer an issue. thanks, -- Shuah