Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3672229pxf; Mon, 29 Mar 2021 08:23:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuNJ1F7Cff/+kuitnF9iqOD+WKCElFAawW/HlDt3c5ZDVizDd64J0sHdSHAOpn+nfz6qs1 X-Received: by 2002:a17:906:701:: with SMTP id y1mr3714246ejb.243.1617031428163; Mon, 29 Mar 2021 08:23:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617031428; cv=none; d=google.com; s=arc-20160816; b=NOb84J/I/F6tbqro5T0bCJZLxDSzDfs0ym0fJNCtIIyPstkGZVkr280EMzILv/7f6l bJjhvl8Apfb5/fOS2i+gsvIeWwv8EsOHKolQd9gAqFDPuf9sCtmCp6tJnjDV427SC/aa 87xlABlsRMtpwYY/RTG51+DiqRRwdKOd4JynkUz2jnpTJscSOXDWjU5Sr1J8gGges8ZM BRO78J4HNE37M33ELLYpjp9l6n1IyaJfcSIGM07xMsmwlOzQtmCw0YyB8Z12qUqq4gGK rrajeYqAqqdxfLGgohPNpS2A16rGfI2j125rFrvP3KsCQHEhaubq34827iGk7zQagN3g Lilg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=w1QmEOb93Z7ljB0x+ucVz/X7JVdzJqSlFBHNbY6lDY8=; b=0sf5p0hvEvj87J9y1PSZ8smJRk6b23PTgZbqKmy1Cnx4N8aJmUUf9gz+oOUTdgloMw tKQjB17K6beoVX7oALBRZ+7locrQXMuEL7SJRZ4Wpp+7lLdIyAR4ILML/m4Fom4F6Krm 9CxRuqw4uS+DWLXLT9DaUG5fATwZ/9ToNttqxF853MPaD2W25E4d4T2vDsSb3b7G0nzf qkZWClWEZ0hd6pmL9wQidAj9iBZp5+XTiEWnu6woyyxb7a0UNmzLz9cdIlJzPAP18Xc6 OUfQTxDwpVeuSF6ydBgEB1OYj+pHVttYQJ8bSfSjHqYzE9dQhbuYKc0gRWImuHxOGD02 K9EQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si13172053eds.217.2021.03.29.08.23.25; Mon, 29 Mar 2021 08:23:48 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230421AbhC2PVw convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Mar 2021 11:21:52 -0400 Received: from aposti.net ([89.234.176.197]:55270 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbhC2PVZ (ORCPT ); Mon, 29 Mar 2021 11:21:25 -0400 Date: Mon, 29 Mar 2021 16:21:07 +0100 From: Paul Cercueil Subject: Re: [PATCH] drm: DON'T require each CRTC to have a unique primary plane To: Pekka Paalanen Cc: Simon Ser , Thomas Zimmermann , David Airlie , linux-kernel@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org, stable@vger.kernel.org Message-Id: <7BLQQQ.ZY1PEPCLZS2L2@crapouillou.net> In-Reply-To: <20210329173541.00b301ea@eldfell> References: <20210327112214.10252-1-paul@crapouillou.net> <1J_tcDPSAZW23jPO8ApyzgINcVRRWcNyFP0LvrSFVIMbZB9lH6lCWvh2ByU9rNt6bj6xpgRgv8n0hBKhXAvXNfLBGfTIsvbhYuHW3IIDd7Y=@emersion.fr> <24LMQQ.CRNKYEI6GB2T1@crapouillou.net> <20210329111533.47e44f72@eldfell> <20210329173541.00b301ea@eldfell> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 29 mars 2021 ? 17:35, Pekka Paalanen a ?crit : > On Mon, 29 Mar 2021 12:41:00 +0100 > Paul Cercueil wrote: > >> Hi, >> >> Le lun. 29 mars 2021 ? 11:15, Pekka Paalanen >> a >> ?crit : >> > On Sat, 27 Mar 2021 11:26:26 +0000 >> > Paul Cercueil wrote: >> > >> >> It has two mutually exclusive background planes (same Z level) >> + one >> >> overlay plane. >> > >> > What's the difference between the two background planes? >> > >> > How will generic userspace know to pick the "right" one? >> >> First primary plane cannot scale, supports RGB and C8. Second >> primary >> plane goes through the IPU, and as such can scale and convert pixel >> formats; it supports RGB, non-planar YUV, and multi-planar YUV. >> >> Right now the userspace apps we have will simply pick the first one >> that fits the bill. > > What would be the downside of exposing just one "virtual" primary > plane, and then have the driver pick one of the two hardware planes as > appropriate per modeset? The IPU plane is in a different driver, so all the callbacks are different. That sounds like it would be a mess. -Paul > Thanks, > pq > >> >> Le sam. 27 mars 2021 ? 11:24, Simon Ser a >> >> ?crit >> >> : >> >> > On Saturday, March 27th, 2021 at 12:22 PM, Paul Cercueil >> >> > wrote: >> >> > >> >> >> The ingenic-drm driver has two mutually exclusive primary >> planes >> >> >> already; so the fact that a CRTC must have one and only one >> >> primary >> >> >> plane is an invalid assumption. >> >> > >> >> > Why does this driver expose two primary planes, if it only >> has a >> >> > single >> >> > CRTC? >> >> >> >> >> >> _______________________________________________ >> >> dri-devel mailing list >> >> dri-devel@lists.freedesktop.org >> >> https://lists.freedesktop.org/mailman/listinfo/dri-devel >> > >> >> >