Re: [PATCH] MIPS/tlbex: Fix LDDIR usage in setup_pw() for Loongson-3

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

 



On Wed, Mar 25, 2020 at 11:44:54AM +0800, Huacai Chen wrote:
> LDDIR/LDPTE is Loongson-3's acceleration for Page Table Walking. If BD
> (Base Directory, the 4th page directory) is not enabled, then GDOffset
> is biased by BadVAddr[63:62]. So, if GDOffset (aka. BadVAddr[47:36] for
> Loongson-3) is big enough, "0b11(BadVAddr[63:62])|BadVAddr[47:36]|...."
> can far beyond pg_swapper_dir. This means the pg_swapper_dir may NOT be
> accessed by LDDIR correctly, so fix it by set PWDirExt in CP0_PWCtl.
> 
> Cc: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Pei Huang <huangpei@xxxxxxxxxxx>
> Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx>
> ---
>  arch/mips/mm/tlbex.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]



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

  Powered by Linux