RE: [PATCH v2] alarmtimer: fix unexpected rtc interrupt when system resume from S3

2015-11-17 Thread Thomas Gleixner
On Tue, 17 Nov 2015, Lee, Zhuo-hao wrote: Can you please fix your e-mail client to do proper line breaks around 80 char? > >> (1). alarmtimer create a rtc wake up timer however alarmtimer won't > >> remove that timer if the system wake up earlier > > > That's hardly a bug. That's a slight i

Re: [PATCH v4 0/3] Dynamic power model from device tree

2015-11-17 Thread Punit Agrawal
Viresh Kumar writes: > On Tue, Nov 17, 2015 at 1:00 AM, Punit Agrawal wrote: >> Hi, >> >> This patchset adds support to build a single-coefficient dynamic power >> model for a CPU. The model is used by the CPU cooling device to >> provide an estimate of power consumption and also translate alloc

Re: [PATCH 1/4] crypto: hifn_795x: replace simple_strtoul by kstrtouint

2015-11-17 Thread Herbert Xu
On Thu, Oct 22, 2015 at 08:51:49AM +0200, LABBE Corentin wrote: > The simple_strtoul function is marked as obsolete. > This patch replace it by kstrtouint at the cost of changing some function > return type from void to int. > > Signed-off-by: LABBE Corentin If you're going to clean this up then

Re: [PATCH v2 net-next] net/core: ensure features get disabled on new lower devs

2015-11-17 Thread Geert Uytterhoeven
On Tue, Nov 17, 2015 at 10:02 AM, Geert Uytterhoeven wrote: > On Fri, Nov 13, 2015 at 1:26 AM, Florian Fainelli > wrote: >> On 04/11/15 18:56, David Miller wrote: Fixes: fd867d51f889 ("net/core: generic support for disabling netdev features down stack") >>> ... Reported-by: Niko

Re: [PATCH] drm/tegra: fix locking of SET_TILING ioctl

2015-11-17 Thread Daniel Vetter
On Thu, Nov 12, 2015 at 04:09:56PM +0900, Alexandre Courbot wrote: > drm_gem_object_unreference() now expects obj->dev->struct_mutex to be > held. Use the newly-introduced drm_gem_object_unreference_unlocked() > which handles locking for us. This rule has been really old, I simply made the checkin

Re: [PATCH 8/8] crypto: testmgr: Use the xxx_zero_message_hash from headers

2015-11-17 Thread Herbert Xu
On Tue, Oct 20, 2015 at 09:34:04AM +0200, LABBE Corentin wrote: > Since md5/shaxxx headers have hash for zero message length, just use them. > > Signed-off-by: LABBE Corentin This too would need a dependency on the MD5/SHA Kconfig options. However, for now this is just too hard as it would resu

[PATCH] clk: gpio: Get parent clk names already in of_gpio_clk_setup()

2015-11-17 Thread Jyri Sarha
Get parent clk names already in of_gpio_clk_setup() and store the names in struct clk_gpio_delayed_register_data. of_clk_get_parent_name() can not be called in struct of_clk_provider's get() callback since it may make a recursive call to of_clk_get_from_provider() and this in turn tries to recursiv

Re: [PATCHv2] arm64: Fix R/O permissions in mark_rodata_ro

2015-11-17 Thread Ard Biesheuvel
On 16 November 2015 at 23:50, Laura Abbott wrote: > On 11/14/2015 11:38 PM, Ard Biesheuvel wrote: >> >> On 12 November 2015 at 21:21, Laura Abbott >> wrote: >>> >>> The permissions in mark_rodata_ro trigger a build error >>> with STRICT_MM_TYPECHECKS. Fix this by introducing >>> PAGE_KERNEL_ROX f

[RESEND PATCH v2 3/9] eeprom: at24: tie up an additional address for at24cs series

2015-11-17 Thread Bartosz Golaszewski
The at24cs series EEPROM chips have an additional read-only memory area, that is visible on a different i2c slave address. Tie it up with a dummy device. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 30 ++ 1 file changed, 26 insertions(+), 4 del

[RESEND PATCH v2 4/9] eeprom: at24: support reading of the serial number

2015-11-17 Thread Bartosz Golaszewski
The at24cs series EEPROM chips have an additional read-only memory area containing a factory pre-programmed serial number. In order to access it, one has to perform a dummy write before reading the serial number bytes. Add a function that allows to access the serial number. Signed-off-by: Bartosz

[RESEND PATCH v2 2/9] eeprom: at24: new flag in platform_data

2015-11-17 Thread Bartosz Golaszewski
In preparation for supporting the at24cs EEPROM series add a new flag to platform data. When set, it should tell the driver that the chip has an additional read-only memory area that holds a factory pre-programmed serial number. Signed-off-by: Bartosz Golaszewski --- include/linux/platform_data/

[RESEND PATCH v2 6/9] eeprom: at24: improve the device_id table readability

2015-11-17 Thread Bartosz Golaszewski
Improve the readability of the device table by separating columns with tabs. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.

[RESEND PATCH v2 5/9] eeprom: at24: export the serial number through sysfs

2015-11-17 Thread Bartosz Golaszewski
The at24 driver is now capable of reading the serial number from at24cs EEPROM chips. Export the serial number through sysfs. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 44 1 file changed, 40 insertions(+), 4 deletions(-) dif

[RESEND PATCH v2 0/9] eeprom: at24: at24cs series serial number read

