Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5128693imm; Wed, 12 Sep 2018 01:20:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbL7pTpi/qdGKwyvLBUoPe9D0UMLM5waFLU7jZi3c7AYjqluEFBkDVY25SKG2gXIWMyTABa X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr837725pgh.269.1536740414954; Wed, 12 Sep 2018 01:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536740414; cv=none; d=google.com; s=arc-20160816; b=Abrv6sN9J4q2A9SAouWPTYCz7jZKQp/fLJchkqc6JNNmPnUiWiNI70XYYMKuS/RqUa rNUgLVnQdy2PRjZluH4GJDn7993bITkNmE2IQvfSGibmiCIcVYjrLW9QZSFbJQx9BnZq /6HihWaZRS0LD+EqTfiVdo/6GTjXJNKYXPFzasfjxbL5mOqT7aROy7A0UiB6JwRl2I0H igcFp0ke6xlSZn3MIo4Uryj0S6kROeudOjY5TOVWEcJBEWKBHutBFowEwXwETrhOpCa9 4aT/bnEW59Cpd4d1zNhdtjH6bIB8ds4i9aGEEzfb9bw/KVEjc2haleM53gN5jZAr0cuH oTWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=y6HXM1E008RjgkB/6vyZibJoQnFYfYIQREetc0F3kKk=; b=gywZHpSu7nLyOSK+rVQYGPnWVOVGe6Q44fS6pZH6W6oo87uZp2WuEbHElHh3USTm5G aCASJhtHv5WUOrA1Qhk6ZEvPzMYn/eIsbCjI+XWK2dei/OtLzQ/RG/FQMNZ7/8LgWiGS VWKaU6xas6Cut5/33cpfZqBOPnoITLfHLlXUFQlsTp14XME9SsfMDu3f7iS6oWk897SK LfQBU+nKcqLBSm/+RGQiDNHS67FEq3S7Sp8+YrZJddQm4cP3mJ5mBqA2I1jPBjk3owU4 PAnwQE/NV71YIgvU8rstN+uDgqZ+WJ77lZk0G7dtLTKMXfnNkh4s22ksRIO/93B4MvnT LsLg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9-v6si364391pgj.430.2018.09.12.01.19.59; Wed, 12 Sep 2018 01:20:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727693AbeILNXM (ORCPT + 99 others); Wed, 12 Sep 2018 09:23:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39424 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbeILNXM (ORCPT ); Wed, 12 Sep 2018 09:23:12 -0400 Received: from mail-pg1-f199.google.com ([209.85.215.199]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1g00NF-000503-Bk for linux-kernel@vger.kernel.org; Wed, 12 Sep 2018 08:19:45 +0000 Received: by mail-pg1-f199.google.com with SMTP id 191-v6so678306pgb.23 for ; Wed, 12 Sep 2018 01:19:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=y6HXM1E008RjgkB/6vyZibJoQnFYfYIQREetc0F3kKk=; b=HpUElJVc/+7k6AQIXv9sEKSEGCsjIburMSzF/Q/JdV9Z0D+V1OOKp3kvZ3Qd+mhRLK z1LyacpBAOVGSaXvZXBsdc03EVJZtko1SsvzpZYL4EyJkbGumKCKmTUSC/myCe4aBDEa e2ByqkkjleJs8ad3lEEusOgkFXFESWICCCYWJEvfPirCjKiU1F0ltYewlLg0kWawodmQ qrng6SSwh/2ruTXV/dTsxHnjPBVKRJlb1KVC334kh9YTK1m4dM1XwOEEZuCsqjge2rKH Nima+Fvp350606NBm/TD6sbCCU3MypIfpKODIWXoXehYJzvXSzm86i8y1x6tNl7R5WK3 vWaA== X-Gm-Message-State: APzg51BYArQKy4mo5a3UHLCzIT5EW+9R/E4Gh3onRA/1yJMgDHy/zzNK lSEWo20b/V+4lQ8fgy3lmCSIQr06Zt6+s+fMXbb0cwbLJBRaY3x2X5oSDl8M3pxJ3iDcILcZeEu 2bzYsOMFWk2Fg2ymr44Lw8O7zx/2muXlrmXbvRIaamw== X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr831871pln.261.1536740383751; Wed, 12 Sep 2018 01:19:43 -0700 (PDT) X-Received: by 2002:a17:902:820a:: with SMTP id x10-v6mr831836pln.261.1536740383372; Wed, 12 Sep 2018 01:19:43 -0700 (PDT) Received: from [192.168.1.206] (220-133-187-190.HINET-IP.hinet.net. [220.133.187.190]) by smtp.gmail.com with ESMTPSA id y85-v6sm669796pfa.170.2018.09.12.01.19.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 01:19:42 -0700 (PDT) Content-Type: text/plain; charset=us-ascii; delsp=yes; format=flowed Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Regression caused by commit 7bb05b85bc2d ("r8169: don't use MSI-X on RTL8106e") From: Kai-Heng Feng In-Reply-To: Date: Wed, 12 Sep 2018 16:19:39 +0800 Cc: jian-hong@endlessm.com, Linux Netdev List , Linux Kernel Mailing List Content-Transfer-Encoding: 7bit Message-Id: References: <5D685053-1A33-4553-8678-A50C542466FD@canonical.com> To: Thomas Gleixner X-Mailer: Apple Mail (2.3445.9.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org at 14:32, Thomas Gleixner wrote: > On Wed, 12 Sep 2018, Kai-Heng Feng wrote: > >> There's a Dell machine with RTL8106e stops to work after S3 since the >> commit introduced. So I am wondering if it's possible to revert the >> commit and use DMI/subsystem id based quirk table? > > Probably. Hopefully Jian-Hong can cook up a quirk table for the issue. > >> It's because of commit bc976233a872 ("genirq/msi, x86/vector: Prevent >> reservation mode for non maskable MSI") cleared the reservation mode, >> and I >> can see this after S3: >> >> [ 94.872838] do_IRQ: 3.33 No irq handler for vector > > It's not because of that commit, really. There is a interrupt sent after > resume to the wrong vector for whatever reason. The MSI vector cannot be > masked it seems in the device, but the driver should quiescen the device to > a point where it does not send interrupts. Understood. > >> If the device uses MSI-X instead of MSI, the issue doesn't happen >> because of >> reservation mode. > > Reservation mode has absolutely nothing to do with that. What prevents the > issue is the fact that MSI-X can be masked by the IRQ core. So in this case I think keep the device using MSI-X is a better route, it's MSI-X capable anyway. > >> Is it something should be handled by x86 BIOS? Because I don't see this >> issue >> when I use Suspend-to-Idle, which doesn't use BIOS to do suspend. > > Suspend to idle works completely different and I don't see the BIOS at > fault here. it's more an issue of MSI not being maskable on that device, > which can't be fixed in BIOS or it's some half quiescened state which is > used when suspending and that's a pure driver issue. Understood. Thanks for all the info! Kai-Heng > > Thanks, > > tglx