]> git.itanic.dy.fi Git - linux-stable/commit
mmc: mmc_test: Add re-tuning test
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 14 Dec 2023 09:09:02 +0000 (11:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 2 Jan 2024 16:54:05 +0000 (17:54 +0100)
commitb062136d0d6f46d7ad5c88219cbd75f90cb18e81
tree25ae2157c5914f92b286eb1199ac70022d50f1ba
parent84a6be7db9050dd2601c9870f65eab9a665d2d5d
mmc: mmc_test: Add re-tuning test

Add a test to repeatedly re-tune in between random reads. The test is
non-destructive of data on the card and runs for 30 seconds. It can be
repeated to test for longer durations.

If re-tuning is not supported, the test is skipped.

Example:

  # echo 'mmc1:0001' >  /sys/bus/mmc/drivers/mmcblk/unbind
  # echo 'mmc1:0001' > /sys/bus/mmc/drivers/mmc_test/bind
  [   36.642257] mmc_test mmc1:0001: Card claimed for testing.
  # cat /sys/kernel/debug/mmc1/mmc1\:0001/testlist | grep tuning
  52:     Re-tuning reliability
  # echo 52 > /sys/kernel/debug/mmc1/mmc1\:0001/test
  [   91.522555] mmc1: Starting tests of card mmc1:0001...
  [   91.528425] mmc1: Test case 52. Re-tuning reliability...
  [  121.536682] mmc1: Result: OK
  [  121.539572] mmc1: Tests completed.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20231214090902.43628-1-adrian.hunter@intel.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_test.c