Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1505509ybc; Sat, 23 Nov 2019 23:56:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwqxsnfa1rduVr22R6qvXlOPEe/OP9BRpqq/D6fem7w14p5hBH565q/LxlyVzBC1vPaHRls X-Received: by 2002:aa7:d60e:: with SMTP id c14mr11369530edr.174.1574582217948; Sat, 23 Nov 2019 23:56:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574582217; cv=none; d=google.com; s=arc-20160816; b=de+ijuBWmDt1O1TRmHSYF4vu2gkeC8H75LqIJERwEJh9BKvQuE+HVm3MOmY7cAGTIB HxFuitXItBLfDJS8IF5IxXBlfIeVuZRYnaN8WR3lTKEDGD6ngQgcGtRDWSKlzJHDsnja JTKjwQkiEDQFaUQ7EVY/xMn1bfmU2NyR1Vo+siapkbppe97Pk/wO5k+sSprTLflpMLFN +RWcv1u3hekQH0qZszLeC1SaGMT2IaWo7E9vAgAVkR/I1W69xnBEo1hAr/oPr981cYCb ZT+dJBs4Y9CLiad3Jcp3DdIxoogbcmZ48n9DJmgxXkRelNTKb/pin3h+HuaLvdqZs7Wi Yxzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=h0LBhE0iQuKPr/tUZesX5007Cm2XS3vVFYqAWfewTQo=; b=kjwS7ExEvTp8vmx1n3z5sueVgkTHUPyM/h/NQCJ6NZgfvPFNpBgQBqHHYhHtKTnC9E 8/OIUI6e/0L5Cnrjxlpiwxg90BcB29OdsFCWHheEoXGDP7dATqrZb+HD6uh2gUwZ5kwI ZZb2sPt2sJgLuV6WHcrwwZ9ewQuypdAwQB59jwf5N0EChQVwrHp5/+hZbr7pLbCu32nn Vp7TLOqPwj1iNQic2ei85vRndLeNzEefOR9M7OqM2320QBBRbvdk4jfAEvsrruqFFyo+ ZPWT0IMMqGXokd+aaW0AH1pOliWJG6P95DuHG50d+kgpLut0yywpJ/IYU5sI5cuuNOX+ PoPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=Yx8+tMKr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id jp18si2061767ejb.318.2019.11.23.23.56.09; Sat, 23 Nov 2019 23:56:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=Yx8+tMKr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726975AbfKXHuK (ORCPT + 99 others); Sun, 24 Nov 2019 02:50:10 -0500 Received: from cmta16.telus.net ([209.171.16.89]:48113 "EHLO cmta16.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbfKXHuK (ORCPT ); Sun, 24 Nov 2019 02:50:10 -0500 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id YmedirLl6FXoiYmeei80Cx; Sun, 24 Nov 2019 00:50:07 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1574581807; bh=h0LBhE0iQuKPr/tUZesX5007Cm2XS3vVFYqAWfewTQo=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=Yx8+tMKrUUSfV0lMcDOWqcpp3isBKLAj5EGXseY0mMyWQB3zgzZDRHnVeBQygRcH6 QsRvtbvsgQTNJNK/Y8s2NOvF6vt9OOe5NutbM5tI148CaJBqJvw+fILwgw6dP+Ybf0 /Vule9beZyfSzSpYIiefghVvjk3QQ0tHYqGgQ5pBDsdOItDOwF9ZB87wcn4iNpcrOn PDGC8mWNDnuTTmPfiFK6OUAP6whv6LBf9LJJMT9z5C5TFnVuMaQuxC0GftqnmhfyiG IaRscugbHLkQnGo1+DVt4xHv2U37oEdDogQfGIiNmw9X6HDFrJ0TKDgUG1lqUdjEJM Ayjp9zDncJInQ== X-Telus-Authed: none X-Authority-Analysis: v=2.3 cv=HoEI5HbS c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=JfrnYn6hAAAA:8 a=dyyLcSohDm2E6IqdOvAA:9 a=CjuIK1q_8ugA:10 a=1CNFftbPRP8L7MoqJWF3:22 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 From: "Doug Smythies" To: "'Giovanni Gherdovich'" , "'Srinivas Pandruvada'" , "'Thomas Gleixner'" , "'Ingo Molnar'" , "'Peter Zijlstra'" , "'Borislav Petkov'" , "'Len Brown'" , "'Rafael J . Wysocki'" Cc: , , , "'Mel Gorman'" , "'Matt Fleming'" , "'Viresh Kumar'" , "'Juri Lelli'" , "'Paul Turner'" , "'Vincent Guittot'" , "'Quentin Perret'" , "'Dietmar Eggemann'" References: <20191113124654.18122-1-ggherdovich@suse.cz> <20191113124654.18122-2-ggherdovich@suse.cz> In-Reply-To: <20191113124654.18122-2-ggherdovich@suse.cz> Subject: RE: [PATCH v4 1/6] x86,sched: Add support for frequency invariance Date: Sat, 23 Nov 2019 23:49:57 -0800 Message-ID: <000001d5a29b$c944fd70$5bcef850$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdWaH6kpvI2RPz8IRtKQLXZcAyoYugIIu9uQ Content-Language: en-ca X-CMAE-Envelope: MS4wfN/Lu7m5KE5yhuHdppXc/me+VKZjdiQs2pJ7JaSn+Kt5AJUl0qFJRkFcdIu6vYdqbQ7gCE6Q5G7in/rSUSLVh7EI+SuWH4RBz2reEwFFcUAz3Op/azXq GokWLqVZGsIHriQBqsLsmxx74TD1rMTkNC1DYCnMk0KDO4wdS1Cfirhufd/hNKQrQubwAcsgAC5fQ/uAg4aO3wy4QgX5c01GY+j48qYjhowRzmJ8fmuL8y5q WOjQQrZvmZklo7wZCYT4gmsc4EF7A8Op7DhepXsTEDgPRSYQRQUSO+/kRv7juyihOnL9UDmqc2BZjlFmH0QK3VTJbqpiciaqNvaQFoM+uScmZgSHysHNV1l8 C8B76rh/1m0+FPaQm90owXmtliB9Y1rsjSDoRHor9FS0cL2PVOy1mChobVthcO6/2H83IFBMi5wC1CyMflZkQlHcu3XROGwDpDrOJGf6GkqgsynphM92FADY /M4c4h9uSmPOfxTjsomCeXkaB1vEGTxvvR5RuqX5MOwg/dhXVrXiazdBb2amwa3y9b5/KJ/dB9BQx+jtcSwTWwW/LwlAItVSPtfMkylwrIL1BJtX+CCXzVwB 1tn9Au0I9FHbyGHQmg8DCYmFvCZPgT9U9cn2j5FxfcAkcO9C2lgvdEddANH0HyqEySJYFu/WJ6I5ud2LspKAjaYC/3G7/XAVFryauaQ7je2rRxgUEoWZx36+ rIJ+xojuqVoO9wHQirjhrAqbGgf1kutjo39Jdj+pG8HIYDHJMo30OA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, The address list here is likely incorrect, and this e-mail is really about a kernel 5.4 bisected regression. It had been since mid September, and kernel 5.3-rc8 since I had tried this, so I wanted to try it again. Call it due diligence. I focused on my own version of the "gitsource" test. Kernel 5.4-rc8 (as a baseline reference). My results were extremely surprising. As it turns out, at least on my test computer, both the acpi-cpufreq and intel_cpufreq CPU frequency scaling drivers using the schedutil governor are broken. For the tests that I ran, there is negligible difference between them and the performance governor. So, one might argue that they are not broken, but rather working incredibly well, which if true then this patch is no longer needed. I bisected the kernel and got: first bad commit: [04cbfba6208592999d7bfe6609ec01dc3fde73f5] Merge tag 'dmaengine-5.4-rc1' of git://git.infradead.org/users/vkoul/slave-dma Which did not make any sense at all. I don't even know how this is being pulled into my kernel compile. O.K., I often (usually) make a mistake during bisection, so I did it again, and got the same result. Relevant excerpt from the commit: diff --cc drivers/dma/Kconfig index 413efef,03fa0c5..7c511e3 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@@ -294,8 -294,8 +294,8 @@@ config INTEL_IOATDM If unsure, say N. config INTEL_IOP_ADMA - tristate "Intel IOP ADMA support" - depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX + tristate "Intel IOP32x ADMA support" - depends on ARCH_IOP32X ++ depends on ARCH_IOP32X || COMPILE_TEST select DMA_ENGINE select ASYNC_TX_ENABLE_CHANNEL_SWITCH help If I revert the above, manually, then everything behaves as expected (minimally tested only, so far). Are others seeing the schedutil governors not working as expected with any of kernels 5.4-rc1 - 5.4-rc8? I do have a pretty graph of my method of doing the "gitsource" test, but am not ready to post it yet. Here is some gitsource test data, 6 runs of "make test", the first run is discarded: "gg 6" means this 6 patch set. Kernel 5.4-rc8 + revert, intel_cpufreq/schedutil: 3899 seconds Kernel 5.4-rc8 + gg 6 + revert, intel_cpufreq/schedutil: 2740.7 seconds Ratio: 0.70 (as expected) Kernel 5.4-rc8, intel_cpufreq/schedutil: 2334.7 seconds (faster than expected) Kernel 5.4-rc8 + gg 6 patch set, intel_cpufreq/schedutil: 2275.0 seconds (faster than expected) Ratio: 0.97 (not as expected) Kernel 5.4-rc8, intel_cpufreq/performance: 2215.3 seconds Kernel 5.4-rc8, intel_cpufreq/ondemand: 3286.3 seconds Re-stated from previous e-mail: Kernel 5.3-rc8, intel_cpufreq/schedutil: ratio: 0.69 (I don't have the original times) ... Doug