[PATCH 1/1] staging: speakup: main.c - use time_after()

2014-07-01 Thread Anil Belur
From: Anil Belur - this patch fixes jiffies comparision with a safer function to prevent any overflows Signed-off-by: Anil Belur --- drivers/staging/speakup/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/mai

[RESEND PATCH 4/5] power: max17040: Add ID for MAX77836 Fuel Gauge block

2014-07-01 Thread Krzysztof Kozlowski
MAX77836 has the same Fuel Gauge as MAX17040/17048. The max17040 driver can be safely re-used. The patch adds MAX77836 ID to array of i2c_device_id. Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Anton Vorontsov Cc: Dmitry Eremin-Solenikov Cc: David Woodhouse --- drivers/power/max1

[RESEND PATCH 1/5] charger: max14577: Add support for MAX77836 charger

2014-07-01 Thread Krzysztof Kozlowski
Add support for MAX77836 charger to the max14577 driver. The MAX77836 charger is almost the same as 14577 model except: - No dead-battery detection; - Support for special charger (like in MAX77693); - Support for DX over-voltage protection (like in MAX77693); - Lower values of charging current

[RESEND PATCH 2/5] regulator/mfd: max14577: Export symbols for calculating charger current

2014-07-01 Thread Krzysztof Kozlowski
This patch prepares for changing the max14577 charger driver to allow configuring battery-dependent settings from DTS. The patch moves from regulator driver to MFD core driver and exports: - function for calculating register value for charger's current; - table of limits for chargers (MAX14577,

[RESEND PATCH 5/5] devicetree: mfd: max14577: Add device tree bindings document

2014-07-01 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD drivers: MFD core, extcon, regulator and charger. Both MAX14577 and MAX77836 chipsets are documented. Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Tomasz Figa Cc: devicet...@vger.kernel.org Cc: Rob Herring Cc: Pawel Mol

[RESEND PATCH 0/5] charger/mfd: max14577: Add support for MAX77836

2014-07-01 Thread Krzysztof Kozlowski
Hi, This is resend of second part of patches adding support for MAX77836 device to the max14577 drivers. The first part (main MFD, extcon and regulator drivers) was merged already. The patches 1, 2 and 3 depends on each other so they should be pulled at once. Patches 4 and 5 can be applied indep

[RESEND PATCH 3/5] charger: max14577: Configure battery-dependent settings from DTS

2014-07-01 Thread Krzysztof Kozlowski
Remove hard-coded values for: - Fast Charge current, - End Of Charge current, - Fast Charge timer, - Overvoltage Protection Threshold, - Battery Constant Voltage, and use DTS to configure them. This allows using the max14577 charger driver with different batteries. Now the charger driver requ

Re: [PATCH] pinctrl: pinctrl-imx27.c: Cleaning up remove a struct that is unused

2014-07-01 Thread Sascha Hauer
On Sat, Jun 28, 2014 at 11:48:40PM +0200, Rickard Strandqvist wrote: > Removal of a struct that is never used > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist It wasn't even used on the initial commit introducing it. Acked-by: Sasch

[PATCH 1/2 RESEND] staging: lirc: fix checkpath errors: blank lines

2014-07-01 Thread Raphael Poggi
This patch fix checkpath "WARNING: Missing a blank line after declarations" Signed-off-by: Raphaël Poggi --- drivers/staging/media/lirc/lirc_imon.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers/staging/media/lirc/lirc_imon.c index a5b

[PATCH 2/2 RESEND] staging: lirc: remove return void function

2014-07-01 Thread Raphael Poggi
This patch fix checkpath "WARNING: void function return statements are not generally useful". The removed return were useless in that case. Signed-off-by: Raphaël Poggi --- drivers/staging/media/lirc/lirc_imon.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/media/l

[PATCH v1] PCI: enable ASPM configuration in PCIE POWERSAVE mode

