Received: by 10.192.165.156 with SMTP id m28csp833462imm; Wed, 11 Apr 2018 07:59:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+4wedYTxiRctI8uuem3qAtjDS1Nz/lsIUf+551gBzwrXVZdMEoetRh/QbifQTpdzfqtPxO X-Received: by 2002:a17:902:6bca:: with SMTP id m10-v6mr5471809plt.387.1523458761174; Wed, 11 Apr 2018 07:59:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523458761; cv=none; d=google.com; s=arc-20160816; b=LtSiAegKlIpLwfyC8qu0nBYMYYCgH+iLrfmq0doMR6+/LESTvStuF3Sh9SFIBawORW msmja3UUHzDuFqMBF4jPoF9EtV+ppLOUJ/CndrVN8Rxkwxih0IUSH7bDeMbUiHrqfnB3 gqxJVEc5vT9WGyYRF60CnP5XdJiHiFDKna08XZ51WdW2Mic5oAQ7xOP17Porqf/rz7pu DJbZB2Xf4Mjs3i9Q7/EZol+4G6glwkz3Qhp/B3g8tQgdXjiZMV+YVhEZNAj9qrXrWAao L1EJg7vyy5ZlMzeKsEobZapBrzA4IsVCtj5NyA1b+V+IFZVtFM5R9uBigy1/M1A7AWXF Umhw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=QHkbboDBLVnEYQxxNOyfKBNqN7Nto3Be5Ic4Da7xoog=; b=QeI+b0pEP6oHt8yPaQz3ozavpLhPmRZdxD5NCcC1XcSDr4t/1xE4jxNlvGA06R4vba +6/5zp9Av0YI1GpsBQoGJzwHVx6YeIE9gkkIHYqFP1UFt+0FgFT4/kxbevXu6yKC0ZNV RQOUS8a3OKiToLuDgzJPo3tdb3h09mfIO/DZWTzWr3/WoWS5tP0BphUEeTPzmy9A0Asa o3v1AWBm87k6T/SbvaDGWc981SojuMqS4qL0PCPsMYMmWblkPpbpMVTn3brVmFs5MAGh 6Qbj0c1UV/edtAsaXbsvbloC/nEdWmuGOY+9uKjxwfCAcF8O+OGAsySyg5GpyPQYTCdW ujTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LKKqO4mw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id n3si810482pgf.667.2018.04.11.07.58.44; Wed, 11 Apr 2018 07:59:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LKKqO4mw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1753847AbeDKOyN (ORCPT + 99 others); Wed, 11 Apr 2018 10:54:13 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37741 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753282AbeDKOyK (ORCPT ); Wed, 11 Apr 2018 10:54:10 -0400 Received: by mail-pg0-f67.google.com with SMTP id r14so876236pgq.4 for ; Wed, 11 Apr 2018 07:54:10 -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:in-reply-to:user-agent; bh=QHkbboDBLVnEYQxxNOyfKBNqN7Nto3Be5Ic4Da7xoog=; b=LKKqO4mwSeMxj7ZtQqbgaFfPuuKIoAX20vLykex8nLk94HRsqFJMkTdWMFlYNC1wwo f4uuSHsUA0Uyu7LdoDQTScPKoSjSpPad1UA5MJ8cZykaPCmaEQfeZvUUQ8xzs3dx8KGU YXDcvdy+htaw+Dr0W+rk+daVSXXMe9kjORNYw= 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=QHkbboDBLVnEYQxxNOyfKBNqN7Nto3Be5Ic4Da7xoog=; b=EKtI/iBfOrChndRfmzRWpr/n6Dh9LXPcXsH0kWDYio5h8lFCyBd1ZOco2NHhio3DI0 ioa9EnT5AV9k1+lDi2Ku3oxLx1NQMNQ/3588JLNuOEyogPsmCwOBKfGUh5CMElcRWcYy o9nZ5Xn6XFjNm217gQJiThMt1KuusDhhlFchO7sbsYv/pNWCT3JOklQFNfruT6wV206g 21aOxZE1vKF0QK5XS/FtneXDbithEYiRF8YaXK0i2yncVaU5OTWAwcG5X5nPKEzYPguD MqZY2rH+SLoxZ0VfwoBm4rxLiw9wAmzZTSiUZuzWNqM01BnlpCYuE0rRkjSsyvkH/1u/ j/kw== X-Gm-Message-State: ALQs6tCOpx+2RzgBdzgPCDPFKbD83BqFlPW10A7lt7/J3wZVCXtf5kfL Ev0R44lmpXdHS5x0RajAE/0V6g== X-Received: by 10.99.106.67 with SMTP id f64mr3688982pgc.218.1523458449984; Wed, 11 Apr 2018 07:54:09 -0700 (PDT) Received: from localhost ([122.171.228.188]) by smtp.gmail.com with ESMTPSA id b4sm3362401pfa.64.2018.04.11.07.54.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 07:54:09 -0700 (PDT) Date: Wed, 11 Apr 2018 20:24:07 +0530 From: Viresh Kumar To: Patrick Bellasi Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , "Rafael J . Wysocki" , Joel Fernandes , Steve Muckle , Juri Lelli , Dietmar Eggemann Subject: Re: [PATCH v2] cpufreq/schedutil: Cleanup, document and fix iowait boost Message-ID: <20180411145407.GQ7671@vireshk-i7> References: <20180410155931.31973-1-patrick.bellasi@arm.com> <20180410193708.GE4043@hirez.programming.kicks-ass.net> <20180411104445.GM14248@e110439-lin> <20180411105828.GL4082@hirez.programming.kicks-ass.net> <20180411143921.GP14248@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411143921.GP14248@e110439-lin> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-04-18, 15:39, Patrick Bellasi wrote: > On 11-Apr 12:58, Peter Zijlstra wrote: > > On Wed, Apr 11, 2018 at 11:44:45AM +0100, Patrick Bellasi wrote: > > > > > - sugov_set_iowait_boost: is now in charge only to set/increase the IO > > > > > wait boost, every time a task wakes up from an IO wait. > > > > > > > > > > - sugov_iowait_boost: is now in charge to reset/reduce the IO wait > > > > > boost, every time a sugov update is triggered, as well as > > > > > to (eventually) enforce the currently required IO boost value. > > > > > > > > I'm not sold on those function names; feels like we can do better, > > > > although I'm struggling to come up with anything sensible just now. > > > > > > What about something like: > > > > > > sugov_iowait_init() > > > since here we are mainly initializing the iowait boost > > > > > > sugov_iowait_boost() > > > since here we are mainly applying the proper boost to each cpu > > > > > > Although they are not really so different... > > > > How about: > > > > sugov_iowait_boost() -- does the actual impulse/boost > > sugov_iowait_apply() -- applies the boost state > > > > ? > > Whould say it can work too, and it also allows to add a: > > sugov_iowait_reset() -- resets boots state after > TICK_NSEC CPU idle time > > Viresh, Rafael, Joel: any preferences or other suggestions? Looks like no matter how we rename it, someone will find it confusing :) -- viresh