Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp724943pxb; Wed, 8 Sep 2021 10:48:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3PN9F8UtpzldqTS/IfDJ/dbWjMqicQMhp6JU5w44z54bWT9MOS6eZHk8lwmhrg31NIHcP X-Received: by 2002:a05:6402:40cf:: with SMTP id z15mr5015987edb.70.1631123289737; Wed, 08 Sep 2021 10:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631123289; cv=none; d=google.com; s=arc-20160816; b=hmul3OrxKlzDMG6zhH7koGsZJh/yw7+wg+gdEeWXrJDbtF8wzKWa9XG7A7RbyN2S0U O3++Jt0nzBZGgaJIf3TPsUfGNYErC1GyDpfeqz4kKBxEwB2dIA7umFwegmUtFaynrf+C 7+5Z+u7oVw49JdaWbKscub+awSc+ztvDXIzwa8FQ3kMLdUuy9XxH6ApqJZ6sjrqjoY+F QhNyiiy2vplQYvyBuYL11unLTeRBoD+o+W0K0RPrKH0kY5bdnwn8jXJFAq5D5FWP9XMV cBVuYSGR50ZIWB0ny7LPy/yO9iuKL8lY5NM0N+vx7k2ywMR+/faMKftoTIMFQ5LVsWkK FRgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:dkim-signature; bh=GYpi6gE4nzN8o+CwjqakTN6E/NlmqkQ97rUaOk/UWX4=; b=kbGwVf3Wqbm1EX2Ti3NTY5XBchGCLybijUz/0oFEzd42RrBehnLahNzPnypTbDBYrh OoVe9QI1wPOMk+V5JXOjgylZahpKP2oQJAD3d2U5Nj5txzGEj7Iqpsl5qv4RR8t6tv2R Pvf0vAAAPI484kP0WXlpLA08YXLY8Fjne0SFnJp0MN140wXy8NkcvR1RHlD8BWMm3vV9 +aRUuFD6kpKftLFBTSExG6szr3izn6aDRFcuyADox2XXP1Ep1b11hlf9NE6NCAjJpyCi Jrg4/8AWfDVDQFaS0nkc6oJefJneiKDDC4QDKxsedf8CMzuE71fE5KlY/tz10hciBUgY r91A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dB7G61cB; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kx11si2619694ejc.554.2021.09.08.10.47.40; Wed, 08 Sep 2021 10:48:09 -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=@linaro.org header.s=google header.b=dB7G61cB; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbhIHQI1 (ORCPT + 99 others); Wed, 8 Sep 2021 12:08:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhIHQIZ (ORCPT ); Wed, 8 Sep 2021 12:08:25 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6092BC061575 for ; Wed, 8 Sep 2021 09:07:17 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id u19-20020a7bc053000000b002f8d045b2caso1970228wmc.1 for ; Wed, 08 Sep 2021 09:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=GYpi6gE4nzN8o+CwjqakTN6E/NlmqkQ97rUaOk/UWX4=; b=dB7G61cBrEEZi4ZBM15sM0lRlQhSceRMs2j8VpUdowxIq7I+EV/O6tHzIlRKCQYMhb sqKtTBuda7JR29GXYY6wtlEPEmOdXuyI7/eQcNvuWD7Cd6m0WoBprusLR/6QX1edwqZP AEgnDtPlQkFvRAK8tJMfKHKW/BuNDC7p19BUYyqoOnFk34twoyiM63BUtq5fRNLxyUQu FhAQzzeo+b1ZVFvMKe/gu1jnlA1YwVlBXGS9QfgyV+mFfgc7UHcQHhb7OM4+wcj/jdTy QwVDcjJcgrc4vPhQrTFrGQYRbWhLz6d4x5VBLtaw1qcQwCtxkRx90tYfvdAdCEyJBoh5 VguQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=GYpi6gE4nzN8o+CwjqakTN6E/NlmqkQ97rUaOk/UWX4=; b=HUshNi2lWk/35TTs+ZhZqoplXI+u2e0blb50qCgxGhH8pqNceI0zVir2ABOBcL35br OX0bGjJW2L0cmzv3TdsiGgVEA/v2hyQ5n9NcCzZm0hhmfbIQmyXOg/YUlHB62zhrubBV 5OhzhDwYj8drkhSy8UHzY4T6O8PTf3sQpzlePUxbwaEo1gW3IePuAHuMVF829F+8vQW/ 6wnXV3j9Y8V3Mmouig8wn6W4PLuXl+y/PD3biKGo5u5D+FK4w138mwQoSZSUmTQhxVdL ZaS5oT4LuswdrfmknNmBlYanS0xrO95t8YIqx8o4JXCyrFawT3o34LvQknPkPJ6QLYex 8/uQ== X-Gm-Message-State: AOAM533z+MsA5KgtgnOjbS+efQwTS9e6lY/WEmm+pz0Z7C8L0b/u1X3M IKT15s+CxLXa29kmmEVfPdxYGA== X-Received: by 2002:a7b:c4cb:: with SMTP id g11mr4377562wmk.80.1631117235971; Wed, 08 Sep 2021 09:07:15 -0700 (PDT) Received: from [192.168.86.34] (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.googlemail.com with ESMTPSA id o7sm2359684wmq.36.2021.09.08.09.07.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 09:07:15 -0700 (PDT) Subject: Re: [PATCH v2] ASoC: qcom: lpass-platform: Reset irq clear reg post handling interrupts To: Srinivasa Rao Mandadapu , agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org References: <20210908142535.31106-1-srivasam@codeaurora.org> From: Srinivas Kandagatla Message-ID: Date: Wed, 8 Sep 2021 17:07:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210908142535.31106-1-srivasam@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/09/2021 15:25, Srinivasa Rao Mandadapu wrote: > Update interrupt clear register with reset value after addressing > all interrupts. This is to fix playback or capture hanging issue in > simultaneous playback and capture usecase. Could explain bit more about the issue. Specifically which interrupt and which ports is this issue seen. > > Fixes: 4f629e4b8705f ("ASoC: qcom: Add ability to handle interrupts per dma channel") > > Signed-off-by: Srinivasa Rao Mandadapu > --- > Changes since v1: > -- Update comments Header information with fixes tag > > sound/soc/qcom/lpass-platform.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c > index f9df76d37858..1a0a4b0b1a03 100644 > --- a/sound/soc/qcom/lpass-platform.c > +++ b/sound/soc/qcom/lpass-platform.c > @@ -749,6 +749,12 @@ static irqreturn_t lpass_platform_lpaif_irq(int irq, void *data) > } > } > > + rv = regmap_write(drvdata->lpaif_map, LPAIF_IRQCLEAR_REG(v, LPAIF_IRQ_PORT_HOST), 0x0); Writing 1 to a bit of this register will clear the corresponding latched interrupt. So I don't really understand how writing 0 is really helping here? Do you have this patch in your tree? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/sound/soc/qcom/lpass-cpu.c?h=v5.14&id=6a7f5bd6185e1c86256d5e52c3bb7a4d390d6e19 --srini > + if (rv) { > + pr_err("error writing to irqstat reg: %d\n", rv); > + return IRQ_NONE; > + } > + > return IRQ_HANDLED; > } > >