[PATCH v2] crypto: AES-NI - fix memory usage in GCM decryption

2015-03-12 Thread Stephan Mueller
The kernel crypto API logic requires the caller to provide the length of (ciphertext || authentication tag) as cryptlen for the AEAD decryption operation. Thus, the cipher implementation must calculate the size of the plaintext output itself and cannot simply use cryptlen. The RFC4106 GCM

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-12 Thread Octavian Purdila
On Wed, Mar 11, 2015 at 6:36 PM, Daniel Baluta daniel.bal...@intel.com wrote: As written in Documentation/ABI/testing/sysfs-bus-iio the trigger attribute for sampling frequency should be sampling_frequency. Fix this for iio-trig-periodic-rtc module in order to prepare it for moving out of

Re: [PATCH v2] drm/i915: Fix BUG in i915_gem.c when switch to console

2015-03-12 Thread Jani Nikula
On Thu, 12 Mar 2015, Xi Ruoyao xry...@outlook.com wrote: In intel_crtc_page_flip, intel_display.c, the code changed the framebuffer assigned to plane crtc-primary by crtc-primary-fb = fb; However, it forgot to change crtc-primary-state-fb. However, when we switch to console, some kernel

[RESEND PATCH v6 00/22] power_supply: Allow safe usage of power supply

2015-03-12 Thread Krzysztof Kozlowski
Hi, Resending patchset because it was filtered out by vger.kernel.org. The patchset fixes invalid memory accesses in certain race scenarios by moving ownership of struct power_supply to the core. All drivers are modified. TLDR for driver and subsystem maintainers

[RESEND PATCH v6 21/22] mfd: ab8500: Decrement the power supply's device reference counter

2015-03-12 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Acked-by: Linus Walleij linus.wall...@linaro.org Acked-by: Lee Jones lee.jo...@linaro.org Reviewed-by: Bartlomiej

[RESEND PATCH v6 04/22] power_supply: Move run-time configuration to separate structure

2015-03-12 Thread Krzysztof Kozlowski
Add new structure 'power_supply_config' for holding run-time initialization data like of_node, supplies and private driver data. The power_supply_register() function is changed so all power supply drivers need updating. When registering the power supply this new 'power_supply_config' should be

[RESEND PATCH v6 07/22] power_supply: 88pm860x_charger: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property - set_property - power_supply_set_property Signed-off-by: Krzysztof

[RESEND PATCH v6 12/22] power_supply: charger-manager: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

Re: [PATCH] mm/memory hotplog: postpone the reset of obsolete pgdat

2015-03-12 Thread Xishi Qiu
On 2015/3/12 13:10, David Rientjes wrote: On Thu, 12 Mar 2015, Gu Zheng wrote: Qiu Xishi reported the following BUG when testing hot-add/hot-remove node under stress condition. [ 1422.011064] BUG: unable to handle kernel paging request at 00025f60 [ 1422.011086] IP:

[RESEND PATCH v6 14/22] power_supply: Add power_supply_put for decrementing device reference counter

2015-03-12 Thread Krzysztof Kozlowski
The power_supply_get_by_phandle() and power_supply_get_by_name() use function class_find_device() for obtaining the reference to power supply. Each use of class_find_device() increases the power supply's device reference counter. However the reference counter was not decreased by users of this

[RESEND PATCH v6 03/22] power_supply: Add driver private data

2015-03-12 Thread Krzysztof Kozlowski
Allow drivers to store private data inside power_supply structure for later usage in power supply operations. Usage of driver private data is necessary to access driver's state container object from power supply calls (like get_property()) if struct 'power_supply' is a stored there as a pointer,

[RESEND PATCH v6 18/22] x86/olpc/xo15/sci: Use newly added power_supply_put API

2015-03-12 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[RESEND PATCH v6 11/22] power_supply: bq2415x_charger: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

[RESEND PATCH v6 22/22] arm: mach-pxa: Decrement the power supply's device reference counter

2015-03-12 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org Acked-by: Robert Jarzmik

[RESEND PATCH v6 08/22] power_supply: ab8500: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

Re: [PATCH 1/7] blk-mq: fix use of incorrect goto label in blk_mq_init_queue error path

2015-03-12 Thread Ming Lei
On Thu, Mar 12, 2015 at 11:56 AM, Mike Snitzer snit...@redhat.com wrote: If percpu_ref_init() fails the 'err_hctxs' label should be used instead of 'err_map'. Signed-off-by: Mike Snitzer snit...@redhat.com --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] backlight: pwm: handle EPROBE_DEFER while requesting the PWM

2015-03-12 Thread Thierry Reding
On Thu, Feb 19, 2015 at 10:30:14AM +0100, Nicolas Ferre wrote: When trying to request the PWM device with devm_pwm_get(), the EPROBE_DEFER flag is not handled properly. It can lead to the PWM not being found. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by:

[RESEND PATCH v6 06/22] power_supply: sysfs: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property - set_property - power_supply_set_property - property_is_writeable -

[RESEND PATCH v6 02/22] compal-laptop: Check return value of power_supply_register

2015-03-12 Thread Krzysztof Kozlowski
The return value of power_supply_register() call was not checked and even on error probe() function returned 0. If registering failed then during unbind the driver tried to unregister power supply which was not actually registered. This could lead to memory corruption because

[RESEND PATCH v6 01/22] compal-laptop: Fix leaking hwmon device

2015-03-12 Thread Krzysztof Kozlowski
The commit c2be45f09bb0 (compal-laptop: Use devm_hwmon_device_register_with_groups) wanted to change the registering of hwmon device to resource-managed version. It mostly did it except the main thing - it forgot to use devm-like function so the hwmon device leaked after device removal or probe

[RESEND PATCH v6 20/22] power_supply: bq2415x_charger: Decrement the power supply's device reference counter

2015-03-12 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter (increased by power_supply_get_by_name() or power_supply_get_by_phandle()). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz

[RESEND PATCH v6 09/22] mfd: ab8500: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

Re: [PATCH] staging: iio: trigger: Use standard attr for sampling frequency

2015-03-12 Thread Lars-Peter Clausen
On 03/12/2015 09:16 AM, Octavian Purdila wrote: On Wed, Mar 11, 2015 at 6:36 PM, Daniel Baluta daniel.bal...@intel.com wrote: As written in Documentation/ABI/testing/sysfs-bus-iio the trigger attribute for sampling frequency should be sampling_frequency. Fix this for iio-trig-periodic-rtc

Re: [PATCH v1 2/2] x86: kconfig: remove X86_UP_APIC

2015-03-12 Thread Jan Beulich
On 12.03.15 at 00:10, mcg...@do-not-panic.com wrote: config X86_LOCAL_APIC def_bool y - depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI + depends on X86_64 || SMP || X86_32_NON_STANDARD || PCI_MSI I.e. building a 32-bit kernel with APIC support but

Re: [BUG] perf report: ordered events and flushing bug

2015-03-12 Thread Namhyung Kim
Hi Stephane, On Wed, Mar 11, 2015 at 11:32:15PM -0400, Stephane Eranian wrote: Hi, I am working on the JIT support to improve the flow and have perf record inject the MMAPs at the end of the collection. For that I piggyback on the buildid pass. To avoid rewriting the entire perf.data file,

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW, Mutex block

2015-03-12 Thread Ohad Ben-Cohen
On Thu, Mar 12, 2015 at 12:15 AM, Andy Gross agr...@codeaurora.org wrote: On Wed, Mar 11, 2015 at 01:42:38PM -0700, Tim Bird wrote: snip I'm pretty anxious about this one, as my current work has a dependency on it. Virtually the entirety of the QualComm SOC work is dependent on this because

Re: [V4.0.0-rc3] Xhci Regression: ERROR Transfer event TRB DMA ptr not part of current TD

2015-03-12 Thread Mathias Nyman
On 11.03.2015 18:16, Jörg Otte wrote: 2015-03-11 12:01 GMT+01:00 Jörg Otte jrg.o...@gmail.com: 2015-03-10 18:04 GMT+01:00 Mathias Nyman mathias.ny...@linux.intel.com: On 10.03.2015 17:36, Jörg Otte wrote: I'd suspect one of these two patches: commit 45ba2154d12fc43b70312198ec47085f10be801a

[RESEND 0/7] ARM: davinci: McASP related cleanups and fixes

2015-03-12 Thread Peter Ujfalusi
Hi, V1 was sent back in 10th of February [1], so resending it rebased on current linux-next. Clean up series of McASP device creation for da8xx and dm646x DMSoCs. [1] https://lkml.org/lkml/2015/2/10/298 Regards, Peter --- Peter Ujfalusi (7): ARM: davinci: devices-da8xx: Add resource name for

Re: [PATCHv2 2/2] perf hists browser: Fix UI bug after zoom into thread/dso/symbol

2015-03-12 Thread Namhyung Kim
On Wed, Mar 11, 2015 at 08:36:03PM +0800, He Kuang wrote: When zoom into thread/dso/symbol, the fold/unfold stat is cleared in hists__filter_by_thread/dso/symbol(), but h-nr_rows is not cleared. So if we toggle fold stat on the unfold entires, nr_entries got a wrong value. This bug can be

Re: [PATCH] perf, tools: Output running time and run/enabled ratio in CSV mode

