<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in speedtest.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>197173db - treewide: use get_random_bytes() when possible</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#197173db</link>
        <description>treewide: use get_random_bytes() when possibleThe prandom_bytes() function has been a deprecated inline wrapper aroundget_random_bytes() for several releases now, and compiles down to theexact same code. Replace the deprecated wrapper with a direct call tothe real function. This was done as a basic find and replace.Reviewed-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;Reviewed-by: Kees Cook &lt;keescook@chromium.org&gt;Reviewed-by: Yury Norov &lt;yury.norov@gmail.com&gt;Reviewed-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt; # powerpcAcked-by: Jakub Kicinski &lt;kuba@kernel.org&gt;Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Wed, 05 Oct 2022 15:49:46 +0000</pubDate>
        <dc:creator>Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;</dc:creator>
    </item>
<item>
        <title>ceef4cf9 - mtd: tests: Fix eraseblock read speed miscalculation for lower partition sizes</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#ceef4cf9</link>
        <description>mtd: tests: Fix eraseblock read speed miscalculation for lower partition sizesWhile calculating speed during  mtd_speedtest, the time interval(i.e., start - finish) is rounded off to the nearest milliseconds byignoring the fractional part. This leads to miscalculation of speed.The miscalculation is more visible while running speed test on smallpartition sizes(i.e., when partition size is equal to eraseblock size ortwice the eraseblock size) at higher spi frequencies.For e.g., while calculating eraseblock read speed for a mtd partition withsize equal to the eraseblock size(i.e., 64KiB) the eraseblock read timeinterval comes out to be 966490 nanosecond. This is then converted tomillisecond(i.e., 0.966 msec.). The integer part (i.e., 0 msec) of thevalue is considered and the fractional part (i.e., 0.966) is ignored,forcalculating the eraseblock read speed. So the reported eraseblock readspeed is 0 KiB/s, which is incorrect.There are two approaches to fix this issue.First approach will be to keep the time interval in millisecond. and roundup the integer value, with this approach the 0.966msec time interval in theabove example will be rounded up to 1msec and this value is used forcalculating the speed. Downside of this approach is that the reported speedis still not accurate.Second approach will be to convert the time interval to microsecondsinstead of milliseconds, with this approach the 966490 nanosecond timeinterval in the above example will be converted t0 966.490usec and thisvalue is used for calculating the speed. As compared to the currentimplementation and the suggested First approach, this approach will reporta more accurate speed. Downside of this approach is that, in future if themtd size is too large then the u64 variable, that holds the number ofbytes, might overflow.In this patch we have gone with the second approach as this reports a moreaccurate speed. With this approach the eraseblock read speed in the aboveexample comes out to be 132505 KiB/s when the spi clock is configured at150Mhz.Signed-off-by: Amit Kumar Mahapatra &lt;amit.kumar-mahapatra@xilinx.com&gt;Signed-off-by: Miquel Raynal &lt;miquel.raynal@bootlin.com&gt;Link: https://lore.kernel.org/linux-mtd/20220208103905.13354-1-amit.kumar-mahapatra@xilinx.com

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Tue, 08 Feb 2022 10:39:05 +0000</pubDate>
        <dc:creator>Amit Kumar Mahapatra &lt;amit.kumar-mahapatra@xilinx.com&gt;</dc:creator>
    </item>
<item>
        <title>4cd10358 - treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 326</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#4cd10358</link>
        <description>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 326Based on 1 normalized pattern(s):  this program is free software you can redistribute it and or modify  it under the terms of the gnu general public license version 2 as  published by the free software foundation this program is  distributed in the hope that it will be useful but without any  warranty without even the implied warranty of merchantability or  fitness for a particular purpose see the gnu general public license  for more details you should have received a copy of the gnu general  public license along with this program see the file copying if not  write to the free software foundation 59 temple place suite 330  boston ma 02111 1307 usaextracted by the scancode license scanner the SPDX license identifier  GPL-2.0-onlyhas been chosen to replace the boilerplate/reference in 9 file(s).Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;Reviewed-by: Kate Stewart &lt;kstewart@linuxfoundation.org&gt;Reviewed-by: Alexios Zavras &lt;alexios.zavras@intel.com&gt;Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;Cc: linux-spdx@vger.kernel.orgLink: https://lkml.kernel.org/r/20190530000435.832876118@linutronix.deSigned-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Wed, 29 May 2019 23:57:41 +0000</pubDate>
        <dc:creator>Thomas Gleixner &lt;tglx@linutronix.de&gt;</dc:creator>
    </item>
<item>
        <title>8f347c42 - mtd: Unconditionally update -&gt;fail_addr and -&gt;addr in part_erase()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#8f347c42</link>
        <description>mtd: Unconditionally update -&gt;fail_addr and -&gt;addr in part_erase()-&gt;fail_addr and -&gt;addr can be updated no matter the result ofparent-&gt;_erase(), we just need to remove the code doing the same thingin mtd_erase_callback() to avoid adjusting those fields twice.Note that this can be done because all MTD users have been converted tonot pass an erase_info-&gt;callback() and are thus only taking the-&gt;addr_fail and -&gt;addr fields into account after part_erase() hasreturned.While we&apos;re at it, get rid of the erase_info-&gt;mtd field which was onlyneeded to let mtd_erase_callback() get the partition device back.Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Mon, 12 Feb 2018 21:03:10 +0000</pubDate>
        <dc:creator>Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;</dc:creator>
    </item>
<item>
        <title>884cfd90 - mtd: Stop assuming mtd_erase() is asynchronous</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#884cfd90</link>
        <description>mtd: Stop assuming mtd_erase() is asynchronousNone of the mtd-&gt;_erase() implementations work in an asynchronous manner,so let&apos;s simplify MTD users that call mtd_erase(). All they need to dois check the value returned by mtd_erase() and assume that != 0 meansfailure.Signed-off-by: Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;Reviewed-by: Richard Weinberger &lt;richard@nod.at&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Mon, 12 Feb 2018 21:03:09 +0000</pubDate>
        <dc:creator>Boris Brezillon &lt;boris.brezillon@bootlin.com&gt;</dc:creator>
    </item>
<item>
        <title>af30c0a0 - mtd: tests: Replace timeval with ktime_t</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#af30c0a0</link>
        <description>mtd: tests: Replace timeval with ktime_tChanges the 32-bit time type timeval to the 64-bit time typektime_t, since 32-bit systems using struct timeval will break in theyear 2038. Correspondingly change do_gettimeofday() to ktime_get()since ktime_get returns a ktime_t, but do_gettimeofday returns astruct timeval.Here, ktime_get() is used instead of ktime_get_real()since ktime_get() uses monotonic clock.Signed-off-by: Shraddha Barke &lt;shraddha.6596@gmail.com&gt;Reviewed-by: Arnd Bergmann &lt;arnd@arndb.de&gt;Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Thu, 22 Oct 2015 14:59:54 +0000</pubDate>
        <dc:creator>Shraddha Barke &lt;shraddha.6596@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>2a6a28e7 - mtd: Make MTD tests cancelable</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#2a6a28e7</link>
        <description>mtd: Make MTD tests cancelableI always go nuts when I start an MTD test on a slow device and have towait forever until it finishes. From the debug output I already knowwhat the issue is but I have to wait or reset the board hard. Resettingis often not an option (remote access, you don&apos;t want lose the currentstate, etc...).The solution is easy, check for pending signals at key positions in thecode. Using that one can even stop a test by pressing CTRL-C asinsmod/modprobe have SIGINT pending.Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Sun, 29 Mar 2015 19:52:06 +0000</pubDate>
        <dc:creator>Richard Weinberger &lt;richard@nod.at&gt;</dc:creator>
    </item>
<item>
        <title>b9da8bae - mtd: tests: fix more potential integer overflows</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#b9da8bae</link>
        <description>mtd: tests: fix more potential integer overflowsCaught by Coverity (CID #200625 and others)Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;Cc: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Sat, 28 Feb 2015 10:02:26 +0000</pubDate>
        <dc:creator>Brian Norris &lt;computersforpeace@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>1001ff7a - mtd: tests: fix integer overflow issues</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#1001ff7a</link>
        <description>mtd: tests: fix integer overflow issuesThese multiplications are done with 32-bit arithmetic, then converted to64-bit. We should widen the integers first to prevent overflow. Thiscould be a problem for large (&gt;4GB) MTD&apos;s.Detected by Coverity.Signed-off-by: Brian Norris &lt;computersforpeace@gmail.com&gt;Cc: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Tue, 22 Jul 2014 02:07:12 +0000</pubDate>
        <dc:creator>Brian Norris &lt;computersforpeace@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>8a9f4aa3 - mtd: tests: incorporate error message for mtdtest_write()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#8a9f4aa3</link>
        <description>mtd: tests: incorporate error message for mtdtest_write()All callers of mtdtest_write() print the same error message on failure.This incorporates the error message to mtdtest_write() and removes themfrom the callers.Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Thu, 15 Aug 2013 13:55:09 +0000</pubDate>
        <dc:creator>Akinobu Mita &lt;akinobu.mita@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>abc173ad - mtd: tests: incorporate error message for mtdtest_read()</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#abc173ad</link>
        <description>mtd: tests: incorporate error message for mtdtest_read()All callers of mtdtest_read() print the same error message on failure.This incorporates the error message to mtdtest_read() and removes themfrom the callers.Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Thu, 15 Aug 2013 13:55:08 +0000</pubDate>
        <dc:creator>Akinobu Mita &lt;akinobu.mita@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>59b0816d - mtd: mtd_speedtest: use mtd_test helpers</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#59b0816d</link>
        <description>mtd: mtd_speedtest: use mtd_test helpersUse mtdtest_write(), mtdtest_read(), mtdtest_scan_for_bad_eraseblocks(),mtdtest_erase_good_eraseblocks() in mtd_test helpers.Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;Cc: Brian Norris &lt;computersforpeace@gmail.com&gt;Cc: Vikram Narayanan &lt;vikram186@gmail.com&gt;Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Sat, 03 Aug 2013 09:52:12 +0000</pubDate>
        <dc:creator>Akinobu Mita &lt;akinobu.mita@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>a995c792 - mtd: tests: rename sources in order to link a helper object</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/drivers/mtd/tests/speedtest.c#a995c792</link>
        <description>mtd: tests: rename sources in order to link a helper objectEach mtd test module have a single source whose name is the same asthe module name.  In order to link a single object including helperfunctions to every test module, this rename these sources to thedifferent names.Signed-off-by: Akinobu Mita &lt;akinobu.mita@gmail.com&gt;Cc: Brian Norris &lt;computersforpeace@gmail.com&gt;Cc: Vikram Narayanan &lt;vikram186@gmail.com&gt;Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;Signed-off-by: Artem Bityutskiy &lt;artem.bityutskiy@linux.intel.com&gt;Signed-off-by: David Woodhouse &lt;David.Woodhouse@intel.com&gt;

            List of files:
            /linux-6.15/drivers/mtd/tests/speedtest.c</description>
        <pubDate>Sat, 03 Aug 2013 09:52:08 +0000</pubDate>
        <dc:creator>Akinobu Mita &lt;akinobu.mita@gmail.com&gt;</dc:creator>
    </item>
</channel>
</rss>
