Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 002C3C433F5 for ; Thu, 9 Dec 2021 03:11:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbhLIDPA (ORCPT ); Wed, 8 Dec 2021 22:15:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbhLIDO7 (ORCPT ); Wed, 8 Dec 2021 22:14:59 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D880DC0617A1 for ; Wed, 8 Dec 2021 19:11:25 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id n12so9498620lfe.1 for ; Wed, 08 Dec 2021 19:11:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c+zQKGqZr8HXn102ZG5ijRoDp7kpXqQXnN4PdMGmbcg=; b=jYx3n3tG3V6uw2IXXiIyTTwc4IaIMPdJFd/JgAw0N80PfaQM1Oy+Oef/S7yoz7CaV0 1o3rsj6avNqKZ46XIrNvYHADvRgO0udYMlcMXtgV7PO8wEGHgDq8dvh9hcJeosAy1NOt 6Ubry5ylivFKI0KcuaJZPXJ7hTkJbpoZe9ATgb5Q9Cim4qxXGNmIbTRilkKBg9bSxVQK J8AJY9RbGy63vzQCDr5uVUGX7AxIUhBrKayqUdPM5ObNm0dpNvmaP95ReAtSoJcNiZAX NAj5+urPVmDogqR+DOAagoN4BqF8fouxUE8n/jd3RMhBFDthm86uwR2BFKoxb+8/HDNK x5XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c+zQKGqZr8HXn102ZG5ijRoDp7kpXqQXnN4PdMGmbcg=; b=nQL6Xkua7jcEf5+w2e1xbhoSjhnuLL6II/WxrM3OqwrEjNOa1gYS3nx61jQzFvON1m BMh0/OqmEvrd/o8kKc/7dIJm4JSqzDguRyB++lE+nUV59E4+Nwp3fYlZyEpQ/gEEyMM4 MKUmjyONmTvx125gayj4VzeX7//tFxjmZr94pWguX8pk4EgHMci5+HijzPNn6Y3VU2I8 0N3H40uoF8ULR/9tyuViQRmch/AN0F1UBiYPrJk57tRv4/gtaXacuNpynE6j0eKSDaei 3tN+jpRrh0xKjSGAJ/9f3iYbRhymg1V1I4QvBJUHgfEJ8f5e6nVi2LXK5j1SY0wUA438 JvRg== X-Gm-Message-State: AOAM5307tXdseIF2LgfC8BmsQmiDkVX+3m7NyAP8OwRkm3Ws4r0/2yGh Dz87MQcpfpuEHnSRLvyLQBmpON0ToghM1HfGPJoE4Q== X-Google-Smtp-Source: ABdhPJxMfltZiIgin1roB5XH9E4O9k9cjPWiXPuBF9cRXFGcERVh6IPLOCF1yrPcWr9jbe9xAOcI0Xr+CQaR9dW37eE= X-Received: by 2002:a19:760d:: with SMTP id c13mr3280695lff.661.1639019484116; Wed, 08 Dec 2021 19:11:24 -0800 (PST) MIME-Version: 1.0 References: <20211029214833.2615274-1-tadeusz.struk@linaro.org> In-Reply-To: From: John Stultz Date: Wed, 8 Dec 2021 19:11:13 -0800 Message-ID: Subject: Re: [PATCH v2] media: venus: Synchronize probe() between venus_core and enc/dec To: Bjorn Andersson , Stanimir Varbanov Cc: Tadeusz Struk , Andy Gross , Mauro Carvalho Chehab , Lee Jones , Amit Pundir , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 30, 2021 at 8:49 PM John Stultz wrote: > On Tue, Nov 23, 2021 at 7:29 PM Bjorn Andersson > wrote: > > Rather than trying to synchronize away the side effects of > > of_platform_populate() I think we should stop using it. > > > > I had the very same problem in the qcom_wcnss remoteproc driver and > > in below change I got rid of that by manually initializing a struct > > device for the child node. In the event that the child probe defer I > > would just probe defer the parent as well. > > > > 1fcef985c8bd ("remoteproc: qcom: wcnss: Fix race with iris probe") > > > > The change might look a little bit messy, but the end result it much > > cleaner than relying on various locks etc. > > > > > > But in the qcom_wcnss case I have a child _device_ because I need > > something to do e.g. regulator_get() on. I fail to see why venc and vdec > > are devices in the first place. > > I definitely agree with Bjorn that all this asynchronous component > probing feels overly complicated, and a rework is probably the better > solution. > > Though my only question is: is someone planning to do this rework? > > In the meantime, Tadeusz' patch does resolve a *very* frequent boot > crash seen when the venus driver is enabled. > So Stanimir, should we consider merging this as a stop gap until the > larger probe rework is done? Stanimir? Does the above sound reasonable? thanks -john