Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2371998ybg; Fri, 5 Jun 2020 12:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDhNZluk27QO52xLwN0jhpFweYPxrD31yd79emV+7llE5r4dgP+kZIocAwlZ8xn+hJjzHC X-Received: by 2002:a05:6402:34e:: with SMTP id r14mr10650611edw.351.1591384230340; Fri, 05 Jun 2020 12:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591384230; cv=none; d=google.com; s=arc-20160816; b=kfmY0FOV24wS221TiId97dal8drUwUrcPgp8zpuwv+bBCKTa8uQRNd8C6PCrlwe+G1 VC5q/xmaWc2DJly+A9bu2eqebqfc/B135ydLK/HNBmcLTCqSPtWSivE3uR3lm6FDRTQI 7nP1ZdhYEIayMw4N3K43S3lmmDhvLONSvHYtEkGWoGDLkY3/vX1qTVb0AE3zF5QvCQe4 y7T1xSglT4VR5t0mBShvRl2VzqP7vze1oykyl1JKHkPB445tAV6lTUBY6SHmhIjOiI6s f0o3FS+59MpPDL4kQ2RuRw4DKYrcX5NpRsdjbJx9MZyOHCHegf9S70MiVM80Qkz4IKHG cDsw== 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 :dkim-signature; bh=VUmIiVhtFwjJQxOF6tWTTMG/P8/8l2rRYcYRPBHbGo4=; b=cxBbjRtNOHJWO2Dk6yiUBU4DovgTmZzZKQkSD3+6q5yJqicAJlo7OMXuOnKZUFbSjf GtbwxdQSGYFdcXjpId+ZA+s4p+p4NyAlpZcZoVzEFChzCzqQrONdi1gtDJGIDKEZd8Sc SEz+ZCjojdEKG5f0Iji/0ueFD5J0asjwRO+jxG58Y1I/OCd6ZVZi9NHrQ8XcSuCoolOl 4ftzYoIFSEvEYkGhA3fe3icOaY63+Q5rAEozyq/S+ZjpXw5K+ol4UmlDjODnRKAMLroJ 4rvPLkjWLGYT8Pd9gx6qz2voJVdBlkv4MQaU/0lZe8/PStmNADZFjkzpSsRf/GVzwLPI yRbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="H/zb4+n6"; 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 zb3si462335ejb.610.2020.06.05.12.10.06; Fri, 05 Jun 2020 12:10:30 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="H/zb4+n6"; 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 S1728088AbgFETF0 (ORCPT + 99 others); Fri, 5 Jun 2020 15:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgFETFZ (ORCPT ); Fri, 5 Jun 2020 15:05:25 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB274C08C5C2; Fri, 5 Jun 2020 12:05:24 -0700 (PDT) Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9205927C; Fri, 5 Jun 2020 21:05:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1591383921; bh=Uzq4fcW39ABPFOQO4o+qhxBJ2pJzSG4B/pAr6FXFPkw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H/zb4+n67JnWlsgLjx5l8FnINkkWzFXGGEyXbiCbFjBK5MQH4Rk4doeYRREqfb4ad Wwtx+vyPSDACXjDyIlPZD7gwk5w0zeVhTEaqVq9B2fOYOuGltJ1XmvMZ84oDrC9W0F +TDMOTSHwW/S1rhZCrONlkTlx2daE+DJ30qn1uN0= Date: Fri, 5 Jun 2020 22:05:00 +0300 From: Laurent Pinchart To: Jacopo Mondi Cc: Eugeniu Rosca , Jacopo Mondi , 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: <20200605190500.GG26752@pendragon.ideasonboard.com> References: <20191015104621.62514-1-jacopo+renesas@jmondi.org> <20200527071555.GA23912@lxhi-065.adit-jv.com> <20200605132900.on527xcggg6f6pil@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200605132900.on527xcggg6f6pil@uno.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 05, 2020 at 03:29:00PM +0200, Jacopo Mondi wrote: > 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 :) Otherwise, cross-compilation instructions are available in README.md. $ mkdir build $ cd build $ cmake -DCMAKE_TOOLCHAIN_FILE=/output/host/usr/share/buildroot/toolchainfile.cmake .. $ make -j4 I assume you may use yocto instead of buildroot, you would have to locate the toolchainfile.cmake file accordingly. > > 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. > > > [*] 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 -- Regards, Laurent Pinchart