Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4015126ybg; Tue, 29 Oct 2019 00:28:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXmtNTbfHmUxlNY5qajgLWqi7Fdf6BC56Y6UDoNj4N0u8uG+xoaaQr7r3r4qesyUPluaYQ X-Received: by 2002:a05:6402:60c:: with SMTP id n12mr13564259edv.242.1572334123669; Tue, 29 Oct 2019 00:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572334123; cv=none; d=google.com; s=arc-20160816; b=XCdDw3G/YVG88IQNlFn/yvzLZUNqZ9FkY/vjVC+ZlRIhkPvnYRbGQWbQe/WLh067u4 eBDWh2iHcEoXoYXVRn4qAr9K2MZNB8S1tcSA/7p59q3gQ+zhQ2xw/RtP09RAL3VtwUzD Ylu22CLrthZ1uh4vPLWWBXe+AZqX5bDZhGFnmIcqbIBlrGCXRcotse1IAvKuiYqO2ken m/zngelVdmf2zDS4ELv4p2MGxPhoZbHD7D3oxgZYFQRp7mgmayWo7LqSiYFR/FeP4J0n uYLVoPhiytDoNwJ6TRAsqgMqIeSjJAMvWUSVFSKf3fUUrEyz/QehIYN7z39Xppx3G+k2 Y7mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BGNnUOeOALjeswlQdNmg6H9C3q6EXqw3JZNkQRr1llQ=; b=nh6rbLbS0kwcKwElKETHGX/lar8nOJqEph+aNo42/FcbYl5ad7nGSRjoPAL6arcW1u yNcq/fsj7O9Bz/RdsKRP8cN2vwDDj8TAVoj/rx5ytNyv+Pju7YXAATdhJmB2MTQV3K0m UE+bq7Asz4Ox0QxjOkqV7E206uivGM06mPq+8volCqugbyphIFqnNYtBmO7Uo6jf+6v7 EHcDNsRP9AkfikC2SF8YVWeL+/oqrX8lI7VwWWn0+HVF879mwc612fKs2M6VMy5cy8++ bnmNX8LF5w0hy0+EoBnU3TfjXAWFYzVa+1hwEtA0mJiQhPAH2DGSVaXLara4S4z0QtPQ Xjww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jg9q/Es/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si11143398edi.179.2019.10.29.00.28.20; Tue, 29 Oct 2019 00:28:43 -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=@linaro.org header.s=google header.b="jg9q/Es/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730936AbfJ2Fq0 (ORCPT + 99 others); Tue, 29 Oct 2019 01:46:26 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35194 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727227AbfJ2Fq0 (ORCPT ); Tue, 29 Oct 2019 01:46:26 -0400 Received: by mail-pl1-f194.google.com with SMTP id x6so2963511pln.2 for ; Mon, 28 Oct 2019 22:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BGNnUOeOALjeswlQdNmg6H9C3q6EXqw3JZNkQRr1llQ=; b=jg9q/Es/BqriYOEAkxSEE33zkdwq115DyrEh0wvD3uy32lPbaiuOj2csLoIzevlL/r E/12mffycTgJCADXDoCpEOcJQ5N4b5hxQAx7qOgpmzLu61JycIz+8mfdaZo9G+8MQ7Am Vuhr0kE/FLTYqA321y7ShfNIzdWWPWTevpyG0WeuvYo0cQqJPSYH7yullEx722ZqFi1R 8ZtondxROzQdSdqrSN8Bb3UVCnno4n8q9ksYgMMj1Cvij/9GsE35ZlHHxIbbEniuU91a wzyjFI3QyxKjyhFgtmoBy0FKTg9NUD7OKS+46Z6OyhcFWXPN9rQyG+ZNpVNJolCoo/jj /3Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BGNnUOeOALjeswlQdNmg6H9C3q6EXqw3JZNkQRr1llQ=; b=SbZZhOy/S687ILcpyM61KC36pvt+ruSu/qa441uaAdJXPjpcfAiJfenYx86B/3EC3o +CGGfzkPk4TLJE2RJkj6G2naawKubc522lNLfLSjnFvFAHmVQo9ZxtKhyXIOtgz2Fnp1 HqPzd2hlG9h122Chshp8NM46qqwDW8C7QLgqiqwFGlLhm4fRfZQimtaU0sKjJtmSeEto Vrj+bpfBU/pHB7dfTrbLx/DvptND5yCG+CuaE923c6LY4ZEWgkZXc9uyhDxmyUgUeZ7N I6/ee0dJg2mYHWe9IBd6tcogZ343nbdNbcMvJ0r8oh+4lw3dfTm+qmU/PahUVz+M72Oy F84g== X-Gm-Message-State: APjAAAURmyW+nsBsYUy2BKzJ9yYe9MidW1mS4VfeVFflSrnRhuh71TBA HIAdaalr0fg/Adn3JzTnuExfKQ== X-Received: by 2002:a17:902:bd91:: with SMTP id q17mr1988190pls.43.1572327984016; Mon, 28 Oct 2019 22:46:24 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id i16sm12546753pfa.184.2019.10.28.22.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 22:46:23 -0700 (PDT) Date: Mon, 28 Oct 2019 22:46:20 -0700 From: Bjorn Andersson To: cang@codeaurora.org Cc: Avri Altman , "Winkler, Tomas" , asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Evan Green , Janek Kotas , Stanley Chu , Bean Huo , Subhash Jadavani , Arnd Bergmann , open list Subject: Re: [PATCH v1 1/1] scsi: ufs: Add command logging infrastructure Message-ID: <20191029054620.GG1929@tuxbook-pro> References: <1571808560-3965-1-git-send-email-cang@codeaurora.org> <5B8DA87D05A7694D9FA63FD143655C1B9DCF0AFE@hasmsx108.ger.corp.intel.com> <01eb3c55e35738f2853fbc7175a12eaa@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01eb3c55e35738f2853fbc7175a12eaa@codeaurora.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 28 Oct 19:37 PDT 2019, cang@codeaurora.org wrote: > On 2019-10-23 18:33, Avri Altman wrote: > > > > > > > Add the necessary infrastructure to keep timestamp history of > > > > commands, events and other useful info for debugging complex issues. > > > > This helps in diagnosing events leading upto failure. > > > > > > Why not use tracepoints, for that? > > Ack on Tomas's comment. > > Are there any pieces of information that you need not provided by the > > upiu tracer? > > > > Thanks, > > Avri > > In extreme cases, when the UFS runs into bad state, system may crash. There > may not be a chance to collect trace. If trace is not collected and failure > is hard to be reproduced, some command logs prints would be very helpful to > help understand what was going on before we run into failure. > This is a common problem shared among many/all subsystems, so it's better to rely on a generic solution for this; such as using tracepoints dumped into pstore/ramoops. Regards, Bjorn