Received: by 10.213.65.68 with SMTP id h4csp426831imn; Tue, 27 Mar 2018 01:50:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELuJTLU1k3UAlh8cP3RDXYdxsV+I/usUfqDgm4f32eQlptFLRtsJzX9VY36j6IgPr72AaT0o X-Received: by 10.99.104.131 with SMTP id d125mr10347989pgc.9.1522140602422; Tue, 27 Mar 2018 01:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522140602; cv=none; d=google.com; s=arc-20160816; b=tpJMfjIHiyDXq+I4QNOWN+BSMtjI/kWftNELkjbh9W5BrFl53ekQHK/Hsv5S4HUA0a rEvJamCbcdYPSvGBbhWp4fPeRSLoL1Tm/C2QCJ3G/Mmyx2nHlkiaWY/jkQGMUTB93hCi pxIbJ9lVib/dI38c8+gpEZU1/kyJHjeHb6V+pQ3mGJOaVoXp2l7lMfZDxZa3dHCzAPZC 3Vu5EEPqiCLJ7DRjozQ3I6YbiJrngqW4ebMwUoAu9FnoqOH2tgi8XSReJJQ1wMXGCO7L UMfyHzdlON4w3ffOCARIjaoocR0V+ODMXKUEDNlpN44RvVOsulbF5zFsw9ZGNMKMk6eW CvFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:arc-authentication-results; bh=ClI0CcZ+X5Ge4WEl+sbidDwO5XNyHf79ExAaL/aiobQ=; b=W4E8XLuHFiQc56RYOADUFM9MHx9E4BUOLcTYmPgB/13R3f5E8hM6bhgv3/12mCuvjh iQAPEsGwzXCETsp38B/XKQ3YwXMuE0Ou1PKzQQa8xeA6I3hzJKE27QiKeRnSRmQJGyEg S8O59VTFrGlCczBrr1jsABycrt3J1Ye8z/gIIAGmpJLPnmCA8WgXPZjM/UeTcTCqYHl/ RQxTZjKn2DrnEh6xOjtZ4KTZLOhV/KwMSNPG0PeIRUu/+b7Y/4hkaJqvTBVJ4vwBYIKQ icn1H/IRnL3lZqIvKd6JJKYqmjOa6QLoH1Wqchl+mtP+pTAxyrvKfgBA3tZ6J15/3cwM Z0fQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u5si541183pgo.144.2018.03.27.01.49.47; Tue, 27 Mar 2018 01:50:02 -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; 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 S1752161AbeC0Isa (ORCPT + 99 others); Tue, 27 Mar 2018 04:48:30 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:55569 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750917AbeC0IsY (ORCPT ); Tue, 27 Mar 2018 04:48:24 -0400 Received: by mail-wm0-f48.google.com with SMTP id t7so20131590wmh.5 for ; Tue, 27 Mar 2018 01:48:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ClI0CcZ+X5Ge4WEl+sbidDwO5XNyHf79ExAaL/aiobQ=; b=AJn4AK8KWh0qYnHLSnUKqwMGZq5HDvbUQCB7aRxHENO1vlUvOOhyNsul2mCY3W8Qhv gWXBsisWIb2NQMbe84SB3d4Z2ItV1iVv/ff8jpxKMR55p7an5XD2qK+FBWuKYS5nCOEZ vvmSmD6gOIUab2O48AELZJNzntSVIqS8IVhDYZjWIyNEQnHzylzom0iK4WY2Kp3x7/I8 cU4N4+FHp5G+6hgQJVBPARlIEFg20RW/qpAeQclGURRDyaaroJgti/s1PzCuE+J+XQRc NSSmGw89MnPCwliB4HxhBy8fzEfoHvkYhHLkqBxwm+PhE7NOfDVclhVEiKItTQd+jsfI B+GQ== X-Gm-Message-State: AElRT7H8GOiYI/U/ySeMF1+w8OaDBzxLk1O+5vn1is3i0GD/NVvxN+9A YlXpZX1TG6+9nh1RjjMAvGlidBO4 X-Received: by 10.80.159.42 with SMTP id b39mr38930831edf.237.1522140503277; Tue, 27 Mar 2018 01:48:23 -0700 (PDT) Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com. [209.85.128.179]) by smtp.gmail.com with ESMTPSA id e18sm563134edj.38.2018.03.27.01.48.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 01:48:22 -0700 (PDT) Received: by mail-wr0-f179.google.com with SMTP id y55so951678wry.3 for ; Tue, 27 Mar 2018 01:48:22 -0700 (PDT) X-Received: by 10.223.186.75 with SMTP id t11mr27344515wrg.155.1522140502049; Tue, 27 Mar 2018 01:48:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.164.129 with HTTP; Tue, 27 Mar 2018 01:48:01 -0700 (PDT) In-Reply-To: <1522140259.1110.43.camel@bootlin.com> References: <20180321152904.22411-1-paul.kocialkowski@bootlin.com> <20180321152904.22411-3-paul.kocialkowski@bootlin.com> <20180323095529.5nptn5achjt3esog@flea> <1522137643.1110.4.camel@bootlin.com> <20180327081731.he3lhnvqffuimsi5@flea> <1522140259.1110.43.camel@bootlin.com> From: Chen-Yu Tsai Date: Tue, 27 Mar 2018 16:48:01 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/10] drm/sun4i: Disable YUV channel when using the frontend and set interlace To: Paul Kocialkowski Cc: Maxime Ripard , linux-kernel , dri-devel , linux-arm-kernel , David Airlie , Daniel Vetter , Gustavo Padovan , Sean Paul Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 4:44 PM, Paul Kocialkowski wrote: > Hi, > > On Tue, 2018-03-27 at 10:17 +0200, Maxime Ripard wrote: >> On Tue, Mar 27, 2018 at 10:00:43AM +0200, Paul Kocialkowski wrote: >> > Hi, >> > >> > On Fri, 2018-03-23 at 10:55 +0100, Maxime Ripard wrote: >> > > On Wed, Mar 21, 2018 at 04:28:56PM +0100, Paul Kocialkowski wrote: >> > > > The YUV channel was only disabled in >> > > > sun4i_backend_update_layer_formats, >> > > > which is not called when the frontend is selected. >> > > > >> > > > Thus, creating a layer with a YUV format handled by the backend >> > > > and >> > > > then >> > > > switching to a format that requires the frontend would keep the >> > > > YUV >> > > > channel enabled for the layer. >> > > > >> > > > This explicitly disables the YUV channel for the layer when >> > > > using >> > > > the >> > > > frontend as well. It also sets the relevant interlace bit, which >> > > > was >> > > > missing in the frontend path as well. >> > > >> > > This should be part of a separate patch. Usually, if you write "it >> > > also does..." at the end of your commit log, it's a pretty good >> > > indication that it should be another patch :) >> > >> > I must say, I figured that this part was missing in the frontend >> > path by >> > chance and couldn't really test the feature, so I'm also tempted to >> > drop >> > it altogether. What do you think? >> >> If you haven't been able to test it, then yeah, don't submit it. > > Alright, noted. > >> > Also, is interlacing actually used on any of the video outputs we >> > support? Perhaps RGB? >> >> Composite would be a better guess :) > > Oh and I was wondering what CVBS was about. Now I know! > It seems that we don't support it for now apparently, anyway. You could also try adding interlaced modes to HDMI. ChenYu