From: Tomi Valkeinen Subject: Re: [PATCH] drm/atomic: Introduce drm_atomic_helper_shutdown Date: Wed, 29 Mar 2017 10:00:56 +0300 Message-ID: References: <20170321152610.27203-1-daniel.vetter@ffwll.ch> <20170321164149.31531-1-daniel.vetter@ffwll.ch> <95f9a5b3-603d-b1b5-8d58-2f1447a572cb@ti.com> <20170327074341.fumvufukqc2w4ro7@phenom.ffwll.local> <1bea7a24-59d8-326a-a231-f6cec65d1445@ti.com> <20170328142237.npdrgsu4kf47yofe@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0569441401==" Return-path: In-Reply-To: <20170328142237.npdrgsu4kf47yofe@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter Cc: Daniel Vetter , Intel Graphics Development , Ben Skeggs , DRI Development , Daniel Vetter List-Id: dri-devel@lists.freedesktop.org --===============0569441401== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="UiMrr5cBTvNJRhK77708fn0Cs0hhP5NsP" --UiMrr5cBTvNJRhK77708fn0Cs0hhP5NsP Content-Type: multipart/mixed; boundary="f0BIo0m21HRSE7dHVAMEepFgL2RIBawo4"; protected-headers="v1" From: Tomi Valkeinen To: Daniel Vetter Cc: Daniel Vetter , Intel Graphics Development , DRI Development , Ben Skeggs , Daniel Vetter Message-ID: Subject: Re: [PATCH] drm/atomic: Introduce drm_atomic_helper_shutdown References: <20170321152610.27203-1-daniel.vetter@ffwll.ch> <20170321164149.31531-1-daniel.vetter@ffwll.ch> <95f9a5b3-603d-b1b5-8d58-2f1447a572cb@ti.com> <20170327074341.fumvufukqc2w4ro7@phenom.ffwll.local> <1bea7a24-59d8-326a-a231-f6cec65d1445@ti.com> <20170328142237.npdrgsu4kf47yofe@phenom.ffwll.local> In-Reply-To: <20170328142237.npdrgsu4kf47yofe@phenom.ffwll.local> --f0BIo0m21HRSE7dHVAMEepFgL2RIBawo4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 28/03/17 17:22, Daniel Vetter wrote: >> This is a bit related to the other annoyance, which is that we don't >> reset properties when a DRM app quits. I think the state of the HW >> should be restored to exactly the same state as it was (including >> turning off the crtcs). I'm planning to have a look at this whenever I= >> happen to find some time... >=20 > I have a blog post with all the ideas from last time around we've > discussed this: >=20 > http://blog.ffwll.ch/2016/01/vt-switching-with-atomic-modeset.html >=20 > Consensus was that we'll look at this again when someone has a real use= > case that needs it. And then maybe still decide that they just need a > system compositor :-) Thanks for the link. I now see this is pretty messed up (but necessary) stuff we have =3D). The situation on our embedded devices is often a bit simpler: no system compositors, one VT, (hopefully soon) no fbdev, and we have a clear reset state. Reading the text makes me think the state should be somehow explicitly passed from one compositor to the other, which would keep that state active on the kernel side, but if that's even sanely possible, I have no idea... I guess I'll have to deal with this in the userspace for now, and I'll add a helper to kms++ library which will disable and reset everything it can. Tomi --f0BIo0m21HRSE7dHVAMEepFgL2RIBawo4-- --UiMrr5cBTvNJRhK77708fn0Cs0hhP5NsP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJY21uoAAoJEPo9qoy8lh719iwP+wUHYw44flVRqQjS0mVIE8vj bUhJKM430fvArIblAoqRA5xUc1lAFT/rMjl7SNgnV8Ey+Rr8ZlmNb7tfmhyPkWwe F6TDh2K99lucYF4h+SPkoDKuUnPIKtTlzqP+qVi10CW0xhU9cLwar59r/gCMBI1K yPA3F4+YkBgoS6z/PsXgdwW+J1RmgYf0Apu9IXDIJWJS8+ZAvRDNTTHrS75DzGHb wvW8GQnAgW3BRiGhAf3hbrBeFiRpYcFm+TC6bn/Jh/gTzWBc5X9CdNW0bwJoOaCz b7nfsBhViAmncNraaxoV+1RQnJSSs3CAzodgzHIuLeJDAvEE18LEd1UG0U/X/mP1 944dyL/jJDaxhwxp5GSkXWXMmmWAxKavM1E0O7D3qIA3KYZunhZCNBnzFYyG3f+r 7OKCnfYe2LJ5UWSnjuTzZL5tSln7EWQDwm4RUoJSoTHqEfIZQ1HG4LohztoN2Gul fFiEBeWJdy3VId6XHQ86fi548N3n9P+s2oPTOnBkYenhfYM3QL0z8IEXwuoJZ+ND SX9vUBa8mLElIgb2rp0Sn4krLCAfltZLtTr/8UmaoQAB1Wf6NwhixdK7TGLtR/HR 8kEye6UGnwo9dSqSNCL+QCURr4GK5cjDumczAWFvaPS1F5JCrjQ3x49Jy4tDt4/E WDi1aSksT4gBz3lYF9bn =K0uA -----END PGP SIGNATURE----- --UiMrr5cBTvNJRhK77708fn0Cs0hhP5NsP-- --===============0569441401== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0569441401==--