Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp53834imm; Fri, 21 Sep 2018 10:11:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY9AahXhYYN8w0/Wy3EtnMPZeHxIvI4y0srtOYkypvOpvMSScS4cGeA+jbk4GuDxKb8Khka X-Received: by 2002:a63:ea43:: with SMTP id l3-v6mr3710523pgk.427.1537549863142; Fri, 21 Sep 2018 10:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537549863; cv=none; d=google.com; s=arc-20160816; b=ewjlEAe7swpgffyXA/iAbzApZGkl5S2Tx/iqMD8EolajummESi45nXa5BslwZ/ufLi Tv78XvCnRQkojjODwOPrDDPz4xxL/POuf7Gy6UfP7b38prqWvhct1VPwkYHFqF5kWLLr jjainElOSZ7S6eOdztM6KPtexhtQikLCch2P+QXFVqFH40QDKPj6csPtsnAqs1Hh+QJn r2uhuO47lSwKJoadBSwO7mqsfp5ReTB7g8ZZkNSTBWiK91gI3ygMt9iMbk5+iy1wPzk3 uYjR2dpdqHGCirwAZNpHSimVK9lezHyh8ISjZlJ71FfRxMi+u43RGyFTHh8Vc6HGOvMn S7Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6tfFrySvThHWLKdjkG9wKPwMAPFyHlwZwH97b01uqwo=; b=Jc3DQWa9YDHcHPAWSTSx5FEwu7VIZMmLl0U83qRqaArZf+Xzkb+fzwiKCdoJAHWmBH LU+FWqeyT9a8IxcI1NTUW+C6WTOuUMdsh5MpmCL4pO5Jjh4Se8Cuwzzr1gw+L8pz1Ylp eRFC1TT2ECEQxiaIUfRzxdYggGXSbZyQYovAX+QsAsCzc3o8S7fSCgsRbREZuErV+nkg h5Ooo7wHliT2Ppis+VmeJ2hKfQtpkUrMHV3S4meWj7K55Cz8cRaB5DZpD72Z9AydemNg DjSufWc+57mcB7uxwBNIHpH1E1oUclCLARZXtdU6hQcqQdPrrfY9dIjdB20DmNNGcWPa wZBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZqdA+kH2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m29-v6si28945816pgl.304.2018.09.21.10.10.45; Fri, 21 Sep 2018 10:11:03 -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=@gmail.com header.s=20161025 header.b=ZqdA+kH2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390688AbeIUW6C (ORCPT + 99 others); Fri, 21 Sep 2018 18:58:02 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:36707 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732114AbeIUW6C (ORCPT ); Fri, 21 Sep 2018 18:58:02 -0400 Received: by mail-qt1-f195.google.com with SMTP id t5-v6so2408236qtn.3; Fri, 21 Sep 2018 10:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6tfFrySvThHWLKdjkG9wKPwMAPFyHlwZwH97b01uqwo=; b=ZqdA+kH2VTjdjkc8pwgLA2NRNQDMsNUdOEfwnHIYRk9ppr3+ZlN4F2rdiGyakay78J NaBadKtPOMfLYe2k/M/7APZrvrHLnm82uxyTTBBDzJt/ujKCEb6dVerLbBcaiuRITV+A Gs4uo/3ozhGKeuejaHwLV/RpIXLsHDaRey+ZHURPr7eJjARzp7TtgjKmB/hpX/Iq6mqq 4WFfhGXaBSP9yTWIWIicSQc/4HRUx9Te31T/YLsbJ6d6K5efNBDQsunGtlRg1cQrhdLy aV2+91xTcr8Thxn4Qe2NGpmUk8HT/BB11GRUC3WAy82btIFRagr/mL5oboedagxBoY1q /anA== 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; bh=6tfFrySvThHWLKdjkG9wKPwMAPFyHlwZwH97b01uqwo=; b=OvsANHj0z3eN29YCn2zz4e8XvAmsoqj5hhPULG7iS2dqFkZWKP8Q3rtg5WIrnSDs3y KqIByG/agARdOlnTaotWzUKgH5fV77v3a28ftbhmRd1yycO/qk6O4wtM2/+5d1v1m8rH nv1UccvKHSt9fIGXRANi09XnzxfECm/1q9+hv5zhlKzladNXC11hCSa5dhE08GWblesH RqxCUMLdheRIgaQiVzVCy9xaIjok+7Y55D6SagknCYetZ5mHPAdE5xa41m1Pm9NH295t t/tcHvcncWc/PinsLovvvJyMMwMYzQAFZbPzG3kiV/ORJXOaVerl+owWKkHlDbEZE+qE SDUw== X-Gm-Message-State: APzg51CRnoiu2NA/X62V0nqWnh7fbmYHnAMmUQIEN3KlJJFnl92v4dhd yJc0ydYJUoDdAn8jUfvE0P3HeBPh0VmMW8i3ux8= X-Received: by 2002:ac8:16c5:: with SMTP id y5-v6mr33139471qtk.187.1537549693783; Fri, 21 Sep 2018 10:08:13 -0700 (PDT) MIME-Version: 1.0 References: <5D685053-1A33-4553-8678-A50C542466FD@canonical.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 21 Sep 2018 20:08:02 +0300 Message-ID: Subject: Re: Regression caused by commit 7bb05b85bc2d ("r8169: don't use MSI-X on RTL8106e") To: Jian-Hong Pan Cc: Kai-Heng Feng , Heiner Kallweit , Thomas Gleixner , netdev , Linux Kernel Mailing List , Linux Upstreaming Team , Daniel Drake , steved424@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 13, 2018 at 8:53 AM Jian-Hong Pan wrote: > > 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 the > >>> 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/ ? > > > > > > 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=linux-pm&m=153680987814299&w=2 > > It resolves the drivers which get nothing in PCI BAR after system resumes. > > 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: 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 > > > > > > -- With Best Regards, Andy Shevchenko