2015-03-12 Thread Namhyung Kim
On Wed, Mar 11, 2015 at 07:16:27AM -0700, Andi Kleen wrote: From: Andi Kleen a...@linux.intel.com The information how much a counter ran in perf stat can be quite interesting for other tools to judge how trustworthy a measurement is. Currently it is only output in non CSV mode. This

Re: [PATCH 2/7] blk-mq: add blk_mq_init_allocated_queue and export blk_mq_register_disk

2015-03-12 Thread Ming Lei
On Thu, Mar 12, 2015 at 11:56 AM, Mike Snitzer snit...@redhat.com wrote: Add a variant of blk_mq_init_queue that allows a previously allocated queue to be initialized. blk_mq_init_allocated_queue models blk_init_allocated_queue -- which was also created for DM's use. DM's approach to device

Re: LZ4 : fix the data abort issue.

2015-03-12 Thread Yeon, JeHyeon (Tom)
If the part of the compression data are corrupted, or the compression data is totally fake, the memory access over the limit is possible. This is the log from my system usning lz4 decompression. [6502]data abort, halting [6503]r0 0x r1 0x r2 0xdcea0ffc r3 0xdcea0ffc

[RESEND 2/7] ARM: davinci: devices-da8xx: Add interrupt resource to McASP structs

2015-03-12 Thread Peter Ujfalusi
On da8xx McASP TX/RX interrupt requests are combined. The interrupt can be used for error recovery. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/devices-da8xx.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-davinci/devices-da8xx.c

[RESEND 3/7] ARM: davinci: devices-da8xx: Clean up and correct the McASP device creation

2015-03-12 Thread Peter Ujfalusi
Both DA830 and DA850 has McASP0 module, so do not restrict the use of McASP0 for da850 only. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/devices-da8xx.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git

[RESEND 5/7] ARM: davinci: dm646x: Clean up the McASP DMA resources

2015-03-12 Thread Peter Ujfalusi
Add names to the DMA resources and remove the RX DMA dummy part for McASP1. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/dm646x.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-davinci/dm646x.c

[RESEND 4/7] ARM: davinci: devices-da8xx: Add support for McASP2 on da830

2015-03-12 Thread Peter Ujfalusi
da830 has three McASP blocks. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/asp.h | 7 ++ arch/arm/mach-davinci/devices-da8xx.c | 41 +++ 2 files changed, 48 insertions(+) diff --git a/arch/arm/mach-davinci/asp.h

Re: [PATCH 1/1] usb: xhci: apply XHCI_AVOID_BEI quirk to Intel ValleyView and LynxPoint LP

2015-03-12 Thread Greg Kroah-Hartman
On Thu, Mar 12, 2015 at 09:39:06AM +0800, Lu Baolu wrote: When a device with an isochronous endpoint is plugged into the Intel xHCI host controller, and the driver submits multiple frames per URB, the xHCI driver will set the Block Event Interrupt (BEI) flag on all but the last TD for the URB.

Re: [PATCHv3] perf hists browser: Fix UI bug after fold/unfold

2015-03-12 Thread Namhyung Kim
On Thu, Mar 12, 2015 at 03:21:49PM +0800, He Kuang wrote: In perf hists browser, the fold/unfold stat of each hist entry is recorded but hb-nr_callchain_rows loses its value after zoom out and zoom in back. This causes a wrong row cursor range that restrict user to move down anymore. This

[GIT PULL] arch/microblaze fixes for 4.0-rc4

2015-03-12 Thread Michal Simek
Hi Linus, please pull these two patches to your tree. One is just preparation patch for the second which is fixing the problem with syscalls. Thanks, Michal The following changes since commit 13a7a6ac0a11197edcd0f756a035f472b42cdf8b: Linux 4.0-rc2 (2015-03-03 09:04:59 -0800) are available

[RESEND 6/7] ARM: davinci: irqs: Correct McASP1 TX interrupt definition for DM646x

2015-03-12 Thread Peter Ujfalusi
McASP1 TX interrupt is 30, not 32 on DM646x DMSoC Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/include/mach/irqs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/include/mach/irqs.h

[RESEND 1/7] ARM: davinci: devices-da8xx: Add resource name for the McASP DMA request

2015-03-12 Thread Peter Ujfalusi
Add tx or rx as resource name for the DMA resources. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/devices-da8xx.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index

[RESEND 7/7] ARM: davinci: dm646x: Add interrupt resource for McASPs

2015-03-12 Thread Peter Ujfalusi
The interrupt can be used for error recovery. Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- arch/arm/mach-davinci/dm646x.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index

[RESEND PATCH v6 19/22] power_supply: 88pm860x_charger: Decrement the power supply's device reference counter

2015-03-12 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[RESEND PATCH v6 10/22] power_supply: apm_power: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by:

