Re: [PATCH v6 1/4] mfd: rt4831: Adds support for Richtek RT4831

2021-04-18 Thread ChiYuan Huang
Hi, Linux mfd reviewers: It's been three weeks not to get any response from you. Is there something wrong about this mfd patch? If yes, please feel free to let me know. cy_huang 於 2021年3月28日 週日 下午11:24寫道: > > From: ChiYuan Huang > > This adds support Richtek RT4831 core. It includes four

[PATCH v2] MIPS: Makefile: Replace -pg with CC_FLAGS_FTRACE

2021-04-18 Thread zhaoxiao
In preparation for mips supporting ftrace built on other compiler options, let's have the mips Makefiles remove the $(CC_FLAGS_FTRACE) flags, whatever these may be, rather than assuming '-pg'. Signed-off-by: zhaoxiao --- v2:add this same change be appropriate to all of the below Makefile.

I need your assistance,

2021-04-18 Thread David
I need your assistance, Reply for more details. davidbrown1...@juno.com or Call: + 1 918 397 9602

Re: [PATCH] ecryptfs: fix kernel panic with null dev_name

2021-04-18 Thread Tyler Hicks
On 2021-02-26 15:00:23, Jeffrey Mitchell wrote: > When mounting eCryptfs, a null "dev_name" argument to ecryptfs_mount() > causes a kernel panic if the parsed options are valid. The easiest way to > reproduce this is to call mount() from userspace with an existing > eCryptfs mount's options and a

RE: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-18 Thread Shyam Prasad
Hi Salvatore, Attached is a proposed fix from Paulo for older kernels. Can you please confirm that this works for you too? Regards, Shyam -Original Message- From: Salvatore Bonaccorso On Behalf Of Salvatore Bonaccorso Sent: Sunday, April 18, 2021 6:11 PM To: Greg Kroah-Hartman

Re: [PATCH 3/3] powerpc/mm/hash: Avoid multiple HPT resize-downs on memory hotunplug