2014-07-01 Thread Vidya Sagar
commit 1a680b7c moved pcie_aspm_powersave_config_link() out of pci_raw_set_power_state() to pci_set_power_state() which would enable ASPM. But, with commit db288c9c, which re-introduced the following check ./drivers/pci/pci.c: pci_set_power_state() + /* Check if we're already there */ + if (dev

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-07-01 Thread Boris BREZILLON
On Tue, 1 Jul 2014 08:32:14 +0200 Boris BREZILLON wrote: > Hi Sören, > > On Mon, 30 Jun 2014 17:12:23 -0700 > Sören Brinkmann wrote: > > > Hi Boris, > > > > On Mon, 2014-06-30 at 09:27PM +0200, Boris BREZILLON wrote: > > > Hello Soren, > > > > > > On Mon, 30 Jun 2014 09:56:33 -0700 > > > Sor

Re: [PATCH RFC net-next 00/14] BPF syscall, maps, verifier, samples

2014-07-01 Thread Daniel Borkmann
On 07/01/2014 01:09 AM, Kees Cook wrote: On Fri, Jun 27, 2014 at 5:05 PM, Alexei Starovoitov wrote: Hi All, this patch set demonstrates the potential of eBPF. First patch "net: filter: split filter.c into two files" splits eBPF interpreter out of networking into kernel/bpf/. The goal for BPF

[PATCH v4] USB: ehci-pci: USB host controller support for Intel Quark X1000

2014-07-01 Thread Chen, Alvin
From: Bryan O'Donoghue The EHCI packet buffer in/out threshold is programmable for Intel Quark X1000 USB host controller, and the default value is 0x20 dwords. The in/out threshold can be programmed to 0x80 dwords (512 Bytes) to maximize the perfomrance, but only when isochronous/interrupt transa

[PATCH v4] USB: ehci-pci: Add support for Intel Quark X1000 USB

2014-07-01 Thread Chen, Alvin
From: "Alvin (Weike) Chen" Hi, Intel Quark X1000 consists of one USB host controller which can be PCI enumerated. And the exsiting EHCI-PCI framework supports it with the default packet buffer in/out threshold. We reconfigure the in/out threshold as maximal as possible to maximize the performanc

Re: [PATCH 1/1] staging: rtl8723au: Another case of unnecessary null test before kfree

2014-07-01 Thread Jes Sorensen
Fabian Frederick writes: > Fix checkpatch warning: > WARNING: kfree(NULL) is safe this check is probably not required > > Cc: Larry Finger > Cc: Jes Sorensen > Cc: linux-wirel...@vger.kernel.org > Signed-off-by: Fabian Frederick > --- > drivers/staging/rtl8723au/core/rtw_ap.c | 3 +-- > 1 file

Re: [PATCH 1/1] staging: rtl8723au: Remove unnecessary null test before kfree

2014-07-01 Thread Jes Sorensen
Fabian Frederick writes: > Fix checkpatch warning: > WARNING: kfree(NULL) is safe this check is probably not required > > Cc: Larry Finger > Cc: Jes Sorensen > Cc: linux-wirel...@vger.kernel.org > Signed-off-by: Fabian Frederick > --- > drivers/staging/rtl8723au/core/rtw_cmd.c | 4 +--- > 1 fi

Re: [PATCH] firmware loader: inform direct failure when udev loader is disabled

2014-07-01 Thread Tom Gundersen
On Tue, Jul 1, 2014 at 1:30 AM, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > Now that the udev firmware loader is optional request_firmware() > will not provide any information on the kernel ring buffer if > direct firmware loading failed and udev firmware loading is disabled. > If no

Re: [PATCH v2 07/12] usb: chipidea: add a generic driver

2014-07-01 Thread Antoine Ténart
Peter, On Tue, Jul 01, 2014 at 08:21:14AM +0800, Peter Chen wrote: > On Mon, Jun 30, 2014 at 03:33:13PM +0200, Antoine Ténart wrote: > > On Fri, Jun 27, 2014 at 11:25:07AM +0800, Peter Chen wrote: > > > On Tue, Jun 24, 2014 at 12:35:16PM +0200, Antoine Ténart wrote: > > > > > > > > ifneq ($(CON

Re: [PATCH v10 2/2] dmaengine: sun6i: Add driver for the Allwinner A31 DMA controller

2014-07-01 Thread Maxime Ripard
On Mon, Jun 30, 2014 at 04:33:05PM +0100, Mark Rutland wrote: > On Mon, Jun 30, 2014 at 04:19:06PM +0100, Maxime Ripard wrote: > > On Mon, Jun 30, 2014 at 03:20:54PM +0100, Mark Rutland wrote: > > > Hi Maxime, > > > > > > On Mon, Jun 30, 2014 at 02:20:54PM +0100, Maxime Ripard wrote: > > > > The A

Re: [PATCH 1/6] thermal: of: Add support for hardware-tracked trip points

2014-07-01 Thread Mikko Perttunen
Inline. On 01/07/14 00:08, Stephen Warren wrote: On 06/27/2014 02:11 AM, Mikko Perttunen wrote: This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. Whenever the current temperature is updated

Re: [Linux-parport] [PATCH 2/2] parport: parport_pc: Add force_epp module option for parport_pc.

2014-07-01 Thread Matwey V. Kornilov
+#ifdef CONFIG_PARPORT_1284 +MODULE_PARM_DESC(force_epp, "Do not disable EPP when it is detected to be broken (default is false)"); I think this needs some more explanation - how about "Disable check for broken Intel EPP hardware that gives false positives on 2002 and newer hardware" I woul

Re: [RFC PATCH 2/6] arm64: Support restart through restart notifier call chain

2014-07-01 Thread Maxime Ripard
On Mon, Jun 30, 2014 at 12:11:35PM -0700, Guenter Roeck wrote: > The kernel core now supports a notifier call chain to restart the system. > > Signed-off-by: Guenter Roeck > --- > arch/arm64/kernel/process.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm64/kernel/process.c

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-01 Thread Jan Kiszka
On 2014-07-01 04:15, Hui Wang wrote: > On 06/30/2014 02:45 PM, Jan Kiszka wrote: >> On 2014-06-30 04:04, Hui Wang wrote: >>> On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: > Most Thinkpad Edge series laptops use conexant codec, so far although > the code

Re: [RESEND PATCH 0/5] charger/mfd: max14577: Add support for MAX77836

2014-07-01 Thread Lee Jones
On Tue, 01 Jul 2014, Krzysztof Kozlowski wrote: > This is resend of second part of patches adding support for MAX77836 > device to the max14577 drivers. The first part (main MFD, extcon > and regulator drivers) was merged already. > > The patches 1, 2 and 3 depends on each other so they should be

Re: [PATCH V2 2/6] regulator: palmas: Rename reg_info to palmas_reg_info

2014-07-01 Thread Lee Jones
On Mon, 30 Jun 2014, Nishanth Menon wrote: > reg_info is a generic term which might cause conflict at a later point > in time. To prevent such a thing from occuring in future, rename to > palmas_reg_info. > > Signed-off-by: Nishanth Menon > --- > drivers/regulator/palmas-regulator.c |4 ++--

Re: [PATCHv2] usb: gadget: serial: replace hardcoded ttyGS with PREFIX

2014-07-01 Thread Richard Leitner
On Mon, 30 Jun 2014 07:45:43 -0700 Greg Kroah-Hartman wrote: > > > > > From: Of Richard Leitner > > > > > > Replaces all hardcoded ttyGS strings with the PREFIX macro. > > > > > > Due to the fact the strings are spread over different source files > > > > > > the > > > > > > PREFIX definition is

[PATCH v1] ARM:sa1100: Remove a redundant spin lock

2014-07-01 Thread Wei.Yang
From: Yang Wei The pair read/write of accessing pci confiuration space function has already protected by pci_lock. so remove nano_lock. Signed-off-by: Yang Wei --- arch/arm/mach-sa1100/pci-nanoengine.c |9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-sa1100/pci-nano

Re: [PATCH 0/5] ARM: Centralize the access to the SCU register

2014-07-01 Thread Shawn Guo
On Fri, Jun 27, 2014 at 01:01:03AM +0200, Gregory CLEMENT wrote: > >> The last patch removed a direct access to the SCU register by an > >> access through the new scu_standby_enable() function. For this one I > >> have just checked that the kernel can be built using the > >> imx_v6_v7_defconfig con

Re: [PATCH -mm v3 8/8] slab: do not keep free objects/slabs on dead memcg caches

2014-07-01 Thread Vladimir Davydov
On Mon, Jun 30, 2014 at 10:49:03AM -0500, Christoph Lameter wrote: > On Fri, 27 Jun 2014, Joonsoo Kim wrote: > > > Christoph, > > Is it tolerable result for large scale system? Or do we need to find > > another solution? > > > The overhead is pretty intense but then this is a rare event I guess?

Re: [PATCH 4/6] ARM: tegra: Add soctherm and thermal zones to Tegra124 device tree

2014-07-01 Thread Mikko Perttunen
Inline. On 30/06/14 23:48, Stephen Warren wrote: On 06/27/2014 02:11 AM, Mikko Perttunen wrote: This adds the soctherm thermal sensing and management unit to the Tegra124 device tree along with the four thermal zones it exports. diff --git a/arch/arm/boot/dts/tegra124.dtsi b/arch/arm/boot/dt

Re: [PATCH v4 13/13] ARM64 / ACPI: Enable ARM64 in Kconfig

2014-07-01 Thread Hanjun Guo
On 2014-6-30 18:46, Catalin Marinas wrote: > On Fri, Jun 27, 2014 at 04:49:36AM +0100, Hanjun Guo wrote: >> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig >> index 7de5e3f..33d6dbb 100644 >> --- a/drivers/acpi/Kconfig >> +++ b/drivers/acpi/Kconfig >> @@ -8,10 +8,10 @@ config ACPI_SCAN_BIO

Re: [PATCH 1/4] fs.h: Remove unnecessary extern prototypes

2014-07-01 Thread Christoph Hellwig
On Mon, Jun 30, 2014 at 04:39:09PM -0700, Andrew Morton wrote: > > I can fix it and resubmit if you like. > > OK. How about we wait for -rc6 or thereabouts? That should minimise > the pain profile. Or just drop it. This is the perfect example for a patch having absolutely no real benefit and i

Build regressions/improvements in v3.16-rc3

2014-07-01 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v3.16-rc3[1] compared to v3.15-rc8[2]. Summarized: - build errors: +19/-3 - build warnings: +89/-68 JFYI, when comparing v3.16-rc3[1] to v3.16-rc2[3], the summaries are: - build errors: +5/-63 - build warnings: +35/-38

Re: [PATCH V4 00/16] irqchip: crossbar: Driver fixes

2014-07-01 Thread Tony Lindgren
* Jason Cooper [140630 12:30]: > > Whole series applied to irqchip/crossbar, I'll give it a day or two in > -next, then I'll merge it into irqchip/core. > > Tony: Right now, it's immutable unless you tell me I applied something > incorrectly. Once it goes into irqchip/core, it's immutable no ma

Re: Build regressions/improvements in v3.16-rc3

2014-07-01 Thread Geert Uytterhoeven
On Tue, Jul 1, 2014 at 9:58 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v3.16-rc3[1] to v3.16-rc2[3], the summaries are: > - build errors: +5/-63 + /scratch/kisskb/src/kernel/bounds.c: error: -mcall-aixdesc must be big endian: => 1:0 + /scratch/kisskb/src/scripts/mod/devicetable-

Re: [PATCH 4/4] mm: page_alloc: Reduce cost of the fair zone allocation policy

2014-07-01 Thread Mel Gorman
On Mon, Jun 30, 2014 at 03:09:14PM -0700, Andrew Morton wrote: > On Mon, 30 Jun 2014 22:51:21 +0100 Mel Gorman wrote: > > > > That's a large change in system time. Does this all include kswapd > > > activity? > > > > > > > I don't have a profile to quantify that exactly. It takes 7 hours to >

Re: [PATCH RFC net-next 08/14] bpf: add eBPF verifier

2014-07-01 Thread Daniel Borkmann
On 06/28/2014 02:06 AM, Alexei Starovoitov wrote: Safety of eBPF programs is statically determined by the verifier, which detects: - loops - out of range jumps - unreachable instructions - invalid instructions - uninitialized register access - uninitialized stack access - misaligned stack access

Re: [RFC PATCH v2] Implement Batched (group) ticket lock

2014-07-01 Thread Peter Zijlstra
On Sat, Jun 28, 2014 at 02:47:04PM +0530, Raghavendra K T wrote: > In virtualized environment there are mainly three problems > related to spinlocks that affects performance. > 1. LHP (lock holder preemption) > 2. Lock Waiter Preemption (LWP) > 3. Starvation/fairness > > Though Ticketlocks solve f

Re: [PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

2014-07-01 Thread Mikko Perttunen
Inline. On 01/07/14 00:23, Stephen Warren wrote: On 06/27/2014 02:11 AM, Mikko Perttunen wrote: This adds support for the Tegra SOCTHERM thermal sensing and management system found in the Tegra124 system-on-chip. This initial driver supports the four thermal zones with hardware-tracked trip poi

Re: [PATCH v3 0/2] block: virtio-blk: support multi vq per virtio-blk

2014-07-01 Thread Christoph Hellwig
On Mon, Jun 30, 2014 at 09:01:07PM -0600, Jens Axboe wrote: > >I appreciate very much that one of you may queue these two > >patches into your tree so that userspace work can be kicked off, > >since Michael has acked both patches and all comments have > >been addressed already. > > Given that Mich

Re: [PATCH v2] perf/x86/intel: ignore CondChgd bit to avoid false NMI handling

2014-07-01 Thread Peter Zijlstra
On Mon, Jun 30, 2014 at 03:22:24PM -0700, Andi Kleen wrote: > > > > I'm also interested in the behaviour of CondChgd bit on Ivy Bridge > > processors. > > The intended meaning of CondChgd is that a hardware debugger has taken over > the > PMU. It shouldn't really be set in other circumstances.

Re: [RFC 1/1] proc: constify seq_operations

2014-07-01 Thread Christoph Hellwig
On Mon, Jun 30, 2014 at 01:39:39PM -0700, Andrew Morton wrote: > On Mon, 30 Jun 2014 21:03:17 +0200 Fabian Frederick wrote: > > > proc_uid_seq_operations, proc_gid_seq_operations and > > proc_projid_seq_operations > > are only called in proc_id_map_open with seq_open as > > const struct seq_oper

[PATCH] mm: make copy_pte_range static again

2014-07-01 Thread Jerome Marchand
Commit 71e3aac (thp: transparent hugepage core) adds copy_pte_range prototype to huge_mm.h. I'm not sure why (or if) this function have been used outside of memory.c, but it currently isn't. This patch makes copy_pte_range() static again. Signed-off-by: Jerome Marchand --- include/linux/huge_mm.

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-01 Thread Peter Zijlstra
On Tue, Jun 24, 2014 at 11:34:54AM +0800, Michael wang wrote: > On 06/23/2014 05:42 PM, Peter Zijlstra wrote: > [snip] > >> +} > > > > Still completely hate this, it doesn't make sense conceptual sense what > > so ever. > > Yeah... and now I agree your opinion that this could not address all the

Re: [PATCH v4 13/13] ARM64 / ACPI: Enable ARM64 in Kconfig

2014-07-01 Thread Hanjun Guo
>> >>> depends on PCI >>> select PNP >>> - default y >>> + default y if !ARM64 >> >> For the benefit of single Image, I think you can default to y here. > > It ok to me. if we default to y here, devicetree will not be unflattened > in default, is it ok to you? you can refer to "[PATCH

[PATCH v3 2/9] slab: move up code to get kmem_cache_node in free_block()

2014-07-01 Thread Joonsoo Kim
node isn't changed, so we don't need to retreive this structure everytime we move the object. Maybe compiler do this optimization, but making it explicitly is better. Acked-by: Christoph Lameter Signed-off-by: Joonsoo Kim --- mm/slab.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)

[PATCH v3 4/9] slab: factor out initialization of arracy cache

2014-07-01 Thread Joonsoo Kim
Factor out initialization of array cache to use it in following patch. Acked-by: Christoph Lameter Signed-off-by: Joonsoo Kim --- mm/slab.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 59b9a4c..00b6bbc 1006

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-07-01 Thread Uwe Kleine-König
On Mon, Jun 30, 2014 at 09:56:33AM -0700, Soren Brinkmann wrote: > Introduce a new API function to find the rate a clock can provide which > is closest to a given rate. > > clk_round_rate() leaves it to the clock driver how rounding is done. > Commonly implementations round down due to use-cases t

[PATCH v3 9/9] slab: remove BAD_ALIEN_MAGIC

2014-07-01 Thread Joonsoo Kim
BAD_ALIEN_MAGIC value isn't used anymore. So remove it. Acked-by: Christoph Lameter Signed-off-by: Joonsoo Kim --- mm/slab.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 7820a45..60c9e11 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -470,8 +4

[PATCH v3 1/9] slab: add unlikely macro to help compiler

2014-07-01 Thread Joonsoo Kim
slab_should_failslab() is called on every allocation, so to optimize it is reasonable. We normally don't allocate from kmem_cache. It is just used when new kmem_cache is created, so it's very rare case. Therefore, add unlikely macro to help compiler optimization. Acked-by: David Rientjes Acked-by

Re: [RFC PATCH 3/9] irqchip: GIC: Convert to EOImode == 1

2014-07-01 Thread Marc Zyngier
Hi Stefano, On 30/06/14 20:09, Stefano Stabellini wrote: > On Wed, 25 Jun 2014, Anup Patel wrote: >> Hi Marc, >> >> On Wed, Jun 25, 2014 at 2:58 PM, Marc Zyngier wrote: >>> So far, GICv2 has been used in with EOImode == 0. The effect of this >>> mode is to perform the priority drop and the deacti

[PATCH v3 3/9] slab: defer slab_destroy in free_block()

2014-07-01 Thread Joonsoo Kim
In free_block(), if freeing object makes new free slab and number of free_objects exceeds free_limit, we start to destroy this new free slab with holding the kmem_cache node lock. Holding the lock is useless and, generally, holding a lock as least as possible is good thing. I never measure performa

[PATCH v3 0/9] clean-up and remove lockdep annotation in SLAB

2014-07-01 Thread Joonsoo Kim
This patchset does some clean-up and tries to remove lockdep annotation. Patches 1~2 are just for really really minor improvement. Patches 3~9 are for clean-up and removing lockdep annotation. There are two cases that lockdep annotation is needed in SLAB. 1) holding two node locks 2) holding two

