[PATCH v3 1/2] powerpc32/booke: consistently return phys_addr_t in __pa()

2020-01-05 Thread yingjie_bai
From: Bai Yingjie When CONFIG_RELOCATABLE=y is set, VIRT_PHYS_OFFSET is a 64bit variable, thus __pa() returns as 64bit value. But when CONFIG_RELOCATABLE=n, __pa() returns 32bit value. When CONFIG_PHYS_64BIT is set, __pa() should consistently return as 64bit value irrelevant to CONFIG_RELOCATABL

[PATCH v3 2/2] powerpc/mpc85xx: also write addr_h to spin table for 64bit boot entry

2020-01-05 Thread yingjie_bai
From: Bai Yingjie CPU like P4080 has 36bit physical address, its DDR physical start address can be configured above 4G by LAW registers. For such systems in which their physical memory start address was configured higher than 4G, we need also to write addr_h into the spin table of the target sec

[PATCH v2 1/2] powerpc32/booke: consistently return phys_addr_t in __pa()

2019-12-30 Thread yingjie_bai
From: Bai Yingjie When CONFIG_RELOCATABLE=y is set, VIRT_PHYS_OFFSET is a 64bit variable, thus __pa() returns as 64bit value. But when CONFIG_RELOCATABLE=n, __pa() returns 32bit value. We'd make __pa() consistently return phys_addr_t, even if the upper bits are known to always be zero in a parti

[PATCH v2 2/2] powerpc/mpc85xx: also write addr_h to spin table for 64bit boot entry

2019-12-30 Thread yingjie_bai
From: Bai Yingjie CPU like P4080 has 36bit physical address, its DDR physical start address can be configured above 4G by LAW registers. For such systems in which their physical memory start address was configured higher than 4G, we need also to write addr_h into the spin table of the target sec

[PATCH] powerpc/mpc85xx: also write addr_h to spin table for 64bit boot entry

2019-11-25 Thread yingjie_bai
From: Bai Yingjie CPU like P4080 has 36bit physical address, its DDR physical start address can be configured above 4G by LAW registers. For such systems in which their physical memory start address was configured higher than 4G, we need also to write addr_h into the spin table of the target sec