Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp916234rbd; Fri, 23 Feb 2024 07:28:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7hcLWVvzJ8nFxfqdzVSimpguasG5Wd+oKE6woqV0hHiNRHkaimu5zAhEK0Wy0v2VVhgKX/972xH6VRLTWe3S5NWzWBT0bwh8i8Cjp2A== X-Google-Smtp-Source: AGHT+IE5Uo1R88VUSJHOr4Du0ps4HJUtvWLqvw3TroVstoo5FsyqX4Is/MII6wVsWr9FcilKIH2R X-Received: by 2002:ae9:e116:0:b0:787:80bb:c2e7 with SMTP id g22-20020ae9e116000000b0078780bbc2e7mr116990qkm.51.1708702124271; Fri, 23 Feb 2024 07:28:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708702124; cv=pass; d=google.com; s=arc-20160816; b=CMnxhClffjuzI84Vmwgy38eBn3aKFFErRwpqOucKuwkxQS/KxcobwhRe/OrabSClkP NxGMLWXsEn3GTD/LU0LKoagxY+HQR114FbLJopd9178Tu0zQlzOJaMVLXCwUWTOrar8/ lKa3Oh1iCylyR33tmTRBR7/L+fSmDTmFLepnPWf6Es9Hk6D4LxvP9QwDD6x+lZTCSHh/ fVuyTBKNf21DEyVN5vJ6d+rXKK9TtEAJaPaYbNDY/dqsmEZC7Etw/pwCG4pf/3g/zzUp 6fezFZuupvNAAC0C2/KxEjYW7X6Gh0BE2K5nJFHTt5T1GC4fI9lwVxhFy7zxdXu7Q1wG m2Yg== 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 :dkim-signature:dkim-signature:dkim-signature; bh=v36nd4PFmvY6FAwtTKo1vy8S4903safEpdw3P1sE3Ec=; fh=98dIKXH3Sf5rNaFESI9ezxTpeUu4yjFDSCKxErj2a/Y=; b=r80W3nPPA92y3LJQ8m0k4e36mWWX4uOe3C9cacd3z5atsTBfaeuJXC3qEJ+yvK0EmV ybHJUuFcn4m0WkqUEuAUZB6zhWllKbwLlqqZKfZ5w8hkAjtYZ0OyiPz8V47QTWkrMdf+ sNUgBTl+7tpx2PW8pXgqPg2jk9vP84KxdHoiLwsGHmWzF7xTaOM59JZ+Q4Vf4oJWIQYG TBpEf24Z/UTk0pRzNdg3wUzbdBykopNfHYXtQBL/hwzgnJm4ZexX/vHXKOao1itKOyVb 1uymnLhm3igM8CCA0Y87ogPowA5QEHkooMDK+Zu/L0WD2fkjeazEdzlfNFcY+eJHP4KT o96w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BksMdMFr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BksMdMFr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=L1IGN+0c; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-78606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78606-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id j21-20020a37ef15000000b00785c97af6c0si15113788qkk.302.2024.02.23.07.28.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 07:28:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BksMdMFr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BksMdMFr; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=L1IGN+0c; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-78606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78606-linux.lists.archive=gmail.com@vger.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F12421C240D8 for ; Fri, 23 Feb 2024 15:28:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 823CE8288F; Fri, 23 Feb 2024 15:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="BksMdMFr"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="L1IGN+0c"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="BksMdMFr"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="L1IGN+0c" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 C8B612E412; Fri, 23 Feb 2024 15:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702111; cv=none; b=tyiw1eeA1CRcM38qATPWGtYSC3+CgEjtFJeIyhUVho5lpy+cJLF8/FEqOT8L+JMs9UfZXGuiTAHGIdFLkxhBQKGlbqokM+bVO0yVIIATUVp1hui0m2UeSzKZ5997lE/kwV5OvrdRKcMnDwTvIhnFnOypWc+oYO4N9e/oRWGrvu8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708702111; c=relaxed/simple; bh=9hvVEuEX7/xy74xE2geevxGtJuW1beNH5JA1d/aaE1w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WJTS3+5bY97jFVzAb3b4w0X+bAPgDWeQnPLGHIuRy8u3YF/SyxfO5LpgJBmrMxDE9bPq3R0ZzbyzBGugd74h8kNmC56vY+Sq8DBi0socxx8nuV8Pj4POmud3+Re6/vRTlrOUqaQJV7HG311439mClQrcHokJ5I0Zs0vd1adxwUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=BksMdMFr; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=L1IGN+0c; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=BksMdMFr; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=L1IGN+0c; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CFFCD1FC0C; Fri, 23 Feb 2024 15:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708702107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v36nd4PFmvY6FAwtTKo1vy8S4903safEpdw3P1sE3Ec=; b=BksMdMFr9gcRTPKjaEHC8XeOgShZGz+yZWEYIWYAU9rIagxoEF8ASZAJILXbW++iMNuop0 h7gfrWrhNbuJMsSkRW0Ss8D73dUvu/RLVIKd8+V2oPfqibhjsaPYFrB/kYpUxN58bAa7lr UisbuQRnmNnf3D/O94OaTSBth0DUlII= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708702107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v36nd4PFmvY6FAwtTKo1vy8S4903safEpdw3P1sE3Ec=; b=L1IGN+0c4p0OUTU5vp0xP+7UubceuCK+19sE/B1Qd2apWi/r7jIdGubAWWvW0pL3yokX0k ZQHyNCgNabXl2gDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708702107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v36nd4PFmvY6FAwtTKo1vy8S4903safEpdw3P1sE3Ec=; b=BksMdMFr9gcRTPKjaEHC8XeOgShZGz+yZWEYIWYAU9rIagxoEF8ASZAJILXbW++iMNuop0 h7gfrWrhNbuJMsSkRW0Ss8D73dUvu/RLVIKd8+V2oPfqibhjsaPYFrB/kYpUxN58bAa7lr UisbuQRnmNnf3D/O94OaTSBth0DUlII= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708702107; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=v36nd4PFmvY6FAwtTKo1vy8S4903safEpdw3P1sE3Ec=; b=L1IGN+0c4p0OUTU5vp0xP+7UubceuCK+19sE/B1Qd2apWi/r7jIdGubAWWvW0pL3yokX0k ZQHyNCgNabXl2gDQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id BC93C132C7; Fri, 23 Feb 2024 15:28:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id D5qvLZu52GW6IgAAD6G6ig (envelope-from ); Fri, 23 Feb 2024 15:28:27 +0000 Message-ID: <38c36d16-9cc1-4f03-b758-4a3ba90f8aa4@suse.cz> Date: Fri, 23 Feb 2024 16:28:27 +0100 Precedence: bulk X-Mailing-List: linux-kernel@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: Manivannan Sadhasivam , Jeff Johnson Cc: Kalle Valo , Linux Wireless , ath11k@lists.infradead.org, LKML , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org References: <96481a45-3547-4d23-ad34-3a8f1d90c1cd@suse.cz> <0994ae16-8174-4a04-b454-1974b16bc106@quicinc.com> <20240222054739.GG3374@thinkpad> From: Vlastimil Babka In-Reply-To: <20240222054739.GG3374@thinkpad> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=BksMdMFr; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=L1IGN+0c X-Spamd-Result: default: False [-3.30 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[8]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: CFFCD1FC0C X-Spam-Level: X-Spam-Score: -3.30 X-Spam-Flag: NO 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? 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. > 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 >