Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp522850ybt; Mon, 6 Jul 2020 15:31:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy258/VH4oLVoNkrztAHMxwIneQTBRF1OEgDvZeuvm0yIg4afdrlCIYaoBr/0qawpC8U0lo X-Received: by 2002:a17:906:7a46:: with SMTP id i6mr43261670ejo.475.1594074681805; Mon, 06 Jul 2020 15:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594074681; cv=none; d=google.com; s=arc-20160816; b=D0tn5KEG+Ot5YKH+oofTQdoNfqqfcgqUs77/77KZtTTnCAI5bw4a+O5CVF5iMiVTC+ MY1TLlHKM3vdbEXyVxXEMKxll4gG8xoglxRi5DflagSn5Ogt1gL3r5G9G1OpIai6oS2M rfbESfTaFUQByZs6krg4fvTWkghvw8p6nt1fpitL3+wDFTDsONzPJShjuXfYKAc9TnJf bvL7ciPzP7/3Zq8ByoZTiIwDDZY0OdlxfJMw/g3Gc7qlTdj6uPuH9RNvyYxNWtZ3FHoh rdZ3lpF9Hgs+ir6qcxWXw2ryBSNlBENNcZLD+E/VYeRq+YzxV0KJAisS3Xxt3TS88bmP aZzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to :references:in-reply-to:message-id:date:subject:from:dkim-signature; bh=63/HKH6wNc/07OqiA1yctULaLMPjNtHCXH6IBFgPuW0=; b=xoDZ/+p5P/uzp489a7EowskaWHr2O98dbrhBEkCMd5AgesR/kzrTvZ5HoyKt8QJZEv /TmiNr3skiBEHHQE1UiRVjbPiU2wD6Mj8H66oBkyGqVZ2WqK+XxE2BK0UpkprU7Kgv4P gXOuzaYIwY1hZdQbkIZ6YkadEhzN/6zuRTw2xyaH02r2I0tJb5w4ipsLLYz9W7fjJYJG L7KeivrRF+RhuWruUOo45j3mmwnoOVmj2zABXiMD188Y95gOpg2Wcs+Cq+cJ94bDZbuq twv1Ugd5Bck/8398DTf7fgl2YnmO5SKTeIX8vufe8wtwVncE1vrUTfzbV+pHUXaMnAKe vZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=001 header.b=QxTdQHzD; 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 d26si12092486edz.108.2020.07.06.15.30.58; Mon, 06 Jul 2020 15:31:21 -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 header.i=@kwiboo.se header.s=001 header.b=QxTdQHzD; 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 S1727107AbgGFWaO (ORCPT + 99 others); Mon, 6 Jul 2020 18:30:14 -0400 Received: from o1.b.az.sendgrid.net ([208.117.55.133]:63950 "EHLO o1.b.az.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbgGFWaO (ORCPT ); Mon, 6 Jul 2020 18:30:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:to:cc:content-type: content-transfer-encoding; s=001; bh=63/HKH6wNc/07OqiA1yctULaLMPjNtHCXH6IBFgPuW0=; b=QxTdQHzDUhU1mmOdoXN3SZ6tjhuIK0j3xUl4JQQyHx3wTuwO6jUmEM3bYmWpB2o7qXTk p6VOMLRKVq9QfdM5i2XCy+xVHPRqgph7VVQi4R6psUIvOOvhPoMmAV3HjmXZfiAJNFMENP oBHEssnNPJe0/36h115eYkAdXYGKjcqV8= Received: by filterdrecv-p3las1-7754f7d4cc-fqrzr with SMTP id filterdrecv-p3las1-7754f7d4cc-fqrzr-19-5F03A5F4-36 2020-07-06 22:30:12.61868238 +0000 UTC m=+965799.783674456 Received: from bionic.localdomain (unknown) by ismtpd0004p1lon1.sendgrid.net (SG) with ESMTP id LcDdvt6lT9C7M20Z4UoZJQ Mon, 06 Jul 2020 22:30:12.191 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 0/2] drm: rockchip: add NV15, NV20 and NV30 support Date: Mon, 06 Jul 2020 22:30:12 +0000 (UTC) Message-Id: <20200706223009.1200-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200607202521.18438-1-jonas@kwiboo.se> References: <20200607202521.18438-1-jonas@kwiboo.se> X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h2jx6rNUbibDfvcQb?= =?us-ascii?Q?HBJWIsxybDLeUWaOeuvzlwhpdnYWD4ydpio0RQT?= =?us-ascii?Q?RXe3+j4AsBZnn6ATSe4+TwWf+C0hx0JW=2F2XIwq2?= =?us-ascii?Q?IhMK2BTB2hwhXYnk=2FHfZrMkVgvGQpTp2LgNFHWv?= =?us-ascii?Q?W6N+mYXYZo5gln9Al5bmnYSQ3WzOe=2F0LwJXCNot?= =?us-ascii?Q?X9Mrxq3OmvZuhO9AWfg7w=3D=3D?= To: Sandy Huang , Heiko =?iso-8859-1?q?St=FCbner?= Cc: Jonas Karlman , Ben Davis , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds support for displaying 10-bit 4:2:0 and 4:2:2 formats produced by the Rockchip Video Decoder on RK322X, RK3288, RK3328, RK3368 and RK3399. Also include 10-bit 4:4:4 support since VOP can support that also. First patch adds new fourcc 10-bit YUV formats with 4:2:2/4:4:4 sub-sampling. Second patch adds support for displaying the the new fourcc formats. Changes in v2: - Add NV30 format - R-B tags was not collected due to NV30 changes This series has been tested on RK3399 using a Rockchip Video Decoder series at [1] together with ffmpeg at [2] and kodi-gbm or mpv. [3] contains all patches needed on top of linux-media master for easy testing. [1] https://patchwork.linuxtv.org/project/linux-media/list/?series=2859 [2] https://github.com/Kwiboo/FFmpeg/commits/v4l2-request-hwaccel-4.3-rkvdec-high-10 [3] https://github.com/Kwiboo/linux-rockchip/commits/linuxtv-rkvdec-high-10-v2 Regards, Jonas Jonas Karlman (2): drm: drm_fourcc: add NV20 and NV30 YUV formats drm: rockchip: add NV15, NV20 and NV30 support drivers/gpu/drm/drm_fourcc.c | 8 ++++++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 29 +++++++++++++++++-- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 1 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 32 +++++++++++++++++---- include/uapi/drm/drm_fourcc.h | 2 ++ 5 files changed, 64 insertions(+), 8 deletions(-) -- 2.17.1