Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp110720pxx; Tue, 27 Oct 2020 23:11:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYn8mlF6OSVwqmwP5sXugiy6XlicUfdUM1KyU4JUaHb7wUAgFVIKHQuBr/2bXiyrTvSX5Q X-Received: by 2002:a17:906:892:: with SMTP id n18mr5881973eje.1.1603865463984; Tue, 27 Oct 2020 23:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603865463; cv=none; d=google.com; s=arc-20160816; b=0EFXrnstY+v+H9rqktKWjgUDydJiMNh+yQwQS5INM75q13OSuDEaslTdHcFI0b9v+7 x1z1FknnZr2qWyjhUegNrtrKSIS6vJGolXiEzVVzDtsfWX0FX4MgR3gUvfj+XViW9Gtf jP3cw31tQhAoCgYGq71EaY6Jzzv76S3n7jVEp427ke9oau2a9eT6gzw5K9EBpvu+Z5m0 G+8IfVWYE8FnswCk+UznF4LFBJqFNpQwMxX3M013B070qlX3ZJgyoMw4m7G4G6iEQE/9 f4WXEydgPWTJYC/VMI3NBJo0BE8jmfIiScgvJhOAZJ99VWbZyUwe1KqhiTV2Z5Kp2JXN adaw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+OOfjhuhTD9zQyQKa367WJYfNXLO5sju7NGsP+LncHg=; b=poMDMG4hMs626DwxXJc78wk579Fnjknqz3Np1nYuQSRBZl1iUFqJ25oUZnzzfgb/HG Xuy6ZW9kmszWtvkcDIRS3mQGVn1d7JoH0iagvJK2RZ2OvQAMw4YQ4VxmAoygFA4NL8em MDy5Bh5VAkmVpt6pIaIXiJOMdPnyt/KpcWf+U3hBXnOsi+fK242jQ2Ier/qiVfLoVpvk yvBe0WBKeCBWB0R1ib1pN/GogSHJ+DZEbfUQfc0UQPUF7ZmOkMtqnyvfktSZdIVH8NyP QSG4HwbUgbvSR1u68/N+bYefN251xoNT2YlqgeLDtTbFXv0K0+QmEXNT8HctvhPaI4uJ 1qIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EfibJUiW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx9si2573514ejb.327.2020.10.27.23.10.42; Tue, 27 Oct 2020 23:11:03 -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=@gmail.com header.s=20161025 header.b=EfibJUiW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504610AbgJ0JTU (ORCPT + 99 others); Tue, 27 Oct 2020 05:19:20 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:36849 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387859AbgJ0JTT (ORCPT ); Tue, 27 Oct 2020 05:19:19 -0400 Received: by mail-wr1-f44.google.com with SMTP id x7so1029134wrl.3; Tue, 27 Oct 2020 02:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+OOfjhuhTD9zQyQKa367WJYfNXLO5sju7NGsP+LncHg=; b=EfibJUiWTOmw1OAgBReOF9qT+M2VDkU6Smvd2+iVxdSy8OqnMwJOpi4J107Dex99oB NX2UvZ3g5Xi0/X2lDsPc6wQ1pKzR3ayklDOAebOb2Rr+v0XZR2jYXQ7Lj3pqATLIBPz+ +PsLmjLmuUmttB3vSWSnPpS7P9ZqNJEeww7k1LgTIFebFEEd2INV5i7BQwZNfmo5ZS+6 VZnsW8802co1MNN9M9da9w31SZL2bbNifHmw+3c3B47Qvd1T6zXHTe6H4ovRxygNjS2E oKORkS2dRnJfhu6sG4FuGYOLym6BoQnrdzmWDuu42DCfG7q2h1PxZoz2pFm63+PhMpgQ zRhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+OOfjhuhTD9zQyQKa367WJYfNXLO5sju7NGsP+LncHg=; b=AY+bh08/HZeNVM9AZnXA2EUtSHn4kbZtEgoCXntERf+DKD9DzAbrcDjaK6Xd5D6cVt 0+xMUwko3+bpi0hCmFo3ECqHAyiQeqxa8BORWgYR2Itmw5W0Kw3rGtg10v7ecHmXlw/9 iygXUDSKZbr5rmBdG1YvmJjuZZ3SCPzx5KXGELL02gxAk+bsSoYmMt0L5qbXGFUzSBkd Cj7CxL5kwU9pOCLTN8OCgJ6sWQoz3WxgmMO0B0HR0z9MpaP8qVZDfFH/ZEm4QN9a5dbT D313XbtnfETyHXJIY31oD4TkcEiRicvcAzQ+pm8pWYAEa+4Nk7KOOnBDd8GHj5ER87wp 2apQ== X-Gm-Message-State: AOAM5333t4gFsC02AE7ZrVxCnhjFeyj5uuqowqrarYeOjnOB9iu6K/8o ESKMdebICysuE9S2MVOHocw= X-Received: by 2002:adf:d84e:: with SMTP id k14mr1745123wrl.251.1603790355966; Tue, 27 Oct 2020 02:19:15 -0700 (PDT) Received: from pce.localnet (host-80-117-125-178.pool80117.interbusiness.it. [80.117.125.178]) by smtp.gmail.com with ESMTPSA id x10sm1160524wrp.62.2020.10.27.02.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 02:19:15 -0700 (PDT) From: Elia Devito To: Mark Pearson , Hans de Goede Cc: dvhart@infradead.org, mgross@linux.intel.com, mario.limonciello@dell.com, hadess@hadess.net, bberg@redhat.com, linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [External] Re: [PATCH] [RFC] Documentation: Add documentation for new platform_profile sysfs attribute Date: Tue, 27 Oct 2020 10:19:12 +0100 Message-ID: <12633630.uLZWGnKmhe@pce> In-Reply-To: <1fbaf1fa-47c6-afe7-ca9e-41b3ad6a4556@redhat.com> References: <1fbaf1fa-47c6-afe7-ca9e-41b3ad6a4556@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi to all, In data marted=EC 27 ottobre 2020 08:54:44 CET, Hans de Goede ha scritto: > Hi, >=20 > On 10/26/20 8:55 PM, Mark Pearson wrote: > > Thanks Hans > >=20 > > On 26/10/2020 14:33, Hans de Goede wrote: > >> Hi Mark, > >>=20 > >> Thank you for this new version. > >>=20 > >> On 10/26/20 6:44 PM, Mark Pearson wrote: > >>> From: Hans de Goede > >=20 > > > >=20 > >>> + > >>> +If for some reason there is no good match when mapping then a new > >>> profile-name +may be added. Drivers which wish to introduce new > >>> profile-names must: +1. Have very good reasons to do so. > >>> +2. Add the new profile-name to this document, so that future drivers > >>> which also + have a similar problem can use the same new. > >>=20 > >> s/same new/same name/ > >=20 > > I've read this document so many times...I'm not sure how I missed that > > one. Thanks.>=20 > >>> + Usually new profile-names will > >>> + be added to the "extra profile-names" section of this document. B= ut > >>> in some + cases the set of standard profile-names may be extended. > >>=20 > >> With the change from a more generic API to this new one more targeted > >> towards DPTF I would drop this part. > >=20 > > OK - I have some questions then related to this change, below > >=20 > >>> + > >>> +What: /sys/firmware/acpi/platform_profile_choices > >>> +Date: October 2020 > >>> +Contact: Hans de Goede > >>> +Description: > >>> + Reading this file gives a space separated list of profiles > >>> + supported for this device. > >>> + > >>> + Drivers must use the following standard profile-names whenev= er > >>> + possible: > >>> + > >>> + low-power: Emphasises low power consumption > >>> + quiet: Offers quieter operation (lower fan > >>> + speed but with higher performance and > >>> + temperatures then seen in low-power > >>=20 > >> I think the description here is a bit too specific, this may cause > >> userspace to have expectations which are not necessary true. I would > >> describe this as just: > >>=20 > >> quiet: Emphasises quieter operation > >=20 > > Agreed. I'll update > >=20 > >>> + balanced: Balance between low power consumption > >>> + and performance > >>> + performance: Emphasises performance (and may lead to > >>> + higher temperatures and fan speeds) > >>> + > >>> + Userspace may expect drivers to offer at least several of th= ese > >>> + standard profile-names! If none of the above are a good match > >>> + for some of the drivers profiles, then drivers may use one of > >>> + these extra profile-names: > >>> + > >>> + > >=20 > > If we remove the extra profile-names section above then I think it shou= ld > > be removed here too. If someone wants to add a new 'mode' then it would > > be added to the list of 'standard names', and becomes a new option. > > Wanted to check I'm not missing something important. > You are completely right, any references to an extra profile-names section > should be removed here too. I did intend to add that it should be removed > here too, but I forgot. >=20 > >>> +What: /sys/firmware/acpi/platform_profile > >>> +Date: October 2020 > >>> +Contact: Hans de Goede > >>> +Description: > >>> + Reading this file gives the current selected profile for this > >>> + device. Writing this file with one of the strings from > >>> + available_profiles changes the profile to the new value. > >>=20 > >> The part about custom profiles below may be dropped. That was intended > >> for use with e.g. GPUs but since this now strictly is a system-level > >> profile API, the part below can be dropped now. > >=20 > > Agreed > >=20 > >>> + > >>> + Reading this file may also return "custom". This is intended > >>> for > >>> + drivers which have and export multiple knobs. Such drivers m= ay > >>> + very well still want to offer a set of profiles for easy of = use > >>> + and to be able to offer a consistent standard API (this API)= to > >>> + userspace for configuring their performance. The "custom" va= lue > >>> + is intended for when ai user has directly configured the kno= bs > >>> + (through e.g. some advanced control-panel for a GPU) and the > >>> + knob values do not match any of the presets represented by t= he > >>> + platform-profiles. In this case writing this file will > >>> + override the modifications and restore the selected presets. > >>> + > >>=20 > >> Regards, > >>=20 > >> Hans > >=20 > > Thanks! > > mark >=20 > Regards, >=20 > Hans This look good, only thing is that hp-wmi driver need a cool profile (Emphasises the comput= er=20 cool to touch), if you can add it would be perfect. Regards Elia