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 X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 477A8C433ED for ; Wed, 28 Apr 2021 07:44:21 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CDF73613EF for ; Wed, 28 Apr 2021 07:44:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CDF73613EF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A57B06EAB3; Wed, 28 Apr 2021 07:44:19 +0000 (UTC) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C3046EAB3 for ; Wed, 28 Apr 2021 07:44:18 +0000 (UTC) Received: by mail-lf1-x133.google.com with SMTP id y4so57438378lfl.10 for ; Wed, 28 Apr 2021 00:44:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=thW82rDcTuGkAEYEUu/1zvwdP/zSQxEf4cpdPKEN9Fw=; b=GREod1Sa3NlLfFrsd1ubTt63nql3bYY6ucUgryjpEMAD/gSEYedsK5CC2ngH7EnbfI jVKuqXK2WenEqp8UdVGSlTCM1jodb+FT840hgrjoyXjDpAiKGyT7ZD3NVuZn2B8fC6kD jl50oEFwWWdVPx6tevTGkjQRSFX+MLNv6O/SfvFHbP8TiDPudnxAzX1W3Kn5I/SbbPbn wCD2M8nxWZDZ7w9FuAGvj77QNSGvgCQ5fpgH1ZC3CFFfKr+OWYrveZtcM8zb9BLrZb2/ PsaygHGmiQ59PxLZCmg+IC+a1lwYB+EGVuryzJnuxSSyaQwP1HmmrEya11cxvwqwY8g0 gkfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=thW82rDcTuGkAEYEUu/1zvwdP/zSQxEf4cpdPKEN9Fw=; b=NdJ+IupDsB673Lr3yFBSt9do4I3+sbhN4sLumwyUAmGVl5VMsTdKrkc8LhAUFJODtY oQvxlwPaTDWzdBpu8NrZTPWBja7mHrqZMjuNXNyHmUTbrT2R5jOb+niItuLDMODDnmG8 NfvoDOyl1LdiSvvydWgCTH6DbLwAz4nUfwMCgityJTRADwGb4L/lcJuEC2JswWWovqHI SY7fxtOHlp/CXWI63yTCpKHXvTok1MRf5mApxIsN5KzGpOGsaJVresGwgEgNnjlskX// NCO9LhuG9CspoyaKqGXSG3MvHbs651TdlHAnWxaImDipyg8rxjNZQHwP2FWpp5XtTXMe haug== X-Gm-Message-State: AOAM533BJPLUae9gq1UNVFs3nw2VP8JI83+hOBAtc4fmjZQoWB+2Pbfc D3IWXWZDt6H+JRhX3Yd4Vwc= X-Google-Smtp-Source: ABdhPJwtLnpnb24GBbAJvfZjBEEyNGV/Ue+oWCuGy08cK6xpUH3BxpyQBz1Pz+UxthRkMnMzvh/CYA== X-Received: by 2002:a19:550b:: with SMTP id n11mr19199757lfe.213.1619595856928; Wed, 28 Apr 2021 00:44:16 -0700 (PDT) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id d20sm528137lfn.41.2021.04.28.00.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 00:44:16 -0700 (PDT) Date: Wed, 28 Apr 2021 10:44:03 +0300 From: Pekka Paalanen To: Simon Ser Subject: Re: Display notch support Message-ID: <20210428104403.1e49f270@eldfell> In-Reply-To: References: X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 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: martijn@brixit.nl, Caleb Connolly , dri-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht Content-Type: multipart/mixed; boundary="===============1750622642==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============1750622642== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/rDquM437Q7YXjm92tPTEso."; protocol="application/pgp-signature" --Sig_/rDquM437Q7YXjm92tPTEso. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 28 Apr 2021 07:21:28 +0000 Simon Ser wrote: > > A solution to make this configuration generic and exposed by the kernel > > would standardise this across Linux =20 >=20 > Having a KMS property for this makes sense to me. >=20 > Chatting with Jani on IRC, it doesn't seem like there's any EDID or > DisplayID block for this. >=20 > Note, Android exposes a data structure [1] with: >=20 > - Margin of the cut-out for each edge of the screen > - One rectangle per edge describing the cut-out region > - Size of the curved area for each edge of a waterfall display >=20 > I haven't found anything describing the rounded corners of the display. >=20 > [1]: https://developer.android.com/reference/android/view/DisplayCutout Hi, I'm kind of worried whether you can design a description structure that would be good for a long time. That list already looks quite complicated. Add also watch-like devices with circular displays. Would the kernel itself use this information at all? If not, is there not a policy that DT is not a userspace configuration store? You mentioned the panel orientation property, but that is used by the kernel for fbcon or something, is it not? Maybe as the default value for the CRTC rotation property which actually turns the image? Assuming that you succeed in describing these non-usable, funny (waterfall edge), funny2 (e.g. behind a shade or filter so visible but not normal), funny3 (e.g. phone button area with maybe tactile markings), and normal areas, how would userspace handle this information? Funny2 and funny3 are hypothetical but maybe not too far-fetched. Is there any provision for generic userspace to handle this generically? This seems more like a job for the hypothetical liboutput, just like recognising HMDs (yes, I know, kernel does that already, but there is a point that kernel may not want to put fbcon on a HMD). Thanks, pq --Sig_/rDquM437Q7YXjm92tPTEso. Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmCJEkMACgkQI1/ltBGq qqdcyg/7Bqx0jukraVQF/vrHaegzka1iUCS1jFkLSq47iftYgDWxlUiHEFftwKwf XDe5sZVEDY0ARzC6Tw/Jfsl7x9yFW1R+UZRpH5gssbhW0Pod+ZKXG+k1IdKCQjJ7 aSR3redgLEGtkjTSvpWvSr/IR/0K3YQF7N/qkFvIccloc1jGtKGcmyWdbMimyyZk KLWymdQ6gM7bRZ42wkfvitPnTaynK+u2ZGuyq59QteZt0zpWiyPVCnzQU0buYqR+ NeTePmIfWvUDi7tfv/79JbGvMnGDnv27Qv3+zY0Kiea2gri0wdwT2pmLKUWnTA1P xodLPk/3bVAboT7R5sDl5bGSCOb63UBG4qK7H1WOY5Bet4iJ5MyFdfmPlL8NK3UA U8PaNqn/XPc/MSjygqZx6iC5ACuyeE7+ej8kfMLzOa5b+CXJJVXPL/oJ6Ka06vd0 LIVEJ5mayB2lmFoHe+OYqfjpuNNFkq7+u5rpZ8G3JH0crbtVhNh3CKFwxDU9bJ8w ouCPqz24825pCnHYT6sHlBRy3OOPcbJ/av7beli6HRdaczEBmtpA4wxiLW4wkIqb sYdIY6EYJiVM7DerO+MrKGYy2pN5AUDGqD2DtR2HHbFA/Vp0Sx29vgZEfHnVSrBZ 85r7OJ/PMCb5CywFSKAbq8eDSuz4IwhIGzDCRUYDYZqXPWYd7uo= =g0fV -----END PGP SIGNATURE----- --Sig_/rDquM437Q7YXjm92tPTEso.-- --===============1750622642== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1750622642==--