From patchwork Tue Mar 18 17:56:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 26506 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2A5CF202FA for ; Tue, 18 Mar 2014 17:58:58 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf29371010oag.4 for ; Tue, 18 Mar 2014 10:58:57 -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=8NNuW0noA+eMlQMV0veCTXlRTjp1uA29MS7VUGSHsVY=; b=i5MJHNkxMmPY2R1RFBYvliiYI9n8DFRhoUaAOjL2CZqwtkZzBoXO93imkG0Zahaly8 6u1ayizKXKIGWVNpoBNiwd6Gq1tKXv7uYQkvqsvQl5q+6gTRTdIa3Myn9T6YzNLH77fp eq8Fb7LtbIhzILJDY/XAARqfowMlPmKMOvSlQs3c6IS8A5glreKLzKw33c5PgGZTkyKP 149HHzRMo5Ykac/PAcnyjkaOA/j5i+hPZVDQjnZ2myjecEJb4lTBKzAlMe+Sb+qkXvNO UwYVWxkOck+nUyKLUkEIVBQK6dxlDPmHw07LpuExTlL2e6u4IPHdDtWnojrvF5GdjayQ silg== X-Gm-Message-State: ALoCoQmCfzdfXEuzWSKhGSfmDCvrhLZz8dZBHfaun9U+Vr2O+QgQ5R/Pzts7r+8Yze4xLu3NYJbT X-Received: by 10.43.4.4 with SMTP id oa4mr10647844icb.2.1395165537685; Tue, 18 Mar 2014 10:58:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.184 with SMTP id w53ls2170989qge.45.gmail; Tue, 18 Mar 2014 10:58:57 -0700 (PDT) X-Received: by 10.58.57.42 with SMTP id f10mr25969259veq.1.1395165537535; Tue, 18 Mar 2014 10:58:57 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id av10si5073109ved.36.2014.03.18.10.58.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 10:58:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 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.182; Received: by mail-vc0-f182.google.com with SMTP id ks9so7625256vcb.41 for ; Tue, 18 Mar 2014 10:58:57 -0700 (PDT) X-Received: by 10.220.103.141 with SMTP id k13mr7858366vco.25.1395165537427; Tue, 18 Mar 2014 10:58:57 -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 i9csp232492vck; Tue, 18 Mar 2014 10:58:56 -0700 (PDT) X-Received: by 10.66.216.129 with SMTP id oq1mr34442927pac.75.1395165536533; Tue, 18 Mar 2014 10:58:56 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si11002780pbo.92.2014.03.18.10.58.55; Tue, 18 Mar 2014 10:58:55 -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 S1757464AbaCRR6K (ORCPT + 26 others); Tue, 18 Mar 2014 13:58:10 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:59295 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757434AbaCRR5r (ORCPT ); Tue, 18 Mar 2014 13:57:47 -0400 Received: by mail-wg0-f43.google.com with SMTP id x13so6134231wgg.26 for ; Tue, 18 Mar 2014 10:57:46 -0700 (PDT) X-Received: by 10.180.105.65 with SMTP id gk1mr16120047wib.12.1395165466780; Tue, 18 Mar 2014 10:57:46 -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 pm2sm43784795wic.0.2014.03.18.10.57.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 18 Mar 2014 10:57:45 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, dietmar.eggemann@arm.com, preeti@linux.vnet.ibm.com, 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: linaro-kernel@lists.linaro.org, Vincent Guittot Subject: [PATCH v2 7/7] sched: powerpc: Add SD_SHARE_POWERDOMAIN for SMT level Date: Tue, 18 Mar 2014 18:56:49 +0100 Message-Id: <1395165409-18055-8-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1395165409-18055-1-git-send-email-vincent.guittot@linaro.org> References: <1395165409-18055-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.182 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 decribed in the link below: https://lkml.org/lkml/2014/3/12/16 Signed-off-by: Vincent Guittot --- 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");