[PATCH v3 6/9] slab: use the lock on alien_cache, instead of the lock on array_cache

2014-07-01 Thread Joonsoo Kim
Now, we have separate alien_cache structure, so it'd be better to hold the lock on alien_cache while manipulating alien_cache. After that, we don't need the lock on array_cache, so remove it. Acked-by: Christoph Lameter Signed-off-by: Joonsoo Kim --- mm/slab.c | 25 -

[PATCH v3 5/9] slab: introduce alien_cache

2014-07-01 Thread Joonsoo Kim
Currently, we use array_cache for alien_cache. Although they are mostly similar, there is one difference, that is, need for spinlock. We don't need spinlock for array_cache itself, but to use array_cache for alien_cache, array_cache structure should have spinlock. This is needless overhead, so remo

[PATCH v3 8/9] slab: remove a useless lockdep annotation

2014-07-01 Thread Joonsoo Kim
Now, there is no code to hold two lock simultaneously, since we don't call slab_destroy() with holding any lock. So, lockdep annotation is useless now. Remove it. v2: don't remove BAD_ALIEN_MAGIC in this patch. It will be removed in the following patch. Acked-by: Christoph Lameter Signed-off

[PATCH v3 7/9] slab: destroy a slab without holding any alien cache lock

2014-07-01 Thread Joonsoo Kim
I haven't heard that this alien cache lock is contended, but to reduce chance of contention would be better generally. And with this change, we can simplify complex lockdep annotation in slab code. In the following patch, it will be implemented. Acked-by: Christoph Lameter Signed-off-by: Joonsoo

Re: [PATCH RFC net-next 11/14] tracing: allow eBPF programs to be attached to events

2014-07-01 Thread Daniel Borkmann
On 06/28/2014 02:06 AM, Alexei Starovoitov wrote: User interface: cat bpf_123 > /sys/kernel/debug/tracing/__event__/filter where 123 is an id of the eBPF program priorly loaded. __event__ is static tracepoint event. (kprobe events will be supported in the future patches) eBPF programs can call

Re: [PATCH v2] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-07-01 Thread Mark Rutland
On Mon, Jun 30, 2014 at 10:43:42PM +0100, Mark Brown wrote: > On Mon, Jun 30, 2014 at 06:21:15PM +0100, Mark Rutland wrote: > > On Mon, Jun 30, 2014 at 06:10:59PM +0100, Dan Murphy wrote: > > > > +Optional properties: > > > > +- power-gpio - gpio pin to enable/disable the device > > > The code b

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-01 Thread Michael wang
On 07/01/2014 04:20 PM, Peter Zijlstra wrote: [snip] >> >> Just wondering could we make this another scheduler feature? > > No; sched_feat() is for debugging, BIG CLUE: its guarded by > CONFIG_SCHED_DEBUG, anybody using it in production or anywhere else is > broken. > > If people are using it, I

