mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Richard Fitzgerald <rf@opensource.cirrus.com>
To: Nico Pache <npache@redhat.com>, Mark Brown <broonie@kernel.org>
Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com,
	simont@opensource.cirrus.com, ckeepax@opensource.cirrus.com,
	brendan.higgins@linux.dev, davidgow@google.com, rmoar@google.com,
	johannes.berg@intel.com, sj@kernel.org
Subject: Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it
Date: Sat, 22 Mar 2025 10:23:46 +0000	[thread overview]
Message-ID: <7978f070-25b7-44c0-a110-c759551a2567@opensource.cirrus.com> (raw)
In-Reply-To: <CAA1CXcD4GRQhUf6BZ+STdKTpvzGKTA-kVidbcGZsKabu=_y6Sw@mail.gmail.com>

On 21/3/25 15:01, Nico Pache wrote:
> I'm a little confused how the FW_CS_DSP config which was added in
> v5.16 is reliant (library code that is only used by KUNIT) on a config
> that was added in v6.14. Presumably the library is not just for the
> KUNIT test. What was the purpose of this config before the
> introduction of the KUNIT test. Im guessing it was not user selectable
> back then too.
> 
All this cs_dsp code was originally in sound/soc/codecs/wm_adsp.c.
The main DSP support was moved out into the generic cs_dsp library
so we can support using the DSP with non-ASoC drivers, and on devices
that are not sound chips. The drivers that use the cs_dsp library
select the Kconfig.
(ISTR that the config option may have been renamed to FW_CS_DSP at some
point, so could have a different name in older kernels.)

>>
>>> It also looks like FW_CS_DSP_KUNIT_TEST_UTILS and FW_CS_DSP_KUNIT_TEST
>>> are redundant.
>>
>> Possibly there's more tests to come that'll use them?
> 
Yes, that is explained in the commit message that added this config
symbol. As this has been split out of wm_adsp, we still need to test
the functionality that was left in wm_adsp. I wrote the test utils
functions as a library so that a wm_adsp kunit test can re-use it.
I am still working on the wm_adsp kunit test.

  parent reply	other threads:[~2025-03-22 10:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-19 23:05 Nico Pache
2025-03-19 23:11 ` Nico Pache
2025-03-20 12:20   ` Richard Fitzgerald
2025-03-20 17:33     ` Nico Pache
2025-03-20 17:35       ` Nico Pache
2025-03-22 10:11         ` Richard Fitzgerald
2025-03-22 19:02           ` Richard Fitzgerald
2025-03-22 20:28             ` Richard Fitzgerald
2025-03-25 17:10             ` Mark Brown
2025-03-24 18:34           ` Nico Pache
2025-03-20 19:13 ` Mark Brown
2025-03-20 22:21   ` Nico Pache
2025-03-20 22:48     ` Mark Brown
2025-03-21 11:37       ` Nico Pache
2025-03-21 14:51         ` Mark Brown
2025-03-21 15:01           ` Nico Pache
2025-03-21 15:51             ` Mark Brown
2025-03-24 18:31               ` Nico Pache
2025-03-22 10:23             ` Richard Fitzgerald [this message]
2025-04-08  9:25 ` Richard Fitzgerald
2025-04-11 12:39   ` Richard Fitzgerald
2025-04-11 14:54     ` Nico Pache

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=7978f070-25b7-44c0-a110-c759551a2567@opensource.cirrus.com \
    --to=rf@opensource.cirrus.com \
    --cc=brendan.higgins@linux.dev \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.cirrus.com \
    --cc=davidgow@google.com \
    --cc=johannes.berg@intel.com \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=npache@redhat.com \
    --cc=patches@opensource.cirrus.com \
    --cc=rmoar@google.com \
    --cc=simont@opensource.cirrus.com \
    --cc=sj@kernel.org \
    /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

all inboxes | Powered by JetHome®