[PATCH v7 3/9] drivers:input:tsc2007: check for presence and power down tsc2007 during probe

2016-11-11 Thread H. Nikolaus Schaller
1. check if chip is really present and don't succeed if it isn't. 2. if it succeeds, power down the chip until accessed Signed-off-by: H. Nikolaus Schaller --- drivers/input/touchscreen/tsc2007.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/input/touchscreen/tsc2007.c b/d

[PATCH v7 7/9] dt-bindings: input: move ads7846 bindings to touchscreen subdirectory

2016-11-11 Thread H. Nikolaus Schaller
Signed-off-by: H. Nikolaus Schaller --- Documentation/devicetree/bindings/input/{ => touchscreen}/ads7846.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/input/{ => touchscreen}/ads7846.txt (100%) diff --git a/Documentation/devicetree/bindings/

[PATCH][STYLE 1/3]staging:speakup:kobjects.c Align match on parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/kobjects.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/staging/speak

[PATCH][STYLE 2/3]staging:speakup:kobjects.c Align match on parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/kobjects.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/staging/speakup/kob

[PATCH] [STYLE 3/3]staging:speakup:kobjects.c Align match on parenthesis and no space after cast

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast Signed-off-by: Walt Feasel --- drivers/staging/speakup/kobjects.c | 24 1 file changed, 12 insertions(+), 12 deletio

[PATCH] IB/usnic: simplify IS_ERR_OR_NULL to IS_ERR

2016-11-11 Thread Julia Lawall
The function usnic_ib_qp_grp_get_chunk only returns an ERR_PTR value or a valid pointer, never NULL. The same is true of get_qp_res_chunk, which just returns the result of calling usnic_ib_qp_grp_get_chunk. Simplify IS_ERR_OR_NULL to IS_ERR in both cases. The semantic patch that makes this chang

Compliment of the day!!!

2016-11-11 Thread Mr. Ahmed
Compliment of the day,i will not take much of your time can we discuss briefly on this business proposal ,if you are interested reply for more details.

Re: PM regression with LED changes in next-20161109

2016-11-11 Thread Hans de Goede
Hi, On 11-11-16 18:03, Jacek Anaszewski wrote: On 11/11/2016 01:01 PM, Pavel Machek wrote: On Thu 2016-11-10 22:34:07, Jacek Anaszewski wrote: Hi, On 11/10/2016 09:29 PM, Pavel Machek wrote: On Thu 2016-11-10 10:55:37, Tony Lindgren wrote: * Pavel Machek [161110 09:29]: Hi! Looks like c

[PATCH] firmware: fix usermode helper fallback loading

2016-11-11 Thread Luis R. Rodriguez
From: Yves-Alexis Perez When you use the firmware usermode helper fallback with a timeout value set to a value greater than INT_MAX (2147483647) a cast overflow issue causes the timeout value to go negative and breaks all usermode helper loading. This regression was introduced through commit 68ff

Source address fib invalidation on IPv6

2016-11-11 Thread Jason A. Donenfeld
Hi folks, If I'm replying to a UDP packet, I generally want to use a source address that's the same as the destination address of the packet to which I'm replying. For example: Peer A sends packet: src = 10.0.0.1, dst = 10.0.0.3 Peer B replies with: src = 10.0.0.3, dst = 10.0.0.1 But let's comp

[PATCH] [STYLE 1/3]staging:speakup:main.c Modify block comments

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to WARNING: Block comments should align the * on each line CHECK: Please use a blank line after function/struct/union/enum declarations Signed-off-by: Walt Feasel --- drivers/staging/speakup/main.c | 3 ++- 1 file changed, 2 insertions

[PATCH] [STYLE 2/3]staging:speakup:main.c Align on Parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speak

Re: [PATCH 5/7] x86/mcheck: reorganize the hotplug callbacks

2016-11-11 Thread Sebastian Andrzej Siewior
On 2016-11-11 19:44:53 [+0100], Borislav Petkov wrote: > > --- > > arch/x86/kernel/cpu/mcheck/mce.c | 31 +++ > > 1 file changed, 15 insertions(+), 16 deletions(-) > > > > diff --git a/arch/x86/kernel/cpu/mcheck/mce.c > > b/arch/x86/kernel/cpu/mcheck/mce.c > > index 0

Re: [PATCH 1/2] watchdog: bcm7038_wdt: fix module autoload

2016-11-11 Thread Javier Martinez Canillas
Hello Guenter, On 10/14/2016 01:55 PM, Guenter Roeck wrote: > On Fri, Oct 14, 2016 at 12:23:50PM -0300, Javier Martinez Canillas wrote: >> If the driver is built as a module, autoload won't work because the module >> alias information is not filled. So user-space can't match the registered >> devi

Re: [PATCH 1/2] watchdog: bcm7038_wdt: fix module autoload

