Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp534998imm; Wed, 17 Oct 2018 04:28:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV63sxCqzuqL1sFLQ6j3i+JWz6S8KfICDP2WngKUnumYc6+JcraPDQqo+OTlpJ9a2COOrtPjF X-Received: by 2002:a17:902:b485:: with SMTP id y5-v6mr13967928plr.122.1539775710452; Wed, 17 Oct 2018 04:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539775710; cv=none; d=google.com; s=arc-20160816; b=YSYYP1oz8M0B8w13mAsGNoP57z2nIUU3iq+r3Y71sDbCdj7HCJA4ksWznn9312npil M06ug4YTcq+g+A4Ccvisas7vrMRDd+m6nEo+rQgoxtY980Bn+hQcVWHqgfTY+x7RwE17 /Z300keSVOK8CPPyab/1nyDVZAklKztOb2jZxhrnAfKmv55xdJ1IrMC2ObOCmSzHHda2 TlV7hRvWLvyCw2pBmeuX8419tJZ2c/ZNUECH9D2X0k86z+su873rP57hcJTb/wVyQDgy JD9D5sszArE5tBNcpHEy3PXEHNeLYY2bvBI5AoaTA94qbG8eNlSiuM1lziCdqR6Qzm0T 6eBA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=8qM58uj4UJHYkMvZMUdr+fCdKhZK4iLJ0o606q0Odis=; b=0Z8gaNmK+4l9+KjgJxNDjPPAAebnz6PVaNzcE6fmRka1Wf0nnrKVxmAsEoWUQz0AFu qXq+oCYdtFYs3CRqTq9/Ki2drw1EFmP8t5mBD6avAAKDG7FCY7kSYM/cpblLL2BF9dly dd6+RrOqSTUwyGZy+Cs/32n9Xq5AyAcGR0lQoIuiSUjXag3x7dS41fQqNPfFc1vdcKHQ ZL9Ni/ZITnEIG46RoAAwhFDJeXLyKuyS2xPWNBWKtAgzBTloKpR66tu5AT+3wvbDgUt+ a0oSivyFrh4/mMTLW6d9GQW8nFA3pzWtjtAGHJWDfoQxvC4HpeDvzEcVMzIQAPw5tniv nZTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Yv7faaiQ; dkim=pass header.i=@codeaurora.org header.s=default header.b=fa1Fcdq6; 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 u10-v6si17571050plu.342.2018.10.17.04.28.14; Wed, 17 Oct 2018 04:28:30 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=Yv7faaiQ; dkim=pass header.i=@codeaurora.org header.s=default header.b=fa1Fcdq6; 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 S1727068AbeJQTXI (ORCPT + 99 others); Wed, 17 Oct 2018 15:23:08 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:43662 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726936AbeJQTXI (ORCPT ); Wed, 17 Oct 2018 15:23:08 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 58FBD612F6; Wed, 17 Oct 2018 11:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539775671; bh=TLOEKPKFLxEc0Tmbpb2oOwgeF6MRjfPMkLQZfPUWPTc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Yv7faaiQm15UyKgux25dmKa5LWeJRm6UqJwOkuCiCPscEq46OX+6qIb2boz2oNCyi 4OEyU6oV7+iC4mM3Kb2Kp1+ufhEn1ZrRXJMUlJFtOce/bQiBGXyuZwnL2cg+wl5rV1 UBt1aTIL8GXb6EZmhAisP3LTLOqGvnxqRqavqNkE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.79.129.10] (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1F28E6034D; Wed, 17 Oct 2018 11:27:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539775670; bh=TLOEKPKFLxEc0Tmbpb2oOwgeF6MRjfPMkLQZfPUWPTc=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fa1Fcdq6wfIScAxE2cKHGrHkzno/nRubnGYW4IRNNZGTGCptu9pSkQb1TWJzTBahj Yytv3ONeyhaPYUgQ9NHlTCdUI3PpxmpqG4D8zMAnyMt/hHlvE4J72bS9bd3AhHk4GR IINDuUFgAY6btVrCJJsD6/k/9yZss2KUPYoOLrvE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1F28E6034D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org Subject: Re: Crash in msm serial on dragonboard with ftrace bootargs To: Stephen Boyd , Steven Rostedt Cc: Bjorn Andersson , Andy Gross , David Brown , Jiri Slaby , 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 References: <1cae8f10-55f5-20ce-9105-30af6f88bd6e@codeaurora.org> <472db11e-49a6-a1ee-e298-791ee1bbb10b@codeaurora.org> <20181016141610.639b9000@gandalf.local.home> <20181016144123.24c47b38@gandalf.local.home> <7781815e-cba2-9e36-db6d-268298747876@codeaurora.org> <20181016150328.3450d718@gandalf.local.home> <20181016151516.786b16cc@gandalf.local.home> <0b014d85-9988-0bf5-7b72-911dbbcdadfc@codeaurora.org> <153972306834.5275.7510298070540576604@swboyd.mtv.corp.google.com> From: Sai Prakash Ranjan Message-ID: <17116a6b-156e-af2f-c20c-88bea10bfc92@codeaurora.org> Date: Wed, 17 Oct 2018 16:57:42 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <153972306834.5275.7510298070540576604@swboyd.mtv.corp.google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/17/2018 2:21 AM, Stephen Boyd wrote: > Quoting Sai Prakash Ranjan (2018-10-16 12:35:57) >> On 10/17/2018 12:45 AM, Steven Rostedt wrote: >>> On Wed, 17 Oct 2018 00:36:05 +0530 >>> Sai Prakash Ranjan wrote: >>> >>>> On 10/17/2018 12:33 AM, Steven Rostedt wrote: >>>>> On Wed, 17 Oct 2018 00:31:03 +0530 >>>>> Sai Prakash Ranjan wrote: >>>>> >>>>>> Haa seems like you are right! With "ftrace=function >>>>>> ftrace_filter=msm_read" , I can trigger the crash, but >>>>>> sadly "ftrace_notrace=msm_read" also crashes. >>>>> >>>>> So there's more than one problem area. >>>>> >>>>> What about ftrace_notrace=m* >>>>> >>>>> ? >>>>> >>>> >>>> That too crashes. >>>> >>> >>> Which compiler are you using and can you send me your config. >>> >> Config attached. >> >> Compiler: aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109 >> >>> I wonder if there's something screwing up with the way ftrace nops are >>> working on this board. >>> >>> A couple things of note, 1) it works fine after boot up. 2) it crashes >>> in the initcall code, so it's not due to ftrace being enabled too early. >>> >>> I'd like to see the full command line as well. I bet if you remove the >>> qcom,msm-uartdm from the command line, and had just ftrace=function, it >>> may also boot fine too. Can you try that? >>> >> >> Kernel command line: root=/dev/disk/by-partlabel/rootfs rw rootwait >> ftrace=function ftrace_notrace=m* earlycon console=ttyMSM0,115200n8 >> >> qcom,msm-uartdm is not in command line, it is the earlycon. So without >> earlycon(bootconsole), board boots fine as we discussed earlier. >> > > Have you tried with earlycon and no ftrace things on the commandline? > > root=/dev/disk/by-partlabel/rootfs rw rootwait earlycon console=ttyMSM0,115200n8 > > If earlycon is causing problems, it sounds like this may be another case > of earlycon uart handing off to the uart driver and that failing because > something gets printed while the uart is transitioning from the earlycon > console to the kernel boot console. I recall the uart would trample on > itself in interesting ways. > Yes I have tried with only earlycon enabled and everything is fine. Issue is reproduced only with ftrace=function cmdline. -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation