Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp252729lqg; Fri, 1 Mar 2024 04:26:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6BO8EiTxA+tFBAhNBGrEvFgVa3erUftUG/UXtcefGmHkKex+ethFpNOW0QJXXDFgxFYA2G/Vp2z3ZeqckSQIz/4byETHJEYDDTKf8dA== X-Google-Smtp-Source: AGHT+IH6jlTJFgojmjAmqGprHZz+LeN1RxsldmrV+0kRtV/M0m9OWptKeThjeSlUd00ASzsFU3KC X-Received: by 2002:a17:906:f298:b0:a44:5553:7073 with SMTP id gu24-20020a170906f29800b00a4455537073mr1172490ejb.50.1709295975205; Fri, 01 Mar 2024 04:26:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709295975; cv=pass; d=google.com; s=arc-20160816; b=evVGi3v4qkhwNv5stFruT7/ZNsDzWQoQnBgmbEs0AzyBS4q0y5lOan55KlKuEemALV ZQe90WcK/y75UxzvDKv05QLyV+LqQPOoTxvHu+Jm3StaSMrgK2etdLPNhAMZjTlq6WDL JKMTnG+153Ssec7X1P/87fuaAvsbFLn228ZDrYB4cxRH2n9Zh+OxUALy9xuFXY7jdO1n rfqI4RAKHG63hAOBIlD4dlrUDSdOk6nAXlci83Ld9msYO2U4vFO1++iecHo/NDIjzF/f V3AW1QEMkW4wzvh2KvKQHehnGboiq7tarZ4ZPtYERujWs1YXc9ewwUMx1AEGMv3E14Ic qbGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n4vy0ssj1y9OKJx6whcKaZP2Wd8dgYFve24tfX8P7n0=; fh=ee/zijiGonng21GBojE++/GWcMzBWMJy8dGyWkbZg1w=; b=r4IA9HUxq3Yu0O5uc2fm2n9TBuG5IfnW7qxMmZpA9IF1Gh6ida/qM71j+UdKFpm7ma t6sKtY6iuOefXzHXenqA6npoW1Vg2jAUgRoLDPSQk4JNF0hChpoay1CWV3aJtkxYCqfD +8M2IDn3cuZWiNWBgA6J9uxCzQdVLdGqyiLbnJf7DgXRrzOrywNlCartZQrxhaOScesm 7Y11dAHHqWSpGD5vicyHQn6yACPcR9sctiYLCkbcMF+EWrRDwTnip58xB+9GmAQpCaMj XGwOfNas5enbruqBLzRtSvVJpRsCnMfiZTH5Qhytrij/C2Tm4WqnXIxWQxIqRqaOmn72 FjqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bVhRMiO3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-4293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sa6-20020a1709076d0600b00a4432f79066si1442828ejc.572.2024.03.01.04.26.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 04:26:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bVhRMiO3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-wireless+bounces-4293-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id A9CE71F258CF for ; Fri, 1 Mar 2024 12:26:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC7756EB41; Fri, 1 Mar 2024 12:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bVhRMiO3" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33F546E5E6 for ; Fri, 1 Mar 2024 12:26:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709295967; cv=none; b=hoSC1h6qce0F/7f0Y+fzxbxHYaw/iNnzqRQ1KOzhy20YGOTnvPqS193vT7VQIuWpN72K1rrlLN8KNatGa/6OLA9piNn/vI/BcYdzpbqnifgEohwde/kSCjSJdR0kD7DtUBotIH0KfV0T/1CjCh5InQMyd8+3A5rS/ttK9M1m5B4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709295967; c=relaxed/simple; bh=DCxEN7tYRiXh61QyHjoT94wXv3D+5boFGgkhPYQVN4E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fdPKTKLw15BueYSwvuvReLtsuk2Sm1Ha5COt3zRZL8XcgM7w5fgJaDuLvDco+COF38oboVjqp8UuuXeKN1/CEIUqR/7DHZOX0l+t1iTKDFZaCp7+shZnEA2/eY0Fye/5ZU5bR18Cc5UU7Fki8i+XnFhcPrFXyWgjvUKjNML3BW0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=bVhRMiO3; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6e59bbdd8c7so1436027b3a.3 for ; Fri, 01 Mar 2024 04:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709295965; x=1709900765; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=n4vy0ssj1y9OKJx6whcKaZP2Wd8dgYFve24tfX8P7n0=; b=bVhRMiO3ZLYW3MYlRoFjRWBCmUKW6VYrOJo4wExARQEm+Zv3eP24h2l/vMVv2ih2jE zr75DkEhQpgQeNKL1WYFBWNkLd9kTiOIMFSP3ngyneKymvMWi/Vgphp4pvjfAe9LoJnc VA9EBDpe+nsbcF/S6biTKvkv+22KKCSAT7GCWqXCCt3XM2H/eEUpcbdKIUx8sjK7ik1h bwT8zt/0q+lnuc5wwK7Vfz5ceY3V+wqSokQ/4T1zcB4Q4eDnonUVOHXR490MF58LYbAT ynmflIMJG8F0oywV5Y+K2bQ44HzuC2ixS1N7rKAOxLCcKihwxGLZyjCp/cW7Qpmn8g7X HoAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709295965; x=1709900765; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=n4vy0ssj1y9OKJx6whcKaZP2Wd8dgYFve24tfX8P7n0=; b=vRiZI78fLZu9ucWZFx212OjU0cV7mc6AF1lF2V9Wd0iEFgdi3Ef6pIpMCcxSIxrR4w NGwT8T2uUmD9t3e8DjCC28LVEk68fL7P0BnQKLGbf2cuiaaZpq61QJmD0PcT8UjQxxai vjTSypT+OBIDUUwguXnq1uTwQqochbQltpmatXkB9pv0EsUCtRmlDiv2KpYKJ97vwG3a TuDxQBBRN1QMu8QIKSCNwBkrbcM+iU2BfofnzUhnrt5VDvKnmeOcc1ODE0eSy43NZ6L5 MfiJ4BYEsZN+rEJGS6heNfYg+QfNQ5RZn3Wy3fMZhT1PCJehEWurULJL2cg1zwTDr/nl S8fQ== X-Forwarded-Encrypted: i=1; AJvYcCXxLG5L7a5ju5Oj7dzeS5wKFtDKCEDzG+iHYsVHknTZyDd+/rMyHVrc/xAy9AkNTs/a02Qz7mo3gEZ0Ifx5PbtnEJsFQfrEDSJ6v35KXEE= X-Gm-Message-State: AOJu0Yypk6dycljG+nqWXLdZxPUM6rGpF1MnkixHeU3SX1IAgX2rvebF AmojWhwFq9ddTS4axdsIYIK03TzBJEmJMdfsjfX1fOUOEBNWiqM9ELlHdjXyRQ== X-Received: by 2002:a05:6a20:4327:b0:1a0:6856:d12c with SMTP id h39-20020a056a20432700b001a06856d12cmr1584913pzk.18.1709295965331; Fri, 01 Mar 2024 04:26:05 -0800 (PST) Received: from thinkpad ([2409:40f4:13:3cbc:2484:3780:dcff:ebcf]) by smtp.gmail.com with ESMTPSA id p12-20020aa7860c000000b006e50e79f155sm2834437pfn.60.2024.03.01.04.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 04:26:04 -0800 (PST) Date: Fri, 1 Mar 2024 17:55:59 +0530 From: Manivannan Sadhasivam To: Baochen Qiang Cc: Kalle Valo , "Kalle Valo (QUIC)" , ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, mhi@lists.linux.dev, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org Subject: Re: [PATCH v4 1/3] bus: mhi: host: add mhi_power_down_keep_dev() Message-ID: <20240301122559.GB2401@thinkpad> 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> <87le7383nd.fsf@kernel.org> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Mar 01, 2024 at 10:04:06AM +0800, Baochen Qiang wrote: > > > On 3/1/2024 3:35 AM, Kalle Valo wrote: > > 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. > Thanks Kalle. > > Hi Mani, so according to Kalle's comments, I'd like to keep the patch as is. > No. Either remove his signed off by (as indicated by Kalle) or add a co-developed-by tag. Keeping just a signed-off-by tag is wrong. - Mani -- மணிவண்ணன் சதாசிவம்