Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2268244rdb; Mon, 5 Feb 2024 00:41:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJTFl2kGEvQlK3FJy2vhsRFd1XxmUR/sipEDrlC+AjELvfE+bUmJBpJ3G3KbpoKcoL63xL X-Received: by 2002:a05:6a20:dd9d:b0:19e:5517:c317 with SMTP id kw29-20020a056a20dd9d00b0019e5517c317mr4962643pzb.24.1707122478610; Mon, 05 Feb 2024 00:41:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707122478; cv=pass; d=google.com; s=arc-20160816; b=K33/KKc3DswNZkIbCOvX1MUD6zcs/16zGcPfHQeZq6ponl4CT2i2bh56eXJM8+sLS1 /edEH0HkBesFmvTxL4voNuI4fsrA1gSFkL5Bc3p8t1x1+WmxrnQ/Y/QTVPoncuLa/R1a 6jefUumMD2g5rQiPoBug5a8WMEJzfmKCTMkD9xdaSrUCqEHNUJgvviIbEzAy1txVgfXP fADUheHlf91vXk3pPRnILOrAGk16afpTosv+zRRM+XWsiGpFvcKUdCDqEV/Z2WTEoONb xx4jGT+UkyiuWVEMeJjjQWzUe6swCa1pb17FLcEq4Q5Gb0K12lLCJ+e4K+wjJqEBm1Uf XlYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TzUq0QU1iLhov+1WYKZ5iVgod62Dx1DjglJhN8m0PAE=; fh=Cvh5xITJBIjVkmdTNwVeIGtsDQZeHeu2LCwkWb77B5k=; b=xUk8ZqMp2nR1do4H01lDsD/UeaA2fvseHyMMvEtjcbhwm2YPGHYS1l5xBUWVcocw2N AocOa2zPCz56uS28Zhryu0/oF2xSoiE/95xUiLOpSqnSxegOIu+G0p9D1TZt0BXQ0eRZ 983zbxJq5BzIlRCYRV2BOn0BdRR0X1iUR+CIngEMeesIE08eG5QvqPMpDdmZZbGQJ3qh Ts6sy0TZ5vjcYz8esH5uYV72krqq+DohJOc4kt8T77XKCUu33FlVUv3fYpmoltELW4EU D7fG1pK1Z4zPeiRQ2hxdI/p4/MEWfFP7GANC21IfuTO8IA3tpWMcy5ddmO3DxbnKDUPI bjGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+cXlPZd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52216-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCW/FiEfroSJ5u8gNGLSQBAuGo/es+kOqc0vd3naopj7DfZwXxQqB1EWePoDxCi8fWQenNFgXja1RdtIgCcI5wTRbbRDq53GHBMvj+OD+g== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t22-20020a17090ae51600b00295bc158e90si4197396pjy.147.2024.02.05.00.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52216-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=T+cXlPZd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52216-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52216-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D69AB280FC2 for ; Mon, 5 Feb 2024 08:38:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1AD511CB6; Mon, 5 Feb 2024 08:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T+cXlPZd" Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 963531171A for ; Mon, 5 Feb 2024 08:38:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707122315; cv=none; b=aDkZp0krWljDIDYWfKKLIpfMLIq7+Qf7Io33ngywjqfa/ny8WlVEdf7zSuN1lA/+f9EtMSDbi69QfJm29Tl4oogGI3HMj5CDVBgyhMjrPbYSqJziqncOd+fousPsHpBsOByPcow/ARyLcXjdKy77FkMt2GvlDMd/IeUZIKG2jLQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707122315; c=relaxed/simple; bh=3LmgSibEXomUKPO63HkaRhVDpYnceZtyNFTYsQfKJns=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CC+W9ZJOICwkxl8sbEwx4yQWBIDP4fkhv75XL18+lfKmK84DMHBDwbs7D0YP2qN/V8NlMIOHtCT/v6ZZQ1yCffwKGFNNKS4yBYd7XRif7uikPNAY/hiS9vTKCakPX9aHiindg01lqIA1BIK+njhsjJHL05YCkh4GYFnqSyB9T0k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=T+cXlPZd; arc=none smtp.client-ip=209.85.214.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1d91397bd22so31174455ad.0 for ; Mon, 05 Feb 2024 00:38:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707122313; x=1707727113; darn=vger.kernel.org; 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=TzUq0QU1iLhov+1WYKZ5iVgod62Dx1DjglJhN8m0PAE=; b=T+cXlPZd367U7+rLzfZlkoCBnSkX3j5R/RrgiVeGJgG8C/w43zhoKETYv2aOSPbpUR fuAkSK0nhpc/tSA92w9+qQGCuWmNY4xelwxxrIZl8Y1BJiv/FySG3xd+bC0MQTDlKPo5 4a3hUMeIwAbNOWggeBW3n58+kYi/xC/31yZPY1gfpomSKtYvg/sSFSIIkqgBw5OXlvqj FKdl3UUJ0Qudk3KRplXnnUMvMziSrF9/NwWq6FmgyyY1f949Zt2VVRPrhCLit6N5ld1s EWqigldIcCxBQ0r3vMFER8gnHFvQet6b0Zc4wLBT1izPvYis0jbJB5y/7snL7h+LjA8T mS1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707122313; x=1707727113; 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=TzUq0QU1iLhov+1WYKZ5iVgod62Dx1DjglJhN8m0PAE=; b=GBO570a5MO+aivk3p8MX9MoQpCx1OveNKQz0b19aRabThV7Rz6J0fqXfxUcvdKgtI6 Gmq6/UhHODeO01xDnMZBlT24vn7+Xrr/895fE0EunhEn1fBABcpzYO7I+3+F9xhHuj+G v7i/FnyHAGkUEikqZZY145XUpckSpiC5w/ZtNx0YyPfUszW+VyhyOc7Q1hdg+Rya84i/ HPktIv/3b9C1zleq0c37eJLmdAVx2vZasKXZDvuBB/ex8hlZxcb1phe9lycH5I7c28An qxAmUFo/F29pcsGMNfbzfto+0U+XSmbdwLimKaxdCOX0GoUGIKr+P1or4rxojuNrfX6K jMQg== X-Gm-Message-State: AOJu0YzDnXCIn9Yh18r9ad01dumzToD4pt2S8jNwLoI0LmajXPT6LhUt iRgLgKy+7qa/bE3YLelauA3EzngCRAVUzFjn+/1VDaGr1/+dh1wnIuZRpRLOXHE= X-Received: by 2002:a17:902:e5c7:b0:1d9:7a7a:3d01 with SMTP id u7-20020a170902e5c700b001d97a7a3d01mr7580530plf.23.1707122312801; Mon, 05 Feb 2024 00:38:32 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXfI2w+6dUAdaog5bJtoPlJM3p3ukBSikiWgzTm8BAqW0h7zGRqU7hx3UCGq7cTibBB8HARSP/XisA0uN+w9+FqdvqdeHJcVO0mfGc7ziQoQyXOZ7grsTx10xaypoxwpyExjkSzrysipLtwsKTy/DbFHWb/pjQ/VaDQNP54POfBXXfc50N8c0dSeCQnnZDV1rQl/GwCcqymS4cy0e+KMRoATbWVS7VNFUoxcTxHrbbl/iJAtaQsCjIaisPJnVzlyGemCHDWDX+U0bniwkNxCWC6gkHYWuSZyKtEMLtsXupZnvMhqwFiXpzivjLHsAd9eAj71NRm/mAc32aaParxZPwNgj6b36hqk6Rd+MaDSLQtzEAjoChdChpKMUkafF8b+2Kd6vQ85HUy8XN6hBQMWrEH9hLIUeY9osriah/T3E2rh5eyHYWHezWPu9gpgkmMdbR3ZteEpUbi3l3AIe4XCcCdNLQgS2msiz/gCyf1/ugvQQLXJHzcA9h/mlNPxgdIzNNUqfRPV1a1hQ46+WgKwIskB+QDnn047Ob6XWdb1Y7zgHlFQU7xr/ipwWjZzunXXHEX2S8lZFGOXlWpI1F/cWzUXZAnprTHQ5/nNf6MUd97ty8YnKrrEpD8adDaa0Z8eps8kNajrf8F46HOl2qu05YBjty2nRwOK4Pm5BIh/OQJAKYudC5xAor0TzHqgedJpd1c66sWfdshOdQ= Received: from localhost ([122.172.83.95]) by smtp.gmail.com with ESMTPSA id mm4-20020a1709030a0400b001d60a70809bsm5782825plb.168.2024.02.05.00.38.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 00:38:32 -0800 (PST) Date: Mon, 5 Feb 2024 14:08:30 +0530 From: Viresh Kumar To: Rob Herring Cc: Saravana Kannan , David Dai , "Rafael J. Wysocki" , Krzysztof Kozlowski , Conor Dooley , Sudeep Holla , Quentin Perret , Masami Hiramatsu , Will Deacon , Peter Zijlstra , Vincent Guittot , Marc Zyngier , Oliver Upton , Dietmar Eggemann , Pavan Kondeti , Gupta Pankaj , Mel Gorman , kernel-team@android.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/2] dt-bindings: cpufreq: add virtual cpufreq device Message-ID: <20240205083830.4werub5e76kudjq4@vireshk-i7> References: <20240127004321.1902477-1-davidai@google.com> <20240127004321.1902477-2-davidai@google.com> <20240131170608.GA1441369-robh@kernel.org> <20240202155352.GA37864-robh@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240202155352.GA37864-robh@kernel.org> On 02-02-24, 09:53, Rob Herring wrote: > On Wed, Jan 31, 2024 at 10:23:03AM -0800, Saravana Kannan wrote: > > We also need the OPP tables to indicate which CPUs are part of the > > same cluster, etc. Don't want to invent a new "protocol" and just use > > existing DT bindings. > > Topology binding is for that. This one, right ? Documentation/devicetree/bindings/dvfs/performance-domain.yaml > You need per CPU Fmax, sure. But all the frequencies? I don't follow why > you don't just have a max available capacity and then request the > desired capacity. Then the host maps that to an underlying OPP. Why have > an intermediate set of fake frequencies? +1 > As these are normalized, I guess you are normalizing for capacity as > well? Or you are using "capacity-dmips-mhz"? > > I'm also lost how this would work when you migrate and the underlying > CPU changes. The DT is fixed. > > > > Also, we have "opp-level" for opaque values that aren't Hz. > > > > Still want to keep it Hz to be compatible with arch_freq_scale and > > when virtualized CPU perf counters are available. These are all specific to a driver only, that can be handled easily I guess. I don't see a value to using Hz for this to be honest. -- viresh