Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2446685ybl; Thu, 9 Jan 2020 12:57:19 -0800 (PST) X-Google-Smtp-Source: APXvYqwAgD+IvhD/CqN6oalGx/nsnRKesXbMkpP7BNVC4G97jQl3GGePupgfMa2mqsEBcsVnREiy X-Received: by 2002:a9d:67ce:: with SMTP id c14mr9903559otn.106.1578603439430; Thu, 09 Jan 2020 12:57:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603439; cv=none; d=google.com; s=arc-20160816; b=G9auibIilaAd++LSngRQKNCbsoBRLGzUn1FOjuqt7I4bB1nXjRCwwDxzVXNHxURCgQ 7uFRmrL2mraNKvCyZrILEf/hhGXaGx9DVmbsaQImI8P2jUiXQvmfK80+el0cRwGsJXyo 7AGrZQ9DAr/nZG/2AKH4YPqrUDQHXguDiztT7WbHdhZnTN3a7yPZ22ixuyajprmTxTKn km5IEO8kSodAdUbC+jrXE3CnJGF5L/FpPlR9NfwrLuaNWPTHcdMe1K7oPN4m+7axKA5l Jidm+hvd0Fa2pCZonebXfQnt8NRhoX9NoxjHiN6+i1ydD1CEouNoPJhCBdx2vl9XIFIt 7uEw== 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; bh=yfIKPM4qfwsDDvZVKzSYJOzmIcamAL6W3ufEqQactQg=; b=uWcA95oYMt4ATaXEX/3mG+Cy1OMZ+PkE5QU+fqK0wCgQeDer+smBV2E0kjXBU0Hqid AYfFkTA0I1YElLJXxgl8mDmEZwi7CgWDr84Nbo8fmXRZqsXwE5XJIQIbIvTHW6Ru8mfr exBje4ah1GPflG+BCKIYe/CYCzrjEzGovGvirUTcoED2NUAfIfOXzNM95LFB6Io8gER/ ebj3OU3VJ7qINowq57xEDZ7kBB87EagYzrhb2X7175qE4cCNoXvhnST4AISlA/GuhziA cEk4njECbZufjygnxqIprdy0Am4x/MEZ5jDKkZOUbBwXypXa3/ddY8KqSjmnm5/IgfD1 UbAA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l26si4929729otn.48.2020.01.09.12.57.08; Thu, 09 Jan 2020 12:57:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728871AbgAIUfu (ORCPT + 99 others); Thu, 9 Jan 2020 15:35:50 -0500 Received: from foss.arm.com ([217.140.110.172]:36536 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727738AbgAIUft (ORCPT ); Thu, 9 Jan 2020 15:35:49 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 782AD31B; Thu, 9 Jan 2020 12:35:49 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDF083F534; Thu, 9 Jan 2020 12:35:48 -0800 (PST) Date: Thu, 9 Jan 2020 20:35:47 +0000 From: Mark Brown To: Peter Seiderer Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Annaliese McDermond , Takashi Iwai , Jaroslav Kysela , Liam Girdwood Subject: Re: [PATCH v1] ASoC: tlv320aic32x4: handle regmap_read error gracefully Message-ID: <20200109203547.GF3702@sirena.org.uk> References: <20191227152056.9903-1-ps.report@gmx.net> <20191227225204.GQ27497@sirena.org.uk> <20200106214534.39378927@gmx.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cz6wLo+OExbGG7q/" Content-Disposition: inline In-Reply-To: <20200106214534.39378927@gmx.net> X-Cookie: Killing turkeys causes winter. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --cz6wLo+OExbGG7q/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 06, 2020 at 09:45:34PM +0100, Peter Seiderer wrote: > On Fri, 27 Dec 2019 22:52:04 +0000, Mark Brown wrote: > > On Fri, Dec 27, 2019 at 04:20:56PM +0100, Peter Seiderer wrote: > > Please think hard before including complete backtraces in upstream > > reports, they are very large and contain almost no useful information > > relative to their size so often obscure the relevant content in your > > message. If part of the backtrace is usefully illustrative then it's > > usually better to pull out the relevant sections. > Thanks for review..., but a little disagree here, do not know much which > is more informative than a complete back trace for a division by zero (and > which is the complete information/starting point for investigating the > reason therefore) and it would be a pity to loose this valuable information? Right, some backtrace is definitely often useful for understanding where things broke and helping people search for problems - it's just providing the *full* backtrace that can be an issue as a lot of it can end up being redundant. As a rule of thumb I'd tend to say that once you get out of the driver or subsystem you're starting to loose relevance. For example with a probe failure like this once you get out of the driver probe function it almost never matters exactly what the stack in the device model core is, it's not adding anything and it's usually more than a screenful that needs to be paged through. Cutting that out helps people focus on the bits that matter. > Maybe I should have added more information about why and how the failing > regmap_read() call leads to a division by zero? Any analysis you've done about why things got confused and broken is definitely good to include! --cz6wLo+OExbGG7q/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4XjqIACgkQJNaLcl1U h9Cp2wf/YJiRtkQvhbTHYFHL1Nxg5pueZnzeL+EEaSw+j+5E4OSX+sWbuf16NXYq k+HWa02py4PZcKYQVmxf9b4PTjmpqcGiMWOtjDVj6/TafOEs0ovOwLQLAwuUb9By oh/jsZ2VwIhBVTAKxmEOyFvy+eYBMonIv4QVAD9Mv8vLpuHGm9FUEPw3D2uy/33s 1PFU4BscfvDufOHEIe3afqutQNzPYb2KTZXqmYuEw5hUgf1h0vxBIAtO5YTwhvGT cTCbYdzVq1cwTlzH3EpiQZGhXUJ11agI5gaNys662gzIvtq7kIpx20N2Kuy0+kif 9L3c5IlUHB3yAzpoowuDrrRqIKWI+g== =VKVc -----END PGP SIGNATURE----- --cz6wLo+OExbGG7q/--