Received: by 2002:ab2:3b09:0:b0:1ed:14ea:9113 with SMTP id b9csp51009lqc; Thu, 29 Feb 2024 10:02:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLgR6XuJMTEuS/mf4kt3rSCcJirsMVVfOf/CFtWOjaYF9GCpYUEjkYo6lOBcf6uCv1CL2AsBEK9dGczXwfNDLhuDv8+d/PzWAaDKxwHA== X-Google-Smtp-Source: AGHT+IEktc38/+DKCQNI72DG9hUAN6SXpq5jB3MFkKoTPDWLcKQ4FEQtb+8re2YJ7bKq+CnWhJJf X-Received: by 2002:a05:6402:2286:b0:565:e4b7:e784 with SMTP id cw6-20020a056402228600b00565e4b7e784mr1606267edb.40.1709229729827; Thu, 29 Feb 2024 10:02:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709229729; cv=pass; d=google.com; s=arc-20160816; b=g12Oo3VRL3rgd1BIWUzLT6GA0frexLgde9cxQ/uf4ySA0wGXw9fdr1t4msMVK5sWKa KJHJgWltxfz/RyS26upTACCugWEZSvKu4t0501vXkLF2Uee0LJIou8u9h8ld2KP26IFq FUUvTPogfqBW2zg9s4cQvjJzzdDVQ9dFXv8Kc+BfNv8RmI4GQK3306I9c5b6JCzoSekY S17XdB2+Oa+0NJQPx4GnfcCfW0JdSISz3AJZNqaU24uqEhDx5SDoMEBZEUJoQVbCuabA RpFu67xk8+tWGnQGyxMtmIf87Gp/DRLz3UAkgA6dmhQCpkRZH+2/n1691e1qq6NlEl9g dN5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=5gFW+EkEscuc84mlRSPQOlQC1BaAKNWbJPEDvF+/4tM=; fh=yL8uoyQPHoCGOHtgDEGn2EfACfTZblGRlgFmZ7zGJ0Q=; b=w8+irTUf5AfmxbvqWQ86JOpRZqeLsNxQpw27lHxfB4W8AimwRdQFIYeyT472+AzNts yNwy/xQciKNapLkrqPwf1/0eYe6Q/tCYLvYOjwEmlOHpMRlb1xODZBRP6ps+A1nBER9T K4N2SIxprb259wcv4xYXm8kW6cBMbSsGo/cpxpebXJOJz3E15+cndDXWVOrvqRVIV73Z 0YAKJA4otFaFgtQ68PTACKJq+CwcNP0BL8UjXTm3sOvdSTqq3mQdVFz2C1MXuKSMFWGL 1FFBMpSinpLrBW1Mb0X9l+dHZjgAOAYZpQuIWKHanjIcKXMDxNuu9+Ur5UM+fXs5r9Xg y5JA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-87228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y6-20020a50bb06000000b005658394f8c6si761194ede.675.2024.02.29.10.02.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 10:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-87228-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87228-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8E8581F251FF for ; Thu, 29 Feb 2024 18:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAC3478286; Thu, 29 Feb 2024 18:01:53 +0000 (UTC) Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4B3C2E410; Thu, 29 Feb 2024 18:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709229713; cv=none; b=hIZya39f9v2mIRmXB/NQd7BxvRAgYgKnY8FobrlUf6ykaWykOUJ7R+vuko9H+8hyLj4YMH/5A+pl7b59Fsh6qNecdlDzMyV/RpAcKf0eTYflAEnAxKvYmkaBKjQmz3YouIrohR3Hun4uuMEenyxyfJeN1sOJj6J7bFhCc99IgI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709229713; c=relaxed/simple; bh=5gFW+EkEscuc84mlRSPQOlQC1BaAKNWbJPEDvF+/4tM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uoWzzGE95fgram9XJqRgGi9z0tdbqBgs/R9fj4ir06G4rIUEeKLbpr/xeXaS6cTg/QcjHWyIgzC5TKc7M5V7i6t7ZoeDiU6+NPtudE2ahaNwT+skfLPFOIL/eMt6uMf9aCqNNyg1+tv3KfHaQQyQLXIkSIYeT6Nue0h69dpnVcA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-6e4aa4877a9so105490a34.0; Thu, 29 Feb 2024 10:01:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709229710; x=1709834510; 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=5gFW+EkEscuc84mlRSPQOlQC1BaAKNWbJPEDvF+/4tM=; b=TvvY4Sb4+I6HbgKZkauJWZv0+AP+IK6FZYdoORmCINfQu47Va5lZGIgQ0YVFI9YndA T9jQt+irKin/n9cNNSQdHmfGXXXPgc42pKG57wx8k7EQMJ9fZVV4SBKPYxxv9yEpUEQS cMWtk71lPiIiUNbEwoWYdU6AS8urVpK/a77XLQGi9EHkD7D9LWorqCLlQVTW3jewG2WG ecaDBUHUVJ2QYqdUULrUnpOiuNv0i0XqD3DpHTjEZAJJTn9v++npo/x05QE+TT4zJ1ZJ iM3ZyI/WLsv3f8uP3ekCdfzH2CrAq/pp/FuF42Y90T67cDev5hsCAu3UE8lWqQufmd0J wMKw== X-Forwarded-Encrypted: i=1; AJvYcCVT/JfuH9ugSwkqV9kRWA1QrUqq7h7VUZZrBRgxUq6rYgT1pXCxPohuGVwthwL1UAqrvRQDYXQmIjoi4N7i5vfMQGR6F7b37MLJ/T4TG+5zQn4Mzrfdb0W6CSQT1maFrPeHFokGefyRkUFrB4W+NdJX7NbowyZYm19Kne+tC0JmQBItoeT0Edih2oZLoR3WifCdo1mlKrxWsR8vTnLDheU= X-Gm-Message-State: AOJu0Yz30MUAmjTzaKbXng5mp46UNrM4isuOU4qmpEduj+L5KSCi/I55 pXEJleK+K5eM5C9nPtxvHih8ZzITSPqucMt39qhD25mPXdwILrVyeibemJ1126KE9uZug/F/ppv +pncE3oH2cTxDeU5JLNMMe/7aQvI= X-Received: by 2002:a4a:301:0:b0:5a0:396d:2489 with SMTP id 1-20020a4a0301000000b005a0396d2489mr2765066ooi.1.1709229709567; Thu, 29 Feb 2024 10:01:49 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221233026.2915061-1-saravanak@google.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 29 Feb 2024 19:01:38 +0100 Message-ID: Subject: Re: [PATCH v3 0/4] Add post-init-providers binding to improve suspend/resume stability To: Saravana Kannan Cc: Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ard Biesheuvel , Frank Rowand , Daniel Scally , Heikki Krogerus , Sakari Ailus , Len Brown , kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024 at 1:03=E2=80=AFAM Saravana Kannan wrote: > > On Thu, Feb 22, 2024 at 5:34=E2=80=AFAM Andy Shevchenko > wrote: > > > > On Wed, Feb 21, 2024 at 03:30:20PM -0800, Saravana Kannan wrote: > > > This patch series adds a "post-init-providers" device tree binding th= at > > > can be used to break dependency cycles in device tree and enforce a m= ore > > > determinstic probe/suspend/resume order. This will also improve the > > > stability of global async probing and async suspend/resume and allow = us > > > to enable them more easily. Yet another step away from playing initca= ll > > > chicken with probing and step towards fully async probing and > > > suspend/resume. > > > > Do you know what is the state of affairs in ACPI? Is there any (similar= ) > > issue even possible? > > I'm not very familiar with ACPI, but I wouldn't be surprised if ACPI > devices have cyclic dependencies. But then ACPI on a PC doesn't > typically have as many devices/drivers and ACPI might be hiding the > dependencies from the kernel. So maybe the possibility of a cycle > visible to the kernel might be low. > > I would really like to see fw_devlink extended to ACPI (it's written > in a way to make that possible), but don't have enough knowledge to do > it. This might happen one day, for example in the _DEP handling context (for now it is very limited, but I'm not actually sure how much more capable it needs to be). I don't think that ACPI will ever need device links between parents and children, though. On a related note, RISC-V people seem to want to use it on ACPI systems for interrupt controller dependency tracking.