From: Takashi Iwai Subject: Re: [PATCH 0/2] Fixes for SOF module unload/reload Date: Wed, 26 Jun 2019 08:44:18 +0200 Message-ID: References: <20190626062935.5549-1-ranjani.sridharan@linux.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id F052DF806F0 for ; Wed, 26 Jun 2019 09:03:53 +0200 (CEST) In-Reply-To: <20190626062935.5549-1-ranjani.sridharan@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Ranjani Sridharan Cc: libin.yang@intel.com, alsa-devel@alsa-project.org, broonie@kernel.org, pierre-louis.bossart@linux.intel.com List-Id: alsa-devel@alsa-project.org On Wed, 26 Jun 2019 08:29:33 +0200, Ranjani Sridharan wrote: > > A recent commit "ALSA: hdac: fix memory release for SST and SOF drivers" > removed the kfree call for the hdac device in > snd_hdac_ext_bus_device_exit(). This requires that the SOF driver > also make the hdac_device and hdac_hda_priv device-managed so > that they can be freed when the SOF module in unloaded. The first > patch takes care of this change. > > Additionally, because of the above change, the hda_codec is > device-managed and freeing it in snd_hda_codec_dev_release() leads > to kernel panic with module unload/reload stress tests. The second > patch includes the change to avoid freeing hda_codec for ASoC driver. In such a case, both patch need to be put into a single patch. Otherwise it leads to a bisection failure. thanks, Takashi > > More details for the module unload/reload test failures can be found > here: https://github.com/thesofproject/linux/issues/966 > > Ranjani Sridharan (2): > ASoC: SOF: Intel: hda: Make hdac_device device-managed > ASoC: hda: don't free hda_codec for HDA_DEV_ASOC type > > sound/pci/hda/hda_codec.c | 8 +++++++- > sound/soc/sof/intel/hda-codec.c | 6 ++---- > 2 files changed, 9 insertions(+), 5 deletions(-) > > -- > 2.17.1 >