[PATCH] net, socket, socket_wq: fix missing initialization of flags

2015-12-27 Thread Nicolai Stange
Fixes: ceb5d58b2170 ("net: fix sock_wake_async() rcu protection") Commit ceb5d58b2170 ("net: fix sock_wake_async() rcu protection") from the current 4.4 release cycle introduces a new flags member in struct socket_wq and moved SOCKWQ_ASYNC_NOSPACE and SOCKWQ_ASYNC_WAITDATA from struct socket's fla

Re: [PATCH 2/2] sp5100_tco: Add AMD Carrizo platform support

2015-12-27 Thread Wim Van Sebroeck
Hi Rui, > sp5100_tco watchdog is also supported on AMD KernCZ chipset of Carrizo > platform. > > Signed-off-by: Huang Rui > Cc: Denis Turischev > --- > drivers/watchdog/sp5100_tco.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/watchdog/sp5100_tco.c b/drivers/watchdog/sp5

Re: [PATCH 1/2] sp5100_tco: fix the device check for SB800 and later chipsets

2015-12-27 Thread Wim Van Sebroeck
Hi Rui, > For SB800 and later chipsets, the register definitions are the same > with SB800. And for SB700 and older chipsets, the definitions should > be same with SP5100/SB7x0. > > Signed-off-by: Huang Rui > Cc: Denis Turischev > --- > > Hi Guenter, > > These two patches should be on top of

Re: [PATCH v3] sp5100_tco: Add AMD Mullins platform support

2015-12-27 Thread Wim Van Sebroeck
Hi Denis, > AMD Mullins watchdog is fully compatible to the previous Hudson chipset, > reuse the existent sp5100_tco driver. > > v2: rebased to v4.4-rc2 > v3: fixed trailing whitespace > > Signed-off-by: Denis Turischev > > diff -Nru linux-4.4-rc2.orig/drivers/watchdog/sp5100_tco.c > linux-4.

Re: [PATCH] README: remove LILO

2015-12-27 Thread Diego Viola
Hi Jonathan, On Sun, Dec 27, 2015 at 9:09 AM, Jonathan Corbet wrote: > On Sun, 20 Dec 2015 02:57:16 -0200 > Diego Viola wrote: > >> Remove LILO from the README in order to keep the booting section >> agnostic. LILO development has also officially stopped. > > I know I mentioned LILO before, but

[PATCH v3] surface pro 4: Add support for Surface Pro 4 Buttons

2015-12-27 Thread Weng Xuetian
Surface Pro 4 buttons are managed by a device with _HID "MSHW0040" different from Surface Pro 3. This commit adds MSHW0040 to id list to support the Surface Pro 4, and renames the driver to surfacepro_button accordingly. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=109871 Signed-off-by:

RE: [PATCH v2] surface pro 4: Add support for Surface Pro 4 Buttons

2015-12-27 Thread Chen, Yu C
Hi, > -Original Message- > From: Weng Xuetian [mailto:wen...@gmail.com] > Sent: Monday, December 28, 2015 1:30 AM > To: Chen, Yu C > Cc: Darren Hart; linux-kernel@vger.kernel.org; platform-driver- > x...@vger.kernel.org; Weng Xuetian > Subject: [PATCH v2] surface pro 4: Add support for Sur

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Dan Williams
On Sun, Dec 27, 2015 at 5:33 AM, Borislav Petkov wrote: > On Sun, Dec 27, 2015 at 05:25:45AM -0800, Andy Lutomirski wrote: >> That could significantly bloat the kernel image. > > Yeah, we probably should build an allyesconfig and see how big > __ex_table is and compute how much actually that bloat

[PATCH] cpuset: fix cpus_allowed mask for offline/online CPUs

2015-12-27 Thread Chen Yu
Commit be4c9dd7aee5 ("cpuset: enable onlined cpu/node in effective masks") leverages cpuset's cpus_allowed and its parent's effective_cpus to calculate the new_cpus: cpumask_and(&new_cpus, cs->cpus_allowed, parent_cs(cs)->effective_cpus); since cpus_allowed will also be updated after the CPU's offl

[GIT PULL] ARM: SoC fixes for v4.4

2015-12-27 Thread Olof Johansson
Hi Linus, A smallish set of fixes that we've been sitting on for a while now, flushing the queue here so they go in. Thanks! -Olof The following changes since commit 7f4c977849d494a1ff173fbc226b69192ec02c90: Merge tag 'imx-fixes-4.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sha

