Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1790696ybb; Thu, 26 Mar 2020 07:25:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv44GxmYYPjjVEuuQ8las8M8rMryHBtYDWs8ixVzzB6LOJEPS6xMxyTKHqc7HM6Heu5Ql1v X-Received: by 2002:a9d:7747:: with SMTP id t7mr5976413otl.96.1585232709641; Thu, 26 Mar 2020 07:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585232709; cv=none; d=google.com; s=arc-20160816; b=xX54/Kwx/RSYtyY/ob5otcerCeBs6IDt7IwbWCDjeIvsWrVUrWx3yPGwKQqDHLEzGp /GZnsP6mNyNfn8e2r9jfRqYwwXROG8ypVuJ0kbOzhU/JC6GEqoOCNQYOYnVedd1koV3t xAcvbr0T1+kFvOgCzI6JARnf2pZ4BI7eR96wqkpkRGTTKftJhZ2V1fx7kqumo03J8Wih sMvWfAyhmmP570xdW2nwzE5h4/JcM5C2g5hROhWyciDnr11g6ck5vCT5ALJBfaXRuAeb 7JMW6EKqejSTtp+VwiqYjuA3UtIyIq0pbAOPfo6EL+FVrbB6GgKZXHZAoPjHQL1H1TH5 a7UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=Alq5jKUiyibPKfDVztreUi7xHdlsdGIRTIT+AV80/ls=; b=oDCX1pziNJI/XjIthdl5IYGXR/6EWcqrtF2fAoHoo+RtmNU+YY9aUC4SLFZKukrmXb 6tE8HCoAS5YhupRyrVgcW6/HQPZsXKOeBxGiiXSLph63eKY9qka07lBPbNoj7z7+18fn QrAXy1DDTAWOlY/nTC35ULjOCpW/4TXPFglA/6SdtrzM5XrxV7y+3qpO2ANp27myPXQb DoO47MTNcUBrjvXbskg2pIWbSk1GA4inoq1vmC7+Yb4dhOCBvSfUVqtZGntKl4X+5S7P JBxCOgnBAZIsyhj5prTqBjhPCDIMEepJKLcR0qpyjjVcMPNt4MOIpc4fsi7iInTYbRDS ctGw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si1100544oig.212.2020.03.26.07.24.56; Thu, 26 Mar 2020 07:25:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbgCZOXw (ORCPT + 99 others); Thu, 26 Mar 2020 10:23:52 -0400 Received: from mga17.intel.com ([192.55.52.151]:20673 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727869AbgCZOXw (ORCPT ); Thu, 26 Mar 2020 10:23:52 -0400 IronPort-SDR: V0OKcmgpwP/pm9ybSEtswjlXlaHLMcFnWJ9I/r1d98RDV0rInFcCc8x8pwCSd7tSOVNYBBbVHe LJ1LkCADYgdQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2020 07:23:52 -0700 IronPort-SDR: DimBgg8sUOWeCGBgqUZj9R2clPDodmlm9rZiNKMrLL1pxw1LeFXbUuozHmbhQTCfV3CMJHQYBN K49CAPxNv3hw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,308,1580803200"; d="scan'208";a="265882920" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga002.jf.intel.com with ESMTP; 26 Mar 2020 07:23:48 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jHTQE-00D99J-Dv; Thu, 26 Mar 2020 16:23:50 +0200 Date: Thu, 26 Mar 2020 16:23:50 +0200 From: Andy Shevchenko To: Grant Likely Cc: Peter Ujfalusi , "Rafael J. Wysocki" , Saravana Kannan , Andrzej Hajda , Artem Bityutskiy , Felipe Balbi , Mark Brown , Ferry Toth , Greg Kroah-Hartman , LKML , Linux PM , Android Kernel Team , nd Subject: Re: [PATCH v3] driver core: Break infinite loop when deferred probe can't be satisfied Message-ID: <20200326142350.GW1922688@smile.fi.intel.com> References: <20200324175719.62496-1-andriy.shevchenko@linux.intel.com> <20200325032901.29551-1-saravanak@google.com> <20200325125120.GX1922688@smile.fi.intel.com> <20200326120323.GR1922688@smile.fi.intel.com> <6c04af00-adc8-6be2-b7fd-b4a875524563@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c04af00-adc8-6be2-b7fd-b4a875524563@arm.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 01:45:50PM +0000, Grant Likely wrote: > On 26/03/2020 12:03, Andy Shevchenko wrote: > > On Thu, Mar 26, 2020 at 11:45:18AM +0200, Peter Ujfalusi wrote: > > > On 26/03/2020 10.39, Rafael J. Wysocki wrote: > > > > On Wed, Mar 25, 2020 at 11:09 PM Saravana Kannan wrote: > > > > > On Wed, Mar 25, 2020 at 5:51 AM Andy Shevchenko > > > > > wrote: > > > > ... > > > > > > OK, so the situation right now is that commit 58b116bce136 has > > > > introduced a regression and so it needs to be fixed or reverted. The > > > > cases that were previously broken and were unbroken by that commit > > > > don't matter here, so you cannot argue that they would be "broken". > > > > > > commit 58b116bce136 is from 2014 and the whole ULPI support for dwc3 > > > came in a year later. > > > While I agree that 58b116bce136 fail to handle came a year later, but > > > technically it did not introduced a regression. > > > > > > The revert on the other hand is going to introduce a regression as > > > things were working fine since 2014. Not sure why the dwc3 issue got > > > this long to be noticed as the 58b116bce136 was already in kernel when > > > the ULPI support was added... > > > > I dare to say that is luck based on people's laziness to figure out the root > > cause. As I pointed out in email to Saravana the issue is not limited to USB > > case and, if my memory doesn't trick me out, I suffered from it approximately > > in ~2014-2015 with pin control tables. > > I've not been involved in this for a very long time, but from our past > conversations and the description that is given here I still feel that this > problem is a design bug on the dwc3 driver dependencies rather than a > failure with driver core. dwc3 is doing something rather convoluted and it > would be worth reevaluating how probe failures are unwound on that > particular driver stack. I disagree. Have you chance to look into another example I gave to Saravana? The unbalanced increment is fragile per se, because you can't guarantee that it will be no unsynchronization between probed successfully (unrelated!) and deferred drivers. -- With Best Regards, Andy Shevchenko