Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1739241imm; Sun, 9 Sep 2018 08:13:25 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb4OPYq37Sq7u8GU99mcIN/h/GjquN0UHHOn4n1Rtwg/qzRMIOCdhVA+XG3uSRHa+Rft+Jw X-Received: by 2002:a62:6eca:: with SMTP id j193-v6mr18957563pfc.256.1536506005042; Sun, 09 Sep 2018 08:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536506005; cv=none; d=google.com; s=arc-20160816; b=va3H4dlu6mBXdcLA+k5ubtTiUbYbBIhfP8zjTFuvyUbfqESUUANZZgtRz3JG78CH+k HrurvwZp1N9acT74zVPCnZWNWXi6AWOfuhAGsapgHIM+KABjhes/eXfwEfoF9EJO7jc5 BlcdwRuSioUIE6P6xIiVGF7tmpmWBlW85zXqtSD2GbB0q7RSLbBP0hkGEiH6UTeCGNKN DXfa8x1jxMpZ6lxrwprWSxLSr+OCL28LhMpzpG0vswBPFOJT/yZDi5MVyqybc1MEcc0O Yle3/+i38bqgo67HxzWFe9d8n1qIJIq2M849vPXYk6YC54uOb9hUMzNyv9IkVrUNw9FK 9eqg== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=WvWYd/T9KvZhTRj97Tdm6uCx3pS9h4V2Sg/dxf/EyfA=; b=jsEToFZzcWVjM0Erh5Aqu0LA+GKNawC4UvTEoH/73vBpt6vMsJH4h89l7PichL6mIk 2mD3w+uhTX14uorqbJQwzoUetc9mpu3+6Dbz/o4sXsXszLappNCiBNLWW6oeqy/UeCV9 jIXj+ylUAwU2SjgQHYWdf2n9kTsVe18QxaRb3/QNmkSKVz2gWQyJ3sEwNhnczodlHB0G ArQ7mdyBTCEihj9bOFkpt8ZgdKAbA3QMsCfAZc8ZiGQNzxd+Tw6m0RQjGOLekhZEIFXt Y0Cjnj6Far+QZRi/4i5k8YNxoxhu7UMBP2STSQEi2yRXTx8eBeqDscCLP/z4OgR486MY VNrg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si14688642pgi.465.2018.09.09.08.12.28; Sun, 09 Sep 2018 08:13:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727675AbeIIT7G (ORCPT + 99 others); Sun, 9 Sep 2018 15:59:06 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49858 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbeIIT7G (ORCPT ); Sun, 9 Sep 2018 15:59:06 -0400 Received: from localhost (74-93-104-98-Washington.hfc.comcastbusiness.net [74.93.104.98]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id F0EB5142D4FA4; Sun, 9 Sep 2018 08:09:07 -0700 (PDT) Date: Sun, 09 Sep 2018 08:09:07 -0700 (PDT) Message-Id: <20180909.080907.992434701890231030.davem@davemloft.net> To: mail@maciej.szmigiero.name Cc: nic_swsd@realtek.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] r8169: inform about CLKRUN protocol issue when behind a CardBus bridge From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 09 Sep 2018 08:09:08 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Maciej S. Szmigiero" Date: Thu, 6 Sep 2018 18:10:53 +0200 > It turns out that at least some r8169 CardBus cards don't operate correctly > when CLKRUN protocol is enabled - the symptoms are recurring timeouts > during PHY reads / writes and a very high packet drop rate. > This is true of at least RTL8169sc/8110sc (XID 18000000) chip in > Sunrich C-160 CardBus NIC. > > Such behavior was observed on two separate laptops, the first one has > TI PCIxx12 CardBus bridge, while the second one has Ricoh RL5c476II. > > Setting CLKRUN_En bit in CONFIG 3 register via an EEPROM write didn't > improve things in either case (this is probably why it wasn't set by the > card manufacturer). > The only way to fix the issue was to disable the CLKRUN protocol either > in the CardBus bridge (only possible in the TI one) or in the southbridge. > > Since the problem takes some time to debug let's warn people that have > the suspect configuration (Conventional PCI r8169 NIC behind a CardBus > bridge) so they know what they can do if they encounter it. > > Signed-off-by: Maciej S. Szmigiero I don't know about this. Barking at the user in the kernel log about an obscure knob (which btw doesn't exist for all cardbus bridges without other patches you are posting elsewhere) is rarely effective. We should just disable clkrun automatically we know it causes problems. Sorry, I don't think this is that right approach and therefore I am not applying this.