Re: [PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Dmitry Osipenko
28.02.2019 16:27, Russell King - ARM Linux admin пишет: > On Thu, Feb 28, 2019 at 04:17:01PM +0300, Dmitry Osipenko wrote: >> +#ifdef CONFIG_CACHE_L2X0 >> +static void tf_cache_write_sec(unsigned long val, unsigned int reg) >> +{ >> +u32 l2x0_way_mask = 0xff; >> + >> +switch (reg) { >> +

Re: [PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Russell King - ARM Linux admin
On Thu, Feb 28, 2019 at 04:17:01PM +0300, Dmitry Osipenko wrote: > +#ifdef CONFIG_CACHE_L2X0 > +static void tf_cache_write_sec(unsigned long val, unsigned int reg) > +{ > + u32 l2x0_way_mask = 0xff; > + > + switch (reg) { > + case L2X0_CTRL: > + if (l2x0_saved_regs.aux_ctrl

[PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Dmitry Osipenko
Implement L2 cache initialization firmware callback that should be invoked early during boot in order to set up the required outer cache driver's callbacks and add the callback required for L2X0 maintenance. Partially based on work done by Michał Mirosław [1]. [1]