Re: [PATCH v1.0(linux-sti-3.10) SDK2.15_x 3/4] ARM: 8191/1: decompressor: ensure I-side picks up relocated code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 15, 2015 at 08:27:55PM +0530, Sudeep Biswas wrote:
> From: Will Deacon <will.deacon@xxxxxxx>
> 
> To speed up decompression, the decompressor sets up a flat, cacheable
> mapping of memory. However, when there is insufficient space to hold
> the page tables for this mapping, we don't bother to enable the caches
> and subsequently skip all the cache maintenance hooks.
> 
> Skipping the cache maintenance before jumping to the relocated code
> allows the processor to predict the branch and populate the I-cache
> with stale data before the relocation loop has completed (since a
> bootloader may have SCTLR.I set, which permits normal, cacheable
> instruction fetches regardless of SCTLR.M).
> 
> This patch moves the cache maintenance check into the maintenance
> routines themselves, allowing the v6/v7 versions to invalidate the
> I-cache regardless of the MMU state.
> 
> Cc: <stable@xxxxxxxxxxxxxxx>
> Reported-by: Marc Carino <marc.ceeeee@xxxxxxxxx>
> Tested-by: Julien Grall <julien.grall@xxxxxxxxxx>
> Signed-off-by: Will Deacon <will.deacon@xxxxxxx>
> Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx>
> (cherry picked from commit 238962ac71910d6c20162ea5230685fead1836a4)
> 
> Buglink: https://stintbugzilla.st.com/show_bug.cgi?id=89771
> 
> Signed-off-by: Sudeep Biswas <sudeep.biswas@xxxxxx>
> ---
>  arch/arm/boot/compressed/head.S |   20 ++++++++++++++++----
>  1 files changed, 16 insertions(+), 4 deletions(-)

I don't understand, this is a very old patch, why are you sending it out
again, and what stable tree do you want it applied to that it is not
already in?

confused,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]