From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com,
Mateusz Gorski <mateusz.gorski@linux.intel.com>
Subject: Re: [PATCH] ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in autosuspend delay
Date: Wed, 22 Jul 2020 20:59:05 +0200 [thread overview]
Message-ID: <014d8a2f-1ba7-1872-73b2-2384d908de79@intel.com> (raw)
In-Reply-To: <2674621e-1546-3048-3ba2-f8fe1265d6e1@linux.intel.com>
On 2020-07-22 8:24 PM, Pierre-Louis Bossart wrote:
>
>
> On 7/22/20 12:35 PM, Mateusz Gorski wrote:
>> Different modules for HDMI codec are used depending on the
>> "hda_codec_use_common_hdmi" option being enabled or not. Driver private
>> context for both of them is different.
>> This leads to null-pointer dereference error when driver tries to set
>> autosuspend delay for HDMI codec while the option is off (hdac_hdmi
>> module is used for HDMI).
>>
>> Change the string in conditional statement to "ehdaudio0D0" to ensure
>> that only the HDAudio codec is handled by this function.
>
> I am not sure this is correct.
>
> I may be wrong, but my understanding is the following:
>
> Before 5bf73b1b1dec, the driver would use the first dailink of the card,
> and in the case of devices without an HDaudio codec (e.g. Up2 board) it
> would set the auto suspend delay using that first dailink. See the code
> in skl_hda_fill_card_info(), it reorders the dailinks when HDaudio
> codecs are not present so if you test for 'edhaudio00' you no longer
> allow for this HDMI-only case to be handled with autosuspend.
>
> Kai would need to review this, so this will have to wait I am afraid.
>
So, for_each_card_rtds needs to be context aware (hdmi type). Right now,
introduced _autosuspend_delay is causing kernel panics.
next prev parent reply other threads:[~2020-07-22 19:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 17:35 [PATCH] ASoC: Intel: skl_hda_dsp_generic: Fix NULLptr dereference in autosuspend delay Mateusz Gorski
2020-07-22 18:24 ` Pierre-Louis Bossart
2020-07-22 18:59 ` Cezary Rojewski [this message]
2020-07-22 19:04 ` Pierre-Louis Bossart
2020-08-12 13:48 ` Kai Vehmanen
2020-08-17 14:32 ` Gorski, Mateusz
2020-08-17 16:35 ` Kai Vehmanen
2020-08-19 12:15 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=014d8a2f-1ba7-1872-73b2-2384d908de79@intel.com \
--to=cezary.rojewski@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=mateusz.gorski@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox