Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3475210imu; Sun, 11 Nov 2018 15:58:16 -0800 (PST) X-Google-Smtp-Source: AJdET5fgpX3dFA58U6anyUrCsTZxCo0utKM6cNlWQ962FK+Z/omedNy6mbr6+b3lt05S50AdWyGr X-Received: by 2002:a65:66ce:: with SMTP id c14mr15413283pgw.450.1541980696838; Sun, 11 Nov 2018 15:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980696; cv=none; d=google.com; s=arc-20160816; b=Pl4AuIyBbC411NULocIw/7YRL3HQ3iASoR42rJRRO4neXsB6WHLLLfxc6xpZBQErns 60Xk0KOpYEtoKIOuZTTl1AINQUK6K1s20k9eiTlrAdyFB7vgVvV7f/GcKGNgPHuT/wVt xov2QydQxfr+YASuJrg4jiEnxq7itp4uCakbpEYSnQVp1NtrFpYMJcUcvRQpGLMoTO7H EZWlvAIK/FmV0hPs5t9DOshB44tlb2TXVBiE9oizz30O4mqO7ofInoAkN9zcq33Bzkpu GbExN2EF5MZzpgJzs0G6EGiH6GRko8xhE2Kc5/xyD2Ii6cKAqlS7+rpeeKEGzhGzjq/x apZg== 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=3Il0W8rVrGWV848RwsaNacpZNhOVV0849pz1RYQIZk8=; b=CQwYhxR+ejIafpLS9TKtWZNGsNRh6EUBAKXwijHjn3byTBstfvKXAdppHNNQUw5/Or 16ts6umbO5kpiawM8GWrzOCQA082R4B0orl093hUJETvda9gasLATQMYuPutVwJgKWON DkzZM8SVDhwAsOrCtpkh5/2Eoyd+5j/5TlSA7+JzD8dlfUWym7JnXle1Pe2vjlEXv29G ykoAoW0b366lyMUElQYhFa6+LbSCIhJsz3Cnw0yMt7tErv855ZqKMUZMr7gWpIFOp5eL 9KjqQN7vLhw8kJt2vwLNheNB7kz/Yt+g8AGuMEOPIaPGSggpzuJU5bPlQ/aBD2BSZhDH eegA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LYGKqEY6; 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 cd11-v6si17937528plb.59.2018.11.11.15.58.01; Sun, 11 Nov 2018 15:58:16 -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=LYGKqEY6; 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 S1732708AbeKLJsG (ORCPT + 99 others); Mon, 12 Nov 2018 04:48:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:35400 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732470AbeKLISJ (ORCPT ); Mon, 12 Nov 2018 03:18:09 -0500 Received: from localhost (unknown [206.108.79.134]) (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 CA889216FD; Sun, 11 Nov 2018 22:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975293; bh=0d7drElHp1z7YzAACD2SwcIulT5utFgZlqB4+/BtmmA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LYGKqEY6JgaYEqOpu3+43JDxvzHykqpVsBDUa8vlFZ8bln2lB4FOM8e5tleEuo4Fs HrN3z1vYtwCnUDlO15uzvfGZgwBSu6GlQuVAGo0BrB82pnBTBk2Tuj5H2phMDJyXQr VavahO0zrIgMhrB9a1hBI7o6357C1dZ5oYunE7hg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bin Meng , Bjorn Helgaas Subject: [PATCH 4.19 239/361] PCI: Add Device IDs for Intel GPU "spurious interrupt" quirk Date: Sun, 11 Nov 2018 14:19:46 -0800 Message-Id: <20181111221652.156029491@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bin Meng commit d0c9606b31a21028fb5b753c8ad79626292accfd upstream. Add Device IDs to the Intel GPU "spurious interrupt" quirk table. For these devices, unplugging the VGA cable and plugging it in again causes spurious interrupts from the IGD. Linux eventually disables the interrupt, but of course that disables any other devices sharing the interrupt. The theory is that this is a VGA BIOS defect: it should have disabled the IGD interrupt but failed to do so. See f67fd55fa96f ("PCI: Add quirk for still enabled interrupts on Intel Sandy Bridge GPUs") and 7c82126a94e6 ("PCI: Add new ID for Intel GPU "spurious interrupt" quirk") for some history. [bhelgaas: See link below for discussion about how to fix this more generically instead of adding device IDs for every new Intel GPU. I hope this is the last patch to add device IDs.] Link: https://lore.kernel.org/linux-pci/1537974841-29928-1-git-send-email-bmeng.cn@gmail.com Signed-off-by: Bin Meng [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org # v3.4+ Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3190,7 +3190,11 @@ static void disable_igfx_irq(struct pci_ pci_iounmap(dev, regs); } +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0042, disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0046, disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x004a, disable_igfx_irq); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0102, disable_igfx_irq); +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0106, disable_igfx_irq); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x010a, disable_igfx_irq); DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x0152, disable_igfx_irq);