Received: by 10.223.176.46 with SMTP id f43csp2656321wra; Mon, 22 Jan 2018 01:01:18 -0800 (PST) X-Google-Smtp-Source: AH8x224Z2p+wmNDrAvMBiQASwYxmMbewiFlVKNbIWxLDsNyRir4hDtJZiSz8SyV4FbRWHREad0oq X-Received: by 10.99.126.22 with SMTP id z22mr6677530pgc.231.1516611677955; Mon, 22 Jan 2018 01:01:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516611677; cv=none; d=google.com; s=arc-20160816; b=AHkAeW3kXD89RjlELLfoq4CEMNSLpPuAIbJ0NMB+osf04phJgRNZNIHu9vcWZtv1MT 5QbEjSyjLLMoyEBLMktYU4R+cBxs8hP509XIdQZDXV2pqsEwC/T/tUdhbJBtHu8Gn33W eryL3/bUH+KbSeU1JOXxbICdNxzm9bauX5W+WAwwAxteaW2nE7matprm1BdhvwalyLnv WZ2Uy4Fa79+XN5y5Xib6dM0oBdvMlK6X8/xyPiXSKr4hsxtXHXLge4Ddyub6lKaViSBQ wQcTomhuu3NmqwzL57N8M52eI2zL+y4OWMrzL+GDTjUEA+wcggAVTnCbtmfag2xPPaXk REFA== 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=puo3yYaahJZp3sm51th2wzC6NbYooKaQcX84m7/Klew=; b=YHW8+NXJQ8NMl/S5OCcKy1uNP3rMWl7SCKMJ+koYvY9or3cNTCSTgNhNg7wOmG4GEa 8kQVvJMF2tpYpWBeyDZV86tpaCn4yuv116+jQ2aGp1C9nsg76km/HkF+FIAPgAKnTVi6 8K8Y8HaGM3I0b61Q2xxeXt2cPfvqO1/0XR27czUXaX0cvHDVBBHqX7SvRzRG2ahg6MF4 OHkNjlrCsdJaqGXZdsB2ubY3XMqDSG1ctxvHFqvGKuAs2vDdKVJQOPOq7Y4HlQQ1YirX MPJbanVozGIax96wo7MHdxTBt7l/ltyxmxqVjaZCNwf+3RNc8CMDCdYfSgyidE4xRsPu yUNw== 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 x10si3353036pfi.400.2018.01.22.01.01.04; Mon, 22 Jan 2018 01:01:17 -0800 (PST) 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 S932111AbeAVIxq (ORCPT + 99 others); Mon, 22 Jan 2018 03:53:46 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34054 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932088AbeAVIxn (ORCPT ); Mon, 22 Jan 2018 03:53:43 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EB2EFF00; Mon, 22 Jan 2018 08:53:42 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, James Hogan , Paul Burton , linux-mips@linux-mips.org, Ralf Baechle Subject: [PATCH 4.14 78/89] MIPS: CM: Drop WARN_ON(vp != 0) Date: Mon, 22 Jan 2018 09:45:58 +0100 Message-Id: <20180122084002.242771771@linuxfoundation.org> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180122083954.683903493@linuxfoundation.org> References: <20180122083954.683903493@linuxfoundation.org> User-Agent: quilt/0.65 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: James Hogan commit c04de7b1ad645b61c141df8ca903ba0cc03a57f7 upstream. Since commit 68923cdc2eb3 ("MIPS: CM: Add cluster & block args to mips_cm_lock_other()"), mips_smp_send_ipi_mask() has used mips_cm_lock_other_cpu() with each CPU number, rather than mips_cm_lock_other() with the first VPE in each core. Prior to r6, multicore multithreaded systems such as dual-core dual-thread interAptivs with CPU Idle enabled (e.g. MIPS Creator Ci40) results in mips_cm_lock_other() repeatedly hitting WARN_ON(vp != 0). There doesn't appear to be anything fundamentally wrong about passing a non-zero VP/VPE number, even if it is a core's region that is locked into the other region before r6, so remove that particular WARN_ON(). Fixes: 68923cdc2eb3 ("MIPS: CM: Add cluster & block args to mips_cm_lock_other()") Signed-off-by: James Hogan Reviewed-by: Paul Burton Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/17883/ Signed-off-by: Ralf Baechle Signed-off-by: Greg Kroah-Hartman --- arch/mips/kernel/mips-cm.c | 1 - 1 file changed, 1 deletion(-) --- a/arch/mips/kernel/mips-cm.c +++ b/arch/mips/kernel/mips-cm.c @@ -292,7 +292,6 @@ void mips_cm_lock_other(unsigned int clu *this_cpu_ptr(&cm_core_lock_flags)); } else { WARN_ON(cluster != 0); - WARN_ON(vp != 0); WARN_ON(block != CM_GCR_Cx_OTHER_BLOCK_LOCAL); /*