Received: by 10.192.165.148 with SMTP id m20csp2546352imm; Sun, 22 Apr 2018 09:17:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx48c+HdI9lWaqhKIsgpwh8Q5dCO90JY5/DBeImchyQtepnfkhcAy+zmSS1XFArRKHOFXrc6t X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr17799476plg.23.1524413822374; Sun, 22 Apr 2018 09:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524413822; cv=none; d=google.com; s=arc-20160816; b=oEDYL8tlIIzJ+ew7JktF2QvkQWy7nEiSGnu8AI0bTBKqI8596xWTLgfAwBOXOH3Gei BJa7Bis86LtHXUvDNusLoqemaiPYala1TuT5WpKqZpmCpinERYeAfZOAOii2myxPvPgc Bo9bvx+vNc4JYWGug9Cph99bLp7G0peifS0ayhEhEV1NRNuVc7wnx9Obm3PKA5cuXWvj WIwEIdIWkW5qH8uZQaR7dBL5fGs8ADBJj6RWwiPbGqYy79qDPbgzhoxVyiP7wDEoz+/J PzYIclgsNAyfn0os2mdwzvE7l77BVQDITYdXI4UQTz6AgRMmNWMIQaF9f/AigC310w80 NXYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=HsWy2WJ6vKjD38yR9BM4nWTOl6npYNbU762sAnRBCvo=; b=r1r65N8JYNKMb0in4TecJsV1GReaZ2DLp48ShkRN+egeq7fiS9SDAt/v6GJbL5Mnkt iqligC2cxUXixLfypGwqCt2BYFWNmwspG8doQT+6p9+E05HrH3BDKArRf/sKBrLWFIAr 6ADgpOs0UK0BU2earhbLybeb0sC6aeNeg/tsy8WqiO9x2/Lzul7pi9EumAEETk5oMT0/ //hU/KcGeSiF4a7FNWS3EAf/tULoZLb6tEKcD8SUBkHfvxeETvllni2ZCykE+1+Kqm/k abV37GQ6Qr8gjFdlpHMRIqqorrURZJMNNSqEobsaUGosnMzNbnUMoD0z7en0hQarfWGv lRbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24-v6si10306696plo.490.2018.04.22.09.16.48; Sun, 22 Apr 2018 09:17:02 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753656AbeDVQOm (ORCPT + 99 others); Sun, 22 Apr 2018 12:14:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44546 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753466AbeDVNzP (ORCPT ); Sun, 22 Apr 2018 09:55:15 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8A4564A5; Sun, 22 Apr 2018 13:55:14 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Marc Zyngier , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH 4.16 022/196] ARM: EXYNOS: Fix coupled CPU idle freeze on Exynos4210 Date: Sun, 22 Apr 2018 15:50:42 +0200 Message-Id: <20180422135105.268175706@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180422135104.278511750@linuxfoundation.org> References: <20180422135104.278511750@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Marek Szyprowski commit a7480dbcf983c31d8111f864c848e8a75116a87d upstream. Since commit 04c8b0f82c7d ("irqchip/gic: Make locking a BL_SWITCHER only feature") coupled CPU idle freezes from time to time on Exynos4210. Later commit 313c8c16ee62 ("PM / CPU: replace raw_notifier with atomic_notifier") changed the context in which the CPU idle code is executed, what results in fully reproducible freeze all the time. However, almost the same coupled CPU idle code works fine on Exynos3250 regardless of the changes made in the mentioned commits. It turned out that the IPI call used on Exynos4210 is conflicting with the change done in the first mentioned commit in GIC. Fix this by using the same code path as for Exynos3250, instead of the IPI call for synchronization with second CPU core, call dsb_sev() directly. Tested on Exynos4210-based Trats and Origen boards. Signed-off-by: Marek Szyprowski CC: # v4.13+ Acked-by: Marc Zyngier Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-exynos/pm.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -271,11 +271,7 @@ abort: goto fail; call_firmware_op(cpu_boot, 1); - - if (soc_is_exynos3250()) - dsb_sev(); - else - arch_send_wakeup_ipi_mask(cpumask_of(1)); + dsb_sev(); } } fail: