Received: by 10.213.65.68 with SMTP id h4csp1876900imn; Mon, 19 Mar 2018 16:04:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELtqVb7yelRqxno4zpD6VvvyR8PwoHGpHKwpWshX3pEZlGlWuHoaMzYuS4hnc2QLOcFtFG/r X-Received: by 2002:a17:902:5496:: with SMTP id e22-v6mr6400042pli.81.1521500696608; Mon, 19 Mar 2018 16:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521500696; cv=none; d=google.com; s=arc-20160816; b=nijmQwvp3l2SzlLWLOH53dHD4BGh6EJAjXdDSWmoBltGFWkKtaSpdTrmzsBCp71wbj wFehug9sD1D5DKTsQNM0lGzFXK5y6JLDlZsLk3s/mlNlKeo7NJjdj/9ajMGe/4pp1TdS wbiT10dpbgXU4BSDangv42sBS2zRUSL1y8S+A23wLFCQPP7tEIktZ8JO9ojT370Otxfq o0Esq2/19QWYxzy+x2Nb9z8OHEKdIoBlxyLE+hBlGns2fes8kyhwHNqK0PUbV4iz5kzP RumA3piZWpB8xjzaEUX4ekRbYZJR+SBkB7Z94jtYZ+9PXowAaCxkh+lGL1OjOZsuIWvW MHsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=sUDxolFVS7ZkATKDzeEseacuxWE6An5KrAsfY+ybUks=; b=RntK/tZ9PLBg+KkeYMCqAgXcQzJ3pY0mgx8rdMiUvQk9BiS+QHPWBiNZL/0Mk6RdGF bdVa8OA0UI8v4fphQHKCZYivSFLYUZRYOyJBYPFYL3ydzwTFhm+8OY5ZhvVtyQwePxSQ 4/dsgCzUAytV+IP0Y768K4JlX75bdK8ELdIz3LboX37wAgXBatwVk5XdNzuQT1Tw1ar8 GN9VtWuo7+E5yyQPjixx4TwuUZixdArfs8VpDTB3Sx7Iw6dRcZLOnB6xfLwvIIbvRzqH /on+A4ceZUfUlr1HqrJ1oJOaN1FMVDD9upgxSBciWPWrff7BxFPpPJUySH/7Z/MCTCaN 5v9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=Q8dZRqsD; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si153467pgq.734.2018.03.19.16.04.41; Mon, 19 Mar 2018 16:04:56 -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=@microsoft.com header.s=selector1 header.b=Q8dZRqsD; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934257AbeCSPy0 (ORCPT + 99 others); Mon, 19 Mar 2018 11:54:26 -0400 Received: from mail-by2nam01on0114.outbound.protection.outlook.com ([104.47.34.114]:57771 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933767AbeCSPuJ (ORCPT ); Mon, 19 Mar 2018 11:50:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sUDxolFVS7ZkATKDzeEseacuxWE6An5KrAsfY+ybUks=; b=Q8dZRqsDuygitIDWOOrf3CBKpbfdxHraOu7LhwznIcskg0JMyGGTe4SghuYRzbC9Swg7fCwE/adyvGzO0dMiu11l0RNQNz1ClniBYriSr+O4JmpRDPWX7ieo0g4eo6LYw7WYbkaj7VxkjcKlnkzytBtFfNaOqJZ6lwpRwhaFa70= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1109.namprd21.prod.outlook.com (52.132.130.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:49:59 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:49:59 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: Nathan Fontenot , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 112/124] ibmvnic: Don't handle RX interrupts when not up. Thread-Topic: [PATCH AUTOSEL for 4.15 112/124] ibmvnic: Don't handle RX interrupts when not up. Thread-Index: AQHTv5nPANn1RP89ykyuWTPjSVWeBw== Date: Mon, 19 Mar 2018 15:49:06 +0000 Message-ID: <20180319154645.11350-112-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1109;7:eUKFdpPO+snrC1aeWHIEBcRLFy8AhWP5c9clnpMgLGC4yul8i2DpxcIY3JR7EJbStuPCgNQ0lh1QQrj056dZJxRH14yQiEsQdIxF7frpN4P7BR95PU2JygoWpr4jK482yUWwMk5/JAKjPRemiPsjwxRh1Av8ViJ4ueudBRexDN1HnvxKa8Q0JhtTV/Z0LVAT64Qz+Nr9zIFM65VQZSOsQv6c/IDz8mwdIK0A23Y2mPcHyHA3/X+Tb6u6fNZrewJ0;20:/CzRu3zWQVVRTjrcmbj4PYyJGbXw73ajBUT+FvfP+ZW1zdQq6/899w3xQtuiEm11Qwe6c+N1zmG5IbP7AfCaOKnGeVsglPS3LLDFfTgCFQoBMAwPMKuu/6+cgJw2kOQW0r/4Mmo3Rir3EHVTb/ww4/ibiErXhcdFY9kteb2RLH8= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2fabb904-edd5-4d28-66e5-08d58db111cc x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB1109; x-ms-traffictypediagnostic: DM5PR2101MB1109: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(104084551191319); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB1109;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1109; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(396003)(39860400002)(39380400002)(376002)(346002)(199004)(189003)(81166006)(10290500003)(107886003)(81156014)(106356001)(6506007)(8676002)(3846002)(36756003)(8936002)(97736004)(6116002)(1076002)(102836004)(68736007)(6666003)(3280700002)(2950100002)(3660700001)(478600001)(72206003)(59450400001)(2906002)(14454004)(76176011)(66066001)(6512007)(5250100002)(10090500001)(2501003)(53936002)(6486002)(6436002)(26005)(316002)(22452003)(305945005)(7736002)(4326008)(25786009)(86362001)(575784001)(86612001)(5660300001)(2900100001)(99286004)(54906003)(186003)(105586002)(110136005)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1109;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: geDN5PMj9mEPsIr3rSvu4iJ/NS0Gb0fYbDaFck52JDcfdXhhb/GyaZ3V/yeieEGO2HCxWIF+8HpWNP0toTEhmPdhHghrq8q9UqGMZbeLUj4dyqQXh2NHsvOd3Ck/w5qVWK/hzIOqvjCtX2xF8UPxCvSwcHIysmOQIu3IhHM9OoPNdoyYhjBunQVtosUj8AvyaDSoAiUFkzZVWiWj0yeY/4eFofQY1F16uppcbm1lHh8iouG+F7ab/pn2t/YuRMzRj5OK+o++a+/ufdmUPE57lhTTdsKKRjL1timQAeNeaX9fv3BJuMVoTFXGHOUvrJkPzSJq9P7DjQFCwM07pDC8Ww== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2fabb904-edd5-4d28-66e5-08d58db111cc X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:49:06.3101 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1109 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Fontenot [ Upstream commit 09fb35ead58cd557aa9b20576d15816bc91a4deb ] Initiating a kdump via the command line can cause a pending interrupt to be handled by the ibmvnic driver when initializing the sub-CRQ irqs during driver initialization. NIP [d000000000ca34f0] ibmvnic_interrupt_rx+0x40/0xd0 [ibmvnic] LR [c000000008132ef0] __handle_irq_event_percpu+0xa0/0x2f0 Call Trace: [c000000047fcfde0] [c000000008132ef0] __handle_irq_event_percpu+0xa0/0x2f0 [c000000047fcfea0] [c00000000813317c] handle_irq_event_percpu+0x3c/0x90 [c000000047fcfee0] [c00000000813323c] handle_irq_event+0x6c/0xd0 [c000000047fcff10] [c0000000081385e0] handle_fasteoi_irq+0xf0/0x250 [c000000047fcff40] [c0000000081320a0] generic_handle_irq+0x50/0x80 [c000000047fcff60] [c000000008014984] __do_irq+0x84/0x1d0 [c000000047fcff90] [c000000008027564] call_do_irq+0x14/0x24 [c00000003c92af00] [c000000008014b70] do_IRQ+0xa0/0x120 [c00000003c92af50] [c000000008002594] hardware_interrupt_common+0x114/0x180 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/ibm/ibmvnic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/= ibmvnic.c index b65f5f3ac034..6e064c04ce0b 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -2484,6 +2484,12 @@ static irqreturn_t ibmvnic_interrupt_rx(int irq, voi= d *instance) struct ibmvnic_sub_crq_queue *scrq =3D instance; struct ibmvnic_adapter *adapter =3D scrq->adapter; =20 + /* When booting a kdump kernel we can hit pending interrupts + * prior to completing driver initialization. + */ + if (unlikely(adapter->state !=3D VNIC_OPEN)) + return IRQ_NONE; + adapter->rx_stats_buffers[scrq->scrq_num].interrupts++; =20 if (napi_schedule_prep(&adapter->napi[scrq->scrq_num])) { --=20 2.14.1