Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-02 Thread Nathan Chancellor
Hi Will and Robin, On Fri, Jul 02, 2021 at 04:13:50PM +0100, Robin Murphy wrote: > On 2021-07-02 14:58, Will Deacon wrote: > > Hi Nathan, > > > > On Thu, Jul 01, 2021 at 12:52:20AM -0700, Nathan Chancellor wrote: > > > On 7/1/2021 12:40 AM, Will Deacon wrote: > > > > On Wed, Jun 30, 2021 at 08:56

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Zhang Yi
On 2021/7/3 11:35, Theodore Ts'o wrote: > On Sat, Jul 03, 2021 at 11:05:07AM +0800, Zhang Yi wrote: >> >> Originally, I want to add this shrinker as a optional feature for jbd2 >> because >> only ext4 use it now and I'm not sure does ocfs2 needs this feature. So I >> export >> jbd2_journal_[un]re

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Theodore Ts'o
On Sat, Jul 03, 2021 at 11:37:07AM +0800, Zhang Yi wrote: > I check the ocfs2 code, if we register shrinker here, > __ocfs2_recovery_thread()-> > ocfs2_recover_node() seems will register and unregister a lot of unnecessary > shrinkers. It depends on the lifetime of the shrinker and the journal, >

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Zhang Yi
On 2021/7/3 6:11, Theodore Ts'o wrote: > On Fri, Jul 02, 2021 at 12:11:54PM -0400, Theodore Ts'o wrote: >> So it probably makes more sense to keep jbd2_journal_unregister_shrinker() >> in jbd2_destroy_journal(), since arguably the fact that we are using a >> shrinker is an internal implementation d

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Theodore Ts'o
On Sat, Jul 03, 2021 at 11:05:07AM +0800, Zhang Yi wrote: > > Originally, I want to add this shrinker as a optional feature for jbd2 because > only ext4 use it now and I'm not sure does ocfs2 needs this feature. So I > export > jbd2_journal_[un]register_shrinker(), ext4 could invoke them individu

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Zhang Yi
On 2021/7/3 0:11, Theodore Ts'o wrote: > On Fri, Jul 02, 2021 at 09:52:13PM +0800, Zhang Yi wrote: >> >> Sorry about not catching this problem, this fix is not format corrected, >> if you think this fix is OK, I can send a patch after test. > > The issue I see with your approach, which removes the

[powerpc:fixes-test] BUILD SUCCESS 2e5df51883031f749cb1b7032e4da7d7fe267e97

2021-07-02 Thread kernel test robot
allmodconfig powerpc allnoconfig i386 randconfig-a004-20210702 i386 randconfig-a006-20210702 i386 randconfig-a001-20210702 i386 randconfig-a003-20210702 i386 randconfig-a005-20210702

[powerpc:merge] BUILD SUCCESS 858ea4d1f5c22aa2f8a6724c2a65458294f2ddc6

2021-07-02 Thread kernel test robot
onfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20210702 i386 randconfig-a006-20210702 i386 randconfig-a001-202

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Zhang Yi
On 2021/7/2 21:23, Zhang Yi wrote: > On 2021/7/2 17:38, Guoqing Jiang wrote: >> >> >> On 7/2/21 4:51 PM, Sachin Sant wrote: >>> While running LTP tests (chdir01) against 5.13.0-next20210701 booted on a >>> Power server, >>> following crash is encountered. >>> >>> [ 3051.182992] ext2 filesystem bei

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Zhang Yi
On 2021/7/2 17:38, Guoqing Jiang wrote: > > > On 7/2/21 4:51 PM, Sachin Sant wrote: >> While running LTP tests (chdir01) against 5.13.0-next20210701 booted on a >> Power server, >> following crash is encountered. >> >> [ 3051.182992] ext2 filesystem being mounted at >> /var/tmp/avocado_oau90dri

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Guoqing Jiang
On 7/2/21 4:51 PM, Sachin Sant wrote: While running LTP tests (chdir01) against 5.13.0-next20210701 booted on a Power server, following crash is encountered. [ 3051.182992] ext2 filesystem being mounted at /var/tmp/avocado_oau90dri/ltp-W0cFB5HtCy/lKhal5/mntpoint supports timestamps until 2

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Theodore Ts'o
On Fri, Jul 02, 2021 at 12:11:54PM -0400, Theodore Ts'o wrote: > So it probably makes more sense to keep jbd2_journal_unregister_shrinker() > in jbd2_destroy_journal(), since arguably the fact that we are using a > shrinker is an internal implementation detail, and the users of jbd2 > ideally shoul

Re: powerpc/spider-pci: Remove set but not used variable 'val'

2021-07-02 Thread Geert Uytterhoeven
Hi Michael, On Fri, Jul 2, 2021 at 10:14 PM Linux Kernel Mailing List wrote: > Commit: f377f7da26d2af87e2ddc39190546f62ecdb2bd8 > Parent: 911bacda4658129bee039dc90fc0c3f193ee2695 > Refname:refs/heads/master > Web: > https://git.kernel.org/torvalds/c/f377f7da26d2af87e2ddc391905

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.14-1 tag

