You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The i915 power management is a bit misleading in the power is turned on/off in multiple places. It's unconditionally turned on/off in hda_codev_i915_init/exit and conditionally everyone else. that's fine, but @ujfalusi has a point that this is a no-op in hda.c
if (!HDA_IDISP_CODEC(bus->codec_mask))
hda_codec_i915_display_power(sdev, false);
this code was added by @kv2019i in 0c75419, but our very own @kv2019i added an additional filter in 816938b which now makes the initial code a no-op.
One of the two changes is correct, which one @kv2019i ?
Good catch @ujfalusi@plbossart . Both of those patches are good, but I got trapped by my own cleverness in 71cc8ab which incorrectly added the no-op. That bit is harmless and can be removed as the power reference is not taken in hda_codec_i915_init() if no i915 codec is found.
I was actually thinking of removing both lines, but actually you are right, this is actually broken in the case that a) i915 is present, b) display codec for some reason doesn't show up on HDA bus. With current code, we keep display power on always.
But yeah, fixing this requires more thought and covering all the various ways display codec can go missing...
Activity
kv2019i commentedon Nov 4, 2022
Good catch @ujfalusi @plbossart . Both of those patches are good, but I got trapped by my own cleverness in 71cc8ab which incorrectly added the no-op. That bit is harmless and can be removed as the power reference is not taken in hda_codec_i915_init() if no i915 codec is found.
plbossart commentedon Nov 4, 2022
Not quite following @kv2019i, is this that you are suggesting?
kv2019i commentedon Nov 4, 2022
I was actually thinking of removing both lines, but actually you are right, this is actually broken in the case that a) i915 is present, b) display codec for some reason doesn't show up on HDA bus. With current code, we keep display power on always.
But yeah, fixing this requires more thought and covering all the various ways display codec can go missing...
plbossart commentedon Nov 4, 2022
ok, let's sleep on it @kv2019i. it's not urgent
plbossart commentedon Aug 12, 2024
@ujfalusi @kv2019i I'll let you decide if we need to keep this issue open.