Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4480692pxb; Thu, 14 Oct 2021 06:07:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzx6Mf17AxY6fnlCmUcYZ6HEK5BtbJbeGQvDaKxdGznGOQjcrv+RYjIsxK8ntgSaO6kMaOc X-Received: by 2002:a50:fe03:: with SMTP id f3mr8463325edt.136.1634216853803; Thu, 14 Oct 2021 06:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634216853; cv=none; d=google.com; s=arc-20160816; b=PNuZGlOegq0ZvSnuWMsvgsmuzn+W2Y0kqtH9ceRZDsl3+Xzn294revyRWP/ZsQVR4v WTFW37hqyhai/+4FnLg4CL4Ve9X5AmUxTDiCEMx50d+K9UXhZ6sb3dVs0FLzNqCeB3gV ZoJQizWdP4LPVjPLDTzMenyVTGqbCPO89XoVk384QDDLbnC/SPVhIc2v5xwwEGo6NGMU F2LNwUlLON+OOjXe5MXkEWVH9K5ivcPJerETcxglnKFhGgswMgFWhfoEm38U7KA3+QYJ unSuE8T4rwxNkhi3I1GOi8rymU6LfVs2nz0iLj36GB9eiuRQv/7FcghodG7mWfaJLF2T A48g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=+NxxqdHM17/ew6G+loQ/MPFcoEUZDURIWtFlgG1xo2M=; b=pqGE6S3cZApvjr5gFjE9A2t8XTmq20AX5atpqv6jl1bpWgyf3UBb3WFUFGOsYNdMJ0 p5ZVSv4jJ91UjrzVTk6jvZlH4qKKoPYL0dG2OlztLxTWPW+PPUGVzid/99v5pVcFJQfF /AlmvqBvGI/WMR+rBvKQIVrubMaOiFVgPzdiDgomEAUSmL0v6LN7lwYIoXzLQVW2b+H+ kdptmoyu9/S6L9ZdriDHS1O1XFecvCHlyp63eN4MNZQ5zOAh820cytNiJm7m7BikBck4 FXEHeECdkwANp2Ni3WqmkbljnayHK73kHFn8x8OZkJ9kV3P7arol0LWdsl4dT/X6zvFb oahA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si4952596ede.422.2021.10.14.06.07.06; Thu, 14 Oct 2021 06:07:33 -0700 (PDT) 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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=marcan.st Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbhJNLqG (ORCPT + 99 others); Thu, 14 Oct 2021 07:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhJNLqF (ORCPT ); Thu, 14 Oct 2021 07:46:05 -0400 Received: from mail.marcansoft.com (marcansoft.com [IPv6:2a01:298:fe:f::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1AD0C061570; Thu, 14 Oct 2021 04:44:00 -0700 (PDT) Received: from [127.0.0.1] (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) (Authenticated sender: marcan@marcan.st) by mail.marcansoft.com (Postfix) with ESMTPSA id 1D7CD3FA67; Thu, 14 Oct 2021 11:43:52 +0000 (UTC) To: Ulf Hansson Cc: Viresh Kumar , Sibi Sankar , Saravana Kannan , Linux ARM , Alyssa Rosenzweig , Sven Peter , Marc Zyngier , Mark Kettenis , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Viresh Kumar , Nishanth Menon , Catalin Marinas , "Rafael J. Wysocki" , Kevin Hilman , linux-clk , DTML , Linux PM , Linux Kernel Mailing List References: <20211011165707.138157-1-marcan@marcan.st> <20211011165707.138157-5-marcan@marcan.st> <20211012032144.2ltlpat7orrsyr6k@vireshk-i7> <20211012055143.xmkbvhbnolspgjin@vireshk-i7> From: Hector Martin Subject: Re: [RFC PATCH 4/9] opp: core: Don't warn if required OPP device does not exist Message-ID: Date: Thu, 14 Oct 2021 20:43:50 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: es-ES Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/10/2021 18.55, Ulf Hansson wrote: > Yes, this sounds like you should move away from modeling the memory > part as a parent genpd for the CPUs' genpd. > > As Viresh pointed out, a devfreq driver seems like a better way to do > this. As a matter of fact, there are already devfreq drivers that do > this, unless I am mistaken. > > It looks like devfreq providers are listening to opp/cpufreq > notifiers, as to get an indication of when it could make sense to > change a performance state. > > In some cases the devfreq provider is also modeled as an interconnect > provider, allowing consumers to specify memory bandwidth constraints, > which may trigger a new performance state to be set for the memory > controller. > > In the tegra case, the memory controller is modelled as an > interconnect provider and the devfreq node is modelled as an > interconnect-consumer of the memory controller. Perhaps this can work > for apple SoCs too? I was poking around and noticed the OPP core can already integrate with interconnect requirements, so perhaps the memory controller can be an interconnect provider, and the CPU nodes can directly reference it as a consumer? This seems like a more accurate model of what the hardware does, and I think I saw some devices doing this already. (only problem is I have no idea of the actual bandwidth numbers involved here... I'll have to run some benchmarks to make sure this isn't just completely dummy data) > > That said, perhaps as an option to move forward, we can try to get the > cpufreq pieces solved first. Then as a step on top, add the > performance scaling for the memory controller? Sure; that's a pretty much independent part of this patchset, though I'm thinking I might as well try some things out for v2 anyway; if it looks like it'll take longer we can split it out and do just the cpufreq side. -- Hector Martin (marcan@marcan.st) Public Key: https://mrcn.st/pub