From patchwork Fri Jan 27 20:20:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: srinivas pandruvada X-Patchwork-Id: 4656 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1033316wrn; Fri, 27 Jan 2023 12:39:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXteyCITARlry/OAekfLXEO5MgWXvm0jQlNXl00Ef/8ekv+AZZyFTVrdeYvlSOanHCZdl+ov X-Received: by 2002:a05:6402:448:b0:492:798:385e with SMTP id p8-20020a056402044800b004920798385emr56960793edw.33.1674851961486; Fri, 27 Jan 2023 12:39:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674851961; cv=none; d=google.com; s=arc-20160816; b=kAf9kG/eXMo1bTAva8HQeerXMzmIm9QqjcDd7T26ZI6FDyWZ67iTG8NnaT7QdETy9w TWy2CrJupWvUFG4fqkdIwhAQf4ZKED5UMUSwZx+6DcbQ2gXltb84x4LIdg4rR4YfazEd pTdkGxiS+T6zs1H34UkQPe89h3X/oW3jJd5ceoDGD8lr3TYxvu7QMxFzl3jvaBtm+qsY ZtaCif1YmzIy95PXJ06J4T9V7S3NUNmRrpnABaGf9ZMNwpmGEB/3vlecNKOz1AA7VIo7 WjgB/wbkrb3iHav21F+gK3FEwtRIhG74soXiA9LNnu0999ni+51/hDzLP6R+i/Z2pQzH 36RQ== 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=SpG0vBMY0f1K8A2VU7gpwRdDSHpC6xU5nikliTRhmJ0=; b=oUwl0kwh7T2uVYu2yHWEskFUQjot1Bb4Wx2jfvnl2cj/FQDpCoinH1YPvQ7pFajXbS E/bMixRg6oicyW73lXBEFlxkRyuvZswx+PaQjiMDJQK3orZM9yf0DPYPG0dFhcb2qoUj RixARcjR+JYcyw++i4ePq2oXZeZ19Du2okKWw5JhRD8ayqKeyfDGu73yimKjtdElF3pg XNitmIJairPNgwZZ9ZK0fBj/xmwb5Lb6UTWsP0vOGdaszBkVZ9WX6ajymbTulkEkGG1m peRFIysrtOxKoYRFQk2dMPtv9QuZIzS0KW+zX7EvBkM5gjdNR4BkfudknYIH8YmHfYhj SEFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ShwA5t33; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020aa7d8cc000000b0049e43636f8asi6075231eds.610.2023.01.27.12.38.58; Fri, 27 Jan 2023 12:39:21 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=ShwA5t33; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233186AbjA0UVB (ORCPT + 99 others); Fri, 27 Jan 2023 15:21:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232517AbjA0UU7 (ORCPT ); Fri, 27 Jan 2023 15:20:59 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5071751B7; Fri, 27 Jan 2023 12:20:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674850857; x=1706386857; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=u6MpzPbX664ez0Ky4XTyLndB/xCrayjarXRpIpUFxhE=; b=ShwA5t33oBbUhynOLU/7dtTV2knF55nZWGpubYMFlUWMAXUTMO5guAeB EE81bpoZ9Ol4Kn0pmZ0W5mRoa8Om/P55W8NtZghXmS5g3Ha8TV+GyRJW0 g8BVA1fc4BBccvj/tsvKUol72xqdpdYjJa6G6u7fvT9IpSwhdbaMqx856 ADYQe7/JhRiUzc5q34UGH6Pqu2WQCayBEK2O/zBiIyDWfFuypzenAKsI9 oOBy8gTXvXHcHKjBeuYBJsoixiqa5Aah4aKsynQcKPTOAflIm2Gj4o8Pw pLbOdcy/1EC8Gmqzgv3kkA0mtHHgad5sXjsK8uKezWTgLEtsgJDDaOohH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="310804592" X-IronPort-AV: E=Sophos;i="5.97,252,1669104000"; d="scan'208";a="310804592" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2023 12:20:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10603"; a="693840010" X-IronPort-AV: E=Sophos;i="5.97,252,1669104000"; d="scan'208";a="693840010" Received: from spandruv-desk.jf.intel.com ([10.54.75.8]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2023 12:20:56 -0800 From: Srinivas Pandruvada To: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Pandruvada , kernel test robot Subject: [PATCH v4 0/3] Use idle_inject framework for intel_powerclamp Date: Fri, 27 Jan 2023 12:20:45 -0800 Message-Id: <20230127202048.992504-1-srinivas.pandruvada@linux.intel.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756209570674677932?= X-GMAIL-MSGID: =?utf-8?q?1756209570674677932?= Dropped the per core idle injection patch from this series. Hence the subject of this series is changed. Now it is just for using idle inject framework for intel_powerclamp. The old cover letter: This series introduces per CPU idle injection. In preparation for this enhance the existing powercap/idle_inject and modify intel_powerclamp to use this. Then add per core idle injection driver. v4: - Dropped the per core idle inject patch v3 - Change callback from per CPU to per device and use in intel_powerclamp - Remove unused var in per cpu idle injection module v2 - Update based on feedback from Rafael on patch 2/4 - Kconfig dependency issue Reported-by: kernel test robot Srinivas Pandruvada (3): powercap: idle_inject: Export symbols powercap: idle_inject: Add update callback thermal/drivers/intel_powerclamp: Use powercap idle-inject framework drivers/powercap/idle_inject.c | 57 +++- drivers/thermal/intel/Kconfig | 2 + drivers/thermal/intel/intel_powerclamp.c | 374 ++++++++++------------- include/linux/idle_inject.h | 3 + 4 files changed, 209 insertions(+), 227 deletions(-)