1. Dec 12, 2022
  2. Dec 08, 2022
  3. Dec 07, 2022
  4. Dec 06, 2022
    • Mark Brown's avatar
      ASoC: Intel: avs: Data probing and fw logging · 8e378ea1
      Mark Brown authored
      Merge series from Cezary Rojewski <cezary.rojewski@intel.com>:
      
      The patchset focuses on debug functionality for the avs-driver.
      Two major blocks are covered here: data probing and AudioDSP firmware
      logging. Both are configured and controlled through debugfs.
      
      Data probing is a AudioDSP debug functionality which allows for
      gathering the actual data that is being routed to or from a module.
      Helps in debugging its processing capabilities - navigate to a specific
      module which may have caused a glitch within a pipeline (set of modules
      bound together).
      
      First few allow for assigning compress stream to a HDAudio stream, what
      is currently limited to pcm substreams only. These patches were already
      present on this list and reviewed in the past [1].
      
      The next few tidy existing debug-related code up so it's ready for
      addition of new functionalities and make it clear which part of the avs
      is debug related and which is not. These also simplify the existing
      locking around the trace fifo.
      
      Afterward, debug-related IPCs are defined along with stub soc-component
      and compress DAI operations. Not much is done there as it's not a
      standard PCM streaming scenario. Most code found in compress operations
      is inherited from the HOST side of HDAudio streaming found in pcm.c
      file of the driver.
      
      Finally, a debugfs file operations are defined. These facilitate
      connecting to DSP modules from which the data shall be gathered as well
      as control and configuration of firmware logging. Additionally, entries
      are added to allow for dumping snapshots of key memory windows.
      8e378ea1
    • Yang Yingliang's avatar
      ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove() · 1b41beaa
      Yang Yingliang authored
      sof_es8336_remove() calls cancel_delayed_work(). However, that
      function does not wait until the work function finishes. This
      means that the callback function may still be running after
      the driver's remove function has finished, which would result
      in a use-after-free.
      
      Fix by calling cancel_delayed_work_sync(), which ensures that
      the work is properly cancelled, no longer running, and unable
      to re-schedule itself.
      
      Fixes: 89cdb224
      
       ("ASoC: sof_es8336: reduce pop noise on speaker")
      Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
      Acked-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Link: https://lore.kernel.org/r/20221205143721.3988988-1-yangyingliang@huawei.com
      
      
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      1b41beaa
    • Mark Brown's avatar
      Add SOF panic dump support for AMD platform. · 9472382d
      Mark Brown authored
      Merge series from V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>:
      
      Fix an issue with starting the ACP DSP and support debug dumps to aid
      maintainability.
      9472382d
  5. Dec 05, 2022