From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8ED67C433F5 for ; Thu, 31 Mar 2022 12:19:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D49C810E19A; Thu, 31 Mar 2022 12:19:09 +0000 (UTC) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B59310E19A for ; Thu, 31 Mar 2022 12:19:08 +0000 (UTC) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nZtlW-0000gs-Ff; Thu, 31 Mar 2022 14:19:02 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nZtlV-0008D1-0u; Thu, 31 Mar 2022 14:19:01 +0200 Date: Thu, 31 Mar 2022 14:19:01 +0200 From: Sascha Hauer To: Andy Yan Subject: Re: [PATCH v9 00/23] drm/rockchip: RK356x VOP2 support Message-ID: <20220331121900.GG4012@pengutronix.de> References: <20220328151116.2034635-1-s.hauer@pengutronix.de> <20220330072822.GX12181@pengutronix.de> <0D8F5951-5375-46B5-BFF0-7ED410371EB7@gmail.com> <20220330094556.GZ12181@pengutronix.de> <20220330102046.GA12181@pengutronix.de> <60601619-EF07-457B-91F2-64FEB598FEBE@gmail.com> <20220330192054.GA4012@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 14:17:51 up 1 day, 47 min, 51 users, load average: 0.11, 0.15, 0.14 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "devicetree@vger.kernel.org" , Benjamin Gaignard , Piotr Oniszczuk , Sandy Huang , dri-devel@lists.freedesktop.org, "open list:ARM/Rockchip SoC..." , Michael Riesch , Peter Geis , kernel@pengutronix.de, "linux-arm-kernel@lists.infradead.org" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Mar 31, 2022 at 08:13:09PM +0800, Andy Yan wrote: > Hi Piotr: > > On 3/31/22 03:20, Sascha Hauer wrote: > > On Wed, Mar 30, 2022 at 04:52:22PM +0200, Piotr Oniszczuk wrote: > > > > > > > Wiadomość napisana przez Sascha Hauer w dniu 30.03.2022, o godz. 12:20: > > > > > > > > Does it change anything if you do a "modetest -s 69@67:1920x1080" before > > > > starting the app? Or if you run "modetest -P 43@67:1920x1080@NV12" > > > > before starting the app? Or other combinations thereof? > > > So i tried following combinations > > > > > > -boot > > > -modetest -s 69@67:1920x1080 -> ok > > > -modetest -P 43@67:1920x1080@NV12 -> green screen > > I have no idea what is going on here. There same commands work for me. > > You could provide me your kernel config and upstream commitish you are > > working on, maybe that gets me closer to your setup. > > > It's a little strange, I can't reproduce this issue neither. > > But I have problem with this two step command sequence. > > step 1:  modetest -s 69@67:1920x1080 -> ok > > step 2:  modetest -P 43@67:1920x1080@NV12, > > I got the failed message:  "failed to enable plane: Permission denied" > > Because the drm core will stop step2 by drm_ioctrl_permit as > DRM_IOCTL_SETPLANE need a master, > > but the current master is the modetest run by step1. > [...] > > So how you two got step two run success? You have to stop the first modetest by hitting return. Alternatively you could pass the -d option to the first modetest. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |