Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5419758imm; Tue, 16 Oct 2018 09:58:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV60j+7PZ9LVxyqguQfLjcDy5IdGRz3d1qG/5gF1gDYoeQJibkriGc5nX+50eRm5pR2Yg62yl X-Received: by 2002:a17:902:7842:: with SMTP id e2-v6mr22324657pln.104.1539709088768; Tue, 16 Oct 2018 09:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539709088; cv=none; d=google.com; s=arc-20160816; b=bIiEhokR3POiiAF6du9Xs8Xpq4pzg2RcZ8ngbDf5ZYFrrW6OEbsNoyMmy6bRVUPzQT c2bKyzpmJtuvn0BXbOX1oXea5V6ZfKiIAuhVksKAbHHBtcg+7YQAxCuOCJE7Wb+MRJiz NLDVUzq+zH0Y236NNJaFrYNmY1UUy+eCGSkG7xDDhEbiCK3DQfMA3+llzvkB1Cvjmldq YYNcrA0fr7NM+cMAxiC5TDvlQEY01S10KTlAP/LUEY9GUt6t5lRuva+6lmchqYTQ7UlM gZlZnsBC5kJZmmbgxsdOPZPhdaQALAGtVBPevnny7eLyTNkOaKfmdHrBzPV9Vkorla1w cIZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=IlQgtOY3sKmBoWeZrvRVYzixebs1BABEeUmaPIxYtqU=; b=UbGWfmkBjPJCyqnTWMVA+qnSUmcC5Tle9egzdPy2pMK0LjTyPdAzTH+EHdKpHsrokY ptPm8DvKWnT/dqbW4F2lQ1HYDMTued0SKERk5LQ6C09LDyd8STkLMBX7BYmal4CD1iz2 IdZL6ObYg0plwg1jAw2AWX7cs7CpmRoyFckZrWs8JzsUhJHUl557s48IecK/Cu5m7yit UCa0mWD3LTL/isklJ7fPBl/Xqe5EUNFfuO/SghQZXSGT9J7dEx3duk+hT/Tn1JTEEhIN QENsooIE4sEIAa+q6ilc0Vp3RRWeMHeT1rcdwiVA5sKwbZXURgfNCtp+PQA5jrLuwGZm K1DA== 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 d185-v6si9968428pfd.260.2018.10.16.09.57.52; Tue, 16 Oct 2018 09:58:08 -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 S1727360AbeJQAso (ORCPT + 99 others); Tue, 16 Oct 2018 20:48:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:33594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbeJQAso (ORCPT ); Tue, 16 Oct 2018 20:48:44 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 58B97205C9; Tue, 16 Oct 2018 16:57:23 +0000 (UTC) Date: Tue, 16 Oct 2018 12:57:21 -0400 From: Steven Rostedt To: Sai Prakash Ranjan Cc: Stephen Boyd , Bjorn Andersson , Andy Gross , David Brown , Jiri Slaby , "Ivan T. Ivanov" , Kees Cook , "Joel Fernandes (Google)" , Geliang Tang , Greg Kroah-Hartman , Pramod Gurav , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Rajendra Nayak , Vivek Gautam , Sibi Sankar Subject: Re: Crash in msm serial on dragonboard with ftrace bootargs Message-ID: <20181016125721.236ada82@gandalf.local.home> In-Reply-To: <8c2fb318-813d-81f1-1e2f-cdbc68353077@codeaurora.org> References: <1cae8f10-55f5-20ce-9105-30af6f88bd6e@codeaurora.org> <20181016112928.4b52afb5@gandalf.local.home> <8c2fb318-813d-81f1-1e2f-cdbc68353077@codeaurora.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Oct 2018 22:05:23 +0530 Sai Prakash Ranjan wrote: > On 10/16/2018 8:59 PM, Steven Rostedt wrote: > > On Tue, 16 Oct 2018 17:08:25 +0530 > > Sai Prakash Ranjan wrote: > > > >> Hi, > >> > >> On dragonboard 410c, with "ftrace=function" boot args, the console > >> output slows down and board resets without any backtrace as below. This > >> is tested on latest kernel and seems to exist even in older kernels as well. > > > > So this only happens when ftrace=function is on the boot console. > > > > Yes. If I do not use boot console, target does not crash. > > > > > Does function tracing work after boot up? That is, without the > > ftrace=function, can you do: > > > > echo function > /sys/kernel/debug/tracing/current_tracer > > > > without any issue? > > > > Yes ftrace in general works without any issue. I have also tested on > db820c and sdm845 where "ftrace=function" works fine. I am seeing this > issue only on db410c board. OK, can you add to the command line: ftrace=function ftrace_filter=*schedule* to see if it's a specific function that may be causing the issue (but hopefully it's not one of the scheduling functions that caused it). > > >> > >> One more thing is for pstore dmesg-ramoops, I had to change > >> late_initcall to postcore_initcall which brings the question as to why > >> we changed to late_initcall? > >> Simple git blame shows to support crypto compress api, but is it really > >> helpful? A lot of boottime issues can be caught with pstore enabled at > >> postcore_initcall rather than late_initcall, this backtrace > >> is just one example. Is there any way we could change this? > > > > Does it break if the crypto is not initialized? Perhaps add a command > > line flag to have it happen earlier: > > > > I didnt see any breakage, have been using ramoops with postcore_initcall > for sometime now. > > > ramoops=earlyinit > > > > and add a postcore_initcall that checks if that flag is set, and if so, > > it does the work then, and the late_initcall() will do nothing. > > > > That way, you can still have unmodified kernels use pstore when it > > crashes at boot up. > > > > Sounds good. Great, I guess you can write a patch to do that ;-) -- Steve