Re: [PATCH] video: fbdev: mb862xx: Fix module autoload for OF platform driver

2015-09-24 Thread Tomi Valkeinen
On 18/09/15 21:46, Luis de Bethencourt wrote: > This platform driver has a OF device ID table but the OF module > alias information is not created so module autoloading won't work. > > Signed-off-by: Luis de Bethencourt > --- > > Hello, > > This patch adds the missing MODULE_DEVICE_TABLE()

Re: [PATCH 2/4] pinctrl: sunxi: add allwinner A83T PIO controller support

2015-09-24 Thread Maxime Ripard
On Wed, Sep 23, 2015 at 12:06:56AM +0800, Chen-Yu Tsai wrote: > > +static const struct sunxi_pinctrl_desc sun8i_a83t_pinctrl_data = { > > + .pins = sun8i_a83t_pins, > > + .npins = ARRAY_SIZE(sun8i_a83t_pins), > > + .irq_banks = 3, > > Do you know if there's a hole at where

[PATCH v4 00/25] dmaengine/ARM: Merge the edma drivers into one

2015-09-24 Thread Peter Ujfalusi
Hi, Changes since v3: - Separated the two (patch 10/11 in v2 patch 10 in v3) patch which got squashed by accident for v3 - Added Tony's Acked-by to patch 11 (for mach-oamp2 part) Changes since v2: - devm_kasprintf format string fixed - Additional patch to enable dynamic paRAM slot usage when

Re: [PATCH] fbdev: broadsheetfb: fix memory leak

2015-09-24 Thread Tomi Valkeinen
On 18/09/15 14:16, Sudip Mukherjee wrote: > On the error path we have missed releasing the firmware. > > Signed-off-by: Sudip Mukherjee > --- > drivers/video/fbdev/broadsheetfb.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/video/fbdev/broadsheetfb.c

[PATCH] HID: multitouch: Do not fetch initial feature reports for Win8 devices

2015-09-24 Thread Mika Westerberg
Some newer Intel Skylake based Dell laptops with Win8 precision touchpad fail when initial feature reports are fetched from it. Below is an example output with some additional debug included: i2c_hid i2c-DLL0704:01: Fetching the HID descriptor i2c_hid i2c-DLL0704:01: __i2c_hid_command: cmd=20

[PATCH v4 01/25] ARM: common: edma: Fix channel parameter for irq callbacks

2015-09-24 Thread Peter Ujfalusi
In case when the interrupt happened for the second eDMA the channel number was incorrectly passed to the client driver. Signed-off-by: Peter Ujfalusi CC: --- arch/arm/common/edma.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/common/edma.c

Re: [PATCH] KVM: x86: fix bogus warning about reserved bits

2015-09-24 Thread Borislav Petkov
On Thu, Sep 24, 2015 at 11:23:08AM +0800, Xiao Guangrong wrote: > >+static inline bool > >+boot_cpu_is_amd(void) > >+{ > >+WARN_ON_ONCE(!tdp_enabled); > >+return shadow_x_mask != 0; > > shadow_x_mask != 0 is Intel's CPU. > > Borislav, could you please check shadow_x_mask == 0 instead and

[PATCH v4 04/25] ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver

2015-09-24 Thread Peter Ujfalusi
Currently we have one device created to handle all (maximum 2) eDMAs in the system. With this change all eDMA instance will have it's own device/driver. This change is needed for further cleanups in the eDMA driver stack since the one device/driver to handle all eDMAs in the system was not

[PATCH v4 08/25] ARM/dmaengine: edma: Remove limitation on the number of eDMA controllers

2015-09-24 Thread Peter Ujfalusi
Since the driver stack no longer depends on lookup with id number in a global array of pointers, the limitation for the number of eDMAs are no longer needed. We can handle as many eDMAs in legacy and DT boot as we have memory for them to allocate the needed structures. Signed-off-by: Peter

[PATCH 2/2] perf tools: Fix copying of /proc/kcore

2015-09-24 Thread Adrian Hunter
A copy of /proc/kcore containing the kernel text can be made to the buildid cache. e.g. perf buildid-cache -v -k /proc/kcore To workaround objdump limitations, a copy is also made when annotating against /proc/kcore. The copying process stops working from libelf about v1.62 onwards (the

[PATCH v4 14/25] dmaengine: edma: Use devm_kcalloc when possible

2015-09-24 Thread Peter Ujfalusi
When allocating a memory for number of items it is better (looks better) to use devm_kcalloc. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 46c0cbf1fe20..f5010c8f6273

RE: [PATCH] perf probe: Fix module probing with shortname

2015-09-24 Thread 平松雅巳 / HIRAMATU,MASAMI
-- Masami HIRAMATSU Linux Technology Research Center, System Productivity Research Dept. Center for Technology Innovation - Systems Engineering Hitachi, Ltd., Research & Development Group E-mail: masami.hiramatsu...@hitachi.com >-Original Message- >From: Arnaldo Carvalho de Melo

[PATCH 1/2] perf intel-pt: Remove no_force_psb from documentation

2015-09-24 Thread Adrian Hunter
no_force_psb was dropped as a late change to the kernel driver. Consequently, remove it from the documentation. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/intel-pt.txt | 15 --- 1 file changed, 15 deletions(-) diff --git a/tools/perf/Documentation/intel-pt.txt

[PATCH v4 12/25] dmaengine: edma: Allocate memory dynamically for bitmaps and structures

2015-09-24 Thread Peter Ujfalusi
Instead of using defines to specify the size of different arrays and bitmaps, allocate the memory for them based on the information we get from the HW itself. Since these defines are set based on the worst case, there are devices where they are not valid. Signed-off-by: Peter Ujfalusi ---

[PATCH v4 13/25] dmaengine: edma: Parameter alignment and long line fixes

2015-09-24 Thread Peter Ujfalusi
Makes the code a bit more readable. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 84 -- 1 file changed, 44 insertions(+), 40 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 49158ab1c798..46c0cbf1fe20 100644

[PATCH v4 06/25] ARM: common: edma: Internal API to use pointer to 'struct edma'

2015-09-24 Thread Peter Ujfalusi
Merge the iomem into the 'struct edma' and change the internal (static) functions to use pointer to the edma_cc instead of the ctlr number. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 400 - 1 file changed, 197 insertions(+), 203

[PATCH v4 03/25] dmaengine: edma: Simplify and optimize the edma_execute path

2015-09-24 Thread Peter Ujfalusi
The code path in edma_execute() and edma_callback() can be simplified and make it more optimal. There is not need to call in to edma_execute() when the transfer has been finished for example. Also the handling of missed/first or next batch of paRAMs can be done in a more optimal way.

[PATCH 0/2] perf tools: Urgent fixes

2015-09-24 Thread Adrian Hunter
Hi Here are a couple of urgent fixes for v4.3. The "Fix copying of /proc/kcore" problem goes back to v3.13 if you think it is important enough for stable. Adrian Hunter (2): perf intel-pt: Remove no_force_psb from documentation perf tools: Fix copying of /proc/kcore

[PATCH v4 15/25] dmaengine: edma: Cleanup regarding the use of dev around the code

2015-09-24 Thread Peter Ujfalusi
Be consistent and do not mix the use of dev, >dev, etc in the functions. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index f5010c8f6273..2332142c36db

[PATCH v4 09/25] ARM: davinci: Use platform_device_register_full() to create pdev for eDMA

2015-09-24 Thread Peter Ujfalusi
Convert the eDMA platform device creation to use struct platform_device_info XX __initconst and platform_device_register_full() This will allow us to cleanly specify the dma_mask for the devices in an upcoming patch. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/devices-da8xx.c |

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread David Woodhouse
On Thu, 2015-09-24 at 12:55 +0300, Michael S. Tsirkin wrote: > > I'm fine with this patch > > Acked-by: Michael S. Tsirkin Thanks. In fact Dave has already merged it. > but if you want to re-work it along the lines suggested > by Greg, that's also fine with me. If I'm going to define my own

[PATCH] drm: drm_atomic_crtc_get_property should be static

2015-09-24 Thread Geliang Tang
Fixes the following sparse warning: drivers/gpu/drm/drm_atomic.c:442:5: warning: symbol 'drm_atomic_crtc_get_property' was not declared. Should it be static? Signed-off-by: Geliang Tang --- drivers/gpu/drm/drm_atomic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v4 20/25] dmaengine: edma: Simplify the interrupt handling

2015-09-24 Thread Peter Ujfalusi
With the merger of the arch/arm/common/edma.c code into the dmaengine driver, there is no longer need to have per channel callback/data storage for interrupt events. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 447 - 1 file changed,

[PATCH v4 11/25] ARM/dmaengine: edma: Merge the two drivers under drivers/dma/

2015-09-24 Thread Peter Ujfalusi
Move the code out from arch/arm/common and merge it inside of the dmaengine driver. This change is done with as minimal change to the code as possible to avoid any possibilities to introducing regression. Signed-off-by: Peter Ujfalusi Acked-by: Tony Lindgren --- arch/arm/Kconfig

[PATCH v4 18/25] dmaengine: edma: Print warning when linking slots from different eDMA

2015-09-24 Thread Peter Ujfalusi
Warning message in case of linking between paRAM slots in different eDMA controllers. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index d759abc80bef..b0102984e98d 100644 ---

[PATCH v4 22/25] dmaengine: edma: Simplify and optimize ccerr interrupt handler

2015-09-24 Thread Peter Ujfalusi
No need to run through the bits in QEMR and CCERR events since they will not trigger any action, so just clearing the errors there is fine. In case of the missed event the loop can be optimized so we spend less time to handle the event. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 64

[PATCH v4 19/25] dmaengine: edma: Consolidate the comments for functions

2015-09-24 Thread Peter Ujfalusi
Remove or rewrite the comments for the internal functions. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 86 +++--- 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index

Re: [PATCH] powercap / RAPL : remove dependency on iosf_mbi

2015-09-24 Thread Pengyu Ma
On 09/23/2015 01:01 AM, Jacob Pan wrote: On Tue, 22 Sep 2015 11:11:36 +0800 Pengyu Ma wrote: On 09/22/2015 05:36 AM, Jacob Pan wrote: On Mon, 21 Sep 2015 11:48:14 +0800 Pengyu Ma wrote: On 09/18/2015 11:43 PM, Jacob Pan wrote: On Fri, 18 Sep 2015 02:09:55 +0200 "Rafael J. Wysocki"

[PATCH v4 16/25] dmaengine: edma: Use dev_dbg instead pr_debug

2015-09-24 Thread Peter Ujfalusi
We have access to dev, so it is better to use the dev_dbg for debug prints. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 2332142c36db..fe8cde21b497

[PATCH v4 10/25] ARM: davinci: Add dma_mask to eDMA devices

2015-09-24 Thread Peter Ujfalusi
The upcoming change to merge the arch/arm/common/edma.c into drivers/dma/edma.c will need this change when booting daVinci devices in no DT mode. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-davinci/devices-da8xx.c | 2 ++ arch/arm/mach-davinci/dm355.c | 1 +

[PATCH v4 17/25] dmaengine: edma: Use the edma_write_slot instead open coded memcpy_toio

2015-09-24 Thread Peter Ujfalusi
edma_write_slot() is for writing an entire paRAM slot. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index fe8cde21b497..d759abc80bef 100644 --- a/drivers/dma/edma.c +++

[PATCH v4 25/25] dmaengine: edma: Dynamic paRAM slot handling if HW supports it

2015-09-24 Thread Peter Ujfalusi
If the eDMA3 has support for channel paRAM slot mapping we can utilize it to allocate slots on demand and save precious slots for real transfers. On am335x the eDMA has 64 channels which means we can unlock 64 paRAM slots out from the available 256. Signed-off-by: Peter Ujfalusi ---

[PATCH v4 23/25] dmaengine: edma: Read channel mapping support only once from HW

2015-09-24 Thread Peter Ujfalusi
Instead of directly reading it from CCCFG register take the information out once when we set up the configuration from the HW. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v4 24/25] dmaengine: edma: Rename bitfields for slot and channel usage tracking

2015-09-24 Thread Peter Ujfalusi
The names chosen for the bitfields were quite confusing and given no real information on what they are used for... edma_inuse -> slot_inuse: tracks the slot usage/availability edma_unused -> channel_unused: tracks the channel usage/availability Signed-off-by: Peter Ujfalusi ---

[PATCH v4 21/25] dmaengine: edma: Move the pending error check into helper function

2015-09-24 Thread Peter Ujfalusi
In the ccerr interrupt handler the code checks for pending errors in the error status registers in two different places. Move the check out to a helper function. Signed-off-by: Peter Ujfalusi --- drivers/dma/edma.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)

