Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1765678imm; Thu, 27 Sep 2018 02:04:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV62MV4DOk+VoJnoD4/FvygTf/sQymVsEJBAMDgcJBglLS74A8/zvX+8SuydTjEULXEL9tCoc X-Received: by 2002:a17:902:744c:: with SMTP id e12-v6mr9924456plt.186.1538039076310; Thu, 27 Sep 2018 02:04:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538039076; cv=none; d=google.com; s=arc-20160816; b=X5+ugVRTVOSj9J4mvvEvSNLexLjVPy4UAo2TJi6WX1/MwsBRjxlJ/nC3asNFd5N8vY W4a7tpB73cEszIBXsOtRw41tyPbq+/dgvBW3Kw+0yRMPjCeRm/qXfzaaJIRkUTgfnqOo iP+Z6fijla4DlKTqTW095sBN2Wyz3nK+IYeSSsUOMuODbYw3j2UHBsT4+Q9iYs66NmCZ 7V+OyHKzhOijvFtlBFIBz+KewnxDVanNJLM7aCFKs72FEeV1qzCNfcwCkswM2UA91qQ5 t8JjwEy1fVYWfBFDFmTrKQMBOpKanqhP87wkHPQkEmzUaaPNUBe1ouffkalZ/4vzJHMg 0knA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=szaMs3zqbJs2twrKDCiBRLK6N5VPnWcr2R2RMmLGubE=; b=IJWJMNnJAICWylmIthynJ8bRZNTjcW5rsoVqabrZEY3KBfDx6QD8sOqVMj0axmNFNg ZGRPzN0v+YpodaC5G528Noj0L3yAH3+/YgqjvHitf2Ru9USVBiDpxFbl9Jc17uelBP6O wV27hRG15grDhVeiu0K6k7VN3lHT3tl7udiAuIT2W6Jb2/mnNDUkL3wPwhSQgw488XIP bbfgOTUdqh+1AznJu5roFQ30Tt0JzNqwO+6uczqvpKm0R/75hL72TSWfJfIF2c6RCaxW AttVNWFOz2JHbwss8WV6omv06fX4C0Vh2z8+xhzDRspt2zttUPvXpfkrjPaQXxR87rws vZ2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="qgvNGY/U"; 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 i5-v6si1614183pgn.314.2018.09.27.02.04.20; Thu, 27 Sep 2018 02:04:36 -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=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b="qgvNGY/U"; 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 S1727124AbeI0PVN (ORCPT + 99 others); Thu, 27 Sep 2018 11:21:13 -0400 Received: from mail-it1-f196.google.com ([209.85.166.196]:55285 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726944AbeI0PVN (ORCPT ); Thu, 27 Sep 2018 11:21:13 -0400 Received: by mail-it1-f196.google.com with SMTP id f14-v6so6944034ita.4 for ; Thu, 27 Sep 2018 02:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=szaMs3zqbJs2twrKDCiBRLK6N5VPnWcr2R2RMmLGubE=; b=qgvNGY/U2XQxCjDkpNqeoUYAyKHqpDLN2IgZItB4m7K9lbVwxDhhJqoPPprC8xV7CD H42jnYjcHFNEWxFbr9haj+h5cmREI9b/hhtzy2ZekeLbQWxYkDBtCEZba3DVPWg90946 Ll+6Qw5ouS04tNcY0wi9bmeD3OwxzJtwP2r7+5W/PVgb1Wl7u8MTBLDUOAjKFiBk/1CK C2j7JXhRDFeF9sj0Ed4+mtUuVbouRUtu3hvchYJnicVW59vBAwqUIzHBDqbmPCoenTyf 8VLsKOSEzMkuJ+7fhxhKWN6jRAFqKHCxtFy33mMLAPTNkKeNjpHBFjk4q03luna2+GRm XmBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=szaMs3zqbJs2twrKDCiBRLK6N5VPnWcr2R2RMmLGubE=; b=LfrgXWeeBYb2Uk8iGYw+PK3QxCUBwJ8/W++IAzbhrEVXiiwHD+fXx6pHtlQuQerRCY m9J5ia07mQ5fLA8wSkVLzfng4S8rV6xcymxc9SHqSVHq6QmGrS85sHRPESkVplBrrGSN LFXe0bhOk7I+vtrJc6U35Pq/9Dy7qQgR6noH0AAybwIZ1cqkBEhq4CizgxZxCG7y+0me vLoesWLhVPJq+U1gbPlZINUFgeN2IeoVcjbcsb5mUMsYFfRrHd3MMTct/9GQKQ8FKNir PDdNNQ3B83BnUMh8VVYLc5zmsVwyASefk0PnX+WZ97BzxK7X22wLHmVP4eJfssKjEiCm A0ag== X-Gm-Message-State: ABuFfoh8Adl7DlyqDvyZb7mqlcEPtDtl9e5gOvSahqvKifd60XF53Hz6 BAAruzPi5Xi8rR4tF4HYaJHHjLxIkTj/0mEQZqZaJg== X-Received: by 2002:a02:4d1b:: with SMTP id l27-v6mr9062544jab.86.1538039040320; Thu, 27 Sep 2018 02:04:00 -0700 (PDT) MIME-Version: 1.0 References: <5D685053-1A33-4553-8678-A50C542466FD@canonical.com> In-Reply-To: From: Jian-Hong Pan Date: Thu, 27 Sep 2018 17:03:24 +0800 Message-ID: Subject: Re: Regression caused by commit 7bb05b85bc2d ("r8169: don't use MSI-X on RTL8106e") To: andy.shevchenko@gmail.com Cc: Kai-Heng Feng , Heiner Kallweit , Thomas Gleixner , Linux Netdev List , Linux Kernel , Linux Upstreaming Team , Daniel Drake , Steve Dodd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Shevchenko =E6=96=BC 2018=E5=B9=B49=E6=9C= =8822=E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8A=E5=8D=881:08=E5=AF=AB=E9=81=93= =EF=BC=9A > > On Thu, Sep 13, 2018 at 8:53 AM Jian-Hong Pan wr= ote: > > > > 2018-09-12 16:19 GMT+08:00 Kai-Heng Feng : > > > 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 t= he > > >>> commit introduced. So I am wondering if it's possible to revert the > > >>> commit and use DMI/subsystem id based quirk table? > > >> > > >> > > >> Probably. > > Have you seen this thread: > https://patchwork.ozlabs.org/cover/968924/ > > and this one: > https://patchwork.kernel.org/patch/10583229/ Ya! It is the one. And it is discussed in bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=3D201181 Now, the revert patch is submitted https://lkml.org/lkml/2018/9/27/224 However, still thanks for your information. :) Regards, Jian-Hong Pan > ? > > > > > > > > > > Hopefully Jian-Hong can cook up a quirk table for the issue. > > > > Module r8169 gets nothing in the PCI BAR after system resumes which > > makes MSI-X fail on some ASUS laptops equipped with RTL8106e chip. > > https://www.spinics.net/lists/linux-pci/msg75598.html > > > > Actually, I am waiting for the patch "PCI: Reprogram bridge prefetch > > registers on resume" being merged. > > https://marc.info/?l=3Dlinux-pm&m=3D153680987814299&w=3D2 > > > > It resolves the drivers which get nothing in PCI BAR after system resum= es. > > > > After that, I can remove the falling back code of RTL8106e. > > > > Heiner, any comment? > > > > Regards, > > Jian-Hong Pan > > > > >> > > >>> It's because of commit bc976233a872 ("genirq/msi, x86/vector: Preve= nt > > >>> reservation mode for non maskable MSI") cleared the reservation mod= e, 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 a= fter > > >> resume to the wrong vector for whatever reason. The MSI vector canno= t be > > >> masked it seems in the device, but the driver should quiescen the de= vice > > >> to > > >> a point where it does not send interrupts. > > > > > > > > > Understood. > > > > > >> > > >>> If the device uses MSI-X instead of MSI, the issue doesn't happen b= ecause > > >>> of > > >>> reservation mode. > > >> > > >> > > >> Reservation mode has absolutely nothing to do with that. What preven= ts 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 dev= ice, > > >> which can't be fixed in BIOS or it's some half quiescened state whic= h is > > >> used when suspending and that's a pure driver issue. > > > > > > > > > Understood. > > > Thanks for all the info! > > > > > > Kai-Heng > > > > > >> > > >> Thanks, > > >> > > >> tglx > > > > > > > > > > > > > -- > With Best Regards, > Andy Shevchenko