2016-11-11 Thread Guenter Roeck
Hi Javier, On Fri, Nov 11, 2016 at 04:43:37PM -0300, Javier Martinez Canillas wrote: > Hello Guenter, > > On 10/14/2016 01:55 PM, Guenter Roeck wrote: > > On Fri, Oct 14, 2016 at 12:23:50PM -0300, Javier Martinez Canillas wrote: > >> If the driver is built as a module, autoload won't work because

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Brian Norris
On Fri, Nov 11, 2016 at 08:47:54AM -0800, Tony Lindgren wrote: > But sounds like the threaded IRQ is not your concern and you mostly Right, threaded is OK for this; it's not performance critical. It just highlighted the fact that its completion is not synchronized with anything. > care about gett

Re: [RFC 2/2] mmc: sdhci-pci: Use ACPI to get max frequency for Intel byt sdio host controller sub-vended by NI

2016-11-11 Thread Julia Cartwright
On Wed, Nov 09, 2016 at 10:08:29AM -0600, Zach Brown wrote: > On Wed, Nov 09, 2016 at 03:24:24PM +0200, Adrian Hunter wrote: > > On 08/11/16 22:07, Zach Brown wrote: > > > On NI 9037 boards the max SDIO frequency is limited by trace lengths > > > and other layout choices. The max SDIO frequency is

Re: [PATCH v2 00/11] getting back -Wmaybe-uninitialized

2016-11-11 Thread Arnd Bergmann
On Friday, November 11, 2016 9:13:00 AM CET Linus Torvalds wrote: > On Thu, Nov 10, 2016 at 8:44 AM, Arnd Bergmann wrote: > > > > Please merge these directly if you are happy with the result. > > I will take this. Thanks a lot! > I do see two warnings, but they both seem to be valid and recent

Re: linux-next: manual merge of the scsi-mkp tree with the block tree

