Received: by 2002:a05:7412:8d06:b0:f9:332d:97f1 with SMTP id bj6csp52532rdb; Mon, 18 Dec 2023 08:42:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IElJR1CcUu12wCzhWboK/EQe8YOxnjK7Vxfq+ZQHbKt0WpUnp2j1tbr65LOxZUHElgBCIaT X-Received: by 2002:a05:6214:5092:b0:67f:3ab6:3e5f with SMTP id kk18-20020a056214509200b0067f3ab63e5fmr3075733qvb.19.1702917734088; Mon, 18 Dec 2023 08:42:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702917734; cv=none; d=google.com; s=arc-20160816; b=Zrk6LIO8E8Q8kV7CE0thyezopiJwe4vLIbCW5dpITFdLsH5FnVBj89cUfXR9NzAlj3 MEF9mZT+ayw5/WbCxMJtBN2+gBCL1QvxxAhI1u3pfBRcxc8qkIkw7FYL0+rfdtyDW3Yn 6SDvlAJMarB2L+6mB1jEr23cuZgJV7y7xprIn2ViYpgKIH4hd3cE650AonBDpaeRZtah 3ReCxjJDgIcHuzGr3rIAD6urHbZKt4kEXoDD7HzOtnB+K5T+mRZmyExdO0BavnDZouJ8 vsEx2pJCW/xrYVabZ+JbgABW0q67a58iiYLhmtsSRLyWwS5q6nIIvt92cC0DcbkGNb4V ohwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=ok0QdwnwQYF6RXQgacwrjQQrLXXWEQUfdWlqzjNueKg=; fh=u7+SbPv19CI+Ccnx2nqXiimMdtB/wHYfd+xGevBDJ68=; b=dQqgTgh8B6QUOkIlpK1eBVKJ+WgbcHmcTosiQR1V8vJE81J/i66I2kcHNAjxZ/j/Ny EPKYJxqtleJbrpXDShiuUgNzTgJkN1c6uA9AWgK279hYiADgyu6h3NFPXwqSbGf0xL8j MhMHF5JH5Ru/fdm3KMpYfH/xsJrCpUHEQsIDt+W2nQ0ctg+gHg2OOX1pG3okP71LC4Cv mc2rD+oJDYSkVaczuCPmIYbMz6hpGtarylTSsyn+gFET5vtishMhCdz1rclCSlTohVME s9ofnv6qk1oJybi+BU51MzBZbz8Xma0AYA3OZPvLFfCZYUWyiQrVKnB1e8D8a6jPUP/g Nn+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CwKCxmKM; spf=pass (google.com: domain of linux-wireless+bounces-939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 v9-20020a0c8e09000000b0067f34458dfcsi3871468qvb.221.2023.12.18.08.42.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 08:42:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-939-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=@kernel.org header.s=k20201202 header.b=CwKCxmKM; spf=pass (google.com: domain of linux-wireless+bounces-939-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-939-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 764FF1C21D4D for ; Mon, 18 Dec 2023 16:42:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 380F91E4B0; Mon, 18 Dec 2023 16:42:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CwKCxmKM" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1E8E01E486 for ; Mon, 18 Dec 2023 16:42:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 724A3C433C8; Mon, 18 Dec 2023 16:42:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702917729; bh=aagN5LsIRhwkVrkSFMXW3KVPyYcHS7ZxnLoDXRysDvg=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=CwKCxmKMq4uadRfQLX3II670KfjrDudWlsjreUQBgWxd6cimzOM79Rtlr1WdLb9gM wQ8v73IpKK4f0Yodw30Jll3COG9w3fKtOLix++u6+lQhBsql05Ag5shDvmaiCi0pFz rI2aZwtzUF1aA5zue31vSDE/+Bz3eIBHj6mN1xASiG46TnLbddn1On1RXb34q5M0L1 4xyi4jnYF/TTe2VoVqjbI78Nk3JXTxKk6dqKe0emjEDGPP1Sje5GJF6jJQ9+QDawxZ 7LQx8ulDR8TBAwk7tShvt12P2+H78OrMHK9xSJHfmqPUsC6bCTAyNSWwkcKOZyWXHy wn5vT0te924Xg== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH] wifi: iwlwifi: pcie: don't synchronize IRQs from IRQ From: Kalle Valo In-Reply-To: <20231215111335.59aab00baed7.Iadfe154d6248e7f9dfd69522e5429dbbd72925d7@changeid> References: <20231215111335.59aab00baed7.Iadfe154d6248e7f9dfd69522e5429dbbd72925d7@changeid> To: Johannes Berg Cc: linux-wireless@vger.kernel.org, Johannes Berg , Miri Korenblit , Emmanuel Grumbach User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170291772631.360676.241613506722082972.kvalo@kernel.org> Date: Mon, 18 Dec 2023 16:42:08 +0000 (UTC) Johannes Berg wrote: > From: Johannes Berg > > On older devices (before unified image!) we can end up calling > stop_device from an rfkill interrupt. However, in stop_device > we attempt to synchronize IRQs, which then of course deadlocks. > > Avoid this by checking the context, if running from the IRQ > thread then don't synchronize. This wouldn't be correct on a > new device since RSS is supported, but older devices only have > a single interrupt/queue. > > Fixes: 37fb29bd1f90 ("wifi: iwlwifi: pcie: synchronize IRQs before NAPI") > Reviewed-by: Miri Korenblit > Reviewed-by: Emmanuel Grumbach > Signed-off-by: Johannes Berg Patch applied to wireless.git, thanks. 400f6ebbc175 wifi: iwlwifi: pcie: don't synchronize IRQs from IRQ -- https://patchwork.kernel.org/project/linux-wireless/patch/20231215111335.59aab00baed7.Iadfe154d6248e7f9dfd69522e5429dbbd72925d7@changeid/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches