Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp105801lqc; Thu, 29 Feb 2024 11:35:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUCBsys9zQcRoRIj1oWsScTPTFILXC3xrYpuflLKiR8ttMYMDPp+mmAQU25sbxI9IiEvb57yy0uTE+wLJgOSs3WmJYNHwg0Uh9S7NiJ9w== X-Google-Smtp-Source: AGHT+IHafzxztA5yYgRYwzdBl+PHGzv7SAtnu6a2NX//1DmnsAHaVJrFWYlZ3csL2OTW60t6U3s4 X-Received: by 2002:a17:90b:4c87:b0:29a:9d49:6b7f with SMTP id my7-20020a17090b4c8700b0029a9d496b7fmr21606pjb.29.1709235349675; Thu, 29 Feb 2024 11:35:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709235349; cv=pass; d=google.com; s=arc-20160816; b=PNFVQ5lCzZAgLa1Ov41Gq4+Qie2vG5E8AvnsU2hDN5LigG+yw+HoMox9TEPjoxS9bM r97Ycd/+PODuLIDoPjC28usbbUEiD64+nuVD5naLMpujNLjgVr3ls7qB38eSRSRS6jsV XwmXybtzgqXvs8PciTbwQ+qHwm4JNsr21K+/Fzy5Hnlt6K/sVn/Jpy9JOdW12uoxv4Iu qwTkklSAbHoJUvrDFLCHyu21pKcsgWQP5fJ8jE00W9RCSE2FoKrFi4EQ2CKTMVdN87wZ n8K55BO6zDUn7H9eb8kORbzI74eusGHSyk0g7q+M7uR+ZJnWYMRh3jtUDkfTNonTcRIP UfCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from:dkim-signature; bh=1mNs5kC6TksS6UB+6cGJY1ZereaVWhJ+biN+qJFhJDA=; fh=SEYPK7Eq8v0D/wRQGK+t5o7AXfCy51bJkoiy7rQi2K8=; b=XLTY9aXD8OvtpdxJQdZIw+tGUaj3mFqrbxaKgHMoieeCCLTvkuvgiwe/JPGfCrAwRt MG4d+7/f+Rj+Q+fqKqaubF4SjIVRIHtqT5xm4nXdeIebjXmPC5iKpQaFWmz3CwIlN/CU xK/8KdrNry6QmMnJ1rD4J/rGnIdySwnuVaIMOUjCai+rFvpf+dtn6wGjMDyLVIWKe5yk V+YZUx9nBcewktqgPpNUKSUg+RoT6CVolaq0Qw8Yy3qcoe1ifD4G8EvwLEc6picr+bdh UZuEzMNejhBZNWMP30xu+NaEC+BVczOvBocDUXvKO1hTMYidjsr+lGMJuT0g+lHhXeZM VFDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQJtxn7+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4263-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id sv3-20020a17090b538300b0029abdf3f21esi2146856pjb.34.2024.02.29.11.35.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 11:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4263-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQJtxn7+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-4263-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C1A1728659C for ; Thu, 29 Feb 2024 19:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E81013C9E7; Thu, 29 Feb 2024 19:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jQJtxn7+" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6ED5813C9E5; Thu, 29 Feb 2024 19:35:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709235339; cv=none; b=D+GNt0XUIPaeFxjVs2HMEOQuNJ43YKYEi0FN2d+7skLTA0HptyeHkV//Lq/SiOg6DYEvIcvhYv9vXPHflWgA0Zowebra/kQ37oNBIoUzQDqs5pzw4nAJt/TNu8CagpAB7kTP73wwGLlVJEN2jXJMaU19Bc9Polq2jYFtuf5sEhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709235339; c=relaxed/simple; bh=z+ll6MviZxAO9oJ8WAt1UoEwqN5J4y0yQMH87Dp3Lgg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=JcUEp3KM1HppB3rjzefgzG8g60gqFGC0j65HW4Puk8sz1x961d13FvFFzxa5iD9Oy6T3+rXT8Ogvu6ZbXtabXWJ0kzcAcrKN7E+UsUjbvF+4aVRx7BnTFcVY0icr6inAUrkGnxwJQ9uHs1/ZFKSRqp6eE+a1srVYJc753QENJOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jQJtxn7+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA240C433F1; Thu, 29 Feb 2024 19:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709235339; bh=z+ll6MviZxAO9oJ8WAt1UoEwqN5J4y0yQMH87Dp3Lgg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jQJtxn7+AqbnVuE+PBx7GcVjn06hzaXhUwyYdOKDoNFmbPZii46rlwhjAdB24ZI4Q T4kZauY7MEISI8Kzd0vzFUKUC2BUzWeSbTNchV8hsy7+KVjrd8CnICSp3Hw260uLVs f/FtpHhp4apxYVCwfWB0vqs54p965NrDRxkeqHTk9W7tdGzHeJ5xcJROr/EV3Bg/kC y9dEjBdhmv6fjVosVqvXRyE2E4UxEpB1aOeLBGobOLrK098vT5B/+n6zgc/u1ExYoE IcZJLJXgbPx1v+5p4AKF2dgtK905OAM7NpixAjFItscUdjjzxK9Yz+0g1Oy7Vsgjgl vVWK5ir8KoDWw== From: Kalle Valo To: Baochen Qiang Cc: Manivannan Sadhasivam , "Kalle Valo (QUIC)" , , , , , , , , , Subject: Re: [PATCH v4 1/3] bus: mhi: host: add mhi_power_down_keep_dev() References: <20240228022243.17762-1-quic_bqiang@quicinc.com> <20240228022243.17762-2-quic_bqiang@quicinc.com> <20240229101202.GB2999@thinkpad> <531daaa9-cf14-4812-8908-c617bd25bc08@quicinc.com> Date: Thu, 29 Feb 2024 21:35:34 +0200 In-Reply-To: <531daaa9-cf14-4812-8908-c617bd25bc08@quicinc.com> (Baochen Qiang's message of "Thu, 29 Feb 2024 18:33:43 +0800") Message-ID: <87le7383nd.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Baochen Qiang writes: > On 2/29/2024 6:12 PM, Manivannan Sadhasivam wrote: >> On Wed, Feb 28, 2024 at 10:22:41AM +0800, Baochen Qiang wrote: >>> ath11k fails to resume: >>> >>> ath11k_pci 0000:06:00.0: timeout while waiting for restart complete >>> >>> This happens because when calling mhi_sync_power_up() the MHI subsystem >>> eventually calls device_add() from mhi_create_devices() but the device >>> creation is deferred: >>> >>> mhi mhi0_IPCR: Driver qcom_mhi_qrtr force probe deferral >>> >>> The reason for deferring device creation is explained in dpm_prepare(): >>> >>> /* >>> * It is unsafe if probing of devices will happen during suspend or >>> * hibernation and system behavior will be unpredictable in this case. >>> * So, let's prohibit device's probing here and defer their probes >>> * instead. The normal behavior will be restored in dpm_complete(). >>> */ >>> >>> Because the device probe is deferred, the qcom_mhi_qrtr_probe() is not >>> called and thus MHI channels are not prepared: >>> >>> So what this means that QRTR is not delivering messages and the QMI connection >>> is not working between ath11k and the firmware, resulting a failure in firmware >>> initialization. >>> >>> To fix this add new function mhi_power_down_keep_dev() which doesn't destroy >>> the devices for channels during power down. This way we avoid probe defer issue >>> and finally can get ath11k hibernation working with the following patches. >>> >>> Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30 >>> >>> Signed-off-by: Kalle Valo >> >> Did Kalle co-author this patch? If so, his Co-developed-by tag should >> be added. > > Hmm, I'm not sure... I would like Kalle's thoughts on this. IIRC I did only some simple cleanup before submitting the patch so I don't think Co-developed-by is justified. I'm also fine with removing my Signed-off-by. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches