Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp517953rdg; Thu, 12 Oct 2023 12:15:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHA8SY7tDIIRNfkQ1nr5ptwxVJn2V8nWaS1KFl6PJGQ9dq12kv2OCXxt/pbJpCEYnfT6YKu X-Received: by 2002:a05:6a20:7d98:b0:161:28e0:9abf with SMTP id v24-20020a056a207d9800b0016128e09abfmr26810725pzj.19.1697138100149; Thu, 12 Oct 2023 12:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697138100; cv=none; d=google.com; s=arc-20160816; b=HvhIVXB5KSdhVBHOJBor4SOtTyIgv+FthkWEYxoGfbJ4pEOVU7AueL6zVxCSt1fNNI 6ueGRg9jVOOFt+8dNbwn/yA2v+H9eTjmmbQGrOKz6KuuP/qlbHb38I6VRjjosyrKgm6n aq5mTecYlXTwY1GiSSun6lWH7yCrX9QrX4QrS+ov+VXfdIS0HrtM2fkP3COillztLobc 7MdhpqqKJD0NDi9qn9+f6THUntRUeBW5URk/gZEC1f/wdSyf7rT9hqMAS96rkaa8R8an rdIpfPLk0Bibbk9Q956rV0Rn+AvlwCAA+6BbFa+WpVKdb7aEisnqI7ArP/w7KuHbqtMF dOPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=BHm+sL/h9VA5rpspFAKPZUJ56GaZ24dN8p2xPY/bFnY=; fh=XoXAgGHh0dPnqG+yhKwe7AxiOXZFBY0ZjBqiRCiq+GU=; b=mGvg7ScNiJS+1s/uyfEzuoL6MW4jacviLUifTGynXH3BXOZxuZdqjNbEVeJL7F45Q1 j2RQ97CPI2zQo5jFqV8TcHN3mBZh3v3cW4WsaFOs1mF0ZFjw70bOz8SsQyWpMDV/XH+f EbMCOA2V10gHzroxQ2yyas8+26G3Vvyjh284h69RpCui0YTZvIdRRQjsvmb0Fs9hRUqL jVzbnyi9WWDr1UEIpkDCeerlbzaIsmRM/7Qj+8GeHfdkJfMzQJjqThUCoOt0y4oJC2ts thfzPIl+GiZpb7LbIokKEKDDkqz94lzCyH/vtxMbkKgK/EfSqJH/btaSO+VJFHdKitGp lOqg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d4-20020a17090ab30400b00276ea6d9ac3si2703928pjr.182.2023.10.12.12.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AB3B081C46CA; Thu, 12 Oct 2023 12:14:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442012AbjJLTOu convert rfc822-to-8bit (ORCPT + 99 others); Thu, 12 Oct 2023 15:14:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344140AbjJLTOt (ORCPT ); Thu, 12 Oct 2023 15:14:49 -0400 Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A79FBB7; Thu, 12 Oct 2023 12:14:48 -0700 (PDT) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-1e99a55a9c0so112543fac.1; Thu, 12 Oct 2023 12:14:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697138088; x=1697742888; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LT61jJcy+T9cpr72bcE+s5GrJr0v/YeWRBlC23o1xQY=; b=LYnmW11vs1HDEVFvOuJBZcxDmVs0ALRa41xcbK35mbcVw/9QxoTGxeKFFn4SfIqz8q XGK0erE6Jb6Oyj7/ocJ3rwpNnzmRpFWx+cuklAxpX47MixA8QxTX5uSgrozVD58nqF+p qNV9xNy2FEhXeKPzE3iBc7tlPrpPojDodKezFHcgH7SL/xBaGteRszPVU1UjWtOjVmUV IDKnaMQcFnUhgyRIHLhk200b8JGBmNIrTF8ekJO0KfCGMJNHwtPQ9ifIjWpVBbdTs9J/ HFVYNFZ6kq8eA/MzBlvs9JwbTiH/PyUiKYQzK/nFG8NZ9RuHrIFPxXBppwh0nsZ1HYuB 9YcA== X-Gm-Message-State: AOJu0Yzk4KdXAgCR7rtmTqyt0tHV66p8c+a9bwZ4x6LrMk7vIcioNg2b bOIOAq2s33DYefApxYgsKwruBZP4aDYsaHKgVpY= X-Received: by 2002:a05:6820:390:b0:57c:6e35:251e with SMTP id r16-20020a056820039000b0057c6e35251emr23868576ooj.1.1697138084151; Thu, 12 Oct 2023 12:14:44 -0700 (PDT) MIME-Version: 1.0 References: <20231009190538.2488792-1-srinivas.pandruvada@linux.intel.com> In-Reply-To: <20231009190538.2488792-1-srinivas.pandruvada@linux.intel.com> From: "Rafael J. Wysocki" Date: Thu, 12 Oct 2023 21:14:33 +0200 Message-ID: Subject: Re: [PATCH v2 0/7] thermal: processor_thermal: Power floor status To: Srinivas Pandruvada Cc: daniel.lezcano@linaro.org, rafael@kernel.org, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 12:14:57 -0700 (PDT) On Mon, Oct 9, 2023 at 9:06 PM Srinivas Pandruvada wrote: > > Support power floor notifications for Meteor Lake processors. > > The first three changes is to prepare for power floor status and others > add support for power floor. > > v2 > - Use common define for offset > - Fix potential race during clearing of interrupt with workload hint > - Address comment for v1 for > thermal: int340x: processor_thermal: Support power floor notifications > > Srinivas Pandruvada (7): > thermal: int340x: processor_thermal: Move interrupt status MMIO offset > to common header > thermal: int340x: processor_thermal: Common function to clear SOC > interrupt > thermal: int340x: processor_thermal: Set feature mask before > proc_thermal_add > thermal: int340x: processor_thermal: Support power floor notifications > thermal: int340x: processor_thermal: Handle power floor interrupts > thermal: int340x: processor_thermal: Enable power floor support > selftests/thermel/intel: Add test to read power floor status > > .../driver-api/thermal/intel_dptf.rst | 8 ++ > .../thermal/intel/int340x_thermal/Makefile | 1 + > .../processor_thermal_device.c | 68 +++++++++- > .../processor_thermal_device.h | 11 ++ > .../processor_thermal_device_pci.c | 43 ++++-- > .../processor_thermal_power_floor.c | 126 ++++++++++++++++++ > .../processor_thermal_wt_hint.c | 3 - > tools/testing/selftests/Makefile | 1 + > .../thermal/intel/power_floor/Makefile | 12 ++ > .../intel/power_floor/power_floor_test.c | 108 +++++++++++++++ > 10 files changed, 365 insertions(+), 16 deletions(-) > create mode 100644 drivers/thermal/intel/int340x_thermal/processor_thermal_power_floor.c > create mode 100644 tools/testing/selftests/thermal/intel/power_floor/Makefile > create mode 100644 tools/testing/selftests/thermal/intel/power_floor/power_floor_test.c > > -- Whole series queued up as 6.7 material. I've edited a couple of changelogs to clarify them a bit and changed the documentation of the new sysfs attributes somewhat, so they don't talk about RAPL directly, because I think that the key point here is that if the power floor is signaled, the configuration of the system needs to be changed in order to reduce power below the current level.