[RESEND PATCH v6 15/22] power_supply: Increment power supply use counter when obtaining references

2015-03-12 Thread Krzysztof Kozlowski
Increment the power_supply.use_cnt usage counter on: - power_supply_get_by_phandle() - power_supply_get_by_name() and decrement it on power_supply_put() call. This helps tracking of valid usage of power supply instance by consumers. The usage counter itself also allows safe calling of

[RESEND PATCH v6 16/22] power_supply: charger-manager: Decrement the power supply's device reference counter

2015-03-12 Thread Krzysztof Kozlowski
Use power_supply_put() to decrement the power supply's device reference counter. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

Re: [PATCH] kobject: WARN as tip when call kobject_get() to a kobject not initialized

2015-03-12 Thread Greg KH
On Thu, Mar 12, 2015 at 01:04:16PM +0900, Ethan Zhao wrote: call kobject_get() to kojbect that is not initalized or released will only leave following like call trace to us: ---[ cut here ] [ 54.545816] WARNING: CPU: 0 PID: 213 at include/linux/kref.h:47

[RESEND PATCH v6 17/22] x86/olpc/xo1/sci: Use newly added power_supply_put API

2015-03-12 Thread Krzysztof Kozlowski
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Bartlomiej Zolnierkiewicz b.zolnier...@samsung.com Reviewed-by: Sebastian Reichel s...@kernel.org ---

[RESEND PATCH v6 05/22] power_supply: Add API for safe access of power supply function attrs

2015-03-12 Thread Krzysztof Kozlowski
Add simple wrappers for accessing power supply's function attributes: - get_property - power_supply_get_property - set_property - power_supply_set_property - property_is_writeable - power_supply_property_is_writeable - external_power_changed - power_supply_external_power_changed This API

Re: [PATCH v7 11/18] memory: tegra: Add EMC (external memory controller) driver

2015-03-12 Thread Paul Bolle
On Wed, 2015-03-11 at 11:34 +0100, Tomeu Vizoso wrote: --- a/drivers/memory/tegra/Kconfig +++ b/drivers/memory/tegra/Kconfig + + (Nit: just one empty line, please.) +config TEGRA124_EMC + bool Tegra124 External Memory Controller driver This patch adds a bool symbol... + default

Re: [RESEND PATCH v6 09/22] mfd: ab8500: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Lee Jones
On Thu, 12 Mar 2015, Krzysztof Kozlowski wrote: Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property - power_supply_get_property Signed-off-by:

[PATCH] arm64: fix implementation of mmap2 compat syscall

2015-03-12 Thread Andreas Schwab
The arm mmap2 syscall takes the offset in units of 4K, thus with 64K pages the offset needs to be scaled to units of pages. Signed-off-by: Andreas Schwab sch...@suse.de --- arch/arm64/include/asm/unistd32.h | 2 +- arch/arm64/kernel/entry32.S | 18 ++

Re: [RESEND PATCH v6 09/22] mfd: ab8500: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Krzysztof Kozlowski
On czw, 2015-03-12 at 09:01 +, Lee Jones wrote: On Thu, 12 Mar 2015, Krzysztof Kozlowski wrote: Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: -

Re: [PATCH 2/3] Staging: dgnc: Use goto for error handling

2015-03-12 Thread Dan Carpenter
On Wed, Mar 11, 2015 at 06:37:30PM +0200, Giedrius Statkevičius wrote: It's still not in staging-testing for some reason :( It can take several weeks to get merged. Relax. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: [RESEND PATCH v6 09/22] mfd: ab8500: Use power_supply_*() API for accessing function attrs

2015-03-12 Thread Lee Jones
On Thu, 12 Mar 2015, Krzysztof Kozlowski wrote: On czw, 2015-03-12 at 09:01 +, Lee Jones wrote: On Thu, 12 Mar 2015, Krzysztof Kozlowski wrote: Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power

Re: [PATCH] staging: sm750fb: moved open brace next to declaration

2015-03-12 Thread Dan Carpenter
On Thu, Mar 12, 2015 at 02:31:55AM -0700, Ragavendra BN wrote: Signed-off-by: Ragavendra BN ragavendra...@gmail.com [user] Don't include this. Fix your From header so it has your legal name. Remover the [user] part. This patch fixes the coding style warning found by checkpath.pl for the

Re: [PATCH 16/22] mfd: %pF is only for function pointers

2015-03-12 Thread Lee Jones
On Wed, 11 Mar 2015, Scott Wood wrote: Use %pS for actual addresses, otherwise you'll get bad output on arches like ppc64 where %pF expects a function descriptor. Signed-off-by: Scott Wood scottw...@freescale.com Cc: Samuel Ortiz sa...@linux.intel.com Cc: Lee Jones lee.jo...@linaro.org

