dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* DRM driver and runtime suspend-resume handling?
@ 2020-01-13 11:03 Jyri Sarha
  2020-01-14  4:29 ` Daniel Vetter
  0 siblings, 1 reply; 2+ messages in thread
From: Jyri Sarha @ 2020-01-13 11:03 UTC (permalink / raw)
  To: dri-devel; +Cc: Valkeinen, Tomi, Laurent Pinchart

Hi,
While working with CRTC color related properties (gamma and CTM for
instance) and making them persistent over suspend-resume cycle it
occurred to me if I am just wasting resources by storing the property
values in the driver and restoring them in dev_pm_ops runtime_resume()..

Wouldn't it work if I would just:

1. Add a flag in the driver to indicate that the context may have been
lost since the previous atomic commit and set in runtime_resume().

2. And write the color properties to HW if the context lost flag is set
even if the drm_crtc_state color_mgmt_changed is false.

The color property values are there despite the color_mgmt_changed ==
false, aren't they?

Best regards,
Jyri

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-14  4:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 11:03 DRM driver and runtime suspend-resume handling? Jyri Sarha
2020-01-14  4:29 ` Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).