[PATCH] ibmveth: Use dma_alloc_coherent() instead of kmalloc/dma_map_single()

2021-09-25 Thread Cai Huoqing
Replacing kmalloc/kfree/dma_map_single/dma_unmap_single() with dma_alloc_coherent/dma_free_coherent() helps to reduce code size, and simplify the code, and coherent DMA will not clear the cache every time. Signed-off-by: Cai Huoqing --- drivers/net/ethernet/ibm/Kconfig | 4 ++-- drivers/net/e

[PATCH] powerpc:85xx: fix timebase sync issue when CONFIG_HOTPLUG_CPU=n

2021-09-25 Thread Xiaoming Ni
When CONFIG_SMP=y, timebase synchronization is required when the second kernel is started. arch/powerpc/kernel/smp.c: int __cpu_up(unsigned int cpu, struct task_struct *tidle) { ... if (smp_ops->give_timebase) smp_ops-

[PATCH] Revert "ibmvnic: check failover_pending in login response"

2021-09-25 Thread Desnes A. Nunes do Rosario
This reverts commit d437f5aa23aa2b7bd07cd44b839d7546cc17166f. Code has been duplicated through commit <273c29e944bd> "ibmvnic: check failover_pending in login response" Signed-off-by: Desnes A. Nunes do Rosario --- drivers/net/ethernet/ibm/ibmvnic.c | 8 1 file changed, 8 deletions(-)

[PATCH v2 3/3] powerpc: Remove init_mem_is_free

2021-09-25 Thread Christophe Leroy
init_mem_is_free is not used anymore. Remove it. Cc: Michael Neuling Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/setup.h | 1 - arch/powerpc/mm/mem.c| 2 -- 2 files changed, 3 deletions(-) diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/set

[PATCH v2 2/3] powerpc: Stop using init_mem_is_free

2021-09-25 Thread Christophe Leroy
Generic parts of the kernel for instance core_kernel_text() use 'system_state' to check whether init memory has been freed. Do the same and stop using init_mem_is_free. Cc: Michael Neuling Signed-off-by: Christophe Leroy --- arch_is_kernel_initmem_freed() is likely going to go away via the mm t

[PATCH v2 1/3] powerpc/code-patching: Improve verification of patchability

2021-09-25 Thread Christophe Leroy
Today, patch_instruction() assumes that is called exclusively on valid addresses, and only checks that it is not called on an init address after init section has been freed. Improve verification by calling kernel_text_address() instead. kernel_text_address() already includes a verification of ini

Re: ppc32 doesn't boot when linkaddr=0x00900000

2021-09-25 Thread Christophe Leroy
Hi, Le 25/09/2021 à 11:49, cp a écrit : hi I am new to this list. Hope this is the right place to ask. I am working with a PPC405GP board, and as far as I understand, the support for ppc40x platforms like Acadia and Walnut were dropped with kernel 5.8.0, so this seems like a pretty straightforw

ppc32 doesn't boot when linkaddr=0x00900000

2021-09-25 Thread cp
hi I am new to this list. Hope this is the right place to ask. I am working with a PPC405GP board, and as far as I understand, the support for ppc40x platforms like Acadia and Walnut were dropped with kernel 5.8.0, so this seems like a pretty straightforward question, but extensive experiments fro