Re: [PATCH 1/6] Drivers: hv: vmbus: Perform device register in the per-channel work element

2015-03-12 Thread Greg KH
On Thu, Mar 12, 2015 at 10:02:24AM +0100, Greg KH wrote: On Wed, Mar 11, 2015 at 06:56:54PM -0700, K. Y. Srinivasan wrote: This patch is a continuation of the rescind handling cleanup work. We cannot block in the global message handling work context especially if we are blocking waiting

RE: [PATCH RFC] f2fs: add fast symlink

2015-03-12 Thread Chao Yu
Hi Wanpeng, -Original Message- From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] Sent: Thursday, March 12, 2015 2:42 PM To: Chao Yu Cc: 'Wanpeng Li'; 'Jaegeuk Kim'; 'Changman Lee'; linux-f2fs-de...@lists.sourceforge.net; linux-fsde...@vger.kernel.org;

Re: [PATCH v6 3/3] ARM: dts: vf610: add Miscellaneous System Control Module (MSCM)

2015-03-12 Thread Stefan Agner
On 2015-03-11 01:48, Shawn Guo wrote: On Sun, Mar 01, 2015 at 11:41:29PM +0100, Stefan Agner wrote: Add the Miscellaneous System Control Module (MSCM) to the base device tree for Vybrid SoC's. This module contains registers to get information of the individual and current (accessing) CPU. In

Re: [PATCH v8 0/4] hwspinlock core omap dt support

2015-03-12 Thread Ohad Ben-Cohen
Hi Suman, On Thu, Mar 5, 2015 at 4:01 AM, Suman Anna s-a...@ti.com wrote: This is the latest version of the hwspinlock dt support series, rebased onto v4.0-rc1 and addressing the long discussion on the bindings in v7 [1]. I really hope that this series can make it into 4.1. From a quick

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-12 Thread Ohad Ben-Cohen
Hi Mark, Rob, On Sat, Feb 28, 2015 at 12:30 AM, Bjorn Andersson bjorn.anders...@sonymobile.com wrote: Add binding documentation for the Qualcomm Hardware Mutex. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- I think the conclusion on the dt binding discussion for

Re: [PATCH v5 12/14] clk: tegra: Add EMC clock driver

2015-03-12 Thread Tomeu Vizoso
On 5 January 2015 at 14:59, Thierry Reding thierry.red...@gmail.com wrote: On Fri, Jan 02, 2015 at 06:27:50PM +0200, Peter De Schrijver wrote: On Tue, Nov 18, 2014 at 01:13:14PM +0100, Tomeu Vizoso wrote: From: Mikko Perttunen mperttu...@nvidia.com The driver is currently only tested on

Re: [PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace

2015-03-12 Thread Arnd Bergmann
On Thursday 12 March 2015 07:11:48 Takashi Iwai wrote: At Wed, 11 Mar 2015 10:46:29 +0100, Arnd Bergmann wrote: On Wednesday 11 March 2015 07:11:18 Takashi Iwai wrote: At Wed, 11 Mar 2015 03:22:04 +0200, Are there any other headers like that? If this is the only one, leave it

Re: [PATCH 0/3] clk: divider: three exactness fixes (and a rant)

2015-03-12 Thread Philipp Zabel
Hi Stephen, Am Mittwoch, den 11.03.2015, 18:21 -0700 schrieb Stephen Boyd: [...] Why does Philipp like 110Hz the most? Where is the desire for that rate coming from? And the lower abs(1 / 110 - 1 / r) the better. Similarly, where is this requirement coming from? Some datasheet? Or is

Re: [PATCH] backlight: pwm: handle EPROBE_DEFER while requesting the PWM

2015-03-12 Thread Lee Jones
On Thu, 19 Feb 2015, Nicolas Ferre wrote: When trying to request the PWM device with devm_pwm_get(), the EPROBE_DEFER flag is not handled properly. It can lead to the PWM not being found. Signed-off-by: Boris Brezillon boris.brezil...@free-electrons.com Signed-off-by: Nicolas Ferre

Re: [BUG] perf report: ordered events and flushing bug

2015-03-12 Thread Adrian Hunter
On 12/03/15 05:32, Stephane Eranian wrote: Hi, I am working on the JIT support to improve the flow and have perf record inject the MMAPs at the end of the collection. For that I piggyback on the buildid pass. To avoid rewriting the entire perf.data file, I simply append the the MMAP records

Re: [PATCH v3 1/2] remoteproc: use a flag to detect the presence of IOMMU

2015-03-12 Thread Ohad Ben-Cohen
On Fri, Jan 9, 2015 at 11:21 PM, Suman Anna s-a...@ti.com wrote: The remoteproc driver core currently relies on iommu_present() on the bus the device is on, to perform MMU management. However, this logic doesn't scale for multi-arch, especially for processors that do not have an IOMMU. Replace

Re: [PATCH 5/5] drm/msm/mdp5: Add hardware configuration for msm8x16

2015-03-12 Thread Archit Taneja
Hi, On 03/09/2015 06:41 PM, Stephane Viau wrote: This change adds the hw configuration for msm8x16 chipsets in mdp5_cfg module. Note that only one external display interface is present in this configuration (DSI) but has not been enabled yet. It will be enabled once drm/msm driver supports DSI

Re: [PATCH 1/6] Drivers: hv: vmbus: Perform device register in the per-channel work element

2015-03-12 Thread Greg KH
On Wed, Mar 11, 2015 at 06:56:54PM -0700, K. Y. Srinivasan wrote: This patch is a continuation of the rescind handling cleanup work. We cannot block in the global message handling work context especially if we are blocking waiting for the host to wake us up. I would like to thank Dexuan Cui

[PATCH v2] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-03-12 Thread Damian Eppel
This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato board) and Exynos 5420 (Arndale Octa board). Whilst testing cpu hotplug events on kernel configured with DEBUG_PREEMPT and

