Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2471288rdb; Wed, 21 Feb 2024 08:34:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+qHEhdAXKs6gAn8uvxT4lk/EpXOAFITazhYUNDByRhLbMMgr5JQMvbZ/h7W2cceF/hkZk7Hu/PmFCqC3bPXmBfvqT0nRSc7ZVZRpN4A== X-Google-Smtp-Source: AGHT+IFz3qe4XWqFZWsIX1pa2fNl66cgeGO6LJ5nYfOhYBoVWzjfhyLey/Uzp4AZgwxn3roO0Hbp X-Received: by 2002:a17:906:a3ce:b0:a3e:dcd2:2741 with SMTP id ca14-20020a170906a3ce00b00a3edcd22741mr4766830ejb.38.1708533293550; Wed, 21 Feb 2024 08:34:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708533293; cv=pass; d=google.com; s=arc-20160816; b=YZwERz8NDwJ+LYgwNlbnUSwweFNdYqzEzJ2oJEdsSb/3Yybv7OZPJxUgoKGOuRPgMy WW7VYWljCQz97/rIvlDOixKNVMnhaGeh0UWfMbJFigrH3aK+pGRhWXFW3nACbVZ9ZsTY Y+3/y7tYQy7yYukVJ/7CeHpU9MfyBR28TbRuKC6ZMtMIb4K/pDo6F6fEi1RvcnOu7PS9 DwQqocoO8E1YSa/KORSNt0GQ1YBrKYm3iUWwYwdFC19o/c+oG/UGK70EIhsco+VyWG5l aCEf5IYlZTk5bNOl2rbhQJGowd2BWNXERWIxcFDQe4hoGdHPDlsDB2JJt9w2b2s/0ju8 Pkbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7mzPo7coiqD4bNBtSp4s9OWc4VpfNlVHmmPxn0rzbcE=; fh=Q98oGPuHPWiHE+dNL9AOgwHmehEDYWbgOvpw8DfFfL8=; b=t50jUlffRRZZn5IcTyLtDmww6X7JpsujDwwUQNYWMT01hXAub378cRYCB2pLpChWmO x9S/bmv+VxGDcIJ8NAtYLUr4V7ujkKa2xYgZE00ZWRd0SZ3KIzXRetBwq5llJWTSjz2S JU+jFMvPmaMP49QYi9fMYL5fkY9f+VZwBipw2+sAgI4jB05OJghK5mfZ2QPa/e+r3KCz Yf9fog4PCjlQ8ATKf3nKHg2Ez9HX8mTUi5m08KeiaHN6NfjVvQAd/OjRxe4yjIWr5HFi HAE7gLPbPbkl17slYaqNPr3VSj1W5dxincXRiRLpaDP3NoXEeVuFuVwOksqrUIGqiYCh 0JJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VYQtHztS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id br12-20020a170906d14c00b00a3e627012c6si3417186ejb.828.2024.02.21.08.34.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 08:34:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=VYQtHztS; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 2FC091F22215 for ; Wed, 21 Feb 2024 16:34:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AE1F7FBDC; Wed, 21 Feb 2024 16:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VYQtHztS" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 A9FB033F7; Wed, 21 Feb 2024 16:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708533288; cv=none; b=BOqGMID0ji4iuJ7xzPvVz2fATOcQjv1ZbEEAHmHB/TlYtsMTElrZavS37ZLlqW/tDMptFuIvnHmpxP7s47zejv5vNzawAOMM+WI5rmCUFz+AgW2YNQ1k2TmmgYKPTxDa+7yKruJkif76qUmH2NTmyHOExWP42hs6O5MWc5MUVA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708533288; c=relaxed/simple; bh=IXtBwQmKruZAza5PPfIoDncEL20X1bqJgYQkKgYdcEk=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=Yz+fkqOUNNouvjzu5w+CwHJuOQCp6Ztas7+r8QYCkyCGHlvXUFp51sl+MLv59j/H5DenwScKivE7kTVgQyDhOe4N6GppbMAgd1CUP1RwAB1H29XAzzFTHnNI7unbU//lSR1QZvVgLR0kPYlts3ibxXgjg7RUqWjAvxbIiMr10QM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=VYQtHztS; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41LEqcH2019978; Wed, 21 Feb 2024 16:34:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=7mzPo7coiqD4bNBtSp4s9OWc4VpfNlVHmmPxn0rzbcE=; b=VY QtHztSYWfjmYHuZIDD3V74IjT+WlD2G0zVSu5bCMJK0scSmiaR0WFJe0QcgPP/PT yiGWNJrOTjTZZDonnzKbKUZnybpzfnUz0oOXEoZEinc7KuY1W9dzMPGHhNb9ipwW aABYTGhs5Bl0vuF1k04NiWEB4EbJfPxrBV2DdqXwOIhCLhaomQTiUaZ4PStTWcAd BMoGzo6YDXkjPC2IXQHfIcD1Ep7qScKS0NZNsvTmVkVaJOkHpskVuM3E6yxPS0Yy N+c+eNDhXFH51ZdnFWXWdtFfz6Y21FQZop6GBOeVdztLP4rALeTwwpT95XP4dXjK KGPqXRWnRRpdKlLEa/Jw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wdfm38tkk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 16:34:25 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41LGYOuK022925 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Feb 2024 16:34:24 GMT Received: from [10.110.34.22] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 21 Feb 2024 08:34:24 -0800 Message-ID: <0994ae16-8174-4a04-b454-1974b16bc106@quicinc.com> Date: Wed, 21 Feb 2024 08:34:23 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ath11k allocation failure on resume breaking wifi until power cycle Content-Language: en-US To: Vlastimil Babka , Kalle Valo , Manivannan Sadhasivam CC: Linux Wireless , , LKML , , References: <96481a45-3547-4d23-ad34-3a8f1d90c1cd@suse.cz> From: Jeff Johnson In-Reply-To: <96481a45-3547-4d23-ad34-3a8f1d90c1cd@suse.cz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: IN1DWg1r0Czox-TgoO1ISaa0L8hWUYuF X-Proofpoint-ORIG-GUID: IN1DWg1r0Czox-TgoO1ISaa0L8hWUYuF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-21_03,2024-02-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 mlxlogscore=711 bulkscore=0 impostorscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 phishscore=0 suspectscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402210128 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. > > 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