Re: [PATCH v8 2/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-27 Thread Maxime Ripard
Hi, On Mon, Dec 21, 2015 at 12:34:16PM +0100, Danny Milosavljevic wrote: > This is the second part, actually adding FM, Line and Mic inputs. Again, having a meaningful and standalone commit log would be nice. > Signed-off-by: Danny Milosavljevic > --- > b/sound/soc/sunxi/sun4i-codec.c | 185

Re: [PATCH trivial] lib+mm: fix few spelling mistakes

2015-12-27 Thread Randy Dunlap
On 12/27/15 05:58, Jiri Slaby wrote: > From: Bogdan Sikora > > All are in comments. > > Signed-off-by: Bogdan Sikora > Cc: > Cc: Rafael Aquini > Cc: Kent Overstreet > Cc: Jan Kara > Signed-off-by: Jiri Slaby > --- > lib/flex_proportions.c | 2 +- > lib/percpu-refcount.c | 2 +- > mm/ba

Re: [PATCH] drivers:pci Fix all whitespace issues

2015-12-27 Thread sasa bogicevic
Hi Joe, No this is not done with checkpatch.pl I just used it to verify that my changes are correct. I was wondering why that “type” pointer threw errors since it looks fine to me the way it was declared. This “type*” is just present in few of the files I can just redo those changes and send the

Re: [PATCH 2/3] Input: cyttsp - add device tree support

2015-12-27 Thread kbuild test robot
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system] Hi Oreste, [auto build test WARNING on input/next] [also build test WARNING on v4.4-rc6 next-20151223] url: https://github.com/0day-ci/linux/commits/Oreste-Salerno/Add-device-tree-support-to-

[PATCH] Input: fix err_cast.cocci warnings

2015-12-27 Thread kbuild test robot
drivers/input/touchscreen/cyttsp_core.c:637:9-16: WARNING: ERR_CAST can be used with pdata Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)) Generated by: scripts/coccinelle/api/err_cast.cocci CC: Oreste Salerno Signed-off-by: Fengguang Wu --- cyttsp_core.c |2 +- 1 file

Re: [linux-sunxi] [PATCH v8 1/2] ASoc: sun4i-codec: Add FM, Line and Mic inputs

2015-12-27 Thread Maxime Ripard
Hi, On Mon, Dec 21, 2015 at 12:33:03PM +0100, Danny Milosavljevic wrote: > This is the first part: > >sun4i-codec: make it possible to use different codec_widgets for A10 and > A20. Please make a meaningful commit log and title explaining what and why you're doing it. > > Signed-off-by: D

[PATCH] [media] si2165: Refactoring for si2165_writereg_mask8()

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 18:23:57 +0100 This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the si2165_readreg8() function failed. 2. Reduce the scope for the local variables "ret" and "tmp" to one branch of an if statement.

[PATCH v2] surface pro 4: Add support for Surface Pro 4 Buttons

2015-12-27 Thread Weng Xuetian
Surface Pro 4 button is managed by a device with _HID "MSHW0040" different from Surface Pro 3. This commit adds MSHW0040 to id list to Support Surface Pro 4, and rename the driver to surfacepro_button accordingly. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=109871 Signed-off-by: Weng Xu

Re: KVM: memory ballooning bug?

2015-12-27 Thread Konstantin Khlebnikov
On Wed, Dec 23, 2015 at 8:22 AM, Minchan Kim wrote: > During my compaction-related stuff, I encountered some problems with > ballooning. > > Firstly, with repeated inflating and deflating cycle, guest memory(ie, > cat /proc/meminfo | grep MemTotal) decreased and couldn't recover. > > When I review

Re: [PATCH] drivers:pci Fix all whitespace issues

2015-12-27 Thread Joe Perches
On Sun, 2015-12-27 at 08:40 -0800, Bogicevic Sasa wrote: > This patch fixes all whitespace issues( missing or needed whitespace) in > all files in drivers/pci folder. Code is compiled with allyesconfig > before and after code changes and objects are recorded and checked with > objdiff and they are

Re: [PATCH trivial] lib+mm: fix few spelling mistakes

2015-12-27 Thread Rafael Aquini
On Sun, Dec 27, 2015 at 02:58:23PM +0100, Jiri Slaby wrote: > From: Bogdan Sikora > > All are in comments. > > Signed-off-by: Bogdan Sikora > Cc: > Cc: Rafael Aquini > Cc: Kent Overstreet > Cc: Jan Kara > Signed-off-by: Jiri Slaby > --- > lib/flex_proportions.c | 2 +- > lib/percpu-refco

Re: [PATCH v3 00/23] Unrestricted media entity ID range support

2015-12-27 Thread Laurent Pinchart
Hi Mauro, On Wednesday 23 December 2015 10:32:42 Mauro Carvalho Chehab wrote: > Em Wed, 16 Dec 2015 16:03:01 +0200 Sakari Ailus escreveu: > > On Wed, Dec 16, 2015 at 03:32:15PM +0200, Sakari Ailus wrote: > > > This is the third version of the unrestricted media entity ID range > > > support set. I

