Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp880173ybi; Tue, 16 Jul 2019 06:34:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDGggz2pOIHgxoGtXbL5m+ylL1LAsurtizECf9VQyv3dWC4CMDsnPyyYoxEZwIlXI3YjSq X-Received: by 2002:a17:90b:8cd:: with SMTP id ds13mr34572734pjb.141.1563284084110; Tue, 16 Jul 2019 06:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563284084; cv=none; d=google.com; s=arc-20160816; b=puwW+r74dEUpDYRhkqaxFBqVitiET6uOQMuARDuU8MirCDIZtBsIC1ImD2aB5oCty/ u6znzCVpNE88lAWJu35fOH2SKWv7yUWMtJp8nP/jvJCIpOFhHO8+ZAkAl0BrZSBicxco 6FFrMImJ/GmyvAVF0gA+1JwzDDvm4D5PWGfNK9XD8pFRmVhm2g5adSFUBtPZxkDRVNA/ 7I0k83PpCCgcwvRlJGq9MUuhicu5TsRL44LiKvbqTohdHaP458yWC8brOyScg2ooFLjS 6+B42kctz5vGLfxW+1vGu2P2EeaK4Syx8b5XpggDrWPCYJC2oQmnSe0o4KI9KL8QC3vd hKmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:dkim-signature; bh=8mz6aWMUS/XpFE++5r1IztZv0Z9gZ0BIsNuqP/EzEN8=; b=aNF/qRQKDsPeXqk0SOwOh3GgdUiP49KNnHxc50Cft5jF+5VjjfL3DSAZ/sdKHpxOjg 6fbbmbAyzk6boXmKDE5X9ScvXtJ9NkUdDcehFUfvXjs5w+9g4e7mXXNqgWWl7IgNEJLI mYBsvpkcpzjyGmkGuSou1tpfGmyZHmPPGCGCgRmIVDgKgs9XSK9ix7UhDqj0V6+u7iWj HyETWKyHs4Fw+pECk53dT8zrKzrIlSa00RdQhxxDerEmaDuKSoKEdiR30p8U5VvRJlPE RpelJSjraq6LNx+1fgjDLyPlMatazCG97mcoEe2u1Bps81kE4bznGZJt6LXfWkA4rFdp 0Xqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@fpond.eu header.s=strato-dkim-0002 header.b=bWpRLwdl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33si18459489plb.408.2019.07.16.06.34.27; Tue, 16 Jul 2019 06:34:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@fpond.eu header.s=strato-dkim-0002 header.b=bWpRLwdl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387649AbfGPNc0 (ORCPT + 99 others); Tue, 16 Jul 2019 09:32:26 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.170]:20216 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbfGPNc0 (ORCPT ); Tue, 16 Jul 2019 09:32:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1563283944; s=strato-dkim-0002; d=fpond.eu; h=Subject:References:In-Reply-To:Message-ID:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=8mz6aWMUS/XpFE++5r1IztZv0Z9gZ0BIsNuqP/EzEN8=; b=bWpRLwdlrp4lRAR2BjbVWsyo1hLoi02wCzhg0s7QWQUjwIqsBRElt95ATJ0KnPk58q ZFOYawMB6dVk4zL6UsP64uwUqMDNKbwKItI68ZMhoXyEH74xm1YPkJuL1lwg03FCWQpb FT55Je2vHmXDwG0leRuCUnkGdc+xbvXRqO0zjeQ9thH63xmm23JFbHxhIQOSxXcV0ivD 5Pc36tNMQ7sL80dTL/xmCkP3lzL44ZlJManJa76LPVxhOBtzVQueBY5Y8oskR7PHaZql mGTMaW//IZQj3P8kClA7LN+3HVXKRvPEuIbJIbO5OA3ydFWKt1LY6HJvX2Tcgys9WNlN dMfw== X-RZG-AUTH: ":OWANVUa4dPFUgKR/3dpvnYP0Np73amq+g13rqGzmt2bYDnKIKaws6YXTsc4=" X-RZG-CLASS-ID: mo00 Received: from oxapp06-01.back.ox.d0m.de by smtp-ox.front (RZmta 44.24 AUTH) with ESMTPSA id h0a328v6GDWMcYQ (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 16 Jul 2019 15:32:22 +0200 (CEST) Date: Tue, 16 Jul 2019 15:32:22 +0200 (CEST) From: Ulrich Hecht To: Jacopo Mondi , laurent.pinchart@ideasonboard.com, kieran.bingham+renesas@ideasonboard.com, airlied@linux.ie, daniel@ffwll.ch Cc: koji.matsuoka.xm@renesas.com, muroya@ksk.co.jp, VenkataRajesh.Kalakodima@in.bosch.com, Harsha.ManjulaMallikarjun@in.bosch.com, linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Message-ID: <273966608.62651.1563283942512@webmail.strato.com> In-Reply-To: <20190706140746.29132-19-jacopo+renesas@jmondi.org> References: <20190706140746.29132-1-jacopo+renesas@jmondi.org> <20190706140746.29132-19-jacopo+renesas@jmondi.org> Subject: Re: [PATCH v2 18/19] drm: rcar-du: crtc: Register GAMMA_LUT properties MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev59 X-Originating-IP: 85.212.152.154 X-Originating-Client: open-xchange-appsuite Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On July 6, 2019 at 4:07 PM Jacopo Mondi wrote: > > > Enable the GAMMA_LUT KMS property using the framework helpers to > register the proeprty and the associated gamma table size maximum size. > > Signed-off-by: Jacopo Mondi > --- > drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c > index 3dac605c3a67..222ccc20d6d8 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_crtc.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_crtc.c > @@ -1082,6 +1082,7 @@ static const struct drm_crtc_funcs crtc_funcs_gen3 = { > .set_crc_source = rcar_du_crtc_set_crc_source, > .verify_crc_source = rcar_du_crtc_verify_crc_source, > .get_crc_sources = rcar_du_crtc_get_crc_sources, > + .gamma_set = drm_atomic_helper_legacy_gamma_set, > }; > > /* ----------------------------------------------------------------------------- > @@ -1205,6 +1206,9 @@ int rcar_du_crtc_create(struct rcar_du_group *rgrp, unsigned int swindex, > if (rcdu->cmms[swindex]) { > rcrtc->cmm = rcdu->cmms[swindex]; > rgrp->cmms_mask |= BIT(hwindex % 2); > + > + drm_mode_crtc_set_gamma_size(crtc, CMM_GAMMA_LUT_SIZE); > + drm_crtc_enable_color_mgmt(crtc, 0, false, CMM_GAMMA_LUT_SIZE); > } > > drm_crtc_helper_add(crtc, &crtc_helper_funcs); > -- > 2.21.0 > Reviewed-by: Ulrich Hecht CU Uli