Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp531259lqp; Wed, 22 May 2024 11:22:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpp9czST+AxmrnF4TIPCm4chX0IfTIeW62VjyrkPTdDkyBtWBccNe71KU9AI4sVjcqq9L1lbHClE2xZtflJgc2+8aCWEqie03OlKNsKg== X-Google-Smtp-Source: AGHT+IErj8hx0NCaY+6j9AAFwkI9WGU3Zn9CyZOC3ZdJzZm0ETGPmBWu7E/NTznS4cu7ALtWBQ0z X-Received: by 2002:a05:6a20:978f:b0:1af:a414:802 with SMTP id adf61e73a8af0-1b1f8a22872mr2397545637.42.1716402160316; Wed, 22 May 2024 11:22:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716402160; cv=pass; d=google.com; s=arc-20160816; b=vxpoRCj8LHIM8Nc1yd78Y/FK9mMdzUVUyLRttfWyV6vusnGVorbHh+rYH6Pw8dZjku cAnJM4UcQYRXpUsHohcrBcwHPPxDMR+6YKW2G2ABcuBcBK7YKt47yfLxrNnw9P4zvVAs dEU3PIZlhfFoCVmIoWHwwIVdPHZvGfd2IrF4SAe+tPohsfQjdg8UJefniR/QV7gdz4xq kqO4ghFMtg1LTzs3o53jbiA1kiVSE196Yexsfs9IsH1yQFTNV3PbXByyr+cfQ0JE2MnK m5y4fBA/0dPqG18oGmiHrJzRujexNHd6gd89DTSXmmN+7hpnzWOqxM5eO3VDcvbyP0Hv MnrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZFK6u4Fa5zvVRsR5pPiIVXF/YDHCjWe6si/6yyn/Lng=; fh=YEo5ytT74VgUCPNu0lH4dTUMYULd6vYEmw0neMOEvlY=; b=ZCFtVJwRKri7aXgeNYOJyc1sB3T/HVpIMjF4cL/2QEpDfaeFzd1GwaWJYJHuXxbe6e iqbinpJalfW2oH5/7aYczhEaQtr/J1SYq4BP0xwF5J1+BISEFEDnrF289C5VvTzBxh3+ 6chbX/9OEmiN/hOHBgCoemOAmlaePXN4xRc5H+9I+8VQtTAdiAY5DBfB5PFFEttVIGOs NyefHtM1YKiMV4Tx9kCKynZ4fbeykTDyA/hiIhjWJxsx4CHSaaWGi2WFoHJtMj8Sa9pe AJWStjT//5VnGviEhrtgLCjNwGGdGl5HbG4Zde91HCye36R/GWEfvoiWM5DD1dXaAKdK X3bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Fb4K7RV+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-186609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180e163si3888043a12.581.2024.05.22.11.22.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:22:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186609-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=@google.com header.s=20230601 header.b=Fb4K7RV+; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-186609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 DC18E28214F for ; Wed, 22 May 2024 18:22:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DBDF145B33; Wed, 22 May 2024 18:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Fb4K7RV+" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 E443A13D893 for ; Wed, 22 May 2024 18:22:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716402151; cv=none; b=oXPtehUJc9oXWGa217EchonLeAttIjRVUUUDtQ3fuEFiu6OHNq16RESX64+uVo5soKypYK93WDioYsGHRSEEUJcHt2HdXm4u5WdACE7mn75blxUN0frJRsQFIJ+6qs4O9iIy3B3T5xKBzOPJXyghBJsWQKnmlmBIRzebW6Pupm0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716402151; c=relaxed/simple; bh=ZFK6u4Fa5zvVRsR5pPiIVXF/YDHCjWe6si/6yyn/Lng=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=H/yE6SBmaE3ZmDohv91Ni6dTg8pb8s1Iru9ABliiVfo2dwcL2RTnxdvgthGIvOdlchZvu0pc8npxB9Bf553HjkqTLV1vpwUR8/xqBUSFOXkFQLkGJQW11O28HZRMqPtWA4aYs5DR1OzFhKTl9VTU7pvdk4God4lfEVFb2x3A88w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Fb4K7RV+; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-42016c8db2aso11150355e9.0 for ; Wed, 22 May 2024 11:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716402148; x=1717006948; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZFK6u4Fa5zvVRsR5pPiIVXF/YDHCjWe6si/6yyn/Lng=; b=Fb4K7RV+rhQPofbyviCdQE6SPCroqZr/XDfiRJizjk4YH7xicEC/5G4QpWG4JC+Elh GMv89EQyom+0El0f1+g9UKgJAfmQ2Za5RIMvwUP4Vkc0KJ3ZvuNDAopHpAldIH/3AZnK GQTLeyTonh696l2/o983ZiIFISQXgojSzGAtL1U4fCKwku9S/aOU2GEEw1wL6hOKJkJV CY+mo2oRPnxzBcDY4c0b/yw+tF73CJbMrnqCzsvGl3l+I3RcsV0RbpvVl4b7NkD9y9y2 KFjWhBGXOIWhTQbcid0TwXIFf8r6Us06APki1LiWw8BVmNI4uCIhwQmBrMeH0zB9tSs6 r/MQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716402148; x=1717006948; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZFK6u4Fa5zvVRsR5pPiIVXF/YDHCjWe6si/6yyn/Lng=; b=B2naHRyFgAHU3kJfQYFJ9Oni/5D7OD5koCh26creEqWvrRalAqF10bDApA6KYHqTG/ p6gC3+kWpoX4fO82BeMGw0xRnS4+PM0/WIzCpn1EfjlE2jfzqwpCHZ8Ku9KSLfuQpxAO wByr8BhZ0eJD3Il0JF8Wy5ZzsTI/USuv3Ac/BjERFLX/le3gIfNyAxJLHzsfkg0HIBeq rRac+qcL+Gv9nIthLDE82hRdIw3ehdT/2iXAHlem8x8azT/6cyh5k/0N4Yt7bzB1bg1H U35EKyW9xyTPmw4WLT+koRGZST9+U1NynTKn/mwY6d3zq5z2qplfFhKmPiHew8vPbtdO 8ouQ== X-Forwarded-Encrypted: i=1; AJvYcCX89DjrpOwPsNHyFnSZC9tOoHF/HMXagAm1XoQzEk/2UL3f6fGTAOcvagGw1RLJI0bTaOGY1Ti4tlsWaVyhP4XoPXm1nKiXXoUeJDXD X-Gm-Message-State: AOJu0YwnVOZEw0DCZ79YdskkHrqHoocycAPuSUeCJG34SQMulrKceCS3 G9t1QyP2FSqfWLPawe8aDGonHwqLO6GGfw4b5Crpa1nKe1Ff/Lxg1KGQpDfVTMf9rDezB/onbPj 0VymGtd5BOctfDKgmb6+973V5XhkttcIxhVk8 X-Received: by 2002:a5d:6903:0:b0:354:c934:efa0 with SMTP id ffacd0b85a97d-354d8d85254mr2020590f8f.48.1716402147986; Wed, 22 May 2024 11:22:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521043102.2786284-1-davidai@google.com> <20240521074137.eip3jcnu6yhryrgq@vireshk-i7> In-Reply-To: <20240521074137.eip3jcnu6yhryrgq@vireshk-i7> From: David Dai Date: Wed, 22 May 2024 11:22:16 -0700 Message-ID: Subject: Re: [PATCH v6 0/2] Improve VM CPUfreq and task placement behavior To: Viresh Kumar Cc: "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sudeep Holla , Saravana Kannan , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Viresh, On Tue, May 21, 2024 at 12:41=E2=80=AFAM Viresh Kumar wrote: > > On 20-05-24, 21:30, David Dai wrote: > > v5 -> v6: > > -Updated driver to use .target instead of .target_index > > May have missed the discussion, but why is this done ? Since the driver now queries the device for frequency info, the interface allows for the VMM(Virtual Machine Manager) to optionally use tables depending on the use case. Target is used in the driver to support both configurations where either the table is used or if only max_perf is used(where the guest can vote from [1-max_perf]). Thanks, David > > -- > viresh