Re: [PATCH 06/10] net: hns: use to_platform_device()

2015-12-27 Thread Geliang Tang
On Sun, Dec 27, 2015 at 03:23:30PM +0200, Andy Shevchenko wrote: > On Sun, Dec 27, 2015 at 3:15 PM, Geliang Tang wrote: > > Use to_platform_device() instead of open-coding it. > > > > Signed-off-by: Geliang Tang > > --- > > drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 3 +-- > > 1 file ch

[PATCH 2/2] staging: wilc1000: wilc_parse_network_info refactoring

2015-12-27 Thread Ivan Safonov
1) Return value of this function does not used; 2) wilc_parse_network_info has no reasons to return an error; 3) kfree does not free memory if argument is NULL. Signed-off-by: Ivan Safonov --- drivers/staging/wilc1000/coreconfigurator.c | 27 +-- drivers/staging/wilc1000/

[PATCH 1/2] staging: wilc1000: min_t macro instead of ternary condition operator used

2015-12-27 Thread Ivan Safonov
min_t macro bit shorter then ?: operator. Signed-off-by: Ivan Safonov --- drivers/staging/wilc1000/host_interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index 8c77520..5a770b

[PATCH trivial] lib+mm: fix few spelling mistakes

2015-12-27 Thread robert pogson
> - * (More precisely: because moduler arithmatic is commutative the sum of all > the > + * (More precisely: because moduler arithmetic is commutative the sum of all > the --- There's one more spelling mistake in there. "moduler" should be "modular". -- To unsubscribe from this list: send t

Re: [PATCH 8/9] vme: vme_ca91cx42.c: use to_pci_dev()

2015-12-27 Thread Martyn Welch
On 27/12/15 10:46, Geliang Tang wrote: Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang Acked-by: Martyn Welch --- drivers/vme/bridges/vme_ca91cx42.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/vme/bridges/vme_ca91cx42.c

Re: [PATCH] Fix ld-version.sh to handle large 3rd version part

2015-12-27 Thread Guenter Roeck
On Sat, Dec 26, 2015 at 10:47:52PM +, James Hogan wrote: > The ld-version.sh script doesn't handle versions with large (>= 10) 3rd > version components, because the 2nd component is only multiplied by 10 > times that of the 3rd component. > > For example the following version string: > GNU ld

[PATCH 3/3] Input: cyttsp - add default init function

2015-12-27 Thread Oreste Salerno
When using device trees, it's not possible to assign an init() function in the platform data. In case the init function has not been assigned, attempt to perform a hard reset of the chip, using reset gpio defined in the platform data / device tree. Signed-off-by: Oreste Salerno --- drivers/input

[PATCH 2/3] Input: cyttsp - add device tree support

2015-12-27 Thread Oreste Salerno
Add support for retrieving the platform data from the device tree. Signed-off-by: Oreste Salerno --- .../bindings/input/touchscreen/cyttsp.txt | 73 ++ drivers/input/touchscreen/cyttsp_core.c| 108 +++-- include/linux/input/cyttsp.h

[PATCH 0/3] Add device tree support to the cyttsp driver

2015-12-27 Thread Oreste Salerno
This set of patches adds support to the cyttsp touchscreen driver to retrieve platform data details from the device tree. Additionally, they define a default init function that performs a hard reset of the chip on boot. Oreste Salerno (3): Input: cyttsp - remove unused irq_gpio from platform_dat

[PATCH 1/3] Input: cyttsp - remove unused irq_gpio from platform_data

2015-12-27 Thread Oreste Salerno
This field is not being used and the irq is anyway passed via the 'irq' parameter to cyttsp_probe. Signed-off-by: Oreste Salerno --- include/linux/input/cyttsp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/input/cyttsp.h b/include/linux/input/cyttsp.h index 5af7c66..d7c2520

Re: [Cocci] [PATCH v2] coccinelle: api: check for propagation of error from platform_get_irq

2015-12-27 Thread SF Markus Elfring
>> https://cwe.mitre.org/data/definitions/252.html > > The value is not unchecked. Would you like to express any stronger relationship between the function call example and the occurrence of an if statement by the discussed SmPL script? > I made a specific rule because the specific problem is q

Re: [PATCH 09/10] watchdog: cadence_wdt: use to_platform_device()

2015-12-27 Thread Guenter Roeck
On Sun, Dec 27, 2015 at 09:15:47PM +0800, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang Reviewed-by: Guenter Roeck > --- > drivers/watchdog/cadence_wdt.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a

Re: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function implementations

2015-12-27 Thread Sagi Grimberg
Along with Leon's prefix comment: Acked-by: Sagi Grimberg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: [PATCH] DT: i2c: Add Epson RX8010 to list of trivial devices

2015-12-27 Thread Andy Shevchenko
On Wed, Dec 23, 2015 at 8:38 PM, Akshay Bhat wrote: > This adds devicetree documentation for the bindings of rtc-rx8010 > driver. > > Signed-off-by: Akshay Bhat > --- > Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentatio

Re: [PATCH] DT: i2c: Update vendor prefix for 24c00

2015-12-27 Thread Andy Shevchenko
On Wed, Dec 23, 2015 at 9:18 PM, Akshay Bhat wrote: > "at" is not a valid vendor prefix, correcting the same to "atmel" > I'm afraid you can't just do this change alone as it's used in some DTS. Though you may deprecated it along with update of current users. > Signed-off-by: Akshay Bhat > ---

Re: [PATCH v5 04/20] clocksource: Add NPS400 timers driver

2015-12-27 Thread kbuild test robot
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system] Hi Noam, [auto build test ERROR on arc/for-next] [also build test ERROR on v4.4-rc6 next-20151223] url: https://github.com/0day-ci/linux/commits/Noam-Camus/Adding-plat-eznps-to-ARC/20151227

Re: [PATCH 4/4] x86/efi: print size and base in binary units in efi_print_memmap

2015-12-27 Thread Andy Shevchenko
On Mon, Dec 21, 2015 at 6:16 PM, Matt Fleming wrote: > On Thu, 17 Dec, at 07:28:34PM, Robert Elliott wrote: >> Print the base address for each range in decimal alongside the size. >> Use a "(size @ base)" format similar to the fake_memmap kernel parameter. >> >> Print the range and base in the bes

[PATCH 7/9 v2] serial: 8250_pci: use to_pci_dev()

2015-12-27 Thread Geliang Tang
Use to_pci_dev() instead of open-coding it. Signed-off-by: Geliang Tang Reviewed-by: Andy Shevchenko --- Changes in v2: - Made it first line in this block. --- drivers/tty/serial/8250/8250_pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_

[PATCH] drivers: block: drbd: remove unused macros

2015-12-27 Thread Ivan Safonov
div_ceil and div_floor macros duplicates round_up and round_down from kernel.h Signed-off-by: Ivan Safonov --- drivers/block/drbd/drbd_int.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index e66d453..08256ad 100644 --- a/d

[PATCH v5 07/20] ARC: rwlock: disable interrupts in !LLSC variant

2015-12-27 Thread Noam Camus
From: Noam Camus If we hold rwlock and interrupt occures we may end up spinning on it for ever during softirq. Note that this lock is an internal lock and since the lock is free to be used from any context, the lock needs to be IRQ-safe. Below you may see an example for interrupt we get while nl

[PATCH trivial] lib+mm: fix few spelling mistakes

2015-12-27 Thread Jiri Slaby
From: Bogdan Sikora All are in comments. Signed-off-by: Bogdan Sikora Cc: Cc: Rafael Aquini Cc: Kent Overstreet Cc: Jan Kara Signed-off-by: Jiri Slaby --- lib/flex_proportions.c | 2 +- lib/percpu-refcount.c | 2 +- mm/balloon_compaction.c | 4 ++-- 3 files changed, 4 insertions(+), 4

[PATCH v5 20/20] ARC: Add eznps platform to Kconfig and Makefile

2015-12-27 Thread Noam Camus
From: Noam Camus This commit should be left last since only now eznps platform is in state which one can actually use. Signed-off-by: Noam Camus --- arch/arc/Kconfig |1 + arch/arc/Makefile |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arc/Kconfig b/arch

[PATCH v5 14/20] ARC: [plat-eznps] Use dedicated user stack top

2015-12-27 Thread Noam Camus
From: Noam Camus NPS use special mapping right below TASK_SIZE. Hence we need to lower STACK_TOP so that user stack won't overlap NPS special mapping. Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/processor.h | 17 + arch/arc/mm/tlb.c

[PATCH v5 16/20] ARC: [plat-eznps] Use dedicated SMP barriers

2015-12-27 Thread Noam Camus
From: Noam Camus NPS device got 256 cores and each got 16 HW threads (SMT). We use EZchip dedicated ISA to trigger HW scheduler of the core that current HW thread belongs to. This scheduling makes sure that data beyond barrier is available to all HW threads in core and by that to all in device (4

[PATCH v5 09/20] ARC: IRQ: use device tree to get timer device configuration

2015-12-27 Thread Noam Camus
From: Noam Camus We've designated: TIMER0 for events (clockevents) TIMER1 for free running (clocksource) Till now timer configuration was done on arch/arc/kernel/time.c with constant values. This commit add device tree support so we can do this work at dedicated clocksource driver which parse t

Re: GPIO-driven RTS on TI hardware with 8250_omap driver

2015-12-27 Thread Ильяс Гасанов
Hi Matwey, 2015-12-27 16:14 GMT+03:00 Matwey V. Kornilov : > The half of what is described here are implemented in my patches. > But I cannot understand the other half. Each of six AM335x UARTs has > RTS/CTS pins which are controlled by pinmux in device tree, no magic > required here. The problem

[PATCH v5 01/20] Documentation: Add EZchip vendor to binding list

2015-12-27 Thread Noam Camus
From: Noam Camus Add EZchip to vendor prefixes list. EZchip introduce the NPS platform for the ARC architecture. Signed-off-by: Noam Camus Acked-by: Rob Herring Cc: Pawel Moll --- Documentation/devicetree/bindings/arc/eznps.txt|7 +++ .../devicetree/bindings/vendor-prefixes.txt

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Andy Lutomirski
On Sun, Dec 27, 2015 at 5:33 AM, Borislav Petkov wrote: > On Sun, Dec 27, 2015 at 05:25:45AM -0800, Andy Lutomirski wrote: >> That could significantly bloat the kernel image. > > Yeah, we probably should build an allyesconfig and see how big > __ex_table is and compute how much actually that bloat

[PATCH v5 00/20] Adding plat-eznps to ARC

2015-12-27 Thread Noam Camus
From: Noam Camus v5: 1) irqchip -- work with handle_domain_irq(), and remove use of irq_set_default_host() 2) clocksource -- initialize clockevents as well by parsing interrupts node of DT 3) Do not use IPI with irq generic infrastructure v4: 1) irqchip -- use irq_domain_add_linear() 2) clocks