2016-11-11 Thread Martin K. Petersen
> "Stephen" == Stephen Rothwell writes: Stephen, Stephen> This latter commit also exists as commit 2266d5678ad1 in the Stephen> scsi tree, but unfortunately, the scsi-mkp tree was rebased Stephen> overnight, so now the two patches are not the same commit :-( A Stephen> significant path of wh

Re: [PATCH 5/7] x86/mcheck: reorganize the hotplug callbacks

2016-11-11 Thread Borislav Petkov
On Fri, Nov 11, 2016 at 08:36:31PM +0100, Sebastian Andrzej Siewior wrote: > __mcheck_cpu_init_timer() does not only prepare the timer but also fires > it. And __mcheck_cpu_init_timer() is invoked from other places and the > caller probably expects the timer to be fired. Then please do it right:

[PATCH] [STYLE 3/3]staging:speakup:main.c Operators to end of line

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to CHECK: Alignment should match open parenthesis additionally moved operators to end of line Signed-off-by: Walt Feasel --- drivers/staging/speakup/main.c | 40 ++-- 1 file changed, 18 insert

[PATCH] [STYLE]staging:speakup:selection.c Align to parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to CHECK: Alignment should match open parenthesis Additionally add space around operators Signed-off-by: Walt Feasel --- drivers/staging/speakup/selection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver

RE: [PATCH] x86/cpufeatures: Enable new AVX512 cpu features

2016-11-11 Thread Kammela, Gayatri
Hi Boris, -Original Message- From: Borislav Petkov [mailto:b...@alien8.de] Sent: Wednesday, November 9, 2016 1:19 AM To: Kammela, Gayatri Cc: mi...@elte.hu; linux-kernel@vger.kernel.org; x...@kernel.org; H . Peter Anvin ; Shankar, Ravi V ; Yu, Fenghua Subject: Re: [PATCH] x86/cpufeatu

[PATCH v4 1/2] thinkpad_acpi: Move tablet detection into separate function

2016-11-11 Thread Lyude
The hotkey events and ACPI handles used for detecting tablet mode on a few of the newer thinkpad models (Yoga X1 and the Yoga 260 specifically) have been changed around, so unfortunately this means we're definitely going to need to probe for multiple types of tablet mode support. Since the hotkey_i

[PATCH v5 2/2] thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

2016-11-11 Thread Lyude
For whatever reason, the X1 Yoga doesn't support the normal method of querying for tablet mode. Instead of providing the MHKG method under the hotkey handle, we're instead given the CMMD method under the EC handle. Values on this handle are either 0x1, laptop mode, or 0x6, tablet mode. Tested-by:

[PATCH] [STYLE]staging:speakup:serialio.c Align and Space for operators

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '+' CHECK: Please use a blank line after function/struct/union/enum declarations CHECK: Alignment should match open parenthesis Combined "CHECKS" in patch since multiple issues affect the same

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-11 Thread Linus Walleij
On Tue, Oct 25, 2016 at 11:02 PM, Tony Lindgren wrote: > Having the pin control framework call pin controller functions > before it's probe has finished is not nice as the pin controller > device driver does not yet have struct pinctrl_dev handle. > > Let's fix this issue by adding deferred work

Re: [PATCH 7/7] x86/mcheck: Move CPU_DEAD to hotplug state machine

2016-11-11 Thread Borislav Petkov
On Thu, Nov 10, 2016 at 06:44:47PM +0100, Sebastian Andrzej Siewior wrote: > This moves the last piece of the old hotplug notifier code in MCE to the > new hotplug state machine. > > Cc: Tony Luck > Cc: Borislav Petkov > Cc: linux-e...@vger.kernel.org > Cc: x...@kernel.org > Signed-off-by: Sebas

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Tony Lindgren
* Brian Norris [16 11:40]: > > BTW, for context, I'm working on using dev_pm_set_dedicated_wake_irq() > for a Wifi driver which supports out-of-band (e.g., GPIO-based) wakeup. > I see it's used in the I2C core, but the I2C code never actually calls > dev_pm_enable_wake_irq(). So while I think

[PATCH] icmp: Restore resistence to abnormal messages

2016-11-11 Thread Vicente Jimenez Aguilar
Restore network resistance to abnormal ICMP fragmentation needed messages with next hop MTU equal to (or exceeding) dropped packet size Fixes: 46517008e116 ("ipv4: Kill ip_rt_frag_needed().") Signed-off-by: Vicente Jimenez Aguilar --- net/ipv4/icmp.c | 7 +++ 1 file changed, 7 insertions(+)

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-11 Thread Tony Lindgren
* Linus Walleij [16 12:17]: > On Tue, Oct 25, 2016 at 11:02 PM, Tony Lindgren wrote: > > > Having the pin control framework call pin controller functions > > before it's probe has finished is not nice as the pin controller > > device driver does not yet have struct pinctrl_dev handle. > > >

Re: [PATCH v2 1/2] pinctrl: single: check for any error when getting rows

2016-11-11 Thread Linus Walleij
On Wed, Nov 9, 2016 at 3:54 PM, Axel Haslam wrote: > pinctrl_count_index_with_args returns -ENOENT not > -EINVAL. The return check would pass, and we would > try to kzalloc with a negative error size throwing > a warning. > > Instead of checking for -EINVAL specifically, lets > check for any erro

Re: [PATCH v2 2/2] pinctrl: single: search for the bits property when parsing bits

2016-11-11 Thread Linus Walleij
On Wed, Nov 9, 2016 at 3:54 PM, Axel Haslam wrote: > The pcs_parse_bits_in_pinctrl_entry function should search > for the "pinctrl-single,bits" and not "pinctrl-single,pins" > > Signed-off-by: Axel Haslam Patch applied with Tony's ACK. Yours, Linus Walleij

Re: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-11 Thread Arnd Bergmann
On Thursday, November 10, 2016 1:02:11 PM CET Felipe Balbi wrote: > > @@ -123,8 +119,8 @@ int dwc3_host_init(struct dwc3 *dwc) > > void dwc3_host_exit(struct dwc3 *dwc) > > { > > phy_remove_lookup(dwc->usb2_generic_phy, "usb2-phy", > > - dev_name(&dwc->xhci->dev)); > >

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-11 Thread Tony Lindgren
* Tony Lindgren [16 12:27]: > * Linus Walleij [16 12:17]: > > On Tue, Oct 25, 2016 at 11:02 PM, Tony Lindgren wrote: > > > > > Having the pin control framework call pin controller functions > > > before it's probe has finished is not nice as the pin controller > > > device driver does n

Re: [PATCH] Block: mtip32xx: Improvement in code readability when memdup_user() fails.

2016-11-11 Thread Jens Axboe
On 11/11/2016 02:04 AM, Sachin Shukla wrote: From: "Sachin Shukla" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Applied for 4.10, thanks. -- Jens Axboe

Re: [PATCH] clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks

2016-11-11 Thread Maxime Ripard
On Fri, Nov 11, 2016 at 06:05:58PM +0800, Chen-Yu Tsai wrote: > The audio module clocks are supposed to be set according to the sample > rate of the audio stream. The audio PLL provides the clock signal for > thees module clocks, and only it is freely tunable. > > Set CLK_SET_RATE_PARENT for the a

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-11 Thread Stas Sergeev
11.11.2016 07:14, Ricardo Neri пишет: 10.11.2016 09:46, Ricardo Neri пишет: I took a closer look at the dosemu code. It appears that it does not purposely utilize SGDT to obtain the descriptor table while in vm86. It does use SGDT (in protected mode) to emulate certain functionality such as the

Re: [PATCH] PCI: move cfg space size (256/4096) macros to pci_regs.h

2016-11-11 Thread Bjorn Helgaas
On Thu, Sep 22, 2016 at 09:05:46AM +0800, Wang Sheng-Hui wrote: > This is a cleanup that moves PCI configuration space size > macros (PCI_CFG_SPACE_SIZE and PCI_CFG_SPACE_EXP_SIZE) from > drivers/pci/pci.h to include/uapi/linux/pci_regs.h > > So that the macros can be used by more drivers and elim

Re: [PATCH 1/5] pinctrl: core: Use delayed work for hogs

2016-11-11 Thread Tony Lindgren
* Tony Lindgren [16 12:32]: > * Tony Lindgren [16 12:27]: > > * Linus Walleij [16 12:17]: > > > On Tue, Oct 25, 2016 at 11:02 PM, Tony Lindgren wrote: > > > > > > > Having the pin control framework call pin controller functions > > > > before it's probe has finished is not nice as

Re: task isolation discussion at Linux Plumbers

2016-11-11 Thread Luiz Capitulino
On Mon, 7 Nov 2016 17:55:47 +0100 (CET) Thomas Gleixner wrote: > On Sat, 5 Nov 2016, Chris Metcalf wrote: > > == Remote statistics == > > > > We discussed the possibility of remote statistics gathering, i.e. load > > average etc. The idea would be that we could have housekeeping > > core(s) per

[PATCH] [STYLE]staging:speakup:speakup_acntpc.c Spaces perferred around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|,+,-' CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_acntpc.c | 42 1 file changed, 21 insertion

Re: [PATCH] PCI: enable extended tags support for PCIe endpoints

2016-11-11 Thread Bjorn Helgaas
On Thu, Nov 10, 2016 at 01:35:41PM -0500, Sinan Kaya wrote: > On 9/24/2016 10:10 PM, Sinan Kaya wrote: > > Each PCIe device can issue up to 32 transactions at a time by default. > > Each transaction is tracked by a tag number on the bus. 32 outstanding > > transactions is not enough for some perfor

[PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread Christian Lamparter
This patch adds support for the "amcc,usb-otg" device which is found in the PowerPC Canyonlands' dts. The device definition was added by: commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands board")' but without any driver support as the dwc2 driver wasn't available at that time

[PATCH 2/2] usb: dwc2: fixes host_dma logic

2016-11-11 Thread Christian Lamparter
This patch moves the the host_dma initialization before dwc2_set_param_dma_desc_enable and dwc2_set_param_dma_desc_fs_enable. The reason being that both function need it. Fixes: 1205489cee75bf39 ("usb: dwc2: Get host DMA device properties") Cc: John Youn Cc: Felipe Balbi Signed-off-by: Christia

[PATCH] [STYLE 2/2]staging:speakup:speakup_acntsa.c Spaces preferred around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to CHECK: spaces preferred around that '|' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_acntsa.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/speakup/speaku

[PATCH 2/2] f2fs: allow dio read for LFS mode

2016-11-11 Thread Jaegeuk Kim
We can allow dio reads for LFS mode, while doing buffered writes for dio writes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index ca53da5..996b9ae 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data

[PATCH 1/2] f2fs: revert segment allocation for direct IO

2016-11-11 Thread Jaegeuk Kim
Now we don't need to be too much careful about storage alignment for dio, since its speed becomes quite fast and we'd better avoid any misalignment first. Revert: 38aa0889b250 (f2fs: align direct_io'ed data to section) Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c| 6 +- fs/f2fs/f2fs.h

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Alan Stern
On Fri, 11 Nov 2016, Brian Norris wrote: > > The wakeup interrupt controller knows something happened earlier, > > so maybe it could report that time if queried somehow? > > Sort of. We have /sys/power/pm_wakeup_irq already. But it's really less > useful to get IRQ-level stats for this, than to g

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Keno Fischer
Did you have CONFIG_INET set? I'm attaching my full .config. This is on vanilla Ubuntu 16.10. I did see the same error when building with `CONFIG_STATIC_LINK=y`. Note that I also, separately, ran into a linker problem, though I believe it is unrelated to this patch (though perhaps is related to the

Re: [PATCH v11 7/7] KVM: x86: virtualize cpuid faulting

2016-11-11 Thread Nadav Amit
> On Nov 10, 2016, at 3:40 PM, Kyle Huey wrote: > > Hardware support for faulting on the cpuid instruction is not required to > emulate it, because cpuid triggers a VM exit anyways. KVM handles the relevant > MSRs (MSR_PLATFORM_INFO and MSR_MISC_FEATURES_ENABLE) and upon a > cpuid-induced VM exi

Re: [PATCH 1/2] watchdog: bcm7038_wdt: fix module autoload

2016-11-11 Thread Javier Martinez Canillas
Hello Guenter, On 11/11/2016 04:47 PM, Guenter Roeck wrote: > Hi Javier, > > On Fri, Nov 11, 2016 at 04:43:37PM -0300, Javier Martinez Canillas wrote: >> Hello Guenter, >> >> On 10/14/2016 01:55 PM, Guenter Roeck wrote: >>> On Fri, Oct 14, 2016 at 12:23:50PM -0300, Javier Martinez Canillas wrote:

[PATCH] [STYLE 1/3]staging:speakup:speakup_apollo.c Block align on *

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: WARNING: Block comments should align the * on each line Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_apollo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/speakup_apollo

Re: [ppdev] sysfs warning on qemu boot

2016-11-11 Thread Sudip Mukherjee
Hi Joe, On Wednesday 09 November 2016 06:41 PM, Joe Lawrence wrote: On 11/09/2016 12:04 PM, Sudip Mukherjee wrote: Hi Joe, On 09/11/16 16:00, Joe Lawrence wrote: Hi Sudip, I hit a sysfs_warn_dup inside QEMU running 4.9.0-rc4 (I suspect earlier versions as well, but this is the first upstream

Re: [PATCH 1/2 v3] pci-hyperv: properly handle pci bus remove

2016-11-11 Thread Bjorn Helgaas
On Mon, Oct 03, 2016 at 11:42:47PM -0700, Long Li wrote: > From: Long Li > > hv_pci_devices_present is called in hv_pci_remove when we remove a PCI device > from host (e.g. by disabling SRIOV on a device). In hv_pci_remove, the bus is > already removed before the call, so we don't need to resca

[PATCH] [STYLE 2/3]staging:speakup:speakup_apollo.c Spaces perferred around

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: spaces preferred around that '|' Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_apollo.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/speakup/sp

Re: [PATCH 3/4] PCI: dra7xx: Add support to force RC to work in GEN1 mode

2016-11-11 Thread Bjorn Helgaas
Hi Kishon, On Tue, Oct 11, 2016 at 06:28:34PM +0530, Kishon Vijay Abraham I wrote: > PCIe in AM57x/DRA7x devices is by default > configured to work in GEN2 mode. However there > may be situations when working in GEN1 mode is > desired. One example is limitation i925 (PCIe GEN2 > mode not supporte

[PATCH] [STYLE 3/3]staging:speakup:speakup_apollo.c Align match parenthesis

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to: CHECK: Alignment should match open parenthesis Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_apollo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/speakup_apollo.c b/dr

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread John Youn
On 11/11/2016 12:59 PM, Christian Lamparter wrote: > This patch adds support for the "amcc,usb-otg" device > which is found in the PowerPC Canyonlands' dts. > > The device definition was added by: > commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands > board")' > but without a

Re: [PATCH v2 3/3] firmware: qcom: scm: Return PTR_ERR when devm_clk_get fails

2016-11-11 Thread Sarangdhar Joshi
On 11/09/2016 05:49 PM, Stephen Boyd wrote: On 11/03, Sarangdhar Joshi wrote: When devm_clk_get fails for core clock, the failure was ignored and the core_clk was explicitly set to NULL so that other remaining clocks can be queried. However, now that we have a cleaner way of expressing the clock

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Rafael J. Wysocki
On Fri, Nov 11, 2016 at 5:31 PM, Tony Lindgren wrote: > * Rafael J. Wysocki [161110 16:06]: >> On Thu, Nov 10, 2016 at 7:49 PM, Brian Norris >> wrote: >> > On Thu, Nov 10, 2016 at 10:13:55AM -0800, Dmitry Torokhov wrote: >> >> On Thu, Nov 10, 2016 at 10:07 AM, Brian Norris >> >> wrote: >> >>

[PATCH v4 1/8] ARC: timer: gfrc, rtc: deuglify big endian code

2016-11-11 Thread Vineet Gupta
A standard "C" shift will be handled appropriately by the compiler depending on the endian for the build. So we don't need the explicit distinction in code Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-)

[PATCH v4 0/8] Move ARC timer code into drivers/clocksource/

2016-11-11 Thread Vineet Gupta
Hi, This series addresses the long pending move of ARC timer code into drivers/clocksource/. Thx, -Vineet v3 -> v4 - dropped 2 patches. "rtc: implement read loop in "C" vs. inline asm" was a bug fix which is merged in upstream already "gfrc: boot print alongside other timers" squashed in

[PATCH v4 4/8] ARC: timer: Build gfrc, rtc under same option (64-bit timers)

2016-11-11 Thread Vineet Gupta
The original distinction was done as they were developed at different times and primarily because they are specific to UP (RTC) and SMP (GFRC). But given that driver handles that at runtime, (i.e. not allowing RTC as clocksource in SMP), we can simplify things a bit. Signed-off-by: Vineet Gupta

[PATCH v4 6/8] ARC: move mcip.h into include/soc and adjust the includes

2016-11-11 Thread Vineet Gupta
Also remove the dependency on ARCv2, to increase compile coverage for !ARCV2 builds Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/mcip.c | 2 +- arch/arc/kernel/time.c | 2 +- arch/arc/plat-axs10x/axs10x.c

[PATCH v4 8/8] clocksource: import ARC timer driver

2016-11-11 Thread Vineet Gupta
This adds support for - CONFIG_ARC_TIMERS : legacy 32-bit TIMER0 and TIMER1 which count UP from @CNT to @LIMIT, before optionally triggering an interrupt. These are programmed using ARC auxiliary register interface. These are present in all ARC cores (ARC700 and ARC HS38) TIMER0 serve

[PATCH v4 5/8] ARC: breakout aux handling into a separate header

2016-11-11 Thread Vineet Gupta
ARC timers use aux registers for programming and this paves way for moving ARC timer drivers into drivers/clocksource Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 85 +- arch/arc/include/asm/mcip.h| 2 +- include/soc/arc/aux.h

[PATCH v4 3/8] ARC: time: move time_init() out of the driver

2016-11-11 Thread Vineet Gupta
to allow future git mv of the driver into drivers/clocksource Acked-by: Daniel Lezcano Signed-off-by: Vineet Gupta --- arch/arc/kernel/setup.c | 11 +++ arch/arc/kernel/time.c | 9 - 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/arch/arc/kernel/setup.c b/arch

[PATCH v4 7/8] ARC: breakout timer include code into separate header ...

2016-11-11 Thread Vineet Gupta
... which allows for use in drivers/clocksource later Signed-off-by: Vineet Gupta --- arch/arc/include/asm/arcregs.h | 9 + arch/arc/kernel/time.c | 18 +++--- include/soc/arc/timers.h | 38 ++ 3 files changed, 42 insertions(

[PATCH v4 2/8] ARC: timer: gfrc, rtc: Read BCR to detect whether hardware exists ...

2016-11-11 Thread Vineet Gupta
... don't rely on cpuinfo populated in arc boot code. This paves way for moving this code in drivers/clocksource/ And while at it, convert the WARN() to pr_warn() as sugested by Daniel Signed-off-by: Vineet Gupta --- arch/arc/kernel/time.c | 18 +- 1 file changed, 13 insertions(

Re: [PATCH] PM / wakeirq: report wakeup events in dedicated wake-IRQs

2016-11-11 Thread Rafael J. Wysocki
On Fri, Nov 11, 2016 at 8:40 PM, Brian Norris wrote: > On Fri, Nov 11, 2016 at 08:47:54AM -0800, Tony Lindgren wrote: >> But sounds like the threaded IRQ is not your concern and you mostly > > Right, threaded is OK for this; it's not performance critical. It just > highlighted the fact that its co

[PATCH] mmc: wbsd: implement check for dma mapping error

2016-11-11 Thread Alexey Khoroshilov
wbsd_request_dma() does not check for dma mapping errors. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/mmc/host/wbsd.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/wbsd.c b/driver

Re: [PATCHv4] shmem: avoid huge pages for small files

2016-11-11 Thread Hugh Dickins
On Thu, 10 Nov 2016, Kirill A. Shutemov wrote: > On Mon, Nov 07, 2016 at 03:17:11PM -0800, Hugh Dickins wrote: > > > Treating the first extent differently is a hack, and does not respect > > that this is a filesystem, on which size is likely to increase. > > > > By all means refine the condition

[PATCH] clk: cdce925: Fix limit check

2016-11-11 Thread Christophe JAILLET
It is likely that instead of '1>64', 'q>64' was expected. Moreover, according to datasheet, http://www.ti.com/lit/ds/symlink/cdce925.pdf SCAS847I - JULY 2007 - REVISED OCTOBER 2016 PLL settings limits are: 16 <= q <= 63 So change the upper limit check from 64 to 63. Signed-off-by: Christoph

Re: [PATCH v7] soc: qcom: add l2 cache perf events driver

2016-11-11 Thread Leeder, Neil
Hi Will, On 11/9/2016 1:16 PM, Will Deacon wrote: On Wed, Nov 09, 2016 at 05:54:13PM +, Mark Rutland wrote: On Fri, Oct 28, 2016 at 04:50:13PM -0400, Neil Leeder wrote: + struct perf_event *events[MAX_L2_CTRS]; + struct l2cache_pmu *l2cache_pmu; + DECLARE_BITMAP(used_coun

Re: [PATCH 1/3] cpufreq: schedutil: enable fast switch earlier

2016-11-11 Thread Rafael J. Wysocki
On Fri, Nov 11, 2016 at 3:19 PM, Peter Zijlstra wrote: > On Fri, Nov 11, 2016 at 03:52:21PM +0530, Viresh Kumar wrote: >> @@ -456,8 +460,6 @@ static int sugov_init(struct cpufreq_policy *policy) >> >> out: >> mutex_unlock(&global_tunables_lock); >> - >> - cpufreq_enable_fast_switch(pol

Re: [PATCH 1/3] cpufreq: schedutil: enable fast switch earlier

2016-11-11 Thread Rafael J. Wysocki
On Fri, Nov 11, 2016 at 11:22 AM, Viresh Kumar wrote: > The fast_switch_enabled flag will be used a bit earlier while converting > the schedutil governor to use kthread worker. > > Prepare for that by moving the call to enable it to the beginning of > sugov_init(). Fair enough -> > Signed-off-by

Re: [PATCH v2 2/3] firmware: qcom: scm: Remove core, iface and bus clocks dependency

2016-11-11 Thread Sarangdhar Joshi
On 11/09/2016 05:47 PM, Stephen Boyd wrote: On 11/03, Sarangdhar Joshi wrote: diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index d79fecd..844e90d 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -380,32 +384,40 @@ EXPORT_SYMBOL(qcom_scm_is_a

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread Christian Lamparter
Hello, On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: > On 11/11/2016 12:59 PM, Christian Lamparter wrote: > > This patch adds support for the "amcc,usb-otg" device > > which is found in the PowerPC Canyonlands' dts. > > > > The device definition was added by: > > commit c89b3458d8c

Re: PM regression with LED changes in next-20161109

2016-11-11 Thread Pavel Machek
Hi! > >Hmm. So userland can read the LED state, and it can get _some_ value > >back, but it can not know if it is current state or not. > > > >I don't think that's a good interface. I see it is from 2008... is > >someone using it? Maybe it is too late for revert. > > I can imagine it being used i

[PATCH] [STYLE 1/2]staging:speakup:speakup_acntsa.c Modify block comments

2016-11-11 Thread Walt Feasel
Made suggested modifications from checkpatch in reference to WARNING: Block comments should align the * on each line Signed-off-by: Walt Feasel --- drivers/staging/speakup/speakup_acntsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/speakup_acntsa.

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Richard Weinberger
On 11.11.2016 22:03, Keno Fischer wrote: > Did you have CONFIG_INET set? I'm attaching my full .config. This is > on vanilla Ubuntu 16.10. Yes, CONFIG_INET is set. Let my try on Ubuntu. ;-\ > I did see the same error when building with `CONFIG_STATIC_LINK=y`. > Note that I also, separately, ran i

Re: [PATCH v2 2/3] firmware: qcom: scm: Remove core, iface and bus clocks dependency

2016-11-11 Thread Sarangdhar Joshi
On 11/09/2016 09:55 PM, Bjorn Andersson wrote: On Wed 09 Nov 17:47 PST 2016, Stephen Boyd wrote: On 11/03, Sarangdhar Joshi wrote: diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index d79fecd..844e90d 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_

Re: PM regression with LED changes in next-20161109

2016-11-11 Thread Pavel Machek
Hi! Reason #1: > >>Hmm. So userland can read the LED state, and it can get _some_ value > >>back, but it can not know if it is current state or not. > Why a dedicated file? Are we going to mirror brightness here > wrt r/w (show/store) behavior ? If not userspace now needs > 2 open fds which is n

Re: [ppdev] sysfs warning on qemu boot

2016-11-11 Thread Joe Lawrence
On 11/11/2016 04:14 PM, Sudip Mukherjee wrote: > Hi Joe, > > On Wednesday 09 November 2016 06:41 PM, Joe Lawrence wrote: >> On 11/09/2016 12:04 PM, Sudip Mukherjee wrote: >>> Hi Joe, >>> >>> On 09/11/16 16:00, Joe Lawrence wrote: Hi Sudip, I hit a sysfs_warn_dup inside QEMU running

Re: [PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Rafael J. Wysocki
On Fri, Nov 11, 2016 at 11:22 AM, Viresh Kumar wrote: > If slow path frequency changes are conducted in a SCHED_OTHER context > then they may be delayed for some amount of time, including > indefinitely, when real time or deadline activity is taking place. > > Move the slow path to a real time ker

Re: [PATCH 1/1] dt-binding: remoteproc: Fixup ADSP loader bindings

2016-11-11 Thread Sarangdhar Joshi
On 11/09/2016 04:52 PM, Rob Herring wrote: On Wed, Nov 02, 2016 at 02:38:09PM -0700, Sarangdhar Joshi wrote: Fixup "dt-binding: remoteproc: Introduce ADSP loader binding" patch to include XO clock required for booting up Qualcomm ADSP Processor. I don't think this is accepted yet, so please sq

Re: Source address fib invalidation on IPv6

2016-11-11 Thread David Ahern
On 11/11/16 12:29 PM, Jason A. Donenfeld wrote: > Hi folks, > > If I'm replying to a UDP packet, I generally want to use a source > address that's the same as the destination address of the packet to > which I'm replying. For example: > > Peer A sends packet: src = 10.0.0.1, dst = 10.0.0.3 > Pee

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-11 Thread John Youn
On 11/11/2016 2:05 PM, Christian Lamparter wrote: > Hello, > > On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: >> On 11/11/2016 12:59 PM, Christian Lamparter wrote: >>> This patch adds support for the "amcc,usb-otg" device >>> which is found in the PowerPC Canyonlands' dts. >>> >>> Th

[PATCH] zswap: only use CPU notifier when HOTPLUG_CPU=y

2016-11-11 Thread Yu Zhao
__unregister_cpu_notifier() only removes registered notifier from its linked list when CPU hotplug is configured. If we free registered CPU notifier when HOTPLUG_CPU=n, we corrupt the linked list. To fix the problem, we can either use a static CPU notifier that walks through each pool or just simp

[PATCH v3 3/8] pstore: Allow prz to control need for locking

2016-11-11 Thread Kees Cook
From: Joel Fernandes In preparation of not locking at all for certain buffers depending on if there's contention, make locking optional depending on the initialization of the prz. Signed-off-by: Joel Fernandes [kees: moved locking flag into prz instead of via caller arguments] Signed-off-by: Ke

[PATCH v3 1/8] pstore: Make spinlock per zone instead of global

2016-11-11 Thread Kees Cook
From: Joel Fernandes Currently pstore has a global spinlock for all zones. Since the zones are independent and modify different areas of memory, there's no need to have a global lock, so we should use a per-zone lock as introduced here. Also, when ramoops's ftrace use-case has a FTRACE_PER_CPU fl

[PATCH v3 6/8] pstore: Add ftrace timestamp counter

2016-11-11 Thread Kees Cook
From: Joel Fernandes In preparation for merging the per CPU buffers into one buffer when we retrieve the pstore ftrace data, we store the timestamp as a counter in the ftrace pstore record. We store the CPU number as well if !PSTORE_CPU_IN_IP, in this case we shift the counter and may lose order

Re: [PATCH v3 0/8] pstore: ramoops: support multiple pmsg instances

2016-11-11 Thread Kees Cook
On Tue, Oct 18, 2016 at 12:13 AM, Nobuhiro Iwamatsu wrote: > The following series implements multiple pmsg. This feature allows > userspace program to control individual content aging or priority. > > If a pstore backend module(e.g. ramoops) requires the multiple pmsg > instances when registering

[PATCH v3 2/8] pstore: Warn on PSTORE_TYPE_PMSG using deprecated function

2016-11-11 Thread Kees Cook
From: Joel Fernandes PMSG now uses ramoops_pstore_write_buf_user() instead of ...write_buf(). Print a ratelimited warning if gets accidentally called. Signed-off-by: Joel Fernandes [kees: adjusted commit log and added -EINVAL return] Signed-off-by: Kees Cook --- fs/pstore/ram.c | 6 ++ 1

[PATCH v3 4/8] pstore: Make ramoops_init_przs generic for other prz arrays

2016-11-11 Thread Kees Cook
Currently ramoops_init_przs() is hard wired only for panic dump zone array. In preparation for the ftrace zone array (one zone per-cpu) and pmsg zone array, make the function more generic to be able to handle this case. Heavily based on similar work from Joel Fernandes. Signed-off-by: Kees Cook

[PATCH v3 0/8] pstore: Improve performance of ftrace backend with ramoops

2016-11-11 Thread Kees Cook
Hi Joel, I've reorganized a bunch of the logic here. Since pstore is going to need the init_przs() logic for multiple pmsg przs, I wanted to get this in and make sure I was happy with how it looks. I figured this would reduce our round-trip time on reviews. :) Can you test this series and verify

[PATCH v3 7/8] pstore: Merge per-CPU ftrace records into one

2016-11-11 Thread Kees Cook
From: Joel Fernandes Up until this patch, each of the per CPU ftrace buffers appear as a separate ftrace-ramoops-N file. In this patch we merge all the zones into one and populate a single ftrace-ramoops-0 file. Signed-off-by: Joel Fernandes [kees: clarified variables names, added -ENOMEM handl

[PATCH v3 8/8] pstore: improve error report for failed setup

2016-11-11 Thread Kees Cook
When setting ramoops record sizes, sometimes it's not clear which parameters contributed to the allocation failure. This adds a per-zone name and expands the failure reports. Signed-off-by: Kees Cook --- fs/pstore/ram.c | 53 ++--- 1 file changed,

[PATCH v3 5/8] ramoops: Split ftrace buffer space into per-CPU zones

2016-11-11 Thread Kees Cook
From: Joel Fernandes If the RAMOOPS_FLAG_FTRACE_PER_CPU flag is passed to ramoops pdata, split the ftrace space into multiple zones depending on the number of CPUs. This speeds up the performance of function tracing by about 280% in my tests as we avoid the locking. The trade off being lesser sp

<    1   2   3   4   5   6   7   >