Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2438198pxb; Thu, 11 Feb 2021 12:19:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBXRwM89m+6J8hzdIItqOQ1qPjg06JsItJwKxsFvveSzk5vqCeJ/Lf0GZQm1sl2fjWhyYp X-Received: by 2002:a05:6402:1589:: with SMTP id c9mr10228844edv.282.1613074783583; Thu, 11 Feb 2021 12:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613074783; cv=none; d=google.com; s=arc-20160816; b=JhDA+zIizo5Q2Z8iV2rahP0uWmRR8YpnCIB+IYhfxD7VJVkf4R4Wbs/JlOrIPYFbXl TiGEceUkWCiwNQc7Uxv9NYg8xuBFG8XwmNSz6J7Tt9nlwv4V+33BOscxeS0o+OSgGdO9 yRTqKJX5drNW8CFUgWzlNpab0e98xCQw9JXwuSsqstT3W4B2NGFFngwq/GUpHmRs3F+m VYK5TpWD7xSa5ClJ+ghKMSsA92b7njBVyPvmrisAUwbKqtUka7Zn/zyJki3Z9ILH8AK2 7CMnvXMYVzICWIFyvNVNpIm+p2wNer9sSQkcYgvunHVV8mMHb7XehHsSm0mUIMP8K5hd ZpDQ== 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=7h/P68fi4XyowjoWEA/DZsqBXWvyY+Lwx+kBuaa3z2Q=; b=pXSm7VG4F3dfQEEAI8QlDXkD863trbb548UQFjOXrMAn0ji44i4K+KJ63y6NV+QHCc uGQG7LZ1Z+8vu0aiuDYr4qQlmTDBVxtf6A7wD2efE01/ej60wJnCHfnUaoUdiYsAxALa Fq2U58bZ5ZLvt5oPSJe93v3BLoS+tJ7XLDF4FKk3q0EKXE2KYH6H3Lt/4y/iWuwOo2Dg Hy1ryAuD4G8Q63ZQ6no2LopjspDsOCbY2DfbPJ8QQwpOQUTMcLJT7VTcnpg3whnzpl9e 3n6GmePrYdQZBMxgEFc7mWuvg0tDKrs8kV4kcI/B2JywLPkVMr5iRN5E6lcD5LP9U8tw s6rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BrLIhb7F; 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 d5si4391167edu.258.2021.02.11.12.19.19; Thu, 11 Feb 2021 12:19:43 -0800 (PST) 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=BrLIhb7F; 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 S231767AbhBKUSJ (ORCPT + 99 others); Thu, 11 Feb 2021 15:18:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231728AbhBKUR5 (ORCPT ); Thu, 11 Feb 2021 15:17:57 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8841C061756; Thu, 11 Feb 2021 12:17:16 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id w1so11948038ejf.11; Thu, 11 Feb 2021 12:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7h/P68fi4XyowjoWEA/DZsqBXWvyY+Lwx+kBuaa3z2Q=; b=BrLIhb7FgXeGt4Krf6DDIxY6dUT7v+kxo7nrmPnKPFyFd93HEBYaHtC5cZJPb968zU FyDSZ4SPeUTkTlOwn6HaaRWa4XAiRFN4tWMW2/MTgrgrx0xIpRBo1uO4/blGKa2NlW8y aK7e1BR7xEil47+QoaUzW5NCnT3J5NmT3u+4l3ea24KTGOkG7VaoA3uu+FJX1/0uGDwd e2Q1EpXH9Mu29p5Q5uopJlbP/yyseea/o4QzsayVZm4jVDZHn1lZ5OrVIk8Z6BAZm/pj 0wEMzXJYtVXIfJGmArg78JXFl7SdjmvDd3YucpYXvH4civWhHU5s2mQZ57NCFDF00yAc Oo+w== 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:mime-version :content-transfer-encoding; bh=7h/P68fi4XyowjoWEA/DZsqBXWvyY+Lwx+kBuaa3z2Q=; b=juImyTrZhGNVnpqXKGXlt504DwC3o97wkXt4owIiydKw2SNMrmioS3mdxfrWefvLXc VYbWj1toOTkw9ERHJa6q6FCld+lHFFMTBOBWCq4K0ACv69rkoEfluNmCiEDRVZXQ24FL LmmSInPur7YABcJEids+i1FeovUtXv24yihQl0X7VnHhPMd6iTzKoyGmB6+oiktlK9FZ fwKu4bKzDS+qxAH9e5/ky1RUStXqaeYWP4AsnW8/QYLfjMc//B9cQWQUQ95a8SPipnEI xvTB67SlTNeVimeykRBrKBL7re2W683HGkGE49N+3lmzVMG2FEmkwptIO/hK7lGvuFyz nVQg== X-Gm-Message-State: AOAM531ypXQX/+J1Q8rLZSSrCxRkDUCEyHZt1+uL+wOF13bFk/g6WZCl uA7+rkqQJ1eQEdh/hTw4LK8= X-Received: by 2002:a17:906:7698:: with SMTP id o24mr9757984ejm.504.1613074635665; Thu, 11 Feb 2021 12:17:15 -0800 (PST) Received: from xws.localdomain ([37.58.58.229]) by smtp.gmail.com with ESMTPSA id a1sm4938177edj.6.2021.02.11.12.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 12:17:15 -0800 (PST) From: Maximilian Luz To: Hans de Goede , "Rafael J. Wysocki" Cc: Maximilian Luz , Mark Gross , Len Brown , Mark Pearson , Jiaxun Yang , platform-driver-x86@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] platform/surface: Add platform profile driver for Surface devices Date: Thu, 11 Feb 2021 21:16:59 +0100 Message-Id: <20210211201703.658240-1-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds a driver to provide platform profile support on 5th- and later generation Microsoft Surface devices with a Surface System Aggregator Module. On those devices, the platform profile can be used to influence cooling behavior and power consumption. To achieve this, a new platform profile is introduced: the 'balanced-performance' profile. In addition, a couple of fix-ups are performed: - Hide CONFIG_ACPI_PLATFORM_PROFILE and change drivers so that it is selected instead of depended on. - Fix some references to documentation in a comment. Note: This series (or more specifically "platform/surface: Add platform profile driver") depends on the "platform/surface: Add Surface Aggregator device registry" series. Changes in v2: - Introduce new 'balanced-performance' platform profile and change profile mapping in driver. - Perform some fix-ups for the ACPI platform profile implementation: - Fix some references to documentation in a comment. - Hide CONFIG_ACPI_PLATFORM_PROFILE Maximilian Luz (4): ACPI: platform: Hide ACPI_PLATFORM_PROFILE option ACPI: platform: Fix file references in comment ACPI: platform: Add balanced-performance platform profile platform/surface: Add platform profile driver .../ABI/testing/sysfs-platform_profile | 18 +- MAINTAINERS | 6 + drivers/acpi/Kconfig | 16 +- drivers/acpi/platform_profile.c | 1 + drivers/platform/surface/Kconfig | 22 ++ drivers/platform/surface/Makefile | 1 + .../surface/surface_platform_profile.c | 190 ++++++++++++++++++ drivers/platform/x86/Kconfig | 4 +- include/linux/platform_profile.h | 6 +- 9 files changed, 237 insertions(+), 27 deletions(-) create mode 100644 drivers/platform/surface/surface_platform_profile.c -- 2.30.0