From patchwork Wed Mar 19 16:22:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 26595 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f197.google.com (mail-ve0-f197.google.com [209.85.128.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 444B3203C3 for ; Wed, 19 Mar 2014 16:24:49 +0000 (UTC) Received: by mail-ve0-f197.google.com with SMTP id pa12sf21998179veb.0 for ; Wed, 19 Mar 2014 09:24:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=kW47HbSVbPNll8u+Xd9k2vGlqJFI4BnKXXVu6R4xdF8=; b=CAbLz6JNXg/vylrluJDOs7co8oSqEZLc9dm3OhppbIhVYa+XgljDjcxO3e40/5XG3+ jd/Ndzhra7v5cs7O56Ko/jIbid7yzGN5jKicIXVO2ozXkn/zoTTWiKAkAddLjyhTYXTB Xte+15Cucdca9VlzCH9ELEu2WDoDiFhLugnrq64j1o92X83KwNIGTGnYYeyWMWj6Aoeu pXTpES8H7yH6FMAxVSIuG1cH06+Kx4vs/F7DuiiNLngffgCA/yJxndzrhdSANZBrKgxP h9EaTfAyN8bW7ZNWFHadDF864Z7+cg+wA6D0Rp19v0BDtZXRMqIULOLCkHhky2iz6W+0 1ECQ== X-Gm-Message-State: ALoCoQlj/9vAN8vdkGakwmRNjRazdXgDhFQPuKeTHw6BdBCBh+uaeP65K0foAAIZyr4QrKDJjgEK X-Received: by 10.236.105.170 with SMTP id k30mr12218248yhg.30.1395246289043; Wed, 19 Mar 2014 09:24:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.33 with SMTP id q30ls2516483qgd.99.gmail; Wed, 19 Mar 2014 09:24:48 -0700 (PDT) X-Received: by 10.52.134.136 with SMTP id pk8mr35229vdb.70.1395246288946; Wed, 19 Mar 2014 09:24:48 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id y10si4581273vei.96.2014.03.19.09.24.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 09:24:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so9690582vcb.0 for ; Wed, 19 Mar 2014 09:24:48 -0700 (PDT) X-Received: by 10.52.50.178 with SMTP id d18mr50146vdo.53.1395246288846; Wed, 19 Mar 2014 09:24:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp314447vck; Wed, 19 Mar 2014 09:24:48 -0700 (PDT) X-Received: by 10.68.227.4 with SMTP id rw4mr41962531pbc.3.1395246287524; Wed, 19 Mar 2014 09:24:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si22098082pbc.268.2014.03.19.09.24.46; Wed, 19 Mar 2014 09:24:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934146AbaCSQYW (ORCPT + 26 others); Wed, 19 Mar 2014 12:24:22 -0400 Received: from mail-wg0-f50.google.com ([74.125.82.50]:43162 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932996AbaCSQYT (ORCPT ); Wed, 19 Mar 2014 12:24:19 -0400 Received: by mail-wg0-f50.google.com with SMTP id x13so7463219wgg.9 for ; Wed, 19 Mar 2014 09:24:18 -0700 (PDT) X-Received: by 10.180.164.106 with SMTP id yp10mr20838630wib.48.1395246258032; Wed, 19 Mar 2014 09:24:18 -0700 (PDT) Received: from lmenx30s.lme.st.com (LPuteaux-656-01-48-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPSA id j8sm57174788wjn.13.2014.03.19.09.24.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 09:24:17 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, tony.luck@intel.com, fenghua.yu@intel.com, schwidefsky@de.ibm.com, james.hogan@imgtec.com, cmetcalf@tilera.com, benh@kernel.crashing.org, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Cc: dietmar.eggemann@arm.com, preeti@linux.vnet.ibm.com, linaro-kernel@lists.linaro.org, Vincent Guittot Subject: [PATCH v3 6/6] sched: powerpc: Add SD_SHARE_POWERDOMAIN for SMT level Date: Wed, 19 Mar 2014 17:22:45 +0100 Message-Id: <1395246165-31150-7-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1395246165-31150-1-git-send-email-vincent.guittot@linaro.org> References: <1395246165-31150-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: vincent.guittot@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Set the power domain dependency at SMT level of Power8 but keep the flag clear at CPU level. The goal is to consolidate tasks on the threads of a core up to a level as explained by Preeti: "On powerpc we would want to clear the SD_SHARE_POWERDOMAIN flag at the CPU domain. On Power8, considering we have 8 threads per core, we would want to consolidate tasks atleast upto 4 threads without significant performance impact before spilling over to the other cores. By doing so, besides making use of the higher power of the core we could do cpuidle management at the core level for the remaining idle cores as a result of this consolidation." Signed-off-by: Vincent Guittot Reviewed-by: Preeti U Murthy --- arch/powerpc/kernel/smp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index c9cade5..fbbac3c 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -759,7 +759,7 @@ int setup_profiling_timer(unsigned int multiplier) /* cpumask of CPUs with asymetric SMT dependancy */ static const int powerpc_smt_flags(void) { - int flags = SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES; + int flags = SD_SHARE_CPUPOWER | SD_SHARE_PKG_RESOURCES | SD_SHARE_POWERDOMAIN; if (cpu_has_feature(CPU_FTR_ASYM_SMT)) { printk_once(KERN_INFO "Enabling Asymmetric SMT scheduling\n");