Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10425873ybi; Wed, 24 Jul 2019 23:00:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgOas3MY7oz6AJV5AR48GLvHUr0SdpIBkIFQlyvcnvsEDQVRaMKkOe0V8cm8dbdutDhzkJ X-Received: by 2002:a17:90b:f0f:: with SMTP id br15mr92499584pjb.101.1564034453860; Wed, 24 Jul 2019 23:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034453; cv=none; d=google.com; s=arc-20160816; b=zngU2OWGLKdpCOzDV7G6ANCoZ2yY3oa1gshaG8UJiX1AhsQ+wUEfqyq6BDP99e20k9 dLuLuyKGqUZjydkQqXojIL+zTp00KVmrlD7vRlCdcn9WTRemROWR58xBOMUD4o7Ue/vB EuTCxGy8Lh/kP5DsCgkNAuw2dokqKVVK93II9OvbMGTRU2e9RgUH+igMhhGg6efMHeKS 5CgXRIB2jD/hdH6nuFcKyXJwPPKf0SNPji/wktQUYUeg5VGf67sPcSgEGsdGaOURNq+3 CsD/ZVoO91b2ufjEOxeI25SInDGjQK5OPlFWGxHw02LnKgvqD9+HYz1sw771ChLNqjHK nSYg== 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=I6RJcE00Sb4T+9FRz9hxXNo6JOL0YW1wldW+kqXT4xg=; b=l/UmuqmFwr4Q5AshKMqxUCfdQvZ5M+dnsNZapbW2ZOJajTHScQQY7Wst4QLtJEEm9A m2j0WPl8LSmR2023I7DIQimXzwUrOQGgRaVUFqrJYoBEhab65zLyljMxS276unZRD8lp rLXkMlHlrqsxM9UGxM4jd1V8CqUXnxWlRvQbGDuXIPl6IknpoxBVPrE6JaPqJ9zAQSEY eoOfkEJa+7awdslUBmcE+xl0zyQ1YtlrJktVfhLrjGfGtwqqoibFB/P0mMq9uEgMvzXm Ma4iDQhCyWnejYLUyhkwIlQ59t55DC7/7uRnL71gLqOBf30DVApSicTJ2/lsxFSN+GAU /tyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gRMgPVYz; 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 r26si16085428pgv.189.2019.07.24.23.00.39; Wed, 24 Jul 2019 23:00:53 -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=gRMgPVYz; 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 S2391047AbfGYFnd (ORCPT + 99 others); Thu, 25 Jul 2019 01:43:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:58418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388270AbfGYFn2 (ORCPT ); Thu, 25 Jul 2019 01:43:28 -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 C2E2021880; Thu, 25 Jul 2019 05:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033407; bh=zLIwCV3bZJFt+2RD7eslQ+avPYOsOC0b7t91Wty7k8c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gRMgPVYzHnjEWb/RjdCfrM8stTZGUa8pDg/7qkpI2zWcUiFdHiA7qM5FtADzNSLtV +R+rwgWvtYwsBDQCwjDAD5EOX/UqSFoa2aFfLxCkiCHfFrulcxBf8nWbcrjVm8rt6R q8yE1dtJcjcSK1HyRTZ1Z4zpAu6d/c9ZE+Y6vKC4= 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.19 196/271] iwlwifi: pcie: fix ALIVE interrupt handling for gen2 devices w/o MSI-X Date: Wed, 24 Jul 2019 21:21:05 +0200 Message-Id: <20190724191711.894066148@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@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 @@ -1778,25 +1778,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); } }