Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp422159pxy; Thu, 22 Apr 2021 05:23:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynvihPwJXx55Xq29kTzeGo1l+DnICteBjodplhAQOpVhUhrXYMb82l+H+mPSTB26yAzewA X-Received: by 2002:a17:906:d795:: with SMTP id pj21mr3124317ejb.102.1619094218350; Thu, 22 Apr 2021 05:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619094218; cv=none; d=google.com; s=arc-20160816; b=iljKw+jyHsFajYQfepyg4waHfNd5VsW/6vlqhIX+e7hGw2z2njnXKl5igLJazJYJE8 QIgzKD/m78gscoLUbO09vSv1VdkFgdTLPbuY/I+ays2JQNd7rEvoYAl08NdsCy9zCqRn SUrd1fAskcJ11lMaM66iPLvf6m4BlT6fYvHxvBc34YyysS52XfNYPlhLkaD8GH3mP2ry /Xrqm1KY8As53sjPjVH1Tn53/dyUATt2Zcska8k44oQ54bE7z7BCW2o2vAjn2Ry3+i5g HiVV7sCYDqmutUxCjPLDZdKvXICEG5VJkr2EuWhqrd/rlQLjFHX7ufvMe9hJC6i2rQN0 P9dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=UrYnyGTCCxyN2/jKEP5GreCc5IAqvJnszjWMM5BM604=; b=Eq14INBV/9r3Z3IGNKavPKzbVDpq1W2mvihGGxQrkDugNLCAct5XGNkkHGOfq6Z+6O bM25B7X3opyvkpeTPKpPFdvGFUTr+oEXD9dKXkbb8/ePsVjPDcyBtpwF4f4xKIheDpfN kuVsi+7Sl1Jvx4mkGlp/jsP9RwB+Z67AyqFsDHcGzNZsXlCgT+QfD9QFagQ/Uz/rQ+qF Tze3M1zM94vDuhkdPQJ7H/0bR47U4pXmrVD/1/416o72nOTKneLNA2jJQnX9xdGNLhxY owM7PSA+YwhuB2TCtYBpykcZKfOlfM8BN/jbtEPA85UBtykeFsHT8D/N2XNIL4Yn1i7F KSzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cr16si2211226ejc.3.2021.04.22.05.23.14; Thu, 22 Apr 2021 05:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236176AbhDVMTs (ORCPT + 99 others); Thu, 22 Apr 2021 08:19:48 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:35546 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235232AbhDVMTp (ORCPT ); Thu, 22 Apr 2021 08:19:45 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lZYIM-000Uj3-4U; Thu, 22 Apr 2021 14:18:58 +0200 Date: Thu, 22 Apr 2021 14:18:58 +0200 From: Andrew Lunn To: Ilya Lipnitskiy Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Jakub Kicinski , Matthias Brugger , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next 05/14] net: ethernet: mtk_eth_soc: reduce MDIO bus access latency Message-ID: References: <20210422040914.47788-1-ilya.lipnitskiy@gmail.com> <20210422040914.47788-6-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210422040914.47788-6-ilya.lipnitskiy@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 09:09:05PM -0700, Ilya Lipnitskiy wrote: > From: Felix Fietkau > > usleep_range often ends up sleeping much longer than the 10-20us provided > as a range here. This causes significant latency in mdio bus acceses, I found the same with the FEC driver, and make the same change. > Signed-off-by: Felix Fietkau > [Ilya: use readx_poll_timeout_atomic instead of cond_resched] > Signed-off-by: Ilya Lipnitskiy Reviewed-by: Andrew Lunn Andrew