Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp458367pxb; Thu, 21 Oct 2021 03:03:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXGwdDYQybnyZQipuI/R0+RLd/X+WwLt4ljIpVIMwfTCKJ0P+uzFOhkx9Lfz+0HKmJt4QF X-Received: by 2002:a63:4f56:: with SMTP id p22mr3718369pgl.134.1634810608455; Thu, 21 Oct 2021 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634810608; cv=none; d=google.com; s=arc-20160816; b=UFpdJj627Ke1sAIbKFshzWoklYezNCOnJBVggvxzqqeesiiaKbz1n4YBgSeyjtg/io 1zFi5Lg0R2U8clMzcEkpelyImmrJICZNV3/LFV0pQgYrOSZ+yEshYjAs8lh7il1dIgSx +rFbfcfW6ThyUtps3eNIpLe8qJwkR6L8jwSprTy0/lCV03Yqvf8Um3N269YTBq1lXw1G TkNl7f46CdBVw2JKBysoNffw/Zr703GjHoR2ySMYPXWk7QxoadGTXd9wHf/xUUD9YVMX WLnGg/Q+apht3rAZ0iH7WNszcikQwFEQqgzStVlW6/w7NqwVhbH9GGs/hjQvxYeUfo30 f47A== 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=dyIzNS94yVFn26I1+Vs+X45Vc6HJjjNBIVAQhUczpSM=; b=UYFI4T5GSwChFK8Ef/ZUun2zCD1+k33Sy13YTUsuBfUnDicm7HHI+1akJmdgj9KY0d XuuY+Q+Sh8r2GKc0gLJqgmRZ5Ctdvr/qqhwpYYmxeH2J568TBMkSrzXGDlQU0K43CKwM YbbxU1y9LgsjwuxEJ0MANJYe+yPPzWEwx01dAD3PPpyHLsg8buUYBc4EmxS486gQRlhA Vr+YKzzy4mDntGY6FJFdEwBAjzCJ4LRp7eb+RnRgUPv5wDaC9nAx9YZ3RQoFKhV68w8n os/I4jSyOw3ashEiLPG+S2D9m/Hp+iqLzdATxbnugRd1ryCdTYUHbNdr2HIuUItyKHWO R5+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VWDF7tT1; 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 b16si6672715pls.193.2021.10.21.03.03.15; Thu, 21 Oct 2021 03:03:28 -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=VWDF7tT1; 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 S231599AbhJUKFZ (ORCPT + 63 others); Thu, 21 Oct 2021 06:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231447AbhJUKFZ (ORCPT ); Thu, 21 Oct 2021 06:05:25 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A23CC061749 for ; Thu, 21 Oct 2021 03:03:09 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id v20so40641plo.7 for ; Thu, 21 Oct 2021 03:03:09 -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=dyIzNS94yVFn26I1+Vs+X45Vc6HJjjNBIVAQhUczpSM=; b=VWDF7tT1/ERaiy+hd0f6TMm9xFOihJIvjzaya/s3ODTaGnjpSPJdbYprA4nNTrVcbD bGlCes4+wktbJ3qFkdxKX+pF3DSJZ3pwm1T+rFQES8zBRpNnOrXkgKXHJ2bue3r3p4G+ H69wUbUsY4TqDGOuFqhQvBvO6pAo8G6ZO6CEnUPDxxUOz6DdGTmalk5Q68ba/STSUsLs cds7OJH3l3frdAhraIIVaAAqHEX+fjg63+fTS/Iv2xbAF5DLtfQp8/2JJG6vSVgCrzCp biMIQFzCz+kKkNEb+g8wP/QnInQP1CRNTU7ldpMMsO8ZEgAaQcc58to35Vlx9L2XWw8h b6aw== 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=dyIzNS94yVFn26I1+Vs+X45Vc6HJjjNBIVAQhUczpSM=; b=mH9HvuHv9NRQOua5+JeKslqtE0wVoW37XoS4oPWvmbPJAq/5ebzGT5Zie0yWrAPe3k agMbbS0nCRb8oBp+yOS02CfbcsgAVffVtLtPbeqKfBxcgZ+3TyJqWJAbxXt1EkT3qiBf cfVLpd68Pd112FnCOE+37qnCssJH7yz94ihIBoMTWk8MLdOi/TZK+qMSKQJ+7XTUj4fR HWqINJ29PFyBI8Eh1PqikNW6em5GoHp8fY3jyXCs3TonjcbiA29+WFuqb/KZb0dbPzyM E0e+KDTvRmCCfznS7Usg04XJa3w/Ne4n8JrRstITMXx3Dk2CA5btGHxIWtIL2+wKJzQW sU7w== X-Gm-Message-State: AOAM530JG32APG07/0GoUIOZ9NiGMLdRbwlDH4yVWsGF1gG3lah2tI+B QwCMNDpOgS63rxpWq+bXGmm3 X-Received: by 2002:a17:90b:1196:: with SMTP id gk22mr5654164pjb.126.1634810589002; Thu, 21 Oct 2021 03:03:09 -0700 (PDT) Received: from workstation ([202.21.43.20]) by smtp.gmail.com with ESMTPSA id f33sm8717545pjk.42.2021.10.21.03.03.06 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 21 Oct 2021 03:03:08 -0700 (PDT) Date: Thu, 21 Oct 2021 15:33:05 +0530 From: Manivannan Sadhasivam To: Kalle Valo Cc: Loic Poulain , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-arm-msm , regressions@lists.linux.dev, mhi Subject: Re: [regression] mhi: ath11k resume fails on some devices Message-ID: <20211021100305.GD7580@workstation> References: <871r5p0x2u.fsf@codeaurora.org> <877df6tlnq.fsf@codeaurora.org> <87a6jl9ndo.fsf@codeaurora.org> <87ee8hgqni.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ee8hgqni.fsf@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Oct 19, 2021 at 03:12:01PM +0300, Kalle Valo wrote: > Kalle Valo writes: > > > (adding the new mhi list, yay) > > > > Hi Loic, > > > > Loic Poulain writes: > > > >>> Loic Poulain writes: > >>> > >>> > On Thu, 16 Sept 2021 at 10:00, Kalle Valo wrote: > >>> > >>> >> 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. > > > > Sorry for taking so long, but I now tested your patch on top of > > v5.15-rc3 and, as expected, everything works as before with QCA6390 on > > NUC x86 testbox. > > > > Tested-by: Kalle Valo > > I doubt we will find enough time to fully debug this mhi issue anytime > soon. Can we commit Loic's patch so that this regression is resolved? > Sorry no :( Eventhough Loic's patch is working, I want to understand the issue properly so that we could add a proper fix or patch the firmware if possible. Let's try to get the debug logs as I requested. Thanks, Mani > At the moment I'm doing all my regression testing with commit > 020d3b26c07abe27 reverted. That's a risk, I would prefer to do my > testing without any hacks. > > -- > https://patchwork.kernel.org/project/linux-wireless/list/ > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches