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 38EB3C678D4 for ; Wed, 1 Mar 2023 22:40:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjCAWkX (ORCPT ); Wed, 1 Mar 2023 17:40:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbjCAWkV (ORCPT ); Wed, 1 Mar 2023 17:40:21 -0500 Received: from mail-il1-x132.google.com (mail-il1-x132.google.com [IPv6:2607:f8b0:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E364BE87 for ; Wed, 1 Mar 2023 14:40:20 -0800 (PST) Received: by mail-il1-x132.google.com with SMTP id i4so9377262ils.1 for ; Wed, 01 Mar 2023 14:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6P9KlPRdN24U2nZifrh47RGztoR1RSBxdmlJs02laf8=; b=d4/myq9vduzzfqGKUrqatHviSOUeyfGXpmI1wLVtbkU4eLFrheTw9Jay/aWkkAqcIQ lrVJ1ygEX23dReHZKRse+tyC0N0jsJPrhKg+ZPVMerXand+RXspxh0OSYNmmhGbSaoRU jDGcG8u2dBXbZc7ICYCAadTkuohw55nv0o54s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6P9KlPRdN24U2nZifrh47RGztoR1RSBxdmlJs02laf8=; b=PsYxeuSuPnQ3jprJmrqNb7m1XFDJckp3Wl0LgNl/Orv6qIngq3/mVn0jErlqA9fmBi BclihVHWfaM4qECIqrPHrr7+X3abwVW7JUEazIW4WZ30ZOweiNwERzeYcywGK8LaUzo0 CoY0UTZ114PJ7UOUbxKYZG2VMeLPt/8cUIjKa0+Oy8Er4IKka+8O7u+PQOSAdlaY1INy zN61CmFBxhKUdBKj2g0uhnX8LBfGwOLeoy6RsX83ZeepC9ZSJzF7axz9Ny1/mF5VbDOH +6B6cPGCH8m3vU8h3TdfF/j5QvqybRxzXQM8HbZa7aMyD7ArA5iFFPqHRfpHmjIyrEDZ 2Fww== X-Gm-Message-State: AO0yUKV3vIKs9Z86H7wbG8ntX/i/TdWfS+eL+yYB0ZkUdVTuQ3TnEtbD LUhqmshbhkZh7EjR6cnItFm+d8O2Bcdo1sAV X-Google-Smtp-Source: AK7set8ZBfzppogq2d1K7PcaVUG61+rUAkqjIPH1QI8C0Y44XbVN51D1Fxc1MNdA+1yQB+2bZ4rNPg== X-Received: by 2002:a05:6e02:1bcd:b0:316:f980:da93 with SMTP id x13-20020a056e021bcd00b00316f980da93mr7593034ilv.22.1677710419285; Wed, 01 Mar 2023 14:40:19 -0800 (PST) Received: from mail-io1-f53.google.com (mail-io1-f53.google.com. [209.85.166.53]) by smtp.gmail.com with ESMTPSA id i4-20020a02ca04000000b003c4f7dd7554sm4147642jak.5.2023.03.01.14.40.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Mar 2023 14:40:17 -0800 (PST) Received: by mail-io1-f53.google.com with SMTP id y140so6033837iof.6 for ; Wed, 01 Mar 2023 14:40:17 -0800 (PST) X-Received: by 2002:a5d:8919:0:b0:74a:f35:ca88 with SMTP id b25-20020a5d8919000000b0074a0f35ca88mr3594955ion.2.1677710416683; Wed, 01 Mar 2023 14:40:16 -0800 (PST) MIME-Version: 1.0 References: <20230127104054.895129-1-abel.vesa@linaro.org> <20230220171550.43a3h56gznfc3gec@ripper> In-Reply-To: <20230220171550.43a3h56gznfc3gec@ripper> From: Doug Anderson Date: Wed, 1 Mar 2023 14:40:04 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 1/2] PM: domains: Skip disabling unused domains if provider has sync_state To: Bjorn Andersson Cc: Saravana Kannan , Abel Vesa , Matthias Kaehlcke , "Rafael J . Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Greg Kroah-Hartman , Andy Gross , Konrad Dybcio , linux-pm@vger.kernel.org, Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org, Dmitry Baryshkov , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Feb 20, 2023 at 9:12=E2=80=AFAM Bjorn Andersson wrote: > > > I suspect that here we'll have to agree to disagree. IMO it's a > > non-goal to expect hardware to work for which there is no driver. So > > making the backlight work without a backlight driver isn't really > > something we should strive for. > > > > Without trying to make you agree ;) > > How can you differentiate between "the driver wasn't built" and "the > driver isn't yet available"? BTW, when I was responding to Saravana's series [1], I realized that you _can_ differentiate between these two cases, at least from a practical point of view. Specifically, when the "deferred_probe_timeout" expires then you should assume that "the driver wasn't built". Said another way, once the "deferred_probe_timeout" expires then you should assume that the driver won't be available in the future. While you still could try loading it, in general once that timeout has expired the kernel has made decisions (like making -EPROBE_DEFER non-retriable) that make it very awkward to load new drivers. Of course, one could say "hey, let's get rid of the deferred_probe_timeout". That might be a tough sell unless you can come up with an equivalent solution for those currently using this feature. [1] https://lore.kernel.org/r/CAD=3DFV=3DXQnLpD1P8sRBcizTMjCQyHTjaiNvjcPdgy= Zc5JCzvOtw@mail.gmail.com > Consider the case where I boot my laptop, I have some set of builtin > drivers, some set of drivers in the ramdisk and some set of drivers in > the root filesystem. > > In the event that something goes wrong mounting the rootfs, I will now > be in the ramdisk console. Given the current timer-based disabling of > regulators, I have ~25 seconds to solve my problem before the backlight > goes blank. I personally don't love the timeout. It feels like the kind of thing that userspace knows and should be able to tell the kernel. I know we don't like to put impositions on userspace, but userspace is pretty definitely involved in things like loading modules. It just makes sense (in my mind) for userspace to say when it's done and all modules for cold-plugged devices have been loaded... -Doug