[PATCH] MIPS: Fix detection of unsupported highmem with cache aliases

2016-09-02 Thread Paul Burton
The paging_init() function contains code which detects that highmem is in use but unsupported due to dcache aliasing. However this code was ineffective because it was being run before the caches are probed, meaning that cpu_has_dc_aliases would always evaluate to false (unless a platform overrides

[PATCH] MIPS: Fix detection of unsupported highmem with cache aliases

2016-09-02 Thread Paul Burton
The paging_init() function contains code which detects that highmem is in use but unsupported due to dcache aliasing. However this code was ineffective because it was being run before the caches are probed, meaning that cpu_has_dc_aliases would always evaluate to false (unless a platform overrides