2015-11-17 Thread Bartosz Golaszewski
Chips from the at24cs EEPROM series have an additional read-only memory area containing a factory pre-programmed serial number. In order to access it, a dummy write must be executed before reading the serial number bytes. This series adds support for reading the serial number through a sysfs attri

[RESEND PATCH v2 7/9] eeprom: at24: add the at24cs series to the list of supported devices

2015-11-17 Thread Bartosz Golaszewski
The infrastructure for reading of the factory-programmed serial number for at24cs EEPROM series is now in place. Add the chips that are actually equipped with the serial number memory area to the list of supported devices. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 9 +++

[RESEND PATCH v2 8/9] eeprom: at24: remove a reduntant if

2015-11-17 Thread Bartosz Golaszewski
It seems as if the second check for I2C_FUNC_I2C functionality had been introduced accidentally during a merge. Tt's reduntant, so remove it. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drive

[RESEND PATCH v2 9/9] eeprom: at24: readability tweaks

2015-11-17 Thread Bartosz Golaszewski
Move the macro definitions above the struct definitions and add some tabs for better readability. Signed-off-by: Bartosz Golaszewski --- drivers/misc/eeprom/at24.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eepro

[RESEND PATCH v2 1/9] eeprom: at24: platform_data: use BIT() macro

2015-11-17 Thread Bartosz Golaszewski
Use BIT() macro to replace the 0xXX constants in platform_data flags definitions. Signed-off-by: Bartosz Golaszewski --- include/linux/platform_data/at24.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/platform_data/at24.h b/include/linux/platform_dat

Re: [PATCH 1/2] Remove EFI memmap quirk for UV

2015-11-17 Thread Matt Fleming
On Mon, 16 Nov, at 07:02:48PM, Thomas Gleixner wrote: > On Mon, 16 Nov 2015, Alex Thorlton wrote: > > CC'ing Matt under his correct e-mail address. > > > Commit a5d90c923bcf ("x86/efi: Quirk out SGI UV") added a quirk to > > efi_apply_memmap_quirks to force SGI UV systems to fall back to the old

Re: [PATCH 2/8] crypto: niagara: Use precalculated hash from headers

2015-11-17 Thread Herbert Xu
On Tue, Oct 20, 2015 at 09:33:58AM +0200, LABBE Corentin wrote: > Precalculated hash for empty message are now present in hash headers. > This patch just use them. > > Signed-off-by: LABBE Corentin You need to select CRYPTO_MD5 and CRYPTO_SHA*. Please add the corresponding Kconfig changes and r

Re: [PATCH 6/8] crypto: akcipher: the key parameter must be const u8 *

2015-11-17 Thread Herbert Xu
On Tue, Oct 20, 2015 at 09:34:02AM +0200, LABBE Corentin wrote: > All cryptoAPI setkey function set the key parameter as const u8 *. > This patch make the crypto_akcipher_setkey parameters like others. > > Signed-off-by: LABBE Corentin This patch no longer applies. -- Email: Herbert Xu Home Pa

[PATCH] perf record: Support custom vmlinux path

2015-11-17 Thread Wang Nan
From: He Kuang Make perf-record command support --vmlinux option if BPF_PROLOGUE is on. 'perf record' needs vmlinux as the source of DWARF info to generate prologue for BPF programs, so path of vmlinux should be specified. Short name 'k' has been taken by 'clockid'. This patch skips the short o

[PATCH v7 0/2] Mediatek SPI-NOR flash driver

2015-11-17 Thread Bayi Cheng
This series is based on v4.4-rc1 and l2-mtd.git [0] and erase_sector implementation patch [1] [0]: git://git.infradead.org/l2-mtd.git [1]: http://lists.infradead.org/pipermail/linux-mtd/2015-October//062959.html Change in v7: 1: change PRGDATA3 to PRGDATA4 for quad mode 2: drop PRGDATA3 for sign

[PATCH v7 1/2] mtd: mtk-nor: mtk serial flash controller driver

2015-11-17 Thread Bayi Cheng
add spi nor flash driver for mediatek controller Signed-off-by: Bayi Cheng --- drivers/mtd/spi-nor/Kconfig | 7 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/mtk-quadspi.c | 483 ++ 3 files changed, 491 insertions(+) create mode 100

