Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3404635pxj; Tue, 11 May 2021 03:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv2juU4xUuvo6WnGuMSdNCVfDgMDN0FZAHMz9G489cMxakdLY/WaoTCBqLb73TxVa/RfBj X-Received: by 2002:a05:6e02:1c4c:: with SMTP id d12mr25166846ilg.104.1620730466958; Tue, 11 May 2021 03:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620730466; cv=none; d=google.com; s=arc-20160816; b=iIvKWaMa3zQQfkoiAuinEBh/vx0W7JqAI2/iDzhR7PVYxvY/X3ZQVXAqQnOjZMoXJW /edbUuYXEiK6x/UgtB/D7I52yHlNQ8QJ5G30bJgWC3rSEJV1n29tUojYCNnByeLupn/a oq60TNWoyjW0UPiIKac9YrBADV0nGNyFQXOK304M1RqF3O7OntxcLZsKfo6agZNCsQ7O fviGGhO4J5xEYNnGhrEv307Q5Ga36nratH107lyNrvfy0Adg8GsEk4smbSFvP4VEPfsm ApN0lMhWf0hx4u8mc0geiFHdzy6KufUE5yU8sDy/JvpKUxSG2FXtHi5wMovyhcRxBSPF UTCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=LJ6/iEx981OsThdHsoNHle4saMckTPoLWOXMh4tuyVg=; b=OXPpuHX5giEwHkwR23onA7BuYprTyu5rB/zLPA7r7Y8uD9UaSngQ+WsNZVL6BWA6Ej iP7n0lhJ5hr13pAhXF6NfgOtXsh6hIQeIjFzaSOJs0ggcfUXnJ8LQWKZ6RSGbh7Docga dn/L5VlHGrFFZEYPnyEMKi9iJe6OzOuQB7IQeJhzxeFF9rfZNmhOFk/0og9chrgfJTY2 2vtgXgCtXJfZ2gbDfdJOFToU01n77vEjHE1fi1bo+orZ+/8jJA2Y+eQDeHmbxYikTCHR gCq6CLuLJ8GGj1T+sEYuXOkIRv+VEt8FuzlVPlBALTXndN5GHN7dqEeKWgPiN1dYNtQf gfUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l15si14974203jaj.81.2021.05.11.03.54.14; Tue, 11 May 2021 03:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231516AbhEKKxa (ORCPT + 99 others); Tue, 11 May 2021 06:53:30 -0400 Received: from mail-oi1-f171.google.com ([209.85.167.171]:38649 "EHLO mail-oi1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231514AbhEKKxY (ORCPT ); Tue, 11 May 2021 06:53:24 -0400 Received: by mail-oi1-f171.google.com with SMTP id z3so17406210oib.5 for ; Tue, 11 May 2021 03:52:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LJ6/iEx981OsThdHsoNHle4saMckTPoLWOXMh4tuyVg=; b=l3QQiy4IrhBEfgn6eqEUUN24O9NK0mW65P9gaLYfMRlwBbO9wCL43jFqrH7BOGmn+a PoUp/YTK87Zy+/rZ+B7oOciddMr10V6y738X3eEpFpN1ahI+maTEjDcwAru5IQ38cv1y ln8gA9z+OrdaFj8XlmtEtrmsN4Yt9a557eyFy5WeXA1jvLgpgphJEsWVWlpEqaLMewf5 byYImgcOEwYY4x11N0Uce3Mxu3Ezzfh2oYE3VAt4VY/sfz7YGiEwMPOUrtGXgVTBCFna PUJzSPLKlfRDuXpuL8vlYQcmkl0vzNqmZFXJrUBim3VTPcpPcVTTR0gxRQO3URh72JjL Ixjw== X-Gm-Message-State: AOAM532ZrwCdl2WbRVKXn8rdnfzqvqReULchn58QnRURtuHnF3cN55/9 hCl8ksEqywkmP7RLiyuE0YYp2mjlGuosiOAuPcQ= X-Received: by 2002:aca:1815:: with SMTP id h21mr2513827oih.69.1620730336930; Tue, 11 May 2021 03:52:16 -0700 (PDT) MIME-Version: 1.0 References: <20210508074118.1621729-1-swboyd@chromium.org> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 11 May 2021 12:52:06 +0200 Message-ID: Subject: Re: [PATCH] component: Move host device to end of device lists on binding To: Stephen Boyd Cc: Daniel Vetter , Greg Kroah-Hartman , Linux Kernel Mailing List , "Rafael J. Wysocki" , Russell King , Rob Clark , dri-devel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 9:08 PM Stephen Boyd wrote: [cut] > > > > > > I will try it, but then I wonder about things like system wide > > > suspend/resume too. The drm encoder chain would need to reimplement the > > > logic for system wide suspend/resume so that any PM ops attached to the > > > msm device run in the correct order. Right now the bridge PM ops will > > > run, the i2c bus PM ops will run, and then the msm PM ops will run. > > > After this change, the msm PM ops will run, the bridge PM ops will run, > > > and then the i2c bus PM ops will run. It feels like that could be a > > > problem if we're suspending the DSI encoder while the bridge is still > > > active. > > > > Yup suspend/resume has the exact same problem as shutdown. > > I think suspend/resume has the exact opposite problem. At least I think > the correct order is to suspend the bridge, then the encoder, i.e. DSI, > like is happening today. It looks like drm_atomic_helper_shutdown() > operates from the top down when we want bottom up? I admit I have no > idea what is supposed to happen here. Why would the system-wide suspend ordering be different from the shutdown ordering?