Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp417524pxx; Thu, 29 Oct 2020 05:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRoWP1tXhk1MAi+ZdUWe3ObvV220fJU13jkPHaHW9RQu1Xa/6vgPpaBawGOTEitL2lR5H6 X-Received: by 2002:a05:6402:3045:: with SMTP id bu5mr3929254edb.232.1603975958915; Thu, 29 Oct 2020 05:52:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603975958; cv=none; d=google.com; s=arc-20160816; b=jrcb16c9B68FsG+ICWhbu6d/2aFfYkTlLVSg0vr5Cx6py/fZnUwGoae9T8S5QPLXfQ abUyghWXiP56EJYlpy3iELSUOLMmjdIbM/gWLFRw+/wgIpL5zzJQQS6zcxc5X8jMQtz3 kFA2gs/OaGN6bWpeHpkfHo0HvCr4AZwM9v3zR37xSoqxgf6bPNEdMKr0D18/CerKeNhe JlZwWm9ED+8h5zjrXicyzwh6+Szdt/z3Qt1qky3nfeUeh5FO2osp7QdyulXaKvFwoAly yJTMwDyeA80iUcykl7Xanbr/ONamwdhCI11Q15tZudiJ6NpF6YgT63Ce2bmlwUBrmZ9j JpYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fYSgo6BH4dHflLk8PQIilfrbBKkX5LqYMC5b0tjg8Lo=; b=uziXB5UPvEWnGjp7N1nAJfEmxwZ8/zN9OmUWTNe6W/3ClQhoMzM+lUC6VlCTHSYwZW NBi8fzLIuyZactGS2Ruz5un9kUEsaxW0aR0W4Qtgq8anhUZoifENhKDdWPRshN5P5WwP d6okYhGvPFpK9fQMwPFWcaH54XImKyJOdK+NcsFzNwOenibI7BbSnf3b5VAwK+K2BCnJ xi+wsKV+EDPsp8g8i+XbDX1qmqr72ydlo6FhEC7P/J5G0u2yWt3d/bW+oJEGBkFK71SF kNMQGkqKxfkmPYM4CqVeKHAIDMOfKhmXpxvS+qiZXFFa2IHWvI0oUP2SqnL/vAf2oZuQ nM4A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r7si1718069eji.675.2020.10.29.05.52.09; Thu, 29 Oct 2020 05:52:38 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbgJ2Mus (ORCPT + 99 others); Thu, 29 Oct 2020 08:50:48 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:55154 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJ2Mur (ORCPT ); Thu, 29 Oct 2020 08:50:47 -0400 Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow2.mail.gandi.net (Postfix) with ESMTP id DBA2F3B68CE; Thu, 29 Oct 2020 12:33:55 +0000 (UTC) X-Originating-IP: 82.255.60.242 Received: from [192.168.0.28] (lns-bzn-39-82-255-60-242.adsl.proxad.net [82.255.60.242]) (Authenticated sender: hadess@hadess.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id B56F5C0010; Thu, 29 Oct 2020 12:33:29 +0000 (UTC) Message-ID: <08e3a1d264016aed93aca8632ee42637dc00d238.camel@hadess.net> Subject: Re: [PATCH] Documentation: Add documentation for new platform_profile sysfs attribute From: Bastien Nocera To: Hans de Goede , Mark Pearson Cc: dvhart@infradead.org, mgross@linux.intel.com, mario.limonciello@dell.com, eliadevito@gmail.com, bberg@redhat.com, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 29 Oct 2020 13:33:28 +0100 In-Reply-To: References: <20201027164219.868839-1-markpearson@lenovo.com> <5ca1ae238b23a611b8a490c244fd93cdcc36ef79.camel@hadess.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.1 (3.38.1-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-10-28 at 18:23 +0100, Hans de Goede wrote: > > > It's not meaningless, but rather ambiguous. For a range of 1 to 5, > > is 1 > > high performance, and 5 low power, or vice-versa? > > It is meaningless because the space we are trying to describe with > the > profile-names is not 1 dimensional. E.g. as discussed before cool and > low-power are not necessarily the same thing. If you have a better > way > to word this I'm definitely in favor of improving the text here. What do you think of: > +Since numbers are a rather meaningless way to describe platform- profiles "Since numbers on their own cannot represent the multiple variables that a profile will adjust (power consumption, heat generation, etc.) ..." > +this API uses strings to describe the various profiles. To make sure that > +userspace gets a consistent experience when using this API this API > +document defines a fixed set of profile-names. Drivers *must* map their > +internal profile representation/names onto this fixed set.