Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp673296rwd; Thu, 8 Jun 2023 06:21:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tGfJZXguga4Hpl5K47QM5t5K5CszUd9enuZNsM15fyEyYc5b9PP1ooCYX1ud4upnBwwIi X-Received: by 2002:a17:90a:c217:b0:25b:8664:c28 with SMTP id e23-20020a17090ac21700b0025b86640c28mr86831pjt.29.1686230490596; Thu, 08 Jun 2023 06:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686230490; cv=none; d=google.com; s=arc-20160816; b=IP46lMcKDMSQVy83kW4jPF+1L90EBIS10t/j8Z+yoR6ZWYo5b/dzlNerL/STpH4TSQ VvjV3awW7LygkVsGjB//2Q/YNuN4VNDCgnjiBE3u9EZNblEUCg6J82vg+/kxKsGe8MT2 Y/s5AOpEEewDSVu8ay9PFHe+EyJooJ7tE4Uen1Hoe0Co0vjidoqbuV8A+O53QHlHsVlz jJdXYUpLwfGTN32vgVpiUgNep7UDVuGkvLyAzF4yR5U1Q0Dp/+Z4sIRmigWzgTgpN/L7 LnyAgwUigzec/hB7I/8vzD2t7cBOVqi1uDHgsRtb2/0EfHtE4NeqrDkEC5r0GJNOQMYX I25g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vmqGVlI9T81rCL/4f/GexWdAAvug+BIqEO8bf8jT/6U=; b=v7FdlESYfc58st3B5tfuHH/sqlvrhD8x7WwGmVWAQByvZWSNxl+u97u3g+oRtyTvCc FdofXopv/bn0QK7vL4UqOhnFSIOtbc2Q09BvhOGMQ/JFiMWyX7/WOukNorz707jiY9P4 sAhWOh7m7NDmr3Wn7e4odrsPSOKvO/ch6vF2V/8eO859sMcvYZpezU8Bl2J+YHryOFpN RPEfEMjAKFiwz/8j45Kn6TR3W8HrDK8xKktYN4/8cc45tLl/GQoil02JQm+tv6JUdmIN eMPY8LaJFacgDudPtLrJe8Vp8ty4pTlo/xqMka+PIo82n2Fj/T0sB7Dp4pKqZ8mszMOZ HwZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RfzPmr6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a17090ab94600b002536b553afdsi2657736pjw.98.2023.06.08.06.21.16; Thu, 08 Jun 2023 06:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RfzPmr6B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233626AbjFHMp2 (ORCPT + 99 others); Thu, 8 Jun 2023 08:45:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234793AbjFHMp1 (ORCPT ); Thu, 8 Jun 2023 08:45:27 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F389926B1 for ; Thu, 8 Jun 2023 05:45:25 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-30c4775d05bso396717f8f.2 for ; Thu, 08 Jun 2023 05:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686228324; x=1688820324; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vmqGVlI9T81rCL/4f/GexWdAAvug+BIqEO8bf8jT/6U=; b=RfzPmr6BWjOtPOkksfKRwsz2n058AlqO66sfiRGGMz01Ym8+8ddRVr5CW3CHckVTa7 TaXVxFurMC4eP4so+GDZuHKrJlyuxN4Fw1MWkcz71gagOIizaQkMAXEAXkNkR+WE7X3i N70wV59iGNLcptDlYJmj2DL/eVR4y8uQ1AzyRz1RVJRDK6StCKzpv+0DULcesZDfi7zt bA83MPnUB7dAzLT8YfT+wdhZ2nNjotHCC4KFL4iOppTJbrCRsynn+tg5aOdWUfAGRhnq ZJwFIu3uDlGS6UZ1ro1ijVl3v0tZUyoWtBRmcLxqr6ZXXL7qI7LCtaa8zQHoOeax2RwF MQlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686228324; x=1688820324; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vmqGVlI9T81rCL/4f/GexWdAAvug+BIqEO8bf8jT/6U=; b=EzP6oyYqAdVwBzClmNwZQxOhxbB/pUpgUS8faz+7UVApVEDbkDPOjbgQLi7nJOrd+Q iFn5iZGTWBUrI8vJ6W79CXGyUl3Z1Wpadr/Y8bHSDqYp6cV3W7kwXDh4dSYtXg9V3zQQ UavxX323ZF3zMF2UvNGETW6NYWvxwhSRjgeBAkHVCpc2PM3zjQs3peG1jiWf0SlX1FjT w1d346YWyVnuYD4/xDsvFqEi3Tn/n18fKc+M+ebv0tIzfxOKVUwX6EqmCuOiS/oWO1fJ WSuOhs9EbZ2xiADQVTGoU8oEuHXXU0g6VAPcA3IdSmb2LrtQ/JxJOGu/P8ZVENDocO9F hk0g== X-Gm-Message-State: AC+VfDxizRp/EYqVbcFLl2zwjkKAG0KnEVokc5rek42mPpgmEABHL0Ye o3qoM+VZYVz4SIMHpCiL3fEQcXGpJ2oN6h03y+Y= X-Received: by 2002:adf:e592:0:b0:307:9db3:432a with SMTP id l18-20020adfe592000000b003079db3432amr6901113wrm.42.1686228324291; Thu, 08 Jun 2023 05:45:24 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.googlemail.com with ESMTPSA id b10-20020adfe30a000000b00300aee6c9cesm1523197wrj.20.2023.06.08.05.45.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 05:45:23 -0700 (PDT) Message-ID: Date: Thu, 8 Jun 2023 13:45:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 0/4] soundwire: qcom: stablity fixes Content-Language: en-US To: Johan Hovold Cc: vkoul@kernel.org, andersson@kernel.org, yung-chuan.liao@linux.intel.com, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20230525133812.30841-1-srinivas.kandagatla@linaro.org> <5d6bcc6a-151e-ac21-2dd2-f72a91f562d5@linaro.org> From: Srinivas Kandagatla In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/06/2023 13:40, Johan Hovold wrote: > On Thu, Jun 08, 2023 at 12:11:45PM +0200, Johan Hovold wrote: >> On Wed, Jun 07, 2023 at 10:36:40AM +0100, Srinivas Kandagatla wrote: > >> No, not yet, but I just triggered the above once more after not having >> seen with my latest -rc5 branch for a while (e.g. 20 reboots?): >> >> [ 11.430131] qcom-soundwire 3210000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered >> [ 11.431741] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:4 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw]) >> [ 11.431933] wcd938x_codec audio-codec: bound sdw:0:0217:010d:00:3 (ops wcd938x_sdw_component_ops [snd_soc_wcd938x_sdw]) >> [ 11.435406] qcom-soundwire 3330000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered >> [ 11.449286] qcom-soundwire 3250000.soundwire-controller: Qualcomm Soundwire controller v1.6.0 Registered >> [ 11.450632] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2 >> [ 11.453155] wsa883x-codec sdw:0:0217:0202:00:1: WSA883X Version 1_1, Variant: WSA8835_V2 >> [ 11.456511] wsa883x-codec sdw:0:0217:0202:00:2: WSA883X Version 1_1, Variant: WSA8835_V2 >> [ 11.562623] q6apm-dai 3000000.remoteproc:glink-edge:gpr:service@1:dais: Adding to iommu group 23 >> [ 11.585766] snd-sc8280xp sound: ASoC: adding FE link failed >> [ 11.585872] snd-sc8280xp sound: ASoC: topology: could not load header: -517 >> [ 11.586021] qcom-apm gprsvc:service:2:1: tplg component load failed-517 >> [ 11.586100] qcom-apm gprsvc:service:2:1: ASoC: error at snd_soc_component_probe on gprsvc:service:2:1: -22 >> [ 11.586530] snd-sc8280xp sound: ASoC: failed to instantiate card -22 >> [ 11.591831] snd-sc8280xp: probe of sound failed with error -22 >> >> I don't think I've ever seen it before dropping the runtime PM patch as >> you did in v2, and I hit it twice fairly quickly after dropping it. And >> now again. >> >> I'm not saying that the runtime PM patch is necessarily correct, and >> perhaps it is just changes in timing that lead to the above, but we >> definitely have a bug here. > > I searched my notes and realised that I have seen this once also with > the runtime pm patch. So the fact that happened to see it more often > after dropping it is likely due to changes in timing. > > Looking at the above log it seems like we hit a probe deferral somewhere > as some resource is not available yet, and this is eventually turned > into a hard failure that breaks audio as the error is propagated up the > stack. I was looking at this too, And I think this change should help.. Not tried it though ----------------------------------->cut<---------------------------------- diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index cdabfe2feceb..b57532d6b163 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -543,7 +543,7 @@ static int qcom_swrm_enumerate(struct sdw_bus *bus) list_for_each_entry_safe(slave, _s, &bus->slaves, node) { if (sdw_compare_devid(slave, id) == 0) { qcom_swrm_set_slave_dev_num(bus, slave, i); - if (!slave->prop.simple_clk_stop_capable) + if (slave->prop.clk_stop_mode1) ctrl->clock_stop_not_supported = true; found = true; diff --git a/sound/soc/qcom/qdsp6/topology.c b/sound/soc/qcom/qdsp6/topology.c index cccc59b570b9..3c50a560bc84 100644 --- a/sound/soc/qcom/qdsp6/topology.c +++ b/sound/soc/qcom/qdsp6/topology.c @@ -1276,10 +1276,8 @@ int audioreach_tplg_init(struct snd_soc_component *component) } ret = snd_soc_tplg_component_load(component, &audioreach_tplg_ops, fw); - if (ret < 0) { + if (ret < 0) dev_err(dev, "tplg component load failed%d\n", ret); - ret = -EINVAL; - } release_firmware(fw); err: ----------------------------------->cut<---------------------------------- > > Johan