Re: [RFC PATCH v2 01/10] lib: vdso: ensure all arches have 32bit fallback

2019-12-30 Thread Arnd Bergmann
On Mon, Dec 23, 2019 at 3:31 PM Christophe Leroy wrote: > > In order to simplify next step which moves fallback call at arch > level, ensure all arches have a 32bit fallback instead of handling > the lack of 32bit fallback in the common code based > on VDSO_HAS_32BIT_FALLBACK > > Signed-off-by:

Re: [RFC PATCH v2 05/10] lib: vdso: inline do_hres()

2019-12-30 Thread Arnd Bergmann
On Mon, Dec 23, 2019 at 3:31 PM Christophe Leroy wrote: > > do_hres() is called from several places, so GCC doesn't inline > it at first. > > do_hres() takes a struct __kernel_timespec * parameter for > passing the result. In the 32 bits case, this parameter corresponds > to a local var in the

[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

[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