Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp609893imm; Wed, 10 Oct 2018 01:08:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Lzg1DnHHPHoHitNacgmXzo5iMwAnTUSWKVwtfd46DhB/DVgMPrX1ACXwwXuRVb4z1zdFr X-Received: by 2002:a63:1f0a:: with SMTP id f10-v6mr28802715pgf.313.1539158880185; Wed, 10 Oct 2018 01:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539158880; cv=none; d=google.com; s=arc-20160816; b=oKjE4h5PnSBaj8jAdXQljYbG84Vil8pDS68btdrK+s1hgURO9w714u/y+A9sUIh3Xm fQfkAecTZqApMr7nLA75ACNZLeVaERL+CSDQuDqxfSqKlYd9IBiGDbKb25p5rcZffs4w YepancWmJJsC4KZOR6ZKOVHZXpBIYGQN3bVlMdh9RGwUWYDHiCHe7d3QPS6VcXTb/mci WQjXOjk2u/JapnT6TE0tcwRM6+YV/OasV02sdewNG+nkureyE7ljb/z5kxL2sPb4e8Up yRJ987hlacJZUvNrZxNWiJbIcM1J5ZRktbSsKQHWvMuTURDawUqPiFYAyPTRMh3p07ml og3A== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=mF2G0/OaQnKAFkhzSKsTfgJxyCMQyDi7RoW6XmskzKY=; b=VndJ8HHbiPe07XEMggs1MYf6JxfCDm5OCBz6wCJxFoDIMqCAyh2eXPQH51+SOY2lSo VQvh2Vo2MZdTsPWv6Q2iUYEGzJLApIzP+qAS3YEeeiyUsCUffXG85djK+tQTceFtHBUN LfjEcIH7AXa39soA1gvLNJnlHU8EyATL79fnK8SC7KLe1U8cFqr5u40fVqG+eHB9gB0H v8XPnRdCYWEFOo4YmPZohUYPRRhgoNbAEeNmOcmN7FmPQsXlCEP5+J6GifN/2gItb3Q1 HoakTMVDYUm0ChvI96wvvS8DmwykCAhG2Bd79ugJDcfXi5D0d6nwWwwMrRWsbPvRVzUX 6K4g== ARC-Authentication-Results: i=1; mx.google.com; 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 74-v6si19446121pge.31.2018.10.10.01.07.45; Wed, 10 Oct 2018 01:08:00 -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; 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 S1726713AbeJJP2W (ORCPT + 99 others); Wed, 10 Oct 2018 11:28:22 -0400 Received: from rs07.intra2net.com ([85.214.138.66]:39332 "EHLO rs07.intra2net.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJP2V (ORCPT ); Wed, 10 Oct 2018 11:28:21 -0400 X-Greylist: delayed 421 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Oct 2018 11:28:20 EDT Received: from mail.m.i2n (unknown [172.17.128.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rs07.intra2net.com (Postfix) with ESMTPS id 7091A15000CA; Wed, 10 Oct 2018 10:00:20 +0200 (CEST) Received: from localhost (mail.m.i2n [127.0.0.1]) by localhost (Postfix) with ESMTP id 222412D9; Wed, 10 Oct 2018 10:00:20 +0200 (CEST) X-Virus-Scanned: by Intra2net Mail Security (AVE=8.3.52.82,VDF=8.15.8.188) X-Spam-Status: X-Spam-Level: 0 Received: from storm.m.i2n (storm.m.i2n [172.16.1.2]) by mail.m.i2n (Postfix) with ESMTP id BEAD722E; Wed, 10 Oct 2018 10:00:13 +0200 (CEST) From: Thomas Jarosch To: Bjorn Helgaas Cc: Bin Meng , Bjorn Helgaas , linux-pci , stable , jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel Subject: Re: [PATCH] pci: Add a few new IDs for Intel GPU "spurious interrupt" quirk Date: Wed, 10 Oct 2018 10:00:13 +0200 Message-ID: <5897590.Qva4cvS4Tx@storm.m.i2n> Organization: Intra2net AG In-Reply-To: <20181009170158.GA5906@bhelgaas-glaptop.roam.corp.google.com> References: <1537974841-29928-1-git-send-email-bmeng.cn@gmail.com> <20181009170158.GA5906@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello together, On Tuesday, 9 October 2018 19:01:58 CEST Bjorn Helgaas wrote: > > > Do you happen to know if Windows has the same problem? I.e., if you > > > boot an old version of Windows with a new GPU, and unplug the VGA > > > cable, does Windows crash? If Windows can figure out how to handle > > > that situation gracefully, Linux should be able to do it, too. > > > > I suspect Windows cannot handle it too. Without the GPU awareness, the > > interrupt line is simply on and no driver claims the devices and will > > cause issues. I can test this. > > If you could test this, that would be great. I would be quite > surprised if Windows crashed when you unplug the VGA cable. [original patch author from 2012 chiming in here] When doing a test on Windows, I guess it's vital to use a generic VGA / VESA driver. The Intel GPU driver will modify the interrupt configuration registers. Also at least I don't know if Windows has similar logic like Linux to disable spurious interrupts after XX unhandled interrupts. Personally I'm unsure if the Windows test is worth the time. Back in 2012 I tried to report this as a video BIOS bug via the Intel Open Source Technology Center. There was not much interest to report an issue to the BIOS developers. I have private emails from other people with similar problems on "Kenosha Pass" based boards. One of them talked to an actual Intel BIOS engineer in 2014, but still that didn't get anything fixed. Regarding a generic fix: The problem is testing on real hardware. Some Intel GPUs have different configuration registers. The Intel GPU driver could be used as template, but doing a fix without actual hardware to verify it is unsafe (=might mess up the system in unexpected ways). Related ideas from Daniel Vetter in 2014: https://lists.freedesktop.org/archives/intel-gfx/2014-August/050448.html Cheers, Thomas