Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp568175ybg; Tue, 9 Jun 2020 07:33:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd0LYDsEHWjQnnW76rhineNqwbJBSbG/tIs4d5vgFFrFeUPp9jQb1OXj610AIlbOhqa7ie X-Received: by 2002:aa7:da4f:: with SMTP id w15mr26231485eds.384.1591713181050; Tue, 09 Jun 2020 07:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591713181; cv=none; d=google.com; s=arc-20160816; b=eKYKxwEQVeZBrlcK89ESBBFq4kv4vImG/a1f2V+THZcU/pXopFsrYPrF2HU2OdCMGp GUgWpmp2dto30reRM1j/RgAs7ryit5r93Cwx/8Ag5QaN+ll2wDWlllOg4X174zr07AqM 7XsfucVnvuCwDoKu+G4DrNZcae5atddf7+ny0dljg+0gC++7PNcm5g/EwlAkWd5bcXAn RBUADqJMiIV5z737qBccBeHMfSiPN+3X+1f/wQ3KNCQVL6Au+9RzD+y9KXsM+o8A5U/T 6ykf+1Po7pGh+YzCTDuiT3fyV7EzJOPVohl6xgc/l0HKO5nsqjLM/54VqQqN2hawxD4u Jpcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tLR3wcJZnzDBKg1SW+tlq89xU0CCySyvSszZ6dEss+0=; b=FWDU63Ax3p2jlRRECzE07vqHzcaytUDDNgCgVDg1M9c2hRYhd0KrcxcEtu6Z8An3iz /6BMr9SjU66XkqH+o4nMDU6hZnnwabrvdvOpf3RIQJ6mLRe8mITWQn5d1cIrucYddeXj xrdCfe8gSFk1/ZQ7OGIA2HKarcrkPFdzyFxMGOCde8LA/345oUcyB/LKJaI1FKQ+kUr2 cw2/zrpAFnIczYITi08D0O2/SnPLNKshOHBdfXuqjFmHAT/o0stUl32wSjW00lNcnZS5 5ZlM/ZUO1kQgACumW523jd9u3MSB+jum4MpOK/y/ST92nMcQ7naa1X8hjtQaoyJARSo4 5Ycw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h12si10581313eji.721.2020.06.09.07.32.36; Tue, 09 Jun 2020 07:33:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730388AbgFIOaN (ORCPT + 99 others); Tue, 9 Jun 2020 10:30:13 -0400 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:44818 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbgFIOaM (ORCPT ); Tue, 9 Jun 2020 10:30:12 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 737B73C0579; Tue, 9 Jun 2020 16:30:09 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KG_Oi9lxvAa8; Tue, 9 Jun 2020 16:30:04 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 6D0653C00BB; Tue, 9 Jun 2020 16:30:04 +0200 (CEST) Received: from lxhi-065.adit-jv.com (10.72.94.5) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 9 Jun 2020 16:30:03 +0200 Date: Tue, 9 Jun 2020 16:29:59 +0200 From: Eugeniu Rosca To: Laurent Pinchart CC: Jacopo Mondi , Eugeniu Rosca , Jacopo Mondi , , , , , , , , , , , , , , , , , , , , , Eugeniu Rosca Subject: Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM) Message-ID: <20200609142959.GA621@lxhi-065.adit-jv.com> References: <20191015104621.62514-1-jacopo+renesas@jmondi.org> <20200527071555.GA23912@lxhi-065.adit-jv.com> <20200605132900.on527xcggg6f6pil@uno.localdomain> <20200605134124.GA28734@lxhi-065.adit-jv.com> <20200605135315.xlph44pl7kvmt23a@uno.localdomain> <20200607024158.GD7339@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200607024158.GD7339@pendragon.ideasonboard.com> X-Originating-IP: [10.72.94.5] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On Sun, Jun 07, 2020 at 05:41:58AM +0300, Laurent Pinchart wrote: > Note that the CMM driver is controlled by the DU driver. As the DU > driver will reenable the display during resume, it will call > rcar_du_cmm_setup() at resume time, which will reprogram the CMM. There > should thus be no need for manual suspend/resume handling in the CMM as > far as I can tell, but we need to ensure that the CMM is suspended > before and resumed after the DU. I believe this could be implemented > using device links. Based on below quote [*] from Jacopo's commit [**], isn't the device link relationship already in place? [*] Quote from commit [**] Enforce the probe and suspend/resume ordering of DU and CMM by creating a stateless device link between the two. [**] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8de707aeb45241 ("drm: rcar-du: kms: Initialize CMM instances") -- Best regards, Eugeniu Rosca