2021-04-18 Thread David Gibson
On Fri, Apr 09, 2021 at 12:31:03AM -0300, Leonardo Bras wrote: > Hello David, thanks for commenting. > > On Tue, 2021-03-23 at 10:45 +1100, David Gibson wrote: > > > @@ -805,6 +808,10 @@ static int resize_hpt_for_hotplug(unsigned long > > > new_mem_size, bool shrinking) > > >   if (shrinking) {

Re: [PATCH 2/3] powerpc/mm/hash: Avoid multiple HPT resize-ups on memory hotplug

2021-04-18 Thread David Gibson
On Thu, Apr 08, 2021 at 11:51:36PM -0300, Leonardo Bras wrote: > Hello David, thanks for the feedback! > > On Mon, 2021-03-22 at 18:55 +1100, David Gibson wrote: > > > +void hash_memory_batch_expand_prepare(unsigned long newsize) > > > +{ > > > + /* > > > + * Resizing-up HPT should never fail,

I need your assistance,

2021-04-18 Thread David
I need your assistance, Reply for more details. davidbrown1...@juno.com or Call: + 1 918 397 9602

[PATCH 4/4] soundwire: bus: add missing \n in dynamic debug

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart They were missed in previous contributions. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Guennadi Liakhovetski Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- drivers/soundwire/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 3/4] soundwire: bus: handle -ENODATA errors in clock stop/start sequences

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart If a device lost sync and can no longer ACK a command, it may not be able to enter a lower-power state but it will still be able to resync when the clock restarts. In those cases, we want to continue with the clock stop sequence. This patch modifies the behavior

[PATCH 2/4] soundwire: add missing kernel-doc description

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart For some reason we never added a description for the clk_stop callback. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Guennadi Liakhovetski Reviewed-by: Rander Wang Signed-off-by: Bard Liao --- include/linux/soundwire/sdw.h | 1 + 1 file changed, 1

[PATCH 1/4] soundwire: bus: only use CLOCK_STOP_MODE0 and fix confusions

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart Existing devices and implementations only support the required CLOCK_STOP_MODE0. All the code related to CLOCK_STOP_MODE1 has not been tested and is highly questionable, with a clear confusion between CLOCK_STOP_MODE1 and the simple clock stop state machine. This

[PATCH 0/4] soundwire: only use CLOCK_STOP_MODE0 and handle -ENODATA

2021-04-18 Thread Bard Liao
Existing devices and implementations only support the required CLOCK_STOP_MODE0. All the code related to CLOCK_STOP_MODE1 has not been tested and is highly questionable, with a clear confusion between CLOCK_STOP_MODE1 and the simple clock stop state machine. This patch removes all usages of

RE: [PATCH 3/3] fpga: region: Adds runtime PM support

2021-04-18 Thread Nava kishore Manne
Hi Moritz, Please find my response inline. > -Original Message- > From: Moritz Fischer > Sent: Saturday, April 10, 2021 3:01 AM > To: Nava kishore Manne > Cc: m...@kernel.org; t...@redhat.com; robh...@kernel.org; Michal Simek > ; linux-f...@vger.kernel.org; >

Re: [PATCH net-next v3 2/5] mm: add a signature in struct page

2021-04-18 Thread Ilias Apalodimas
On Wed, Apr 14, 2021 at 01:09:47PM -0700, Shakeel Butt wrote: > On Wed, Apr 14, 2021 at 12:42 PM Jesper Dangaard Brouer > wrote: > > > [...] > > > > > > > > Can this page_pool be used for TCP RX zerocopy? If yes then PageType > > > > can not be used. > > > > > > Yes it can, since it's going to be

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-18 Thread Chris Chiu
On Fri, Apr 16, 2021 at 11:39 AM Alan Stern wrote: > > On Fri, Apr 16, 2021 at 09:24:30AM +0800, Chris Chiu wrote: > > On Fri, Apr 16, 2021 at 2:46 AM Alan Stern > > wrote: > > > > > > On Fri, Apr 16, 2021 at 12:13:43AM +0800, Chris Chiu wrote: > > > > One thing worth mentioning here, I never

Re: [PATCH 00/31] Rid W=1 warnings from GFS2 and EncryptFS

2021-04-18 Thread Tyler Hicks
On 2021-03-30 17:44:27, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > There is more to do in filesystems. Another set will follow. > > Lee Jones (31): ... > fs:

[PATCH] iommu: Use passthrough mode for the Intel IPUs

2021-04-18 Thread Bingbu Cao
Intel IPU(Image Processing Unit) has its own (IO)MMU hardware, The IPU driver allocates its own page table that is not mapped via the DMA, and thus the Intel IOMMU driver blocks access giving this error: DMAR: DRHD: handling fault status reg 3 DMAR: [DMA Read] Request device [00:05.0] PASID

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-18 Thread Dominique MARTINET
Alice Guo (OSS) wrote on Mon, Apr 19, 2021 at 12:27:22PM +0800: > From: Alice Guo > > Update all the code that use soc_device_match A single patch might be difficult to accept for all components, a each maintainer will probably want to have a say on their subsystem? I would suggest to split

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-18 Thread Leon Romanovsky
On Mon, Apr 19, 2021 at 12:27:22PM +0800, Alice Guo (OSS) wrote: > From: Alice Guo > > Update all the code that use soc_device_match because add support for > soc_device_match returning -EPROBE_DEFER. > > Signed-off-by: Alice Guo > --- > drivers/bus/ti-sysc.c | 2 +- >

Re: [Qestion] Is preempt_disable/enable needed in non-preemption code path

2021-04-18 Thread Xu, Yanfei
On 4/17/21 1:26 AM, Paul E. McKenney wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] On Fri, Apr 16, 2021 at 06:51:10PM +0800, Xu, Yanfei wrote: On 4/16/21 1:07 AM, Paul E. McKenney wrote: [Please note: This e-mail is from an EXTERNAL e-mail address] On Fri, Apr 16,

Re: [PATCH] Revert "MIPS: make userspace mapping young by default".

2021-04-18 Thread Huang Pei
On Sat, Apr 17, 2021 at 12:45:59AM +0800, Zhou Yanjie wrote: > > On 2021/4/16 下午5:20, 黄沛 wrote: > > Is there any log about the panic? > > > Yes, below is the log: > > > [  195.436017] CPU 0 Unable to handle kernel paging request at virtual > address 77eb8000, epc == 80117868, ra == 80118208 >

[PATCH v9 clocksource 2/6] clocksource: Retry clock read if long delays detected

2021-04-18 Thread Paul E. McKenney
When the clocksource watchdog marks a clock as unstable, this might be due to that clock being unstable or it might be due to delays that happen to occur between the reads of the two clocks. Yes, interrupts are disabled across those two reads, but there are no shortage of things that can delay

[PATCH v9 clocksource 5/6] clocksource: Limit number of CPUs checked for clock synchronization

2021-04-18 Thread Paul E. McKenney
Currently, if skew is detected on a clock marked CLOCK_SOURCE_VERIFY_PERCPU, that clock is checked on all CPUs. This is thorough, but might not be what you want on a system with a few tens of CPUs, let alone a few hundred of them. Therefore, by default check only up to eight randomly chosen

[PATCH v9 clocksource 6/6] clocksource: Reduce WATCHDOG_THRESHOLD

2021-04-18 Thread Paul E. McKenney
Currently, WATCHDOG_THRESHOLD is set to detect a 62.5-millisecond skew in a 500-millisecond WATCHDOG_INTERVAL. This requires that clocks be skewed by more than 12.5% in order to be marked unstable. Except that a clock that is skewed by that much is probably destroying unsuspecting software right

[PATCH v9 clocksource 4/6] clocksource: Provide a module parameter to fuzz per-CPU clock checking

2021-04-18 Thread Paul E. McKenney
Code that checks for clock desynchronization must itself be tested, so create a new clocksource.inject_delay_shift_percpu= kernel boot parameter that adds or subtracts a large value from the check read, using the specified bit of the CPU ID to determine whether to add or to subtract. Cc: John

[PATCH v9 clocksource 3/6] clocksource: Check per-CPU clock synchronization when marked unstable

2021-04-18 Thread Paul E. McKenney
Some sorts of per-CPU clock sources have a history of going out of synchronization with each other. However, this problem has purportedy been solved in the past ten years. Except that it is all too possible that the problem has instead simply been made less likely, which might mean that some of

[PATCH v9 clocksource 1/6] clocksource: Provide module parameters to inject delays in watchdog

2021-04-18 Thread Paul E. McKenney
When the clocksource watchdog marks a clock as unstable, this might be due to that clock being unstable or it might be due to delays that happen to occur between the reads of the two clocks. Yes, interrupts are disabled across those two reads, but there are no shortage of things that can delay

[PATCH v9 clocksource 0/6] Do not mark clocks unstable due to delays for v5.13

2021-04-18 Thread Paul E. McKenney
Hello! If there is a sufficient delay between reading the watchdog clock and the clock under test, the clock under test will be marked unstable through no fault of its own. This series checks for this, doing limited retries to get a good set of clock reads. If the clock is marked unstable and

Re: [RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-18 Thread Dominique MARTINET
First comment overall for the whole serie: Since it is the solution I had suggested when I reported the problem[1] I have no qualm on the approach, comments for individual patches follow. [1] http://lore.kernel.org/r/YGGZJjAxA1IO+/v...@atmark-techno.com Alice Guo (OSS) wrote on Mon, Apr 19,

[RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo Update all the code that use soc_device_match because add support for soc_device_match returning -EPROBE_DEFER. Signed-off-by: Alice Guo --- drivers/bus/ti-sysc.c | 2 +- drivers/clk/renesas/r8a7795-cpg-mssr.c| 4 +++-

[RFC v1 PATCH 2/3] caam: add defer probe when the caam driver cannot identify SoC

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo When imx8_soc_info_driver uses module_platform_driver() to regitser itself, the caam driver cannot identify the SoC in the machine because the SoC driver is probed later, so that add return -EPROBE_DEFER. Signed-off-by: Alice Guo --- drivers/crypto/caam/ctrl.c | 3 +++ 1 file

[RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo In i.MX8M boards, the registration of SoC device is later than caam driver which needs it. Caam driver needs soc_device_match to provide -EPROBE_DEFER when no SoC device is registered and no early_soc_dev_attr. Signed-off-by: Alice Guo --- drivers/base/soc.c | 5 + 1 file

[RFC v1 PATCH 0/3] support soc_device_match to return -EPROBE_DEFER

2021-04-18 Thread Alice Guo (OSS)
From: Alice Guo In patch "soc: imx8m: change to use platform driver", change soc-imx8m.c to use module platform driver and use NVMEM APIs to ocotp register, the reason is that directly reading ocotp egister causes kexec kernel hang because kernel will disable unused clks after kernel boots up.

[PATCH] sched/isolation: reconcile rcu_nocbs= and nohz_full=

2021-04-18 Thread Paul Gortmaker
We have a mismatch between RCU and isolation -- in relation to what is considered the maximum valid CPU number. This matters because nohz_full= and rcu_nocbs= are joined at the hip; in fact the former will enforce the latter. So we don't want a CPU mask to be valid for one and denied for the

Re: [PATCH v3] powerpc: fix EDEADLOCK redefinition error in uapi/asm/errno.h

2021-04-18 Thread Michael Ellerman
On Thu, 17 Sep 2020 06:54:37 -0700, Tony Ambardar wrote: > A few archs like powerpc have different errno.h values for macros > EDEADLOCK and EDEADLK. In code including both libc and linux versions of > errno.h, this can result in multiple definitions of EDEADLOCK in the > include chain.

Re: [PATCH] windfarm: make symbol 'wf_thread' static

2021-04-18 Thread Michael Ellerman
On Wed, 7 Apr 2021 20:57:38 +0800, Yu Kuai wrote: > The sparse tool complains as follows: > > drivers/macintosh/windfarm_core.c:59:20: warning: > symbol 'wf_thread' was not declared. Should it be static? > > This symbol is not used outside of windfarm_core.c, so this > commit marks it static.

Re: [PATCH] powerpc/smp: Make some symbols static

2021-04-18 Thread Michael Ellerman
On Wed, 7 Apr 2021 20:59:03 +0800, Yu Kuai wrote: > The sparse tool complains as follows: > > arch/powerpc/kernel/smp.c:86:1: warning: > symbol '__pcpu_scope_cpu_coregroup_map' was not declared. Should it be > static? > arch/powerpc/kernel/smp.c:125:1: warning: > symbol

Re: [PATCH] macintosh/windfarm: Make symbol 'pm121_sys_state' static

2021-04-18 Thread Michael Ellerman
On Wed, 7 Apr 2021 20:57:12 +0800, Yu Kuai wrote: > The sparse tool complains as follows: > > drivers/macintosh/windfarm_pm121.c:436:24: warning: > symbol 'pm121_sys_state' was not declared. Should it be static? > > This symbol is not used outside of windfarm_pm121.c, so this > commit marks it

Re: [PATCH] macintosh/via-pmu: Make some symbols static

2021-04-18 Thread Michael Ellerman
On Wed, 7 Apr 2021 20:58:03 +0800, Yu Kuai wrote: > The sparse tool complains as follows: > > drivers/macintosh/via-pmu.c:183:5: warning: > symbol 'pmu_cur_battery' was not declared. Should it be static? > drivers/macintosh/via-pmu.c:190:5: warning: > symbol '__fake_sleep' was not declared.

Re: [PATCH] powerpc/pseries: extract host bridge from pci_bus prior to bus removal

2021-04-18 Thread Michael Ellerman
On Thu, 11 Feb 2021 12:24:35 -0600, Tyrel Datwyler wrote: > The pci_bus->bridge reference may no longer be valid after > pci_bus_remove() resulting in passing a bad value to device_unregister() > for the associated bridge device. > > Store the host_bridge reference in a separate variable prior to

Re: [PATCH v5] powerpc/traps: Enhance readability for trap types

2021-04-18 Thread Michael Ellerman
On Wed, 14 Apr 2021 19:00:33 +0800, Xiongwei Song wrote: > Define macros to list ppc interrupt types in interttupt.h, replace the > reference of the trap hex values with these macros. > > Referred the hex numbers in arch/powerpc/kernel/exceptions-64e.S, > arch/powerpc/kernel/exceptions-64s.S,

Re: [PATCH -next] powerpc/fadump: make symbol 'rtas_fadump_set_regval' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 14:20:12 +0800, Pu Lehui wrote: > Fix sparse warnings: > > arch/powerpc/platforms/pseries/rtas-fadump.c:250:6: warning: > symbol 'rtas_fadump_set_regval' was not declared. Should it be static? Applied to powerpc/next. [1/1] powerpc/fadump: make symbol

Re: [PATCH -next] powerpc/xmon: Make symbol 'spu_inst_dump' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 15:01:51 +0800, Pu Lehui wrote: > Fix sparse warning: > > arch/powerpc/xmon/xmon.c:4216:1: warning: > symbol 'spu_inst_dump' was not declared. Should it be static? > > This symbol is not used outside of xmon.c, so make it static. Applied to powerpc/next. [1/1] powerpc/xmon:

Re: [PATCH -next] powerpc/mce: Make symbol 'mce_ue_event_work' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 11:58:02 +0800, Li Huafei wrote: > The sparse tool complains as follows: > > arch/powerpc/kernel/mce.c:43:1: warning: > symbol 'mce_ue_event_work' was not declared. Should it be static? > > This symbol is not used outside of mce.c, so this commit marks it > static. Applied

Re: [PATCH v3 1/1] powerpc/iommu: Enable remaining IOMMU Pagesizes present in LoPAR

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 17:19:16 -0300, Leonardo Bras wrote: > According to LoPAR, ibm,query-pe-dma-window output named "IO Page Sizes" > will let the OS know all possible pagesizes that can be used for creating a > new DDW. > > Currently Linux will only try using 3 of the 8 available options: > 4K,

Re: [PATCH -next] powerpc/perf/hv-24x7: Make some symbols static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:24 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/perf/hv-24x7.c:229:1: warning: > symbol '__pcpu_scope_hv_24x7_txn_flags' was not declared. Should it be > static? > arch/powerpc/perf/hv-24x7.c:230:1: warning: > symbol

Re: [PATCH -next] powerpc/security: Make symbol 'stf_barrier' static

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 11:39:51 +0800, Li Huafei wrote: > The sparse tool complains as follows: > > arch/powerpc/kernel/security.c:253:6: warning: > symbol 'stf_barrier' was not declared. Should it be static? > > This symbol is not used outside of security.c, so this commit marks it > static.

Re: [PATCH 1/2] powerpc: syscalls: switch to generic syscalltbl.sh

2021-04-18 Thread Michael Ellerman
On Tue, 2 Mar 2021 00:30:18 +0900, Masahiro Yamada wrote: > Many architectures duplicate similar shell scripts. > > This commit converts powerpc to use scripts/syscalltbl.sh. This also > unifies syscall_table_32.h and syscall_table_c32.h. Applied to powerpc/next. [1/2] powerpc: syscalls: switch

Re: [PATCH] powerpc/vdso: Separate vvar vma from vdso

2021-04-18 Thread Michael Ellerman
On Fri, 26 Mar 2021 19:17:20 +, Dmitry Safonov wrote: > Since commit 511157ab641e ("powerpc/vdso: Move vdso datapage up front") > VVAR page is in front of the VDSO area. In result it breaks CRIU > (Checkpoint Restore In Userspace) [1], where CRIU expects that "[vdso]" > from /proc/../maps

Re: [PATCH -next] powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:14 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/pseries/pmem.c:142:27: warning: > symbol 'drc_pmem_match' was not declared. Should it be static? > > This symbol is not used outside of pmem.c, so this > commit marks it

Re: [PATCH -next] powerpc/pseries: Make symbol '__pcpu_scope_hcall_stats' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:09 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/pseries/hvCall_inst.c:29:1: warning: > symbol '__pcpu_scope_hcall_stats' was not declared. Should it be static? > > This symbol is not used outside of hvCall_inst.c, so this >

Re: [PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 14:38:55 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/platforms/powernv/opal-core.c:74:16: warning: > symbol 'mpipl_kobj' was not declared. > > This symbol is not used outside of opal-core.c, so marks it static. Applied to powerpc/next.

Re: [PATCH -next] powerpc/perf: Make symbol 'isa207_pmu_format_attr' static

2021-04-18 Thread Michael Ellerman
On Fri, 9 Apr 2021 17:01:19 +0800, Bixuan Cui wrote: > The sparse tool complains as follows: > > arch/powerpc/perf/isa207-common.c:24:18: warning: > symbol 'isa207_pmu_format_attr' was not declared. Should it be static? > > This symbol is not used outside of isa207-common.c, so this > commit

Re: [PATCH RESEND v1 0/4] powerpc/vdso: Add support for time namespaces

2021-04-18 Thread Michael Ellerman
On Wed, 31 Mar 2021 16:48:43 + (UTC), Christophe Leroy wrote: > [Sorry, resending with complete destination list, I used the wrong script on > the first delivery] > > This series adds support for time namespaces on powerpc. > > All timens selftests are successfull. > > Christophe Leroy

Re: [PATCH v2 1/9] powerpc/mem: Move cache flushing functions into mm/cacheflush.c

2021-04-18 Thread Michael Ellerman
On Thu, 8 Apr 2021 15:30:24 + (UTC), Christophe Leroy wrote: > Cache flushing functions are in the middle of completely > unrelated stuff in mm/mem.c > > Create a dedicated mm/cacheflush.c for those functions. > > Also cleanup the list of included headers. Applied to powerpc/next. [1/9]

[PATCH net-next 2/2] net: ethernet: mediatek: support custom GMAC label

2021-04-18 Thread Ilya Lipnitskiy
The MAC device name can now be set within DTS file instead of always being "ethX". This is helpful for DSA to clearly label the DSA master device and distinguish it from DSA slave ports. For example, some devices, such as the Ubiquiti EdgeRouter X, may have ports labeled ethX. Labeling the master

Re: [PATCH] powerpc/signal32: Fix build failure with CONFIG_SPE

2021-04-18 Thread Michael Ellerman
On Sun, 11 Apr 2021 16:39:53 + (UTC), Christophe Leroy wrote: > Add missing fault exit label in unsafe_copy_from_user() in order to > avoid following build failure with CONFIG_SPE > > CC arch/powerpc/kernel/signal_32.o > arch/powerpc/kernel/signal_32.c: In function 'restore_user_regs':

[PATCH net-next 1/2] dt-bindings: net: mediatek: add optional GMAC labels

2021-04-18 Thread Ilya Lipnitskiy
Document the mediatek ethernet driver change that adds support for custom labels and provide an example. Signed-off-by: Ilya Lipnitskiy --- Documentation/devicetree/bindings/net/mediatek-net.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [PATCH 1/3] powerpc/modules: Load modules closer to kernel text

2021-04-18 Thread Michael Ellerman
On Thu, 1 Apr 2021 13:30:41 + (UTC), Christophe Leroy wrote: > On book3s/32, when STRICT_KERNEL_RWX is selected, modules are > allocated on the segment just before kernel text, ie on the > 0xb000-0xbfff when PAGE_OFFSET is 0xc000. > > On the 8xx, TASK_SIZE is 0x8000. The space

[PATCH net-next 0/2] net: ethernet: mediatek: support custom GMAC label

2021-04-18 Thread Ilya Lipnitskiy
Add support for specifying GMAC label via DTS. Useful when it is desired to use a master DSA interface name that is different from the "eth%d" pattern. Ilya Lipnitskiy (2): dt-bindings: net: mediatek: add optional GMAC labels net: ethernet: mediatek: support custom GMAC label

Re: [PATCH] [v2] usb: cdns3: Fix runtime PM imbalance on error

2021-04-18 Thread Peter Chen
On 21-04-12 13:49:07, Dinghao Liu wrote: > When cdns3_gadget_start() fails, a pairing PM usage counter > decrement is needed to keep the counter balanced. > > Signed-off-by: Dinghao Liu Applied, thanks. Peter > --- > > Changelog: > > v2: - Use pm_runtime_put_sync() to decrease refcount. >

Re: [PATCH V2] mm/page_alloc: Ensure that HUGETLB_PAGE_ORDER is less than MAX_ORDER

2021-04-18 Thread Anshuman Khandual
On 4/12/21 2:17 PM, David Hildenbrand wrote: > On 12.04.21 10:06, Anshuman Khandual wrote: >> + linuxppc-...@lists.ozlabs.org >> + linux-i...@vger.kernel.org >> >> On 4/12/21 9:18 AM, Anshuman Khandual wrote: >>> pageblock_order must always be less than MAX_ORDER, otherwise it might lead >>> to

Re: [PATCH v2 3/3] mm,hwpoison: add kill_accessing_process() to find error virtual address

2021-04-18 Thread Aili Yao
On Mon, 19 Apr 2021 11:36:58 +0900 Naoya Horiguchi wrote: > > > 2. In the function hwpoison_pte_range(): > > > if (pfn <= hwp->pfn && hwp->pfn < pfn + PMD_SIZE) this check seem we > > > should use PMD_SIZE/PAGE_SIZE or some macro like this? > > > > Thanks, that's right. HPAGE_PMD_NR seems

[PATCH] dt-bindings: net: mediatek: support MT7621 SoC

2021-04-18 Thread Ilya Lipnitskiy
Add missing binding documentation for SoC support that has been in place since v5.1 Fixes: 889bcbdeee57 ("net: ethernet: mediatek: support MT7621 SoC ethernet hardware") Cc: Bjørn Mork Signed-off-by: Ilya Lipnitskiy --- Documentation/devicetree/bindings/net/mediatek-net.txt | 1 + 1 file

linux-next: build warning after merge of the sound-asoc tree

2021-04-18 Thread Stephen Rothwell
Hi all, After merging the sound-asoc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: sound/soc/generic/simple-card.c: In function 'simple_parse_of': sound/soc/generic/simple-card.c:478:1: warning: the frame size of 1552 bytes is larger than 1024 bytes

[PATCH v2] usb: gadget: dummy_hcd: fix gpf in gadget_setup

2021-04-18 Thread Anirudh Rayabharam
Fix a general protection fault reported by syzbot due to a race between gadget_setup() and gadget_unbind() in raw_gadget. The gadget core is supposed to guarantee that there won't be any more callbacks to the gadget driver once the driver's unbind routine is called. That guarantee is enforced in

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 11:25 AM Matthew Wilcox wrote: > > On Mon, Apr 19, 2021 at 10:33:00AM +0800, Fox Chen wrote: > > On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > > > > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > > > -In the absence of symbolic links,

Re: [PATCH -next v2 1/2] mm/debug_vm_pgtable: Move {pmd/pud}_huge_tests out of CONFIG_TRANSPARENT_HUGEPAGE

2021-04-18 Thread Anshuman Khandual
On 4/9/21 9:35 AM, Anshuman Khandual wrote: > > On 4/6/21 10:18 AM, Shixin Liu wrote: >> v1->v2: >> Modified the commit message. > > Please avoid change log in the commit message, it should be after '---' > below the SOB statement. > >> >> The functions {pmd/pud}_set_huge and

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 10:33:00AM +0800, Fox Chen wrote: > On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > > -In the absence of symbolic links, ``walk_component()`` creates a new > > > +As the last step of

Re: [PATCH V3 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff

Re: [PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-18 Thread Chen-Yu Tsai
Hi, On Mon, Apr 19, 2021 at 10:52 AM Samuel Holland wrote: > > Dealing with the inconsistent numbering has been a major pain, and > there is a solution with (as far as I can tell) no tangible downsides. > So let's use it. > > Yes, I know the kernel supports UUIDs for root=. But UUIDs do not help

Re: [Patch v2 6/7] crypto: qce: common: Add support for AEAD algorithms

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:25 CDT 2021, Thara Gopinath wrote: > Add register programming sequence for enabling AEAD > algorithms on the Qualcomm crypto engine. > > Signed-off-by: Thara Gopinath > --- > > v1->v2: > - Minor fixes like removing not needed initializing of variables > and using

Re: [PATCH V3 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 2 files

[PATCH] soundwire: cadence_master: always set CMD_ACCEPT

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart The Cadence IP can be configured in two different ways to deal with CMD_IGNORED replies to broadcast commands. The CMD_ACCEPT bitfield controls whether the command is discarded or if the IP proceeds with the change (typically a bank switch or clock stop command). The

Re: [PATCH V3 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-18 Thread Jason Wang
在 2021/4/16 下午3:16, Zhu Lingshan 写道: This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based on the device ID. Signed-off-by: Zhu Lingshan ---

Re: [PATCHv2 2/2] iommu/arm-smmu-qcom: Move the adreno smmu specific impl earlier

2021-04-18 Thread Sai Prakash Ranjan
On 2021-04-05 14:12, Sai Prakash Ranjan wrote: Hi Bjorn, On 2021-03-25 20:35, Will Deacon wrote: On Thu, Mar 25, 2021 at 01:10:12PM +0530, Sai Prakash Ranjan wrote: ... I think there is consensus on this series. I can resend if required but it still applies cleanly, let me know if you

[PATCH] ALSA: hda/realtek: GA503 use same quirks as GA401

2021-04-18 Thread Luke D Jones
The GA503 has almost exactly the same default setup as the GA401 model with the same issues. The GA401 quirks solve all the issues so we will use the full quirk chain. Signed-off-by: Luke D Jones --- sound/pci/hda/patch_realtek.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [Patch v2 3/7] crypto: qce: Add mode for rfc4309

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:24 CDT 2021, Thara Gopinath wrote: > rf4309 is the specification that uses aes ccm algorithms with IPsec > security packets. Add a submode to identify rfc4309 ccm(aes) algorithm > in the crypto driver. > Reviewed-by: Bjorn Andersson > Signed-off-by: Thara Gopinath > --- > >

Re: [Patch v2 1/7] crypto: qce: common: Add MAC failed error checking

2021-04-18 Thread Bjorn Andersson
On Sat 17 Apr 08:24 CDT 2021, Thara Gopinath wrote: > MAC_FAILED gets set in the status register if authenthication fails > for ccm algorithms(during decryption). Add support to catch and flag > this error. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Thara Gopinath > ---

Re: [PATCH] lsm:fix a missing-check bug in smack_sb_eat_lsm_opts()

2021-04-18 Thread Zhongjun Tan
On Fri, 16 Apr 2021 13:36:01 + Al Viro wrote: > On Fri, Apr 16, 2021 at 05:53:03PM +0800, ?0?2Zhongjun Tan wrote: > > > @@ -710,13 +711,14 @@ static int smack_sb_eat_lsm_opts(char > > *options, void **mnt_opts) token = match_opt_prefix(from, len, > > ); if (token != Opt_error) { > >

[PATCH v3] lsm:fix a missing-check bug in smack_sb_eat_lsm_opts()

2021-04-18 Thread  Zhongjun Tan
From: Zhongjun Tan In smack_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' should be freed when error. Signed-off-by: Zhongjun Tan --- changes in v1: update the commit information. changes in v2: fix brace error

Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt

2021-04-18 Thread Ruifeng Zhang
Dietmar Eggemann 于2021年4月17日周六 上午1:00写道: > > On 16/04/2021 13:04, Ruifeng Zhang wrote: > > Dietmar Eggemann 于2021年4月16日周五 下午6:39写道: > >> > >> On 16/04/2021 11:32, Valentin Schneider wrote: > >>> On 16/04/21 15:47, Ruifeng Zhang wrote: > > [...] > > >> I'm confused. Do you have the MT bit set to

Re: [PATCH v2 2/5] mm/swapfile: use percpu_ref to serialize against concurrent swapoff

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > Use percpu_ref to serialize against concurrent swapoff. Also remove the > SWP_VALID flag because it's used together with RCU solution. > > Signed-off-by: Miaohe Lin > --- > include/linux/swap.h | 3 +-- > mm/swapfile.c| 43

[PATCH 2/2] arm64: dts: allwinner: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Traditionally, the sunxi-mmc device numbers matched the register address order. However, that was broken by asynchronous probe, and now the MMC device numbers are not deterministic. Add aliases to keep the device numbers consistent between boots. Use the traditional order, since there is no need

[PATCH 1/2] ARM: dts: sunxi: h3/h5: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Traditionally, the sunxi-mmc device numbers matched the register address order. However, that was broken by asynchronous probe, and now the MMC device numbers are not deterministic. Add aliases to keep the device numbers consistent between boots. Use the traditional order, since there is no need

[PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-18 Thread Samuel Holland
Dealing with the inconsistent numbering has been a major pain, and there is a solution with (as far as I can tell) no tangible downsides. So let's use it. Yes, I know the kernel supports UUIDs for root=. But UUIDs do not help when referencing the whole, unpartitioned device, like is needed for

Re: [PATCH v2 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > We will use percpu-refcount to serialize against concurrent swapoff. This > patch adds the percpu_ref support for swap. > > Signed-off-by: Miaohe Lin > --- > include/linux/swap.h | 3 +++ > mm/swapfile.c| 33 + > 2 files changed, 32

Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-04-18 Thread Greentime Hu
Greentime Hu 於 2021年4月19日 週一 上午10:43寫道: > > Palmer Dabbelt 於 2021年3月31日 週三 上午8:24寫道: > > > > On Wed, 17 Mar 2021 23:08:13 PDT (-0700), greentime...@sifive.com wrote: > > > Signed-off-by: Greentime Hu > > > --- > > > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++ > > >

Re: [PATCH v2 6/6] riscv: dts: Add PCIe support for the SiFive FU740-C000 SoC

2021-04-18 Thread Greentime Hu
Palmer Dabbelt 於 2021年3月31日 週三 上午8:24寫道: > > On Wed, 17 Mar 2021 23:08:13 PDT (-0700), greentime...@sifive.com wrote: > > Signed-off-by: Greentime Hu > > --- > > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 34 ++ > > 1 file changed, 34 insertions(+) > > > > diff --git

Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-18 Thread Tetsuo Handa
On 2021/04/19 11:22, 周传高 wrote: > Some SOC vendors' drivers or user-mode processes may be in D state for a long > time, > and normally they do not configure HUNG TASK, so we need to ignore these > tasks if > we use HUNG TASK. Isn't that a sign that the quality of the drivers and user-mode

[PATCH v2 3/3] mm,hwpoison: add kill_accessing_process() to find error virtual address

2021-04-18 Thread Naoya Horiguchi
> > 2. In the function hwpoison_pte_range(): > > if (pfn <= hwp->pfn && hwp->pfn < pfn + PMD_SIZE) this check seem we should > > use PMD_SIZE/PAGE_SIZE or some macro like this? > > Thanks, that's right. HPAGE_PMD_NR seems to fit here. > We also need "#ifdef CONFIG_TRANSPARENT_HUGEPAGE" to use

Re: [PATCH v2 12/12] docs: path-lookup: update symlink description

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 9:59 AM NeilBrown wrote: > > On Tue, Mar 16 2021, Fox Chen wrote: > > > instead of lookup_real()/vfs_create(), i_op->lookup() and > > i_op->create() will be called directly. > > > > update vfs_open() logic > > > > should_follow_link is merged into lookup_last() or

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Fox Chen
On Mon, Apr 19, 2021 at 10:17 AM Matthew Wilcox wrote: > > On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > > -In the absence of symbolic links, ``walk_component()`` creates a new > > +As the last step of ``walk_component()``, ``step_into()`` will be called > > either > > You can drop

[PATCH v2] hfsplus: prevent negative dentries when casefolded

2021-04-18 Thread Chung-Chiang Cheng
hfsplus uses the case-insensitive filenames by default, but VFS negative dentries are incompatible with case-insensitive. For example, the following instructions will get a cached filename 'aaa' which isn't expected. There is no such problem in macOS. touch aaa rm aaa touch AAA This patch

Re: [PATCH v2 3/5] swap: fix do_swap_page() race with swapoff

2021-04-18 Thread Huang, Ying
Miaohe Lin writes: > When I was investigating the swap code, I found the below possible race > window: > > CPU 1 CPU 2 > - - > do_swap_page This is OK for swap cache cases. So if (data_race(si->flags &

Re:Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism.

2021-04-18 Thread 周传高
>On 2021/04/17 23:13, zhouchuangao wrote: >> The main purpose of this patch is to add a whitelist and blacklist >> mechanism to the hung task thread. > >We stopped using the term 'whitelist'/'blacklist' for new code in Linux kernel, >and what you are proposing is something like

[PATCH v3] soundwire: intel: move to auxiliary bus

2021-04-18 Thread Bard Liao
From: Pierre-Louis Bossart Now that the auxiliary_bus exists, there's no reason to use platform devices as children of a PCI device any longer. This patch refactors the code by extending a basic auxiliary device with Intel link-specific structures that need to be passed between controller and

[PATCH] fs: f2fs: Remove unnecessary struct declaration

2021-04-18 Thread Wan Jiabing
struct dnode_of_data is defined at 897th line. The declaration here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- fs/f2fs/f2fs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e2d302ae3a46..0757f9e50fd2 100644 --- a/fs/f2fs/f2fs.h +++

Re: [PATCH v2 01/12] docs: path-lookup: update follow_managed() part

2021-04-18 Thread Matthew Wilcox
On Tue, Mar 16, 2021 at 01:47:16PM +0800, Fox Chen wrote: > -In the absence of symbolic links, ``walk_component()`` creates a new > +As the last step of ``walk_component()``, ``step_into()`` will be called > either You can drop ``..`` from around function named which are followed with ().

  1   2   3   4   >