From patchwork Fri Apr 7 12:55:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 748246 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w00791rb2z9s8N for ; Fri, 7 Apr 2017 23:00:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MW15pO8d"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3w00790lWSzDqJx for ; Fri, 7 Apr 2017 23:00:37 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MW15pO8d"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pg0-x244.google.com (mail-pg0-x244.google.com [IPv6:2607:f8b0:400e:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3w002C6SFGzDqJx for ; Fri, 7 Apr 2017 22:56:19 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="MW15pO8d"; dkim-atps=neutral Received: by mail-pg0-x244.google.com with SMTP id 81so15433438pgh.3 for ; Fri, 07 Apr 2017 05:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=y8iqKKj5J95I7UIJ20EHBEtRH74xX0ULvMrV6UFSz7Y=; b=MW15pO8dq7buxF/5dae0EC29SaJm8ZM5hOiFRkH2EbGHNIeiSIj1untGAha25616vU I7MY9AOl0m8DLWnUk1OKFnZqb6/RyaUf7Ed7DykqVfLH7K1e10d54DmCsDvzy7Jmeyoo caUCyAbR6bOa36VsQ5m09sgjiBaXeKSleb6nzOo3BhtifA8tkmaerp1k5itcV60tbVqO +IUyI5ppSkR/jyHemBtPhq31LQX0zQNjmj+oefF54/doMJNqngcWRQdcOTmaPcCYuyUt k0oqH7m4q/USRMJ/7wLIdKtLJwRviHiY4pngPRYzgN0stRlEemmtN6BuL+QbcLs8tq6G hkIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=y8iqKKj5J95I7UIJ20EHBEtRH74xX0ULvMrV6UFSz7Y=; b=HX0f43ReCOeYV0yzdIfEmr/PQ8igjihilueRzzkI0qQTzKxUKsJe5q0KDTr05v5bF8 33SnlvO9Yrf0YiFt0idEWAlgPXMM5Qkcnri8086I0xtFo/OvCKykrKX2NDdcxucGBl5f TO5U5+uiu6SyunjhjeE3Mt6ZzXKokyBO3UkL3wLP4p73kKPCRWjD0b7OgUPsvT0G9WAs wzL9iqaWiHq0cQnjnnnpCcRHHSn+brOvfGx1wZJDXzb8b/3XKUrLkiLu0yCUDlhlr0On roPhA2GahcOUOqbM/Td4qIlwmKkaJ0a8pZzHeurqdroSa4thdrgAENJdN1G2y9V1Tg6g XkZQ== X-Gm-Message-State: AFeK/H3E6fvX9r3rEDlosV8Lu8Nsc/7vIwOKq2Rurz9TlZInNeKC/vZrfcxAFXx4f1pzwA== X-Received: by 10.99.53.135 with SMTP id c129mr35750029pga.37.1491569777326; Fri, 07 Apr 2017 05:56:17 -0700 (PDT) Received: from roar.au.ibm.com ([203.221.48.234]) by smtp.gmail.com with ESMTPSA id y6sm9715663pgc.40.2017.04.07.05.56.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 05:56:16 -0700 (PDT) From: Nicholas Piggin To: linuxppc-dev@lists.ozlabs.org Subject: [PATCH 1/5] powerpc/pseries: do not use msgsndp doorbells on POWER9 guests Date: Fri, 7 Apr 2017 22:55:58 +1000 Message-Id: <20170407125602.31146-2-npiggin@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170407125602.31146-1-npiggin@gmail.com> References: <20170407125602.31146-1-npiggin@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" POWER9 hypervisors will not necessarily run guest threads together on the same core at the same time, so msgsndp should not be used. Signed-off-by: Nicholas Piggin --- arch/powerpc/platforms/pseries/smp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index f6f83aeccaaa..1fa08155206b 100644 --- a/arch/powerpc/platforms/pseries/smp.c +++ b/arch/powerpc/platforms/pseries/smp.c @@ -200,7 +200,12 @@ static __init void pSeries_smp_probe(void) { xics_smp_probe(); - if (cpu_has_feature(CPU_FTR_DBELL)) { + /* + * POWER9 can not use msgsndp doorbells for IPI because thread + * siblings do not necessarily run on physical cores at the same + * time. This could be enabled for pHyp. + */ + if (cpu_has_feature(CPU_FTR_DBELL) && !cpu_has_feature(CPU_FTR_ARCH_300)) { xics_cause_ipi = smp_ops->cause_ipi; smp_ops->cause_ipi = pSeries_cause_ipi_mux; }