[PATCH v7 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-17 Thread Bayi Cheng
Add Mediatek nor flash node Signed-off-by: Bayi Cheng Acked-by: Brian Norris --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi i

Re: [PATCH v2 1/5] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-17 Thread Matt Fleming
On Mon, 16 Nov, at 09:19:01PM, Thomas Gleixner wrote: > On Sat, 14 Nov 2015, Matt Fleming wrote: > > The x86 pageattr code is confused about the data that is stored > > cpa->pfn, sometimes it's treated as a page frame number, sometimes > > it's treated as an unshifted physical address, and in one p

Re: [PATCH v2 1/5] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-17 Thread Matt Fleming
On Mon, 16 Nov, at 07:56:17AM, Dave Hansen wrote: > I'm glad you're looking at this. It obviously needed some love. :) > > On 11/14/2015 02:00 PM, Matt Fleming wrote: > > + npages = (_end - _text) >> PAGE_SHIFT; > > + text = __pa(_text); > > + pfn = text >> PAGE_SHIFT; > > + > > + if (kern

Re: Kernel v4.3 - RCU hang, USB implicated

2015-11-17 Thread Oliver Neukum
On Mon, 2015-11-16 at 12:30 -0500, Ilia Mirkin wrote: > Task dump for CPU 2: > kworker/2:2 R running task13152 23226 2 0x > Workqueue: usb_hub_wq hub_event > 88017fd3ba08 88017fd3b9c8 8111dfc8 0002 > 88017fd3ba08 88017fd3b9e0 8111f

Crypto Fixes for 4.4

2015-11-17 Thread Herbert Xu
Hi Linus: This push fixes a bug in the qat driver where a user-space pointer is dereferenced. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Tadeusz Struk (1): crypto: qat - don't use userspace pointer drivers/crypto/qat/qat_common/adf_ctl_

Re: [PATCH] KVM: x86: Add lowest-priority support for vt-d posted-interrupts

2015-11-17 Thread Paolo Bonzini
On 16/11/2015 20:03, Radim Krčmář wrote: > 2015-11-09 10:46+0800, Feng Wu: >> Use vector-hashing to handle lowest-priority interrupts for >> posted-interrupts. As an example, modern Intel CPUs use this >> method to handle lowest-priority interrupts. > > (I don't think it's a good idea that the a

Re: [PATCH] clocksource: fsl: avoid harmless 64-bit warnings

2015-11-17 Thread Daniel Lezcano
On 11/16/2015 05:34 PM, Arnd Bergmann wrote: The ftm_clockevent_init passes the value of "~0UL" into a function that takes a 32-bit argument, which drops the upper 32 bits, as gcc warns about on ARM64: clocksource/fsl_ftm_timer.c: In function 'ftm_clockevent_init': clocksource/fsl_ftm_timer.c:20

Re: [PATCH] clk: imx: clk-imx6q: Let OSC to be routed to anaclk2/2b

2015-11-17 Thread Lucas Stach
Am Sonntag, den 08.11.2015, 15:07 +0100 schrieb Michael Trimarchi: > OSC can be used as USB hub source clock. An example we can route to > CLK2_P imx6 pin > > Signed-off-by: Michael Trimarchi I don't think the more verbose commit message of V2 adds any more value, so I'm explicitly looking at V1

Re: [RFC PATCH -v2.1] x86: Kill notsc

2015-11-17 Thread Borislav Petkov
On Tue, Nov 17, 2015 at 10:11:03AM +0100, Thomas Gleixner wrote: > There is an interesting problem: > > tsc_init() > { >tsc_khz = x86_platform.calibrate_tsc(); >if (!tsc_khz) { > mark_tsc_unstable("could not calculate TSC khz"); > ... >} > > In the

Re: kernel oops on mmotm-2015-10-15-15-20

2015-11-17 Thread Kirill A. Shutemov
On Tue, Nov 17, 2015 at 04:35:39PM +0900, Minchan Kim wrote: > On Mon, Nov 16, 2015 at 12:54:53PM +0200, Kirill A. Shutemov wrote: > > On Mon, Nov 16, 2015 at 07:32:20PM +0900, Minchan Kim wrote: > > > On Mon, Nov 16, 2015 at 10:45:22AM +0200, Kirill A. Shutemov wrote: > > > > On Mon, Nov 16, 2015

Re: [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.

2015-11-17 Thread Huang Shijie
On Tue, Nov 17, 2015 at 05:03:39PM +0800, Hanjun Guo wrote: Hi Hanjun, > Hi Shijie, > > On 2015/11/17 15:11, Huang Shijie wrote: > > On Sat, Oct 24, 2015 at 03:58:17PM +0200, Tomasz Nowicki wrote: > > Hi Tomasz, > >> Indeed, I will rebase after some more comments related to other patches in > >> t

Re: [PATCH 09/19] staging/wilc1000: move init/exit functions to driver files

2015-11-17 Thread kbuild test robot
Hi Arnd, [auto build test ERROR on staging/staging-testing] [also build test ERROR on next-20151117] [cannot apply to v4.4-rc1] url: https://github.com/0day-ci/linux/commits/Arnd-Bergmann/staging-wilc1000-cleanups/20151116-221148 config: x86_64-randconfig-s1-11171709 (attached as .config

Re: [PATCH v3 5/5] tty: Add software emulated RS485 support for 8250

2015-11-17 Thread Uwe Kleine-König
Hello, On Thu, Nov 12, 2015 at 05:33:56PM +0300, Matwey V. Kornilov wrote: > +static void serial8250_start_tx(struct uart_port *port) > +{ > + struct uart_8250_port *up = up_to_u8250p(port); > + __u32 delay; > + > + serial8250_rpm_get_tx(up); > + > + if (timer_pending(&up->rs4

[PATCH] crypto: atmel: fix 64-bit warnings

2015-11-17 Thread Arnd Bergmann
The atmel AES driver assumes that 'int' and 'size_t' are the same type in multiple locations, which the compiler warns about when building it for 64-bit systems: In file included from ../drivers/crypto/atmel-aes.c:17:0: drivers/crypto/atmel-aes.c: In function 'atmel_aes_sg_copy': include/linux/ker

Re: [PATCH] kvm/vmx: EPTP switching test

2015-11-17 Thread Paolo Bonzini
On 16/11/2015 19:18, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= wrote: >> > No idea how would I even test it, so I'm not interested in #VE at this >> > point. If you are - go ahead and post a patch for that on top though, >> > why not. > I thought that it's going to be simpler to provide function

Re: [PATCH v3 2/5] mfd: syscon: add a DT property to set value width

2015-11-17 Thread Lee Jones
Looks like you forgot to Cc Arnd too. Doing that for you now. On Tue, 17 Nov 2015, Lee Jones wrote: > On Mon, 16 Nov 2015, Damien Riegel wrote: > > > Currently syscon has a fixed configuration of 32 bits for register and > > values widths. In some cases, it would be desirable to be able to > > c

Re: [PATCH v8] PCI: Xilinx-NWL-PCIe: Added support for Xilinx NWL PCIe Host Controller

2015-11-17 Thread Marc Zyngier
On Tue, 17 Nov 2015 04:59:39 + Bharat Kumar Gogada wrote: > > On 11/16/2015 7:14 AM, Marc Zyngier wrote: > > > On 11/11/15 06:33, Bharat Kumar Gogada wrote: > > >> Adding PCIe Root Port driver for Xilinx PCIe NWL bridge IP. > > >> > > >> Signed-off-by: Bharat Kumar Gogada > > >> Signed-off-b

Re: [PATCH] dmaengine: bcm2835-dma: Convert to use DMA pool

2015-11-17 Thread Peter Ujfalusi
On 11/17/2015 11:04 AM, Stefan Wahren wrote: > Hi Peter, > > Am 17.11.2015 um 08:46 schrieb Peter Ujfalusi: >> Hi, >> >> On 11/16/2015 01:09 PM, Peter Ujfalusi wrote: >>> f93178291712 dmaengine: bcm2835-dma: Fix memory leak when stopping a >>> running transfer >>> >>> Fixed the memleak, b

Re: [PATCH v3 2/5] mfd: syscon: add a DT property to set value width

2015-11-17 Thread Lee Jones
On Mon, 16 Nov 2015, Damien Riegel wrote: > Currently syscon has a fixed configuration of 32 bits for register and > values widths. In some cases, it would be desirable to be able to > customize the value width. > > For example, certain boards (like the ones manufactured by Technologic > Systems)

[PATCH v12 2/3] xhci: mediatek: support MTK xHCI host controller

2015-11-17 Thread Chunfeng Yun
There some vendor quirks for MTK xhci host controller: 1. It defines some extra SW scheduling parameters for HW to minimize the scheduling effort for synchronous and interrupt endpoints. The parameters are put into reseved DWs of slot context and endpoint context. 2. Its IMODI unit for Interr

[PATCH v12 1/3] dt-bindings: Add a binding for Mediatek xHCI host controller

2015-11-17 Thread Chunfeng Yun
add a DT binding documentation of xHCI host controller for the MT8173 SoC from Mediatek. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mt8173-xhci.txt| 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/mt81

[PATCH v12 3/3] arm64: dts: mediatek: add xHCI & usb phy for mt8173

2015-11-17 Thread Chunfeng Yun
add xHCI and phy drivers for MT8173-EVB Signed-off-by: Chunfeng Yun --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 16 +++ arch/arm64/boot/dts/mediatek/mt8173.dtsi| 42 + 2 files changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt817

[PATCH v12 0/3] Mediatek xHCI support

2015-11-17 Thread Chunfeng Yun
>From 577f68d9c0ca1531d5f9cae0dcbea2ba116c8551 Mon Sep 17 00:00:00 2001 From: Chunfeng Yun Date: Tue, 17 Nov 2015 17:09:05 +0800 Subject: [PATCH v12 0/3] Mediatek xHCI support The patch supports MediaTek's xHCI controller. There are some differences from xHCI spec: 1. The interval is specified i

Re: [PATCH v3 6/6] gpio: tps65086: Add GPIO driver for the TPS65086 PMIC

2015-11-17 Thread Linus Walleij
On Wed, Nov 4, 2015 at 6:12 PM, Andrew F. Davis wrote: > Add support for the TPS65086 PMIC GPOs. > > TPS65086 has four configurable GPOs that can be used for several > purposes. > > Signed-off-by: Andrew F. Davis OK... > +static int tps65086_gpio_get(struct gpio_chip *gc, unsigned offset) > +s

Re: local64_cmpxchg() in arc_perf_event_update()

2015-11-17 Thread Vineet Gupta
On Tuesday 20 October 2015 02:05 AM, Alexey Brodkin wrote: > Hi Vineet, > > Looking at a patch that Peter Z mentioned: > http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/include/linux/perf_event.h?id=b0e878759452314676f > bdd71df4ac67e7d08de5d > > > And it says here > http://

[PATCH] nvmem: core: return error for non word aligned access

2015-11-17 Thread Srinivas Kandagatla
nvmem providers have restrictions on register strides, so return error when users attempt to read/write buffers with sizes which are less than word size. Without this patch the userspace would continue to try as it does not get any error from the nvmem core, resulting in a hang or endless loop in

Re: [PATCH v3 3/6] Documentation: tps65086: Add DT bindings for the TPS65086 GPO controller

2015-11-17 Thread Linus Walleij
On Wed, Nov 4, 2015 at 6:12 PM, Andrew F. Davis wrote: > The TPS65086 PMIC contains several regulators and a GPO controller. > Add bindings for the TPS65086 GPO controller. > > Signed-off-by: Andrew F. Davis Patch applied to the GPIO tree with Rob's ACK. Yours, Linus Walleij -- To unsubscribe

Re: [RFC PATCH -v2.1] x86: Kill notsc

2015-11-17 Thread Thomas Gleixner
On Tue, 17 Nov 2015, Borislav Petkov wrote: > On Mon, Nov 16, 2015 at 09:02:15PM -0800, H. Peter Anvin wrote: > > On 11/16/15 13:25, Thomas Gleixner wrote: > > > On Mon, 16 Nov 2015, Borislav Petkov wrote: > > >> -/* > > >> - * disable flag for tsc. Takes effect by clearing the TSC cpu flag > > >>

37afb0003242 ("cpufreq: intel_pstate: Use ACPI perf configuration") makes intel_pstate kaputt

2015-11-17 Thread Borislav Petkov
Hi, patch in $Subject breaks my IVB laptop here. It does not go over 1.2GHz during load like building a kernel with -j4, for example. 1.2GHz according to cpupower in tools/power/cpupower is the lowest P-state: # LD_LIBRARY_PATH=. ./cpupower frequency-info analyzing CPU 0: driver: intel_pstate

[PATCH] clk: gpio: Get parent clk names already in of_gpio_clk_setup()

2015-11-17 Thread Jyri Sarha
Get parent clk names already in of_gpio_clk_setup() and store the names in struct clk_gpio_delayed_register_data. of_clk_get_parent_name() can not be called in struct of_clk_provider's get() callback since it may make a recursive call to of_clk_get_from_provider() and this in turn tries to recursiv

[PATCH] Initialize iter->started in trace_init_global_iter()

2015-11-17 Thread Junjie Mao
iter->started will be used in test_cpu_buff_start() if TRACE_FILE_ANNOTATE is set in iter->iter_flags, which can happen when the ring buffer has overrun at the time trace_init_global_iter() is called. A null pointer is then dereferenced under such circumstances. Here is a call trace of this problem

[PATCH v5 2/2] leds: rt5033: Add RT5033 Flash led device driver

2015-11-17 Thread Ingi Kim
This patch adds device driver of Richtek RT5033 PMIC. The RT5033 Flash LED Circuit is designed for one or two LEDs driving for torch and strobe applications, it provides an I2C software command to trigger the torch and strobe operation. Signed-off-by: Ingi Kim --- drivers/leds/Kconfig

[PATCH] PM / OPP: Add entry in MAINTAINERS

2015-11-17 Thread Viresh Kumar
Add entry for operating performance points into MAINTAINERS file. This will also allow get_maintainers to list OPP stakeholders properly. Signed-off-by: Viresh Kumar --- Hi Rafael, As discussed separately, I have pointed the tree to my (new) repository, where I have created two new branches opp/

Re: [PATCH 14/27] mtd: nand: use the mtd instance embedded in struct nand_chip

2015-11-17 Thread Julia Lawall
> > (This isn't the worst one, but it just happens to be one of the first.) > > There are many cases where the typical style would be to declare a new > > variable at the top of the function, where you perform the > > macro/function-call to convert from one abstraction to another. Like > > > > stat

Re: [PATCH] dmaengine: bcm2835-dma: Convert to use DMA pool

2015-11-17 Thread Stefan Wahren
Hi Peter, Am 17.11.2015 um 08:46 schrieb Peter Ujfalusi: Hi, On 11/16/2015 01:09 PM, Peter Ujfalusi wrote: f93178291712 dmaengine: bcm2835-dma: Fix memory leak when stopping a running transfer Fixed the memleak, but introduced another issue: the terminate_all callback might be ca

[PATCH v5 0/2] Add RT5033 Flash LED driver

2015-11-17 Thread Ingi Kim
This is a fifth version of the patch set to support RT5033 Flash Led. It is based on RFC [1] from Jacek's patch set. Changes since v5: - Rebase on Jacek's devel branch git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds.git - Remove work queue from driver. - Change brightne

[PATCH v5 1/2] leds: rt5033: Add DT binding for RT5033

2015-11-17 Thread Ingi Kim
This patch adds the device tree bindings for RT5033 flash LEDs. Signed-off-by: Ingi Kim Acked-by: Rob Herring --- .../devicetree/bindings/leds/leds-rt5033.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-rt50

Re: [PATCH V1 10/10] acpi, gicv3, its: Use MADT ITS subtable to do PCI/MSI domain initialization.

2015-11-17 Thread Hanjun Guo
Hi Shijie, On 2015/11/17 15:11, Huang Shijie wrote: > On Sat, Oct 24, 2015 at 03:58:17PM +0200, Tomasz Nowicki wrote: > Hi Tomasz, >> Indeed, I will rebase after some more comments related to other patches in >> this series. >> > Do you have any update about this patch set? > I want to test this p

Re: [PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-17 Thread Timo Sigurdsson
Hi, Krzysztof Kozlowski schrieb am 17.11.2015 09:21: [...] >>> > @@ -450,8 +431,7 @@ CONFIG_MEDIA_CAMERA_SUPPORT=y >>> > CONFIG_MEDIA_CONTROLLER=y >>> > CONFIG_VIDEO_V4L2_SUBDEV_API=y >>> > CONFIG_MEDIA_USB_SUPPORT=y >>> > -CONFIG_USB_VIDEO_CLASS=y >>> > -CONFIG_USB_GSPCA=y >>> > +CONFIG_USB_

[PATCH] mm/zonelist: enumerate zonelists array index

2015-11-17 Thread Yaowei Bai
Hardcoding index to zonelists array in gfp_zonelist() is not a good idea, let's enumerate it to improve readability. No functional change. Signed-off-by: Yaowei Bai --- include/linux/gfp.h| 4 ++-- include/linux/mmzone.h | 20 +--- 2 files changed, 11 insertions(+), 13 dele

Re: [PATCH] cpufreq: do not mark s3c2410_plls_add as __init

2015-11-17 Thread Arnd Bergmann
On Tuesday 17 November 2015 10:57:48 Krzysztof Kozlowski wrote: > On 17.11.2015 07:17, Arnd Bergmann wrote: > > On Monday 16 November 2015 23:36:42 Rafael J. Wysocki wrote: > >> > >> This should go in through the Samsung tree, so I'll leave it for them to > >> pick > >> it up (at least for the tim

Re: [PATCH v2 net-next] net/core: ensure features get disabled on new lower devs

2015-11-17 Thread Geert Uytterhoeven
On Fri, Nov 13, 2015 at 1:26 AM, Florian Fainelli wrote: > On 04/11/15 18:56, David Miller wrote: >>> Fixes: fd867d51f889 ("net/core: generic support for disabling netdev >>> features down stack") >> ... >>> Reported-by: Nikolay Aleksandrov >>> Signed-off-by: Jarod Wilson >>> --- >>> v2: Based

Re: next build: 235 warnings 3 failures (next/next-20151117)

2015-11-17 Thread Arnd Bergmann
On Monday 16 November 2015 19:05:05 Olof's autobuilder wrote: > > Errors: > > arm64.allmodconfig: > arch/arm64/include/asm/barrier.h:71:3: error: read-only variable '___p1' used > as 'asm' output > arch/arm64/include/asm/barrier.h:75:3: error: read-only variable '___p1' used > as 'asm'

Re: [PATCH 3/9] IB: add a helper to safely drain a QP

2015-11-17 Thread Sagi Grimberg
That won't work for iWARP. Is this code new? I didn't see any errors that would result from this code when I tested iSER over cxgb4 with the old iwarp support patches. It's there since ~3.17 I think... Perhaps we need another way to do this? Like a completion object in the QP that gets

Re: [RFC PATCH -v2.1] x86: Kill notsc

2015-11-17 Thread Borislav Petkov
On Mon, Nov 16, 2015 at 09:02:15PM -0800, H. Peter Anvin wrote: > On 11/16/15 13:25, Thomas Gleixner wrote: > > On Mon, 16 Nov 2015, Borislav Petkov wrote: > >> -/* > >> - * disable flag for tsc. Takes effect by clearing the TSC cpu flag > >> - * in cpu/common.c > >> - */ > >> -int __init notsc_set

Re: [PATCH v2 1/5] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-17 Thread Thomas Gleixner
On Mon, 16 Nov 2015, Thomas Gleixner wrote: > On Mon, 16 Nov 2015, Borislav Petkov wrote: > > On Mon, Nov 16, 2015 at 09:19:01PM +0100, Thomas Gleixner wrote: > > > On Sat, 14 Nov 2015, Matt Fleming wrote: > > > > The x86 pageattr code is confused about the data that is stored > > > > cpa->pfn, som

Re: [PATCH v5 11/11] scsi: ufs-exynos: add UFS host support for Exynos SoCs

2015-11-17 Thread Arnd Bergmann
On Monday 09 November 2015 10:56:27 Alim Akhtar wrote: > From: Seungwon Jeon > > This patch introduces Exynos UFS host controller driver, > which mainly handles vendor-specific operations including > link startup, power mode change and hibernation/unhibernation. > > Signed-off-by: Seungwon Jeon

Re: [PATCH] brcmfmac: constify brcmf_bus_ops structures

2015-11-17 Thread Arend van Spriel
On 11/14/2015 05:22 PM, Julia Lawall wrote: The brcmf_bus_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Acked-by: Arend van Spriel Signed-off-by: Julia Lawall --- drivers/net/wireless/brcm80211/brcmfmac/bus.h |2 +- drivers/net/wirel

Re: [PATCH 12/13] perf test: Test BPF prologue

2015-11-17 Thread Wangnan (F)
Hi Arnaldo, On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: [SNIP] I've pushed everything to my perf/ebpf branch, please let me know if what is there is acceptable, then it will be up to Ingo to decide where to put this, if in perf/urgent for this merge window, or in perf/core, for the next

[PATCH] SCSI-lpfc: Delete unnecessary checks before the function call "mempool_destroy"

2015-11-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Nov 2015 09:34:27 +0100 The mempool_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v5 06/11] scsi: ufs: add quirk to enable host controller without hce

2015-11-17 Thread Arnd Bergmann
On Monday 09 November 2015 10:56:22 Alim Akhtar wrote: > +static int ufshcd_hba_enable(struct ufs_hba *hba) > +{ > + int ret; > + > + if (hba->quirks & UFSHCI_QUIRK_BROKEN_HCE) { > + ufshcd_set_link_off(hba); > + ufshcd_vops_hce_enable_notify(hba, PRE_CHANGE)

[PATCH] MIPS: ath79: Fix the DDR control initialization on ar71xx and ar934x

2015-11-17 Thread Alban Bedel
The DDR control initialization needs to know the SoC type, however ath79_detect_sys_type() was called after ath79_ddr_ctrl_init(). Reverse the order to fix the DDR control initialization on ar71xx and ar934x. Signed-off-by: Alban Bedel CC: sta...@vger.kernel.org # v4.2+ --- arch/mips/ath79/setup

Re: [PATCH 14/27] mtd: nand: use the mtd instance embedded in struct nand_chip

2015-11-17 Thread Boris Brezillon
Hi Brian, On Mon, 16 Nov 2015 19:00:19 -0800 Brian Norris wrote: > Hi Boris, > > On Mon, Nov 16, 2015 at 02:37:47PM +0100, Boris Brezillon wrote: > > struct nand_chip now embeds an mtd device. Patch all drivers to make use > > of this mtd instance instead of using the instance embedded in their

Re: [PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-17 Thread Timo Sigurdsson
Hi, Lee Jones schrieb am 17.11.2015 09:07: > On Tue, 17 Nov 2015, Timo Sigurdsson wrote: > >> Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem >> framework") moved the the sunxi SID driver to a new framework, but left >> multi_v7_defconfig with the deprecated config symbol EE

[PATCH 1/5] perf test: Fix 2 bugs in 'perf test BPF'

2015-11-17 Thread Wang Nan
Two bugs in 'perf test BPF' are found when testing BPF prologue without vmlinux: # mv /lib/modules/4.3.0-rc4+/build/vmlinux{,.bak} # ./perf test BPF 37: Test BPF filter :Failed to find the path for kernel: No such file or directory Ok Test BPF should

[PATCH 2/5] perf tools: Use same BPF program if arguments are identical

2015-11-17 Thread Wang Nan
This patch allows creating only one BPF program for different 'probe_trace_event'(tev) generated by one 'perf_probe_event'(pev), if their prologues are identical. This is done by comparing argument list of different tev, and maps type of prologue and tev using a mapping array. This patch utilizes

[PATCH 5/5] perf test: Mute test cases if verbose == 0

2015-11-17 Thread Wang Nan
Sometimes error messages in breaks the pretty output of 'perf test'. For example: # mv /lib/modules/4.3.0-rc4+/build/vmlinux{,.bak} # ./perf test LLVM BPF 35: Test LLVM searching and compiling: 35.1: Basic BPF llvm compiling test : Ok 35.2: Tes

[PATCH 4/5] perf test: Print result for each subtest for BPF

2015-11-17 Thread Wang Nan
This patch prints each sub-tests results for BPF testcases. Before: # ./perf test BPF 37: Test BPF filter : Ok After: # ./perf test BPF 37: Test BPF filter : 37.1: Test basic BPF filtering

[PATCH] regulator: mt6311: MT6311_REGULATOR needs to select REGMAP_I2C

2015-11-17 Thread Henry Chen
This patch fix the below build error: drivers/regulator/mt6311-regulator.c:111: undefined reference to `__devm_regmap_init_i2c' Signed-off-by: Henry Chen --- drivers/regulator/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index

[PATCH 3/5] perf test: Print result for each subtest for llvm

2015-11-17 Thread Wang Nan
Currently 'perf test llvm' and 'perf test BPF' are combined by multiple sub-tests, but the result is only one line: # perf test LLVM 35: Test LLVM searching and compiling: Ok This patch introduces sub-tests support, allows perf test to report result for each sub-tests:

[PATCH 0/5] perf tools: Improve BPF support

2015-11-17 Thread Wang Nan
This patchset is based on Arnaldo's perf/ebpf branch (commit 14dcf0ba2a26f680776093a7a61e74526713f9b2). In response to Arnaldo's comment in [1], in this patch set: Patch 1/5 fixes a bug in BPF testcase which incorrectly returns TEST_OK when failure; Patch 2/5 is resent with some coding style

Re: [PATCH 1/3] dell_wmi: Support new hotkeys on the XPS 13 Skylake

2015-11-17 Thread Pali Rohár
On Saturday 14 November 2015 18:07:57 Andy Lutomirski wrote: > [lots of people added] > > On Sat, Nov 14, 2015 at 8:13 AM, Pali Rohár > wrote: > > On Saturday 14 November 2015 16:48:25 Andy Lutomirski wrote: > >> On Nov 14, 2015 1:27 AM, "Pali Rohár" wrote: > >> > On Friday 13 November 2015 21:4

Kernel panic - not syncing: Fatal exception in interrupt - mainline: 4.4-rc1

2015-11-17 Thread poma
WARNING: CPU: 1 PID: 1 at arch/x86/mm/dump_pagetables.c:225 note_page+0x5e1/0x780() WARNING: CPU: 0 PID: 18 at kernel/cgroup_pids.c:97 pids_cancel.constprop.5+0x31/0x40() Ref. https://bugzilla.redhat.com/show_bug.cgi?id=1282706 -- To unsubscribe from this list: send the line "unsubscribe linux-

Re: [PATCH 6/7] mm/gfp: make gfp_zonelist return directly and bool

2015-11-17 Thread Yaowei Bai
On Mon, Nov 16, 2015 at 09:44:11PM -0800, David Rientjes wrote: > On Tue, 17 Nov 2015, Yaowei Bai wrote: > > > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > > index 6523109..14a6249 100644 > > --- a/include/linux/gfp.h > > +++ b/include/linux/gfp.h > > @@ -378,9 +378,9 @@ static inline

Re: [PATCH 18/27] mtd: nand: update mtd_to_nand()

2015-11-17 Thread Boris Brezillon
On Mon, 16 Nov 2015 19:03:53 -0800 Brian Norris wrote: > On Mon, Nov 16, 2015 at 02:37:51PM +0100, Boris Brezillon wrote: > > Now that all drivers are using the mtd instance embedded in the nand_chip > > Do you have a script that verifies this? I thought you did at some > point, and it'd be nice

Re: [PATCH] pinctrl: mediatek: fix a memleak when do dt maps.

2015-11-17 Thread Daniel Kurtz
On Tue, Nov 17, 2015 at 12:22 PM, Hongzhou Yang wrote: > configs will kmemdup to dup_configs in pictrl util function. > So configs need to be freed. > > Signed-off-by: Hongzhou Yang Reviewed-by: Daniel Kurtz > --- > Fix a memleak issue. > > drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2

[PATCH v2] arm, am335x: add support for the bosch shc board

2015-11-17 Thread Heiko Schocher
add support for the am335x based shc board. UART: 0-2 and 4 DRAM: 512 MiB MMC: OMAP SD/MMC: 0 @ 26 MHz OMAP SD/MMC: 1 @ 26 MHz I2C: at24 eeprom, pcf8563 USB: USB1 (host) Signed-off-by: Heiko Schocher --- The following patches are needed to get all working for the shc board: - disable cl

Re: [PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-17 Thread Krzysztof Kozlowski
2015-11-17 17:01 GMT+09:00 Timo Sigurdsson : > Hi, > > Am Dienstag, den 17.11.2015, 11:10 +0900 schrieb Krzysztof Kozlowski: >> On 17.11.2015 10:49, Timo Sigurdsson wrote: >> > Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem >> > framework") moved the the sunxi SID driver to a

Re: [PATCH v3 2/5] tty: Introduce SER_RS485_SOFTWARE read-only flag for struct serial_rs485

2015-11-17 Thread Matwey V. Kornilov
2015-11-16 22:18 GMT+03:00 Peter Hurley : > On 11/14/2015 10:25 AM, One Thousand Gnomes wrote: >>> I specifically asked for it. >>> >>> I can think of 2 reasons that userspace wants to know: >>> 1. Because the characteristics of the software emulation are unacceptable so >>>the application want

Re: [PATCH 1/2 (v2)] leds-bcm6328: Reuse bcm6328_led_set() instead of copying its functionality

2015-11-17 Thread Jacek Anaszewski
On 11/17/2015 09:06 AM, Jacek Anaszewski wrote: Hi Alvaro, Simon, On 11/17/2015 08:42 AM, Simon Arlott wrote: On 16/11/15 21:33, Álvaro Fernández Rojas wrote: Still wrong, you are setting the led value after unlocking the spinlock. I have to unlock it because bcm6328_led_set() locks that spi

Re: [PATCH v5 02/11] phy: exynos-ufs: add UFS PHY driver for EXYNOS SoC

2015-11-17 Thread Alim Akhtar
Hi Thanks again for looking into this. On 11/17/2015 11:46 AM, Kishon Vijay Abraham I wrote: Hi, On Monday 09 November 2015 10:56 AM, Alim Akhtar wrote: From: Seungwon Jeon This patch introduces Exynos UFS PHY driver. This driver supports to deal with phy calibration and power control accord

[PATCH] scsi_lib: Delete unnecessary checks before two function calls

2015-11-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Nov 2015 09:00:31 +0100 The functions kmem_cache_destroy() and mempool_destroy() test whether their argument is NULL and then return immediately. Thus the tests around their calls are not needed. This issue was detected by using the Coccinelle software. Signed

Re: [PATCH] lib/kobject: fix memory leak in error path of kset_create_and_add()

2015-11-17 Thread Nicolai Stange
Greg Kroah-Hartman writes: > On Tue, Nov 17, 2015 at 01:04:19AM +0100, Nicolai Stange wrote: >> Similar problems exist at all call sites of kset_register(), that is >> in drivers/base, fs/ext4 and in fs/ocfs2. > > Yes, but those calls all succeed, so this isn't a problem in the "real" > world :)

Re: [PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-17 Thread Lee Jones
On Tue, 17 Nov 2015, Timo Sigurdsson wrote: > Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem > framework") moved the the sunxi SID driver to a new framework, but left > multi_v7_defconfig with the deprecated config symbol EEPROM_SUNXI_SID > instead of the new symbold NVMEM_SU

Re: [PATCH 1/2 (v2)] leds-bcm6328: Reuse bcm6328_led_set() instead of copying its functionality

2015-11-17 Thread Jacek Anaszewski
Hi Alvaro, Simon, On 11/17/2015 08:42 AM, Simon Arlott wrote: On 16/11/15 21:33, Álvaro Fernández Rojas wrote: Still wrong, you are setting the led value after unlocking the spinlock. I have to unlock it because bcm6328_led_set() locks that spinlock. Commit message from the first version of

Re: [PATCH] ARM: sunxi: Re-enable SID driver in multi_v7_defconfig

2015-11-17 Thread Timo Sigurdsson
Hi, Am Dienstag, den 17.11.2015, 11:10 +0900 schrieb Krzysztof Kozlowski: > On 17.11.2015 10:49, Timo Sigurdsson wrote: > > Commit 3d0b16a66c8a ("nvmem: sunxi: Move the SID driver to the nvmem > > framework") moved the the sunxi SID driver to a new framework, but left > > multi_v7_defconfig with t

<    5   6   7   8   9   10   11   >