Re: [PATCH v2 2/2] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-30 Thread Michael Nazzareno Trimarchi
Hi On Tue, May 30, 2023 at 3:49 PM Francesco Dolcini wrote: > > On Tue, May 30, 2023 at 03:42:18PM +0200, Michael Nazzareno Trimarchi wrote: > > On Tue, May 30, 2023 at 3:34 PM Francesco Dolcini > > wrote: > > > > > > From: Emanuele Ghidoli > > > > > > Ensure that every write is flushed to mem

Re: [PATCH v2 2/2] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-30 Thread Francesco Dolcini
On Tue, May 30, 2023 at 03:42:18PM +0200, Michael Nazzareno Trimarchi wrote: > On Tue, May 30, 2023 at 3:34 PM Francesco Dolcini > wrote: > > > > From: Emanuele Ghidoli > > > > Ensure that every write is flushed to memory and afterward reads are > > from memory. > > Since the algorithm rely on t

Re: [PATCH v2 2/2] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-30 Thread Michael Nazzareno Trimarchi
Hi Few questions On Tue, May 30, 2023 at 3:34 PM Francesco Dolcini wrote: > > From: Emanuele Ghidoli > > Ensure that every write is flushed to memory and afterward reads are > from memory. > Since the algorithm rely on the fact that accessing to not existent > memory lead to write at addr / 2 w

[PATCH v2 2/2] common/memsize.c: Fix get_ram_size() when cache is enabled

2023-05-30 Thread Francesco Dolcini
From: Emanuele Ghidoli Ensure that every write is flushed to memory and afterward reads are from memory. Since the algorithm rely on the fact that accessing to not existent memory lead to write at addr / 2 without this modification accesses to aliased (not physically present) addresses are cached