Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3281770imu; Sun, 11 Nov 2018 11:27:20 -0800 (PST) X-Google-Smtp-Source: AJdET5fCkQpgHQW4taSh9PikFgrI0aQ57aRhQbLfA42UEd5B5pOqATSMFJTQ2oaej4GPBAPbnw5e X-Received: by 2002:a17:902:509:: with SMTP id 9-v6mr16962719plf.3.1541964440517; Sun, 11 Nov 2018 11:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541964440; cv=none; d=google.com; s=arc-20160816; b=WV2MXdLLdYJiGc3sH4WcfXrMBzr54IDIMsZhR72LWRXkWTodYK1APQM6jre7pbRDMd PVBPT/Zft+COd+f2KS5Pn5UlO0nb8JML3US9bNkeVy3hBWGFtQkUT3hAJJ6JKWu3mpZf kRDN0crjmrY+qlmE4+n0ENeyR9plSAFCx1Oc5ydrKXQX7rNM/PSYsjAXsolPSRfcBGiE czoc1g4+SEY0975SDlbeGFGMrnGu4wI7W5hs6/hFMK1QH+3GozrkSNz3A8EeOM6mX57L QcOWqBl//2m2K4IGjqDSZZZybVaENEtWUZZnfe4vSQMiOeH/nm7cjzGtdz5pyNcOqEao 3DoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VNVcpXC1KcAR9wHKvoKSzd7dBvbH8v1iAzZMW5vXzGY=; b=NYVIhZV8Q2NQEiXmTZNzj70RDRvWfXuZTUScx6zn/LGnVdVCHzJSZbkb9FNKRFTT9H JwerS53Q8X+ukQdQQd0OFkC7sfczgWuXkgpp/PdgMOFPh7NREoRrskuNDSM57lTEd3gK 6qsQOvjc2pvz4jgi9XqZwolmLQpXDlG1zbi1DqHukdzrmpMIZLjFpSko+hTVqgyjsCrp /w3fCUGfHmjvh64ZkZJRx3LuDqfBM5+5euSP5+zqxMmU38GX+oNk8s/eLRrFYlKRh5ny Mlz9oYEIXetl7IjbvK2XC8lyiNe3ERpnoOS9rhmQzHSJ4cTNBClxKE1dDTsA0yaPxzzO esGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=alIXFYdd; 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 191si14443523pgd.228.2018.11.11.11.27.04; Sun, 11 Nov 2018 11:27:20 -0800 (PST) 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=alIXFYdd; 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 S1726204AbeKLFQH (ORCPT + 99 others); Mon, 12 Nov 2018 00:16:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:44890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725725AbeKLFQH (ORCPT ); Mon, 12 Nov 2018 00:16:07 -0500 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 51BAD214DB for ; Sun, 11 Nov 2018 19:26:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541964403; bh=X10YEJkC8D15qhUL9Ww7BEAr07FvgseH/o7dM7LZqno=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=alIXFYdd/OQ2khf42mYQbOZpUE6xQKsZPSywZQUVZvTRczkw0TSKrVmjoT7Mw3CFp +mpKiHHKZ+7ePQhZf8UjbJ97o6f8TeYN1LsCDkoKWXvgYsc0UArgnD4/z06chzfneF lAa1bVXimjmlXikuGu/Bwx2m5fpiYwjd2wrT7Zi4= Received: by mail-wr1-f52.google.com with SMTP id o15-v6so7020672wrv.4 for ; Sun, 11 Nov 2018 11:26:43 -0800 (PST) X-Gm-Message-State: AGRZ1gKFK4ZhMBLdvhDpkP1vsk0iwPigfnYSa9cTMf393gjfCPvvEghM /AJIMCzv0MJM2NO2hQzlpqlQiWwKzs34EHhT2dwbzg== X-Received: by 2002:a5d:410d:: with SMTP id l13-v6mr14834309wrp.61.1541964401798; Sun, 11 Nov 2018 11:26:41 -0800 (PST) MIME-Version: 1.0 References: <20181110181101.24557-1-andriy.shevchenko@linux.intel.com> In-Reply-To: From: Rob Herring Date: Sun, 11 Nov 2018 13:26:30 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/5] drivercore: Revert "deferral race condition fix" To: Andy Shevchenko Cc: andriy.shevchenko@linux.intel.com, "Rafael J. Wysocki" , Greg Kroah-Hartman , Linux Kernel Mailing List , Hans de Goede , peter.ujfalusi@ti.com, a.hajda@samsung.com, Grant Likely Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 11, 2018 at 7:04 AM Andy Shevchenko wrote: > > I seems Grant's mail delivery bounces messages. I delibirately reduced > the Cc list for sake of ping Grant in case it would pass. That would be because he is not at Linaro anymore. Added his ARM account. > On Sat, Nov 10, 2018 at 8:12 PM Andy Shevchenko > wrote: > > > > Consider the following scenario. > > > > There are two independent devices coupled together by functional dependencies: > > - USB OTG (dwc3-pci) > > - extcon (tested with extcon-intel-mrfld, not yet in upstream) > > > > Each of the driver services a corresponding device is built as a module. In the > > Buildroot environment the modules are probed by alphabetical ordering of their > > modaliases. The latter comes to the case when USB OTG driver will be probed > > first followed by extcon one. > > > > So, if the platform anticipates extcon device to be appeared, in the above case > > we will get deferred probe of USB OTG, because of ordering. > > > > Now, a cherry on top of the cake, the deferred probing list contains > > the only two modules, i.e. USB OTG and extcon. Due to above circumstances, > > values in the local_trigger_count and deferred_trigger_count are not the same, > > and thus provokes deferred probe triggering again and again. > > > > ... > > [ 20.678332] platform dwc3.0.auto: Retrying from deferred list > > [ 20.694743] platform dwc3.0.auto: Driver dwc3 requests probe deferral > > [ 20.701254] platform dwc3.0.auto: Added to deferred list > > [ 20.706620] platform dwc3.0.auto: driver_deferred_probe_add_trigger 1 2 > > [ 20.713732] platform dwc3.0.auto: Retrying from deferred list > > [ 20.730035] platform dwc3.0.auto: Driver dwc3 requests probe deferral > > [ 20.736540] platform dwc3.0.auto: Added to deferred list > > [ 20.741889] platform dwc3.0.auto: driver_deferred_probe_add_trigger 3 4 > > [ 20.748991] platform dwc3.0.auto: Retrying from deferred list > > [ 20.765416] platform dwc3.0.auto: Driver dwc3 requests probe deferral > > [ 20.771914] platform dwc3.0.auto: Added to deferred list > > [ 20.777279] platform dwc3.0.auto: driver_deferred_probe_add_trigger 5 6 > > ... > > > > Deeper investigation shows the culprit commit 58b116bce136 > > ("drivercore: deferral race condition fix") which was dedicated to fix some > > other issue while bringing a regression. > > > > This reverts commit 58b116bce13612e5aa6fcd49ecbd4cf8bb59e835 for good until > > we will have better solution. How is behavior that's been there for 4.5 years a regression? Aren't we going to break Davinci that this commit was supposed to fix? What else could be relying on current behavior? Rob