Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2131792ybg; Fri, 5 Jun 2020 06:28:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSxxXTHaVoKUkXe0EH2fCjiHB0HH96FrNilVeULvILax77xbCvffrVnUp3x8cJlkH96q7J X-Received: by 2002:a50:9e49:: with SMTP id z67mr9390420ede.236.1591363694148; Fri, 05 Jun 2020 06:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591363694; cv=none; d=google.com; s=arc-20160816; b=SlUksaZ+5GvFruONJ+eukERjWRyxOHmluGqZi1tsim0THkAY76tYSXdnS5kAbcSJXB DHA9Aul9u891+qkxvTmbroMtKm3jmITZODMr/XBsBRqzVIktCZDb7xQUjR751nQINuqH C6ZaoYyQa6t1aRzslfFoy0FPaosqnEqShSxor6xYFYsFcfUGKxZJZU7i3I0EkonCO/hk A6ue/ATjf/w1BDQplF3knMEYBEGM5Prtcd5NFCrGS2W2oDS2x5HFo4Y0Fdy4QLrAr7V6 JH4ZhfQWi7OzVNVdKg5Sk/KSXntgjd2jDdjLXFLualRmL3giKgC2yDwim1T/BPPxVifO mzng== 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=ZHjKVQFIvbn3RiuvMyXxI8geLAhIoa3KiMqc6QlZcJg=; b=IlPA3hSmBIvhgt+CIGRgTHw2+ic3TcbpJonAX3VhZA4g5+OxkN+kRiuR8mEc5+VgYO c7XD9tqN+5SUvg5Yzbr10I62hCFQaxT0vBoEO//fZrd9D3LsNr4U0ICxY62aaVzKxYRS KyWKKECjnOCzHQn6Iii4CFC1ulfI8fU/XwzI3og8BvJ8rnY6MwypeiNun/lp/EsWx0A7 30FnYcutifZxlJxdJcuylM0wLsCjht265tn+0DZbqYyCnCG6CYXE6pcR46tCUEtQs+Tj w6Fb6OHu6wkSRuH5T5vvOU04ndY/L7NZp6cfjLi3UUI5kx3BqZmZaD7olbv+u7gLlIK8 9X7w== 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 q22si3485143eji.446.2020.06.05.06.27.50; Fri, 05 Jun 2020 06:28:14 -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 S1727091AbgFENZw (ORCPT + 99 others); Fri, 5 Jun 2020 09:25:52 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:53265 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726931AbgFENZt (ORCPT ); Fri, 5 Jun 2020 09:25:49 -0400 X-Originating-IP: 93.34.118.233 Received: from uno.localdomain (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id E7135C0008; Fri, 5 Jun 2020 13:25:39 +0000 (UTC) Date: Fri, 5 Jun 2020 15:29:00 +0200 From: Jacopo Mondi To: Eugeniu Rosca Cc: Jacopo Mondi , laurent.pinchart@ideasonboard.com, kieran.bingham+renesas@ideasonboard.com, geert@linux-m68k.org, horms@verge.net.au, uli+renesas@fpond.eu, VenkataRajesh.Kalakodima@in.bosch.com, airlied@linux.ie, daniel@ffwll.ch, koji.matsuoka.xm@renesas.com, muroya@ksk.co.jp, Harsha.ManjulaMallikarjun@in.bosch.com, ezequiel@collabora.com, seanpaul@chromium.org, linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, michael.dege@renesas.com, gotthard.voellmeke@renesas.com, efriedrich@de.adit-jv.com, mrodin@de.adit-jv.com, ChaitanyaKumar.Borah@in.bosch.com, Eugeniu Rosca Subject: Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM) Message-ID: <20200605132900.on527xcggg6f6pil@uno.localdomain> References: <20191015104621.62514-1-jacopo+renesas@jmondi.org> <20200527071555.GA23912@lxhi-065.adit-jv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200527071555.GA23912@lxhi-065.adit-jv.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Eugeniu, sorry for the late reply On Wed, May 27, 2020 at 09:15:55AM +0200, Eugeniu Rosca wrote: > Hi Jacopo, > > On Tue, Oct 15, 2019 at 12:46:13PM +0200, Jacopo Mondi wrote: > ----8<--- > > > * Testing > > I have tested by injecting a color inversion LUT table and enabling/disabling it > > every 50 displayed frames: > > https://jmondi.org/cgit/kmsxx/log/?h=gamma_lut > > Could you kindly share the cross compilation steps for your kmsxx fork? > I usually build it on the target :) > Just out of curiosity, have you ever tried to pull the display's HDMI > cable while reading from CM2_LUT_TBL? Ahem, not really :) Did I get you right, you mean disconnecting the HDMI cable from the board ? > > At least with the out-of-tree CMM implementation [*], this sends the > R-Car3 reference targets into an unrecoverable freeze, with no lockup > reported by the kernel (i.e. looks like an serious HW issue). > > > > > CMM functionalities are retained between suspend/resume cycles (tested with > > suspend-to-idle) without requiring a re-programming of the LUT tables. > > Hmm. Is this backed up by any statement in the HW User's manual? > This comes in contrast with the original Renesas CMM implementation [**] > which does make use of suspend (where the freeze actually happens). > > Can we infer, based on your statement, that we could also get rid of > the suspend callback in [**]? As Geert (thanks) explained what I've tested with is suspend-to-idle, which retains the state of the LUT tables (and I assume other not-yet-implemented CMM features, like CLU). I recall the out-of-tree driver has suspend/resume routines but I never really tested that. Thanks j > > [*] https://github.com/renesas-rcar/du_cmm > [**] https://github.com/renesas-rcar/du_cmm/blob/c393ed49834bdbc/meta-rcar-gen3/recipes-kernel/linux/linux-renesas/0001-drm-rcar-du-Add-DU-CMM-support.patch#L1912 > > -- > Best regards, > Eugeniu Rosca