Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4561334ybz; Tue, 21 Apr 2020 02:53:11 -0700 (PDT) X-Google-Smtp-Source: APiQypLsgJJuul/KkVYc3pDeCjHtdUul8CR07CG3lCPGp4k4UfUkQ1gqsH1w7n60P8tJyEotphjM X-Received: by 2002:a50:9547:: with SMTP id v7mr18224542eda.324.1587462790538; Tue, 21 Apr 2020 02:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587462790; cv=none; d=google.com; s=arc-20160816; b=U4S65f6LG/+Cs3UqTWuWxlgrkLyiKOgDgL+eo0CVDR5Zr18GCvyVCEziejGwTBs3F1 NV7bu1rcw4EeoZpI5dVC02LNhQ/q168Re58QTOuMOJLCLYcR6N8YYVE45Vj95WQ1OuZn tDjjiNNNArS14aBgAwTKN/CVBf47jN9la4n2iPFOsfE/8aoD9NTYjMT7Dn8Vhloz9R7U urH71Dcq4DsXnJYvGc5H+uctwFI0FWS5vkFSTK5kf0ojyULfy6XjPNTFi8HlYVsgsfg+ mwWK2rQn7jVzu10TC3XtJs2gB/u/E+zC9Hu6xojlPBs3G5mbQHyzCvEZtUX9c+AUzmAK YR+Q== 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=OcfPQKRc6kTT0iMUF9IHQyEEaPGqUiZ93HJQGVNC0R0=; b=M2B4aIjyJKHWeeLEhfS2qxSFfQ6wgpqxxbRSQA/uJF0zYrXws6op6g2HRJkUgcyO4f fm9zSjRNiqLNBNAvwR4LBd/2q71i4gZrBwfyxCfr4QkwHGVzvr7oQWFMqSeYj2ijM+SK Or9WsaibpcOlUVuvwu9AKUgDVL2OMLq69Y8IVvnU4WEIbj/Uoo9Vm0m7XS1JTSitIM5v rgEmjUb20YO353I9gt2K4dY0W+/10ZtJFWEznOIsXg6Zq0tunErI7cPae1Aw6YTm1dCE eJD5Fw2MzCQMsMXsN/3KlSZoi6F7dtBO17apEjTRBXi/ipzW5piUCQCbWrcCWu8d2ZpI fsSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TWYByTCO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ng3si1189033ejb.189.2020.04.21.02.52.47; Tue, 21 Apr 2020 02:53:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TWYByTCO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728483AbgDUJvq (ORCPT + 99 others); Tue, 21 Apr 2020 05:51:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:33434 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgDUJvo (ORCPT ); Tue, 21 Apr 2020 05:51:44 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 0335A2087E; Tue, 21 Apr 2020 09:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587462703; bh=IauNheB062Hx5TwDVP9QGchcfHWEIwmMV2csGlvp1Co=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TWYByTCOBPe9TYJ5N5O4IsoELB6F3vHA6O80HIcV8nnnmnt4k2pp52gP+/SHiQ274 OqB8JJuS9/+69Dpn4TETGnXou7VQGAOpACqRHUnK5+CAXauoiJOul79OPfh5fCEUuC 4xcWwon+SREvq5R5c8dKOQrmkudpJ9UixOjYUD38= Date: Tue, 21 Apr 2020 10:51:40 +0100 From: Mark Brown To: Shengjiu Wang Cc: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: fsl_esai: Remove expensive print in irq handler Message-ID: <20200421095139.GA4540@sirena.org.uk> References: <1587458483-2166-1-git-send-email-shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline In-Reply-To: <1587458483-2166-1-git-send-email-shengjiu.wang@nxp.com> X-Cookie: Non-sequiturs make me eat lampshades. 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 --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 21, 2020 at 04:41:23PM +0800, Shengjiu Wang wrote: > Use dev_dbg instead of dev_err in irq handler, the dev_err > is expensive, we don't need the message to be printed everytime, > which is almost a debug option. > if (esr & ESAI_ESR_RFF_MASK) > - dev_warn(&pdev->dev, "isr: Receiving overrun\n"); > + dev_dbg(&pdev->dev, "isr: Receiving overrun\n"); > =20 > if (esr & ESAI_ESR_TFE_MASK) > - dev_warn(&pdev->dev, "isr: Transmission underrun\n"); > + dev_dbg(&pdev->dev, "isr: Transmission underrun\n"); These are error messages which would suggest a problem that'd lead to data corruption, it seems bad not to try to flag that to the user - surely we've got bigger problems than performance if this happens? Perhaps convert to a ratelimited print if the issue is that when errors happen they happen a lot? --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl6ewiMACgkQJNaLcl1U h9CKwwf/Tpe5//zRDnlqtVpZt3Oxy35CTdjomxN1dhZTt7hBudQjOITkDCoiNst3 SEvHAoPl0m/Y5PyAiZGgZlxFxttzFt7kPUskvTeDXWhmWRWjErukhTFBAbsA/xZM AlHWU436vHLDv7G769/c+foQJxQQAnfiCmS2BOK/4K18HIMLgz+C6e78zEXkFPsX rkvU9CKIZYUwgNB/YJ00JHWTy99JeURMB9IhF5vz9u+rKO7fflOjF+o/XMsxHsVw YHYxXyu35bWT21LslOL2gsB5NWI6MIzRXOirDJKY3wHhzspdL3NkMOg0QFb3pSs0 ZHl2Tbk2fhTu7Aebf9LPYn11mmwaWA== =YObh -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s--