Skip to content

drm/i915: do AUD_FREQ_CNTRL state save on all gen9+ platforms - #2167

Merged
kv2019i merged 1 commit into
thesofproject:topic/sof-devfrom
kv2019i:topic/backport-gen9-aud-freq-cntrl-fix
Jun 4, 2020
Merged

kv2019i merged 1 commit into
thesofproject:topic/sof-devfrom
kv2019i:topic/backport-gen9-aud-freq-cntrl-fix

Conversation

@kv2019i

@kv2019i kv2019i commented Jun 3, 2020

Copy link
Copy Markdown
Collaborator

Backport patch that is already merged upstream to drm-intel tree:
Fixes: #2156
Fixes: #2154

Replace the TGL/ICL specific platform checks with a more generic check
using INTEL_GEN(). Fixes bug with broken audio after S3 resume on JSL
platforms.

An initial version of state save and restore of AUD_FREQ_CNTRL register
was added for subset of platforms in commit 87c1694
("drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend"). The state
save has proven to work well and it is needed in newer platforms, so needs
to be extended. Although the logic is not in practise needed on GEN9/10
systems, follow the hardware specification and apply state and restore on
all gen9+ platforms.

Bspec: 49281
Link: #1719
Signed-off-by: Kai Vehmanen [email protected]
Signed-off-by: Ville Syrjälä [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Matt Roper [email protected]

Replace the TGL/ICL specific platform checks with a more generic check
using INTEL_GEN(). Fixes bug with broken audio after S3 resume on JSL
platforms.

An initial version of state save and restore of AUD_FREQ_CNTRL register
was added for subset of platforms in commit 87c1694
("drm/i915: save AUD_FREQ_CNTRL state at audio domain suspend"). The state
save has proven to work well and it is needed in newer platforms, so needs
to be extended. Although the logic is not in practise needed on GEN9/10
systems, follow the hardware specification and apply state and restore on
all gen9+ platforms.

Bspec: 49281
Link: thesofproject#1719
Signed-off-by: Kai Vehmanen <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Matt Roper <[email protected]>

@plbossart plbossart left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we have this already? or maybe as a draft? I've seen this before.

@kv2019i

kv2019i commented Jun 3, 2020

Copy link
Copy Markdown
Collaborator Author

@plbossart wrote:

Didn't we have this already? or maybe as a draft? I've seen this before.

I thought so, too. We had this
#1881
... and I even stated in this issue that we have a version merged to sof-dev, so we can close. So looks like a mistake from me, plain and simple. Maybe I thought it came back via upstrema merge, but didn't check carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants