On 15/12/23 10:45, Avri Altman wrote: >> +static int mmc_test_retuning(struct mmc_test_card *test) { >> + if (!mmc_can_retune(test->card->host)) { >> + pr_info("%s: No retuning - test skipped\n", >> + mmc_hostname(test->card->host)); >> + return RESULT_UNSUP_HOST; >> + } >> + >> + return mmc_test_rnd_perf(test, 0, 0, 8192, 30, 1); >> } > I wonder if it would make sense to make a RPMB flavor for the re-tuning test? Perhaps, but maybe that could be done from user space / mmc-utils. > > Thanks, > Avri > >> >> /* >> @@ -2921,6 +2934,14 @@ static const struct mmc_test_case >> mmc_test_cases[] = { >> .run = mmc_test_cmds_during_write_cmd23_nonblock, >> .cleanup = mmc_test_area_cleanup, >> }, >> + >> + { >> + .name = "Re-tuning reliability", >> + .prepare = mmc_test_area_prepare, >> + .run = mmc_test_retuning, >> + .cleanup = mmc_test_area_cleanup, >> + }, >> + >> }; >> >> static DEFINE_MUTEX(mmc_test_lock); >> -- >> 2.34.1 >