Received: by 10.223.185.116 with SMTP id b49csp721223wrg; Wed, 21 Feb 2018 05:58:00 -0800 (PST) X-Google-Smtp-Source: AH8x226VcIgS49Idd2T1DaHQEQf+YstmOp1VXvWLdZHdfi6gAUG3PUFq5V2F/l8A6zFFURjQ5MGa X-Received: by 10.99.158.84 with SMTP id r20mr2730841pgo.296.1519221480753; Wed, 21 Feb 2018 05:58:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519221480; cv=none; d=google.com; s=arc-20160816; b=Lq+cHvPLO9VhYOG4TDwMVMqUKAGa5JED9lvoXzGVgij39PmwyDsozzbs+sObj+wj7I uT3IijXuL4fNBQtumOxQ2QSEKbf1X7IYpaNhuaZ9V91B7ZdxoRiBBsPIskhmadiygHoT 0N+hVQ6PF5d4jVvFoCo4fbUUxT2RKKuIYR6Yxow+if+azTDMuG+jwS8S9ooSQOT86fuF n3bjW0rQpDg6gNh4Dolx2O5LIx0zOxteC6BxjPChU6jCWOKDr9Kya6/qQYph+mD9VHsQ NyjaPGYql6r150RLq35MwXHLQboGnWZ5mHmcFKTpFlKqCnmOIOqQV+Whs7tj7zP83iLT XUWg== 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=cxoNes1bUGZMCmnx0Zk0c54cZRyYsz4en8OWWSGXvB0=; b=TqzcUtlNECPDUOQF5inXvgZwE+LTCdna3rPl12A3WI4qW0ELxI02YjXtSHLCbR8x5w KyaXkKGmU/61ZIAOCAfWW4hOOQ8z5ViUgTDUJe1AzHqoWpSJ7CEp9elzgA6h1sjiuut+ 6qrpfURaSE0GpbZhxfXE1Z9jcS3nuTvVoDQQtJ7YpR0U7jJWtwJf+bzHcopg8AlJADjt xZidmd4Cxu2sG/xicfbQTkoztE3y9yKI9PdoPmt4DFMovm0pvpICcqm/veDw6/9ei7Gs ejmJ0Vu/ddOI8jB6KbXUzRXR1KtFgU9WI0o5ntYG3IGVMdSxv2ILs9po5HNFISpAWMSp vWrQ== 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 c14si4016552pfn.313.2018.02.21.05.57.46; Wed, 21 Feb 2018 05:58:00 -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 S1754653AbeBUNp6 (ORCPT + 99 others); Wed, 21 Feb 2018 08:45:58 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:41292 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933327AbeBUNGl (ORCPT ); Wed, 21 Feb 2018 08:06:41 -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 6701EBBF; Wed, 21 Feb 2018 13:06:40 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mahesh Salgaonkar , Balbir Singh , Michael Ellerman Subject: [PATCH 4.15 019/163] powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all Date: Wed, 21 Feb 2018 13:47:28 +0100 Message-Id: <20180221124531.198406709@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mahesh Salgaonkar commit 8d81296cfcce89013a714feb8d25004a156f8181 upstream. radix__flush_tlb_all() is called only in kexec path in real mode and any tracepoints at this stage will make kexec to fail if enabled. To verify enable tlbie trace before kexec. $ echo 1 > /sys/kernel/debug/tracing/events/powerpc/tlbie/enable == kexec into new kernel and kexec fails. Fix this by not calling trace_tlbie from radix__flush_tlb_all(). Fixes: 0428491cba92 ("powerpc/mm: Trace tlbie(l) instructions") Cc: stable@vger.kernel.org # v4.13+ Signed-off-by: Mahesh Salgaonkar Acked-by: Balbir Singh Signed-off-by: Michael Ellerman Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/mm/tlb-radix.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/powerpc/mm/tlb-radix.c +++ b/arch/powerpc/mm/tlb-radix.c @@ -600,14 +600,12 @@ void radix__flush_tlb_all(void) */ asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1) : : "r"(rb), "i"(r), "i"(1), "i"(ric), "r"(rs) : "memory"); - trace_tlbie(0, 0, rb, rs, ric, prs, r); /* * now flush host entires by passing PRS = 0 and LPID == 0 */ asm volatile(PPC_TLBIE_5(%0, %4, %3, %2, %1) : : "r"(rb), "i"(r), "i"(prs), "i"(ric), "r"(0) : "memory"); asm volatile("eieio; tlbsync; ptesync": : :"memory"); - trace_tlbie(0, 0, rb, 0, ric, prs, r); } void radix__flush_tlb_pte_p9_dd1(unsigned long old_pte, struct mm_struct *mm,