[PATCH v4 07/25] ARM/dmaengine: edma: Public API to use private struct pointer

2015-09-24 Thread Peter Ujfalusi
Instead of relying on indexes pointing to edma private date in the global pointer array, pass the private data pointer via the public API. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 305 ++--- drivers/dma/edma.c | 79

[PATCH v4 05/25] ARM/dmaengine: edma: Move of_dma_controller_register to the dmaengine driver

2015-09-24 Thread Peter Ujfalusi
If the of_dma_controller is registered in the non dmaengine driver we could have race condition: the of_dma_controller has been registered, but the dmaengine driver is not yet probed. Drivers requesting DMA channels during this window will fail since we do not yet have dmaengine drivers

[PATCH v4 02/25] ARM: common: edma: Remove unused functions

2015-09-24 Thread Peter Ujfalusi
We no longer have users for these functions so they can be removed. Remove also unused enums from the header file. Signed-off-by: Peter Ujfalusi --- arch/arm/common/edma.c | 376 - include/linux/platform_data/edma.h | 33 2 files changed,

Re: [PATCH] perf/probe: Search both .eh_frame and .debug_frame sections for probe location

2015-09-24 Thread Mark Wielaard
Hi Hemant, On Thu, 2015-09-24 at 07:46 +0530, Hemant Kumar wrote: > perf probe through debuginfo__find_probes() in util/probe-finder.c > checks for the functions' frame descriptions in either .eh_frame section > of an ELF or the .debug_frame. The check is based on whether either one > of these

