Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4327558imm; Mon, 20 Aug 2018 13:58:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxl1IizeFOzCexpIy5sAzCBVra5Mff4l8OYcB/zRNtwgIr5WYXZH8Oq+m0zJVksIqQshALC X-Received: by 2002:a63:b19:: with SMTP id 25-v6mr13656779pgl.301.1534798694574; Mon, 20 Aug 2018 13:58:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534798694; cv=none; d=google.com; s=arc-20160816; b=viWXLfzy0nffJ7/W/plcmQPVqgyCNd3t70Xygz/FEo7WcEIi2Cr2oERjByb5apYxQS 2ld9dJxr9WEW8vGq5tc/BohgHxNBGuVeVBwIiEgYtlgn4cDuD5vuk+q7AQu8jP92c0aZ SOP5JE/T+ubJ4jCBqs/wXPAKH1PM1KAifRzCaTNtIgNzKYkGYOICUy/zniuRJmKtXnWi WhZfdzxrKuLGz9n+PtsF7uwyNFc3oPkzFqZBH1/fOsL0VDLr1d96SDn+7rqnD9A/9ngz bFikDfI3RAWbWP/dCX3/BUWJluhgXvKmyOMkW56kZxakQEuuUPPgMjUehveKACOxj6hd uIqQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=fpL1x4Sv0XEvqor8FkWIK0sEPMli5bUn8QT1mq+FpgY=; b=D067S1HROq2WKIzuWRSsJUT3bu957crhF13NE6etm6IeWhtYhBgb9gW/b4xq3Z1vLu QrD+CTKJ+waa5rLI2rxOSFRpsqF7Ygz2ZeGrniBlVhiT3IL1v2KCP5fcLTIWMFzjcWCb Ss+Nj3wGy3MPBS8r/ZYngaH4vhXsirLOlX41GV6r6u4cl/VCVekP1YsTM/75gZ0dVnXY E8rVxR+6F9/KcB/ErAMR90vqN6+edp7994NbCGNnJt/sAwDys+bsCrWC8jB+gWi5vUIB OdfYBVANtaTz9aq65SyCKlzunLl5aOP2PPVvMMQXsQGdBCO//EQkZlLltbxtWXaQQNrT vH9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FC/E7ArI"; 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 e82-v6si11124516pfh.64.2018.08.20.13.57.59; Mon, 20 Aug 2018 13:58: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="FC/E7ArI"; 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 S1726795AbeHUANe (ORCPT + 99 others); Mon, 20 Aug 2018 20:13:34 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36748 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726768AbeHUANe (ORCPT ); Mon, 20 Aug 2018 20:13:34 -0400 Received: by mail-wm0-f68.google.com with SMTP id w24-v6so846143wmc.1; Mon, 20 Aug 2018 13:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fpL1x4Sv0XEvqor8FkWIK0sEPMli5bUn8QT1mq+FpgY=; b=FC/E7ArI579ekBgMmivEkYGH92ZV73Ql8lhkI2L0a7kfJ02t9TdEWuHu4E6mOmsuCa BsseYoJUd19N085gU/ZwfjeyLulRSW3yl6vPOOEcJczeycLZHWJUZAcKlkGozWdwtnSC ZYadgQUL2Y7XRPueb4U2+gQMwhVJkPEXHpFMjqHa97iwmHBdaIdItZvdpdD3YYbmIKgS vRkNFiSZvkW85b1Kb9E5KTRIlqpyGhg3MNKQmlLuR2ggQ2P7p0QQmbnDr/ug5212CpjO qrvwc3ccNUd8HnsGruR8MOtt6CeDYtHEek0tM37tq97che2phdlF46hE7wsW6Sc0AhA/ 2vSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fpL1x4Sv0XEvqor8FkWIK0sEPMli5bUn8QT1mq+FpgY=; b=IvyPH4GugCXgjwZY2tQD7SIohXH792yjT0Ii+fXITptBgKJAwzmkDno90tba8GW8qD 9PTOPh7ydGA8RmAschTRJTZaqgb+0zK1rpsf7vy9UPtC9zT9kP4Wrg761bT25hnPw9sa LDwlXb9VYH4eSiRxk0ldTwgqJkyEEAwj1eMuRUBOQBT0k3aSEdeiYfUP6Ymiqz4LUqLR T9cRN4s0CuBlcdQXCCA3qr+f+sq1fDU20shYW3LyKVuvTq7zvPbgASR6mAIk2/7EUM4m b9BPX8Iv3ldEmqXLlOmFF1tweMviIe1FL77m87XbFYvEV43rCuJOi3nncvAZZ8K2xuWb 6G7w== X-Gm-Message-State: AOUpUlH0Sn1kaTxaYZmtzRmiio/CmeNZgN5TY/t856wHOIbehAoVlivy 01Vkw3bFMHhXbHXxCsGnbt875T32 X-Received: by 2002:a1c:9f86:: with SMTP id i128-v6mr24653823wme.156.1534798583909; Mon, 20 Aug 2018 13:56:23 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:d600:ec45:ed0e:85c9:7076? (p200300EA8BD4D600EC45ED0E85C97076.dip0.t-ipconnect.de. [2003:ea:8bd4:d600:ec45:ed0e:85c9:7076]) by smtp.googlemail.com with ESMTPSA id e5-v6sm404076wmh.29.2018.08.20.13.56.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 13:56:23 -0700 (PDT) Subject: Re: [PATCH] r8169: don't use MSI-X on RTL8106e To: Florian Fainelli , David Miller Cc: jian-hong@endlessm.com, nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@endlessm.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> <4bf216ab-69ea-c09e-dcd8-f033a13627c0@gmail.com> From: Heiner Kallweit Message-ID: Date: Mon, 20 Aug 2018 22:56:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <4bf216ab-69ea-c09e-dcd8-f033a13627c0@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.08.2018 22:40, Florian Fainelli wrote: > On 08/16/2018 12:50 PM, 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. > > Stupid question, but should not we be asking the reporter to try again with: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bfdd19ad80f203f42f05fd32a31c678c9c524ef9 > > applied? The original report shows the Generic PHY being used, not the > Realtek PHY driver being used, is this possibly contributing to the problem? > I don't think it's related, because falling back to MSI fixes the issue for the reporter. And some chip versions report a generic Realtek PHY ID which isn't covered by any Realtek PHY driver. These chip versions seem to work fine with the generic PHY driver. So he may have Realtek PHY drivers enabled or not. But indeed, would be good to have this info to get the full picture. See also the mail I wrote few minutes ago, there it's described what we know about the reason of the MSI-X issue so far.