Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp146466rdb; Wed, 21 Feb 2024 21:48:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4LvJ4qWVm0SZq/BhnJCYbgOQuuCeQ8LyfcX9bYtYxTYFv1L3qOyWS0U8HipT4Zir+VYPFDeRVInBUVsllakjmj/6I/XGxUxKraRxlkA== X-Google-Smtp-Source: AGHT+IH19FXfq+DORNx0nMTdpUjr1vSxt52Ld2sshen4cKmXzCmluo9P5jzqkun/BOVV4wbQxFki X-Received: by 2002:a05:6a21:2d0c:b0:19e:4e41:7ae0 with SMTP id tw12-20020a056a212d0c00b0019e4e417ae0mr2242219pzb.20.1708580881418; Wed, 21 Feb 2024 21:48:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708580881; cv=pass; d=google.com; s=arc-20160816; b=KizFhcR+VzvYosNTvZqXEVJzs4t2k4xW/VFEUqVZWittYkCI5xVGN7BdRwBPoXg+rT dNNpywNj51ziRLpdzZD3ivKDEZgQ8dw4t5XQbrFNEb+ZStweBOFNOL/u6sEkBdzwPRPs S22rAyaTM6ENISLOvygIHpOxoItRFqECsfmsS08VszEdKZOz8mcD6PjZL7M4aRLa2cKD YZwLB3Mp/3dLOU0RYyyT+TbL82GU53tX3HVYkcpC0nFYCw9Mb/n4jkYRIAJH+mZlu+C7 NIYGrCZ1OFlg0sttC3xSUcnIqQh4MM7l8vMLHb3sBT9ijcS7ow+BKnQFZ5UbXzTKSBa7 jmTQ== 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=wSWmeGU/PHEWXrJBkyrdMCv0vQ2HmKobzP0FHV/IZQY=; fh=BkhrsASrU5ehNW4HGvXS1B0kfO8j63kNe+pQXm4KPkk=; b=OlsSKWTm5Wa9TTpwIwLLRvSomiBgGh1tL0PszpgbesW+yoRtwaoQEfkmRSSdoz3Oj6 l5stLddmxy3xaNv61z42/OOhyBl6uzy0XFiyjfNsaGfc/T0zF8oBC/kAQJUFMv1/R9R3 Bh2Rjc5zPrQtF8gYdXwuWOdJY/q2zksnd77330DDLkAFqPdp9iAVNjq3JA1pudLb0r4/ 7CbExfgbsQ9jvosT85F8qvzpfhpeQ/CvZ4tPSGeKMp63KsmcCG443ongdWKOo01iost/ skWd8p9wuXnljGLMU9O9ga2G8XNzT0dSzKLqk5PEg8igBwU/h09u52MTFtPpfd7D2ZAV Asvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ul/ppe0Y"; 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-3894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b188-20020a6334c5000000b005dcd27bebb9si9443694pga.322.2024.02.21.21.48.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 21:48:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ul/ppe0Y"; 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-3894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3894-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 19520B2372B for ; Thu, 22 Feb 2024 05:47:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A18912B8D; Thu, 22 Feb 2024 05:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ul/ppe0Y" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 5D98910A12 for ; Thu, 22 Feb 2024 05:47:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708580868; cv=none; b=qDryRSLZAYUXs3mcGiRBs66PvnC5kawPERXYHsM2Z1VYrSvF9E0VLIzBjU6y/PRPtazsspBUbzLI6zxoPbnwZXHqEItyaS2kDjrVIspMxzzCishvUqrxzElUwXMZj/djxSj/G7xvsNgVXDMZWoL6Kja6PuqXHHp8KcyhFr+zB1E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708580868; c=relaxed/simple; bh=qdDEQ/odklpLTC89u2grpARtU2NkpDJ3xSWe0VUu6UY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=onLqLip6m0nNNN2Yeraq2N7FJblFzxvBKHks/8i4EwcEROmxWkEyH0+x6V4u0mbU4zOomCLv0X6AmfTxa38rtVp35NHCUafseo3+UVst+HSyZ7RLE9xY438KL4uTfBCc9Ttiw6reeRUQcl/8vDJlImwEb3ob/+FMQr8gofpAxtI= 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=ul/ppe0Y; arc=none smtp.client-ip=209.85.210.182 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-f182.google.com with SMTP id d2e1a72fcca58-6e08dd0fa0bso468479b3a.1 for ; Wed, 21 Feb 2024 21:47:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708580866; x=1709185666; 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=wSWmeGU/PHEWXrJBkyrdMCv0vQ2HmKobzP0FHV/IZQY=; b=ul/ppe0Ys0tdOppd+Dygcuxs5uzpbBUWoI88prMGpADwiSWfswYtfsgjVQaDbceI3r v6klax3A0mE8EKBNWo/mJ02spHqw21oGB+EqfQmRFlUVKrz5Sb6F+qfXDOG/DBSc8kLK bQk4we4YgxgRXidVT1riMmugMXUNmLoVnvWFhOBd8dJq/ikyb6zoHU4lNNHapD3i9ZUn SknFuzC9Ee5u/Jt1o3SAzJDW3JIw/AaBHKqAeyVB11j186z5jm2ZO4l6ZTaAcQE2edzi mIV4jDEJFa7pGxsGDrz0rQkJNVhZRY73faXzmkyiOuN1Ji4nIYGwWjfpEfuCyXTKWeYs SXgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708580866; x=1709185666; 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=wSWmeGU/PHEWXrJBkyrdMCv0vQ2HmKobzP0FHV/IZQY=; b=eWX/RaHfHXRWsGMzCS5UjeaTch3IayJwxk3LXJnZkQBfwybYwRAb2xzTWGBCYgYYq0 wAEQzeRZC9+33svydFW4wtWGhUXkxE6wxvEV4oJoo1uEMTfrnS6SPYB8+2k+wxgO7snW w8UHLyfAzQ6VwAu0TlCRSN+XHLttYuqD8R5Xp3CNn19uP3f4zQl+IOldvPEjuV3FEfeR DvmoWZn3v0bl55ND9zjqtCgZCz+hpEk1ALxoKDxQTnIEzVCaWM+EfuNA58BRvSheQPne AQRvhWCsz7ZLALaNHgaQCWKswsRoyZiBO4LFYg36RBPaw5VnV8YTgbhf753+Zw532k0q ue1g== X-Forwarded-Encrypted: i=1; AJvYcCU0zmeVuocBqYfSP3jPH4hgyY+6aL8xN/ZyAk9xQnzyDKNO65znNtwqmVgE8N3Dquzvh8XBNxbiRZUaSZDlxeyZaE8i6rgqky+3HpJr8vs= X-Gm-Message-State: AOJu0Yy6OC+dgmTCwOR/za5z+m6FAh4xgxVc04BKqHzNeo247DUm6W9S EwZ0wkT8LtyMLL+zrOZ5F7lf82p7MH3hBd+udyeaiUW5fdPoiuyHT7U8ceKvMw== X-Received: by 2002:a05:6a00:2d0f:b0:6e0:4a19:8da6 with SMTP id fa15-20020a056a002d0f00b006e04a198da6mr2882834pfb.3.1708580866081; Wed, 21 Feb 2024 21:47:46 -0800 (PST) Received: from thinkpad ([117.193.212.166]) by smtp.gmail.com with ESMTPSA id fn16-20020a056a002fd000b006e3dfb2ef4esm8623980pfb.95.2024.02.21.21.47.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 21:47:45 -0800 (PST) Date: Thu, 22 Feb 2024 11:17:39 +0530 From: Manivannan Sadhasivam To: Jeff Johnson Cc: Vlastimil Babka , 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: <20240222054739.GG3374@thinkpad> References: <96481a45-3547-4d23-ad34-3a8f1d90c1cd@suse.cz> <0994ae16-8174-4a04-b454-1974b16bc106@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: <0994ae16-8174-4a04-b454-1974b16bc106@quicinc.com> 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. But if you can share the dmesg after enabling the debug prints of both ath11k and MHI, it will help a lot. - Mani > > This is order 4 (costly order), GFP_NOIO (maybe it's originally GFP_KERNEL > > but we restrict to GFP_NOIO during resume) allocation, thus it's impossible > > to do memory compaction and the page allocator gives up. Such high-order > > allocations should have a fallback using smaller pages, or maybe it could at > > least retry once the restricted GFP_NOIO context is gone. > > > > I don't know why it never happened before 6.8, didn't spot anything obvious > > and it happens too unreliably to go bisect. Any idea? > > I've asked the development team to look at this, but in the interim can > you apply the two hibernation patchsets to see if those cleanups also > fix your problem: > > [PATCH 0/5] wifi: ath11k: prepare for hibernation support > https://lore.kernel.org/linux-wireless/20240221024725.10057-1-quic_bqiang@quicinc.com > > [PATCH 0/3] wifi: ath11k: hibernation support > https://lore.kernel.org/linux-wireless/20240221030026.10553-1-quic_bqiang@quicinc.com -- மணிவண்ணன் சதாசிவம்