Re: [PATCH] drm/exynos: Fix NULL pointer exception when suspending without components

2014-07-01 Thread Inki Dae
On 2014년 06월 30일 22:25, Krzysztof Kozlowski wrote: > Fix a NULL pointer exception when main exynos drm driver was probed > successfully but no components were added (e.g. by incomplete DTS). In > such case the exynos_drm_load() is never called and drvdata is NULL. > Right, it's good report. Appli

Re: [RFC 1/1] proc: constify seq_operations

2014-07-01 Thread Richard Weinberger
On Tue, Jul 1, 2014 at 10:17 AM, Christoph Hellwig wrote: > On Mon, Jun 30, 2014 at 01:39:39PM -0700, Andrew Morton wrote: >> On Mon, 30 Jun 2014 21:03:17 +0200 Fabian Frederick wrote: >> >> > proc_uid_seq_operations, proc_gid_seq_operations and >> > proc_projid_seq_operations >> > are only call

Re: [PATCH] ipv4: icmp: Fix pMTU handling for rare case

2014-07-01 Thread Edward Allcutt
On Tue, 1 Jul 2014, David Miller wrote: From: Edward Allcutt Date: Mon, 30 Jun 2014 16:16:02 +0100 This is explicitly described as an eventuality that hosts must deal with by the standard (RFC 1191) since older standards specified that those bits must be zero. ... One example I have seen is

