Re: [PATCH v3 5/9] mm: remove CONFIG_DISCONTIGMEM

2021-06-11 Thread Mike Rapoport
On Fri, Jun 11, 2021 at 01:53:48PM -0700, Stephen Brennan wrote: > Mike Rapoport writes: > > From: Mike Rapoport > > > > There are no architectures that support DISCONTIGMEM left. > > > > Remove the configuration option and the dead code it was guarding in the > > generic memory management code.

Re: [PATCH 09/16] ps3disk: use memcpy_{from,to}_bvec

2021-06-11 Thread Ira Weiny
On Fri, Jun 11, 2021 at 08:53:38AM +0200, Christoph Hellwig wrote: > On Tue, Jun 08, 2021 at 06:48:22PM -0700, Ira Weiny wrote: > > I'm still not 100% sure that these flushes are needed but the are not > > no-ops on > > every arch. Would it be best to preserve them after the > >

[PATCH] usb: gadget: fsl: properly remove remnant of MXC support

2021-06-11 Thread Li Yang
Commit a390bef7db1f ("usb: gadget: fsl_mxc_udc: Remove the driver") didn't remove all the MXC related stuff which can cause build problem for LS1021 when enabled again in Kconfig. This patch remove all the remnants. Signed-off-by: Li Yang --- drivers/usb/gadget/udc/fsl_udc_core.c | 36

Re: [PATCH v3 5/9] mm: remove CONFIG_DISCONTIGMEM

2021-06-11 Thread Stephen Brennan
Mike Rapoport writes: > From: Mike Rapoport > > There are no architectures that support DISCONTIGMEM left. > > Remove the configuration option and the dead code it was guarding in the > generic memory management code. > > Signed-off-by: Mike Rapoport > --- > include/asm-generic/memory_model.h

Re: [PATCH] fs: btrfs: Disable BTRFS on platforms having 256K pages

