Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6941905ybi; Wed, 5 Jun 2019 08:41:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+ssp6b27uwszxkKLQ7eL3ob/mlrwCRN6+8xJHoG+3uZzcPnElsInSJ/RLVY06zKILsHI1 X-Received: by 2002:a63:d504:: with SMTP id c4mr5274366pgg.20.1559749287971; Wed, 05 Jun 2019 08:41:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559749287; cv=none; d=google.com; s=arc-20160816; b=t6JbnJt/3Gob/mRFMbQJ2hC2zzBRiEhyX6U2cxfBA1tJ/vILIiQ/96IQYNkDYMBDbp 8EodmodUc2cP6ce1k+vBd+U5M8LKw2SNxVGTJiHui/M33hjolP+iBFn4S1MqJW0F1SW3 98bVWzGT3NS0FOGXzywzoCDMmuU71o8PNqwSt7QnPwACtoe6b8nZLcQGGwaYzoj0ypZH w60pqdjgK6hiYoTwYCSnj/pnO3EL8Ab3SsKKILuVZsRJIQhttjNLCK1AxX72gk6VXpc+ I6k9jV0g/R5NX3YFhC+SLoHx+cpwOfpZ9szppfc1uucY+gUhyw5yE5ZozyJ77HVuIPGO u2IQ== 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; bh=XkK3it9qwdZSq91s1rnyVYmUTgpHaE4AnNYryBYUdwM=; b=oI6eDpjtEay7tLrdav/OHvprbCWBAqXZ+EDSV+WNODfty9Ab+0SM9CY54h249UBuQ8 VdxwryOhQd307JX9C5UcIhVlpQoFHUMa6oUZImBJRfYxO23QEqyqbJHbw1VGGkzgBwBe 6fNt/zRikoJSGmTK1tUORynK8dMqHQBAZKR6dHlFtsA1cZckp/P9vXCScwPNyw/kCA/O zA1AvB3LyrGbKxAMPK9f8ZK9vv/ylutL8IGaOzqqGfBjmxFVwzZ3F3lhiW6WmrG+gQwT zRJOjJgB6gGzc43PL849qnFaxzil+bxgStXu5gHvlH87fae7n6ZSVc6/7x1w87f5moUk CrPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Q3+HdRsk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d35si23668638pla.349.2019.06.05.08.41.11; Wed, 05 Jun 2019 08:41:27 -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=fail header.i=@gmail.com header.s=20161025 header.b=Q3+HdRsk; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728516AbfFEPj7 (ORCPT + 99 others); Wed, 5 Jun 2019 11:39:59 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44406 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728200AbfFEPj6 (ORCPT ); Wed, 5 Jun 2019 11:39:58 -0400 Received: by mail-qk1-f195.google.com with SMTP id w187so5392020qkb.11; Wed, 05 Jun 2019 08:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XkK3it9qwdZSq91s1rnyVYmUTgpHaE4AnNYryBYUdwM=; b=Q3+HdRskeYHlYSkfrRZo6GdsYTy2c2e4x6g+bYwAUNzv6xgOoTQcCOPehF6viNil48 4IHiGOzALoqsk2Eaup9OOZ6HgMaVVqWI7u+vDZVURC3XS45f/4kLDNsUUUDibEzn4Wrb uHDDDUsKHlORHU1T3qo/oUTHKDd++NZQl6n9iMyxhMmVIywxkHZ1rLMcynDbpqwZOyVB Woyp8aClZcu+uN7X1uwHy3rq+YElWGDSq6VbedDRMSpXO1kVgMlhIm0Dw/9mdk2tAjTh MuGEwDQaCjtq9SNt5evD8WWL/i9bs5dp67nZI2pkruEz2RSZHiSJEf0jGRXkPUDJfEjm 8E4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=XkK3it9qwdZSq91s1rnyVYmUTgpHaE4AnNYryBYUdwM=; b=gn3wPSdtzytMJsHoGO/TbS6QNwYuq+sUnVC8Rop19JgsZxKW4FJK9QftR+pK6eLeDq aDk/6dltiMcTmp9oljW5Mgx9gMith+lKqWArEdlawKaKM9FE2514ZcX3aJGmUOwNqcaH S5m3mTrzZa0i2o/xlRpbuBL3dEKXGTV6MQQ50m7tNBlEqcNDdkLsjTtFtPSVSilxWf7H qehyPV4f34JvPq3DCtAqjGmfWqsNJFHbNYAu4jPquhkWWu+7bQhCjFfb/1j1LBLS3DYE FOBrwDPPTJX07wznV7bmOD26G9cQ/DKTwj1PNacBBIHYlmj2r06juQQaicS2I+ab0bm3 HjsA== X-Gm-Message-State: APjAAAXvKXitnsrB/63cne+O1v6sCfK2iEh2+eeMiBDbGa1GtGTnvj2j w2CZ7xEZcjiMLBWjP1DDr64= X-Received: by 2002:a37:a413:: with SMTP id n19mr32240823qke.98.1559749197309; Wed, 05 Jun 2019 08:39:57 -0700 (PDT) Received: from localhost ([2620:10d:c091:500::1:c027]) by smtp.gmail.com with ESMTPSA id c5sm9544509qtj.27.2019.06.05.08.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jun 2019 08:39:56 -0700 (PDT) Date: Wed, 5 Jun 2019 08:39:55 -0700 From: Tejun Heo To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-api@vger.kernel.org, Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Vincent Guittot , Viresh Kumar , Paul Turner , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Juri Lelli , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v9 12/16] sched/core: uclamp: Extend CPU's cgroup controller Message-ID: <20190605153955.GP374014@devbig004.ftw2.facebook.com> References: <20190515094459.10317-1-patrick.bellasi@arm.com> <20190515094459.10317-13-patrick.bellasi@arm.com> <20190531153545.GE374014@devbig004.ftw2.facebook.com> <20190603122725.GB19426@darkstar> <20190605140324.GL374014@devbig004.ftw2.facebook.com> <20190605143805.olk2ta5p2jnd4mjt@e110439-lin> <20190605144450.GN374014@devbig004.ftw2.facebook.com> <20190605153742.lusoiodrzxmpsrvd@e110439-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605153742.lusoiodrzxmpsrvd@e110439-lin> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Patrick. On Wed, Jun 05, 2019 at 04:37:43PM +0100, Patrick Bellasi wrote: > > Everything sounds good to me. Please note that cgroup interface files > > actually use literal "max" for limit/protection max settings so that 0 > > and "max" mean the same things for all limit/protection knobs. > > Lemme see if I've got it right, do you mean that we can: > > 1) write the _string_ "max" into a cgroup attribute to: > > - set 0 for util_max, since it's a protection > - set 1024 for util_min, since it's a limit > > 2) write the _string_ "0" into a cgroup attribute to: > > - set 1024 for util_max, since it's a protection > - set 0 for util_min, since it's a limit > > Is that correct or it's just me totally confused? Heh, sorry about not being clearer. "max" just means numerically highest possible config for the config knob, so in your case, "max" would always map to 1024. Thanks. -- tejun