All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Cash flash correction of do_load()
@ 2016-09-25  3:10 yoko
  2016-10-07  1:06 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 6+ messages in thread
From: yoko @ 2016-09-25  3:10 UTC (permalink / raw)
  To: u-boot

Signed-off-by: yoko <jr4qpv@yahoo.co.jp>
---
 fs/fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

 For a program execution abnormal measure by the fatload command, cash flash processing is added to do_load().

diff --git a/fs/fs.c b/fs/fs.c
index 595ff1f..7607230 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
 	}
 	puts("\n");
 
+	flush_cache(addr, len_read);
+
 	setenv_hex("fileaddr", addr);
 	setenv_hex("filesize", len_read);
 
@@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return CMD_RET_SUCCESS;
 }
-
-- 
2.8.4 (Apple Git-73)

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] Cash flash correction of do_load()
  2016-09-25  3:10 [U-Boot] [PATCH] Cash flash correction of do_load() yoko
@ 2016-10-07  1:06 ` Tom Rini
  2016-10-08  3:20   ` [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch yoko
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2016-10-07  1:06 UTC (permalink / raw)
  To: u-boot

On Sun, Sep 25, 2016 at 12:10:07PM +0900, yoko wrote:

> Signed-off-by: yoko <jr4qpv@yahoo.co.jp>
> ---
>  fs/fs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
>  For a program execution abnormal measure by the fatload command, cash flash processing is added to do_load().

Can you please move this bottom part into the commit message itself and
elaborate on why we need a flush, and here, rather than say in 'go' or
'bootelf' or .. ?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161006/2589fbbd/attachment.sig>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch.
  2016-10-07  1:06 ` [U-Boot] " Tom Rini
@ 2016-10-08  3:20   ` yoko
  2016-10-10 13:26     ` James Chargin
  0 siblings, 1 reply; 6+ messages in thread
From: yoko @ 2016-10-08  3:20 UTC (permalink / raw)
  To: u-boot

Signed-off-by: yoko <jr4qpv@gmail.com>
---

Changes for v2:
   - The commit message is changed.

 fs/fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/fs.c b/fs/fs.c
index 595ff1f..7607230 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
 	}
 	puts("\n");
 
+	flush_cache(addr, len_read);
+
 	setenv_hex("fileaddr", addr);
 	setenv_hex("filesize", len_read);
 
@@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return CMD_RET_SUCCESS;
 }
-
-- 
2.8.4 (Apple Git-73)

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch.
  2016-10-08  3:20   ` [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch yoko
@ 2016-10-10 13:26     ` James Chargin
  2016-10-11  3:00       ` yoko
  0 siblings, 1 reply; 6+ messages in thread
From: James Chargin @ 2016-10-10 13:26 UTC (permalink / raw)
  To: u-boot

Dear yoko,

On 10/07/2016 08:20 PM, yoko wrote:
> Signed-off-by: yoko <jr4qpv@gmail.com>
> ---
>
> Changes for v2:
>    - The commit message is changed.
>
>  fs/fs.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/fs/fs.c b/fs/fs.c
> index 595ff1f..7607230 100644
> --- a/fs/fs.c
> +++ b/fs/fs.c
> @@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
>  	}
>  	puts("\n");
>
> +	flush_cache(addr, len_read);
> +
>  	setenv_hex("fileaddr", addr);
>  	setenv_hex("filesize", len_read);
>
> @@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>
>  	return CMD_RET_SUCCESS;
>  }
> -
>

The wiki includes information about cache considerations for the "go" 
command [1]. If possible, please check that information to be sure it 
remains consistent with this patch.

Thanks,
Jim

[1] http://www.denx.de/wiki/view/DULG/UBootStandalone#Section_5.12.3.
-- 
Jim Chargin
AJA Video Systems                       jimc at aja.com
(530) 271-3334                          http://www.aja.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch.
  2016-10-10 13:26     ` James Chargin
@ 2016-10-11  3:00       ` yoko
  0 siblings, 0 replies; 6+ messages in thread
From: yoko @ 2016-10-11  3:00 UTC (permalink / raw)
  To: u-boot

Dear Jim,

Thank you very much.

I read the Wiki page.
I was running to load the standalone application program.
CPU is so ARM, there is instruction and data caches.

As in the Wiki of example, a program that was loaded with 'loads' command
was able to run.
However, when I loaded in the same program the 'fatload' command, it could
not be executed.

When I look at the source program, in the 'loads' command has been executed
cache flush.
But, in the 'fatload' command, cache flash was not executed.

So, I created this patch.

Thanks.

---
yoko


2016-10-10 22:26 GMT+09:00 James Chargin <jimccrown@gmail.com>:

> Dear yoko,
>
> On 10/07/2016 08:20 PM, yoko wrote:
>
>> Signed-off-by: yoko <jr4qpv@gmail.com>
>> ---
>>
>> Changes for v2:
>>    - The commit message is changed.
>>
>>  fs/fs.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/fs/fs.c b/fs/fs.c
>> index 595ff1f..7607230 100644
>> --- a/fs/fs.c
>> +++ b/fs/fs.c
>> @@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc,
>> char * const argv[],
>>         }
>>         puts("\n");
>>
>> +       flush_cache(addr, len_read);
>> +
>>         setenv_hex("fileaddr", addr);
>>         setenv_hex("filesize", len_read);
>>
>> @@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc,
>> char * const argv[])
>>
>>         return CMD_RET_SUCCESS;
>>  }
>> -
>>
>>
> The wiki includes information about cache considerations for the "go"
> command [1]. If possible, please check that information to be sure it
> remains consistent with this patch.
>
> Thanks,
> Jim
>
> [1] http://www.denx.de/wiki/view/DULG/UBootStandalone#Section_5.12.3.
> --
> Jim Chargin
> AJA Video Systems                       jimc at aja.com
> (530) 271-3334                          http://www.aja.com
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH] Cash flash correction of do_load()
@ 2016-09-24  2:55 yoko
  0 siblings, 0 replies; 6+ messages in thread
From: yoko @ 2016-09-24  2:55 UTC (permalink / raw)
  To: u-boot

---
 fs/fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/fs.c b/fs/fs.c
index 595ff1f..7607230 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -417,6 +417,8 @@ int do_load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[],
 	}
 	puts("\n");
 
+	flush_cache(addr, len_read);
+
 	setenv_hex("fileaddr", addr);
 	setenv_hex("filesize", len_read);
 
@@ -535,4 +537,3 @@ int do_fs_type(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	return CMD_RET_SUCCESS;
 }
-
-- 
2.8.4 (Apple Git-73)

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-11  3:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-25  3:10 [U-Boot] [PATCH] Cash flash correction of do_load() yoko
2016-10-07  1:06 ` [U-Boot] " Tom Rini
2016-10-08  3:20   ` [U-Boot] [PATCH v2] fs:When 'go' run the program by 'fatload', added the cache flush to prevent cache mismatch yoko
2016-10-10 13:26     ` James Chargin
2016-10-11  3:00       ` yoko
  -- strict thread matches above, loose matches on Subject: below --
2016-09-24  2:55 [U-Boot] [PATCH] Cash flash correction of do_load() yoko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.