Re: [PATCH -next] eeprom: at25: remove unneeded 'at25_remove'

2018-10-04 Thread Geert Uytterhoeven
On Fri, Oct 5, 2018 at 8:08 AM YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/misc/eeprom/at25.c: In function 'at25_remove': > drivers/misc/eeprom/at25.c:384:20: warning: > variable 'at25' set but not used [-Wunused-but-set-variable] > > Since commit 96d08fb43e30 (

[PATCH v5 3/3] gpiolib: Show correct direction from the beginning

2018-10-04 Thread Ricardo Ribalda Delgado
Current code assumes that the direction is input if direction_input function is set. This might not be the case on GPIOs with programmable direction. Signed-off-by: Ricardo Ribalda Delgado --- drivers/gpio/gpiolib.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions

Re: [PATCH v4 3/3] gpiolib: Show correct direction from the beginning

2018-10-04 Thread Ricardo Ribalda Delgado
Hi On Fri, Oct 5, 2018 at 12:26 AM Jeffrey Hugo wrote: > > On 10/2/2018 9:21 AM, Jeffrey Hugo wrote: > > On 10/2/2018 8:08 AM, Ricardo Ribalda Delgado wrote: > >> Current code assumes that the direction is input if direction_input > >> function is set. > >> This might not be the case on GPIOs with

[PATCH v5 2/3] pinctrl: msm: Use init_valid_mask exported function

2018-10-04 Thread Ricardo Ribalda Delgado
The current code produces XPU violation if get_direction is called just after the initialization. Signed-off-by: Ricardo Ribalda Delgado --- drivers/pinctrl/qcom/pinctrl-msm.c | 79 ++ 1 file changed, 37 insertions(+), 42 deletions(-) diff --git a/drivers/pinctrl/qco

[PATCH v5 1/3] gpiolib: Add init_valid_mask exported function

2018-10-04 Thread Ricardo Ribalda Delgado
Add a function that allows initializing the valid_mask from gpiochip_add_data. This prevents race conditions during gpiochip initialization. If the function is not exported, then the old behaviour is respected, this is, set all gpios as valid. Signed-off-by: Ricardo Ribalda Delgado --- drivers

Re: [REVIEW][PATCH 2/6] signal: Fail sigqueueinfo if si_signo != sig

2018-10-04 Thread Eric W. Biederman
Andrei Vagin writes: > On Tue, Sep 25, 2018 at 07:19:02PM +0200, Eric W. Biederman wrote: >> The kernel needs to validate that the contents of struct siginfo make >> sense as siginfo is copied into the kernel, so that the proper union >> members can be put in the appropriate locations. The field

linux-next: Tree for Oct 5

2018-10-04 Thread Stephen Rothwell
Hi all, Changes since 20181004: I added a supplied patch to the dma-mapping tree to fix overnight boot problems. I added a supplied patch to the nfs tree to fix an overnight build problem. The nfsd tree gained a build failure due to an interaction with the nfs tree for which I applied a merge

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-04 Thread Ricardo Ribalda Delgado
Hi Boris On Fri, Oct 5, 2018 at 12:21 AM Boris Brezillon wrote: > > Hi Ricardo, > > On Thu, 4 Oct 2018 16:29:42 +0200 > Ricardo Ribalda Delgado wrote: > > > Allow creating gpio-addr-flash via device-tree and not just via platform > > data. > > > > Mimic what physmap_of_versatile and physmap_of

Re: [PATCH] PCI: Fix Switchtec DMA aliasing quirk dmesg noise

2018-10-04 Thread Christoph Hellwig
> +SWITCHTEC_QUIRK(0x8531); //PFX 24xG3 Please use /* * style comments.

Re: [REVIEW][PATCH 2/6] signal: Fail sigqueueinfo if si_signo != sig

2018-10-04 Thread Eric W. Biederman
Andrei Vagin writes: > On Tue, Sep 25, 2018 at 07:19:02PM +0200, Eric W. Biederman wrote: >> The kernel needs to validate that the contents of struct siginfo make >> sense as siginfo is copied into the kernel, so that the proper union >> members can be put in the appropriate locations. The field

Re: [PATCH v9 1/3]: perf util: map data buffer for preserving collected data

2018-10-04 Thread Namhyung Kim
On Wed, Oct 03, 2018 at 07:01:26PM +0300, Alexey Budankov wrote: > > The map->data buffer is used to preserve map->base profiling data > for writing to disk. AIO map->cblock is used to queue corresponding > map->data buffer for asynchronous writing. > > Signed-off-by: Alexey Budankov > --- > C

Re: [RFCv2 00/48] perf tools: Add threads to record command

2018-10-04 Thread Namhyung Kim
Hi, Sorry for late.. On Mon, Sep 24, 2018 at 09:32:11PM +0300, Alexey Budankov wrote: > On 24.09.2018 17:29, Jiri Olsa wrote: > > On Mon, Sep 24, 2018 at 04:09:09PM +0300, Alexey Budankov wrote: > >> Command: > >> > >> /usr/bin/time ./perf.thr record --threads=T \ > >>-N -B -T -R --call-graph

[PATCH -next] eeprom: at25: remove unneeded 'at25_remove'

2018-10-04 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/misc/eeprom/at25.c: In function 'at25_remove': drivers/misc/eeprom/at25.c:384:20: warning: variable 'at25' set but not used [-Wunused-but-set-variable] Since commit 96d08fb43e30 ("eeprom: at25: use devm_nvmem_register()"), at25_remove is do

Re: [REVIEW][PATCH 2/6] signal: Fail sigqueueinfo if si_signo != sig

2018-10-04 Thread Andrei Vagin
On Tue, Sep 25, 2018 at 07:19:02PM +0200, Eric W. Biederman wrote: > The kernel needs to validate that the contents of struct siginfo make > sense as siginfo is copied into the kernel, so that the proper union > members can be put in the appropriate locations. The field si_signo > is a fundamental

Re: [PATCH 2/3] x86/vdso: Rearrange do_hres() to improve code generation

2018-10-04 Thread Thomas Gleixner
On Thu, 4 Oct 2018, Andy Lutomirski wrote: > index 18c8a78d1ec9..419de7552c2f 100644 > --- a/arch/x86/entry/vdso/vclock_gettime.c > +++ b/arch/x86/entry/vdso/vclock_gettime.c > @@ -147,10 +147,9 @@ notrace static int do_hres(clockid_t clk, struct > timespec *ts) > > do { > se

[PATCH V7 10/20] csky: IRQ handling

2018-10-04 Thread Guo Ren
This patch adds IRQ handling files. Signed-off-by: Guo Ren --- arch/csky/include/asm/irqflags.h | 49 arch/csky/kernel/irq.c | 22 ++ 2 files changed, 71 insertions(+) create mode 100644 arch/csky/include/asm/irqflags.h create

[PATCH V7 12/20] csky: ELF and module probe

2018-10-04 Thread Guo Ren
This patch adds ELF definition and module relocate codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/elf.h | 26 arch/csky/abiv2/inc/abi/elf.h | 43 arch/csky/include/asm/elf.h | 85 +++ arch/csky/kernel/module.c

[PATCH V7 17/20] csky: Misc headers

2018-10-04 Thread Guo Ren
This patch adds csky register definition, byteorder, asm-offsets codes. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/reg_ops.h | 27 +++ arch/csky/abiv1/inc/abi/regdef.h | 26 ++ arch/csky/abiv2/inc/abi/reg_ops.h | 17 +++ arch/csky/abiv2/inc/abi/regdef.

[PATCH V7 15/20] csky: Debug and Ptrace GDB

2018-10-04 Thread Guo Ren
This patch adds arch ptrace implementation, stack dump and bug.h. Signed-off-by: Guo Ren --- arch/csky/include/asm/bug.h | 26 +++ arch/csky/include/uapi/asm/ptrace.h | 104 arch/csky/kernel/dumpstack.c| 66 arch/csky/kernel/ptrace.c | 314 ++

[PATCH V7 16/20] csky: SMP support

2018-10-04 Thread Guo Ren
This patch adds boot, ipi, hotplug code for SMP. Changelog: - csky: remove irq_mapping from smp.c There are some feedbacks from irqchip, and we need to adjust "smp.c & smp.h" to match the csky_mp_timer modification. - Move IPI_IRQ define into drivers/irqchip/csky_mpintc.c, because it's a

linux-next: manual merge of the akpm-current tree with the btrfs-kdave tree

2018-10-04 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: include/linux/swap.h between commit: 0f83d16b8f1f ("mm: split SWP_FILE into SWP_ACTIVATED and SWP_FS") from the btrfs-kdave tree and commit: 26833300651e ("mm, swap: fix race between swapoff and some swap opera

[PATCH V7 13/20] csky: Library functions

2018-10-04 Thread Guo Ren
This patch adds string optimize codes and some auxiliary code. Changelog: - Use bt instead of jbt in asm, jbt will cause relocation problem. - remove kernel/platform.c Signed-off-by: Chen Linfei Signed-off-by: Mao Han Signed-off-by: Guo Ren --- arch/csky/abiv1/bswapdi.c| 12 ++ arc

[PATCH V7 14/20] csky: User access

2018-10-04 Thread Guo Ren
This patch adds "user access from kernel" codes. Signed-off-by: Guo Ren --- arch/csky/include/asm/uaccess.h | 416 arch/csky/lib/usercopy.c| 262 + 2 files changed, 678 insertions(+) create mode 100644 arch/csky/include/as

[PATCH V7 09/20] csky: VDSO and rt_sigreturn

2018-10-04 Thread Guo Ren
This patch adds files related to VDSO and our VDSO only support rt_sigreturn. Signed-off-by: Guo Ren --- arch/csky/abiv1/inc/abi/vdso.h | 17 + arch/csky/abiv2/inc/abi/vdso.h | 23 +++ arch/csky/include/asm/vdso.h | 12 ++ arch/csky/kernel/vdso.c| 86 +++

[PATCH V7 11/20] csky: Atomic operations

2018-10-04 Thread Guo Ren
This patch adds atomic, cmpxchg, spinlock files. Changlog: - SMP supported - ticklock supported - queue-rwlock supported Signed-off-by: Guo Ren --- arch/csky/include/asm/atomic.h | 212 + arch/csky/include/asm/cmpxchg.h| 73 + arch/csky/includ

[PATCH] writeback: fix range_cyclic writeback vs writepages deadlock

2018-10-04 Thread Dave Chinner
From: Dave Chinner We've recently seen a workload on XFS filesystems with a repeatable deadlock between background writeback and a multi-process application doing concurrent writes and fsyncs to a small range of a file. range_cyclic writeback Process 1 Process 2 xfs_

[PATCH V7 04/20] csky: Exception handling and mm-fault

2018-10-04 Thread Guo Ren
This patch adds exception handling code, cpuinfo and mm-fault code. Signed-off-by: Guo Ren --- arch/csky/abiv1/alignment.c | 323 arch/csky/abiv1/inc/abi/entry.h | 160 arch/csky/abiv2/inc/abi/entry.h | 156 arch/csky/include

[PATCH V7 07/20] csky: MMU and page table management

2018-10-04 Thread Guo Ren
This patch adds files related to memory management and here is our memory-layout: Fixmap : 0xffc02000 – 0xf000 (4 MB - 12KB) Pkmap: 0xff80 – 0xffc0 (4 MB) Vmalloc : 0xf020 – 0xff00 (238 MB) Lowmem : 0x8000 – 0xc000

[PATCH V7 08/20] csky: Process management and Signal

2018-10-04 Thread Guo Ren
This patch adds files related to task_switch, sigcontext, signal. Changelog: - abiv2/fpu.c: Userspace should never be sent NSIGXXX as a si_code. Use FPE_FLTUNK instead. - abiv2/fpu.c: Use force_sig_fault instead. Signed-off-by: Guo Ren --- arch/csky/abiv2/fpu.c | 275

[PATCH V7 01/20] csky: Build infrastructure

2018-10-04 Thread Guo Ren
This patch adds Makefile, Kconfig for build infrastructure. Changelog: - Add compat.h in asm/Kbuild. - Add select DMA_DIRECT_OPS in Kconfig. - remove kernel/platform.c in Makefile. Signed-off-by: Guo Ren --- arch/csky/Kconfig | 205 + arch

[PATCH V7 00/20] C-SKY(csky) Linux Kernel Port

2018-10-04 Thread Guo Ren
This is the 7th version patchset to add the Linux kernel port for C-SKY(csky) based on linux-4.19-rc3. In this patchset some fixup patches are folded into original patch in order to make review clearly and reduce the patches' number for upstream patchset. The changelog is added in the every patch'

[PATCH V7 03/20] csky: Kernel booting

2018-10-04 Thread Guo Ren
This patch add boot code. Thx boot params is all in dtb and it's the only way to let kernel get bootloader param information. Signed-off-by: Guo Ren --- arch/csky/kernel/head.S| 77 + arch/csky/kernel/setup.c | 151 + arc

[PATCH V7 05/20] csky: System Call

2018-10-04 Thread Guo Ren
This patch adds files related to syscall. Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 71 + arch/csky/include/asm/syscalls.h| 15 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 43 ++

[PATCH V7 06/20] csky: Cache and TLB routines

2018-10-04 Thread Guo Ren
This patch adds cache and tlb sync codes for abiv1 & abiv2. Changelog: - tlb.h & cacheflush.h: fix flush_cache_range and tlb_start_vma of abiv1 in flush_cache_range(vma, ...). cache_wbinv_range() couldn't deal with vma->mm's asid for cache_flush_line and we use cache_wbinv_all() first.

[PATCH V7 02/20] csky: defconfig

2018-10-04 Thread Guo Ren
This patch adds csky defconfig. Signed-off-by: Guo Ren --- arch/csky/configs/defconfig | 61 + 1 file changed, 61 insertions(+) create mode 100644 arch/csky/configs/defconfig diff --git a/arch/csky/configs/defconfig b/arch/csky/configs/defconfig new

linux-next: build warning after merge of the crypto tree

2018-10-04 Thread Stephen Rothwell
Hi Herbert, After merging the crypto tree, today's linux-next build (powerpc allyesconfig) produced this warning: drivers/crypto/cavium/nitrox/nitrox_debugfs.c: In function 'stats_show': drivers/crypto/cavium/nitrox/nitrox_debugfs.c:62:30: warning: format '%lld' expects argument of type 'long lo

Re: [PATCH 0/5] ti_am335x_tsc: Enable wakeup capability

2018-10-04 Thread Vignesh R
On Friday 28 September 2018 11:42 AM, Vignesh R wrote: > Hi Lee, > > On Wednesday 25 July 2018 10:56 AM, Lee Jones wrote: > [...] Vignesh R (5): mfd: ti_am335x_tscadc: Don't mark TSCADC MFD as wakeup capable Input: ti_am335x_tsc: Mark TSC device as wakeup so

[PATCH v2] HID: i2c-hid: Add a small delay after sleep command for Raydium touchpanel

2018-10-04 Thread Kai-Heng Feng
Raydium touchpanel (2386:4B33) sometimes does not work in desktop session although it works in display manager. During user logging, the display manager exits, close the HID device, then the device gets runtime suspended and powered off. The desktop session begins shortly after, opens the HID devi

[PATCH] traps:Recover undefined user instruction on ARM

2018-10-04 Thread Manjeet Pawar
From: Rohit Thapliyal During user undefined instruction exception, the arm exception handler currently results in application crash through SIGILL. The bad instruction can be due to ddr/hardware issue. For such cases, exception trap handler could try to recover the corrupted text by clearing pag

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Finn Thain
On Thu, 4 Oct 2018, Leonardo Bras wrote: > ... > But, why these chosen Makefiles, and not all of them? I think that inconsistency is untenable. If nothing else, it means your changes will get broken by other people who also apply constraints inconsistently. I think you need to consider what h

Re: [PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:54:32PM -0700, Dmitry Torokhov wrote: > Large writes to uinput interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/misc/uinput.c | 1 + > 1 file

Re: [PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Paul E. McKenney
On Thu, Oct 04, 2018 at 05:53:59PM -0700, Dmitry Torokhov wrote: > Large writes to evdev interface may cause rcu stalls. Let's add > cond_resched() to the loop to avoid this. > > Signed-off-by: Dmitry Torokhov Reviewed-by: Paul E. McKenney > --- > drivers/input/evdev.c | 1 + > 1 file changed

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Paul E. McKenney
On Fri, Oct 05, 2018 at 02:40:02AM +0100, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > > > The synchronize_rcu() in namespace_unlock() is called every time > > a filesystem is unmounted. If a great many filesystems are mounted, > > this can cause a noticable slo

[PATCH v2 2/3] mm: introduce put_user_page[s](), placeholder versions

2018-10-04 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also introduces put_user_pages(), and a few dirty/locked variations, as a replacement for release_p

[PATCH v2 3/3] infiniband/mm: convert to the new put_user_page[s]() calls

2018-10-04 Thread john . hubbard
From: John Hubbard For code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), instead of put_page(). This prepares for eventually fixing the problem described in [1], and is following a plan listed in [2], [3], [4]. [1] https://lwn.net/Articles/753027/ :

[PATCH v2 1/3] mm: get_user_pages: consolidate error handling

2018-10-04 Thread john . hubbard
From: John Hubbard An upcoming patch requires a way to operate on each page that any of the get_user_pages_*() variants returns. In preparation for that, consolidate the error handling for __get_user_pages(). This provides a single location (the "out:" label) for operating on the collected set o

[PATCH v2 0/3] get_user_pages*() and RDMA: first steps

2018-10-04 Thread john . hubbard
From: John Hubbard Changes since v1: -- Renamed release_user_pages*() to put_user_pages*(), from Jan's feedback. -- Removed the goldfish.c changes, and instead, only included a single user (infiniband) of the new functions. That is because goldfish.c no longer has a name collision (it has

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
On Fri, Oct 05 2018, Al Viro wrote: > On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: >> >> The synchronize_rcu() in namespace_unlock() is called every time >> a filesystem is unmounted. If a great many filesystems are mounted, >> this can cause a noticable slow-down in, for example,

Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable.

2018-10-04 Thread Leonardo Bras
Hello David, My name is Leonardo and I am new to kernel development. Is this patch acceptable? Do it need some rework? The change makes sense? Is there a way to better follow the workflow for this patch? Please let me know if it needs anything. Best regards, Leonardo Bras On Wed, Sep 19, 2018

Re: [PATCH v3 3/7] drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled

2018-10-04 Thread Leonardo Bras
> Well it's not really that persuasive. Most people simply let the build > run to completion, but if you have a problem with a job control 3h > timelimit, then create a job that kills itself at 2:59 and then > resubmits itself. That will produce a complete build in 3h chunks > without any need to

[PATCH] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-04 Thread Douglas Anderson
This adds the Quad SPI controller to the main sdm845 device tree file. Boards will be expected to assign the proper pinctrl depending on how many chip selects they have hooked up and how many data lines. This depends on commit 48735597f7bd ("clk: qcom: Add qspi (Quad SPI) clock defines for sdm845

[PATCH] power: supply: olpc_battery: correct the temperature units

2018-10-04 Thread Lubomir Rintel
According to [1] and [2], the temperature values are in tenths of degree Celsius. Exposing the Celsius value makes the battery appear on fire: $ upower -i /org/freedesktop/UPower/devices/battery_olpc_battery ... temperature: 236.9 degrees C Tested on OLPC XO-1 and OLPC XO-1.75 l

[PATCH] MAINTAINERS: Add me to Android drivers

2018-10-04 Thread Joel Fernandes (Google)
I am one of the main engineers working on ashmem. I have been fixing bugs in the driver and have been involved in the memfd conversion discussions and sending patches about that. I also have an understanding of the binder driver and was involved with some of the development on finer grained locking

Re: [PATCH] Allow hwrng to initialize crng.

2018-10-04 Thread Louis Collard
On Wed, Sep 26, 2018 at 6:35 PM Jarkko Sakkinen wrote: > > On Wed, Sep 26, 2018 at 11:24:55AM +0800, Louis Collard wrote: > > Some systems, for example embedded systems, do not generate > > enough entropy on boot through interrupts, and boot may be blocked for > > several minutes waiting for a cal

Re: [PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread Al Viro
On Fri, Oct 05, 2018 at 11:27:37AM +1000, NeilBrown wrote: > > The synchronize_rcu() in namespace_unlock() is called every time > a filesystem is unmounted. If a great many filesystems are mounted, > this can cause a noticable slow-down in, for example, system shutdown. > > The sequence: > mkd

linux-next: build failure after merge of the drm-msm tree

2018-10-04 Thread Stephen Rothwell
aused by commit a2c3c0a54d4c ("drm/msm/a6xx: Add devfreq support for a6xx") I have used the drm-msm tree from next-20181004 for today. -- Cheers, Stephen Rothwell pgpTe4jFg2sAC.pgp Description: OpenPGP digital signature

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Guenter Roeck
On 10/04/2018 04:44 PM, Stephen Rothwell wrote: Hi Geert, On Thu, 4 Oct 2018 16:21:42 +0200 Geert Uytterhoeven wrote: On Thu, Oct 4, 2018 at 3:47 PM Guenter Roeck wrote: Time for a status report. Build results: total: 135 pass: 121 fail: 14 Failed builds: arm:allmodconfi

[PATCH - resend] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2018-10-04 Thread NeilBrown
The synchronize_rcu() in namespace_unlock() is called every time a filesystem is unmounted. If a great many filesystems are mounted, this can cause a noticable slow-down in, for example, system shutdown. The sequence: mkdir -p /tmp/Mtest/{0..5000} time for i in /tmp/Mtest/*; do mount -t tmpf

[PATCH] Input: uinput - add a schedule point in uinput_inject_events()

2018-10-04 Thread Dmitry Torokhov
Large writes to uinput interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/misc/uinput.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index eb14ddf693

[PATCH] Input: evdev - add a schedule point in evdev_write()

2018-10-04 Thread Dmitry Torokhov
Large writes to evdev interface may cause rcu stalls. Let's add cond_resched() to the loop to avoid this. Signed-off-by: Dmitry Torokhov --- drivers/input/evdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 370206f987f9..f48369d6f3a0 10

Re: [PATCH v2 5/5] ASoC: qdsp6: q6asm-dai: Add support to compress offload

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds MP3 playback support in q6asm dais, adding other codec > support should be pretty trivial. > > Signed-off-by: Srinivas Kandagatla > --- > sound/soc/qcom/Kconfig | 1 + > sound/soc/qcom/qdsp6/q6asm-dai.c | 377 ++

Re: [PATCH v2 1/5] ALSA: soc-compress: add support to snd_compr_set_runtime_buffer()

2018-10-04 Thread Vinod
On 26-09-18, 11:23, Srinivas Kandagatla wrote: > This patch adds support to set runtime dma buffer on compressed stream. The change is fine as is, but I feel we need to document the motivation in the changelog. The core changes need a bit more explanation on why we should add this.. > > Signed-o

Re: [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-04 Thread Randy Dunlap
On 10/4/18 1:02 PM, Luis Chamberlain wrote: > Every now and then a project is born, and they decide to use Linux's > kconfig to enable configuration of their project. As it stands we *know* > kconfig is now used in at least over 12 different projects [0]. I myself > added kconfig to one as well yea

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
7; but argument is of type 'struct nfs_dns_ent *' void call_rcu_sched(struct rcu_head *head, rcu_callback_t func); ~^~~~ Caused by commit fd497f1e40d9 ("NFS: Lockless DNS lookups") I have used the nfsd tree from next-20181004 for t

linux-next: build failure after merge of the nfsd tree

2018-10-04 Thread Stephen Rothwell
Hi all, After merging the nfsd tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/sunrpc/xprtrdma/svc_rdma_backchannel.c: In function 'svc_rdma_handle_bc_reply': net/sunrpc/xprtrdma/svc_rdma_backchannel.c:67:21: error: 'struct rpc_xprt' has no member named 'recv_lock

Re: linux-next: Tree for Oct 4

2018-10-04 Thread Stephen Rothwell
Hi Geert, On Thu, 4 Oct 2018 16:21:42 +0200 Geert Uytterhoeven wrote: > > On Thu, Oct 4, 2018 at 3:47 PM Guenter Roeck wrote: > > Time for a status report. > > > > Build results: > > total: 135 pass: 121 fail: 14 > > Failed builds: > > arm:allmodconfig > > i386:allyescon

[PATCH] PCI: Fix Switchtec DMA aliasing quirk dmesg noise

2018-10-04 Thread Logan Gunthorpe
Currently the Switchtec quirk runs on all endpoints in the Switch which includes all the upstream and downstream ports. Seeing these other functions do not contain BARs the quirk fails when trying to map the BAR and prints the error "Cannot iomap Switchtec device". The user will see a few of these

Re: [PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-04 Thread Nick Desaulniers
On Thu, Oct 4, 2018 at 2:47 PM Nathan Chancellor wrote: > > On Thu, Oct 04, 2018 at 02:32:48PM -0700, Nick Desaulniers wrote: > > On Wed, Oct 3, 2018 at 7:41 PM Nathan Chancellor > > wrote: > > > > > > Clang warns when one enumerated type is implicitly converted to another. > > > > > > drivers/sp

Re: [PATCH v9 04/10] x86: refcount: prevent gcc distortions

2018-10-04 Thread H. Peter Anvin
On 10/04/18 13:29, Andy Lutomirski wrote: >> >> Wonderful. >> >> Here is the horrible code I mentioned yesterday. This is about >> implementing the immediate-patching framework that Linus and others have >> discussed (it helps both performance and kernel hardening): >> > > I'm wondering if a prod

Re: [PATCH 5/5] arch/xtensa, termios: use

2018-10-04 Thread H. Peter Anvin
On 10/04/18 15:35, Max Filippov wrote: > > Looks good. But why not removing the header entirely and adding > generic-y += termbits.h > to arch/xtensa/include/uapi/asm/Kbuild? > Good idea. Should do that for others that also have the same #include. -hpa

[PATCH] staging: iio: adt7316: fix parenthesis alignment

2018-10-04 Thread Renato Lui Geh
This patch fixes all "Alignment should match open parenthesis" check warnings found by checkpatch.pl in the addac/adt7316 driver. Signed-off-by: Renato Lui Geh --- drivers/staging/iio/addac/adt7316.c | 462 ++-- drivers/staging/iio/addac/adt7316.h | 2 +- 2 files changed,

Re: [PATCH 1/2] mm: thp: relax __GFP_THISNODE for MADV_HUGEPAGE mappings

2018-10-04 Thread David Rientjes
On Thu, 4 Oct 2018, Andrea Arcangeli wrote: > Hello David, > Hi Andrea, > On Thu, Oct 04, 2018 at 01:16:32PM -0700, David Rientjes wrote: > > There are ways to address this without introducing regressions for > > existing users of MADV_HUGEPAGE: introduce an madvise() mode to accept > > remot

Re: [PATCH] Input: mousedev - add a schedule point in mousedev_write()

2018-10-04 Thread Eric Dumazet
On 10/04/2018 03:54 PM, Dmitry Torokhov wrote: > OK, I see. I'll apply the patch then. Thanks ! > > I think evdev.c needs similar treatment as it will keep looping while > there is data... Yeah, presumably other drivers need care as well :/

Re: [PATCH] Input: mousedev - add a schedule point in mousedev_write()

2018-10-04 Thread Dmitry Torokhov
On Thu, Oct 04, 2018 at 12:34:07PM -0700, Paul E. McKenney wrote: > On Thu, Oct 04, 2018 at 11:59:49AM -0700, Dmitry Torokhov wrote: > > Hi Eric, > > > > On Thu, Oct 04, 2018 at 08:47:49AM -0700, Eric Dumazet wrote: > > > syzbot was able to trigger rcu stalls by calling write() > > > with large nu

Re: [PATCH 1/3] VFS: introduce MAY_ACT_AS_OWNER

2018-10-04 Thread David Howells
NeilBrown wrote: > Thanks for the review. > As afs doesn't use the generic xattr code and doesn't call > setattr_prepare(), this is all largely irrelevant for afs. Yeah - there's no xattr support yet. > afs_permission() will probably only get MAY_ACT_AS_OWNER passed when > someone uses fcntl(F_

Re: [PATCH 5/5] arch/xtensa, termios: use

2018-10-04 Thread Max Filippov
On Thu, Oct 4, 2018 at 3:30 PM H. Peter Anvin (Intel) wrote: > > The Xtensa definition of termbits.h is identical to the generic one. > > Signed-off-by: H. Peter Anvin (Intel) > Cc: Chris Zankel > Cc: Max Filippov > Cc: Thomas Gleixner > Cc: Greg Kroah-Hartman > Cc: Philippe Ombredanne > Cc:

Re: [PATCH] ALSA: usb-audio: update quirk for B&W PX to remove microphone

2018-10-04 Thread Nicolas Herochao
Hey, Thanks for the quick response Am 04.10.18 um 22:55 CEST schrieb Takashi Iwai: On Thu, 04 Oct 2018 16:42:05 +0200, Nicolas Huaman wrote: A quirk in snd-usb-audio was added to automate setting sample rate to 4800k and remove the previously exposed nonfunctional microphone for the Bowers & W

[PATCH 3/5] arch/mips, termios: use

2018-10-04 Thread H. Peter Anvin (Intel)
The MIPS definition of termbits.h is almost identical to the generic one, so use the generic one and only redefine a handful of constants. Move TIOCSER_TEMT to ioctls.h where it lives for all other architectures. Signed-off-by: H. Peter Anvin (Intel) Cc: Ralf Baechle Cc: Paul Burton Cc: James

[PATCH 1/5] asm-generic, termios: add alias constants from MIPS

2018-10-04 Thread H. Peter Anvin (Intel)
Some architectures, in this case MIPS, need a couple of legacy alias constants for bits. There really is no reason why we can't define them generically for all architectures. Signed-off-by: H. Peter Anvin (Intel) Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Jiri Slaby linux-kernel@vger.kernel.

[PATCH 5/5] arch/xtensa, termios: use

2018-10-04 Thread H. Peter Anvin (Intel)
The Xtensa definition of termbits.h is identical to the generic one. Signed-off-by: H. Peter Anvin (Intel) Cc: Chris Zankel Cc: Max Filippov Cc: Thomas Gleixner Cc: Greg Kroah-Hartman Cc: Philippe Ombredanne Cc: Kate Stewart Cc: Cc: Greg Kroah-Hartman Cc: Jiri Slaby --- arch/xtensa/incl

[PATCH 0/5] termios: remove arch redundancy in

2018-10-04 Thread H. Peter Anvin (Intel)
is one of those files which define an ABI. Some were made different due to the desire to be compatible with legacy architectures, others were mostly direct copies of the i386 definitions, which are now in asm-generic. This folds the IA64, MIPS, PA-RISC, and Xtensa implementations into the generic

[PATCH 2/5] arch/ia64, termios: use

2018-10-04 Thread H. Peter Anvin (Intel)
The IA64 definition of termbits.h is identical to the generic. Signed-off-by: H. Peter Anvin (Intel) Cc: Tony Luck Cc: Fenghua Yu Cc: Kate Stewart Cc: Philippe Ombredanne Cc: Greg Kroah-Hartman Cc: Thomas Gleixner Cc: Cc: Greg Kroah-Hartman CC: Jiri Slaby --- arch/ia64/include/uapi/asm/

[PATCH 4/5] arch/parisc, termios: use

2018-10-04 Thread H. Peter Anvin (Intel)
The PARISC definition of termbits.h is almost identical to the generic one, so use the generic one and only redefine a handful of constants. Signed-off-by: H. Peter Anvin (Intel) Cc: "James E.J. Bottomley" Cc: Helge Deller Cc: Kate Stewart Cc: Thomas Gleixner Cc: Philippe Ombredanne Cc: Gre

Re: [PATCH v4 3/3] gpiolib: Show correct direction from the beginning

2018-10-04 Thread Jeffrey Hugo
On 10/2/2018 9:21 AM, Jeffrey Hugo wrote: On 10/2/2018 8:08 AM, Ricardo Ribalda Delgado wrote: Current code assumes that the direction is input if direction_input function is set. This might not be the case on GPIOs with programmable direction. Signed-off-by: Ricardo Ribalda Delgado I'll try

Re: [PATCH v10 10/10] mtd: maps: gpio-addr-flash: Add support for device-tree devices

2018-10-04 Thread Boris Brezillon
Hi Ricardo, On Thu, 4 Oct 2018 16:29:42 +0200 Ricardo Ribalda Delgado wrote: > Allow creating gpio-addr-flash via device-tree and not just via platform > data. > > Mimic what physmap_of_versatile and physmap_of_gemini does to reduce > code duplicity. > > Signed-off-by: Ricardo Ribalda Delgado

Re: [PATCH v4 2/6] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-10-04 Thread Rob Herring
On Thu, Oct 4, 2018 at 2:17 PM Niklas Cassel wrote: > > On Thu, Oct 04, 2018 at 10:18:22AM -0500, Rob Herring wrote: > > On Thu, Oct 4, 2018 at 3:36 AM Viresh Kumar wrote: > > > > > > On 25-09-18, 14:43, Rob Herring wrote: > > > > On Tue, Sep 25, 2018 at 5:25 AM Rajendra Nayak > > > > wrote: >

Re: [kconfig-sat] [ANN] init-kconfig - easy way to embrace Linux's kconfig

2018-10-04 Thread Steven Rostedt
On Thu, 4 Oct 2018 13:53:19 -0700 Luis Chamberlain wrote: > On Thu, Oct 04, 2018 at 01:41:18PM -0700, Josh Triplett wrote: > > I would *love* to see Kconfig in Linux evolved to be more easily reused. > > This *can* happen. Let me itemize a few things off of my head I think > would need to be d

Re: [PATCH 1/3] VFS: introduce MAY_ACT_AS_OWNER

2018-10-04 Thread NeilBrown
On Thu, Oct 04 2018, Jan Harkes wrote: > Same for Coda. > > uid/gid/mode don't mean anything, access is based on the directory ACL and > the authentication token that is held by the userspace cache manager and > ultimately decided by the servers. > > Unless someone broke this recently and made p

linux-next: Signed-off-by missing for commit in the drm-msm tree

2018-10-04 Thread Stephen Rothwell
Hi Rob, Commit c693ecbd6357 ("WIP: drm/msm: update generated headers") is missing a Signed-off-by from its author and committer. -- Cheers, Stephen Rothwell pgpiTfTt43tUY.pgp Description: OpenPGP digital signature

Re: [PATCH 1/3] VFS: introduce MAY_ACT_AS_OWNER

2018-10-04 Thread NeilBrown
On Thu, Oct 04 2018, David Howells wrote: > NeilBrown wrote: > >> diff --git a/fs/afs/security.c b/fs/afs/security.c >> index 81dfedb7879f..ac2e39de8bff 100644 >> --- a/fs/afs/security.c >> +++ b/fs/afs/security.c >> @@ -349,6 +349,16 @@ int afs_permission(struct inode *inode, int mask) >> i

Re: [PATCH 2/2] mm, thp: consolidate THP gfp handling into alloc_hugepage_direct_gfpmask

2018-10-04 Thread Zi Yan
On 4 Oct 2018, at 16:17, David Rientjes wrote: > On Wed, 26 Sep 2018, Kirill A. Shutemov wrote: > >> On Tue, Sep 25, 2018 at 02:03:26PM +0200, Michal Hocko wrote: >>> diff --git a/mm/huge_memory.c b/mm/huge_memory.c >>> index c3bc7e9c9a2a..c0bcede31930 100644 >>> --- a/mm/huge_memory.c >>> +++ b/m

Your images 22

2018-10-04 Thread Joanna
Have photos for cutting out or retouching? We are one image team and we do editing for your the e-commerce photos, industry photos or portrait photo. If you need test editing then let me know. Waiting for your reply and the photo work. Thanks, Joanna

Your images 22

2018-10-04 Thread Joanna
Have photos for cutting out or retouching? We are one image team and we do editing for your the e-commerce photos, industry photos or portrait photo. If you need test editing then let me know. Waiting for your reply and the photo work. Thanks, Joanna

Re: [PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-04 Thread Nathan Chancellor
On Thu, Oct 04, 2018 at 02:32:48PM -0700, Nick Desaulniers wrote: > On Wed, Oct 3, 2018 at 7:41 PM Nathan Chancellor > wrote: > > > > Clang warns when one enumerated type is implicitly converted to another. > > > > drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from > > enumeration

[PATCH 2/3] x86/vdso: Rearrange do_hres() to improve code generation

2018-10-04 Thread Andy Lutomirski
vgetcyc() is full of barriers, so fetching values out of the vvar page before vgetcyc() for use after vgetcyc() results in poor code generation. Put vgetcyc() first to avoid this problem. Also, pull the tv_sec division into the loop and put all the ts writes together. The old code wrote ts->tv_s

[PATCH 1/3] x86/vdso: Remove "memory" clobbers in the vDSO syscall fallbacks

2018-10-04 Thread Andy Lutomirski
When a vDSO clock function falls back to the syscall, no special barriers or ordering is needed, and the syscall fallbacks don't clobber any memory that is not explicitly listed in the asm constraints. Remove the "memory" clobber. This causes minor changes to the generated code, but otherwise has

[PATCH 3/3] x86/vdso: Document vgtod_ts better

2018-10-04 Thread Andy Lutomirski
After reading do_hres() and do_course() and scratching my head a bit, I figured out why the arithmetic is strange. Document it. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/vgtod.h | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/include/asm/vgtod.h b/arch/x86/in

[PATCH 0/3] x86/vdso: Minor improvements

2018-10-04 Thread Andy Lutomirski
Hi tglx, This little series applies on top of your patches and, at least on my laptop, gets back all the performance you lost and then some :) --Andy Andy Lutomirski (3): x86/vdso: Remove "memory" clobbers in the vDSO syscall fallbacks x86/vdso: Rearrange do_hres() to improve code generation

[PATCH v2] mm: don't raise MEMCG_OOM event due to failed high-order allocation

2018-10-04 Thread Roman Gushchin
I was reported that on some of our machines containers were restarted with OOM symptoms without an obvious reason. Despite there were almost no memory pressure and plenty of page cache, MEMCG_OOM event was raised occasionally, causing the container management software to think, that OOM has happene

Re: [PATCH v2] spi: spi-ep93xx: Change dir type in ep93xx_spi_dma_{finish,prepare}

2018-10-04 Thread Nick Desaulniers
On Wed, Oct 3, 2018 at 7:41 PM Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another. > > drivers/spi/spi-ep93xx.c:342:62: warning: implicit conversion from > enumeration type 'enum dma_transfer_direction' to different enumeration > type 'enum dma_dat

  1   2   3   4   5   6   7   >