2021-06-11 Thread Qu Wenruo
On 2021/6/10 下午1:23, Christophe Leroy wrote: With a config having PAGE_SIZE set to 256K, BTRFS build fails with the following message include/linux/compiler_types.h:326:38: error: call to '__compiletime_assert_791' declared with attribute error: BUILD_BUG_ON failed: (BTRFS_MAX_COMPRESSED

Re: [PATCH] btrfs: Disable BTRFS on platforms having 256K pages

2021-06-11 Thread Chris Mason
> On Jun 11, 2021, at 9:21 AM, David Sterba wrote: > > On Fri, Jun 11, 2021 at 12:58:58PM +, Chris Mason wrote: >>> On Jun 10, 2021, at 12:20 PM, David Sterba wrote: >>> On Thu, Jun 10, 2021 at 04:50:09PM +0200, Christophe Leroy wrote: Le 10/06/2021 à 15:54, Chris Mason a écrit :

Re: [PATCH 1/2] powerpc/64: drop redundant defination of spin_until_cond

2021-06-11 Thread Sudeep Holla
On Fri, Jun 11, 2021 at 07:10:57PM +, Christophe Leroy wrote: > From: Sudeep Holla > > linux/processor.h has exactly same defination for spin_until_cond. > Drop the redundant defination in asm/processor.h > Wow you must be real good at ML archaeology, this must have been at-least 3+ years

[PATCH 2/2] powerpc/watchdog: include linux/processor.h for spin_until_cond

2021-06-11 Thread Christophe Leroy
From: Sudeep Holla This implementation uses spin_until_cond in wd_smp_lock including neither linux/processor.h nor asm/processor.h This patch includes linux/processor.h here for spin_until_cond usage. Cc: Nicholas Piggin Cc: Michael Ellerman Signed-off-by: Sudeep Holla Signed-off-by:

[PATCH 1/2] powerpc/64: drop redundant defination of spin_until_cond

2021-06-11 Thread Christophe Leroy
From: Sudeep Holla linux/processor.h has exactly same defination for spin_until_cond. Drop the redundant defination in asm/processor.h Cc: Nicholas Piggin Cc: Michael Ellerman Signed-off-by: Sudeep Holla Signed-off-by: Christophe Leroy --- That's just a rebase

[PATCH] powerpc/32: Display modules range in virtual memory layout

2021-06-11 Thread Christophe Leroy
book3s/32 and 8xx don't use vmalloc for modules. Print the modules area at startup as part of the virtual memory layout: [0.00] Kernel virtual memory layout: [0.00] * 0xffafc000..0xc000 : fixmap [0.00] * 0xc900..0xffafc000 : vmalloc & ioremap [0.00]

Re: simplify gendisk and request_queue allocation for blk-mq based drivers

2021-06-11 Thread Jens Axboe
On 6/2/21 12:53 AM, Christoph Hellwig wrote: > Hi all, > > this series is the scond part of cleaning up lifetimes and allocation of > the gendisk and request_queue structure. It adds a new interface to > allocate the disk and queue together for blk based drivers, and uses that > in all drivers

Re: [PATCH] btrfs: Disable BTRFS on platforms having 256K pages

2021-06-11 Thread Chris Mason
> On Jun 10, 2021, at 12:20 PM, David Sterba wrote: > > On Thu, Jun 10, 2021 at 04:50:09PM +0200, Christophe Leroy wrote: >> >> >> Le 10/06/2021 à 15:54, Chris Mason a écrit : >>> On Jun 10, 2021, at 1:23 AM, Christophe Leroy wrote: With a config having PAGE_SIZE set

Re: [PATCH v9 06/14] swiotlb: Update is_swiotlb_active to add a struct device argument

2021-06-11 Thread Claire Chang
I don't have the HW to verify the change. Hopefully I use the right device struct for is_swiotlb_active.

Re: [PATCH v8 00/15] Restricted DMA

2021-06-11 Thread Claire Chang
v9 here: https://lore.kernel.org/patchwork/cover/1445081/ On Mon, Jun 7, 2021 at 11:28 AM Claire Chang wrote: > > On Sat, Jun 5, 2021 at 1:48 AM Will Deacon wrote: > > > > Hi Claire, > > > > On Thu, May 27, 2021 at 08:58:30PM +0800, Claire Chang wrote: > > > This series implements mitigations

Re: [PATCH v9 03/14] swiotlb: Set dev->dma_io_tlb_mem to the swiotlb pool used

2021-06-11 Thread Claire Chang
I'm not sure if this would break arch/x86/pci/sta2x11-fixup.c swiotlb_late_init_with_default_size is called here https://elixir.bootlin.com/linux/v5.13-rc5/source/arch/x86/pci/sta2x11-fixup.c#L60 On Fri, Jun 11, 2021 at 11:27 PM Claire Chang wrote: > > Always have the pointer to the swiotlb pool

[PATCH v9 14/14] of: Add plumbing for restricted DMA pool

2021-06-11 Thread Claire Chang
If a device is not behind an IOMMU, we look up the device node and set up the restricted DMA when the restricted-dma-pool is presented. Signed-off-by: Claire Chang --- drivers/of/address.c| 33 + drivers/of/device.c | 3 +++ drivers/of/of_private.h | 6

[PATCH v9 13/14] dt-bindings: of: Add restricted DMA pool

2021-06-11 Thread Claire Chang
Introduce the new compatible string, restricted-dma-pool, for restricted DMA. One can specify the address and length of the restricted DMA memory region by restricted-dma-pool in the reserved-memory node. Signed-off-by: Claire Chang --- .../reserved-memory/reserved-memory.txt | 36

[PATCH v9 12/14] dma-direct: Allocate memory from restricted DMA pool if available

2021-06-11 Thread Claire Chang
The restricted DMA pool is preferred if available. The restricted DMA pools provide a basic level of protection against the DMA overwriting buffer contents at unexpected times. However, to protect against general data leakage and system memory corruption, the system needs to provide a way to lock

[PATCH v9 11/14] swiotlb: Add restricted DMA alloc/free support.

2021-06-11 Thread Claire Chang
Add the functions, swiotlb_{alloc,free} to support the memory allocation from restricted DMA pool. Signed-off-by: Claire Chang --- include/linux/swiotlb.h | 15 +++ kernel/dma/swiotlb.c| 35 +-- 2 files changed, 48 insertions(+), 2 deletions(-)

[PATCH v9 10/14] dma-direct: Add a new wrapper __dma_direct_free_pages()

2021-06-11 Thread Claire Chang
Add a new wrapper __dma_direct_free_pages() that will be useful later for swiotlb_free(). Signed-off-by: Claire Chang --- kernel/dma/direct.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c index

[PATCH v9 09/14] swiotlb: Refactor swiotlb_tbl_unmap_single

2021-06-11 Thread Claire Chang
Add a new function, release_slots, to make the code reusable for supporting different bounce buffer pools, e.g. restricted DMA pool. Signed-off-by: Claire Chang --- kernel/dma/swiotlb.c | 35 --- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git

[PATCH v9 08/14] swiotlb: Move alloc_size to find_slots

2021-06-11 Thread Claire Chang
Move the maintenance of alloc_size to find_slots for better code reusability later. Signed-off-by: Claire Chang --- kernel/dma/swiotlb.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index e5ccc198d0a7..364c6c822063

[PATCH v9 07/14] swiotlb: Bounce data from/to restricted DMA pool if available

2021-06-11 Thread Claire Chang
Regardless of swiotlb setting, the restricted DMA pool is preferred if available. The restricted DMA pools provide a basic level of protection against the DMA overwriting buffer contents at unexpected times. However, to protect against general data leakage and system memory corruption, the system

[PATCH v9 06/14] swiotlb: Update is_swiotlb_active to add a struct device argument

2021-06-11 Thread Claire Chang
Update is_swiotlb_active to add a struct device argument. This will be useful later to allow for restricted DMA pool. Signed-off-by: Claire Chang --- drivers/gpu/drm/i915/gem/i915_gem_internal.c | 2 +- drivers/gpu/drm/nouveau/nouveau_ttm.c| 2 +- drivers/pci/xen-pcifront.c

[PATCH v9 05/14] swiotlb: Update is_swiotlb_buffer to add a struct device argument

2021-06-11 Thread Claire Chang
Update is_swiotlb_buffer to add a struct device argument. This will be useful later to allow for restricted DMA pool. Signed-off-by: Claire Chang --- drivers/iommu/dma-iommu.c | 12 ++-- drivers/xen/swiotlb-xen.c | 2 +- include/linux/swiotlb.h | 7 --- kernel/dma/direct.c

[PATCH v9 04/14] swiotlb: Add restricted DMA pool initialization

2021-06-11 Thread Claire Chang
Add the initialization function to create restricted DMA pools from matching reserved-memory nodes. Signed-off-by: Claire Chang --- include/linux/swiotlb.h | 3 +- kernel/dma/Kconfig | 14 kernel/dma/swiotlb.c| 75 + 3 files changed, 91

[PATCH v9 03/14] swiotlb: Set dev->dma_io_tlb_mem to the swiotlb pool used

2021-06-11 Thread Claire Chang
Always have the pointer to the swiotlb pool used in struct device. This could help simplify the code for other pools. Signed-off-by: Claire Chang --- drivers/of/device.c | 3 +++ include/linux/device.h | 4 include/linux/swiotlb.h | 8 kernel/dma/swiotlb.c| 8 4

[PATCH v9 02/14] swiotlb: Refactor swiotlb_create_debugfs

2021-06-11 Thread Claire Chang
Split the debugfs creation to make the code reusable for supporting different bounce buffer pools, e.g. restricted DMA pool. Signed-off-by: Claire Chang --- kernel/dma/swiotlb.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/kernel/dma/swiotlb.c

[PATCH v9 01/14] swiotlb: Refactor swiotlb init functions

2021-06-11 Thread Claire Chang
Add a new function, swiotlb_init_io_tlb_mem, for the io_tlb_mem struct initialization to make the code reusable. Signed-off-by: Claire Chang --- kernel/dma/swiotlb.c | 53 ++-- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git

[PATCH v9 00/14] Restricted DMA

2021-06-11 Thread Claire Chang
This series implements mitigations for lack of DMA access control on systems without an IOMMU, which could result in the DMA accessing the system memory at unexpected times and/or unexpected addresses, possibly leading to data leakage or corruption. For example, we plan to use the PCI-e bus for

Re: [PATCH 0/1] PPC32: fix ptrace() access to FPU registers

2021-06-11 Thread Radu Rendec
On Fri, 2021-06-11 at 08:02 +0200, Christophe Leroy wrote: >Le 19/06/2019 à 14:57, Radu Rendec a écrit : >> On Wed, 2019-06-19 at 10:36 +1000, Daniel Axtens wrote: >>> Andreas Schwab < >>> sch...@linux-m68k.org writes: >>> On Jun 18 2019, Radu Rendec < radu.ren...@gmail.com >

Re: [PATCH] btrfs: Disable BTRFS on platforms having 256K pages

2021-06-11 Thread David Sterba
On Fri, Jun 11, 2021 at 12:58:58PM +, Chris Mason wrote: > > On Jun 10, 2021, at 12:20 PM, David Sterba wrote: > > On Thu, Jun 10, 2021 at 04:50:09PM +0200, Christophe Leroy wrote: > >> Le 10/06/2021 à 15:54, Chris Mason a écrit : > On Jun 10, 2021, at 1:23 AM, Christophe Leroy >

[RFC 1/2] powerpc/cpuidle: Extract IPI based and timer based wakeup latency from idle states

2021-06-11 Thread Pratik R. Sampat
Introduce a mechanism to fire directed IPIs from a specified source CPU to a specified target CPU and measure the difference in time incurred on wakeup. Also, introduce a mechanism to queue a HR timer on a specified CPU and subsequently measure the time taken to wakeup the CPU. Finally define a

[RFC 2/2] powerpc/selftest: Add support for cpuidle latency measurement

2021-06-11 Thread Pratik R. Sampat
The cpuidle latency selftest provides support to systematically extract, analyse and present IPI and timer based wakeup latencies for each CPU and each idle state available on the system. The selftest leverages test-cpuidle_latency module's debugfs interface to interact and extract latency

[RFC 0/2] CPU-Idle latency selftest framework

2021-06-11 Thread Pratik R. Sampat
A kernel module + userspace driver to estimate the wakeup latency caused by going into stop states. The motivation behind this program is to find significant deviations behind advertised latency and residency values. The patchset measures latencies for two kinds of events. IPIs and Timers As this

Re: [PATCH] fs: btrfs: Disable BTRFS on platforms having 256K pages

2021-06-11 Thread David Sterba
On Thu, Jun 10, 2021 at 05:23:02AM +, Christophe Leroy wrote: > With a config having PAGE_SIZE set to 256K, BTRFS build fails > with the following message > > include/linux/compiler_types.h:326:38: error: call to > '__compiletime_assert_791' declared with attribute error: BUILD_BUG_ON >

Re: [PATCH 6/6] mm/mremap: hold the rmap lock in write mode when moving page table entries.

2021-06-11 Thread Jann Horn
On Thu, Jun 10, 2021 at 10:35 AM Aneesh Kumar K.V wrote: > To avoid a race between rmap walk and mremap, mremap does take_rmap_locks(). > The lock was taken to ensure that rmap walk don't miss a page table entry due > to > PTE moves via move_pagetables(). The kernel does further optimization of

[PATCH] powerpc/boot: add zImage.lds to targets

2021-06-11 Thread Nicholas Piggin
This prevents spurious rebuilds of the lds and then wrappers. Signed-off-by: Nicholas Piggin --- arch/powerpc/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index be84a72f8258..405acd2df160 100644 ---

[PATCH] powerpc/build: vdso linker warning for orphan sections

2021-06-11 Thread Nicholas Piggin
Add --orphan-handling=warn for vdsos, and adjust vdso linker scripts to deal with orphan sections. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/vdso32/Makefile | 2 +- arch/powerpc/kernel/vdso32/vdso32.lds.S | 3 ++- arch/powerpc/kernel/vdso64/Makefile | 2 +-

Re: [PATCH v4 2/2] powerpc/64: Option to use ELF V2 ABI for big-endian kernels

2021-06-11 Thread Michal Suchánek
On Fri, Jun 11, 2021 at 11:58:19AM +0200, Michal Suchánek wrote: > On Fri, Jun 11, 2021 at 07:39:59PM +1000, Nicholas Piggin wrote: > > Provide an option to build big-endian kernels using the ELFv2 ABI. This > > works on GCC only so far, although it is rumored to work with clang > > that's not

Re: [PATCH v4 2/2] powerpc/64: Option to use ELF V2 ABI for big-endian kernels

2021-06-11 Thread Michal Suchánek
On Fri, Jun 11, 2021 at 07:39:59PM +1000, Nicholas Piggin wrote: > Provide an option to build big-endian kernels using the ELFv2 ABI. This > works on GCC only so far, although it is rumored to work with clang > that's not been tested yet. A new module version check ensures the > module ELF ABI

[PATCH -next 5/9] ASoC: fsl_micfil: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_micfil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index 3cf789ed6cbe..8c0c75ce9490 100644 ---

[PATCH -next 8/9] ASoC: fsl_ssi: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_ssi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 2b57b60431bb..ecbc1c365d5b 100644 ---

[PATCH -next 9/9] ASoC: fsl_xcvr: check return value after calling platform_get_resource_byname()

2021-06-11 Thread Yang Yingliang
It will cause null-ptr-deref if platform_get_resource_byname() returns NULL, we need check the return value. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_xcvr.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index

[PATCH -next 1/9] ASoC: fsl_asrc: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_asrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 0e1ad8efebd3..24b41881a68f 100644 ---

[PATCH -next 2/9] ASoC: fsl_aud2htx: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_aud2htx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_aud2htx.c b/sound/soc/fsl/fsl_aud2htx.c index a328697511f7..99ab7f0241cf 100644

[PATCH -next 6/9] ASoC: fsl_sai: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_sai.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index 407a45e48eee..223fcd15bfcc 100644 ---

[PATCH -next 0/9] ASoC: fsl: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
patch #1 ~ #8: Use devm_platform_get_and_ioremap_resource() patch #9 check return value of platform_get_resource_byname() Yang Yingliang (9): ASoC: fsl_asrc: Use devm_platform_get_and_ioremap_resource() ASoC: fsl_aud2htx: Use devm_platform_get_and_ioremap_resource() ASoC: fsl_easrc:

[PATCH -next 3/9] ASoC: fsl_easrc: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_easrc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index b1765c7d3bcd..19c3c3b5939e 100644 ---

[PATCH -next 4/9] ASoC: fsl_esai: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_esai.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index f356ae5925af..a961f837cd09 100644 ---

[PATCH -next 7/9] ASoC: fsl_spdif: Use devm_platform_get_and_ioremap_resource()

2021-06-11 Thread Yang Yingliang
Use devm_platform_get_and_ioremap_resource() to simplify code. Signed-off-by: Yang Yingliang --- sound/soc/fsl/fsl_spdif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 2a76714eb8e6..d812a3ff5845 100644 ---

[PATCH v4 2/2] powerpc/64: Option to use ELF V2 ABI for big-endian kernels

2021-06-11 Thread Nicholas Piggin
Provide an option to build big-endian kernels using the ELFv2 ABI. This works on GCC only so far, although it is rumored to work with clang that's not been tested yet. A new module version check ensures the module ELF ABI level matches the kernel build. This can give big-endian kernels some

[PATCH v4 1/2] module: add elf_check_module_arch for module specific elf arch checks

2021-06-11 Thread Nicholas Piggin
The elf_check_arch() function is used to test usermode binaries, but kernel modules may have more specific requirements. powerpc would like to test for ABI version compatibility. Add an arch-overridable function elf_check_module_arch() that defaults to elf_check_arch() and use it in

[PATCH v4 0/2] powerpc/64: Option to use ELF V2 ABI for big-endian

2021-06-11 Thread Nicholas Piggin
Since v3 I added Michael's module check for ELF ABI level. This requires a change to core module code. If Jessica is happy with it it could go via the powerpc tree. Thanks, Nick Nicholas Piggin (2): module: add elf_check_module_arch for module specific elf arch checks powerpc/64: Option to

[PATCH v2] powerpc/tau: Remove superfluous parameter in alloc_workqueue() call

2021-06-11 Thread Finn Thain
This avoids an (optional) compiler warning: arch/powerpc/kernel/tau_6xx.c: In function 'TAU_init': arch/powerpc/kernel/tau_6xx.c:204:30: error: too many arguments for format [-Werror=format-extra-args] tau_workq = alloc_workqueue("tau", WQ_UNBOUND, 1, 0); Reported-by: Naresh Kamboju Fixes:

Re: [PATCH 2/2] powerpc/tm: Avoid SPR flush if TM is disabled

2021-06-11 Thread Christophe Leroy
Le 01/10/2018 à 21:47, Breno Leitao a écrit : There is a bug in the flush_tmregs_to_thread() function, where it forces TM SPRs to be saved to the thread even if the TM facility is disabled. This bug could be reproduced using a simple test case: mtspr(SPRN_TEXASR, XX); sleep until

Re: [PATCH 1/2] powerpc/tm: Move tm_enable definition

2021-06-11 Thread Christophe Leroy
Le 01/10/2018 à 21:47, Breno Leitao a écrit : The goal of this patch is to move function tm_enabled() to tm.h in order to allow this function to be used by other files as an inline function. This patch also removes the double inclusion of tm.h in the traps.c source code. One inclusion is

Re: [PATCH 09/16] ps3disk: use memcpy_{from,to}_bvec

2021-06-11 Thread Christoph Hellwig
On Tue, Jun 08, 2021 at 06:48:22PM -0700, Ira Weiny wrote: > I'm still not 100% sure that these flushes are needed but the are not no-ops > on > every arch. Would it be best to preserve them after the > memcpy_to/from_bvec()? > > Same thing in patch 11 and 14. To me it seems kunmap_local

Re: [PATCH] powerpc/tau: Remove redundant parameter in alloc_workqueue() call

2021-06-11 Thread Christophe Leroy
Redundant with what ? Do you mean superfluous ? Le 11/06/2021 à 04:59, Finn Thain a écrit : This avoids an (optional) compiler warning: arch/powerpc/kernel/tau_6xx.c: In function 'TAU_init': arch/powerpc/kernel/tau_6xx.c:204:30: error: too many arguments for format

Re: [PATCH 0/1] PPC32: fix ptrace() access to FPU registers

2021-06-11 Thread Christophe Leroy
Le 19/06/2019 à 14:57, Radu Rendec a écrit : On Wed, 2019-06-19 at 10:36 +1000, Daniel Axtens wrote: Andreas Schwab < sch...@linux-m68k.org writes: On Jun 18 2019, Radu Rendec < radu.ren...@gmail.com wrote: Since you already have a working setup, it would be nice if you could add a