Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1247764rbb; Mon, 26 Feb 2024 03:43:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUN4BH5Rq013PU/CkFZ5cmXbRNVbSX9QiLJGpvVBZUjGx34+tg2pBh5GgYT+ccZshdYnV+memYzCURXweUzSzhbzSrHrLtOwrRxEuToww== X-Google-Smtp-Source: AGHT+IFP3Yf8Ts6fCrM0fAk5M3BPnGGQ+d6pJ1mPNLTwvt8IoeL7Mwamtfd0XOK7mp72m8UIyc/h X-Received: by 2002:a0c:ae9a:0:b0:68f:e84b:9d8d with SMTP id j26-20020a0cae9a000000b0068fe84b9d8dmr5561796qvd.42.1708947799634; Mon, 26 Feb 2024 03:43:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708947799; cv=pass; d=google.com; s=arc-20160816; b=nQImFaxVXnKl9txu6eBaSyEsqTNLiGZJvpk6+s38QCGTEhpp8qa3di0Rqqu0CP8Vk/ sbcCqYN4o7+jLMBDC4hNWD/2z499OTgs62Ppo/X/h71E1/UAE2rYNA9/GaK44B+knETl qLysS0fw6lzfkvgZNpNq0upOWnTNwSFi2N52SIh9aZzPP1c1nUFs/p4Auy2glEczbE70 RSEBn+FLTcYesWDQ+7L3ooqOKJBRhKnJx9GLgGeeecwagFTT+fmYf3JWDFxYLhOnACLk YchYdcgwP87bkzbUfvtH0nySh4xez4X4IosNNmYj/1tbpY5qpLc8uzOhvw8HByGLUVqO imzQ== 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=A0/ZCukQ/ioxMt1iZ+gVoj8e21UGTGIMIaePv4w50ls=; fh=69pdCrmGWhfmh8ht/R0I/cX0722K098qDDIj+UFt2B0=; b=U1W2J7IUX4p6v68xaoTrCV5mV7LFG6tH2H4KKKV8huaPEFFeDPdHT5VDsRdH61+CdJ 2In/OouyEyexV8AfRCi8NSU7pzthNVr2by6rXrnOqMopNTLj/DNdJWiTyNPLF5F44VDF tn0dTD31SebwkhnJriz0h/XIYlI+xyoipLzhz/nZB4VoiYaTw0FIks8d1mZm+f1mlaIV sG1CQIU30pKIg9LnQSGVivyarsp6Cph8lz51O7hzNaEx9m52RLC+woXrTUXL1k6qW/AX vUjdzBXMxLEwWhfuA4SYSw397lxwB7Py1mv9j9Wp8IMFIlISzRGuQmXX1qhueRvbo+hQ 0tpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wjl9F3xp; 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-4005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gy10-20020a056214242a00b0068c4ff7f5a0si4794523qvb.323.2024.02.26.03.43.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:43:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wjl9F3xp; 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-4005-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4005-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1CE0F1C2554C for ; Mon, 26 Feb 2024 11:43:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE8FF1DA5F; Mon, 26 Feb 2024 11:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wjl9F3xp" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 0B2BF1D540 for ; Mon, 26 Feb 2024 11:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708947796; cv=none; b=StbcMN9/hC+/DDcHUo7HG0S9VTcWTymLq0dfBPh+3KZdzB4sffX2hCvU0tZSfhnDDG6RVBKUUAZnCBjHDR24ABkY9tbNu3KfqSwEIULgkOXouhfcGQt8EE3+IZsZsl3TLMY1mgXyiZcFHzasnTroEs9raJVaelbXTYnN3QsjbiE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708947796; c=relaxed/simple; bh=+D1gemzTmM+hYFzEtK0DGUXUvrO2heqPidHgtv/T6VQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=C0MJRvKX3q0kCKA7ogYXxSlzmm9lJjyk19ftphP5A8WUIEXyz3p8FYjkrAbfcH7zLG6IBYpRD39KYEt0IJGbQqUcG+E5/b/17MODSH4GOMaTItjifwtmYyaZxXodJFALF2Ss1+GjOGhrsLb5sRhCNhqsAavHdbrAXn45XjTG1uc= 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=wjl9F3xp; arc=none smtp.client-ip=209.85.222.170 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-qk1-f170.google.com with SMTP id af79cd13be357-787a43e2e2dso196221185a.0 for ; Mon, 26 Feb 2024 03:43:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708947794; x=1709552594; 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=A0/ZCukQ/ioxMt1iZ+gVoj8e21UGTGIMIaePv4w50ls=; b=wjl9F3xpwf0Jb+j6qKqpzC+i8dU1OP8Z45dEHH0F3xrtsBSKuAlM7GiHFXYSGRfu3a eJRKFZbfwN0+bFf3tqMSGgPFz7qJt7qXQLsuVHZRxBz/lvykIfLMgs6vWxKTv5YgUvsw tkMhXoZdCoGmn7tl2RkUL08BVLQW5vketYXDMhnRo+Wk6/+zA5vH+jAROOMR9wnZUewC zVPWTqF7b5LuGt5FhUUUx8m0WWAsnsx+EKG8+WOJRj/tBbpOpXsLyOxa61SoXHoCTD3X 6nsW1GJ8WxBRmo3itX3lcasLh6MMvWehxBLuqNTJgrcJy9dQ+HC5zz0PIUTgFQXdRu0k W8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708947794; x=1709552594; 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=A0/ZCukQ/ioxMt1iZ+gVoj8e21UGTGIMIaePv4w50ls=; b=TuOxFPv+SMSZi5MmKczHm6bGHkBijDG5BX4t4DSzxW2i+srgxZiPU67SCnY1iH1lyY yH/S2blyG1JZ+lpFehegPWIRTcjHxZ+cWWapWz1RoEcnMgyrnF7vOzYIxCEKFzuepJBq 8Es6p4CP+N1H9R1R4Abs2OopkYhHaI5Eop8mECPZNzFESahyjbMgUQ+t68KjQ6mnJszI hNHVpQ/CBsqb/IrTi2ikFG6ONvZlVwKDOh47WnW+4UlS7m+K57YN99m+65Pdar2JbYn+ cs94uwmEmD19ExrF5utI/aO+BXovpQRb+QKiiGVf/gV7xnMIQV8Qx0K9SlOMzl1PFdW0 RKOg== X-Forwarded-Encrypted: i=1; AJvYcCUQBPuoqU+NK+ZhvgDX9uiC1UG5aqb4QNWv3UC6kp2y1hPimtJCytmvrmLESgCLv4Nb6RH8OLap+1+N2v9Uc6Jy2R4fDl5T9dMZd5mFvPM= X-Gm-Message-State: AOJu0YwhN3WsmFXCr0MGSpEmNd0sqSz7dnYq2zPeQv40Nz9nqNKIXQqa caYfiIJoyKn2URtU/vJXdcI24p72Rm+hiIr0Q8CGnvERjayZynqNgWSIlplm+Q== X-Received: by 2002:ac8:5e97:0:b0:42e:74bb:5fd3 with SMTP id r23-20020ac85e97000000b0042e74bb5fd3mr5280037qtx.55.1708947793999; Mon, 26 Feb 2024 03:43:13 -0800 (PST) Received: from thinkpad ([117.202.184.81]) by smtp.gmail.com with ESMTPSA id r5-20020ac84245000000b0042e61ef71dfsm2347580qtm.33.2024.02.26.03.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:43:13 -0800 (PST) Date: Mon, 26 Feb 2024 17:13:07 +0530 From: Manivannan Sadhasivam To: Baochen Qiang Cc: Vlastimil Babka , Jeff Johnson , Takashi Iwai , Jiri Slaby , Kalle Valo , Linux Wireless , ath11k@lists.infradead.org, LKML , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org Subject: Re: ath11k allocation failure on resume breaking wifi until power cycle Message-ID: <20240226114307.GA8422@thinkpad> References: <96481a45-3547-4d23-ad34-3a8f1d90c1cd@suse.cz> <0994ae16-8174-4a04-b454-1974b16bc106@quicinc.com> <20240222054739.GG3374@thinkpad> <38c36d16-9cc1-4f03-b758-4a3ba90f8aa4@suse.cz> <34123ee0-26c9-4240-8d58-aba02f7c66b9@quicinc.com> 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: <34123ee0-26c9-4240-8d58-aba02f7c66b9@quicinc.com> On Mon, Feb 26, 2024 at 05:11:17PM +0800, Baochen Qiang wrote: > > > On 2/26/2024 4:45 PM, Vlastimil Babka wrote: > > On 2/26/24 03:09, Baochen Qiang wrote: > > > > > > > > > On 2/23/2024 11:28 PM, Vlastimil Babka wrote: > > > > On 2/22/24 06:47, Manivannan Sadhasivam wrote: > > > > > On Wed, Feb 21, 2024 at 08:34:23AM -0800, Jeff Johnson wrote: > > > > > > On 2/21/2024 6:39 AM, Vlastimil Babka wrote: > > > > > > > Hi, > > > > > > > > > > > > > > starting with 6.8 rc series, I'm experiencing problems on resume from s2idle > > > > > > > on my laptop, which is Lenovo T14s Gen3: > > > > > > > > > > > > > > LENOVO 21CRS0K63K/21CRS0K63K, BIOS R22ET65W (1.35 ) > > > > > > > ath11k_pci 0000:01:00.0: wcn6855 hw2.1 > > > > > > > ath11k_pci 0000:01:00.0: chip_id 0x12 chip_family 0xb board_id 0xff soc_id 0x400c1211 > > > > > > > ath11k_pci 0000:01:00.0: fw_version 0x1106196e fw_build_timestamp 2024-01-12 11:30 fw_build_id WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37 > > > > > > > > > > > > > > The problem is an allocation failure happening on resume from s2idle. After > > > > > > > that the wifi stops working and even a reboot won't fix it, only a > > > > > > > poweroff/poweron cycle of the laptop. > > > > > > > > > > > > > > > > > Looks like WLAN is powered down during s2idle, which doesn't make sense. I hope > > > > > Jeff will figure out what's going on. > > > > > > > > You mean the firmware is supposed to power it down/up transparently without > > > > kernel involvement? Because it should be powered down to save the power, no? > > > Let me clarify: from backtrace info, seems you are using a kernel with > > > the hibernation-support patches [1] applied, which are not accepted yet > > > to mainline kernel or even > > > git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi.git. > > > > Oh, you're right. Sorry for confusing you all. The rc kernel builds we have > > for openSUSE have nearly no non-upstream patches so it didn't really occur > > to me to double check if there might be in the area. > > > > Seems Takashi (Cc'd) added them indeed to make hibernation work: > > https://bugzilla.suse.com/show_bug.cgi?id=1207948#c51 > > > > But then, why do they affect also s2idle, is it intentional? And why I only > Yes, it's intentional. When suspend/resume, ath11k does the same for either > a s2idle suspend or a deep one. > That's a terrible idea for usecases like Android IMO. s2idle happens very often on Android platforms (screen lock) and do you want to powerdown the WLAN device all the time? Even though it offers power saving, I'm worried about the latency and possible teardown of the chipset. Later is only valid if the chipset undergoes complete power cycle though. - Mani > > started seeing the problems in 6.8, the patches are there since August. > > > > > So this is why you see WLAN firmware is powered down during suspend. > > > > > > [1] > > > https://patchwork.kernel.org/project/linux-wireless/cover/20231127162022.518834-1-kvalo@kernel.org/ > > > > > > > > > > > But I just found out that when I build my own kernel using the distro config > > > > as base but reduced by make localmodconfig, the "mhi mhi0: Requested to > > > > power ON" and related messages don't occur anymore, so there's something > > > > weird going on. > > > Here your own kernel doesn't include the hibernation-support patches, right? > > > > Right. > > > > > > -- மணிவண்ணன் சதாசிவம்