[PATCH 0/2] add rockchip i2s driver

2014-07-01 Thread jianqun
From: Jianqun Xu This patch is to add driver for I2S controller in RK3xxx SoCs. Jianqun Xu (2): ASoC: dt-bindings: add rockchip i2s bindings ASoC: add driver for Rockchip RK3xxx I2S controller .../devicetree/bindings/sound/rockchip-i2s.txt | 45 ++ sound/soc/Kconfig

[PATCH 1/2] ASoC: dt-bindings: add rockchip i2s bindings

2014-07-01 Thread jianqun
From: Jianqun Xu Add devicetree bindings for i2s controller found on rk3066, rk3188 and rk3288 processors from rockchip. Signed-off-by: Jianqun Xu --- .../devicetree/bindings/sound/rockchip-i2s.txt | 45 1 file changed, 45 insertions(+) create mode 100644 Documentat

Re: [PATCH 2/2 v2] HID: leds: Use attribute-groups in MSI GT683R driver

2014-07-01 Thread Johan Hovold
On Mon, Jun 30, 2014 at 04:17:10PM -0700, Bryan Wu wrote: > On Mon, Jun 30, 2014 at 4:33 AM, Jiri Kosina wrote: > > On Mon, 30 Jun 2014, Johan Hovold wrote: > > > >> > I think the better place is HID/input tree, since this patch depends > >> > on the initial one which is not in my tree. > >> > I'm

[PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller

2014-07-01 Thread jianqun
From: Jianqun Xu Add driver for I2S controller in Rockchip RK3xxx SoCs. This driver patch has been tested on the RK3288 SDK board. Signed-off-by: Jianqun Xu --- sound/soc/Kconfig |1 + sound/soc/Makefile|1 + sound/soc/rockchip/Kconfig| 16 +

[PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller

2014-07-01 Thread jianqun
From: Jianqun Xu Add driver for I2S controller in Rockchip RK3xxx SoCs. This driver patch has been tested on the RK3288 SDK board. Signed-off-by: Jianqun Xu --- sound/soc/Kconfig |1 + sound/soc/Makefile|1 + sound/soc/rockchip/Kconfig| 16 +

Re: [PATCH 1/2] ASoC: dt-bindings: add rockchip i2s bindings

2014-07-01 Thread Mark Rutland
On Tue, Jul 01, 2014 at 09:37:39AM +0100, jianqun wrote: > From: Jianqun Xu > > Add devicetree bindings for i2s controller found on rk3066, rk3188 and rk3288 > processors from rockchip. > > Signed-off-by: Jianqun Xu > --- > .../devicetree/bindings/sound/rockchip-i2s.txt | 45 > +

Re: [PATCH v2 07/12] usb: chipidea: add a generic driver

2014-07-01 Thread Sebastian Hesselbarth
On 07/01/2014 02:21 AM, Peter Chen wrote: On Mon, Jun 30, 2014 at 03:33:13PM +0200, Antoine Ténart wrote: On Fri, Jun 27, 2014 at 11:25:07AM +0800, Peter Chen wrote: On Tue, Jun 24, 2014 at 12:35:16PM +0200, Antoine Ténart wrote: + +static const struct of_device_id ci_hdrc_generic_of_match[] =

Re: [PATCH] sched: select 'idle' cfs_rq per task-group to prevent tg-internal imbalance

2014-07-01 Thread Peter Zijlstra
On Tue, Jul 01, 2014 at 04:38:58PM +0800, Michael wang wrote: > On 07/01/2014 04:20 PM, Peter Zijlstra wrote: > [snip] > >> > >> Just wondering could we make this another scheduler feature? > > > > No; sched_feat() is for debugging, BIG CLUE: its guarded by > > CONFIG_SCHED_DEBUG, anybody using it

Re: [PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller

2014-07-01 Thread Mark Rutland
On Tue, Jul 01, 2014 at 09:47:38AM +0100, jianqun wrote: > From: Jianqun Xu > > Add driver for I2S controller in Rockchip RK3xxx SoCs. > > This driver patch has been tested on the RK3288 SDK board. > > Signed-off-by: Jianqun Xu > --- > sound/soc/Kconfig |1 + > sound/soc/Make

Re: [PATCH resend v2 0/3] mfd-core: Don't register supplies from add_device, add register_supply_aliases()

2014-07-01 Thread Lee Jones
> I already send this series before (in time for 3.16) and AFAIK we agreed > on going with this series instead of the incomplete fix for the related oops > which now has been merged as commit d137be00ee017bc40e6027cb66d667a2e0b450fd > > I still believe that this series is the more correct fix, as

Re: [PATCH resend v2 0/3] mfd-core: Don't register supplies from add_device, add register_supply_aliases()

2014-07-01 Thread Hans de Goede
Hi, On 07/01/2014 11:05 AM, Lee Jones wrote: >> I already send this series before (in time for 3.16) and AFAIK we agreed >> on going with this series instead of the incomplete fix for the related oops >> which now has been merged as commit d137be00ee017bc40e6027cb66d667a2e0b450fd >> >> I still bel

Re: next-20140640 - fatal crash at boot time in sound drivers...

2014-07-01 Thread Takashi Iwai
At Mon, 30 Jun 2014 12:45:54 -0400, Valdis Kletnieks wrote: > > Seeing this on a Dell Latitude E6530 - kernel lives for just a few > seconds before committing hari-kiri trying to initialize the sound chipset. The bug has been fixed yesterday, so today's next tree should work. Let me know if you s

Re: drm: i915: "plane B assertion failure, should be off on pipe B but is still active"

2014-07-01 Thread Jani Nikula
On Mon, 30 Jun 2014, Paul Bolle wrote: > Kernels v3.16-rc2 and v3.16-rc3 trigger a new (for me) warning. (I never > booted v3.16-rc1). Machine is a, rather outdated, ThinkPad X41 (ie, > single core i686). > > WARNING: CPU: 0 PID: 221 at drivers/gpu/drm/i915/intel_display.c:1274 > assert_planes_di

Re: [PATCH 5/5] man-pages: cap_rights_get: retrieve Capsicum fd rights

2014-07-01 Thread David Drysdale
On Mon, Jun 30, 2014 at 03:28:14PM -0700, Andy Lutomirski wrote: > On Mon, Jun 30, 2014 at 3:28 AM, David Drysdale wrote: > > Signed-off-by: David Drysdale > > --- > > man2/cap_rights_get.2 | 126 > > ++ > > 1 file changed, 126 insertions(+) > >

Re: [PATCH 8/9 v2] coresight: adding basic support for Vexpress TC2

2014-07-01 Thread Dirk Behme
On 27.06.2014 20:04, mathieu.poir...@linaro.org wrote: From: Mathieu Poirier Support for the 2 PTMs, 3 ETMs, funnel, TPIU and replicator connected to the ETB are included. Proper handling of the ITM and the replicator linked to it along with the CTIs and SWO are not included. Signed-off-by: M

Re: [PATCH v4 13/13] ARM64 / ACPI: Enable ARM64 in Kconfig

2014-07-01 Thread Catalin Marinas
On Tue, Jul 01, 2014 at 09:20:20AM +0100, Hanjun Guo wrote: > >>> depends on PCI > >>> select PNP > >>> - default y > >>> + default y if !ARM64 > >> > >> For the benefit of single Image, I think you can default to y here. > > > > It ok to me. if we default to y here, devicetree will not be unf

[PATCH] clk: ppc-corenet: Fix Section mismatch warning

2014-07-01 Thread Jingchang Lu
WARNING: drivers/built-in.o(.data+0x10258): Section mismatch in reference from the variable ppc_corenet_clk_driver to the (unknown reference) .init.rodata:(unknown) The variable ppc_corenet_clk_driver references the (unknown reference) __initconst (unknown) If the reference is valid then annotate t

Re: [PATCH] firmware loader: inform direct failure when udev loader is disabled

2014-07-01 Thread Takashi Iwai
At Tue, 1 Jul 2014 11:54:24 +0800, Ming Lei wrote: > > On Tue, Jul 1, 2014 at 7:30 AM, Luis R. Rodriguez > wrote: > > From: "Luis R. Rodriguez" > > > > Now that the udev firmware loader is optional request_firmware() > > will not provide any information on the kernel ring buffer if > > direct fi

Re: [PATCH resend v2 1/3] mfd-core: Don't register supplies from add_device, add register_supply_aliases()

2014-07-01 Thread Lee Jones
On Mon, 30 Jun 2014, Hans de Goede wrote: > We cannot register supply alias in mfd_add_device before calling > platform_add_device because platform-dev's name must be set before registering > the aliases which happens from platform_add_device. > > So stop registering supply aliases from mfd_add_d

Re: [V2 PATCH] ALSA: hda - Enable mute/mic-mute LEDs for more Thinkpads with Conexant codec

2014-07-01 Thread Hui Wang
On 07/01/2014 03:38 PM, Jan Kiszka wrote: On 2014-07-01 04:15, Hui Wang wrote: On 06/30/2014 02:45 PM, Jan Kiszka wrote: On 2014-06-30 04:04, Hui Wang wrote: On 06/29/2014 07:33 PM, Jan Kiszka wrote: On 2013-11-27 07:47, Hui Wang wrote: Most Thinkpad Edge series laptops use conexant codec, s

Re: [PATCH 2/2] ASoC: add driver for Rockchip RK3xxx I2S controller

2014-07-01 Thread Varka Bhadram
On 07/01/2014 02:09 PM, jianqun wrote: From: Jianqun Xu [...] + +static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream, + struct snd_pcm_hw_params *params, struct snd_soc_dai *dai) Proper indentation for function arguments, otherwise checkpatch.pl will give warning.

Re: [patch] x86, perf: avoid spamming kernel log for bts buffer failure

2014-07-01 Thread Peter Zijlstra
On Mon, Jun 30, 2014 at 04:04:08PM -0700, David Rientjes wrote: > It's unnecessary to excessively spam the kernel log anytime the BTS buffer > cannot be allocated, so make this allocation __GFP_NOWARN. > > The user probably will want to at least find some artifact that the > allocation has faile

[PATCH v2 06/14] AT91: dt: Remove init_time definitions

2014-07-01 Thread Maxime Ripard
The current AT91 DT boards have a completely generic init_time definition. Remove them from the machine declaration. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/board-dt-sam9.c | 11 --- arch/arm/mach-at91/board-dt-sama5.c | 10 -- 2 files changed, 21 deletions(-) diff

[PATCH v2 09/14] AT91: PIT: use request_irq instead of setup_irq

2014-07-01 Thread Maxime Ripard
We can use the generic request_irq now to register a timer interrupt handler, instead of the more complex setup_irq. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam926x_time.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/arch/arm/mach-at91

[PATCH v2 08/14] AT91: PIT: Use pr_fmt

2014-07-01 Thread Maxime Ripard
All the panic messages hardcode the same prefix. Define the pr_fmt macro to unify its definition. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam926x_time.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arc

[PATCH v2 14/14] AT91: PIT: Move the driver to drivers/clocksource

2014-07-01 Thread Maxime Ripard
Now that we don't depend on anyting in the mach-at91 directory, we can just move the driver to where it belongs. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/Kconfig | 6 -- arch/arm/mach-at91/Makefile |

[PATCH v2 07/14] AT91: PIT: Use consistent exit path in probe

2014-07-01 Thread Maxime Ripard
The current probe code is, whenever it fails to retrieve a resource, either panicing, silently returning, or returning and displaying an error. Make the code consistent by always panicing whenever it fails to grab any resource. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam926x_tim

[PATCH v2 04/14] AT91: PIT: Use of_have_populated_dt instead of CONFIG_OF

2014-07-01 Thread Maxime Ripard
Until now, the machines, even when CONFIG_OF was enabled, were calling at91sam926x_ioremap_pit to try to map the PIT address using the defined physical address. Obviously, with DT, it's not appropriate anymore, and some code was added to the function to deal with this case. Unfortunately, this co

[PATCH v2 00/14] AT91: PIT: Cleanups and move to drivers/clocksource

2014-07-01 Thread Maxime Ripard
Hi everyone, This series cleans up the PIT driver in order for it to not depend on anything in mach-at91 anymore, and in the end move it out of mach-at91. Along the way, these patches also do a bit of cleanup. This has been tested on a G45-EK without DT and an Xplained with DT. Thanks, Maxime

[PATCH v2 13/14] AT91: PIT: Convert to an early_platform_device

2014-07-01 Thread Maxime Ripard
Convert the legacy probing mechanism to the early_platform_driver probe. This will allow a clear separation between the driver and the machine setup code, which will in turn ease the move out of mach-at91. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam9260.c | 30 +

[PATCH v2 05/14] AT91: PIT: Rework probe functions

2014-07-01 Thread Maxime Ripard
The PIT timer driver until now had a single probe function, disregarding wether it was probed through DT or in the old-style way. This code later on was calling some DT function to retrieve the proper values for its base address, interrupts and clocks. While this was working, it was preventing the

[PATCH v2 02/14] AT91: generic.h: Add include safe guards

2014-07-01 Thread Maxime Ripard
The generic.h header file doesn't have any safe guards against multiple inclusion. It only worked so far because all the symbols defined in it were extern, but this is a rather fragile assumption. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/generic.h | 5 + 1 file changed, 5 insertio

[PATCH v2 03/14] AT91: PIT: Use DIV_ROUND_CLOSEST to compute the cycles

2014-07-01 Thread Maxime Ripard
Until now, the pit_cycle computation was dividing the rate by HZ, rounding to the closest integer, but without using the appropriate macro. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam926x_time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-at9

[PATCH v2 01/14] AT91: PIT: Follow the general coding rules

2014-07-01 Thread Maxime Ripard
Replace all masks and bits definitions by matching calls to BIT and GENMASK. While we're at it, also fix a few style issues. Signed-off-by: Maxime Ripard --- arch/arm/mach-at91/at91sam926x_time.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-

Re: [PATCH resend v2 1/3] mfd-core: Don't register supplies from add_device, add register_supply_aliases()

2014-07-01 Thread Hans de Goede
Hi, On 07/01/2014 11:22 AM, Lee Jones wrote: > On Mon, 30 Jun 2014, Hans de Goede wrote: > >> We cannot register supply alias in mfd_add_device before calling >> platform_add_device because platform-dev's name must be set before >> registering >> the aliases which happens from platform_add_devic

[PATCH v2 10/14] AT91: PIT: (Almost) remove the global variables

2014-07-01 Thread Maxime Ripard
The timer driver is using some global variables to define some variables it has to use in most of its functions, like the base address. Use some container_of calls to have a single dynamic (and local) variable to hold this content. The only exception is in the !DT case, where the call chain to at

  1   2   3   4   5   6   7   8   >