Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2038249pxk; Sat, 3 Oct 2020 06:21:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoNUjeOxwbKJu9Ib2nXkxpcHtcj03DfLB9XTo1YaMzg0jvGVuZJ3dsTH3cySX09+gup62c X-Received: by 2002:a05:6402:78b:: with SMTP id d11mr8705536edy.341.1601731277473; Sat, 03 Oct 2020 06:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601731277; cv=none; d=google.com; s=arc-20160816; b=eIJzfGiFnv7NKzceop26QkB/WhZ8wi8vpUrDdRgQXDIc0a4c6Kr9MaduKsGBG7NhEw 5siDkw3hhkGuVnyoFhRxLVBfdK0j6hZVNxoOxqaDtd536DvVHe0TBQ7YQqCEK8gbi+or EmtuvcA1G6x9Dctw8r/pRD3CBu/OqrsgJcClBKv/gbUfFQyX9EAUndF5lghsHvI+MUeB IBG3uhFkAoFcx040umgz5EQb4UKscYc5c70ya7Po06huqGUns6VkdxTLF6woZNRlbgbM DZpF0Q8nYsSTweIcyslI+77GfYGjnecnMGXzVGkw00izgyJGA8feYaRE/4dWuQ98GQAk xCjg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/cKRZRbGjxQLiOAezESANVcl7eCV24aeM9891f3ig80=; b=pNNOyVg9u3r1ZV8+W7oECHD8AjbYzVg70zmtqrMwUIM2jhq8WzwxPDU0bALl7YqfAw plRYvrfuretTFtJQXHlS+Cd6mEDOxMg7/XYwFWs6CMUEez15anmfwvDYip5XI4rmgQ3H hKHiNj+w8apfOCRq1STgrejl5qSry9E+WBEEMK+NbcZJYqsRSiLTpCBLm7Gz52a92hSG nOhK28qwanTjmH8PLhM0m1fG+j/iDXJObUq8NQ2VzFoA6f1u1NEFPM12pa/OgOVVXXl8 WHx3s1J3vPZnpO4bvnlUA5A6nc4obqBCcm+wfPaC++F9h8TAAFjv0gzpo1oxrwPIbaMN UyhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PVrlgU5O; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs17si3506725ejb.309.2020.10.03.06.20.52; Sat, 03 Oct 2020 06:21:17 -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=@redhat.com header.s=mimecast20190719 header.b=PVrlgU5O; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725797AbgJCNTt (ORCPT + 99 others); Sat, 3 Oct 2020 09:19:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57686 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbgJCNTt (ORCPT ); Sat, 3 Oct 2020 09:19:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601731188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/cKRZRbGjxQLiOAezESANVcl7eCV24aeM9891f3ig80=; b=PVrlgU5ORpDrpgstiTdg8DbQzx0ePTK436PyCqP/d++g0pCNvdt0qdBMCS1+gby/F+E0d0 QZ3fggiWhk/v7lRI/YhgR/CIjPYn5dwSuMO8hxgKCcf7XN9+omKClgdHf8srZAuPClcnzZ B2EpVlt/GZ32MqnXtHOw/o73W0x7du0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-433-WaKbc_-JNLGeBgxwrK0Tog-1; Sat, 03 Oct 2020 09:19:44 -0400 X-MC-Unique: WaKbc_-JNLGeBgxwrK0Tog-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 721741074641; Sat, 3 Oct 2020 13:19:42 +0000 (UTC) Received: from x1.localdomain.com (ovpn-112-65.ams2.redhat.com [10.36.112.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4F5B73677; Sat, 3 Oct 2020 13:19:39 +0000 (UTC) From: Hans de Goede To: Darren Hart , Andy Shevchenko , Mark Gross Cc: Hans de Goede , Mario Limonciello , Mark Pearson , Elia Devito , Bastien Nocera , Benjamin Berg , linux-pm@vger.kernel.org, linux-acpi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC 0/1] Documentation: Add documentation for new performance_profile sysfs class Date: Sat, 3 Oct 2020 15:19:37 +0200 Message-Id: <20201003131938.9426-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, Recently 2 different patches have been submitted for drivers under drivers/platform/x86 to configure the performance-profile of modern laptops (see the actual RFC patch for what I mean with a performance-profile). One for the thinkpad_acpi driver and one for the hp-wmi driver. Since I don't want each pdx86 driver to invent its own userspace API for this I have started a dicussion about coming up with a standardized / common sysfs class / API for this on the pdx86 list: https://www.spinics.net/lists/platform-driver-x86/msg22794.html The sysfs API proposal which I'm sending out as RFC in this email thread is the result of me trying to distill that discussion into a concrete proposal. I have Cc-ed the linux-pm and linux-acpi lists because even though the trigger for doing this is 2 different pdx86 drivers, the resulting API should (must even) also be suitable for other platforms. I can e.g. see various modern ARM platforms also having similar functionality which they may want to export to userspace and the ideally the userspace code for allowing the end-user to configure/select a profile would be the same under ARM and x86. Talking about userspace I've also Cc-ed Bastien and Benjamin who are working on the userspace side of this. Regards, Hans