Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3501731pxb; Fri, 11 Feb 2022 00:56:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJx9zEQnBaM6qM2FCIc0arOiErFvL2A399AKhFqxBkcIN59YJgiyEgCDkco3y+zC71Go6k8S X-Received: by 2002:a05:6402:1601:: with SMTP id f1mr764866edv.165.1644569774149; Fri, 11 Feb 2022 00:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644569774; cv=none; d=google.com; s=arc-20160816; b=MBg3xgtp9f7hOUADepVpJY929eWRFUElhGX8A/BAhJoHdOlsmvUDpu6pWjnHh3cX0j R/u/8arQmGM45tLJaNHTbn/ux1tmY6KlsFgzggLm8m80EOUsqjhrYBT6aizbvlhgLNwK hzR1dKP4A1OmN1EF7CtjDQIElCavSoa6frHdKo3/bW7alPp8GjwdSr7bAN3X11GSs21U 705pvpT2GK39bTTZ4DmGBQYyOu4XOLj894pB72+KpTlr2WWlSzNeeqR8UqR9jOkiJv9o 9Dug4wtdD8+ZGAo6ecXmDzZp1FiAakGAFxnch6DhNQ/bMwp/StFIx2RrKhfCaDFi1O6m I47Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=MN83LUNySsdQ7VulRqngarkrRlNlwDd0oOEpK90Xa/s=; b=bPIsdnBoQH+rzNZ7m5+0QB3UJdIpzRGalNngQTVLeYF+Dfn0xf5OwXM5rM8zdXJii6 1WGqHFw18PX4CnzBS9+zM/Ol44p5f8u4m37puMW0dh33qoLKBofFH25aQBF2gETjhj9L DZ4vYEQ3O+ufR9CL6d2bG9afP/xw2J2a8INd1HZ/Fh4kLs5OCtqb2y/nIyb/tk+r/w3X N0/kkbADQxfyhZEJ4ihVt2iUwaOAANaW7QqDJFmckJsChUxB7dFl/Gbs03VTM3RnRcgU VbgJNmvDRtwOPaaxmlCT2z/FMssj9UJxA5OkpbW4Mr8Sep+aJv+0gntHz4xj0uRbpBtB mm1A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13si14738027edj.500.2022.02.11.00.55.49; Fri, 11 Feb 2022 00:56:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240838AbiBJLWH (ORCPT + 99 others); Thu, 10 Feb 2022 06:22:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:32982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240774AbiBJLWF (ORCPT ); Thu, 10 Feb 2022 06:22:05 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AC263F46; Thu, 10 Feb 2022 03:22:06 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 77D27ED1; Thu, 10 Feb 2022 03:22:06 -0800 (PST) Received: from [10.57.17.101] (unknown [10.57.17.101]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ED6A03F73B; Thu, 10 Feb 2022 03:22:03 -0800 (PST) Subject: Re: [PATCH v5 6/7] thermal: netlink: Add a new event to notify CPU capabilities change To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux PM , the arch/x86 maintainers , "open list:DOCUMENTATION" , Len Brown , Srinivas Pandruvada , Aubrey Li , Amit Kucheria , Andi Kleen , Tim Chen , "Ravi V. Shankar" , Ricardo Neri , Linux Kernel Mailing List , Ricardo Neri , Daniel Lezcano References: <20220127193454.12814-1-ricardo.neri-calderon@linux.intel.com> <20220127193454.12814-7-ricardo.neri-calderon@linux.intel.com> From: Lukasz Luba Message-ID: Date: Thu, 10 Feb 2022 11:22:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/30/22 3:20 PM, Rafael J. Wysocki wrote: > On Thu, Jan 27, 2022 at 8:33 PM Ricardo Neri > wrote: >> >> From: Srinivas Pandruvada >> >> Add a new netlink event to notify change in CPU capabilities in terms of >> performance and efficiency. >> >> Firmware may change CPU capabilities as a result of thermal events in the >> system or to account for changes in the TDP (thermal design power) level. >> >> This notification type will allow user space to avoid running workloads >> on certain CPUs or proactively adjust power limits to avoid future events. >> >> The netlink message consists of a nested attribute >> (THERMAL_GENL_ATTR_CPU_CAPABILITY) with three attributes: >> >> * THERMAL_GENL_ATTR_CPU_CAPABILITY_ID (type u32): >> -- logical CPU number >> * THERMAL_GENL_ATTR_CPU_CAPABILITY_PERFORMANCE (type u32): >> -- Scaled performance from 0-1023 >> * THERMAL_GENL_ATTR_CPU_CAPABILITY_EFFICIENCY (type u32): >> -- Scaled efficiency from 0-1023 >> >> Cc: Andi Kleen >> Cc: Aubrey Li >> Cc: Lukasz Luba >> Cc: Tim Chen >> Cc: "Ravi V. Shankar" >> Reviewed-by: Len Brown >> Signed-off-by: Srinivas Pandruvada > > Daniel, Lukasz, if you have any comments or concerns regarding this > patch, please let me know. > My apologies Rafael, I missed that email. I've looked at the patches 6/7 and 7/7 and they look OK with the scaling.