Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3204793imu; Fri, 18 Jan 2019 06:36:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN6MfXDmAT+zrG0u3jePvdBy5MSz/EFJdi4zk6rYpayPhjYdw5GjVI3QIXPrGY97FJ5F5zCs X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr18931512plb.97.1547822161283; Fri, 18 Jan 2019 06:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547822161; cv=none; d=google.com; s=arc-20160816; b=fdo3A0e1rwtLWxS2K45l4O3RZn1iiqLQtoDwZbjc5I3O9j/XqnJexbWO0gZaTZZL7t UIjvMt/AhWtCX2c/XFhHvHqept9VojzWozRGf2iDbpXUNqTj8I4VtTIaoCMHDt20JpeG +fqcPSdmDGBL28CJhV4dQAVmCuVJVYHknLCCpTaFrRNTbSWgb4YDmViu3EkSl6J23YGR StL8qSM3X1nuF8BpnveSiOZrSsCEGgjwUEJzRF7GkW4tOWlhy4h3VsUT4dHLdMIy3I+L CH/E82Ej4TAWmQNgWBWfwOYqcsZ3NGp/ZBcVzUulrDt7xpwDwNz8eK0l4bEMcg/CMYmO 0yaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=ufuwoIbKl1Zxgc5EsIyyv/AgH9b8Mu7sFow8Lo+Gq9A=; b=HkgL+iiqdARKxe3Cp6fPVurvzIB4X0OIWOfixRXvUhZ7n/ps/wHApSLWf7w9ww5SZs cBDypHAC2xP7ryyNC7rem3HtScopQE+8yFFoqWFHuC3tk9dn+x5Zs1Vfk5CsgDauTUk7 meIp9sNZMHNsNsvJspnZl29wyJ/cJDWtc5A8U8E4JE/4piTYtvTYfWUYoejqoZWO7qOX evN9fNTQXaoEFLKUp9ktYx2nc/rB0J4tF/2eKivgxbdqAuC+O1pVOgQ1gQrjZoOhRp6o rG2ZF5s+h4lQ09hFiVeyOK272w7v4Qs6gkxRM1+GsTxqza8SK8vfEU/Cje35lVm3FH5Y APsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="FfOWG/Bw"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t64si4915869pgd.202.2019.01.18.06.35.42; Fri, 18 Jan 2019 06:36:01 -0800 (PST) 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=pass header.i=@samsung.com header.s=mail20170921 header.b="FfOWG/Bw"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727554AbfAROe0 (ORCPT + 99 others); Fri, 18 Jan 2019 09:34:26 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57017 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfAROeZ (ORCPT ); Fri, 18 Jan 2019 09:34:25 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190118143423euoutp01b613a3e793d2857b192744ffb49f57f8~69-c70qVV2812628126euoutp01V for ; Fri, 18 Jan 2019 14:34:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190118143423euoutp01b613a3e793d2857b192744ffb49f57f8~69-c70qVV2812628126euoutp01V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1547822063; bh=ufuwoIbKl1Zxgc5EsIyyv/AgH9b8Mu7sFow8Lo+Gq9A=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=FfOWG/BwnmXGo9jgwJQSYVck4Xh9bAfzUigpfi2DHoZlBkyNsNXVlhLp5vhaQMtnG Hzn2j6zInNz2aJQW3ea/Y+LnGMyqRQkFfrOPy91Zw9me4WyKwK1JbCkLebGTtaUOSH 9QlX/OCEQhRXXEQHpBVdzw+LeCFrbvBYmsuzNRTo= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190118143422eucas1p20562d2f7d8129e2d74907fd11393613e~69-b1x2ks0222302223eucas1p2h; Fri, 18 Jan 2019 14:34:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DC.E9.04806.DE3E14C5; Fri, 18 Jan 2019 14:34:21 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190118143420eucas1p11495282b806a7ca85bdbafaec46ac3b4~69-awO-_m3080730807eucas1p1Q; Fri, 18 Jan 2019 14:34:20 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190118143420eusmtrp2085312f9013703813b4e5d470cd16879~69-auNGlc1571915719eusmtrp2-; Fri, 18 Jan 2019 14:34:20 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-7a-5c41e3ed609f Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 39.79.04284.CE3E14C5; Fri, 18 Jan 2019 14:34:20 +0000 (GMT) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190118143420eusmtip1c2d65852a9c8f718e8d46eeb0340fe09~69-aAE6gl1082410824eusmtip1T; Fri, 18 Jan 2019 14:34:20 +0000 (GMT) Subject: Re: [PATCH 1/6] include/drm: color_mgmt: Add enum labels To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= , Christoph Manszewski Cc: linux-samsung-soc@vger.kernel.org, Bartlomiej Zolnierkiewicz , Maxime Ripard , Seung-Woo Kim , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , Sean Paul , linux-arm-kernel@lists.infradead.org, Marek Szyprowski , 'Hans Verkuil' From: Andrzej Hajda Message-ID: Date: Fri, 18 Jan 2019 15:34:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190117194722.GJ20097@intel.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTYRTGe3c/Xc2uU9uhomiQpJXLMnwhqQSJSxAoEUQJtfSikq7cUjMp yyKs9WFqpCv8zIplqPMjW6Wm4lJRsyRNCAWF0twszZWklre7yP9+zznnOe954GUJ5Ti1ko3V nRL0Om2cmpaTta0z3ZvtwyERW+aNvvh6V5sMV+aWU9j2vBTh3ukJGt+fscrwzeEvBO7urmBw Z/o4gy3D7yn8znqPxrnd9TL8pOUjg4dGGxD+mN2CcG72KI1/zBfJdnN8flkqn/OrkuIt5is0 /9Q5RPH5beH8oNEm46vup/E26wDD36g2I37KsiZMfkgeHCXExSYJes3Oo/KY3sv7TmZxpy2j /cx5VKC4itxY4AIhPdPIXEVyVsk9QtBX9YGQxHcExrEuShJTCDovvEX/LH3NdpflIYKxhnKX sCO40pdJiVOeXAhc65/76/DikmH8npMQmeAekOC8GSk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Kv7CA2i4CqxMxPa1hAbFGBCImzL9cx QtQISpyc+QQszimgL3FgykSwk5gF1CX+zLsEZctLNG+dDWWLS9x6Mp9pAqPQLCTts5C0zELS MgtJywJGllWMIqmlxbnpucWGesWJucWleel6yfm5mxiB0b/t2M/NOxgvbQw+xCjAwajEw/ti m0OMEGtiWXFl7iFGCQ5mJRFerhWOMUK8KYmVValF+fFFpTmpxYcYTYGem8gsJZqcD0xMeSXx hqaG5haWhubG5sZmFkrivOcNKqOEBNITS1KzU1MLUotg+pg4OKUaGDs9njMd3zxtXsv/5ZEW uQGJNefLFZnyfixdpNKXYTvJUciCfYV1ToyAjYycs8/dBJ2/87t5t5RYfdD4vyjJ70cft5n7 ZYW7Lg6K94QYDm9IumW4SGHmLI0XJ6TLBMJbt5b6Ox2pjXftmiQQ8fvlbSteXwuGYzcibonl X5aSc/NJPLXg6JbvSizFGYmGWsxFxYkAh3k2HRQDAAA= X-CMS-MailID: 20190118143420eucas1p11495282b806a7ca85bdbafaec46ac3b4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181214121032eucas1p24af580721ebd6f86a4f9ddf701957ab6 References: <1544789421-5265-1-git-send-email-c.manszewski@samsung.com> <1544789421-5265-2-git-send-email-c.manszewski@samsung.com> <20190117194722.GJ20097@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +CC: Hans On 17.01.2019 20:47, Ville Syrjälä wrote: > On Fri, Dec 14, 2018 at 01:10:16PM +0100, Christoph Manszewski wrote: >> Range setting makes sense for YCbCr and RGB buffers. Current >> drm_color_range enum labels suggest use with YCbCr buffers. >> Create enum labels without colorspace specification. >> >> Signed-off-by: Christoph Manszewski >> --- >> include/drm/drm_color_mgmt.h | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/include/drm/drm_color_mgmt.h b/include/drm/drm_color_mgmt.h >> index 90ef9996d9a4..52f6d5221a0d 100644 >> --- a/include/drm/drm_color_mgmt.h >> +++ b/include/drm/drm_color_mgmt.h >> @@ -62,6 +62,8 @@ enum drm_color_range { >> DRM_COLOR_YCBCR_LIMITED_RANGE, >> DRM_COLOR_YCBCR_FULL_RANGE, >> DRM_COLOR_RANGE_MAX, >> + DRM_COLOR_LIMITED_RANGE = DRM_COLOR_YCBCR_LIMITED_RANGE, >> + DRM_COLOR_FULL_RANGE = DRM_COLOR_YCBCR_FULL_RANGE, > These enum values don't mean anything really. The strings are what > matter for the uapi. > > The default for YCbCr needs to be limited range, the default for RGB > needs to be full range. So I think this would really require a separate > prop for each. > > But is there an actual usecase for this stuff? Yes, for example HDMI path (Display Controller and HDMI encoder) in Exynos5433 works on RGB buffers and do not perform any conversion if the output is also RGB, on the other side CEA861 specs says that in case of CEA modes output RGB should be in limited range, in case of non CEA modes it should be full range. The idea was to allow userspace to check (atomic_check) which ranges are acceptable in given mode and to set desired one if possible. Any better solution is welcome? Regards Andrzej > >> }; >> >> int drm_plane_create_color_properties(struct drm_plane *plane, >> -- >> 2.7.4 >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel