Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6406323pxb; Wed, 17 Feb 2021 03:49:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/YT7UV/CRgPOhIxrPkdwBQ4mnphl9MMrDczljZVMt3tqN7PAauvont02qcRF60xrf/k0K X-Received: by 2002:a17:907:20e3:: with SMTP id rh3mr9146122ejb.510.1613562549754; Wed, 17 Feb 2021 03:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613562549; cv=none; d=google.com; s=arc-20160816; b=COmBbSyDjudcIvofU4aPFWADDeC6RsmroAmCVZxQLRClhw47y3KfJJbyHN8g76TQWv 0yokYyKdzYkXfBfPG/Ueqg7vGCVpZEdlZe80poIxxyglQ7mlvx5fjUyQMqEtDS73U5IF Iqy/7Cx8Q9JAQUQv5I5cpnqswvjHV6b5CHxJNsNizXe+N9KRtVYF0WPZTurm5kV30I9v +Ja3ohVpDOb37SrKDDVmwYrdgzs190QF0QboNhzOt+MEQ2Glc33E0bmH49C+xMcgXVCE xm8LRkm9WvSPYRhZE8F936Se+/FxGU2Ft2h85Mm70lBXoHFC/k+Y64N0tnqVMSMxcYQb 2kVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=11pGVD0nzA2DAiJ7cWPXp9I44T8zR661lI4xstwokb8=; b=gfFR1u+oNy2De9JgVJDiY3szJtxihNz85WQdRB0GIlXcFeY13ol559bv+8TVx0qCq0 69oU9PsBmkwAZ31b80rgpT3rkV7ERKmKF+rTl1YoEk+AV5J9dBzB4lxSeQ/ZNbls2Qhb 5/USUX0lgIeesqAC0QoBzdYPLxw1GINNKS7s1uGE5JdF7uLwU7kP4B7xRxYvzyVfpEEB Rzkw+2520Yos/Mu7R2907VRziIQnwqRvJbKzYGs7ntjlLIwyvb3DWENaQVLz8dZVSrWX sbIdLUZ2xsq8fT7OYLXegSzbwJ+TbbXlun1XO4NGzQGvTAmYHbODz2Hb9QZm0HTDuGma viBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nN3POMtq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1105879edp.516.2021.02.17.03.48.46; Wed, 17 Feb 2021 03:49:09 -0800 (PST) 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=@linaro.org header.s=google header.b=nN3POMtq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231702AbhBQLqT (ORCPT + 99 others); Wed, 17 Feb 2021 06:46:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbhBQLnc (ORCPT ); Wed, 17 Feb 2021 06:43:32 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1416EC061793 for ; Wed, 17 Feb 2021 03:40:31 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id z6so8252330pfq.0 for ; Wed, 17 Feb 2021 03:40:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=11pGVD0nzA2DAiJ7cWPXp9I44T8zR661lI4xstwokb8=; b=nN3POMtqLZQF8/79uB0ZdenvqJkcov6oKL3+Yaukuqsj3U0pi+rmZsW6D/unqNXCP0 4Xdu9O8wIAQpxqis6OuGqhr9RyyW/HWKYqZvwuPiAvJH+AHoGjRTDzciOgrTwWOkCoUF XT+TnNXJQBqDJCNrAYWI7L4mVB0cgLerE8aevwJe0wxiKZjvQsNBpi12uHi1aFyY+LEN 9HAfWZMhSvePdMxjTbgmHXF0qK740ZMRl8hnxQotc2GLAzMrDYRs03JAFseq1X4pOtbd lNCp3VQMft6/UqDuzuWT4qnPLMsSrIfq3lbn5vOqg/MtC5jv83XFjcuEW3ygFDMyvUoR IK9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=11pGVD0nzA2DAiJ7cWPXp9I44T8zR661lI4xstwokb8=; b=pasqQ/7PhGjp0KrXIeEf5YozD0lvwNwofRDGnTvzWmA8X8cifznped7aUrmmBvhU3q vZ1e3GNb7rYqheLtfwMSJCz70//ryDFpLgWzwz9njs5jtg+BOLvT1bl9PuLUC2elo9rV h7nrUOOQ3jg6RQx+wbxMC+m7rmXhYCVLJ1TmF20tIh2rmVjNc+3i1AR1gkoENSMFO5mj g27Z3ItXLwzSVSApI+Nv906kliI0jZc33CTNbNxSsKORx52aJsW5zpmhXCLpcTv/fmlU ZibP8UEAzSLqRu5mAFkdAqqyox+SHrPhzcn/dp4pTWPEljSAVKlIyugRWlHMs93fWVCu Je1g== X-Gm-Message-State: AOAM5317ygmE9XLtl5dh16aTFlj6GaYWMPrc77Rcnvj6zAGaGn63jxb7 HUA1EJ5uM2hcnsxle/sbcyU2+g== X-Received: by 2002:a62:6585:0:b029:1b9:d8d9:1af2 with SMTP id z127-20020a6265850000b02901b9d8d91af2mr23638713pfb.17.1613562030391; Wed, 17 Feb 2021 03:40:30 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id h124sm2331354pfe.216.2021.02.17.03.40.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Feb 2021 03:40:29 -0800 (PST) Date: Wed, 17 Feb 2021 17:10:27 +0530 From: Viresh Kumar To: Ionela Voinescu Cc: Rafael Wysocki , Catalin Marinas , Will Deacon , Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Sudeep Holla , Greg Kroah-Hartman Subject: Re: [PATCH V3 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback Message-ID: <20210217114027.ashqh67hrfk4hwib@vireshk-i7> References: <20210203114521.GA6380@arm.com> <20210205091424.3od3tme3f7mh7ebp@vireshk-i7> <20210217002422.GA17422@arm.com> <20210217042558.o4anjdkayzgqny55@vireshk-i7> <20210217113011.GA22176@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210217113011.GA22176@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17-02-21, 11:30, Ionela Voinescu wrote: > The problem is not topology_scale_freq_invariant() but whether a scale > factor is set for some CPUs. > > Scenario (test system above): > - "AMUs" are only supported for [1-2], > - cpufreq_supports_freq_invariance() -> false > > What should happen: > - topology_scale_freq_invariant() -> false (passed) > - all CPUs should have their freq_scale unmodified (1024) - (failed) > because only 2 out of 6 CPUs have a method of setting a scale factor > > What does happen: > - arch_set_freq_tick() -> topology_set_freq_tick() will set a scale > factor for [1-2] based on AMUs. This should not happen. We will end > up with invariant signals for bigs and signals that are not freq > invariant for littles. Another case. cpufreq is included as a module and AMU is implemented partially. - first time cpufreq driver is inserted, we set up everything and freq_scale gets updated on ticks. - remove cpufreq driver, we are back in same situation. We can't control it that way.. Or we add another call layer in middle before the tick-handler gets called for AMU, which will check if we are fully invariant or not ? -- viresh