Re: [PATCH] powerpc/fadump: Remove duplicate message.

2019-10-24 Thread Hari Bathini
Michal, thanks for looking into this. On 23/10/19 11:26 PM, Michal Suchanek wrote: > There is duplicate message about lack of support by firmware in > fadump_reserve_mem and setup_fadump. Due to different capitalization it > is clear that the one in setup_fadump is shown on boot. Remove the >

[PATCH 1/2] asm-generic: Make msi.h a mandatory include/asm header

2019-10-24 Thread Michal Simek
msi.h is generic for all architectures expect of x86 which has own version. Enabling MSI by including msi.h to architecture Kbuild is just additional step which doesn't need to be done. The patch was created based on request to enable MSI for Microblaze. Suggested-by: Christoph Hellwig

[PATCH 0/2] Enabling MSI for Microblaze

2019-10-24 Thread Michal Simek
Hi, these two patches come from discussion with Christoph, Bjorn, Palmer and Waiman. The first patch was suggestion by Christoph here https://lore.kernel.org/linux-riscv/20191008154604.ga7...@infradead.org/ The second part was discussed

[PATCH v13 06/22] powerpc: mm: Add p?d_leaf() definitions

2019-10-24 Thread Steven Price
walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_leaf() functions/macros. For powerpc pmd_large() already exists and does what we

[PATCH v2 2/3] powerpc/pseries: Don't fail hash page table insert for bolted mapping

2019-10-24 Thread Aneesh Kumar K.V
If the hypervisor returned H_PTEG_FULL for H_ENTER hcall, retry a hash page table insert by removing a random entry from the group. After some runtime, it is very well possible to find all the 8 hash page table entry slot in the hpte group used for mapping. Don't fail a bolted entry insert in

[PATCH v2 3/3] powerpc/book3s64/hash: Use secondary hash for bolted mapping if the primary is full

2019-10-24 Thread Aneesh Kumar K.V
With bolted hash page table entry, kernel currently only use primary hash group when inserting the hash page table entry. In the rare case where kernel find all the 8 primary hash slot occupied by bolted entries, this can result in hash page table insert failure for bolted entries. Avoid this by

[PATCH v2 1/3] powerpc/pseries: Don't opencode HPTE_V_BOLTED

2019-10-24 Thread Aneesh Kumar K.V
No functional change in this patch. Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/platforms/pseries/lpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index f87a5c64e24d..3126fc02e50b

[PATCH v10 3/3] soc: fsl: add RCPM driver

2019-10-24 Thread Ran Wang
The NXP's QorIQ processors based on ARM Core have RCPM module (Run Control and Power Management), which performs system level tasks associated with power management such as wakeup source control. Note that this driver will not support PowerPC based QorIQ processors, and it depends on PM wakeup

[PATCH v10 2/3] Documentation: dt: binding: fsl: Add 'little-endian' and update Chassis define

2019-10-24 Thread Ran Wang
By default, QorIQ SoC's RCPM register block is Big Endian. But there are some exceptions, such as LS1088A and LS2088A, are Little Endian. So add this optional property to help identify them. Actually LS2021A and other Layerscapes won't totally follow Chassis 2.1, so separate them from powerpc

[PATCH v10 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-10-24 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. So add this API to help walk through all registered wakeup source objects

[Bug 205303] Compilation for PPC64 fails on warning in watchdog.o

2019-10-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205303 --- Comment #1 from Edward Swiftwood (payphon...@gmail.com) --- I failed to mention, the machine is an Apple iMac G5 "PowerMac8,1", PPC970FX @ 1600MHz. (https://everymac.com/systems/apple/imac/specs/imac_g5_1.6_17.html) -- You are receiving

Re: [PATCH 4/7] soc: fsl: qe: replace spin_event_timeout by readx_poll_timeout_atomic

2019-10-24 Thread Rasmus Villemoes
On 18/10/2019 18.08, Christoph Hellwig wrote: > On Fri, Oct 18, 2019 at 02:52:31PM +0200, Rasmus Villemoes wrote: >> /* wait for the QE_CR_FLG to clear */ >> -ret = spin_event_timeout((ioread32be(_immr->cp.cecr) & QE_CR_FLG) == >> 0, >> - 100, 0); >> -/*

Re: [PATCH RFC v1 01/12] mm/memory_hotplug: Don't allow to online/offline memory blocks with holes

2019-10-24 Thread David Hildenbrand
On 24.10.19 05:53, Anshuman Khandual wrote: On 10/22/2019 10:42 PM, David Hildenbrand wrote: Our onlining/offlining code is unnecessarily complicated. Only memory blocks added during boot can have holes. Hotplugged memory never has holes. That memory is already online. Why hot plugged memory

[Bug 205303] New: Compilation for PPC64 fails on warning in watchdog.o

2019-10-24 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=205303 Bug ID: 205303 Summary: Compilation for PPC64 fails on warning in watchdog.o Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.3.7 Hardware: PPC-64 OS:

[PATCH v1 3/3] powerpc/mm/book3s64/radix: Flush the full mm even when need_flush_all is set

2019-10-24 Thread Aneesh Kumar K.V
With the previous patch, we should now not be using need_flush_all for powerpc. But then make sure we force a PID tlbie flush with RIC=2 if we ever find need_flush_all set. Also don't reset it after a mmu gather flush Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/mm/book3s64/radix_tlb.c | 3

[PATCH v1 2/3] powerpc/mm/book3s64/radix: Use freed_tables instead of need_flush_all

2019-10-24 Thread Aneesh Kumar K.V
With commit: 22a61c3c4f13 ("asm-generic/tlb: Track freeing of page-table directories in struct mmu_gather") we now track whether we freed page table in mmu_gather. Use that to decide whether to flush Page Walk Cache. Signed-off-by: Aneesh Kumar K.V ---

[PATCH v1 1/3] mm/powerpc/book3s64/radix: Remove unused code.

2019-10-24 Thread Aneesh Kumar K.V
mm_tlb_flush_nested change was added in the mmu gather tlb flush to handle the case of parallel pte invalidate happening with mmap_sem held in read mode. This fix was done by commit: 02390f66bd23 ("powerpc/64s/radix: Fix MADV_[FREE|DONTNEED] TLB flush miss problem with THP") and the problem is

Re: [PATCH v14 2/6] namei: LOOKUP_IN_ROOT: chroot-like path resolution

2019-10-24 Thread Aleksa Sarai
On 2019-10-12, Aleksa Sarai wrote: > On 2019-10-12, Aleksa Sarai wrote: > > On 2019-10-10, Linus Torvalds wrote: > > > On Wed, Oct 9, 2019 at 10:42 PM Aleksa Sarai wrote: > > > > > > > > --- a/fs/namei.c > > > > +++ b/fs/namei.c > > > > @@ -2277,6 +2277,11 @@ static const char

[PATCH] powerpc/pseries: Mark accumulate_stolen_time() as notrace

2019-10-24 Thread Michael Ellerman
accumulate_stolen_time() is called prior to interrupt state being reconciled, which can trip the warning in arch_local_irq_restore(): WARNING: CPU: 5 PID: 1017 at arch/powerpc/kernel/irq.c:258 .arch_local_irq_restore+0x9c/0x130 ... NIP .arch_local_irq_restore+0x9c/0x130 LR

<    1   2