Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 23:48, Jason Gunthorpe wrote: > On Tue, Nov 07, 2017 at 10:45:29AM +0800, Wei Hu (Xavier) wrote: > >> We reconstruct the code as below: >> It replaces dma_alloc_coherent with __get_free_pages and >> dma_map_single functions. So, we can vmap serveral ptrs returned by >

Re: [PATCH v2 2/2] rtc: sprd: Add Spreadtrum RTC driver

2017-11-08 Thread Alexandre Belloni
Hi, On 08/11/2017 at 17:16:15 +0800, Baolin Wang wrote: > +static int sprd_rtc_read_time(struct device *dev, struct rtc_time *tm) > +{ > + struct sprd_rtc *rtc = dev_get_drvdata(dev); > + time64_t secs; > + int ret; > + I would have expected a check for SPRD_RTC_POWER_RESET_FLAG here.

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 23:58, Christoph Hellwig wrote: > On Tue, Nov 07, 2017 at 08:48:38AM -0700, Jason Gunthorpe wrote: >> Can't you just use vmalloc and dma_map that? Other drivers follow that >> approach.. > You can't easily due to the flushing requirements. We used to do that > in XFS and it led to p

Re: [PATCH 17/31] nds32: Signal handling support

2017-11-08 Thread Al Viro
On Wed, Nov 08, 2017 at 01:55:05PM +0800, Greentime Hu wrote: > +static int restore_sigframe(struct pt_regs *regs, > + struct rt_sigframe __user * sf) > +{ [snip] > + err |= !valid_user_regs(regs); IDGI... Where do you modify ->ipsw at all and how can valid_user_reg

[PATCH] Documentation: Add Kees Cook to list of enforcement statement endorsers

2017-11-08 Thread Kees Cook
Add my name to the list. Signed-off-by: Kees Cook --- Documentation/process/kernel-enforcement-statement.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/process/kernel-enforcement-statement.rst b/Documentation/process/kernel-enforcement-statement.rst index b3170671a1df..fb

Re: [PATCH for-next 2/4] RDMA/hns: Add IOMMU enable support in hip08

2017-11-08 Thread Wei Hu (Xavier)
On 2017/11/7 14:32, Leon Romanovsky wrote: > On Tue, Nov 07, 2017 at 10:45:29AM +0800, Wei Hu (Xavier) wrote: >> >> On 2017/11/1 20:26, Robin Murphy wrote: >>> On 01/11/17 07:46, Wei Hu (Xavier) wrote: On 2017/10/12 20:59, Robin Murphy wrote: > On 12/10/17 13:31, Wei Hu (Xavier) wrote: >

答复: 答复: [PATCH v2,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-08 Thread 冯锐
> > On Mon, Oct 30, 2017 at 07:50:09AM +, 冯锐 wrote: > > Hi Greg > > > > I'm sorry to bother you, but can you help to review this patch and the patch > below if you have time? > > https://patchwork.kernel.org/patch/10026543/ > > Hm, I don't use patchwork, so I don't know what to say about that

Re: mm, vmstat: Make sure mutex is a global static

2017-11-08 Thread kemi
On 2017年11月08日 05:38, Kees Cook wrote: > The mutex in sysctl_vm_numa_stat_handler() needs to be a global static, not > a stack variable, otherwise it doesn't serve any purpose. Also, reading the > file with CONFIG_LOCKDEP=y will complain: > It's my mistake. Kees, thanks for catching it. > [

Re: [PATCH v2 0/3] Makefile: Introduce CONFIG_CC_STACKPROTECTOR_AUTO

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 11:43 AM, Laura Abbott wrote: > On 11/07/2017 09:38 AM, Kees Cook wrote: >> >> As described in the final patch: >> >> Nearly all modern compilers support a stack-protector option, and nearly >> all modern distributions enable the kernel stack-protector, so enabling >> this b

[PATCH v3,2/2] misc: rtsx: Add support for RTS5260

2017-11-08 Thread rui_feng
From: Rui Feng Add support for new chip rts5260. In order to support rts5260, the definitions of some internal registers and workflow have to be modified and are different from its predecessors and OCP function is added for RTS5260. So we need this patch to ensure RTS5260 can work. Signed-off-by

[PATCH v3,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-08 Thread rui_feng
From: Rui Feng Because Realtek card reader drivers are pcie and usb drivers, and they bridge mmc subsystem and memstick subsystem, they are not mfd drivers. Greg and Lee Jones had a discussion about where to put the drivers, the result is that misc is a good place for them, so I move all files to

Re: [RFC 0/6] some compile- and run-time format checking

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 2:30 PM, Rasmus Villemoes wrote: > Consider these strictly RFC/POC. > > I tried resurrecting my format_template plugin from two years ago, and > it rebased pretty cleanly. It also compiles with gcc 6.3, and has the > expected effect when one tries to trigger it, so it seems

[PATCH] checkpatch.pl: Add SPDX license tag check

2017-11-08 Thread Rob Herring
Add a check warning if SPDX-License-Identifier tags are not used in newly added files. Cc: Andy Whitcroft Cc: Joe Perches Cc: Greg Kroah-Hartman Signed-off-by: Rob Herring --- I rewrote my previous version to check more than just dts files. It also now looks for a tag in added files rather th

Re: [RFC 4/6] lib/vsprintf.c: add fmtcheck utility

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 2:30 PM, Rasmus Villemoes wrote: > We have a few places in the kernel where a *printf function is used with > a non-constant format string, making the ordinary static type checking > done by gcc et al. impossible. Some things can still be caught at build > time with appropri

Re: [PATCH v2] mm, shrinker: make shrinker_list lockless

2017-11-08 Thread Shakeel Butt
On Wed, Nov 8, 2017 at 4:07 PM, Minchan Kim wrote: > Hi, > > On Wed, Nov 08, 2017 at 09:37:40AM -0800, Shakeel Butt wrote: >> In our production, we have observed that the job loader gets stuck for >> 10s of seconds while doing mount operation. It turns out that it was >> stuck in register_shrinker

Feature request - support kbd_backlight on Hewlett-Packard

2017-11-08 Thread kedar kedar
Hello, Can anyone please try add support for controlling keyboard backlight via sysfs on Hewlett-Packard notebooks? Maybe in a similar way as this last year patch for Thinkpad? https://lkml.org/lkml/2015/12/24/295 BTW: This functionality is already supported (minimaly) on Apple, ASUS, Dell, Samsun

Re: [PATCH 5/7] scripts/leaking_addresses: add emailing results

2017-11-08 Thread Tobin C. Harding
On Wed, Nov 08, 2017 at 12:51:20PM +0100, Greg KH wrote: > On Wed, Nov 08, 2017 at 11:16:43AM +0100, Petr Mladek wrote: > > On Wed 2017-11-08 14:37:37, Tobin C. Harding wrote: > > > Developers may not have the time (or inclination) to investigate script > > > output. This information is, however, u

Re: [kernel-hardening] Re: [PATCH resend 2/2] userns: control capabilities of some user namespaces

2017-11-08 Thread महेश बंडेवार
On Thu, Nov 9, 2017 at 4:02 AM, Christian Brauner wrote: > On Wed, Nov 08, 2017 at 03:09:59AM -0800, Mahesh Bandewar (महेश बंडेवार) > wrote: >> Sorry folks I was traveling and seems like lot happened on this thread. :p >> >> I will try to response few of these comments selectively - >> >> > The t

Re: [PATCH v3] printk: Add console owner and waiter logic to load balance console writes

2017-11-08 Thread Sergey Senozhatsky
Hello Steven, On (11/08/17 09:29), Steven Rostedt wrote: > On Wed, 8 Nov 2017 14:19:55 +0900 > Sergey Senozhatsky wrote: > > > the change goes further. I did express some of my concerns during the KS, > > I'll just bring them to the list. > > > > > > we now always shift printing from a save -

Re: [PATCH] pstore: use ktime_get_real_fast_ns() instead of __getnstimeofday()

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 8:00 AM, Arnd Bergmann wrote: > I noticed that __getnstimeofday() is a rather odd interface, with > a number of quirks: > > - The caller may come from NMI context, but the implementation is not NMI safe > - The calling conventions are different from any other timekeeping fun

Re: [PATCH 4/7] scripts/leaking_addresses: add reporting

2017-11-08 Thread Tobin C. Harding
On Wed, Nov 08, 2017 at 11:42:21AM +0100, Petr Mladek wrote: > On Wed 2017-11-08 14:37:36, Tobin C. Harding wrote: > > Currently script just dumps all results found. Potentially, this risks > > loosing single results among multiple duplicate results. We need some > > way of restricting duplicates t

[PATCH x86 v2] uprobe: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original displaced insn in user space. To reduce the overhead, kernel provides hooks for architectures to emulate

[PATCH v2 5/8] MIPS: Octeon: Automatically provision CVMSEG space.

2017-11-08 Thread David Daney
Remove CONFIG_CAVIUM_OCTEON_CVMSEG_SIZE and automatically calculate the amount of CVMSEG space needed. 1st 128-bytes: Use by IOBDMA 2nd 128-bytes: Reserved by kernel for scratch/TLS emulation. 3rd 128-bytes: OCTEON-III LMTLINE New config variable CONFIG_CAVIUM_OCTEON_EXTRA_CVMSEG provisions addit

[PATCH v2 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-11-08 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Signed-off-by: David Daney --- drivers/staging/octeon/ethernet-defines.h | 6 --- drivers/staging/octeon/ethernet-rx.c | 25 - drivers

[PATCH v2 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-08 Thread David Daney
From: Carlos Munoz Add a global resource manager to manage tagged pointers within bootmem allocated memory. This is used by various functional blocks in the Octeon core like the FPA, Ethernet nexus, etc. Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney ---

[PATCH v2 8/8] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-11-08 Thread David Daney
Signed-off-by: David Daney --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a24f56e0451..142af33adc35 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3212,6 +3212,12 @@ W: http://www.cavium.com S: Supported F: drivers/mmc/ho

[PATCH v2 4/8] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-08 Thread David Daney
From: Carlos Munoz >From the hardware user manual: "The FPA is a unit that maintains pools of pointers to free L2/DRAM memory. To provide QoS, the pools are referenced indirectly through 1024 auras. Both core software and hardware units allocate and free pointers." Signed-off-by: Carlos Munoz S

[PATCH v2 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-08 Thread David Daney
From: Carlos Munoz Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney --- .../devicetree/bindings/net/cavium-bgx.txt | 61 ++ 1 file changed, 61 insertions(+) create mode 10

[PATCH v2 0/8] Cavium OCTEON-III network driver.

2017-11-08 Thread David Daney
We are adding the Cavium OCTEON-III network driver. But since interacting with the input and output queues is done via special CPU local memory, we also need to add support to the MIPS/Octeon architecture code. Aren't SoCs nice in this way? The first six patches add the SoC support needed by the

[PATCH v2 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-08 Thread David Daney
From: Carlos Munoz LMTDMA/LMTST operations move data between cores and I/O devices: * LMTST operations can send an address and a variable length (up to 128 bytes) of data to an I/O device. * LMTDMA operations can send an address and a variable length (up to 128) of data to the I/O device and

Re: [PATCH] soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader

2017-11-08 Thread Kevin Hilman
Arnd, Olof, Neil Armstrong writes: > In the case the VPU power domain has been powered on by the bootloader > and no driver are attached to this power domain, the genpd will power it > off after a certain amount of time, but the clocks hasn't been enabled > by the kernel itself and the power-off

Re: [kernel-hardening] [PATCH v4] scripts: add leaking_addresses.pl

2017-11-08 Thread Michael Ellerman
"Tobin C. Harding" writes: > On Wed, Nov 08, 2017 at 11:10:56PM +1100, Michael Ellerman wrote: >> "Tobin C. Harding" writes: > [snip] > > Hi Michael, > > I'm working an adding support for ppc64 to leaking_addresses.pl, I've > added the kernel address regular expression that you suggested. Thank

Re: [PATCH v10 6/9] LPC: Support the LPC host on Hip06/Hip07 with DT bindings

2017-11-08 Thread dann frazier
On Fri, Oct 27, 2017 at 05:11:24PM +0100, Gabriele Paoloni wrote: > From: "zhichang.yuan" > > The low-pin-count(LPC) interface of Hip06/Hip07 accesses the peripherals in > I/O port addresses. This patch implements the LPC host controller driver > which perform the I/O operations on the underlying

Re: [PATCH] Fix: Removed warning.

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 1:08 PM, Ola Næss Kaldestad wrote: > Removed unnecessary else statement after return. > > Signed-off-by: Ola N. Kaldestad > --- > kernel/sysctl.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > index d9c31bc2

[nfsd4] potentially hardware breaking regression in 4.14-rc and 4.13.11

2017-11-08 Thread Patrick McLean
As of 4.13.11 (and also with 4.14-rc) we have an issue where when serving nfs4 sometimes we get the following BUG. When this bug happens, it usually also causes the motherboard to no longer POST until we externally re-flash the BIOS (using the BMC web interface). If a motherboard does not have an e

Re: [PATCH v2] KVM: X86: Fix softlockup when get the current kvmclock timestamp

2017-11-08 Thread Wanpeng Li
2017-11-09 0:26 GMT+08:00 Radim Krčmář : > 2017-11-06 04:17-0800, Wanpeng Li: >> From: Wanpeng Li >> >> watchdog: BUG: soft lockup - CPU#6 stuck for 22s! [qemu-system-x86:10185] >> CPU: 6 PID: 10185 Comm: qemu-system-x86 Tainted: G OE >> 4.14.0-rc4+ #4 >> RIP: 0010:kvm_get_time_sca

Re: [PATCH 18/31] nds32: Library functions

2017-11-08 Thread Al Viro
On Wed, Nov 08, 2017 at 01:55:06PM +0800, Greentime Hu wrote: > +#define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs() -size)) > + > +#define access_ok(type, addr, size) \ > + __range_ok((unsigned long)addr, (unsigned long)size) > +#define __get_user_x(__r2,__p

Re: [PATCH 1/2] MIPS: dts: remove bogus bcm96358nb4ser.dtb from dtb-y entry

2017-11-08 Thread Masahiro Yamada
2017-11-09 9:11 GMT+09:00 Masahiro Yamada : > 2017-11-09 1:51 GMT+09:00 Rob Herring : >> On Mon, Nov 6, 2017 at 5:00 AM, Masahiro Yamada >> wrote: >>> 2017-11-06 19:41 GMT+09:00 James Hogan : Hi, On Sun, Nov 05, 2017 at 11:11:38PM +0900, Masahiro Yamada wrote: > +CC Ralf Baechle

Re: [PATCH v5 3/3] KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure

2017-11-08 Thread Wanpeng Li
2017-11-09 5:47 GMT+08:00 Jim Mattson : > I realize now that there are actually many other problems with > deferring some control field checks to the hardware VM-entry of > vmcs02. When there is an invalid control field, the vCPU should just > fall through to the next instruction, without any state

Re: kprobes: propagate error from arm_kprobe_ftrace()

2017-11-08 Thread Masami Hiramatsu
On Tue, 7 Nov 2017 18:14:56 +0100 Jessica Yu wrote: > +++ Steven Rostedt [03/11/17 10:03 -0400]: > >On Thu, 2 Nov 2017 17:33:33 +0100 > >Jessica Yu wrote: > > > >> Improve error handling when arming ftrace-based kprobes. Specifically, if > >> we fail to arm a ftrace-based kprobe, register_kprob

[PATCH 13/17] ASoC: tlv320aic31xx: Add overflow detection support

2017-11-08 Thread Andrew F. Davis
Similar to short circuit detection, when the ADC/DAC is saturated and overflows poor audio quality can result and should be reported to the user. This device support Automatic Dynamic Range Compression (DRC) to reduce this but it is not enabled currently in this driver. Signed-off-by: Andrew F. Da

Re: [RFC PATCH 04/11] Add a function to start/reduce a timer

2017-11-08 Thread David Howells
Thomas Gleixner wrote: > > +extern int reduce_timer(struct timer_list *timer, unsigned long expires); > > For new timer functions we really should use the timer_() > convention. The historic naming convention is horrible. > > Aside of that timer_reduce() is kinda ugly but I failed to come u

[PATCH 09/17] ASoC: tlv320aic31xx: Add CODEC clock slave support

2017-11-08 Thread Andrew F. Davis
This CODEC supports being the WCLK and/or BCLK slave, add support for this here. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c ind

[PATCH 10/17] ASoC: tlv320aic31xx: Fix inverted BCLK handling

2017-11-08 Thread Andrew F. Davis
Currently BCLK inverting is only handled when the DAI format is DSP, but the BCLK may be inverted in any supported mode. Without this using this CODEC in any other mode than DSP with the BCLK inverted leads to bad sampling timing and very poor audio quality. Fixes: e00447fafbf7 ("ASoC: tlv320aic31

[PATCH 01/17] ASoC: tlv320aic31xx: General source formatting cleanup

2017-11-08 Thread Andrew F. Davis
Simple non-functional changes including: * Fix header copyright tags * Fix spelling errors * Reformat code for easier reading * Move some code blocks to a more natural ordering * Remove unneeded code * Remove assignments that are always overridden * Normalize function return paths Signed-o

[PATCH 14/17] ASoC: tlv320aic31xx: Add headphone/headset detection

2017-11-08 Thread Andrew F. Davis
This device can detect the insertion/removal of headphones and headsets. Enable reporting this status by enabling this interrupt and forwarding this to upper-layers if a jack has been defined. This jack definition and the resulting operation from a jack detection event must currently be defined by

[PATCH 03/17] ASoC: tlv320aic31xx: Fix GPIO1 register definition

2017-11-08 Thread Andrew F. Davis
GPIO1 control register is number 51, fix this here. Fixes: bafcbfe429eb ("ASoC: tlv320aic31xx: Make the register values human readable") Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/tlv32

[PATCH 15/17] ASoC: tlv320aic31xx: Add button press detection

2017-11-08 Thread Andrew F. Davis
This device can optionally detect headset or microphone button presses. Add support for this by passing this event to the jack layer. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 14 +- sound/soc/codecs/tlv320aic31xx.h | 3 ++- 2 files changed, 15 insertions

Re: n900 in next-20170901

2017-11-08 Thread Joonsoo Kim
On Wed, Nov 08, 2017 at 04:11:13PM -0800, Tony Lindgren wrote: > * Joonsoo Kim [171109 00:05]: > > On Wed, Nov 08, 2017 at 08:34:13AM -0800, Tony Lindgren wrote: > > > * Joonsoo Kim [171108 07:43]: > > > > On Tue, Nov 07, 2017 at 07:48:42AM -0800, Tony Lindgren wrote: > > > > > So it seems the is

Re: linux-next: build failure after merge of the kspp tree

2017-11-08 Thread Kees Cook
On Wed, Nov 8, 2017 at 4:18 PM, Darrick J. Wong wrote: > Agreed. I guess we'll see you for round X when you get to general > kmalloc annotating. :) That should be "fun". :) -Kees -- Kees Cook Pixel Security

[PATCH 12/17] ASoC: tlv320aic31xx: Add short circuit detection support

2017-11-08 Thread Andrew F. Davis
These devices support detecting and reporting short circuits across the output stages. Add support for reporting these issue. Do this by registering an interrupt if available and enabling this error to trigger that interrupt in the device. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv3

[PATCH 04/17] ASoC: tlv320aic31xx: Merge init function into probe

2017-11-08 Thread Andrew F. Davis
The function aic31xx_device_init() is only called from probe and does nothing that logically shouldn't be in probe, remove this unneeded function call and move its code into probe where it was called. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 55 --

[PATCH 11/17] ASoC: tlv320aic31xx: Reset registers during probe

2017-11-08 Thread Andrew F. Davis
Add a reset function that toggles the reset line if available or uses the software reset command otherwise. Use this in probe to ensure the registers are in a sane state. This is useful when the driver module is reloaded, or after Kexec, warm-reboots, etc.. Signed-off-by: Andrew F. Davis --- sou

Re: linux-next: Tree for Nov 8 (timer conversions)

2017-11-08 Thread Kees Cook
e 20 outstanding non-trivial conversions (all are now in-flight). Combined with the trivial treewide conversions and API adjustments it produces an additional: 392 files changed, 1388 insertions(+), 1925 deletions(-) After that, all 1116 timer_setup() callsites will be finished. My tree, based on ne

Re: [PATCH net-next 00/11] net: dsa: setup stage

2017-11-08 Thread David Miller
From: Vivien Didelot Date: Mon, 6 Nov 2017 16:11:42 -0500 > When probing a DSA switch, there is basically two stages. > > The first stage is the parsing of the switch device, from either device > tree or platform data. It fetches the DSA tree to which it belongs, and > validates its ports. The

[PATCH 16/17] NOT FOR MERGING: Add TLV320DAC3101 to BBB for testing

2017-11-08 Thread Andrew F. Davis
--- arch/arm/boot/dts/am335x-boneblack.dts | 106 + 1 file changed, 106 insertions(+) diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts index d154d3133c16..e52553d144ab 100644 --- a/arch/arm/boot/dts/am335x-boneblack.dts

[PATCH 05/17] ASoC: tlv320aic31xx: Switch GPIO handling to use gpiod_* API

2017-11-08 Thread Andrew F. Davis
Move to using newer gpiod_* GPIO handling functions. This simplifies the code and eases dropping platform data in the next patch. Also remember GPIO are active low, so set "1" to reset. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 23 ++- 1 file chang

[PATCH 17/17] NOT FOR MERGING: Add demo jack detection policy for testing

2017-11-08 Thread Andrew F. Davis
--- sound/soc/codecs/tlv320aic31xx.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c index 46cd132e93ef..12daba8f60cd 100644 --- a/sound/soc/codecs/tlv320aic31xx.c +++ b/sound/soc/codecs/tlv320aic31

[PATCH 00/17] Add Headphone Detection to TLV320AIC31xx Driver

2017-11-08 Thread Andrew F. Davis
Hello all, This series has the end goal of adding headphone detection to the tlv320aic31xx driver. The first few patches are mostly cleanups. Then a couple bug fixes I noticed. Followed by adding interrupt handling and finally headphone detection. The last two, as their commit name recommends, sh

Urgent response !!!

2017-11-08 Thread Melisa Mehmet
Greetings, I have a business proposal I would love to discuss with you. please reply me for more details Yours Sincerely, miss.melisa.mehmet

[PATCH 02/17] ASoC: tlv320aic31xx: Reformat header file using GENMASK and BIT macros

2017-11-08 Thread Andrew F. Davis
We also move the comments describing the registers to after the register definition to remove non-uniform vertical white-space, this makes cross-referencing with the datasheet much easier and allowed me to find the errors that are corrected in follow-up patches. Signed-off-by: Andrew F. Davis ---

[PATCH 06/17] ASoC: tlv320aic31xx: Remove platform data

2017-11-08 Thread Andrew F. Davis
Platform data is not used by anyone (at least in upstream) so drop this data and switch to using fwnode(DT/ACPI) only. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 65 ++-- sound/soc/codecs/tlv320aic31xx.h | 6 2 files changed, 2

[PATCH 07/17] ASoC: tlv320aic31xx: Add MICBIAS off setting

2017-11-08 Thread Andrew F. Davis
Leaving microphone bias off is a valid setting and even used in the DT binding document example. Add this setting here and document the same. Signed-off-by: Andrew F. Davis --- Documentation/devicetree/bindings/sound/tlv320aic31xx.txt | 1 + include/dt-bindings/sound/tlv320aic31xx-micbias.h

[PATCH 08/17] ASoC: tlv320aic31xx: Check clock and divider before division

2017-11-08 Thread Andrew F. Davis
If our set_sysclk DAI callback has not been called yet p_div will be 0 and dividing by this will cause an error. Print an error message and leave before this. Signed-off-by: Andrew F. Davis --- sound/soc/codecs/tlv320aic31xx.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --

Re: [PATCH] locking/lockdep: Revise Documentation/locking/crossrelease.txt

2017-11-08 Thread Byungchul Park
On Wed, Nov 08, 2017 at 10:34:38AM +0100, Ingo Molnar wrote: > > * Byungchul Park wrote: > > > I'm afraid the revision is not perfect yet. Of course, the document can > > have got much better english by others than me. > > > > But, > > > > I think I should enhance it as much as I can, before t

Re: linux-next: build failure after merge of the kspp tree

2017-11-08 Thread Darrick J. Wong
On Wed, Nov 08, 2017 at 03:43:47PM -0800, Kees Cook wrote: > On Tue, Nov 7, 2017 at 9:23 PM, Stephen Rothwell > wrote: > > Hi Kees, > > > > After merging the kspp tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > In file included from include/linux/compiler_ty

Re: [PATCH v2] rtc: rx8010: Fix for incorrect return value

2017-11-08 Thread Alexandre Belloni
On 08/11/2017 at 14:58:14 -0500, Akshay Bhat wrote: > The err variable is not being reset after a successful read. Explicitly > return 0 at the end of function call to account for all return paths. > > Reported-by: Jens-Peter Oswald > Signed-off-by: Akshay Bhat > --- > v2: Address comments from

Re: [PATCH] rtc: x-gene: mark PM functions as __maybe_unused

2017-11-08 Thread Alexandre Belloni
On 08/11/2017 at 13:08:10 +0100, Arnd Bergmann wrote: > The new xgene_rtc_alarm_irq_enabled() function is only accessed > from PM code, which is inside of an #ifdef; this causes a harmless > build warning when CONFIG_PM is disabled: > > drivers/rtc/rtc-xgene.c:108:12: error: 'xgene_rtc_alarm_irq_e

[PATCH] vhost/scsi: Use safe iteration in vhost_scsi_complete_cmd_work()

2017-11-08 Thread Byungchul Park
I am sorry for having made a mistake on it. -8<- >From ba9a0f76dffceffa4fa3aa2d9be49cdb0d9b7d4f Mon Sep 17 00:00:00 2001 From: Byungchul Park Date: Thu, 9 Nov 2017 09:00:21 +0900 Subject: [PATCH] vhost/scsi: Use safe iteration in vhost_scsi_complete_cmd_work() The following patch change

Re: [PATCH 1/2] MIPS: dts: remove bogus bcm96358nb4ser.dtb from dtb-y entry

2017-11-08 Thread Masahiro Yamada
2017-11-09 1:51 GMT+09:00 Rob Herring : > On Mon, Nov 6, 2017 at 5:00 AM, Masahiro Yamada > wrote: >> 2017-11-06 19:41 GMT+09:00 James Hogan : >>> Hi, >>> >>> On Sun, Nov 05, 2017 at 11:11:38PM +0900, Masahiro Yamada wrote: +CC Ralf Baechle +CC linux-m...@linux-mips.org +CC Kevin C

Re: n900 in next-20170901

2017-11-08 Thread Tony Lindgren
* Joonsoo Kim [171109 00:05]: > On Wed, Nov 08, 2017 at 08:34:13AM -0800, Tony Lindgren wrote: > > * Joonsoo Kim [171108 07:43]: > > > On Tue, Nov 07, 2017 at 07:48:42AM -0800, Tony Lindgren wrote: > > > > So it seems the issue is currently at the atomic_pool_init() > > > > related code? > > > >

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread Yonghong Song
On 11/8/17 4:06 PM, David Miller wrote: From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original d

[PATCH] perf/x86: Hide TSX events when no TSX

2017-11-08 Thread Andi Kleen
From: Andi Kleen When TSX is not available don't show the TSX events in sysfs for Haswell/Broadwell/Skylake. This fixes a perf test regression reported by 0day on Haswell systems without RTM. The earlier a5df70c35 patch hid the t/ct attributes in this case, so their attributes cannot be parsed a

Re: [PATCH v2] mm, shrinker: make shrinker_list lockless

2017-11-08 Thread Minchan Kim
Hi, On Wed, Nov 08, 2017 at 09:37:40AM -0800, Shakeel Butt wrote: > In our production, we have observed that the job loader gets stuck for > 10s of seconds while doing mount operation. It turns out that it was > stuck in register_shrinker() and some unrelated job was under memory > pressure and sp

Admin

2017-11-08 Thread Administrador
ATENÇÃO; Sua caixa de correio excedeu o limite de armazenamento, que é de 5 GB como definido pelo administrador, que está atualmente em execução no 10.9GB, você pode não ser capaz de enviar ou receber novas mensagens até que você re-validar a sua caixa de correio. Para revalidar sua caixa de co

Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86

2017-11-08 Thread David Miller
From: Yonghong Song Date: Wed, 8 Nov 2017 13:37:12 -0800 > Uprobe is a tracing mechanism for userspace programs. > Typical uprobe will incur overhead of two traps. > First trap is caused by replaced trap insn, and > the second trap is to execute the original displaced > insn in user space. ...

Re: n900 in next-20170901

2017-11-08 Thread Joonsoo Kim
On Wed, Nov 08, 2017 at 08:34:13AM -0800, Tony Lindgren wrote: > * Joonsoo Kim [171108 07:43]: > > On Tue, Nov 07, 2017 at 07:48:42AM -0800, Tony Lindgren wrote: > > > So it seems the issue is currently at the atomic_pool_init() > > > related code? > > > > Yes, your test showed it although I can'

Re: [PATCH 13/15] arm64: fix mrs_s/msr_s macros for clang LTO

2017-11-08 Thread Andi Kleen
> There's the series from Andi Kleen that enables LTO for Linux on x86: > https://lwn.net/Articles/512548/ > https://github.com/andikleen/linux-misc/tree/lto-411-1 > > It has solved many problems you also try to solve, and some patches > are looking very similar. > > At now we have different pat

Re: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length

2017-11-08 Thread Levin, Alexander (Sasha Levin)
On Wed, Nov 08, 2017 at 11:11:11PM +, Mark Brown wrote: >On Wed, Nov 08, 2017 at 10:48:14PM +, Levin, Alexander (Sasha Levin) wrote: >> On Wed, Nov 08, 2017 at 10:11:02PM +, Mark Brown wrote: > >> >expose problems if we start using it. If you look at the history of the >> >driver there

Re: [RFC][PATCH] x86, sched: allow topolgies where NUMA nodes share an LLC

2017-11-08 Thread Dave Hansen
On 11/08/2017 01:31 AM, Peter Zijlstra wrote: > And SNC makes it even smaller; it effectively puts a cache in between > the two on-die nodes; not entirely unlike the s390 BOOK domain. Which > makes ignoring NUMA even more tempting. > > What does this topology approach do for those workloads? What

[GIT PULL] timers-conversion updates for next (part 5)

2017-11-08 Thread Kees Cook
Hi Thomas, Please pull these timer conversions for tip/timers/core. These are the last of the pre-rc1 changes. The rest of the changes are for late-rc1 (due to various tree dependencies). Following that are the tree-wide changes, and the API adjustments and removals. Thanks! -Kees The following

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-08 Thread Dave Chinner
On Tue, Nov 07, 2017 at 07:29:03PM +0100, Greg Kroah-Hartman wrote: > On Tue, Nov 07, 2017 at 09:20:42AM -0800, Darrick J. Wong wrote: > > On Tue, Nov 07, 2017 at 08:39:40AM +0100, Greg Kroah-Hartman wrote: > > > On Mon, Nov 06, 2017 at 11:20:40PM -0800, Christoph Hellwig wrote: > > > > NAK, for bo

Re: [RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-08 Thread Andrew Morton
On Wed, 8 Nov 2017 20:57:42 +0900 Tetsuo Handa wrote: > Lingutla Chandrasekhar wrote: > > Some tasks may intentionally moves to uninterruptable sleep state, > > which shouldn't leads to khungtask panics, as those are recoverable > > hungs. So to avoid false hung reports, add an option to select

Re: linux-next: build failure after merge of the kspp tree

2017-11-08 Thread Kees Cook
On Tue, Nov 7, 2017 at 9:23 PM, Stephen Rothwell wrote: > Hi Kees, > > After merging the kspp tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/linux/compiler_types.h:58:0, > from include/uapi/linux/stddef.h:2, >

Re: linux-next: build warning after merge of the netfilter-next tree

2017-11-08 Thread Pablo Neira Ayuso
On Wed, Nov 08, 2017 at 07:00:52PM +1100, Stephen Rothwell wrote: > Hi Dave, > > On Tue, 7 Nov 2017 11:02:48 +1100 Stephen Rothwell > wrote: > > > > Hi all, > > > > After merging the netfilter-next tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > net/

Re: [PATCH ALT4 V3 1/2] audit: show fstype:pathname for entries with anonymous parents

2017-11-08 Thread Steve Grubb
On Wednesday, September 20, 2017 12:52:32 PM EST Paul Moore wrote: > On Wed, Aug 23, 2017 at 7:03 AM, Richard Guy Briggs wrote: > > Tracefs or debugfs were causing hundreds to thousands of null PATH > > records to be associated with the init_module and finit_module SYSCALL > > records on a few mod

Re: [PATCH 0/3] zfcp: timer_setup() refactoring feature for v4.15-rc1

2017-11-08 Thread Martin K. Petersen
Kees, >> Kees Cook (1): >> zfcp: convert timers to use timer_setup() >> >> Steffen Maier (2): >> zfcp: purely mechanical update using timer API, plus blank lines >> zfcp: drop open coded assignments of timer_list.function > > These looks great, thanks! These look good to me too. Reviewed-

Re: [PATCH 8/9] ASoC: tlv320aic31xx: Fix the reset GPIO OF name

2017-11-08 Thread Andrew F. Davis
On 11/08/2017 04:18 PM, Mark Brown wrote: > On Wed, Nov 08, 2017 at 03:53:51PM -0600, Andrew F. Davis wrote: >> On 11/08/2017 03:36 PM, Mark Brown wrote: >>> On Wed, Nov 08, 2017 at 03:25:04PM -0600, Andrew F. Davis wrote: > >>> This is obviously an incompatible change in the binding which will br

Re: [PATCH] pci: fix kernel-doc build warning

2017-11-08 Thread Bjorn Helgaas
On Sun, Oct 29, 2017 at 05:07:11PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix build error in kernel-doc notation: > > ../drivers/pci/pci.c:3479: ERROR: Unexpected indentation. > > Signed-off-by: Randy Dunlap Applied to pci/misc for v4.15, thanks! > Cc: Bjorn Helgaas > Cc: l

Re: [Xen-devel] [PATCH] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Govinda Tatti
Thanks Pasi for your response. Please see below for my comments. On 11/8/2017 11:38 AM, Pasi Kärkkäinen wrote: Hi, On Wed, Nov 08, 2017 at 09:44:48AM -0600, Govinda Tatti wrote: Thanks Jan for your review comments. Please see below for my comments. On 11/7/2017 8:40 AM, Jan Beulich wrote: On

[RFC PATCH v2 improved] ftrace: support very early function tracing

2017-11-08 Thread Abderrahmane Benbachir
Hi Steve, here is the latest changes and fixes of v2, there are 3 points that still need to be fixed: 1) Use early boot timestamps : I removed arch specific code and use the default  clock. 2) Make filters depends on FTRACE_MCOUNT_RECORD instead of CONFIG_DYNAMIC_FTRACE, so we can use filtering

linux-next: manual merge of the vfs tree with the overlayfs tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/overlayfs/super.c between commits: 7c84d842e11e ("ovl: reduce the number of arguments for ovl_workdir_create()") 17d554474412 ("ovl: rename ufs to ofs") from the overlayfs tree and commit: c2c6773f9942 ("VFS: Roll o

[PATCH V2] Xen/pciback: Implement PCI slot or bus reset with 'do_flr' SysFS attribute

2017-11-08 Thread Govinda Tatti
The life-cycle of a PCI device in Xen pciback is complex and is constrained by the generic PCI locking mechanism. - It starts with the device being bound to us, for which we do a function reset (done via SysFS so the PCI lock is held). - If the device is unbound from us, we also do a function re

Re: [PATCH AUTOSEL for-4.9 04/53] spi: imx: adjust watermark level according to transfer length

2017-11-08 Thread Mark Brown
On Wed, Nov 08, 2017 at 10:48:14PM +, Levin, Alexander (Sasha Levin) wrote: > On Wed, Nov 08, 2017 at 10:11:02PM +, Mark Brown wrote: > >expose problems if we start using it. If you look at the history of the > >driver there's some quirks were added later on for example, and I didn't > >c

Re: [PATCH] aacraid: use timespec64 instead of timeval

2017-11-08 Thread Martin K. Petersen
Arnd, > aacraid passes the current time to the firmware in one of two ways, > either as year/month/day/... or as 32-bit unsigned seconds. > > The first one is broken on 32-bit architectures as it cannot go past > year 2038. Using timespec64 here makes it behave properly on both > 32-bit and 64-bi

Re: [GIT PULL] License cleanup: add SPDX license identifiers to some kernel files

2017-11-08 Thread Rob Herring
On Thu, Nov 2, 2017 at 10:16 AM, Greg KH wrote: > [resend without the full diffstat as lkml and some email systems didn't > like to see emails with 12k lines...] > > Hi, > > As discussed at the Maintainers Summit last week, here is a pull request > that adds some SPDX license identifiers to three

linux-next: manual merge of the vfs tree with the f2fs tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/f2fs/super.c between commit: ea6767337f86 ("f2fs: support quota sys files") from the f2fs tree and commit: c2c6773f9942 ("VFS: Roll out mount flag differentiation (MS_* -> SB_*) generally") from the vfs tree. I fix

linux-next: manual merge of the vfs tree with the f2fs tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/f2fs/checkpoint.c between commits: 1f227a3e215d ("f2fs: stop all the operations by cp_error flag") ea6767337f86 ("f2fs: support quota sys files") from the f2fs tree and commit: c2c6773f9942 ("VFS: Roll out mount fla

linux-next: manual merge of the vfs tree with the ext3 tree

2017-11-08 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/ext2/super.c between commits: 088519572ca8 ("ext2: Parse mount options into a dedicated structure") 8af634ff9e5c ("ext2: Fix possible sleep in atomic during mount option parsing") from the ext3 tree and commit: c2c

Re: [PATCH 1/5] kobject: add SPDX identifiers to all kobject files

2017-11-08 Thread Rob Herring
On Tue, Nov 7, 2017 at 10:30 AM, Greg Kroah-Hartman wrote: > It's good to have SPDX identifiers in all files to make it easier to > audit the kernel tree for correct licenses. > > Update the kobject files files with the correct SPDX license identifier > based on the license text in the file itself

<    1   2   3   4   5   6   7   8   9   10   >