[PATCH v2] gpiolib: fix warning about iterator

2015-12-27 Thread Sudip Mukherjee
We were getting build warning about "iterator" being used uninitialized. Use iterator properly to fix the build warning and in the process remove the variable "pos" which is not required now. Signed-off-by: Sudip Mukherjee --- v1: at the end of the loop iterator will point to head and we are try

Re: [PATCH] surface pro 4: Add support for Surface Pro 4 Buttons

2015-12-27 Thread Andy Shevchenko
On Thu, Dec 24, 2015 at 10:28 PM, Weng Xuetian wrote: > Surface Pro 4 button is managed by a device with _HID "MSHW0040" > different from Surface Pro 3. > > This commit adds MSHW0040 to id list to Support Surface Pro 4, and > rename the driver to surfacepro_button accordingly. > No review until y

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Borislav Petkov
On Sun, Dec 27, 2015 at 05:25:45AM -0800, Andy Lutomirski wrote: > That could significantly bloat the kernel image. Yeah, we probably should build an allyesconfig and see how big __ex_table is and compute how much actually that bloat would be, because... > Anyway, the bit 31 game isn't so bad IMO

Re: [PATCH 4/4] asus-wireless: Toggle airplane mode LED

2015-12-27 Thread Andy Shevchenko
On Sat, Dec 26, 2015 at 4:56 PM, João Paulo Rechi Vita wrote: > In the ASHS device we have the HSWC method, which basically calls either > OWGD or OWGS, depending on its parameter: > > Device (ASHS) > { > Name (_HID, "ATK4002") // _HID: Hardware ID >

Re: [PATCH] gpiolib: fix warning about iterator

2015-12-27 Thread Sudip Mukherjee
On Sat, Dec 26, 2015 at 10:31:15PM +0100, Linus Walleij wrote: > On Sat, Dec 26, 2015 at 8:58 AM, Sudip Mukherjee > wrote: > > > We were getting build warning about "iterator" being used uninitialized. > > Use iterator properly to fix the build warning and in the process remove > > the variable "

[PATCH v5 18/20] ARC: [plat-eznps] Use dedicated cpu_relax()

2015-12-27 Thread Noam Camus
From: Tal Zilcer Since the CTOP is SMT hardware multi-threaded, we need to hint the HW that now will be a very good time to do a hardware thread context switching. This is done by issuing the schd.rw instruction (binary coded here so as to not require specific revision of GCC to build the kernel)

[PATCH v5 19/20] ARC: [plat-eznps] Use dedicated COMMAND_LINE_SIZE

2015-12-27 Thread Noam Camus
From: Noam Camus The default 256 bytes sometimes is just not enough. We usually provide earlycon=... and console=... and ip=... All this and more may need more room. Signed-off-by: Noam Camus Acked-by: Vineet Gupta --- arch/arc/include/asm/setup.h |4 1 files changed, 4 insertions(+)

[PATCH v5 17/20] ARC: [plat-eznps] Use dedicated identity auxiliary register.

2015-12-27 Thread Noam Camus
From: Noam Camus With generic "identity" num of CPUs is limited to 256 (8 bit). We use our alternative AUX register GLOBAL_ID (12 bit). Now we can support up to 4096 CPUs. Signed-off-by: Noam Camus --- arch/arc/include/asm/entry-compact.h |8 arch/arc/kernel/ctx_sw.c |

[PATCH v5 15/20] ARC: [plat-eznps] Use dedicated atomic/bitops/cmpxchg

2015-12-27 Thread Noam Camus
From: Noam Camus We need our own implementaions since we lack LLSC support. Our extended ISA provided with optimized solution for all 32bit operations we see in these three headers. Signed-off-by: Noam Camus --- arch/arc/include/asm/atomic.h | 79 +++- arch/ar

[PATCH v5 13/20] ARC: [plat-eznps] Add eznps platform

2015-12-27 Thread Noam Camus
From: Noam Camus This platform include boards: Hardware Emulator (HE) Simulator based upon nSIM. Signed-off-by: Noam Camus --- MAINTAINERS |6 + arch/arc/plat-eznps/Kconfig | 34 ++ arch/arc/plat-eznps/Makefile|7

[PATCH v5 12/20] ARC: [plat-eznps] Add eznps board defconfig and dts

2015-12-27 Thread Noam Camus
From: Noam Camus Adding default configuration file and DTS file Signed-off-by: Noam Camus --- arch/arc/boot/dts/eznps.dts| 94 arch/arc/configs/nps_defconfig | 85 2 files changed, 179 insertions(+), 0 deleti

[PATCH v5 11/20] ARC: IPI: do not use generic IRQ domain

2015-12-27 Thread Noam Camus
From: Noam Camus This behaviour is the desired one as been seen on other arch's. We do not use generic irq domain and hence hwirq number is used directly by our code without any mapping to virq. In order to add IPI status to /proc/interrupts we use hardirq macros also we define arch_show_interru

[PATCH v5 10/20] ARC: IRQ: do not use hwirq directly at arch_do_IRQ()

2015-12-27 Thread Noam Camus
From: Noam Camus ARC uses hwirq at arch_do_IRQ() to pass into generic_handle_irq(). This is wrong since we need first to reverse map it into virq. Happily, if we use handle_domain_irq() we get all we need. Just like ARM I created a pointer to handler that should be filled by an interrupt contro

[PATCH v5 06/20] ARC: Set vmalloc size from configuration

2015-12-27 Thread Noam Camus
From: Noam Camus User space use lower 2G of the virtual address space. However kernel steals upper 512M of this space. This stolen space is used partially for vmalloc and the rest serves as gutter between kernel and user space. The vmalloc size is depend on NR_CPUS since "per cpu" mechanism use v

[PATCH v5 04/20] clocksource: Add NPS400 timers driver

2015-12-27 Thread Noam Camus
From: Noam Camus Add internal tick generator which is shared by all cores. Each cluster of cores view it through dedicated address. This is used for SMP system where all CPUs synced by same clock source. Signed-off-by: Noam Camus Cc: Daniel Lezcano Cc: Rob Herring Cc: Thomas Gleixner Cc: Joh

[PATCH v5 08/20] ARC: Mark secondary cpu online only after all HW setup is done

2015-12-27 Thread Noam Camus
From: Noam Camus In SMP setup, master loops for each_present_cpu calling cpu_up(). For ARC it returns as soon as new cpu's status becomes online, However secondary may still do HW initializing, machine or platform hook level. So turn secondary online only after all HW setup is done. Signed-off-b

[PATCH v5 05/20] irqchip: add nps Internal and external irqchips

2015-12-27 Thread Noam Camus
From: Noam Camus Adding EZchip NPS400 support. NPS internal interrupts are internally handled at Multi Thread Manager (MTM) that is signaled for deactivating an interrupt. External interrupts is handled also at Global Interrupt Controller (GIC) e.g. serial and network devices. Signed-off-by: Noa

[PATCH v5 03/20] ARC: [plat-eznps] define IPI_IRQ

2015-12-27 Thread Noam Camus
From: Noam Camus We add IPI irq definition to be used later by any irqchip such NPS400 IC. Signed-off-by: Noam Camus --- arch/arc/include/asm/irq.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arc/include/asm/irq.h b/arch/arc/include/asm/irq.h index 4fd7d62.

[PATCH v5 02/20] soc: Support for EZchip SoC

2015-12-27 Thread Noam Camus
From: Noam Camus This header file is for NPS400 SoC. It includes macros for accessing memory mapped registers. These are functional registers that core can use to configure SoC. Signed-off-by: Noam Camus --- include/soc/nps/common.h | 123 ++ 1 file

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Andy Lutomirski
On Sun, Dec 27, 2015 at 5:17 AM, Boris Petkov wrote: > Andy Lutomirski wrote: >>You certainly can, but it doesn't scale well to multiple users of >>similar mechanisms. It also prevents you from using the same >>mechanism in anything that could be inlined, which is IMO kind of >>unfortunate. > >

Re: [PATCH 06/10] net: hns: use to_platform_device()

2015-12-27 Thread Andy Shevchenko
On Sun, Dec 27, 2015 at 3:15 PM, Geliang Tang wrote: > Use to_platform_device() instead of open-coding it. > > Signed-off-by: Geliang Tang > --- > drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/ethernet/his

Re: [PATCH 1/4] platform/x86: Add Asus Wireless Radio Control driver

2015-12-27 Thread Andy Shevchenko
On Sat, Dec 26, 2015 at 4:56 PM, João Paulo Rechi Vita wrote: > Some Asus notebooks like the Asus E202SA and the Asus X555UB have a > separate ACPI device for notifications from the airplane mode hotkey. > This device is called "Wireless Radio Control" in Asus websites and ASHS > in the DSDT, and

[PATCH 09/10] watchdog: cadence_wdt: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/watchdog/cadence_wdt.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/cadence_wdt.c b/drivers/watchdog/cadence_wdt.c index abf64eb..4dda902 100644 --- a/drivers

[PATCH 10/10] ARM: plat-samsung: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- arch/arm/plat-samsung/adc.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-samsung/adc.c b/arch/arm/plat-samsung/adc.c index efa6e85..daf3db9 100644 --- a/arch/arm/plat-sa

[PATCH 03/10] dmaengine: ppc4xx: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/dma/ppc4xx/adma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index 9217f89..039803a 100644 --- a/drivers/dma/ppc4xx/adma.c ++

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Boris Petkov
Andy Lutomirski wrote: >You certainly can, but it doesn't scale well to multiple users of >similar mechanisms. It also prevents you from using the same >mechanism in anything that could be inlined, which is IMO kind of >unfortunate. Well, but the bit 31 game doesn't make it any better than the b

[PATCH 02/10] spi: cadence, zynq: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/spi/spi-cadence.c | 6 ++ drivers/spi/spi-zynqmp-gqspi.c | 8 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index

[PATCH 08/10] staging: fbtft: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/staging/fbtft/fbtft_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index 071f79b..50d5735 100644

[PATCH 04/10] i2c: st: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/i2c/busses/i2c-st.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-st.c b/drivers/i2c/busses/i2c-st.c index 25020ec..6ee7715 100644 --- a/drivers/i2c/busses/i

[PATCH 05/10] mmc: cb710: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/mmc/host/cb710-mmc.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/cb710-mmc.h b/drivers/mmc/host/cb710-mmc.h index 8984ec8..8ecd9e5 100644 --- a/drivers/mmc/host/

[PATCH 07/10] platform/chrome: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/platform/chrome/cros_ec_lightbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/platform/chrome/cros_ec_lightbar.c b/drivers/platform/chrome/cros_ec_lightbar.c index ff76

[PATCH 06/10] net: hns: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c b/drivers/net/ethernet/hisilicon/hns/hns_

[PATCH 01/10] PM / devfreq: exynos: use to_platform_device()

2015-12-27 Thread Geliang Tang
Use to_platform_device() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/devfreq/exynos/exynos4_bus.c | 3 +-- drivers/devfreq/exynos/exynos5_bus.c | 9 +++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/devfreq/exynos/exynos4_bus.c b/drivers/dev

Re: [PATCH 0/2] Fixes for dell-wmi

2015-12-27 Thread Pali Rohár
On Sunday 27 December 2015 14:10:55 Gabriele Mazzotta wrote: > On 27/12/2015 14:07, Pali Rohár wrote: > > On Sunday 27 December 2015 13:59:57 Gabriele Mazzotta wrote: > >> On 24/12/2015 22:18, Pali Rohár wrote: > >>> This patch series adds check if Dell WMI descriptor structure is > >>> valid and f

Re: GPIO-driven RTS on TI hardware with 8250_omap driver

2015-12-27 Thread Matwey V. Kornilov
Andy, The half of what is described here are implemented in my patches. But I cannot understand the other half. Each of six AM335x UARTs has RTS/CTS pins which are controlled by pinmux in device tree, no magic required here. 2015-12-27 15:47 GMT+03:00 Andy Shevchenko : > +Peter, Russell, and Mat

Re: [PATCH 0/2] Fixes for dell-wmi

2015-12-27 Thread Gabriele Mazzotta
On 27/12/2015 14:07, Pali Rohár wrote: > On Sunday 27 December 2015 13:59:57 Gabriele Mazzotta wrote: >> On 24/12/2015 22:18, Pali Rohár wrote: >>> This patch series adds check if Dell WMI descriptor structure is >>> valid and fixes processing WMI events on devices with WMI >>> interface version 0.

Re: [PATCH 0/2] Fixes for dell-wmi

2015-12-27 Thread Pali Rohár
On Sunday 27 December 2015 13:59:57 Gabriele Mazzotta wrote: > On 24/12/2015 22:18, Pali Rohár wrote: > > This patch series adds check if Dell WMI descriptor structure is > > valid and fixes processing WMI events on devices with WMI > > interface version 0. > > > > After testing, second patch is g

Re: [PATCH 0/2] Fixes for dell-wmi

2015-12-27 Thread Gabriele Mazzotta
On 24/12/2015 22:18, Pali Rohár wrote: > This patch series adds check if Dell WMI descriptor structure is valid and > fixes processing WMI events on devices with WMI interface version 0. > > After testing, second patch is good candidate for backporting into stable > kernels, but problem is that it

Re: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function implementations

2015-12-27 Thread Leon Romanovsky
On Sun, Dec 27, 2015 at 01:36:30PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 27 Dec 2015 13:12:10 +0100 > Subject: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function > implementations > > I suggest to return directly instead of using the jump label "err" > in two

Re: GPIO-driven RTS on TI hardware with 8250_omap driver

2015-12-27 Thread Andy Shevchenko
+Peter, Russell, and Matwey. I suggest you to ask people I added to the Cc list. On Sat, Dec 26, 2015 at 6:17 PM, Ильяс Гасанов wrote: > Hello. > > We are upgrading to the 4.1.x kernel for our smart metering appliance > project, which is based on TI's Sitara hardware (AM335x SoC), and I > decide

Re: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function implementations

2015-12-27 Thread Leon Romanovsky
On Sun, Dec 27, 2015 at 01:36:30PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 27 Dec 2015 13:12:10 +0100 > Subject: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function > implementations Just a note for the future submissions (no need to respin), we are using differe

[PATCH 2/2] InfiniBand-iSER-target: One jump label less in isert_reg_sig_mr()

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 12:54:52 +0100 This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the function "isert_set_sig_attrs" or "ib_post_send" failed. 2. Delete the jump label "err" then. 3. Return zero as a constant at the e

[PATCH 1/2] InfiniBand-iSER: One jump label less in iser_reg_sig_mr()

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 11:41:42 +0100 This issue was detected by using the Coccinelle software. 1. Let us return directly if a call of the iser_set_sig_attrs() function failed. 2. Delete the jump label "err" then. 3. Return zero as a constant at the end. Signed-off-by:

Re: [PATCH 3/9] i2c: designware: use to_pci_dev()

2015-12-27 Thread Andy Shevchenko
On Sun, Dec 27, 2015 at 12:45 PM, Geliang Tang wrote: > Use to_pci_dev() instead of open-coding it. > Reviewed-by: Andy Shevchenko > Signed-off-by: Geliang Tang > --- > drivers/i2c/busses/i2c-designware-pcidrv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/driv

Re: [PATCH 7/9] serial: 8250_pci: use to_pci_dev()

2015-12-27 Thread Andy Shevchenko
On Sun, Dec 27, 2015 at 12:46 PM, Geliang Tang wrote: > Use to_pci_dev() instead of open-coding it. > > Signed-off-by: Geliang Tang > --- > drivers/tty/serial/8250/8250_pci.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/8250/8250_pci.c > b/driver

[PATCH 0/2] InfiniBand-iSER: Refactoring for two function implementations

2015-12-27 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 27 Dec 2015 13:12:10 +0100 Subject: [PATCH 0/2] InfiniBand-iSER: Refactoring for two function implementations I suggest to return directly instead of using the jump label "err" in two functions (which are working without clean-up there). Markus Elfring (2): One

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Andy Lutomirski
On Sun, Dec 27, 2015 at 2:09 AM, Borislav Petkov wrote: > On Sat, Dec 26, 2015 at 10:57:26PM -0800, Tony Luck wrote: >> ... will get the right value. Maybe this would still work out >> if the fixup is a 31-bit value plus a flag, but the external >> tool thinks it is a 32-bit value? I'd have to p

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-27 Thread Andy Lutomirski
On Sat, Dec 26, 2015 at 10:57 PM, Tony Luck wrote: > On Sat, Dec 26, 2015 at 6:16 PM, Andy Lutomirski wrote: We could make one of them 31-bits (since even an "allyesconfig" kernel is still much smaller than a gigabyte) to free a bit for a flag. But there are those external tools to

Re: [PATCH 3/3] perf script: Align event name properly

2015-12-27 Thread Jiri Olsa
On Thu, Nov 26, 2015 at 07:25:17AM -0700, David Ahern wrote: > On 11/26/15 6:55 AM, Jiri Olsa wrote: > >Adding code to align event names, so we get aligned output > >in case of multiple events with different names. > > > >Before: > > $ perf script > > :13757 13757 163918.230829: cpu/mem-snp-non

<    1   2   3   >