Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1369414pxb; Fri, 24 Sep 2021 03:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu7r4ynm243OY5aZM9kFGHbl5GoCSMcqXt6Dh4bzvTECdt2Q0cG7K1iuSdJVLni5Td2LUC X-Received: by 2002:aa7:ca0a:: with SMTP id y10mr3910714eds.329.1632477784880; Fri, 24 Sep 2021 03:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632477784; cv=none; d=google.com; s=arc-20160816; b=BN/t6mZHOlBoPOz588gadUTpGjO5AxnwmXI8eBfY8N36Uza93tCwicOUgVoS5s65ga 96iobc+b0Nq+LcPzwmKsFoqYXCALYDQeQcrGrBp4jDQHUO9PnL4h5OAdw+qYzriD6OIC 9/kIbp4vrTbRy0DPZvu2RHzbWvsKvN9YIC4j4j7xNuaAGlEghMvhnPFNGtOMtcHpztly 97fjN2/47PlrrvqLph95Sd9kH45pdEuUTXaKxwAWmeFqB6Tx0iyWLltmlpiQfJNF/L7f y0NHFmcTaTF19f9DMzLnuhSkJ8izlNOMq7G9jXlCsTcCaKl6mjNH5oOVvyHObgDvDawA 8IPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4vMQMisBtZM7XcTiorQkl1JxcgLI/TRL5gZOHXdOV3E=; b=H16n6dcFegp2Fw3HU3h1RxcAeMPs2u4f+EBtHqddXbG665NJ6/wx6W3A7vQ2FM0G2+ HL8VBpmCFYeWQxcMlB/CILHxH68imVda0kzVzOrbpfBktwpUb8Y/K3k2AGrbEjo8POzs 9VcyaYy7FrJYhNSD1KzQ7FIVzLNt/b4MKVvmkenRcEdRDRvQkXmeJDexNuIKNvQa+UbU WHJRVcdM2BPVVE81mfrzKzO1MJ7Y6QcxbfHgxE6lrUHOsFSgk2tBXsV7HwCmn+IJS2Ek iReqCdRmCkH0q+iksvI5Croa1ggjBsYMfpMLcsgo5YN8U0a7l6dlGMFczRLUQT8RYNWD 78rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qwydP1VO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 u29si9377850edi.557.2021.09.24.03.02.36; Fri, 24 Sep 2021 03:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=qwydP1VO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S245488AbhIXKCM (ORCPT + 78 others); Fri, 24 Sep 2021 06:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245440AbhIXKCL (ORCPT ); Fri, 24 Sep 2021 06:02:11 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE8EC061756 for ; Fri, 24 Sep 2021 03:00:38 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id q23so8428650pfs.9 for ; Fri, 24 Sep 2021 03:00:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4vMQMisBtZM7XcTiorQkl1JxcgLI/TRL5gZOHXdOV3E=; b=qwydP1VOrJxnox75F1D8NMnpDrI8ksfDG0NgGcSOEDnix9AeVUWkcNqI/P1xHLHJqm A3L3ZJEAL8hLM6RT6jq0O1LQrlUSKPr8qpQJhHJo+p6teiulFYwv2AEj7E8dOJeNvuXW UVL0mbY/xitJd8g5epDHcI4GZXBMAgBKZdXQBZUUOBCm8J1S+ACZ5AWWAAGJvpT/kkL/ nkxzXhsKbshQlRe5QjvxZ6F8XYpFh/ivjtOQAvAPEVtiPlurfMXMSxaXYnLnXooR2W2w H0lVDyhkXtQHBca4+9uU9D3WidYSQoOwuw7lzeVLENHJdzd8BVzfS1HsRl/cvtRnohLc p6Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4vMQMisBtZM7XcTiorQkl1JxcgLI/TRL5gZOHXdOV3E=; b=OOmpZ4NPRUNztRUNfly3LqwVn7C3SLjRaDL5ja7Hj260I2+BncZWBEZybuhIeLvC8G dpZoyCCPjBkmN40cNT52dOyvJ1NL5YsgCKsVJt20jJXr4oytBpbjfzRqoEnWecErnvgM tvUjKECdWcwSJWKESXWWTFy1HoflU8WjjpNvNiM28tlxJ24kPec52yYLiBGy9J3re/iu si6KsMQPEzrCXE/Mb6WOZYqR3x/0D4Dd/bCkn4lLd8SZgE2WW3av/MGhHPKCFIXqTpjc qUJfobAn6PQkRnAfO+/Eay96/Vf1lHMCB5ZT10A05YBuSV3NQ9oOlXidL8NtFd3utpDD npEA== X-Gm-Message-State: AOAM531Q3nC/o6daABOosQ6DnfFN++tKIUJj9sF5baNhKGe7xag/42J2 jWgRUS8wsbayfKwjM1Z2z8fa X-Received: by 2002:a63:5252:: with SMTP id s18mr3048353pgl.94.1632477637829; Fri, 24 Sep 2021 03:00:37 -0700 (PDT) Received: from workstation ([120.138.12.62]) by smtp.gmail.com with ESMTPSA id f144sm8399311pfa.24.2021.09.24.03.00.35 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Sep 2021 03:00:37 -0700 (PDT) Date: Fri, 24 Sep 2021 15:30:34 +0530 From: Manivannan Sadhasivam To: Loic Poulain Cc: Kalle Valo , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-arm-msm , regressions@lists.linux.dev Subject: Re: [regression] mhi: ath11k resume fails on some devices Message-ID: <20210924100034.GC19050@workstation> References: <871r5p0x2u.fsf@codeaurora.org> <877df6tlnq.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Sep 24, 2021 at 11:43:55AM +0200, Loic Poulain wrote: > Hi Kalle, > > On Fri, 24 Sept 2021 at 10:36, Kalle Valo wrote: > > > > Loic Poulain writes: > > > > > Hi Kalle, > > > > > > On Thu, 16 Sept 2021 at 10:00, Kalle Valo wrote: > > >> > > >> Hi Loic and Mani, > > >> > > >> I hate to be the bearer of bad news again :) > > >> > > >> I noticed already a while ago that commit 020d3b26c07a ("bus: mhi: Early > > >> MHI resume failure in non M3 state"), introduced in v5.13-rc1, broke > > >> ath11k resume on my NUC x86 testbox using QCA6390. Interestingly enough > > >> Dell XPS 13 9310 laptop (with QCA6390 as well) does not have this > > >> problem, I only see the problem on the NUC. I do not know what's causing > > >> this difference. > > > > > > I suppose the NUC is current PCI-Express power during suspend while > > > the laptop maintains PCIe/M2 power. > > > > Sorry, I'm not able to parse that sentence. Can you elaborate more? > > Ouch, yes, I wanted to say that the NUC does not maintain the power of > PCI express during suspend (leading to PCI D3cold state), whereas the > laptop maintains the power of the M2 card... well, not sure now I see > your logs. > > > > > >> At the moment I'm running my tests with commit 020d3b26c07a reverted and > > >> everything works without problems. Is there a simple way to fix this? Or > > >> maybe we should just revert the commit? Commit log and kernel logs from > > >> a failing case below. > > > > > > Do you have log of success case? > > > > A log from a successful case in the end of email, using v5.15-rc1 plus > > revert of commit 020d3b26c07abe27. > > > > > To me, the device loses power, that is why MHI resuming is failing. > > > Normally the device should be properly recovered/reinitialized. Before > > > that patch the power loss was simply not detected (or handled at > > > higher stack level). > > > > Currently in ath11k we always keep the firmware running when in suspend, > > this is a workaround due to problems between mac80211 and MHI stack. > > IIRC the problem was something related MHI creating struct device during > > resume or something like that. > > Could you give a try with the attached patch? It should solve your > issue without breaking modem support. > It will... But we should first try to see what is causing the device to be in MHI RESET state. We can't add a force resume case without knowing the rootcause. And for workaround, we can proceed resume if device is in RESET state adding a comment on why. But let's first get the MHI debug logs. > Regards, > Loic