Re: [PATCH v3 10/24] ARM: davinci: Add set dma_mask to eDMA devices

2015-09-24 Thread Peter Ujfalusi
On 09/23/2015 08:25 PM, Tony Lindgren wrote: > * Peter Ujfalusi [150922 03:01]: >> The upcoming change to merge the arch/arm/common/edma.c into >> drivers/dma/edma.c will need this change when booting daVinci devices in >> no DT mode. >> >> Signed-off-by: Peter Ujfalusi >> --- >>

[PATCHv2] zram: update documentation

2015-09-24 Thread Sergey Senozhatsky
From: Sergey SENOZHATSKY Several documentation changes. First, we never mentioned any errors and never required any error checks in documentation. Second, mention that there is another way to configure and manage zram devices -- zramctl, provided by util-linux. Third, add a bit of

Re: [PATCH] zram: update documentation

2015-09-24 Thread Sergey Senozhatsky
On (09/24/15 18:50), Sergey Senozhatsky wrote: [..] > +There are several ways to configure and manage zram device(-s): > +a) using zram and zram_control sysfs attributes > +b) using zramctl utility, provided by util-linux > (util-li...@vger.kernel.org). > + > +In this document we will describe

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread Michael S. Tsirkin
On Wed, Sep 23, 2015 at 07:45:08PM +0100, David Woodhouse wrote: > Commit 7d82410950aa ("virtio: add explicit big-endian support to memory > accessors") accidentally changed the virtio_net header used by > AF_PACKET with PACKET_VNET_HDR from host-endian to big-endian. > > Since

