Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2556051ybz; Sun, 26 Apr 2020 23:04:11 -0700 (PDT) X-Google-Smtp-Source: APiQypKMUbfYDSfkSo/zb01gkGcDSiC658EplHIyQ01lfvmqk+LVwjvTjDPAsnNRXpEBd/faNjdG X-Received: by 2002:a50:9f4a:: with SMTP id b68mr17406923edf.108.1587967450910; Sun, 26 Apr 2020 23:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587967450; cv=none; d=google.com; s=arc-20160816; b=evD53KVA8PBYDuv3zsxx2C+HREmBX5xJHCy49373J+MxRsDE2B9ve+hxtnF7Pxx+Ht RrfG6mQmP7qNr9yRXsIBrLQkyoLFyddwTA2pTo1syvb49CwPVZW1eyWy53rvYfEOPb8X zyUsErEwBD5n56Yeri3AdlsSyMc0gpdUZhMNMYByADn+PZBbaQJzYAvutSGFGUJZ2wf1 dZ+y5JTra1bBY3rUB/l7oJpiKJLXIwcy+9jf1RvT9di0I+Vppkaoxs8FmV9rwLzMK8Di eUjW9lLeZmy/+wjYFsNga00nxfk3HnwPv7sB9mPr+zKlzZtUFLitIZZxmAfqXML51Jvx ZEVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QGFl2uS3f+5RhP1jpZPcJAcfmonJZTFWwEebr4DUxFY=; b=PTw0uKMcygznbEEsrUE3wTdyBbwcz2gSsbBLOpqQDTxX4NS03R2JB+IwXzyi2HYMpb OsfQrPpGCxfG2TcKfRwMX6PRhvyjNMyrncai5O9LtyXq7hLCZKEKajyhkPSaUcSmwvkS AntQpdKBQ6/t9E1Zh+7wGhi0zk3n3p2FJDoNgIAbbhUyvV13MsPcPLSswtKAy1frE3NR 9VzDshEGzy1o2afpnz/6Xk84Ubme62NbsLhB4Qc4MZt7z85K6WpFa8DdF2ss2HtpzBN7 FCp9gIBbpDJdVbKeETCL9UUtOYDDgYjqU5gSfUCm7p4nklmA/RC/fh2Drx3Oq2KKqwqU Hucw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UyRo4nU5; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p4si8175730edd.234.2020.04.26.23.03.47; Sun, 26 Apr 2020 23:04: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=@gmail.com header.s=20161025 header.b=UyRo4nU5; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726557AbgD0GBk (ORCPT + 99 others); Mon, 27 Apr 2020 02:01:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726221AbgD0GBk (ORCPT ); Mon, 27 Apr 2020 02:01:40 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED9DC061A0F for ; Sun, 26 Apr 2020 23:01:40 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id 71so13338142qtc.12 for ; Sun, 26 Apr 2020 23:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QGFl2uS3f+5RhP1jpZPcJAcfmonJZTFWwEebr4DUxFY=; b=UyRo4nU5c3POIrn+bZNVgt6vTDruBvL+THYSpR5jUEZZLvf83LrK3lhS32ufRmvIuZ j+p0QDq8tiRsO/i7/BbTZt+KQnXxVxGMIcXKxLkgYnTHILV/QflQyc3LOUCSX/j8RH9B HqjbXO3I7wsSKeQBXxBxS6w/Lqlwgw3tUuFnaj/+EkR7nnxhgiS0rjU1y/MyrHrnYdAa z3m9Gu1qnyQ9j2RHohDO9UfdkJlg62SgSkrBc5g7LfpEcLqpwxvb29YXpNsnBUHi3XYQ nK4zBoGZFxPKFm3/6Rw8+ToQ98up3xbuv0qg1BFYyuT4g04WSLG+ELflaQcjzRES2Uv7 ZjQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QGFl2uS3f+5RhP1jpZPcJAcfmonJZTFWwEebr4DUxFY=; b=LvdQ6aqNXOzLorvD335rOY4IugElnjNKskIHpw2qF3iQx9pFhuoOHuP1i4wpUPpiqs raNQ7Jg1MQC4kjzIV1jcsUymazDK1MRovSc6U8O/e9ekJkk9gEnwOtNOfpeUnJDg9rQ5 6q9qS4P4ulBOguXCdna+PaXUWBw4DdxVlKW8lR+M4BYvuTp/36F0g+PGBpvVsEFzo6PX orFJQSwUkGaZ6kPOiT+VvbJaQkqQX4DMnDf0BWneIVjWEQqIS/2pnXl+ghi8LRTe9BcL JCMkSBP7rdz3g2axyCXZZRlbk+NERvSiwagbL//NJW5g/A2N5072iatrIzJv5dG8bdaL xYCA== X-Gm-Message-State: AGi0PuZ1crSGo25rp/xcgX+EmxNvHpQSqMTqGHQ+KSgGOis3JGj0Ofyv F7RPTgw8m858fI5Vk0nSC7rZ78PB37FthX5ZKC0Iaw== X-Received: by 2002:ac8:22ad:: with SMTP id f42mr20964483qta.292.1587967298448; Sun, 26 Apr 2020 23:01:38 -0700 (PDT) MIME-Version: 1.0 References: <1587711246-27226-1-git-send-email-shengjiu.wang@nxp.com> <20200424091533.GA8856@Asurada> In-Reply-To: <20200424091533.GA8856@Asurada> From: Shengjiu Wang Date: Mon, 27 Apr 2020 14:01:27 +0800 Message-ID: Subject: Re: [PATCH] ASoC: fsl_esai: Remove the tasklet To: Nicolin Chen Cc: Shengjiu Wang , Linux-ALSA , Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, Takashi Iwai , Liam Girdwood , Mark Brown , Fabio Estevam , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 24, 2020 at 5:17 PM Nicolin Chen wrote: > > On Fri, Apr 24, 2020 at 02:54:06PM +0800, Shengjiu Wang wrote: > > Remove tasklet for it may cause the reset operation > > can't be handled immediately, then there will be > > endless xrun interrupt. > > The reset routine is really long and expensive, so not sure > if it'd be good to do it completely inside HW ISR. Have you > tried to clear xEIE bits to disable xrun interrupts, before > scheduling the tasklet? If that does not solve the problem, > we may go for this change. Good idea, will send v2 best regards wang shengjiu