2021-07-02 Thread pr-tracker-bot
The pull request you sent on Sat, 03 Jul 2021 00:12:30 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.14-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/019b3fd94ba73d3ac615f0537440b81f129821f6 Thank you! -- Deet-doot-d

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Theodore Ts'o
On Fri, Jul 02, 2021 at 09:52:13PM +0800, Zhang Yi wrote: > > Sorry about not catching this problem, this fix is not format corrected, > if you think this fix is OK, I can send a patch after test. The issue I see with your approach, which removes the jbd2_journal_unregister_shrinker() call from j

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-02 Thread Robin Murphy
On 2021-07-02 14:58, Will Deacon wrote: Hi Nathan, On Thu, Jul 01, 2021 at 12:52:20AM -0700, Nathan Chancellor wrote: On 7/1/2021 12:40 AM, Will Deacon wrote: On Wed, Jun 30, 2021 at 08:56:51AM -0700, Nathan Chancellor wrote: On Wed, Jun 30, 2021 at 12:43:48PM +0100, Will Deacon wrote: On We

[GIT PULL] Please pull powerpc/linux.git powerpc-5.14-1 tag

2021-07-02 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc updates for 5.14. You already have the KVM changes mentioned below via the KVM tree. Notable out of area changes: 7ee3e97e00a3 kprobes: Allow architectures to override optinsn page allocation include/linux/kprob

Re: [PATCH v15 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-07-02 Thread Will Deacon
Hi Nathan, On Thu, Jul 01, 2021 at 12:52:20AM -0700, Nathan Chancellor wrote: > On 7/1/2021 12:40 AM, Will Deacon wrote: > > On Wed, Jun 30, 2021 at 08:56:51AM -0700, Nathan Chancellor wrote: > > > On Wed, Jun 30, 2021 at 12:43:48PM +0100, Will Deacon wrote: > > > > On Wed, Jun 30, 2021 at 05:17:2

Re: [PATCH v15 12/12] of: Add plumbing for restricted DMA pool

2021-07-02 Thread Guenter Roeck
On 7/2/21 6:18 AM, Will Deacon wrote: On Fri, Jul 02, 2021 at 12:39:41PM +0100, Robin Murphy wrote: On 2021-07-02 04:08, Guenter Roeck wrote: On Thu, Jun 24, 2021 at 11:55:26PM +0800, Claire Chang wrote: If a device is not behind an IOMMU, we look up the device node and set up the restricted D

Re: [PATCH v15 12/12] of: Add plumbing for restricted DMA pool

2021-07-02 Thread Will Deacon
On Fri, Jul 02, 2021 at 12:39:41PM +0100, Robin Murphy wrote: > On 2021-07-02 04:08, Guenter Roeck wrote: > > On Thu, Jun 24, 2021 at 11:55:26PM +0800, Claire Chang wrote: > > > If a device is not behind an IOMMU, we look up the device node and set > > > up the restricted DMA when the restricted-dm

Re: [powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Theodore Ts'o
On Fri, Jul 02, 2021 at 05:38:10PM +0800, Guoqing Jiang wrote: > > > I guess the problem is j_jh_shrink_count was destroyed in ext4_put_super _>  > jbd2_journal_unregister_shrinker > which is before the path ext4_put_super -> jbd2_journal_destroy -> > jbd2_log_do_checkpoint to call > percpu_count

Re: [PATCH v15 12/12] of: Add plumbing for restricted DMA pool

2021-07-02 Thread Robin Murphy
On 2021-07-02 04:08, Guenter Roeck wrote: Hi, On Thu, Jun 24, 2021 at 11:55:26PM +0800, Claire Chang wrote: 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 Tested-by: Stefano St

Re: [PATCH] powerpc: Only build restart_table.c for 64s

2021-07-02 Thread Michael Ellerman
On Thu, 1 Jul 2021 22:50:26 +1000, Michael Ellerman wrote: > Commit 9b69d48c7516 ("powerpc/64e: remove implicit soft-masking and > interrupt exit restart logic") limited the implicit soft masking and > restart logic to 64-bit Book3S only. However we are still building > restart_table.c for all 64-b

Re: [PATCH 1/2] powerpc/bpf: Fix detecting BPF atomic instructions

2021-07-02 Thread Jiri Olsa
On Thu, Jul 01, 2021 at 08:38:58PM +0530, Naveen N. Rao wrote: > Commit 91c960b0056672 ("bpf: Rename BPF_XADD and prepare to encode other > atomics in .imm") converted BPF_XADD to BPF_ATOMIC and added a way to > distinguish instructions based on the immediate field. Existing JIT > implementations w

Re: [PATCH v2 3/4] powerpc: wii.dts: Expose the OTP on this platform

2021-07-02 Thread Jonathan Neuschäfer
On Thu, Jul 01, 2021 at 09:56:55PM +0200, Emmanuel Gil Peyrot wrote: > On Sat, Jun 26, 2021 at 11:34:01PM +, Jonathan Neuschäfer wrote: > > On Wed, May 19, 2021 at 11:50:43AM +0200, Emmanuel Gil Peyrot wrote: [...] > > > + otp@d8001ec { > > > + compatible = "nintendo,hol

[powerpc][5.13.0-next-20210701] Kernel crash while running ltp(chdir01) tests

2021-07-02 Thread Sachin Sant
While running LTP tests (chdir01) against 5.13.0-next20210701 booted on a Power server, following crash is encountered. [ 3051.182992] ext2 filesystem being mounted at /var/tmp/avocado_oau90dri/ltp-W0cFB5HtCy/lKhal5/mntpoint supports timestamps until 2038 (0x7fff) [ 3051.621341] EXT4-fs (lo