[PATCH] zram: keep the exact overcommited value in mem_used_max

2015-09-24 Thread Sergey Senozhatsky
From: Sergey SENOZHATSKY `mem_used_max' is designed to store the max amount of memory zram consumed to store the data. However, it does not represent the actual 'overcommited' (max) value. The existing code goes to -ENOMEM overcommited case before it updates `->stats.max_used_pages', which hides

[PATCH] zram: update documentation

2015-09-24 Thread Sergey Senozhatsky
From: Sergey SENOZHATSKY Several documentation changes. First, we never mentioned any errors and never required any error checks in documentation. Second, mention that there is another way to configure and manage zram devices -- zramctl, provided by util-linux. Third, add a bit of

Re: [PATCH 0/3] ALSA: hda - Avoid potential deadlock

2015-09-24 Thread Takashi Iwai
On Wed, 23 Sep 2015 11:03:44 +0200, Takashi Iwai wrote: > > On Thu, 17 Sep 2015 12:00:03 +0200, > Thierry Reding wrote: > > > > From: Thierry Reding > > > > The Tegra HDA controller driver committed in v3.16 causes deadlocks when > > loaded as a module. The reason is that the driver core will

Re: [PATCH v2] Fix AF_PACKET ABI breakage in 4.2

2015-09-24 Thread Michael S. Tsirkin
On Thu, Sep 24, 2015 at 09:25:45AM +0200, Greg Kurz wrote: > On Wed, 23 Sep 2015 19:45:08 +0100 > David Woodhouse wrote: > > > Commit 7d82410950aa ("virtio: add explicit big-endian support to memory > > accessors") accidentally changed the virtio_net header used by > > AF_PACKET with

Re: [PATCH 26/26] x86, pkeys: Documentation

2015-09-24 Thread Ingo Molnar
* Dave Hansen wrote: > > Another question, related to enumeration as well: I'm wondering whether > > there's any way for the kernel to allocate a bit or two for its own > > purposes - > > such as protecting crypto keys? Or is the facility fundamentally intended > > for > > user-space use

[PATCH net-next] net: Fix Hisilicon Network Subsystem Support Compilation

2015-09-24 Thread huangdaode
This patch fixes the compilation error with arm allmodconfig, this error generated due to unavailability of readq on 32-bit platform which was found during net-next daily compilation Signed-off-by: huangdaode Singed-off-by: yankejian --- drivers/net/ethernet/hisilicon/Kconfig | 3 +++ 1 file

Re: [RFC PATCH 2/2] usb: phy: Add platform driver support for ULPI PHYs

2015-09-24 Thread Peter Chen
On Thu, Sep 24, 2015 at 09:21:16AM +, Subbaraya Sundeep Bhatta wrote: > > > +uphy->flags); > > > + > > > + uphy->usb_phy->set_vbus = usbphy_set_vbus; > > > > When you will call it? > > I am calling it in host.c and otg_fsm.c of Chipidea driver wherever > regulator_enable/disable is called to

RE: [PATCH 1/3][v4] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property

2015-09-24 Thread RAJESH BHAGAT
Hi Felipe, Any comments on the below [v4] patches? [PATCH 1/3][v4] Documentation: dt: dwc3: Add snps,quirk-frame-length-adjustment property [PATCH 2/3][v4] drivers: usb: dwc3: Add frame length adjustment quirk [PATCH 3/3][v4] arm: dts: ls1021a: Add quirk for Erratum A009116 I will be taking

RE: [RFC PATCH 1/2] usb: doc: Add bindings for ULPI platform driver

2015-09-24 Thread Subbaraya Sundeep Bhatta
Hi Peter, > -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: Thursday, September 24, 2015 2:41 PM > To: Subbaraya Sundeep Bhatta > Cc: ba...@ti.com; devicet...@vger.kernel.org; kis...@ti.com; > gre...@linuxfoundation.org; linux-...@vger.kernel.org; linux- >

[RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-09-24 Thread Yang Yingliang
When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, the old affinity need to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, the old affinity can not be updated. Fix it by using irq_do_set_affinity. And migrating

[PATCH linux-next v10 1/3] mfd: atmel-flexcom: create include file with macros used by DT bindings

2015-09-24 Thread Cyrille Pitchen
This patch defines some macros to be used as value for the "atmel,flexcom-mode" DT property. This value is then written into the Operating Mode (OPMODE) bit field of the Flexcom Mode Register. Signed-off-by: Cyrille Pitchen Acked-by: Nicolas Ferre --- include/dt-bindings/mfd/atmel-flexcom.h |

[PATCH linux-next v10 2/3] mfd: devicetree: add bindings for Atmel Flexcom

2015-09-24 Thread Cyrille Pitchen
This patch documents the DT bindings for the Atmel Flexcom which will be introduced by sama5d2x SoCs. These bindings will be used by the actual Flexcom driver to be sent in another patch. Signed-off-by: Cyrille Pitchen Acked-by: Boris Brezillon Acked-by: Alexandre Belloni Acked-by: Nicolas

[PATCH linux-next v10 3/3] mfd: atmel-flexcom: add a driver for Atmel Flexible Serial Communication Unit

2015-09-24 Thread Cyrille Pitchen
This driver supports the new Atmel Flexcom. The Flexcom is a wrapper which integrates one SPI controller, one I2C controller and one USART. Only one function can be enabled at a time. This driver selects the function once for all, when the Flexcom is probed, according to the value of the new

[RFC PATCH v6 3/3] arm: fix a migrating irq bug when hotplug cpu

2015-09-24 Thread Yang Yingliang
When cpu is disabled, all irqs will be migratged to another cpu. In some cases, a new affinity is different, the old affinity need to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, the old affinity can not be updated. Fix it by using irq_do_set_affinity. And migrating

[PATCH linux-next v10 0/3] mfd: flexcom: add a driver for Flexcom

2015-09-24 Thread Cyrille Pitchen
This series of patches a support to the Atmel Flexcom, a wrapper which integrates an USART, a SPI controller and a TWI controller. Only one peripheral can be used at a time. The active function is selected though the Flexcom Mode Register ChangeLog v10: - add Acked-by from Nicolas Ferre v9: -

[RFC PATCH v6 1/3] genirq: introduce CONFIG_GENERIC_IRQ_MIGRATION and kernel/irq/cpuhotplug.c

2015-09-24 Thread Yang Yingliang
Add migrating interrupts code to a new file kernel/irq/cpuhotplug.c and make it depends on CONFIG_GENERIC_IRQ_MIGRATION. So we can use it to migrate interrupts, before cpu is offline. Cc: Jiang Liu Cc: Thomas Gleixner Cc: Marc Zyngier Cc: Mark Rutland Cc: Will Deacon Cc: Russell King - ARM

[RFC PATCH v6 0/3] arm/arm64: fix a migrating irq bug when hotplug cpu

2015-09-24 Thread Yang Yingliang
Changes in v6: - Don't touch the existing file kernel/irq/migration.c and add migrating interrupts code to a new file kernel/irq/cpuhotplug.c suggested by Thomas. - Change some comments in patch #2 and #3. Changes in v5: - remove the macro that guard move_irqs() - use name

Re: [PATCH 10/26] x86, pkeys: notify userspace about protection key faults

2015-09-24 Thread Ingo Molnar
* Ingo Molnar wrote: > > --- a/include/uapi/asm-generic/siginfo.h~pkeys-09-siginfo 2015-09-16 > > 10:48:15.584161859 -0700 > > +++ b/include/uapi/asm-generic/siginfo.h2015-09-16 10:48:15.59216 > > -0700 > > @@ -95,6 +95,13 @@ typedef struct siginfo { > >

Re: [PATCH 1/3] EDAC, ghes_edac: Remove redundant memory_type array

2015-09-24 Thread Borislav Petkov
On Wed, Sep 16, 2015 at 03:53:29PM -0500, Aravind Gopalakrishnan wrote: > We already have edac_mem_types[] that enumerates the different > kinds of memory. So, use that and remove the redundant > memory_type[] array here. > > Signed-off-by: Aravind Gopalakrishnan > --- >

Re: [PATCH 10/26] x86, pkeys: notify userspace about protection key faults

2015-09-24 Thread Ingo Molnar
* Dave Hansen wrote: > A protection key fault is very similar to any other access > error. There must be a VMA, etc... We even want to take > the same action (SIGSEGV) that we do with a normal access > fault. > > However, we do need to let userspace know that something > is different. We do

RE: [RFC PATCH 2/2] usb: phy: Add platform driver support for ULPI PHYs

2015-09-24 Thread Subbaraya Sundeep Bhatta
Hi Peter, > -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: Thursday, September 24, 2015 2:37 PM > To: Subbaraya Sundeep Bhatta > Cc: ba...@ti.com; devicet...@vger.kernel.org; kis...@ti.com; > gre...@linuxfoundation.org; linux-...@vger.kernel.org; linux- >

Re: [PATCH 22/31] fs/ntfs: use kmemdup rather than duplicating its implementation

2015-09-24 Thread Anton Altaparmakov
> On 24 Sep 2015, at 10:20, Anton Altaparmakov wrote: > > Hi Andrzej, > >> On 24 Sep 2015, at 09:34, Andrzej Hajda wrote: >> >> On 09/23/2015 12:21 PM, Anton Altaparmakov wrote: >>> Hi Andrzej, >>> >>> Thanks for your patch. It looks fine though I don't quite see the point of >>> it to be

Re: [PATCH 22/31] fs/ntfs: use kmemdup rather than duplicating its implementation

2015-09-24 Thread Anton Altaparmakov
Hi Andrzej, > On 24 Sep 2015, at 09:34, Andrzej Hajda wrote: > > On 09/23/2015 12:21 PM, Anton Altaparmakov wrote: >> Hi Andrzej, >> >> Thanks for your patch. It looks fine though I don't quite see the point of >> it to be honest. >> >> It actually adds an additional function call

Re: [regression] Re: [Linux-v4.2-10463-g9a9952bbd76a] i915: WARNING: intel_display.c:1377 assert_planes_disabled

2015-09-24 Thread Jani Nikula
On Thu, 24 Sep 2015, Sedat Dilek wrote: > On Wed, Sep 23, 2015 at 9:18 AM, Daniel Vetter wrote: >> Adding Jairo to track this regression. > > Hi, > > commit 721a09f7393de6c28a07516dccd654c6e995944a > "drm/i915: Add primary plane to mask if it's visible" > > ...pending in

Re: [PATCH 2/3] EDAC, amd64_edac: Extend scrub rate programmability feature for F15hM60h

2015-09-24 Thread Borislav Petkov
On Wed, Sep 16, 2015 at 03:53:30PM -0500, Aravind Gopalakrishnan wrote: > For F15h M60h processor, the scrub rate control register has moved > to F2 of PCI config space and is at a different offset from > earlier processors. The minimun recommended scrub rate is also different. > (Refer

Re: [PATCH 2/2] acpi-dma: Add support for "dma-names" device property

2015-09-24 Thread Mika Westerberg
On Tue, Sep 15, 2015 at 01:19:59AM +0200, Rafael J. Wysocki wrote: > On Monday, September 14, 2015 05:37:36 PM Mika Westerberg wrote: > > The current implementation hard codes the two supported channels so that > > "tx" is always 0 and "rx" is always 1. This is because there has been no > >

Re: [RFC PATCH 1/2] usb: doc: Add bindings for ULPI platform driver

2015-09-24 Thread Peter Chen
On Wed, Sep 23, 2015 at 06:24:01PM +0530, Subbaraya Sundeep Bhatta wrote: > This patch adds binding doc info for generic ULPI PHYs > platform driver. > > Signed-off-by: Subbaraya Sundeep Bhatta > --- > .../devicetree/bindings/usb/ulpi-platform-phy.txt | 34 > > 1 files

[PATCH] i2c: designware: Do not use parameters from ACPI on Dell Inspiron 7348

2015-09-24 Thread Mika Westerberg
ACPI SSCN/FMCN methods were originally added because then the platform can provide the most accurate HCNT/LCNT values to the driver. However, this seems not to be true for Dell Inspiron 7348 where using these causes the touchpad to fail in boot: i2c_hid i2c-DLL0675:00: failed to retrieve report

Re: [RFC PATCH 2/2] usb: phy: Add platform driver support for ULPI PHYs

2015-09-24 Thread Peter Chen
On Wed, Sep 23, 2015 at 06:24:33PM +0530, Subbaraya Sundeep Bhatta wrote: > Based on board design USB controller needs explicit software > access to ULPI PHY for controlling VBUS. This patch adds platform > driver support for generic ULPI PHYs and provides a USB2 PHY device > to controllers. > >

[PATCH] dmaengine: fix balance of privatecnt

2015-09-24 Thread Peter Ujfalusi
dma_release_channel() decrements privatecnt counter and almost all dma_get* function increments it with the exception of dma_get_slave_channel(). In most cases this does not cause issue since normally the channel is not requested and released, but if a driver requests DMA channel via

[PATCH v2] media: vb2: Fix vb2_dc_prepare do not correct sync data to device

2015-09-24 Thread Tiffany Lin
Change in v2: Apply same fix to videobuf2-dma-sg -- 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/lkml/

[PATCH v2] media: vb2: Fix vb2_dc_prepare do not correct sync data to device

2015-09-24 Thread Tiffany Lin
vb2_dc_prepare use the number of SG entries dma_map_sg_attrs return. But in dma_sync_sg_for_device, it use lengths of each SG entries before dma_map_sg_attrs. dma_map_sg_attrs will concatenate SGs until dma length > dma seg bundary. sgt->nents will less than sgt->orig_nents. Using SG entries after

Re: [PATCH] dax: fix deadlock in __dax_fault

2015-09-24 Thread Boaz Harrosh
On 09/24/2015 05:52 AM, Dave Chinner wrote: > On Wed, Sep 23, 2015 at 02:40:00PM -0600, Ross Zwisler wrote: >> Fix the deadlock exposed by xfstests generic/075. Here is the sequence >> that was causing us to deadlock: >> >> 1) enter __dax_fault() >> 2) page = find_get_page() gives us a page, so

Re: [PATCH 5/9] perf, tools, stat: Move noise/running printing into printout

2015-09-24 Thread Jiri Olsa
On Mon, Sep 21, 2015 at 04:50:00PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Move the running/noise printing into printout to avoid > duplicated code in the callers. > > v2: Merged with other patches. Remove unnecessary hunk. > Readd hunk that ended in earlier patch. > Signed-off-by: Andi

Re: [PATCH] Staging: rtl8712: rtl871x_mp.h: Coding style warnings fix for block comment

2015-09-24 Thread Dan Carpenter
On Thu, Sep 24, 2015 at 01:54:22AM +0530, Punit Vara wrote: > This is a patch to the rtl871x_mp.h that fixes up following warnings > reported by checkpatch.pl : > > -Block comments use a trailing */ on a separate line > > Signed-off-by: Punit Vara > --- > drivers/staging/rtl8712/rtl871x_mp.h |

Re: [PATCH 1/3] iio:adc: add iio driver for Palmas (twl6035/7) gpadc

2015-09-24 Thread H. Nikolaus Schaller
Am 23.09.2015 um 15:26 schrieb Peter Meerwald : > >> This driver code was found as: >> >> https://android.googlesource.com/kernel/tegra/+/aaabb2e045f31e5a970109ffdaae900dd403d17e/drivers/staging/iio/adc >> >> Fixed various compilation issues and test this driver on omap5 evm. > > several

[PATCH net-next] net: remove unused argument of __netdev_find_adj()

2015-09-24 Thread Michal Kubecek
The __netdev_find_adj() helper does not use its first argument, only the device to find and list to walk through. Signed-off-by: Michal Kubecek --- net/core/dev.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index

Re: linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2015-09-24 Thread Jani Nikula
On Thu, 24 Sep 2015, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the drm-intel tree got a conflict in: > > drivers/gpu/drm/i915/intel_display.c > > between commit: > > 721a09f7393d ("drm/i915: Add primary plane to mask if it's visible") > > from the drm-intel-fixes tree

[PATCH] Documentation: Update the default value of crashkernel low

2015-09-24 Thread Baoquan He
In commit 94fb933 ("x86/crash: Allocate enough low memory when crashkernel=high") the default value of crashkernel low memory is changed to 256M. In this patch update it accordingly. Signed-off-by: Baoquan He --- Documentation/kernel-parameters.txt | 6 -- 1 file changed, 4 insertions(+), 2

Re: [PATCH v2] dax: fix NULL pointer in __dax_pmd_fault()

2015-09-24 Thread Boaz Harrosh
On 09/23/2015 12:04 PM, Dave Chinner wrote: > On Tue, Sep 22, 2015 at 08:00:29PM -0700, Dan Williams wrote: <> >> The kaddr is coming from the devm_memremap() in the pmem driver that >> gets unmapped after the device is released by the driver. > > Perhaps the better solution is to not tear down

Re: gpios search behaviour for gpio from _DSD

2015-09-24 Thread Mika Westerberg
On Thu, Sep 24, 2015 at 09:25:06AM +0200, Olliver Schinagl wrote: > Hey list, Mika, > > With commit 0d9a693cc86 the following snippet of code was added: > > + /* Try first from _DSD */ > + for (i = 0; i < ARRAY_SIZE(suffixes); i++) { > + if (con_id && strcmp(con_id,

RE: [PATCH cgroup/for-4.3-fixes] cgroup, writeback: don't enable cgroup writeback on traditional hierarchies

2015-09-24 Thread Dexuan Cui
> On Wed, 2015-09-23 at 17:07 -0400, Tejun Heo wrote: > > Hello, > > > > So, this should make the regression go away. It doesn't fix the > > underlying bugs but they shouldn't get triggered by people not > > experimenting with cgroup. > > Tejun, > > this hits the nail on the head and makes the

Re: [PATCH 0/6] Implement generic IPI support mechanism

2015-09-24 Thread Qais Yousef
On 09/23/2015 05:54 PM, Jiang Liu wrote: On 2015/9/23 22:49, Qais Yousef wrote: This RFC series attempts to implement a generic IPI layer for reserving and sending IPI. It is based on the discussion in this link https://lkml.org/lkml/2015/8/26/713 This series deals with points #1

Re: [PATCH] Add FS_CLOSE_READ and FS_CLOSE_NOREAD flag to fsnotify

2015-09-24 Thread Jan Kara
On Wed 23-09-15 20:32:02, Patrick Puzik wrote: > 1)They should be additionly sent. But at this point in time, there is > no possibility to get directly notified if a readable writable was > closed. Using these flags in combination with the existing ones is a > way to handle this lack of

Re: [PATCH 22/31] fs/ntfs: use kmemdup rather than duplicating its implementation

2015-09-24 Thread Andrzej Hajda
On 09/23/2015 12:21 PM, Anton Altaparmakov wrote: > Hi Andrzej, > > Thanks for your patch. It looks fine though I don't quite see the point of > it to be honest. > > It actually adds an additional function call (kmemdup() is not inline) just > to save 1 line of source code in the driver and I

[PATCH 1/1] clk: add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-09-24 Thread Paul Osmialowski
From: Paul Osmialowski These two functions were added to ease management of clocks obtained from OF device nodes. Signed-off-by: Paul Osmialowski --- drivers/clk/clk-devres.c | 46 ++ include/linux/clk.h | 20 2 files

[PATCH 0/1] add devm_of_clk_get() and devm_of_clk_get_by_name() functions

2015-09-24 Thread Paul Osmialowski
From: Paul Osmialowski While working on my pinctrl driver I've found lack of devres compatible equivalent for of_clk_get() function. I'd like to use it for the following (incomplete) piece of device tree configuration: pinctrl: pinctrl { compatible = "fsl,kinetis-pinctrl";

Re: [PATCH] perf probe: Fix module probing with shortname

2015-09-24 Thread pi3orama
发自我的 iPhone > 在 2015年9月24日,上午10:05,Arnaldo Carvalho de Melo 写道: > > Em Wed, Sep 23, 2015 at 10:50:08PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Sep 23, 2015 at 01:03:19PM -0300, Arnaldo Carvalho de Melo escreveu: >>> Em Tue, Sep 22, 2015 at 11:49:02PM -0300, Arnaldo Carvalho de

Re: [PATCH 4/6] irq: add a new generic IPI handling code to irq core

2015-09-24 Thread Qais Yousef
On 09/23/2015 05:50 PM, Jiang Liu wrote: On 2015/9/23 22:49, Qais Yousef wrote: +/** + * irq_reserve_ipi() - setup an IPI to destination cpumask + * @domain: IPI domain + * @dest: cpumask of cpus to receive the IPI + * @devid: devid that requested the reservation + * + * Allocate a virq that

Re: [PATCH 2/2] MIPS: initialise MAARs on secondary CPUs

2015-09-24 Thread Markos Chandras
On 09/22/2015 08:08 PM, Paul Burton wrote: > MAARs should be initialised on each CPU (or rather, core) in the system > in order to achieve consistent behaviour & performance. Previously they > have only been initialised on the boot CPU which leads to performance > problems if tasks are later

Re: [linux-sunxi] Re: [PATCH v4 2/5] soc: sunxi: Add driver for Allwinner Reduced Serial Bus

2015-09-24 Thread Chen-Yu Tsai
On Thu, Sep 24, 2015 at 12:45 AM, Mark Brown wrote: > On Thu, Sep 24, 2015 at 12:05:18AM +0800, Chen-Yu Tsai wrote: > >> +static int sunxi_rsb_device_probe(struct device *dev) >> +{ >> + const struct sunxi_rsb_driver *drv = to_sunxi_rsb_driver(dev->driver); >> + struct sunxi_rsb_device

Re: [Linux v4.2] workqueue: llvmlinux: acpid: BUG: sleeping function called from invalid context at kernel/workqueue.c:2680

2015-09-24 Thread Jiri Kosina
On Thu, 24 Sep 2015, Sedat Dilek wrote: > >> > >> [ 24.705767] [] dump_stack+0x7d/0xa0 > >> > >> [ 24.705774] [] ___might_sleep+0x28a/0x2a0 > >> > >> [ 24.705779] [] __might_sleep+0x4f/0xc0 > >> > >> [ 24.705784] [] start_flush_work+0x2f/0x290 > >> > >> [ 24.705789] []

Re: [PATCH v2] lib: Documentation: Synchronize %p formatting documentation

2015-09-24 Thread Shevchenko, Andriy
On Thu, 2015-09-24 at 11:16 +0300, Andy Shevchenko wrote: > On Thu, 2015-09-24 at 10:08 +0200, Martin Kletzander wrote: > > Move all pointer-formatting documentation to one place in the code > > and > > one place in the documentation instead of keeping it in three > > places > > with different

RE: [PATCH 3/3] irqchip/GICv2m: Fix GICv2m build warning on 32 bits

2015-09-24 Thread Pavel Fedin
Hello! > From: Pavel Fedin > > After GICv2m was enabled for 32-bit ARM kernel, a warning popped up: Thank you for the cooperation, i'm now back from my vacation. What about the first patch in the series, which actually enables GICv2m on 32 bits? I don't see it anywhere, neither there are

Re: [PATCH RFC 00/10] counter read during perf sampling

2015-09-24 Thread Jiri Olsa
On Tue, Sep 22, 2015 at 10:13:33AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > The patch series intends to read counter statistics with fixed frequency > during sampling. The instant benefit is that we can read memory bandwidth > from uncore event during cpu PMU event is sampling. >

Re: [PATCH v2] lib: Documentation: Synchronize %p formatting documentation

2015-09-24 Thread Andy Shevchenko
On Thu, 2015-09-24 at 10:08 +0200, Martin Kletzander wrote: > Move all pointer-formatting documentation to one place in the code > and > one place in the documentation instead of keeping it in three places > with different level of completeness. Documentation/printk > -formats.txt > has detailed

Re: [PATCH 2/2] ext4: implement cgroup writeback support

2015-09-24 Thread Artem Bityutskiy
On Wed, 2015-09-23 at 16:48 -0400, Theodore Ts'o wrote: > On Wed, Sep 23, 2015 at 10:47:16PM +0300, Artem Bityutskiy wrote: > > And, by the way, I forgot this detail - I cut AC power off at the > > end, then put it back on after a 20 seconds delay. I mean, this is > > a > > clean reboot, but with

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