Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3993576ybi; Mon, 29 Jul 2019 17:04:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE+WONPgo1SISUXOADqtaou8MX75A1ZjcXKMp6dg+43tT4+uUMY0o1uKefpDmvBJ8qvHM7 X-Received: by 2002:a17:90a:384d:: with SMTP id l13mr31221266pjf.86.1564445090048; Mon, 29 Jul 2019 17:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564445090; cv=none; d=google.com; s=arc-20160816; b=vLpATui5nI7D6qYqNjYbJTor6MDJkDVm5NRbBza8xI+wGmZ/AMF8/x78YhZAjNwvEY xrvZ7T58WZ/OBJLzBRpQ/s0WwAagZem0GmUaJ9t3y+0mMagSgcaDgMp/buPa9QJzFLYI lrpCGEBqkj9DIDnYd01dQKZmHcvW7EAcBVglt6vqnNUeJLXsEA95Ua7tuHcaiBTKZM+q cVS+6wIGKYXw4qQSBGro/xbprXE2lqM3q/C5NJdgYpVpV6hfc21WZHgomLTqlRieC90a /Ug/hm9rF1gvVTiw7OOOonU86PTmz4idYPiHqMx2assq9eT5XaDpKOF/KE2IcsW1MftS SYDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=udPwAgRZ5VgnbmcdpzHHnHLoMDYTmsoSHlg4JYdkFe8=; b=zQhCexobnPBspSKdpaoblw+ALFH3eOK2FOlZYT91cH+Q2E7GeSP9AyF5KJGlAVHATT 6Xbl9ymtTGochZrIEg+iD0mltkqiUTI1DohYadQv7v+fX/tRMV7RWi8C6THB47C1dngF xBy1s7WwLcZp+Zcef+NAAFX54mH8UfYnYOr4wfEM5P5DNEIBpAiP0GSj9eU7G1rkv9sm PpX4N7V+TmPxw4VavB+Pvlt4lmRQYa+O1dr5FBcPvynP+fdXYvdX9JdBQCd9UOB6eIu+ FdEvVpa/yRtkEEOiU9DuR/OOq5SydBAfrVDlCgJvlrtOhzzSWBNipMK6I4Rk/gjnsOTx icww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OGkqbUrE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i188si27864045pfe.96.2019.07.29.17.04.35; Mon, 29 Jul 2019 17:04:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OGkqbUrE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388429AbfG2Ta1 (ORCPT + 99 others); Mon, 29 Jul 2019 15:30:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:43172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387665AbfG2Ta0 (ORCPT ); Mon, 29 Jul 2019 15:30:26 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE4B82070B; Mon, 29 Jul 2019 19:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428625; bh=zcOOwdkWwAzsrnMVM5ggWKEhyC2WltkG0rLCXQ1hlsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OGkqbUrE9nzo/IT999G5gvEbytN0q9wMkypv1ek+N3qr7ThMV+yn/ObV8AcJD47GL s70attwta0RuehaXiF/Bag2RUiMD3k4EgTnzAzeKIjD9ow4UqgUh5ncfOBCkB8nyMI dtDK+CpNMrJIFrYy+30nekKfrd3p8tdX0PEwL7N0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Luca Coelho Subject: [PATCH 4.14 134/293] iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X Date: Mon, 29 Jul 2019 21:20:25 +0200 Message-Id: <20190729190834.822858147@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emmanuel Grumbach commit ec46ae30245ecb41d73f8254613db07c653fb498 upstream. We added code to restock the buffer upon ALIVE interrupt when MSI-X is disabled. This was added as part of the context info code. This code was added only if the ISR debug level is set which is very unlikely to be related. Move this code to run even when the ISR debug level is not set. Note that gen2 devices work with MSI-X in most cases so that this path is seldom used. Cc: stable@vger.kernel.org Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 34 ++++++++++++--------------- 1 file changed, 16 insertions(+), 18 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/pcie/rx.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/rx.c @@ -1674,25 +1674,23 @@ irqreturn_t iwl_pcie_irq_handler(int irq goto out; } - if (iwl_have_debug_level(IWL_DL_ISR)) { - /* NIC fires this, but we don't use it, redundant with WAKEUP */ - if (inta & CSR_INT_BIT_SCD) { - IWL_DEBUG_ISR(trans, - "Scheduler finished to transmit the frame/frames.\n"); - isr_stats->sch++; - } + /* NIC fires this, but we don't use it, redundant with WAKEUP */ + if (inta & CSR_INT_BIT_SCD) { + IWL_DEBUG_ISR(trans, + "Scheduler finished to transmit the frame/frames.\n"); + isr_stats->sch++; + } - /* Alive notification via Rx interrupt will do the real work */ - if (inta & CSR_INT_BIT_ALIVE) { - IWL_DEBUG_ISR(trans, "Alive interrupt\n"); - isr_stats->alive++; - if (trans->cfg->gen2) { - /* - * We can restock, since firmware configured - * the RFH - */ - iwl_pcie_rxmq_restock(trans, trans_pcie->rxq); - } + /* Alive notification via Rx interrupt will do the real work */ + if (inta & CSR_INT_BIT_ALIVE) { + IWL_DEBUG_ISR(trans, "Alive interrupt\n"); + isr_stats->alive++; + if (trans->cfg->gen2) { + /* + * We can restock, since firmware configured + * the RFH + */ + iwl_pcie_rxmq_restock(trans, trans_pcie->rxq); } }