From: Pekka Paalanen Subject: Re: [PATCH v7] unstable/drm-lease: DRM lease protocol support Date: Fri, 18 Oct 2019 18:26:05 +0300 Message-ID: <20191018182605.04e6fb86@eldfell.localdomain> References: <20191018173437.0c07c2db@eldfell.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0854926191==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Drew DeVault Cc: Daniel Vetter , Marius Vlad , DRI Development , wayland List-Id: dri-devel@lists.freedesktop.org --===============0854926191== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/W5cKZ7u6MN0gD1M3u0AAl8X"; protocol="application/pgp-signature" --Sig_/W5cKZ7u6MN0gD1M3u0AAl8X Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 18 Oct 2019 10:43:16 -0400 "Drew DeVault" wrote: > Regarding hotplugging, the Wayland compositor is probably keeping track > of hotplugs itself and withdrawing/offering connectors as appropriate. > Also, when the lease is issued, the compositor withdraws that connector. > For the client, upon hotplug I imagine the DRM asks start to fail, and > it handles that accordingly (presumably it'll close the lease, if the > compositor hasn't already, and wait for it to come back, or just exit). DRM KMS operations do not fail merely because a connector becomes disconnected. You can even force on a connector that is initially disconnected. If you mean on revoking the lease or losing DRM master, yes, then I'd expect KMS ioctls start to fail. But is disconnection reason enough to revoke the lease? I guess we shall see. > When a hotplug of a leased connector happens on the compositor side, it > can notice this and exercise its descretion in the implementation. I > think the current text of the protocol supports this view. Ok, so the expectation is that a compositor does not offer disconnected connectors, and withdraws offered but then disconnected connectors, and that it sends offers for connectors that become connected while leasable. I suppose that is reasonable, I still think a sentence suggesting towards such behaviour would be in place. Btw. there is more to hotplug events than just connected/disconnected: link status changes, and HDCP status changes. I suspect more is coming, too. At some point we might need to add a hotplug event in the protocol, but I think that is easy to do even after stabilization. Thanks, pq --Sig_/W5cKZ7u6MN0gD1M3u0AAl8X Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAl2p2Y0ACgkQI1/ltBGq qqfGOA/7BpUzGHIiykDdtEUdK0lqOmgS/J5qB0ZoHkj3Pee/7nJgoaPR9pIJnVcq IdT1MXf04GV+6huwsDbV4yIr2cWilKwBxxMyXGYeuPZ2ds7K9Db003wPjWKXq5E2 DuVVbcYXR0l4+Cu6nlvR+aiWWc9O4XoZVrjLxY6v2CqGjQDqSlyE23gwfPWdRe4z xE6gcJl2I3eEGpJf79buFb+UpX0mEP9AuGrOKJMTgU+RcUsiAQV9zCNwDYrHAHig N4Wo7pJKPc12WkFCEK8W+mgYrDzGGpQt9FHCRYStMlwkGe300c4amsU+RegNeFoz jgfpP/70q6UIhomJf9jAJKT7zY0VR5InCltXqJJq8ZUWZy06p0K34tSRUIpuODo7 2S11WaYkvFk5TcPtm1ufJmdony05ud856/AVXFHuvQkgroHGQ1XnKSnpx6YZlmqs Wydjwfhg5yVHDz0nhMYxWyvyRikIBaCk5yY4v9pBpBicFjO7GTGtmHj9MZTYEPkE y/DJUFm9p1clbWg9sCvgOxvoU0BNcV/AFkK9WxIQyGishOgJHxb1ex7KoNPknuKn dG7sf/PuJiiuuc+HexxKDNwVfgIiivl95i66yoKYrPum0ZbnfXupHSXfCaBTgTub qbJ3OMZOCyBtDrlwcbWHjHxTOHoKfpmWCh9LnWcJ5vQFeXCUbcg= =4vSe -----END PGP SIGNATURE----- --Sig_/W5cKZ7u6MN0gD1M3u0AAl8X-- --===============0854926191== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0854926191==--