Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3261227imm; Fri, 19 Oct 2018 07:49:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV62FwSNDekvBzjmmXbvyTiGfui22BAt7MCZdGTWyN5HaMfpcn3DDDajdEhBKR8Dt2xDuGJeq X-Received: by 2002:a63:a902:: with SMTP id u2-v6mr32939101pge.207.1539960552103; Fri, 19 Oct 2018 07:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539960552; cv=none; d=google.com; s=arc-20160816; b=ofoRK1n7YGus9wpfcsmHjMUTXg7mN0/Ky3oQgH4wfsj/htmtak4cqGDY+Kmb4fYA/h HDH9bnuIYpbIJfJg40qzA9asvz7X2h/vTeFHY3YyUoXiAbyAyt8825mNZGHLMqjA+WwA VcqFQtKUHNFWiAxcrTm08GcfVLWoIyvfUk539i17+/qWTyKf/p+aj9c01Ikp88OlVyD+ lz+k1eVQ2gvZ35lzciLwTrFStLYnvR9h2IpNDH8u2Dixqy1cLGwFG67XkY35yIWckLvy OmMMSxeQ7HcoKqcM4TYPLLcsSUILti9L51bnvXt4RR6vLgzA3rz1fEgs7Y7K8k60L5TZ EdvA== 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=TzKRMOC0GINEB30klLNbNd8gjZJRCdS6zeb8zDA5FPU=; b=iIpUFjMLjzm2J0DrUrFcio4DLcVNqxdlfsbrCBqscqBJ24ZKthqLDb3A8a1hzYYd+t WFt00XK0DWxe9chEO8Ad9W8DPLKfEb7HeuFLql8Kp6vVc8B+0kKJprHVSG4YMYBvCjsL zVN6FpuvVsW1fnOTQMQFEiUWJ+yEDqSZsLcRk4ajx4aQpQZFQ2SsFvjx1xOwBnFKfTbX xnj88Nf7LK+hb4vF1mp1vnQDV56P95QwMeAdVIRsPE4u6VY4TXme56g/tF1daJ2qUNY8 pLpd8tNTaI2nFiOF5giaxPKzQwmndLnwjqcM4PiZXoF/J+zoO4iabEmEE9a2n0Vf6ZjX OCgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VwYi+KJN; dkim=pass header.i=@codeaurora.org header.s=default header.b=VwYi+KJN; 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 d1-v6si14593176pld.217.2018.10.19.07.48.56; Fri, 19 Oct 2018 07:49:12 -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=VwYi+KJN; dkim=pass header.i=@codeaurora.org header.s=default header.b=VwYi+KJN; 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 S1727655AbeJSWy6 (ORCPT + 99 others); Fri, 19 Oct 2018 18:54:58 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:44370 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbeJSWy6 (ORCPT ); Fri, 19 Oct 2018 18:54:58 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id EAE5461313; Fri, 19 Oct 2018 14:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539960510; bh=f+9WH9lO0R/rp/E0M2s+lUPu334QwfiDFHKgp1lftCw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VwYi+KJNp3bKjMv7bAmLh4wQQpENsgdhTnHktuu8KHJ/MixWxbY6cJdQ0MphEgFyy 7UQmJ2HdxmqMMqersSWO63c4NWYqjO43Evb3OkA6gjgMWKTXAELhfQsvjOkLK37XFR UbKs+qHbOZzTykVU8t0mCWary82TQpMly4V4HpOQ= 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 [192.168.43.47] (unknown [223.227.22.91]) (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 25B1F6028D; Fri, 19 Oct 2018 14:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539960510; bh=f+9WH9lO0R/rp/E0M2s+lUPu334QwfiDFHKgp1lftCw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=VwYi+KJNp3bKjMv7bAmLh4wQQpENsgdhTnHktuu8KHJ/MixWxbY6cJdQ0MphEgFyy 7UQmJ2HdxmqMMqersSWO63c4NWYqjO43Evb3OkA6gjgMWKTXAELhfQsvjOkLK37XFR UbKs+qHbOZzTykVU8t0mCWary82TQpMly4V4HpOQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 25B1F6028D 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: Steven Rostedt Cc: Joel Fernandes , Stephen Boyd , Bjorn Andersson , Andy Gross , David Brown , Jiri Slaby , Kees Cook , 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: <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> <20181017223334.29ca2837@vmware.local.home> <58d2474c-53cd-e6cb-2d25-db38d1a88da6@codeaurora.org> <20181018091706.62310b38@gandalf.local.home> <20181019041740.GB141835@joelaf.mtv.corp.google.com> <8a75f2d5-f1bd-504e-b545-ae2e2f61ca8f@codeaurora.org> <20181019095122.0f1c0946@gandalf.local.home> From: Sai Prakash Ranjan Message-ID: <9cafe321-87f6-98a3-3bda-c2f7a3d7fc67@codeaurora.org> Date: Fri, 19 Oct 2018 20:18:19 +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: <20181019095122.0f1c0946@gandalf.local.home> 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/19/2018 7:21 PM, Steven Rostedt wrote: > On Fri, 19 Oct 2018 12:24:05 +0530 > Sai Prakash Ranjan wrote: > >>>> Anyone see any problems here? >>> >>> This seems sane to me, he says in the other thread that he put 'notrace' to >>> the msm serial functions (which AIUI should prevent ftrace instrumentation) >>> and he still sees the issue. >>> >> >> Yes I did add notrace to all functions in msm serial and checked the >> objdump to make sure that those were not instrumented, and yet the >> target crashed. This doesnt seem like an issue with ftrace but rather >> with msm early con. > > The thing that still bothers me is that it boots fine without ftrace > running, and that it requires tracing something to cause the problem. > This tells me that ftrace has something to do with it. Perhaps it's > just changing the timing. > Yes tracing does cause issue but only if earlycon is present. If I disable earlycon, then even tracing wont cause any issue and target boots fine. > You said that if you add 'ftrace_filter=msm_read' to the command line, > it still crashes? > > So only tracing that function we have an issue, right? > Tracing msm_read does cause the crash, but that is not the only one causing the crash because even after "ftrace_notrace=msm_read" the board crashes which is why I suspect msm earlycon and not ftrace. Thanks, Sai -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation