mtest: Disable dcache during test
A message that is not in the archive (sent off-list or not yet received): CANYL96C2=fYHoTAp0SQird-Yz1W2JPq22U=3q4ZFKgwomXxODA@mail.gmail.com
PATCH 1/1 mtest: Disable dcache during test
Quoted 4 lines · Andrew Dyer
I agree with Mike, use the current dcache settings. U-boot has always assumed the user knew what they were doing.
If you want to print a small message with the dcache setting that makes sense to me, but no big warning.
Then, something like the following at runtime in the first lines printed my mtest?
dcache state: on
Best regards,
Beno?t
PATCH 1/1 mtest: Disable dcache during test
Quoted 10 lines · On Saturday 11 August 2012 16:05:36 Beno?t Th?baudeau wrote:
Quoted 4 lines · Andrew Dyer
I agree with Mike, use the current dcache settings. U-boot has always assumed the user knew what they were doing.
If you want to print a small message with the dcache setting that makes sense to me, but no big warning.Then, something like the following at runtime in the first lines printed my mtest?
dcache state: on
i'd be fine with that. something like below (if you want to test & post, that'd be good).
-mike
common/cmd_mem.c +3 -1
@@ -651,8 +651,10 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])else iteration_limit =0 ; +printf ("Testing %08x ... %08x (dcache: %s):\n" , (uint )start, (uint )end, +dcache_status () ?"on" :"off" ); +#if defined(CONFIG_SYS_ALT_MEMTEST ) -printf ("Testing %08x ... %08x:\n" , (uint )start, (uint )end);debug ("%s:%d: start 0x%p end 0x%p\n" , __FUNCTION__, __LINE__, start, end);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120811/5c64e75b/attachment.pgp>
PATCH 1/1 mtest: Disable dcache during test
Quoted 35 lines · On Saturday 11 August 2012 22:15:16 Mike Frysinger wrote:
Quoted 7 lines · On Saturday 11 August 2012 16:05:36 Beno?t Th?baudeau wrote:
Quoted 5 lines · Andrew Dyer
I agree with Mike, use the current dcache settings. U-boot has always
assumed the user knew what they were doing.
If you want to print a small message with the dcache setting that makes sense to me, but no big warning.Quoted 5 lines
Then, something like the following at runtime in the first lines printed my
mtest?dcache state: on
i'd be fine with that. something like below (if you want to test & post,
that'd be good).(quoted diff) +0
-1-mikecommon/cmd_mem.c +3
-1@@ -651,8 +651,10 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) else iteration_limit =0 ; +printf ("Testing %08x ... %08x (dcache: %s):\n" , (uint )start, (uint )end, +dcache_status () ?"on" :"off" ); +#if defined(CONFIG_SYS_ALT_MEMTEST ) -printf ("Testing %08x ... %08x:\n" , (uint )start, (uint )end); debug("%s:%d: start 0x%p end 0x%p\n",
Quoted 1 line
__FUNCTION__,__LINE__, start, end);
OK, I'll do that next week.
Best regards,
Beno?t
PATCH 1/1 mtest: Print dcache state
mtest tests many types of memory accesses in many different conditions. If dcache is enabled, memory accesses are likely bursts, and some memory accesses are simply skipped. Hence, mtest results may change depending on dcache state.
This patch prints the dcache state at the beginning of mtest so as to keep the user informed of the test conditions.
--- .../common/cmd_mem.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
common/cmd_mem.c +3 -1
@@ -651,8 +651,10 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])else iteration_limit =0 ; +printf ("Testing %08x ... %08x (dcache: %s):\n" , (uint )start, (uint )end, +dcache_status () ?"on" :"off" ); +#if defined(CONFIG_SYS_ALT_MEMTEST ) -printf ("Testing %08x ... %08x:\n" , (uint )start, (uint )end);debug ("%s:%d: start 0x%p end 0x%p\n" , __FUNCTION__, __LINE__, start, end);
Tom Rini
NAK[U-Boot] mtest: Print dcache state
Quoted 11 lines · Beno??t Th??baudeau
mtest tests many types of memory accesses in many different conditions. If dcache is enabled, memory accesses are likely bursts, and some memory accesses are simply skipped. Hence, mtest results may change depending on dcache state.
This patch prints the dcache state at the beginning of mtest so as to keep the user informed of the test conditions.
Signed-off-by Mike Frysinger <[email protected]>Tested-by Beno??t Th??baudeau <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Mike Frysinger <[email protected]>
NAK, this breaks x86 which has no dcache_status.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121003/0ef4b6fb/attachment.pgp>
[U-Boot] mtest: Print dcache state
Hi Tom,
Quoted 9 lines · Tom Rini
Quoted 7 lines · Beno??t Th??baudeau
mtest tests many types of memory accesses in many different conditions. If dcache is enabled, memory accesses are likely bursts, and some memory accesses are simply skipped. Hence, mtest results may change depending on dcache state.
This patch prints the dcache state at the beginning of mtest so as to keep the user informed of the test conditions.
Quoted 7 lines
Quoted 4 lines
Signed-off-by Mike Frysinger <[email protected]>Tested-by Beno??t Th??baudeau <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Mike Frysinger <[email protected]>NAK, this breaks x86 which has no
dcache_status.
IIRC the general idea of printing the cache status in mtest had already been NAKed (though not formally) by Wolfgang.
Amicalement,
Signature · 1 line
Albert.
[U-Boot] mtest: Print dcache state
Hi Albert, Tom,
Quoted 23 lines · Albert ARIBAUD
Hi Tom,
Quoted 19 lines · Tom Rini
Quoted 15 lines · Beno??t Th??baudeau
mtest tests many types of memory accesses in many different conditions. If
dcache is enabled, memory accesses are likely bursts, and some memory accesses
are simply skipped. Hence, mtest results may change depending on dcache state.This patch prints the dcache state at the beginning of mtest so as to keep the
user informed of the test conditions.Signed-off-by Mike Frysinger <[email protected]>Tested-by Beno??t Th??baudeau <[email protected]>Cc Wolfgang Denk <[email protected]>Cc Mike Frysinger <[email protected]>
Quoted 6 lines
Quoted 2 lines
NAK, this breaks x86 which has no
dcache_status.IIRC the general idea of printing the cache status in mtest had already
been NAKed (though not formally) by Wolfgang.
Indeed. This subject has already been closed. Perhaps the patch status had just not been updated in Patchwork.
Best regards,
Beno?t
[U-Boot] mtest: Print dcache state
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 24 lines · Beno?t Th?baudeau
Hi Albert, Tom,
Quoted 21 lines · Albert ARIBAUD
Hi Tom,
Quoted 16 lines · Tom Rini
Quoted 12 lines · Beno??t Th??baudeau
mtest tests many types of memory accesses in many different conditions. If dcache is enabled, memory accesses are likely bursts, and some memory accesses are simply skipped. Hence, mtest results may change depending on dcache state.
This patch prints the dcache state at the beginning of mtest so as to keep the user informed of the test conditions.
Signed-off-by Mike Frysinger <[email protected]> Tested-by:Beno??t Th??baudeau <[email protected]> Cc:
Wolfgang Denk <[email protected]> Cc: Mike Frysinger <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
NAK, this breaks x86 which has no
dcache_status.IIRC the general idea of printing the cache status in mtest had already been NAKed (though not formally) by Wolfgang.
Indeed. This subject has already been closed. Perhaps the patch status had just not been updated in Patchwork.
OK, thanks guys.
- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQIcBAEBAgAGBQJQbZoJAAoJENk4IS6UOR1WIdQQAIIAUt0PU0r4VFcTCX6/X4sz ZprsyLtoqZrP4NI3cdO0bWELrOlyniEVwXrw4gNs+c86M+W76o/6XI62ug/JZGeP g10F9KCjpiQm4Uy3nV6PsmpPTN0uHxeiFbZUlmS4lqsPCFGOW2wAUIIgHbnfykv6 a8CSuO1ATHF5rNFw+Kgj2TX+NbI2Rjf/83cJoawLKqznONJVDHcIW02hS0YDi+c9 yHiqkRVu3RcrJO19zVcWYMeBo+2GejzeioV2W3F+O5d3XXr/AusBdOkotAasDlrF 1hv4ty2CWXpS6jardevdT/awD2zBI6ofd/lGUc9eHsjCJBVc5YPKK77A1AYyEWuq eJ2K9rHGiGdWf50TPIkyxtupfzNWMmtDlKOhUFiSwkLexjIbIRpRxHoa6Aj9BW7G PyYjo45P2iXAahUkhijZuF23g2rVQTq+7dBFA/Saz0GA5GwPoavolfu5UAkuYtpO rNZoYcN/LNHWZ/NIto6o2oqcTIvlcr2NfV9vQmGm31fHxjFOTznprTT/8YfhTKlX Lnsav21HI/UE5KNYDVlVyXLzxUiBubEFj/jxC7b31g3sYF0fTZKZyEO3b+ZoqKB2 hNsF6S3uiMGAtArUB3PaSavncQaI/kabZLKTBbzXTMx0UMDNuCSutJTzqcmlY9wC aVi1eIjjEZt2JTHPHFIn
=OpC9
-----END PGP SIGNATURE-----
PATCH 1/1 mtest: Disable dcache during test
In reply to Mike FrysingerHi Mike,
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · On Saturday 11 August 2012 16:05:36 Beno?t Th?baudeau wrote:
Quoted 4 lines · Andrew Dyer
I agree with Mike, use the current dcache settings. U-boot has always assumed the user knew what they were doing.
If you want to print a small message with the dcache setting that makes sense to me, but no big warning.
Quoted 8 lines
Quoted 4 lines
Then, something like the following at runtime in the first lines printed my mtest?
dcache state: on
i'd be fine with that. something like below (if you want to test & post, that'd be good).
-mike
I'd disagree with this solution; one can easily overlook casual test messages like these. To me it is better that the person doing mtest not trust the cache state at all and check / set it.
Amicalement,
Signature · 1 line
Albert.