Re: [PATCH 00/12] Increased clocksource validation and cleanups (v4)

2015-03-12 Thread Ingo Molnar
* John Stultz john.stu...@linaro.org wrote: So here is another round of this series, which is the result of earlier discussions with Linus and his suggestions around improvements to clocksource validation in the hope we can more easily catch bad hardware. There's also a few cleanups Linus

Re: [PATCH v2 3/4] cpufreq: mediatek: add Mediatek cpufreq driver

2015-03-12 Thread Viresh Kumar
On 11 March 2015 at 18:15, Mark Brown broo...@kernel.org wrote: Ugh, no - that's a hideous bodge which is only going to create trouble later. Remember, DT is an ABI and should describe the hardware so if we're doing bodges that are visible there to shoehorn things onto our implementation

Re: [PATCH 2/2] drm/bridge: Add IT6151 bridge driver

2015-03-12 Thread Paul Bolle
Just a few nits, I'm afraid. On Wed, 2015-03-11 at 14:18 +0800, CK Hu wrote: drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + I applied 1/2 and 2/2 on top of next-20150312 to check a trivial issue. The chunks for these two files needed context changes to git

[PATCH] f2fs: fix to check current blkaddr in __allocate_data_blocks

2015-03-12 Thread Chao Yu
In __allocate_data_blocks, we should check current blkaddr which is located at ofs_in_node of dnode page instead of checking first blkaddr all the time. Otherwise we can only allocate one blkaddr in each dnode page. Fix it. Signed-off-by: Chao Yu chao2...@samsung.com --- fs/f2fs/data.c | 5 -

Re: [RESEND 0/7] ARM: davinci: McASP related cleanups and fixes

2015-03-12 Thread Sekhar Nori
Hi Peter, On Thursday 12 March 2015 01:36 PM, Peter Ujfalusi wrote: Hi, V1 was sent back in 10th of February [1], so resending it rebased on current linux-next. Clean up series of McASP device creation for da8xx and dm646x DMSoCs. All applied. Will send out the pull request soon after a

[PATCH v2] f2fs: add fast symlink support

2015-03-12 Thread Wanpeng Li
This patch introduces the improvement fast symlinks to allow storage of the target path within inode, thus symlinks with short target paths are more accessed quickly. It will fall back to using the original slow symlink if the target path exceeds the available inode space. Signed-off-by: Wanpeng

[rfc patch] rt,nohz_full: fix nohz_full for PREEMPT_RT_FULL

2015-03-12 Thread Mike Galbraith
This works, let's see is someone has a better idea... First of all, a task being ticked and trying to shut the tick down will fail to do so due to having just awakened ksoftirqd, so let ksoftirqd try to do that after SOFTIRQ_TIMER processing. Secondly, should the tick be shut down, we may

Re: [PATCH] PM / Domains: If an OF node is found but no device probed yet, defer.

2015-03-12 Thread Ulf Hansson
On 11 March 2015 at 16:27, Eric Anholt e...@anholt.net wrote: If we've declared a power domain in the OF, and the OF node is found but the requested domain hasn't been registered on it yet, then we probably have just tried to probe before the power domain driver has. Defer our device's probe

Re: [RFC PATCH 4/7]powerpc/powernv: Add OPAL support for Nest pmu

2015-03-12 Thread maddy
On Thursday 12 March 2015 04:27 AM, Stewart Smith wrote: Madhavan Srinivasan ma...@linux.vnet.ibm.com writes: Nest Counters can be configured via PORE Engine and OPAL provides an interface call to it. PORE Engine also does the work of moving the counter data to memory. Do you have the

Re: [PATCH 1/1] usb: xhci: apply XHCI_AVOID_BEI quirk to Intel ValleyView and LynxPoint LP

2015-03-12 Thread Lu, Baolu
On 03/12/2015 04:46 PM, Mathias Nyman wrote: On 12.03.2015 03:39, Lu Baolu wrote: When a device with an isochronous endpoint is plugged into the Intel xHCI host controller, and the driver submits multiple frames per URB, the xHCI driver will set the Block Event Interrupt (BEI) flag on all but

Re: [PATCH 41/45] include/uapi/sound/emu10k1.h: hide gpr_valid, tram_valid and code_valid in userspace

2015-03-12 Thread Takashi Iwai
At Thu, 12 Mar 2015 09:45:42 +0100, Arnd Bergmann wrote: On Thursday 12 March 2015 07:11:48 Takashi Iwai wrote: At Wed, 11 Mar 2015 10:46:29 +0100, Arnd Bergmann wrote: On Wednesday 11 March 2015 07:11:18 Takashi Iwai wrote: At Wed, 11 Mar 2015 03:22:04 +0200, Are there

Re: [PATCH RFC] f2fs: add fast symlink

2015-03-12 Thread Wanpeng Li
Hi Chao, On Thu, Mar 12, 2015 at 05:02:47PM +0800, Chao Yu wrote: Hi Wanpeng, -Original Message- From: Wanpeng Li [mailto:wanpeng...@linux.intel.com] Sent: Thursday, March 12, 2015 2:42 PM To: Chao Yu Cc: 'Wanpeng Li'; 'Jaegeuk Kim'; 'Changman Lee';

Re: [RFC] ext4: Add pollable sysfs entry for block threshold events

2015-03-12 Thread Beata Michalska
On 03/11/2015 06:49 PM, Lukáš Czerner wrote: On Wed, 11 Mar 2015, Beata Michalska wrote: Date: Wed, 11 Mar 2015 17:45:52 +0100 From: Beata Michalska b.michal...@samsung.com To: Lukáš Czerner lczer...@redhat.com Cc: ty...@mit.edu, adilger.ker...@dilger.ca, linux-e...@vger.kernel.org,

Re: [PATCH] kobject: WARN as tip when call kobject_get() to a kobject not initialized

2015-03-12 Thread Ethan Zhao
On Thu, Mar 12, 2015 at 3:45 PM, Greg KH gre...@linuxfoundation.org wrote: On Thu, Mar 12, 2015 at 01:04:16PM +0900, Ethan Zhao wrote: call kobject_get() to kojbect that is not initalized or released will only leave following like call trace to us: ---[ cut here ] [

Re: [PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-12 Thread Lorenzo Pieralisi
On Wed, Mar 11, 2015 at 12:39:32PM +, Hanjun Guo wrote: From: Graeme Gregory graeme.greg...@linaro.org ACPI 5.1 does not currently support S states for ARM64 hardware but ACPI code will call acpi_target_system_state() and acpi_sleep_init() for device power management, so introduce

Re: [PATCH 2/3] Staging: dgnc: Use goto for error handling

2015-03-12 Thread Quentin Lambert
On 12/03/2015 10:27, Dan Carpenter wrote: On Wed, Mar 11, 2015 at 06:37:30PM +0200, Giedrius Statkevičius wrote: It's still not in staging-testing for some reason :( It can take several weeks to get merged. Relax. regards, dan carpenter What should i do concerning that ? I need to send

Re: [PATCH 1/1] usb: xhci: apply XHCI_AVOID_BEI quirk to Intel ValleyView and LynxPoint LP

2015-03-12 Thread Mathias Nyman
On 12.03.2015 03:39, Lu Baolu wrote: When a device with an isochronous endpoint is plugged into the Intel xHCI host controller, and the driver submits multiple frames per URB, the xHCI driver will set the Block Event Interrupt (BEI) flag on all but the last TD for the URB. This causes the host

Re: [PATCH 1/1] usb: xhci: apply XHCI_AVOID_BEI quirk to Intel ValleyView and LynxPoint LP

2015-03-12 Thread Lu, Baolu
On 03/12/2015 03:54 PM, Greg Kroah-Hartman wrote: On Thu, Mar 12, 2015 at 09:39:06AM +0800, Lu Baolu wrote: When a device with an isochronous endpoint is plugged into the Intel xHCI host controller, and the driver submits multiple frames per URB, the xHCI driver will set the Block Event

[PATCH] ACPI: Adjust the return value of _REV on x86

2015-03-12 Thread Matthew Garrett
The ACPI spec describes _REV as: This predefined object evaluates to the revision of the ACPI Specification that the specified \_OS implements We've been assuming that this should increment as ACPICA gains support for new versions of the spec. Unfortunately, Windows always reports 2 for this

Re: [PATCH v2] HID: i2c-hid: Fix suspend/resume when already runtime suspended

2015-03-12 Thread Mika Westerberg
On Wed, Mar 11, 2015 at 08:06:47AM -0700, Doug Anderson wrote: Mika, On Wed, Mar 11, 2015 at 4:20 AM, Mika Westerberg mika.westerb...@linux.intel.com wrote: On Tue, Mar 10, 2015 at 09:12:36AM -0700, Doug Anderson wrote: Thanks for testing! Can you do a dump_stack() here? I'm curious

Re: [PATCH] clk: mediatek: Export CPU mux clocks for CPU frequency control

2015-03-12 Thread Viresh Kumar
On 11 March 2015 at 05:29, Mike Turquette mturque...@linaro.org wrote: I assume you are saying that you want to update loops-per-jiffie while at an intermediate frequency. Why? This operation should not take very long. Imagine a (hypothetical?) processor that changes frequency in many small

Re: [PATCH] clk: mediatek: Export CPU mux clocks for CPU frequency control

2015-03-12 Thread Viresh Kumar
On 11 March 2015 at 05:43, Mike Turquette mturque...@linaro.org wrote: Sorry, I am not who you asked for advice but I will chime in anyways ;-) Always welcome :) I really hate this intermediate frequency stuff in cpufreq. As we I am starting to :) Furthermore any intermediate-frequency

[PATCH v2 log fixed] virtio_mmio: fix endian-ness for mmio

2015-03-12 Thread Michael S. Tsirkin
Subject: [PATCH] virtio_mmio: fix access width for mmio Going over the virtio mmio code, I noticed that it doesn't correctly access modern device config values using natural accessors: it uses readb to get/set them byte by byte, while the virtio 1.0 spec explicitly states: 4.2.2.2 Driver

Re: [PATCH v10 13/21] ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID

2015-03-12 Thread Lorenzo Pieralisi
On Wed, Mar 11, 2015 at 12:39:39PM +, Hanjun Guo wrote: CPU hardware ID (phys_id) is defined as u32 in structure acpi_processor, but phys_id is used as int in acpi processor driver, so it will lead to some inconsistence for the drivers. Furthermore, to cater for ACPI arch ports that

Re: [PATCH v6 1/2] DT: hwspinlock: Add binding documentation for Qualcomm hwmutex

2015-03-12 Thread Mark Rutland
On Fri, Feb 27, 2015 at 10:30:16PM +, Bjorn Andersson wrote: Add binding documentation for the Qualcomm Hardware Mutex. Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com --- I think the conclusion on the dt binding discussion for hwspinlocks was that we're down to having

Re: [PATCH 2/3] Staging: dgnc: Use goto for error handling

2015-03-12 Thread Greg Kroah-Hartman
On Thu, Mar 12, 2015 at 10:32:40AM +0100, Quentin Lambert wrote: On 12/03/2015 10:27, Dan Carpenter wrote: On Wed, Mar 11, 2015 at 06:37:30PM +0200, Giedrius Statkevičius wrote: It's still not in staging-testing for some reason :( It can take several weeks to get merged. Relax.

Re: [PATCH v5] clk: Add PWM clock driver

2015-03-12 Thread Philipp Zabel
Am Freitag, den 13.02.2015, 20:18 +0100 schrieb Philipp Zabel: Some board designers, when running out of clock output pads, decide to (mis)use PWM output pads to provide a clock to external components. This driver supports this practice by providing an adapter between the PWM and clock

[PATCH] phy: exynos5-usbdrd: Add to support for Exynos5433 SoC

2015-03-12 Thread Jaewon Kim
This patch adds driver data to support for Exynos5433 SoC. The Exynos5433 has one USB3.0 Host and USB3.0 DRD(Dual Role Device). Exynos5433 is simplar to Eyxnos7 but Exynos5433 have one more USB3.0 Host controller. Signed-off-by: Jaewon Kim jaewon02@samsung.com ---

Re: [PATCH v10 13/21] ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID

2015-03-12 Thread Hanjun Guo
On 2015年03月12日 17:51, Lorenzo Pieralisi wrote: On Wed, Mar 11, 2015 at 12:39:39PM +, Hanjun Guo wrote: CPU hardware ID (phys_id) is defined as u32 in structure acpi_processor, but phys_id is used as int in acpi processor driver, so it will lead to some inconsistence for the drivers.

  1   2   3   4   5   6   7   8   9   10   >