Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp59270pxa; Mon, 3 Aug 2020 22:48:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtFpxZcsWbFIY/ce+x7XaElIeOlbzYkv2QOwaXsy2m0xGgBs1HGel/FuAFtultb1+nGkXA X-Received: by 2002:a17:906:694b:: with SMTP id c11mr19506578ejs.232.1596520098450; Mon, 03 Aug 2020 22:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596520098; cv=none; d=google.com; s=arc-20160816; b=qYCbIiZVUmhv7BruFgVf7GfeAV25BTmtH8/palv+CAwZhouzF2Ys2a8jlsMxt9hpCk x2hj2y23u2ex2PRid6lLAf7daFAPPy1UK9j3QawhahWSZ5/oNxUqMoXNCkIt8jA9qd1T P/t8VxYK8ZMgb/erAmpe7CVXryUi7HdoZFvBGYC7f9XGzj0EBeQ9yxNkFQcd+Mjx5OTZ lvbe9W+7/l83XpsHynBLN3+u1rnpO0y+SGh/uws8W68NoDPMjbCm6yGhXowQIM80/Ftq XU/j1SydSaWfTJEBSKDq3E4SQn4XMWc6UjIadRnOS7dbMd3yrIltE5aAxLNlM+A4ypd2 A9Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vDqLDzenSWHFK8n0k98ye2lU5LkLmPsSvSRCb9qxZYw=; b=vlVLAP1fYe7v66wozGQ9+knR28sittTquYB5sTY2czzN6CRCjBvL8NieRPAmoLzgs3 9O6Qwa9VCrcmM6udT8XBW4FMylq63Pj38Qg28bY5y6FhA6JdQl3OmGne3ENoCVN27/df NcbizWjwt11LPGaFfWsZxaxbv5A6fI9C93z23Kf6V4IvBleR3xGjV8BrLJ46ZTLhqA+T 7XKJcw/9uCW4bwbbW+8uzm1CLJ7wRhX9IH6B9G5IbfcD5Eb1L15WXnEvMPVG/Ci3GTt1 3mz0hljU30WyE7JJSBgYSxOWeRuvvJCUISxZ5+9AipRK6wYTr1Hwt3Q9eMuU+yX0HARc EMpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hVuoAigv; 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 ca18si11793409edb.414.2020.08.03.22.47.56; Mon, 03 Aug 2020 22:48:18 -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; dkim=pass header.i=@linaro.org header.s=google header.b=hVuoAigv; 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 S1728174AbgHDFrd (ORCPT + 99 others); Tue, 4 Aug 2020 01:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbgHDFrc (ORCPT ); Tue, 4 Aug 2020 01:47:32 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB10FC06174A for ; Mon, 3 Aug 2020 22:47:32 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id p3so21496399pgh.3 for ; Mon, 03 Aug 2020 22:47:32 -0700 (PDT) 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:content-transfer-encoding:in-reply-to :user-agent; bh=vDqLDzenSWHFK8n0k98ye2lU5LkLmPsSvSRCb9qxZYw=; b=hVuoAigv2raGWMd83qJY6Xz7QDJMBlSMXKKSrBXoHU9m3M17SJ0c9uH6OmVJvDEF5N x4m6SqByvLXKRZXo592ojSYyEtM/vSn16TObpqVzepkkIa5oFHVouIlAZqGrC0iKtFxu n5JwBYVxv4i6Pp9FKOi27oNl62DBwhQC7jnKDiTyebSGmiFCJi/zvS8hrNAyQA6eVmqu u2i1M8JJ9VLoIo09Q3Op77rt3rhwbo99d+/C0DO7FHVT1AZReRC7RLVBHnDwX9uV6JXf duyoVekZpyrBIMsHNlVf2DbTqgD3gGzZqciEayJsPAYsloT+PjnPk1YLnlcFFSbHBedh iK+g== 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:content-transfer-encoding :in-reply-to:user-agent; bh=vDqLDzenSWHFK8n0k98ye2lU5LkLmPsSvSRCb9qxZYw=; b=b1G88rgVcgaEA0CfEMhdaKPHuN3W0/hBM9cpKHxZspYV/pJefNhZCsqthx5KJoeEou knpI6KuqQAug+TO4o1yGcU9vvoaayJKxFr9dXTCV1/TFPoDM3W4Pcxe3NRET5wp+Tz2X 7UyCMD/MBbdEDA45EMu7CJ6ic9C8ePOzJ85whxD5pNpLgwbRiVtOpmG1q2SPh3IMHG3D Rd1EY2+JMIm5NA4qBTmEQ1cf1E3kA5hL2rLB+S57Xn9ugvoPsuZpA773ZBPyB9Ep2oF/ dd92SnGg4uJVk8LmZdX0hqvydVfRRXtGSSx9d22SRXlcXTBL0pMZ8cnU8C2FVzQmT5kw 2vyA== X-Gm-Message-State: AOAM531xOqvdC6N/PVxl+konOYBaMdoLtdl9qW9YsFrm1mB1JG7unoCJ 4khhw8Y+akSCiwVmu3r5vB3+eQ== X-Received: by 2002:a63:210c:: with SMTP id h12mr17617691pgh.152.1596520052288; Mon, 03 Aug 2020 22:47:32 -0700 (PDT) Received: from localhost ([122.162.244.227]) by smtp.gmail.com with ESMTPSA id r7sm19970036pfl.186.2020.08.03.22.47.30 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Aug 2020 22:47:31 -0700 (PDT) Date: Tue, 4 Aug 2020 11:17:28 +0530 From: Viresh Kumar To: Dongdong Yang Cc: gregkh@linuxfoundation.org, rjw@rjwysocki.net, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org, yangdongdong@xiaomi.com, tanggeliang@xiaomi.com, taojun@xiaomi.com, huangqiwu@xiaomi.com, rocking@linux.alibaba.com, fengwei@xiaomi.com, zhangguoquan@xiaomi.com, gulinghua@xiaomi.com, duhui@xiaomi.com Subject: Re: [PATCH v3] Provide USF for the portable equipment. Message-ID: <20200804054728.ojudxu5fmd54lar5@vireshk-mac-ubuntu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-08-20, 22:31, Dongdong Yang wrote: > From: Dongdong Yang > > This patch provides USF(User Sensitive Feedback factor) auxiliary > cpufreq governor to support high level layer sysfs inodes setting > for utils adjustment purpose from the identified scenario on portable > equipment. Because the power consumption and UI response are more cared > for by portable equipment?users. And the "screen off" status stands for > no request from the user, however, the kernel is still expected to > notify the user in time on modem, network or powerkey events occur. USF > provides "sched_usf_non_ux_r" sysfs inode to cut down the utils from > user space tasks according to high level scenario. In addition, it > usually hints more cpufreq demand that the preemptive counts of the > tasks on the cpu burst and over the user expecting completed time such > as the ratio sysctl_sched_latency to sysctl_sched_min_granularity on > "screen on" status, which more likely with more UI. The sysfs inodes > "sched_usf_up_l0_r" and "sched_usf_down_r" have been provided to adjust > the utils according to high level identified scenario to alloc the > cpufreq in time. > > Changes in v3 > - Move usf.c to kernel/sched. > - Remove trace_printk and debugfs. > - Add document draft. > - Update comments. > > Changes in v2 > - Add adjust_task_pred_set switch. > - Move adjust_task_pred_demand declaration into sched.h > - Update comments. Sending updated patchset for this isn't going to help you my friend. You need people (maintainers) to agree on the idea here first. The patch can be beautified later if required once the idea is agreed upon. I saw Peter already gave his NAK to it during V1. You need to discuss with people here to see why they don't like it first and as Greg said earlier, this should not go to staging at all if it ever makes it mainline. The more versions you send now (without proper discussions first), the harder it will be for this stuff to get merged upstream. -- viresh