From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3F25C433E0 for ; Mon, 20 Jul 2020 07:53:51 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A2E020674 for ; Mon, 20 Jul 2020 07:53:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oCL2Rm8r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A2E020674 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4B9DWJ66kHzDqcS for ; Mon, 20 Jul 2020 17:53:48 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::242; helo=mail-oi1-x242.google.com; envelope-from=jniethe5@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=oCL2Rm8r; dkim-atps=neutral Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4B9DS24cDbzDqRD for ; Mon, 20 Jul 2020 17:50:58 +1000 (AEST) Received: by mail-oi1-x242.google.com with SMTP id e4so13750486oib.1 for ; Mon, 20 Jul 2020 00:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=imEPoWPH8pxEZZLWgHSKw+O7wsYom1fFsNXxdzGBe+k=; b=oCL2Rm8r4aEZ5wyeuwGKIUbeKmOYVFp1GnlwrNNCxZK+MjhH26AWaBFXbnuQFpMh1o WzE36QP/lGptlxPuSbeh8/GaM/L9zAeq3pWfqLF/cL3tGbo5v7c/rnmbaxTGm6mdA7jP tX2H0oWRjSIty9bdhP3rY8UynoDHtbBiMy+HzVp/jXeUgXEdBTKgrTmPmPPYWB2qlVDe 03+2NVW6GNS1oYhu4wcGwJotiSp869wp5m3atjdaOQxxbnJBvics20wMAW62fkTaVNiW Hd9ZYCeUUBARSSL7qwa8bY64HLsIb2qRrL33CnykqXbyaMBqJ2pApOcOyFZox8o4FXPG FzBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=imEPoWPH8pxEZZLWgHSKw+O7wsYom1fFsNXxdzGBe+k=; b=r1Z2CU5SXfkhJrXeFlDomsYdZa0s3V2EhoYDH7o/WNP/HfvnoDKA/jI30B85cTYfvx TWn6oIDAwhnHDQMcDj8ZxecoUCKPT10i1zgx+AgL2dcGgxRQj6BwTmwUSWAFJctcQ0cZ Qt9ZO2pwCVOZZWZBb5P52UDQP48mk+64s0SBjU349vuBYeMpNPMCV9eNlwja6/ECJQfo O83XujUqzstogHhOpQjfmkIw/8JBKG/fHH1B7PpYykXDtn7Khq6draPsJlEtv/IkaHHr CaHOTmcKL9SakLu6mf4TIJZF2ccDyBOdGysUSlefNpGgXR4a+/Vdd27NFVi3w44QGKAQ nFEA== X-Gm-Message-State: AOAM531vdMyrloqI/oxwJnI0c8XA2p7eMZGqzqgz4yreqQD/4x53uvq1 G6w5XorKx9MUut90l86bZAZcIN06LT0wWOm7pr4= X-Google-Smtp-Source: ABdhPJzHM8SUxJBLzQrx/IXNQgbIFUAtTq+W4djQi1qmbHN6OQzNoL5nybH99ObpR5XAHdrC9eWu8etnHr9Gi8fi/s8= X-Received: by 2002:a54:4418:: with SMTP id k24mr16434637oiw.126.1595231454104; Mon, 20 Jul 2020 00:50:54 -0700 (PDT) MIME-Version: 1.0 References: <20200714043624.5648-1-srikar@linux.vnet.ibm.com> <20200714043624.5648-5-srikar@linux.vnet.ibm.com> In-Reply-To: <20200714043624.5648-5-srikar@linux.vnet.ibm.com> From: Jordan Niethe Date: Mon, 20 Jul 2020 17:47:27 +1000 Message-ID: Subject: Re: [PATCH 04/11] powerpc/smp: Enable small core scheduling sooner To: Srikar Dronamraju Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nathan Lynch , Gautham R Shenoy , Oliver OHalloran , Michael Neuling , Michael Ellerman , Anton Blanchard , linuxppc-dev , Nick Piggin Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Jul 14, 2020 at 2:44 PM Srikar Dronamraju wrote: > > Enable small core scheduling as soon as we detect that we are in a > system that supports thread group. Doing so would avoid a redundant > check. > > Cc: linuxppc-dev > Cc: Michael Ellerman > Cc: Nick Piggin > Cc: Oliver OHalloran > Cc: Nathan Lynch > Cc: Michael Neuling > Cc: Anton Blanchard > Cc: Gautham R Shenoy > Cc: Vaidyanathan Srinivasan > Signed-off-by: Srikar Dronamraju > --- > arch/powerpc/kernel/smp.c | 12 ++++++------ > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c > index 24529f6134aa..7d430fc536cc 100644 > --- a/arch/powerpc/kernel/smp.c > +++ b/arch/powerpc/kernel/smp.c > @@ -892,6 +892,12 @@ static int init_big_cores(void) > } > > has_big_cores = true; > + > +#ifdef CONFIG_SCHED_SMT > + pr_info("Big cores detected. Using small core scheduling\n"); Why change the wording from "Big cores detected but using small core scheduling\n"? > + powerpc_topology[0].mask = smallcore_smt_mask; > +#endif > + > return 0; > } > > @@ -1383,12 +1389,6 @@ void __init smp_cpus_done(unsigned int max_cpus) > > dump_numa_cpu_topology(); > > -#ifdef CONFIG_SCHED_SMT > - if (has_big_cores) { > - pr_info("Big cores detected but using small core scheduling\n"); > - powerpc_topology[0].mask = smallcore_smt_mask; > - } > -#endif > set_sched_topology(powerpc_topology); > } > > -- > 2.17.1 >