Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3024552pxp; Mon, 14 Mar 2022 09:20:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz773Ih/CqlFPqSwC+sn2bGkWFBnVd0rml/ufZpePy+hWbWJ9tg7OouLJQKaqix4EM88OoE X-Received: by 2002:a17:902:da89:b0:153:349c:d240 with SMTP id j9-20020a170902da8900b00153349cd240mr17730466plx.73.1647274837279; Mon, 14 Mar 2022 09:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647274837; cv=none; d=google.com; s=arc-20160816; b=qow8TJkV4o5RP8XJOgRxn8Vx6g1uIOPtEwrM7WyHszuml/xb1YE9eFhPlzoOm16hYP ieQmAeu5vLQIJfEkXd7aUsXPF/+JoJti7feN/ETLyRiJy/AtB/XjZGEstxi9YpcnuAnQ 1FlOd5fTSOAijPpgtscoFdf4qPtNDI1d1EjujI+WQyCyABuW4Nx7gVY2lHA8A+Ssob6z iH/2SrF9tDy1H9rv81TgJ+FYfut6iqpQjt75OafYutiw+0ljqnxN+a/YJZVIMHAOOKJA 7UNIlRNtctSkPm1Ehm3iD4j7hxZxpq+Vwpm62MSeuMmbeBT+/iLpPm5n0tw2uWU/HP5v Am5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZlfIlu/CbSbNEhgmf7fEiyp7pTgI6OPQxXsWhGkDjwE=; b=0nbO60Hu22soJLclKQdhFY8OiOuDvYNeYCzNKJtLzL/PB9LIMfE4mEYTtqDczPKQjc hNKd0cqsOhTJSWO1LhsTrZGwnDX6lnB9mphnU7q4elLk4upb7BLiE6BhyDlod1qrmp+c zPoqRqgOE/ZAn+uZBFuH4dDB+J5lTzOrzGpkLYOFjBF0gTFjzemkE3GlXR6DmWPXBOE4 aujBk+w6zLTRkzhuDGMt0gK3yFzy4K9kDb0zLNkkTIG2gISkbhDzWy+hs3QBS8J8XdIG BNjSXBMIlm0YMq0t/huGIrDd6a2lLOn9sN0bKLpfqxYoE56bUW3wJoqXaPWtwhYuH6eT aGtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=UBhJ7b9I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a170902e88600b00151ed65fda9si17491239plg.155.2022.03.14.09.20.23; Mon, 14 Mar 2022 09:20:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=UBhJ7b9I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbiCLUXi (ORCPT + 99 others); Sat, 12 Mar 2022 15:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbiCLUXh (ORCPT ); Sat, 12 Mar 2022 15:23:37 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE10208266; Sat, 12 Mar 2022 12:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647116521; bh=Kipwnu9i0XJKTtS/vkHsIeGhK2mTOYwd9Fe3CUqyhYc=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=UBhJ7b9IlVmT4EkmHV02GlVuK0MB7q9abBtPaRAY5uf7QVEJ9EjwhfutrcwEWT8sq YXFayw4At97xktykMq7E4uoUmPxTD/H9tSHQpEhhsX0v++gfjIXV07O6813VKZBXhU U1WRUzYr2A7imhWUzPh3AjSrD+rT85/b0gvq5jeY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from longitude ([85.197.41.77]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MrhUK-1nx1Tw3oCS-00nfow; Sat, 12 Mar 2022 21:22:01 +0100 Date: Sat, 12 Mar 2022 21:21:58 +0100 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= To: Andreas Kemnade Cc: p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, alistair@alistair23.me, samuel@sholland.org, josua.mayer@jm0.eu, letux-kernel@openphoenux.org Subject: Re: [RFC PATCH 4/6] drm: mxc-epdc: Add update management Message-ID: References: <20220206080016.796556-1-andreas@kemnade.info> <20220206080016.796556-5-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KGiIJO+uT5QL2O/C" Content-Disposition: inline In-Reply-To: <20220206080016.796556-5-andreas@kemnade.info> X-Provags-ID: V03:K1:LUNg/vUU63M4JNITfsENQEGLDAqQgIJnfYNsY+v4K23T2MDIEHo Jl4sGt1IMYukgUjGNhzu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p8R6woC6WC /jcyR8DSRmxARZpeT4ENNieExzVYxHZgjOKKj9o5Vgdb1AOn0+H2dr6Lj52KiURVkJGu8jKm7 tqUccIewUVkBxatfn1isnjeZQrYRk+YtTsQO4DgzvjaVVuWzfWaIomqQmn3Zw819Yn6jcqq2/ mj/Zm92RVHOeQ8dDHbDFQ1jha43qLYl4C4TyUVxHCJ7m+z3znQgPgSCTy8f22s8CwCEDji2xx /utk2hTriST7Qk= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KGiIJO+uT5QL2O/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 06, 2022 at 09:00:14AM +0100, Andreas Kemnade wrote: > The EPDC can process some dirty rectangles at a time, pick them up and > forward them to the controller. Only processes not involving PXP are > supported at the moment. Due to that and to work with more waveforms, > there is some masking/shifting done. It was tested with the factory > waveforms of Kobo Clara HD, Tolino Shine 3, and Tolino Shine 2HD. > Also the waveform called epdc_E060SCM.fw from NXP BSP works with the > i.MX6SL devices. >=20 > Signed-off-by: Andreas Kemnade > --- [...] > + adj_update_region =3D upd_data_list->update_desc->upd_data.update_regio= n; > + /* > + * Is the working buffer idle? > + * If the working buffer is busy, we must wait for the resource > + * to become free. The IST will signal this event. What does IST mean? > +void mxc_epdc_draw_mode0(struct mxc_epdc *priv) What does mode 0 imply? An overview of the possible modes would be appreciated. > +{ > + u32 *upd_buf_ptr; > + int i; > + u32 xres, yres; > + > + upd_buf_ptr =3D (u32 *)priv->epdc_mem_virt; > + > + epdc_working_buf_intr(priv, true); > + epdc_lut_complete_intr(priv, 0, true); > + > + /* Use unrotated (native) width/height */ > + xres =3D priv->epdc_mem_width; > + yres =3D priv->epdc_mem_height; > + > + /* Program EPDC update to process buffer */ > + epdc_set_update_area(priv, priv->epdc_mem_phys, 0, 0, xres, yres, 0); > + epdc_submit_update(priv, 0, priv->wv_modes.mode_init, UPDATE_MODE_FULL, > + false, true, 0xFF); > + > + dev_dbg(priv->drm.dev, "Mode0 update - Waiting for LUT to complete...\n= "); > + > + /* Will timeout after ~4-5 seconds */ > + > + for (i =3D 0; i < 40; i++) { > + if (!epdc_is_lut_active(priv, 0)) { > + dev_dbg(priv->drm.dev, "Mode0 init complete\n"); > + return; > + } > + msleep(100); > + } > + > + dev_err(priv->drm.dev, "Mode0 init failed!\n"); > +} > +#define WAVEFORM_MODE_GLR16 4 > +#define WAVEFORM_MODE_GLD16 5 > +#define WAVEFORM_MODE_AUTO 257 (How) are these mode numbers related to "mode 0"? Jonathan --KGiIJO+uT5QL2O/C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEvHAHGBBjQPVy+qvDCDBEmo7zX9sFAmItAOYACgkQCDBEmo7z X9t/Fw//WJXYK5In6OQvEJeTImkCzhxbqniGCtE1+Jw/e2CfJQhBvZ77tElUhbHk 7IMr9JVLrQ19o32h7p/xFdeM6PWNVOiYFP7woHiU3SXasNB8t6JHxnUkX7CXhZvL 0FmfHtJRVGljFKi9VDMkicJxBwxsOQoEbAmfUiRdcimwjjDjKLl4HThP1kPaeMBm 6NEKVqBp5KoTqHmB+1XLfM9dZGwxrzHs5QYlAnyZZzv/OuZUgSjzhB2qK45nr8UH 1C7Psmeo7MaYP+ZqgqeYU3k9PcrQ9OxUUZ9HKjdPJ61oXhuTR0wesGpPulOxPbV/ uloHVV8bdYyVYrr/CAs3bhL5GvhcTkuTGO9y3OUW74l9xRsn8xQxwio6NbvSigdn 6AfjUk9F298wN7d3j7scryZ8RuDFkuocWSm0NdUhynQb2LeRXwYNz35KDq34DSgQ SmR99dsdQJnqPre7oz7NQr6mPw3lretW5Rbfai60Wp5POwvLLXktZX4tVnkM0CBz g0wZoXJywqgoRMcd1jRSUzcZMytfBss1dz7j3Fg3PNk7EylJ+/xWv72ZUOTMftXW 6hvwHRyo9SUpNi0sCWT1uh6aPAgrt2xQkTBObb9UJozSfL6mSxIChRbuSHKeLz4q reX0HS0EEgsFYoVROEVMNxqS3kKg78ceqbE4Q6bnWZ2dpNHya0E= =SlcQ -----END PGP SIGNATURE----- --KGiIJO+uT5QL2O/C--