* [U-Boot] [PATCH v2] Fix cache misalignment after network load operations
@ 2016-09-14 1:30 Peter.Chubb at data61.csiro.au
2016-09-14 3:39 ` Fabio Estevam
0 siblings, 1 reply; 3+ messages in thread
From: Peter.Chubb at data61.csiro.au @ 2016-09-14 1:30 UTC (permalink / raw)
To: u-boot
After any operation that downloads a file (e.g., pxe get, or dhcp), the
buffer containing the downloaded data is flushed. This patch rounds
up the flushed size to a cacheline boundary, preventing a cache
misalignment message from u-boot.
Signed-off-by: Peter Chubb <peter.chubb@data61.csiro.au>
---
cmd/net.c | 3 ---
1 file changed, 3 deletions(-)
Index: u-boot/cmd/net.c
===================================================================
--- u-boot.orig/cmd/net.c 2016-09-07 13:50:46.616156851 +1000
+++ u-boot/cmd/net.c 2016-09-07 19:18:18.962450874 +1000
@@ -243,9 +243,6 @@ static int netboot_common(enum proto_t p
return CMD_RET_SUCCESS;
}
- /* flush cache */
- flush_cache(load_addr, size);
-
bootstage_mark(BOOTSTAGE_ID_NET_LOADED);
rcode = bootm_maybe_autostart(cmdtp, argv[0]);
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] Fix cache misalignment after network load operations
2016-09-14 1:30 [U-Boot] [PATCH v2] Fix cache misalignment after network load operations Peter.Chubb at data61.csiro.au
@ 2016-09-14 3:39 ` Fabio Estevam
2016-09-14 3:44 ` Peter.Chubb at data61.csiro.au
0 siblings, 1 reply; 3+ messages in thread
From: Fabio Estevam @ 2016-09-14 3:39 UTC (permalink / raw)
To: u-boot
On Tue, Sep 13, 2016 at 10:30 PM, <Peter.Chubb@data61.csiro.au> wrote:
> After any operation that downloads a file (e.g., pxe get, or dhcp), the
> buffer containing the downloaded data is flushed. This patch rounds
> up the flushed size to a cacheline boundary, preventing a cache
> misalignment message from u-boot.
Looks like you missed to update the commit log for v2 as you are no
longer flushing the cache :-)
Also, in the Subject line it is always good practice to start with the
subsystem name, so something like:
net: Remove flush_cache() operation
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH v2] Fix cache misalignment after network load operations
2016-09-14 3:39 ` Fabio Estevam
@ 2016-09-14 3:44 ` Peter.Chubb at data61.csiro.au
0 siblings, 0 replies; 3+ messages in thread
From: Peter.Chubb at data61.csiro.au @ 2016-09-14 3:44 UTC (permalink / raw)
To: u-boot
>>>>> "Fabio" == Fabio Estevam <festevam@gmail.com> writes:
Fabio> On Tue, Sep 13, 2016 at 10:30 PM, <Peter.Chubb@data61.csiro.au>
Fabio> wrote:
>> After any operation that downloads a file (e.g., pxe get, or dhcp),
>> the buffer containing the downloaded data is flushed. This patch
>> rounds up the flushed size to a cacheline boundary, preventing a
>> cache misalignment message from u-boot.
Fabio> Looks like you missed to update the commit log for v2 as you
Fabio> are no longer flushing the cache :-)
Arrgh. Thanks for this -- will respin and resubmit.
Fabio> Also, in the Subject line it is always good practice to start
Fabio> with the subsystem name, so something like: net: Remove
Fabio> flush_cache() operation
Will do.
Peter C
--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61 (formerly NICTA)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-14 3:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-14 1:30 [U-Boot] [PATCH v2] Fix cache misalignment after network load operations Peter.Chubb at data61.csiro.au
2016-09-14 3:39 ` Fabio Estevam
2016-09-14 3:44 ` Peter.Chubb at data61.csiro.au
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.