Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2287127imc; Tue, 12 Mar 2019 10:37:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHEj6IH2bTv/ZdAQXIVMBTagjmJ6EHVdWYf2X2Fl62t/eWYmqJN0DmwD0glhftpcwoA/jB X-Received: by 2002:a65:518b:: with SMTP id h11mr26033839pgq.41.1552412245001; Tue, 12 Mar 2019 10:37:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552412244; cv=none; d=google.com; s=arc-20160816; b=sMiwrDqlQXmlAzBj9M68noe2iRwpIa4d6uIucnQHcH2jUFs+PYuq6pFXN88cq+ZzzN NeEMwCsL7L1h45yo7cgnrVX0ASliYEWCivhPvCkzhxydpnAaY1LSyqC4xm0/adifkrhx 9VhQe7odyZUktMYrbvNt9Uo+VoEWIct1+/N+OlK4x8480lD7ftLBUy64ehErHAGCdA/W um8JFrT8eIMNQOtnqI9DKYEUcJVt1NNq+py+dGJQKuT/SHzOwgY3TH+YkqSTpQCoTSKO 4KYZp5CuZ4iEcAtdc1hP3PdRJbsSJJPbRhqOvpd+SfIpegejg5tN8WAkeMTpaw2GssEb uiyw== 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=0ulNpDh7gU9fvwzN37VTVncWb7Bi5H6helfLzRPSrMU=; b=zmO4U3uVCYJ3sud7QRyqWXySyOq4NYXKKhT/mlMDzGLYjstuuTeZbYss1qgQQLjv78 2Q93vguPwBP8Hkyx7c+VTgRc/g/LrbA1hXynYCjX2syCxdnx6kqtgdnluAfKAjH+fCcu eidjDywc92jY4r14/JZQUxL4AMAnsasnndLT2pJ0DwoYmWpZV69hRzeJzgn2MiVUWoHG y6NiPVK9KBCpECU/ZrEUS/0AumtzHDGsSV2XyhUzb9qTr05F4/RZq72SJtL8x6b55Lr/ q19bgtJ+SQdxFAJpbBnEYI+K0YnF9Bzg/poL6BbvkwN0HQFGYJeVGMSYhlAlOhgwvhcR bT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gJ6T0ctf; 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 b6si8418305pfj.211.2019.03.12.10.37.09; Tue, 12 Mar 2019 10:37:24 -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=gJ6T0ctf; 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 S1729336AbfCLRQv (ORCPT + 99 others); Tue, 12 Mar 2019 13:16:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:56866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728867AbfCLRPr (ORCPT ); Tue, 12 Mar 2019 13:15:47 -0400 Received: from localhost (unknown [104.133.8.98]) (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 AAFB821850; Tue, 12 Mar 2019 17:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552410946; bh=Y1W3Pxep1bl+W2N2K9GF1QSWco+jsdgLqhlhjQZkqHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gJ6T0ctfsm+0kE4p8xQnRg6fXkhvc1lg8XhGoHMxFeueUt82jztRFI5JIVxh9+lkK F91x3yvEIp3QO0qgyHdWHjHZIKgFnyRqNaXOWip3woQUX0L71ZeohDAWd+gn75VgvH bAoyenG0gu78xoVp5NDm31xH1bHS4JWcyKjSrqzY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , "David S. Miller" Subject: [PATCH 4.14 011/135] sky2: Disable MSI on Dell Inspiron 1545 and Gateway P-79 Date: Tue, 12 Mar 2019 10:07:38 -0700 Message-Id: <20190312170342.181614260@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190312170341.127810985@linuxfoundation.org> References: <20190312170341.127810985@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kai-Heng Feng [ Upstream commit b33b7cd6fd86478dd2890a9abeb6f036aa01fdf7 ] Some sky2 chips fire IRQ after S3, before the driver is fully resumed: [ 686.804877] do_IRQ: 1.37 No irq handler for vector This is likely a platform bug that device isn't fully quiesced during S3. Use MSI-X, maskable MSI or INTx can prevent this issue from happening. Since MSI-X and maskable MSI are not supported by this device, fallback to use INTx on affected platforms. BugLink: https://bugs.launchpad.net/bugs/1807259 BugLink: https://bugs.launchpad.net/bugs/1809843 Signed-off-by: Kai-Heng Feng Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/marvell/sky2.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c @@ -46,6 +46,7 @@ #include #include #include +#include #include @@ -93,7 +94,7 @@ static int copybreak __read_mostly = 128 module_param(copybreak, int, 0); MODULE_PARM_DESC(copybreak, "Receive copy threshold"); -static int disable_msi = 0; +static int disable_msi = -1; module_param(disable_msi, int, 0); MODULE_PARM_DESC(disable_msi, "Disable Message Signaled Interrupt (MSI)"); @@ -4931,6 +4932,24 @@ static const char *sky2_name(u8 chipid, return buf; } +static const struct dmi_system_id msi_blacklist[] = { + { + .ident = "Dell Inspiron 1545", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 1545"), + }, + }, + { + .ident = "Gateway P-79", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Gateway"), + DMI_MATCH(DMI_PRODUCT_NAME, "P-79"), + }, + }, + {} +}; + static int sky2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { struct net_device *dev, *dev1; @@ -5042,6 +5061,9 @@ static int sky2_probe(struct pci_dev *pd goto err_out_free_pci; } + if (disable_msi == -1) + disable_msi = !!dmi_check_system(msi_blacklist); + if (!disable_msi && pci_enable_msi(pdev) == 0) { err = sky2_test_msi(hw); if (err) {