| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/10/12 23:48 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch series only introduces KUnit helper macros (KUNIT_CASE_PARAM_UNIQUE and KUNIT_CASE_PARAM_WITH_INIT_UNIQUE) for unique test case naming, updates KUnit documentation, and updates test case arrays across various KUnit unit tests. No reachable operational or production kernel code is modified.",
"WorthFuzzing": false
} |
| 1/1 | 2026/10/12 23:48 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit b486f5ff27a3810abfd450c01ae11cfa14a2e107\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Mon Oct 12 23:48:11 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst\nindex 1c78dfff94e8a..193233fd29258 100644\n--- a/Documentation/dev-tools/kunit/usage.rst\n+++ b/Documentation/dev-tools/kunit/usage.rst\n@@ -662,6 +662,15 @@ Custom Parameter Generator Function:\n You can pass the generator function to the ``KUNIT_CASE_PARAM``\n or ``KUNIT_CASE_PARAM_WITH_INIT`` macros.\n \n+ These macros name the test case after the test function. If the same test\n+ function is listed in a suite with more than one generator (or, for\n+ ``KUNIT_CASE_PARAM_WITH_INIT``, more than one ``param_init()`` function)\n+ use ``KUNIT_CASE_PARAM_UNIQUE`` or ``KUNIT_CASE_PARAM_WITH_INIT_UNIQUE``\n+ instead. These also include the name of the generator or ``param_init()``\n+ function in the test case name, for example ``sha1_test-sha1_gen_params``,\n+ so that each case has a distinct name which can be selected with\n+ ``kunit.filter_glob=``.\n+\n The function receives the previously generated parameter as the ``prev`` argument\n (which is ``NULL`` on the first call) and can also access the parameterized\n test context passed as the ``test`` argument. KUnit calls this function\ndiff --git a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c\nindex 63416838f8653..40a827120d6c2 100644\n--- a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c\n+++ b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c\n@@ -2654,8 +2654,8 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {\n \tKUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),\n@@ -2687,8 +2687,8 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {\n \t\t\t packed_x_or_y_and_offset_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,\n \t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,\n \t\t\t packed_x_or_y_and_alg_gen_params),\n \tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,\n@@ -2705,103 +2705,100 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {\n \n static struct kunit_case cs_dsp_bin_test_cases_halo_wmdr3[] = {\n \t/* Unpacked memory */\n-\tKUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,\n+\t\t\t\tx_or_y_and_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,\n+\t\t\t\tx_or_y_and_offset_gen_params),\n \n \t/* Packed memory tests */\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_1_single_trailing,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_2_single_trailing,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_3_single_trailing,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_2_trailing,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_3_trailing,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_2_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_2_leading_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_3_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_3_leading_1_packed,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,\n-\t\t\t packed_x_or_y_and_alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs_unordered,\n-\t\t\t packed_x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_mixed_packed_unpacked_random,\n-\t\t\t packed_x_or_y_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_1_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_trailing, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_trailing, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_2_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_2_leading_1_packed, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_3_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_3_leading_1_packed, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked, packed_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_unordered,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_sparse_unordered,\n+\t\t\t\tpacked_x_or_y_and_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs_unordered,\n+\t\t\t\tpacked_x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_mixed_packed_unpacked_random, packed_x_or_y_gen_params),\n \n \t/* Unpacked memory with long-offset blocks */\n-\tKUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_long_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_long_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered,\n-\t\t\t x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered,\n+\t\t\t\tx_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_long_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,\n+\t\t\t\tx_or_y_and_alg_long_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs,\n+\t\t\t\tx_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,\n+\t\t\t\tx_or_y_and_long_offset_gen_params),\n \n \t/* Packed memory tests with long offset blocks */\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_1_single_trailing,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_2_single_trailing,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_3_single_trailing,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_2_trailing,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_3_trailing,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_2_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_2_leading_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_3_single_leading_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_3_leading_1_packed,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_long_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,\n-\t\t\t packed_x_or_y_and_alg_long_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs_unordered,\n-\t\t\t packed_x_or_y_and_long_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_mixed_packed_unpacked_random,\n-\t\t\t packed_x_or_y_long_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed, packed_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_1_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_single_trailing,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_trailing,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_trailing,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_2_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_2_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_3_single_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_3_leading_1_packed,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_unordered,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_long_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_sparse_unordered,\n+\t\t\t\tpacked_x_or_y_and_alg_long_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs_unordered,\n+\t\t\t\tpacked_x_or_y_and_long_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_mixed_packed_unpacked_random,\n+\t\t\t\tpacked_x_or_y_long_gen_params),\n \n \tKUNIT_CASE(bin_patch_name_and_info),\n \n@@ -2810,26 +2807,29 @@ static struct kunit_case cs_dsp_bin_test_cases_halo_wmdr3[] = {\n \n static struct kunit_case cs_dsp_bin_test_cases_adsp2[] = {\n \t/* XM and YM */\n-\tKUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,\n+\t\t\t\tx_or_y_and_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,\n+\t\t\t\tx_or_y_and_offset_gen_params),\n \n \t/* ZM */\n-\tKUNIT_CASE_PARAM(bin_patch_one_word, z_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_multiword, z_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword, z_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, z_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, z_and_alg_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, z_and_offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered, z_and_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, z_and_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,\n+\t\t\t\tz_and_offset_gen_params),\n \n \t/* Other */\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),\n-\tKUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),\n \n \tKUNIT_CASE(bin_patch_name_and_info),\n \ndiff --git a/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c b/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c\nindex b03cd7c37f6e4..0a072063dfa7a 100644\n--- a/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c\n+++ b/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c\n@@ -2987,12 +2987,12 @@ KUNIT_ARRAY_PARAM(all_pop_nonvol_write_only_length,\n \t\t cs_dsp_ctl_all_param_desc);\n \n static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,\n \t\t\t all_pop_nonvol_write_only_length_gen_params),\n@@ -3019,25 +3019,25 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {\n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running_zero_flags,\n \t\t\t all_pop_varying_len_gen_params),\n \n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),\n-\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_nonvol_writeable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n+\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,\n \t\t\t all_pop_nonvol_writeable_flags_gen_params),\n@@ -3075,12 +3075,12 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {\n static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {\n \tKUNIT_CASE(cs_dsp_ctl_v2_cache_alloc),\n \n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,\n \t\t\t all_pop_nonvol_write_only_length_gen_params),\n@@ -3108,25 +3108,25 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {\n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running_zero_flags,\n \t\t\t all_pop_varying_len_gen_params),\n \n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),\n-\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_nonvol_writeable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n+\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,\n \t\t\t all_pop_nonvol_writeable_flags_gen_params),\n@@ -3164,11 +3164,11 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {\n static struct kunit_case cs_dsp_ctl_cache_test_cases_v3[] = {\n \tKUNIT_CASE(cs_dsp_ctl_v2_cache_alloc),\n \n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,\n \t\t\t all_pop_nonvol_write_only_length_gen_params),\n@@ -3194,22 +3194,23 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v3[] = {\n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running,\n \t\t\t all_pop_nonvol_readable_nonzero_flags_gen_params),\n \n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),\n-\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,\n-\t\t\t all_pop_nonvol_writeable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n+\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,\n+\t\t\t\tall_pop_nonvol_writeable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,\n \t\t\t all_pop_nonvol_writeable_flags_gen_params),\ndiff --git a/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c b/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c\nindex d800f163b099e..085a1cb92912c 100644\n--- a/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c\n+++ b/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c\n@@ -2483,19 +2483,20 @@ KUNIT_ARRAY_PARAM(all_pop_volatile_writeable_flags,\n \t\t cs_dsp_ctl_all_param_desc);\n \n static struct kunit_case cs_dsp_ctl_rw_test_cases_adsp[] = {\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),\n-\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_z_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running,\n-\t\t\t all_pop_volatile_readable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),\n+\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,\n+\t\t\t\tall_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_z_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,\n+\t\t\t\tall_pop_volatile_readable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_not_started,\n \t\t\t all_pop_volatile_readable_flags_gen_params),\n@@ -2559,17 +2560,18 @@ static struct kunit_case cs_dsp_ctl_rw_test_cases_adsp[] = {\n };\n \n static struct kunit_case cs_dsp_ctl_rw_test_cases_halo[] = {\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),\n-\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_offset_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),\n-\tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running,\n-\t\t\t all_pop_volatile_readable_flags_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),\n+\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,\n+\t\t\t\tall_pop_varying_offset_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,\n+\t\t\t\tall_pop_volatile_readable_flags_gen_params),\n \n \tKUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_not_started,\n \t\t\t all_pop_volatile_readable_flags_gen_params),\ndiff --git a/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c b/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c\nindex e7bf5dc474f59..44f9c8d71326b 100644\n--- a/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c\n+++ b/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c\n@@ -1219,12 +1219,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v0[] = {\n \tKUNIT_CASE(wmfw_err_bad_header_length),\n \tKUNIT_CASE(wmfw_err_bad_core_type),\n \n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n \n \t{ } /* terminator */\n };\n@@ -1236,12 +1242,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v1[] = {\n \tKUNIT_CASE(wmfw_err_bad_header_length),\n \tKUNIT_CASE(wmfw_err_bad_core_type),\n \n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n \n \tKUNIT_CASE(wmfw_too_short_for_alg_header),\n \tKUNIT_CASE(wmfw_v1_alg_name_unterminated),\n@@ -1258,12 +1270,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v2[] = {\n \tKUNIT_CASE(wmfw_err_bad_header_length),\n \tKUNIT_CASE(wmfw_err_bad_core_type),\n \n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_valid_block_types_adsp2_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n \n \tKUNIT_CASE(wmfw_too_short_for_alg_header),\n \tKUNIT_CASE(wmfw_v2_alg_name_exceeds_block),\n@@ -1284,12 +1302,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v3[] = {\n \tKUNIT_CASE(wmfw_err_bad_header_length),\n \tKUNIT_CASE(wmfw_err_bad_core_type),\n \n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_halo_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_halo_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_halo_gen_params),\n-\tKUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_valid_block_types_halo_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_valid_block_types_halo_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_valid_block_types_halo_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,\n+\t\t\t\twmfw_invalid_block_types_gen_params),\n \n \tKUNIT_CASE(wmfw_too_short_for_alg_header),\n \tKUNIT_CASE(wmfw_v2_alg_name_exceeds_block),\ndiff --git a/fs/ext4/extents-test.c b/fs/ext4/extents-test.c\nindex c3836ecb89f9c..5e70542b718b8 100644\n--- a/fs/ext4/extents-test.c\n+++ b/fs/ext4/extents-test.c\n@@ -1043,12 +1043,12 @@ static int test_handle_unwritten_init(struct kunit *test)\n * https://lore.kernel.org/linux-kselftest/aULJpTvJDw9ctUDe@li-dc0c254c-257c-11b2-a85c-98b6c1322444.ibm.com/\n */\n static struct kunit_case extents_test_cases[] = {\n-\tKUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,\n-\t\t\t\t test_split_convert_param_init, NULL),\n-\tKUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,\n-\t\t\t\t test_convert_initialized_param_init, NULL),\n-\tKUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,\n-\t\t\t\t test_handle_unwritten_init, NULL),\n+\tKUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,\n+\t\t\t\t\t test_split_convert_param_init, NULL),\n+\tKUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,\n+\t\t\t\t\t test_convert_initialized_param_init, NULL),\n+\tKUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,\n+\t\t\t\t\t test_handle_unwritten_init, NULL),\n \t{}\n };\n \ndiff --git a/include/kunit/test.h b/include/kunit/test.h\nindex da5312e0dfa57..e43f5e007f20c 100644\n--- a/include/kunit/test.h\n+++ b/include/kunit/test.h\n@@ -209,6 +209,24 @@ static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)\n \t\t{ .run_case = test_name, .name = #test_name,\t\\\n \t\t .generate_params = gen_params, .module_name = KBUILD_MODNAME}\n \n+/**\n+ * KUNIT_CASE_PARAM_UNIQUE - A helper for creating a parameterized \u0026struct\n+ * kunit_case named after both the test and its parameter generator\n+ *\n+ * @test_name: a reference to a test case function.\n+ * @gen_params: a reference to a parameter generator function.\n+ *\n+ * Identical to KUNIT_CASE_PARAM() except that the case is named\n+ * \"test_name-gen_params\" rather than \"test_name\". Use this when the same\n+ * test function is listed in a suite with more than one parameter generator,\n+ * where KUNIT_CASE_PARAM() would give every instance the same name. Test\n+ * names must be unique within a suite for the results to be unambiguous and\n+ * for filters such as kunit.filter_glob= to be able to select a single case.\n+ */\n+#define KUNIT_CASE_PARAM_UNIQUE(test_name, gen_params)\t\t\t\t\\\n+\t\t{ .run_case = test_name, .name = #test_name \"-\" #gen_params,\t\\\n+\t\t .generate_params = gen_params, .module_name = KBUILD_MODNAME}\n+\n /**\n * KUNIT_CASE_PARAM_ATTR - A helper for creating a parameterized \u0026struct\n * kunit_case with attributes\n@@ -248,6 +266,29 @@ static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)\n \t\t .param_init = init, .param_exit = exit,\t\t\t\\\n \t\t .module_name = KBUILD_MODNAME}\n \n+/**\n+ * KUNIT_CASE_PARAM_WITH_INIT_UNIQUE - Define a parameterized KUnit test case\n+ * with custom param_init() and param_exit() functions, named after both the\n+ * test and its param_init() function.\n+ * @test_name: The function implementing the test case.\n+ * @gen_params: The function to generate parameters for the test case.\n+ * @init: A reference to the param_init() function to run before a parameterized test.\n+ * @exit: A reference to the param_exit() function to run after a parameterized test.\n+ *\n+ * Identical to KUNIT_CASE_PARAM_WITH_INIT() except that the case is named\n+ * \"test_name-init\" rather than \"test_name\". Use this when the same test\n+ * function is listed in a suite with more than one param_init() function,\n+ * where KUNIT_CASE_PARAM_WITH_INIT() would give every instance the same\n+ * name. The param_init() function is used rather than the generator since\n+ * tests registering parameter arrays in param_init() all share the generic\n+ * kunit_array_gen_params() generator.\n+ */\n+#define KUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_name, gen_params, init, exit)\t\\\n+\t\t{ .run_case = test_name, .name = #test_name \"-\" #init,\t\t\\\n+\t\t .generate_params = gen_params,\t\t\t\t\\\n+\t\t .param_init = init, .param_exit = exit,\t\t\t\\\n+\t\t .module_name = KBUILD_MODNAME}\n+\n /**\n * struct kunit_suite - describes a related collection of \u0026struct kunit_case\n *\ndiff --git a/sound/soc/codecs/cs35l56-shared-test.c b/sound/soc/codecs/cs35l56-shared-test.c\nindex 4f52c8a192e55..c2aa524efbf63 100644\n--- a/sound/soc/codecs/cs35l56-shared-test.c\n+++ b/sound/soc/codecs/cs35l56-shared-test.c\n@@ -847,10 +847,10 @@ static struct kunit_case cs35l56_shared_test_cases[] = {\n \t\t\t cs35l56_shared_test_gpios_selftest_gen_params),\n \tKUNIT_CASE_PARAM(cs35l56_shared_test_get_onchip_speaker_id,\n \t\t\t cs35l56_shared_test_onchip_spkid_gen_params),\n-\tKUNIT_CASE_PARAM(cs35l56_shared_test_onchip_speaker_id_pad_config,\n-\t\t\t cs35l56_shared_test_onchip_spkid_gen_params),\n-\tKUNIT_CASE_PARAM(cs35l56_shared_test_onchip_speaker_id_pad_config,\n-\t\t\t cs35l56_shared_test_onchip_spkid_pull_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs35l56_shared_test_onchip_speaker_id_pad_config,\n+\t\t\t\tcs35l56_shared_test_onchip_spkid_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(cs35l56_shared_test_onchip_speaker_id_pad_config,\n+\t\t\t\tcs35l56_shared_test_onchip_spkid_pull_gen_params),\n \tKUNIT_CASE_PARAM(cs35l56_shared_test_stash_onchip_spkid_pins,\n \t\t\t cs35l56_shared_test_onchip_spkid_pull_gen_params),\n \tKUNIT_CASE(cs35l56_shared_test_stash_onchip_spkid_pins_reject_invalid),\ndiff --git a/sound/soc/codecs/wm_adsp_fw_find_test.c b/sound/soc/codecs/wm_adsp_fw_find_test.c\nindex ae686dc4fa94b..0b2b7db3f9f91 100644\n--- a/sound/soc/codecs/wm_adsp_fw_find_test.c\n+++ b/sound/soc/codecs/wm_adsp_fw_find_test.c\n@@ -1219,23 +1219,23 @@ KUNIT_ARRAY_PARAM(wm_adsp_fw_find_pick,\n \t\t wm_adsp_fw_find_test_param_desc);\n \n static struct kunit_case wm_adsp_fw_find_test_cases[] = {\n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_full_search_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_full_search_gen_params),\n \n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_system_alsaname_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_system_alsaname_gen_params),\n \n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_system_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_system_gen_params),\n \n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_alsaname_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_alsaname_gen_params),\n \n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_noqual_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_noqual_gen_params),\n \n-\tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,\n-\t\t\t wm_adsp_fw_find_normalization_gen_params),\n+\tKUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,\n+\t\t\t\twm_adsp_fw_find_normalization_gen_params),\n \n \tKUNIT_CASE_PARAM(wm_adsp_fw_find_test_pick_file,\n \t\t\t wm_adsp_fw_find_pick_gen_params),\n"
} |
| 2/1 | 2026/10/12 23:48 | agent | patch-evaluator |
1mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch series only introduces KUnit helper macros (KUNIT_CASE_PARAM_UNIQUE and KUNIT_CASE_PARAM_WITH_INIT_UNIQUE) for unique test case naming, updates KUnit documentation, and updates test case arrays across various KUnit unit tests. No reachable operational or production kernel code is modified.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit b486f5ff27a3810abfd450c01ae11cfa14a2e107
Author: syz-cluster <triage@syzkaller.com>
Date: Mon Oct 12 23:48:11 2026 +0000
syz-cluster: applied patch under review
diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst
index 1c78dfff94e8a..193233fd29258 100644
--- a/Documentation/dev-tools/kunit/usage.rst
+++ b/Documentation/dev-tools/kunit/usage.rst
@@ -662,6 +662,15 @@ Custom Parameter Generator Function:
You can pass the generator function to the ``KUNIT_CASE_PARAM``
or ``KUNIT_CASE_PARAM_WITH_INIT`` macros.
+ These macros name the test case after the test function. If the same test
+ function is listed in a suite with more than one generator (or, for
+ ``KUNIT_CASE_PARAM_WITH_INIT``, more than one ``param_init()`` function)
+ use ``KUNIT_CASE_PARAM_UNIQUE`` or ``KUNIT_CASE_PARAM_WITH_INIT_UNIQUE``
+ instead. These also include the name of the generator or ``param_init()``
+ function in the test case name, for example ``sha1_test-sha1_gen_params``,
+ so that each case has a distinct name which can be selected with
+ ``kunit.filter_glob=``.
+
The function receives the previously generated parameter as the ``prev`` argument
(which is ``NULL`` on the first call) and can also access the parameterized
test context passed as the ``test`` argument. KUnit calls this function
diff --git a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
index 63416838f8653..40a827120d6c2 100644
--- a/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
+++ b/drivers/firmware/cirrus/test/cs_dsp_test_bin.c
@@ -2654,8 +2654,8 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {
KUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),
KUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),
KUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),
KUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),
KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),
KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),
@@ -2687,8 +2687,8 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {
packed_x_or_y_and_offset_gen_params),
KUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,
packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_gen_params),
KUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,
packed_x_or_y_and_alg_gen_params),
KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,
@@ -2705,103 +2705,100 @@ static struct kunit_case cs_dsp_bin_test_cases_halo[] = {
static struct kunit_case cs_dsp_bin_test_cases_halo_wmdr3[] = {
/* Unpacked memory */
- KUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,
+ x_or_y_and_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,
+ x_or_y_and_offset_gen_params),
/* Packed memory tests */
- KUNIT_CASE_PARAM(bin_patch_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_1_single_trailing,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_2_single_trailing,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_3_single_trailing,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_2_trailing,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_3_trailing,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_single_leading_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_2_single_leading_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_2_leading_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_3_single_leading_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_3_leading_1_packed,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,
- packed_x_or_y_and_alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs_unordered,
- packed_x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_mixed_packed_unpacked_random,
- packed_x_or_y_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_1_single_trailing,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_single_trailing,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_single_trailing,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_trailing, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_trailing, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_single_leading_1_packed,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_2_single_leading_1_packed,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_2_leading_1_packed, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_3_single_leading_1_packed,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_3_leading_1_packed, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked, packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_unordered,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_sparse_unordered,
+ packed_x_or_y_and_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs_unordered,
+ packed_x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_mixed_packed_unpacked_random, packed_x_or_y_gen_params),
/* Unpacked memory with long-offset blocks */
- KUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_long_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_long_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered,
- x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered,
+ x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_long_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,
+ x_or_y_and_alg_long_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs,
+ x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,
+ x_or_y_and_long_offset_gen_params),
/* Packed memory tests with long offset blocks */
- KUNIT_CASE_PARAM(bin_patch_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_1_single_trailing,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_2_single_trailing,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_3_single_trailing,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_2_trailing,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_3_trailing,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_single_leading_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_2_single_leading_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_2_leading_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_3_single_leading_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_3_leading_1_packed,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked_unordered,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_mems, alg_long_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_onepacked_sparse_unordered,
- packed_x_or_y_and_alg_long_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_1_packed_multiple_algs_unordered,
- packed_x_or_y_and_long_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_mixed_packed_unpacked_random,
- packed_x_or_y_long_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed, packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_1_single_trailing,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_single_trailing,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_single_trailing,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_2_trailing,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_3_trailing,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_single_leading_1_packed,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_2_single_leading_1_packed,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_2_leading_1_packed,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_3_single_leading_1_packed,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_3_leading_1_packed,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_unordered,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_mems, alg_long_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_onepacked_sparse_unordered,
+ packed_x_or_y_and_alg_long_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_1_packed_multiple_algs_unordered,
+ packed_x_or_y_and_long_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_mixed_packed_unpacked_random,
+ packed_x_or_y_long_gen_params),
KUNIT_CASE(bin_patch_name_and_info),
@@ -2810,26 +2807,29 @@ static struct kunit_case cs_dsp_bin_test_cases_halo_wmdr3[] = {
static struct kunit_case cs_dsp_bin_test_cases_adsp2[] = {
/* XM and YM */
- KUNIT_CASE_PARAM(bin_patch_one_word, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_multiword, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, x_or_y_and_alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered,
+ x_or_y_and_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, x_or_y_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,
+ x_or_y_and_offset_gen_params),
/* ZM */
- KUNIT_CASE_PARAM(bin_patch_one_word, z_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_multiword, z_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword, z_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_unordered, z_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_multi_oneword_sparse_unordered, z_and_alg_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs, z_and_offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_algs_unordered, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_multiword, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_unordered, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_multi_oneword_sparse_unordered, z_and_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs, z_and_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_algs_unordered,
+ z_and_offset_gen_params),
/* Other */
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, offset_gen_params),
- KUNIT_CASE_PARAM(bin_patch_one_word_multiple_mems, alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(bin_patch_one_word_multiple_mems, alg_gen_params),
KUNIT_CASE(bin_patch_name_and_info),
diff --git a/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c b/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c
index b03cd7c37f6e4..0a072063dfa7a 100644
--- a/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c
+++ b/drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c
@@ -2987,12 +2987,12 @@ KUNIT_ARRAY_PARAM(all_pop_nonvol_write_only_length,
cs_dsp_ctl_all_param_desc);
static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,
all_pop_nonvol_write_only_length_gen_params),
@@ -3019,25 +3019,25 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running_zero_flags,
all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),
-
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_nonvol_writeable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,
+ all_pop_nonvol_writeable_flags_gen_params),
+
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_nonvol_writeable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,
all_pop_nonvol_writeable_flags_gen_params),
@@ -3075,12 +3075,12 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v1[] = {
static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {
KUNIT_CASE(cs_dsp_ctl_v2_cache_alloc),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,
all_pop_nonvol_write_only_length_gen_params),
@@ -3108,25 +3108,25 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running_zero_flags,
all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),
-
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_nonvol_writeable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,
+ all_pop_nonvol_writeable_flags_gen_params),
+
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_nonvol_writeable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,
all_pop_nonvol_writeable_flags_gen_params),
@@ -3164,11 +3164,11 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v2[] = {
static struct kunit_case cs_dsp_ctl_cache_test_cases_v3[] = {
KUNIT_CASE(cs_dsp_ctl_v2_cache_alloc),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_init, all_pop_nonvol_readable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_init_write_only,
all_pop_nonvol_write_only_length_gen_params),
@@ -3194,22 +3194,23 @@ static struct kunit_case cs_dsp_ctl_cache_test_cases_v3[] = {
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_read_running,
all_pop_nonvol_readable_nonzero_flags_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough, all_pop_nonvol_writeable_flags_gen_params),
-
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_cache_writethrough_unchanged,
- all_pop_nonvol_writeable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough,
+ all_pop_nonvol_writeable_flags_gen_params),
+
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_cache_writethrough_unchanged,
+ all_pop_nonvol_writeable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_cache_write_unchanged_not_started,
all_pop_nonvol_writeable_flags_gen_params),
diff --git a/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c b/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c
index d800f163b099e..085a1cb92912c 100644
--- a/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c
+++ b/drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c
@@ -2483,19 +2483,20 @@ KUNIT_ARRAY_PARAM(all_pop_volatile_writeable_flags,
cs_dsp_ctl_all_param_desc);
static struct kunit_case cs_dsp_ctl_rw_test_cases_adsp[] = {
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),
-
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_z_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running,
- all_pop_volatile_readable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),
+
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,
+ all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_z_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,
+ all_pop_volatile_readable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_not_started,
all_pop_volatile_readable_flags_gen_params),
@@ -2559,17 +2560,18 @@ static struct kunit_case cs_dsp_ctl_rw_test_cases_adsp[] = {
};
static struct kunit_case cs_dsp_ctl_rw_test_cases_halo[] = {
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),
-
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_offset_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),
- KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_running,
- all_pop_volatile_readable_flags_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_varying_alg_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_write_running, all_pop_writeable_flags_gen_params),
+
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_len_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,
+ all_pop_varying_offset_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running, all_pop_varying_xy_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs_dsp_ctl_read_volatile_running,
+ all_pop_volatile_readable_flags_gen_params),
KUNIT_CASE_PARAM(cs_dsp_ctl_read_volatile_not_started,
all_pop_volatile_readable_flags_gen_params),
diff --git a/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c b/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
index e7bf5dc474f59..44f9c8d71326b 100644
--- a/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
+++ b/drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c
@@ -1219,12 +1219,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v0[] = {
KUNIT_CASE(wmfw_err_bad_header_length),
KUNIT_CASE(wmfw_err_bad_core_type),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_invalid_block_types_gen_params),
{ } /* terminator */
};
@@ -1236,12 +1242,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v1[] = {
KUNIT_CASE(wmfw_err_bad_header_length),
KUNIT_CASE(wmfw_err_bad_core_type),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_invalid_block_types_gen_params),
KUNIT_CASE(wmfw_too_short_for_alg_header),
KUNIT_CASE(wmfw_v1_alg_name_unterminated),
@@ -1258,12 +1270,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v2[] = {
KUNIT_CASE(wmfw_err_bad_header_length),
KUNIT_CASE(wmfw_err_bad_core_type),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_adsp2_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_valid_block_types_adsp2_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_invalid_block_types_gen_params),
KUNIT_CASE(wmfw_too_short_for_alg_header),
KUNIT_CASE(wmfw_v2_alg_name_exceeds_block),
@@ -1284,12 +1302,18 @@ static struct kunit_case cs_dsp_wmfw_err_test_cases_v3[] = {
KUNIT_CASE(wmfw_err_bad_header_length),
KUNIT_CASE(wmfw_err_bad_core_type),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_valid_block_types_halo_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_payload, wmfw_valid_block_types_halo_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
- KUNIT_CASE_PARAM(wmfw_block_payload_len_garbage, wmfw_valid_block_types_halo_gen_params),
- KUNIT_CASE_PARAM(wmfw_too_short_for_block_header, wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_valid_block_types_halo_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_header,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_valid_block_types_halo_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_too_short_for_block_payload,
+ wmfw_invalid_block_types_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_valid_block_types_halo_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wmfw_block_payload_len_garbage,
+ wmfw_invalid_block_types_gen_params),
KUNIT_CASE(wmfw_too_short_for_alg_header),
KUNIT_CASE(wmfw_v2_alg_name_exceeds_block),
diff --git a/fs/ext4/extents-test.c b/fs/ext4/extents-test.c
index c3836ecb89f9c..5e70542b718b8 100644
--- a/fs/ext4/extents-test.c
+++ b/fs/ext4/extents-test.c
@@ -1043,12 +1043,12 @@ static int test_handle_unwritten_init(struct kunit *test)
* https://lore.kernel.org/linux-kselftest/aULJpTvJDw9ctUDe@li-dc0c254c-257c-11b2-a85c-98b6c1322444.ibm.com/
*/
static struct kunit_case extents_test_cases[] = {
- KUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,
- test_split_convert_param_init, NULL),
- KUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,
- test_convert_initialized_param_init, NULL),
- KUNIT_CASE_PARAM_WITH_INIT(test_split_convert, kunit_array_gen_params,
- test_handle_unwritten_init, NULL),
+ KUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,
+ test_split_convert_param_init, NULL),
+ KUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,
+ test_convert_initialized_param_init, NULL),
+ KUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_split_convert, kunit_array_gen_params,
+ test_handle_unwritten_init, NULL),
{}
};
diff --git a/include/kunit/test.h b/include/kunit/test.h
index da5312e0dfa57..e43f5e007f20c 100644
--- a/include/kunit/test.h
+++ b/include/kunit/test.h
@@ -209,6 +209,24 @@ static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)
{ .run_case = test_name, .name = #test_name, \
.generate_params = gen_params, .module_name = KBUILD_MODNAME}
+/**
+ * KUNIT_CASE_PARAM_UNIQUE - A helper for creating a parameterized &struct
+ * kunit_case named after both the test and its parameter generator
+ *
+ * @test_name: a reference to a test case function.
+ * @gen_params: a reference to a parameter generator function.
+ *
+ * Identical to KUNIT_CASE_PARAM() except that the case is named
+ * "test_name-gen_params" rather than "test_name". Use this when the same
+ * test function is listed in a suite with more than one parameter generator,
+ * where KUNIT_CASE_PARAM() would give every instance the same name. Test
+ * names must be unique within a suite for the results to be unambiguous and
+ * for filters such as kunit.filter_glob= to be able to select a single case.
+ */
+#define KUNIT_CASE_PARAM_UNIQUE(test_name, gen_params) \
+ { .run_case = test_name, .name = #test_name "-" #gen_params, \
+ .generate_params = gen_params, .module_name = KBUILD_MODNAME}
+
/**
* KUNIT_CASE_PARAM_ATTR - A helper for creating a parameterized &struct
* kunit_case with attributes
@@ -248,6 +266,29 @@ static inline char *kunit_status_to_ok_not_ok(enum kunit_status status)
.param_init = init, .param_exit = exit, \
.module_name = KBUILD_MODNAME}
+/**
+ * KUNIT_CASE_PARAM_WITH_INIT_UNIQUE - Define a parameterized KUnit test case
+ * with custom param_init() and param_exit() functions, named after both the
+ * test and its param_init() function.
+ * @test_name: The function implementing the test case.
+ * @gen_params: The function to generate parameters for the test case.
+ * @init: A reference to the param_init() function to run before a parameterized test.
+ * @exit: A reference to the param_exit() function to run after a parameterized test.
+ *
+ * Identical to KUNIT_CASE_PARAM_WITH_INIT() except that the case is named
+ * "test_name-init" rather than "test_name". Use this when the same test
+ * function is listed in a suite with more than one param_init() function,
+ * where KUNIT_CASE_PARAM_WITH_INIT() would give every instance the same
+ * name. The param_init() function is used rather than the generator since
+ * tests registering parameter arrays in param_init() all share the generic
+ * kunit_array_gen_params() generator.
+ */
+#define KUNIT_CASE_PARAM_WITH_INIT_UNIQUE(test_name, gen_params, init, exit) \
+ { .run_case = test_name, .name = #test_name "-" #init, \
+ .generate_params = gen_params, \
+ .param_init = init, .param_exit = exit, \
+ .module_name = KBUILD_MODNAME}
+
/**
* struct kunit_suite - describes a related collection of &struct kunit_case
*
diff --git a/sound/soc/codecs/cs35l56-shared-test.c b/sound/soc/codecs/cs35l56-shared-test.c
index 4f52c8a192e55..c2aa524efbf63 100644
--- a/sound/soc/codecs/cs35l56-shared-test.c
+++ b/sound/soc/codecs/cs35l56-shared-test.c
@@ -847,10 +847,10 @@ static struct kunit_case cs35l56_shared_test_cases[] = {
cs35l56_shared_test_gpios_selftest_gen_params),
KUNIT_CASE_PARAM(cs35l56_shared_test_get_onchip_speaker_id,
cs35l56_shared_test_onchip_spkid_gen_params),
- KUNIT_CASE_PARAM(cs35l56_shared_test_onchip_speaker_id_pad_config,
- cs35l56_shared_test_onchip_spkid_gen_params),
- KUNIT_CASE_PARAM(cs35l56_shared_test_onchip_speaker_id_pad_config,
- cs35l56_shared_test_onchip_spkid_pull_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs35l56_shared_test_onchip_speaker_id_pad_config,
+ cs35l56_shared_test_onchip_spkid_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(cs35l56_shared_test_onchip_speaker_id_pad_config,
+ cs35l56_shared_test_onchip_spkid_pull_gen_params),
KUNIT_CASE_PARAM(cs35l56_shared_test_stash_onchip_spkid_pins,
cs35l56_shared_test_onchip_spkid_pull_gen_params),
KUNIT_CASE(cs35l56_shared_test_stash_onchip_spkid_pins_reject_invalid),
diff --git a/sound/soc/codecs/wm_adsp_fw_find_test.c b/sound/soc/codecs/wm_adsp_fw_find_test.c
index ae686dc4fa94b..0b2b7db3f9f91 100644
--- a/sound/soc/codecs/wm_adsp_fw_find_test.c
+++ b/sound/soc/codecs/wm_adsp_fw_find_test.c
@@ -1219,23 +1219,23 @@ KUNIT_ARRAY_PARAM(wm_adsp_fw_find_pick,
wm_adsp_fw_find_test_param_desc);
static struct kunit_case wm_adsp_fw_find_test_cases[] = {
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_full_search_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_full_search_gen_params),
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_system_alsaname_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_system_alsaname_gen_params),
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_system_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_system_gen_params),
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_alsaname_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_alsaname_gen_params),
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_noqual_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_noqual_gen_params),
- KUNIT_CASE_PARAM(wm_adsp_fw_find_test_search_order,
- wm_adsp_fw_find_normalization_gen_params),
+ KUNIT_CASE_PARAM_UNIQUE(wm_adsp_fw_find_test_search_order,
+ wm_adsp_fw_find_normalization_gen_params),
KUNIT_CASE_PARAM(wm_adsp_fw_find_test_pick_file,
wm_adsp_fw_find_pick_gen_params),
|
| 3/2 | 2026/10/12 23:48 | llm | patch-evaluator |
1mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 21708 output: 96 thoughts: 2760 Thoughts: **Evaluation of the Patch for Syzkaller Fuzzing**
Alright, let's break this down. My goal is to determine if this patch warrants fuzzing with syzkaller. First, I need to thoroughly analyze the patch contents. It appears to modify a few key areas:
1. **Documentation:** `Documentation/dev-tools/kunit/usage.rst` is being updated. This is clearly documentation, and thus immediately doesn't seem like a candidate for fuzzing.
2. **Test Code:** The remaining changes are all within test files. Specifically, these files are within KUnit test suites, as indicated by the file paths and naming conventions:
* `drivers/firmware/cirrus/test/cs_dsp_test_bin.c`
* `drivers/firmware/cirrus/test/cs_dsp_test_control_cache.c`
* `drivers/firmware/cirrus/test/cs_dsp_test_control_rw.c`
* `drivers/firmware/cirrus/test/cs_dsp_test_wmfw_error.c`
* `fs/ext4/extents-test.c`
* `sound/soc/codecs/cs35l56-shared-test.c`
* `sound/soc/codecs/wm_adsp_fw_find_test.c`
3. **KUnit Framework:** The file `include/kunit/test.h` is also modified, defining new macros related to KUnit test case naming (`KUNIT_CASE_PARAM_UNIQUE` and `KUNIT_CASE_PARAM_WITH_INIT_UNIQUE`).
Now, I need to assess these changes against the fuzzing criteria. This is where I start thinking out loud. Is this code reachable? Does it affect the kernel's runtime behavior? KUnit tests run at boot or module load; they aren't part of syzkaller's standard fuzzing target, which focuses on user-space accessible interfaces. I need to be sure. I'm recalling the rules about what *doesn't* warrant fuzzing. Non-kernel changes? I want to make sure I am sure. So, I review the rules. Yes, changes to self-tests are excluded. I know, but I want to be *sure.*
The code in this patch only affects KUnit test case names; that's all. It changes *how* the tests are named in the KUnit framework, not *what* the tests *do*. The modified KUnit test macro definitions just construct unique names, for example, appending a suffix with the test parameters to ensure that each test run is uniquely identifiable.
Then, I need to confirm: am I right about KUnit's reachability? KUnit tests are not syscalls, they are *unit tests* that are run at kernel boot time, not during syzkaller fuzzing. Moreover, there's a fix within the `cs_dsp_test_wmfw_error.c` file that ensures there are no duplicate test cases, just test cases with different parameter generators and parameter values. So, this fixes the test suite.
I want to be certain, so I double-check. KUnit tests are self-tests. They do not have runtime kernel logic or driver logic that are exposed to user space. They don't have syscall handlers.
Therefore, because this patch only alters documentation, KUnit test macro definitions, and KUnit test case tables *within existing unit test suites,* it doesn't meet the criteria for syzkaller fuzzing. It's safe to set `WorthFuzzing` to `false`. No actual kernel runtime logic is touched. Therefore, the list of `FocusSymbols` is empty, as are `EnableConfigs`. The reason is clear: the patch modifies KUnit test naming and KUnit test case tables, which are unreachable by syzkaller.
|
| 4/2 | 2026/10/12 23:49 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch series only introduces KUnit helper macros (KUNIT_CASE_PARAM_UNIQUE and KUNIT_CASE_PARAM_WITH_INIT_UNIQUE) for unique test case naming, updates KUnit documentation, and updates test case arrays across various KUnit unit tests. No reachable operational or production kernel code is modified.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch series only introduces KUnit helper macros (KUNIT_CASE_PARAM_UNIQUE and KUNIT_CASE_PARAM_WITH_INIT_UNIQUE) for unique test case naming, updates KUnit documentation, and updates test case arrays across various KUnit unit tests. No reachable operational or production kernel code is modified.",
"WorthFuzzing": false
} |
| 5/1 | 2026/10/12 23:49 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|