Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2395220imu; Thu, 24 Jan 2019 12:02:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN4u1VJ7h+Plk2pmPtI7t7Qm9pk4wjsDysZj5zfvJ3n3QiAPGvshfQfF03Cg+9fj42Mhtg1W X-Received: by 2002:a17:902:14e:: with SMTP id 72mr7919434plb.287.1548360146040; Thu, 24 Jan 2019 12:02:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548360146; cv=none; d=google.com; s=arc-20160816; b=YknjEC8BrfRwY4/KnweOYQxr/+lwJRQjW+Q3JHuuUatKY/272ewlY1w1Uvrn/zBoPL 77raV30lZktl8LyoVrDiPP4SyYeugFBwaimC8rGpvyNsfWB/uxV2+bQQ+FApMbW7naK4 /h2jApUKKIGyYH9glEMuozapNhB/3CKgNgbz3wXhDqpDKvtjJpoenAu2tbk0R54mMl59 8zDsjBzC6ubS+Iv9SiUhxNcHXJbyo9w2+A1vpQCueVQN3N8ohkbot4awBzEvKhxadJhp O4ljcPOqY1SkZuf8Bl86wD2FUWSq+g6AOzbFJkhPI/ClUV3QSAPwDM0rUDPBBV1JBzTU WrZA== 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=1w5BBPnmHJYLe/jjm9aWHVBS2ifQPwqUUJYqnNsTSUM=; b=MrODIWwOx6CNlhEdUjaxlh56vU/1vJgXsZ0dKzPasHy7GumGRwcvp2+/R1PxaX33iT Z+96/za02sz6dk0WF6HLiEPHVML7yr7gavlRPX3bi9tnAOxjMC3whFjLf6wxuQZYVic0 WPm8bQqXkwSrFrHC9Dgb49ByzL5TVwBsiwgob3W3Q2zGPudv9ypeEp7lYNRjTstiHQSX 6kDHiVxmL3q72A4Qw4HAacEpAbu91ggy0oaFjuvRt/3kH1Z61Q/iuiTY6zAZzC76UQCH p5+5PotAuGsFMxZKSGyTxtQxG/PAQ8DdN3sXNbVgaJVWg138+1kxEru6Qp0PuUDsN9Ad vA1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PCmMgzFE; 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 l186si1282799pge.205.2019.01.24.12.02.10; Thu, 24 Jan 2019 12:02:26 -0800 (PST) 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=PCmMgzFE; 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 S1732004AbfAXTdY (ORCPT + 99 others); Thu, 24 Jan 2019 14:33:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:33136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731282AbfAXTdU (ORCPT ); Thu, 24 Jan 2019 14:33:20 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 63CAF218D4; Thu, 24 Jan 2019 19:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548358399; bh=3SbchAvHrzX/fvVOm0fzQm3vR4nZiz/i0uWAyJQtBvI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PCmMgzFE/dqdVtCO/AcNR6PYkT6ji4o9U4g8B0kxRTEqz1KAKQAGv1EEZF/DSOfzO BUAm3Mo83entbWD/VlliIKDvU2BtUdHKvZXrXnJMWOrqLzpj7XLAVKX9CMhfO380RA q9ReGPxN3nTjjpileo3lN7rWDOKyKsAoGAIqfCxg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Chiu , Corey Minyard , Daniel Drake , Paul Menzel Subject: [PATCH 4.14 59/63] ipmi:pci: Blacklist a Realtek "IPMI" device Date: Thu, 24 Jan 2019 20:20:48 +0100 Message-Id: <20190124190202.219261697@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190124190155.176570028@linuxfoundation.org> References: <20190124190155.176570028@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: Corey Minyard commit bc48fa1b9d3b04106055b27078da824cd209865a upstream. Realtek has some sort of "Virtual" IPMI device on the PCI bus as a KCS controller, but whatever it is, it's not one. Ignore it if seen. [ Commit 13d0b35c (ipmi_si: Move PCI setup to another file) from Linux 4.15-rc1 has not been back ported, so the PCI code is still in `drivers/char/ipmi/ipmi_si_intf.c`, requiring to apply the commit manually. This fixes a 100 s boot delay on the HP EliteDesk 705 G4 MT with Linux 4.14.94. ] Reported-by: Chris Chiu Signed-off-by: Corey Minyard Tested-by: Daniel Drake Signed-off-by: Paul Menzel Signed-off-by: Greg Kroah-Hartman --- drivers/char/ipmi/ipmi_si_intf.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c @@ -2447,6 +2447,15 @@ static int ipmi_pci_probe_regspacing(str return DEFAULT_REGSPACING; } +static struct pci_device_id ipmi_pci_blacklist[] = { + /* + * This is a "Virtual IPMI device", whatever that is. It appears + * as a KCS device by the class, but it is not one. + */ + { PCI_VDEVICE(REALTEK, 0x816c) }, + { 0, } +}; + static int ipmi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) { @@ -2454,6 +2463,9 @@ static int ipmi_pci_probe(struct pci_dev int class_type = pdev->class & PCI_ERMC_CLASSCODE_TYPE_MASK; struct smi_info *info; + if (pci_match_id(ipmi_pci_blacklist, pdev)) + return -ENODEV; + info = smi_info_alloc(); if (!info) return -ENOMEM;