Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1406994pxb; Fri, 24 Sep 2021 03:58:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1uVp34P/hImJPvrnO4bZMgOYRkkHHvHEl8I33AOMA91m1Nvmix/PaCs9jSdr2UscWGLLv X-Received: by 2002:a05:6602:1205:: with SMTP id y5mr8471848iot.44.1632481084813; Fri, 24 Sep 2021 03:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632481084; cv=none; d=google.com; s=arc-20160816; b=UfAxkVUg+Mx71w0dNiQRTmWiLkJOS49OAR9TfDq0+yTZ1PQ4VfFxnNpn6d1n9jpmEX rz8fR+7yakdyKY52okBzolhVJWcf3NpjsZ1Ox3WNoFUBrekB9GJ9kJAJCmi/G1+6KNOG 12vg8rDlVc/zTzjqfT2EPO6t942MHIndfmdza8h5mQZAqAO76N2SHdO/r9fvsOama0Ex FcGmxX5bSo7Gy63kUcrtL4scwsIPSGWTWuB1ki+w3XqYaAVxsPEVi+ln50RFqzxE74xF n+NtPwsqR8TV2tOVZF6/9Jf5JwcoAsklhSADZIIwHTyRAqTgarGt56U1+oC97r+QzonU aR8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=P3RD3M7+g2Yi/4ZTx3R1aVwoD6LBprfi6LPXWTp3dew=; b=miaakFP+GpUuVzFTyXOkN8F2utL/ibN1KR8wivma4VQ4223lFgv3HBGlBw1LS/NYt5 axQz/gxIsQmOyabYIFymGW+QL7kzKCnA5MThPw6/lxctlPDw35FF8TNVTF0+j5YUeOxg DGRDCkL77I3hhHDb1TlDlk1UAgONStReOhcKNpbmgtJvQMVa8Q+FCGy/AptU8u3VYk1d wcAHdKTZtZ0iI0Oc/9cblPhx4oxwlkvo3A2GRPPLXlDpaRAfOUSIoQ6cRjJwiSZqhb72 Y2ByPBJmfXQskD2DDE5KyFo+Hz7m1CzWS2OeRVzh8iFAZdfil0bXs8BEmL+Uo3oXumqv eFCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=VJoqYVZD; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si11286774iow.85.2021.09.24.03.57.52; Fri, 24 Sep 2021 03:58: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=@mg.codeaurora.org header.s=smtp header.b=VJoqYVZD; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245111AbhIXJJ0 (ORCPT + 78 others); Fri, 24 Sep 2021 05:09:26 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:59894 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244418AbhIXJJY (ORCPT ); Fri, 24 Sep 2021 05:09:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632474471; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=P3RD3M7+g2Yi/4ZTx3R1aVwoD6LBprfi6LPXWTp3dew=; b=VJoqYVZDyYMuVv/jRg84zz7DkAeTMSmFh9nC/dhIICHfhkefXnjLAAOmW4xSGvl5+iiNnv8d lsvCrQwAzzaCSd6K4J80C5C+yF9UezRiJwJk5kWfvYgTwjxGYi7apyeejo1Fb6xRxqz0x8ts WipybnuZWS5h+L5THWrVd8JZslE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 614d9564e0480a7d6faa6778 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 24 Sep 2021 09:07:48 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id EE3F6C43617; Fri, 24 Sep 2021 09:07:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 96D24C4360D; Fri, 24 Sep 2021 09:07:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 96D24C4360D Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Manivannan Sadhasivam Cc: Carl Huang , Loic Poulain , ath11k@lists.infradead.org, linux-arm-msm , linux-wireless@vger.kernel.org, regressions@lists.linux.dev Subject: Re: [regression] mhi: ath11k resume fails on some devices References: <871r5p0x2u.fsf@codeaurora.org> <20210916111218.GA12918@thinkpad> <20210916163529.GA9027@thinkpad> <87k0jgxyjp.fsf@codeaurora.org> <20210916171927.GB9027@thinkpad> <20210923085926.GD6083@thinkpad> Date: Fri, 24 Sep 2021 12:07:41 +0300 In-Reply-To: <20210923085926.GD6083@thinkpad> (Manivannan Sadhasivam's message of "Thu, 23 Sep 2021 14:29:26 +0530") Message-ID: <8735putk82.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Manivannan Sadhasivam writes: > For aid debugging, please see the state the device is in during mhi_pm_resume(). > You can use below diff: > > diff --git a/drivers/bus/mhi/core/pm.c b/drivers/bus/mhi/core/pm.c > index fb99e3727155..482d55dd209e 100644 > --- a/drivers/bus/mhi/core/pm.c > +++ b/drivers/bus/mhi/core/pm.c > @@ -898,6 +898,9 @@ int mhi_pm_resume(struct mhi_controller *mhi_cntrl) > if (MHI_PM_IN_ERROR_STATE(mhi_cntrl->pm_state)) > return -EIO; > > + dev_info(dev, "Device state: %s\n", > + TO_MHI_STATE_STR(mhi_get_mhi_state(mhi_cntrl))); > + > if (mhi_get_mhi_state(mhi_cntrl) != MHI_STATE_M3) > return -EINVAL; This is what I get with my NUC testbox: [ 970.488202] ACPI: EC: event unblocked [ 970.492484] hpet: Lost 1587 RTC interrupts [ 970.492749] mhi mhi0: Device state: RESET [ 970.492805] ath11k_pci 0000:06:00.0: failed to set mhi state: RESUME(6) -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches