Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4213319imm; Mon, 20 Aug 2018 11:46:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy6Hb5vF8cxWv8pO9HrTs7wdUNX5zt1z1KZcTK96WBqxQH+L+I67fVeK0F87yP5tW1HC/vv X-Received: by 2002:a62:938e:: with SMTP id r14-v6mr25448899pfk.55.1534790763286; Mon, 20 Aug 2018 11:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534790763; cv=none; d=google.com; s=arc-20160816; b=ikvpSsuhGb914xiLEKHgjQSttNESrTnBjBju3w1K4/FR56rF0fLHv/VFmgicopwFig Re064f2rl/0FIVwGC7S0OfvYcIWlCLwH2KL47CZHWuILecIzS0uw2aH71hVm0AD67u9r AIvtpMIaC+RfdVMzzm6ylD07x+jlc6lrndrJjuKomv7LwGkr3dCAMBJGXHeSLO5Gn//K /jkl0l7W2cv9sbGoHlN0wH2Yn0mNLiOCHRfMn3E38tljWH3v+w2ECi2uPaJWkJI6GEgZ 3C6+W1aKp+EMRQQlc1jUIyP5IFv4evDM7IOJ3wLcmOeRWr7LQjD7tIck5oFTISgEF4/N MqLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=DGrN0EpzhEtn7zLV2tcwI5v88zC4zbHzBZAlxTAqjdQ=; b=Uz0hBnhXEko1gG3bWrIxckQbID5N1t3agVabPxzICSLUvUAETEgyJU9dxkjd0XY1xN ZVb06DKzxxkE4l9wW9xd5ry8HCvs7q5ivA3OSoTrwa+NfO8CjCPXIVzaW+MqMItqtumF tSj3F/c9TFMDKlcLiX3/L042qpboHC/w56Ry319b14agHqCir30ETtHOtCmp01KgwIqF A9zZEeEkCt+wXkpC1fy+Dsgq4SkgxBErBkGx1SsepqvS69tE/jMNZzAzEsBHhKbFxxlJ Pf+ly5+4lly2xoqsB2YZgfl9laOSC0AdIyNyT2Q2O40+TjRXAStWyurO0dGIE1dyypoN 3RgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tv28Qq8t; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5-v6si10432711plt.342.2018.08.20.11.45.47; Mon, 20 Aug 2018 11:46: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=@kernel.org header.s=default header.b=tv28Qq8t; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbeHTWB1 (ORCPT + 99 others); Mon, 20 Aug 2018 18:01:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:55140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbeHTWB0 (ORCPT ); Mon, 20 Aug 2018 18:01:26 -0400 Received: from localhost (unknown [69.71.4.100]) (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 DF82320676; Mon, 20 Aug 2018 18:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534790680; bh=Rm3TKpQFxsT/HbOwq3uS2QgQkcVBbdDJElBPH+s68kM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tv28Qq8tjta/fYDtwrsHWiA5kjytx40Wvs5QRzF78OW7GPhIWNzjouE45t9OSjI2O q57VKLYmn14qDCZNFlFHqCmgVpVzsYc6u31M1VpsJUHnvwYIlef0o2qr3yq/Widkyh MMQSN4pP8TPfrnrcQO/dLnfBhk1HzMKe1IL+Znbw= Date: Mon, 20 Aug 2018 13:44:38 -0500 From: Bjorn Helgaas To: Heiner Kallweit Cc: David Miller , jian-hong@endlessm.com, nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@endlessm.com, linux-pci@vger.kernel.org, Marc Zyngier , Thomas Gleixner , Christoph Hellwig Subject: Re: [PATCH] r8169: don't use MSI-X on RTL8106e Message-ID: <20180820184438.GA154536@bhelgaas-glaptop.roam.corp.google.com> References: <20180815062110.16155-1-jian-hong@endlessm.com> <20180816.122131.604270853620318143.davem@davemloft.net> <458efbf9-5971-653a-e7cd-8c56ba055648@gmail.com> <20180816.123958.750435252621963789.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+cc Marc, Thomas, Christoph, linux-pci) (beginning of thread at [1]) On Thu, Aug 16, 2018 at 09:50:48PM +0200, Heiner Kallweit wrote: > On 16.08.2018 21:39, David Miller wrote: > > From: Heiner Kallweit > > Date: Thu, 16 Aug 2018 21:37:31 +0200 > > > >> On 16.08.2018 21:21, David Miller wrote: > >>> From: > >>> Date: Wed, 15 Aug 2018 14:21:10 +0800 > >>> > >>>> Found the ethernet network on ASUS X441UAR doesn't come back on resume > >>>> from suspend when using MSI-X. The chip is RTL8106e - version 39. > >>> > >>> Heiner, please take a look at this. > >>> > >>> You recently disabled MSI-X on RTL8168g for similar reasons. > >>> > >>> Now that we've seen two chips like this, maybe there is some other > >>> problem afoot. > >>> > >> Thanks for the hint. I saw it already and just contacted Realtek > >> whether they are aware of any MSI-X issues with particular chip > >> versions. With the chip versions I have access to MSI-X works fine. > >> > >> There's also the theoretical option that the issues are caused by > >> broken BIOS's. But so far only chip versions have been reported > >> which are very similar, at least with regard to version number > >> (2x VER_40, 1x VER_39). So they may share some buggy component. > >> > >> Let's see whether Realtek can provide some hint. > >> If more chip versions are reported having problems with MSI-X, > >> then we could switch to a whitelist or disable MSI-X in general. > > > > It could be that we need to reprogram some register(s) on resume, > > which normally might not be needed, and that is what is causing the > > problem with some chips. > > > Indeed. That's what I'm checking with Realtek. > In the register list in the r8169 driver there's one entry which > seems to indicate that there are MSI-X specific settings. > However this register isn't used, and the r8168 vendor driver > uses only MSI. And there are no public datasheets. Do we have any information about these chip versions in other systems? Or other devices using MSI-X in the same ASUS system? It seems possible that there's some PCI core or suspend/resume issue with MSI-X and this patch just avoids it without fixing the root cause. It might be useful to have a kernel.org bugzilla with the complete dmesg, "sudo lspci -vv" output, and /proc/interrupts contents archived for future reference. [1] https://lkml.kernel.org/r/20180815062110.16155-1-jian-hong@endlessm.com