[PATCH 02/14] workqueue: add wq_numa_tbl_len and wq_numa_possible_cpumask[]

2013-03-27 Thread Tejun Heo
Unbound workqueues are going to be NUMA-affine. Add wq_numa_tbl_len and wq_numa_possible_cpumask[] in preparation. The former is the highest NUMA node ID + 1 and the latter is masks of possibles CPUs for each NUMA node. This patch only introduces these. Future patches will make use of them. v2

[PATCH 12/14] workqueue: introduce put_pwq_unlocked()

2013-03-27 Thread Tejun Heo
Factor out lock pool, put_pwq(), unlock sequence into put_pwq_unlocked(). The two existing places are converted and there will be more with NUMA affinity support. This is to prepare for NUMA affinity support for unbound workqueues and doesn't introduce any functional difference. Signed-off-by: T

[PATCH 05/14] workqueue: add workqueue->unbound_attrs

2013-03-27 Thread Tejun Heo
Currently, when exposing attrs of an unbound workqueue via sysfs, the workqueue_attrs of first_pwq() is used as that should equal the current state of the workqueue. The planned NUMA affinity support will make unbound workqueues make use of multiple pool_workqueues for different NUMA nodes and the

[PATCH 04/14] workqueue: determine NUMA node of workers accourding to the allowed cpumask

2013-03-27 Thread Tejun Heo
When worker tasks are created using kthread_create_on_node(), currently only per-cpu ones have the matching NUMA node specified. All unbound workers are always created with NUMA_NO_NODE. Now that an unbound worker pool may have an arbitrary cpumask associated with it, this isn't optimal. Add pool

[PATCH 03/14] workqueue: drop 'H' from kworker names of unbound worker pools

2013-03-27 Thread Tejun Heo
Currently, all workqueue workers which have negative nice value has 'H' postfixed to their names. This is necessary for per-cpu workers as they use the CPU number instead of pool->id to identify the pool and the 'H' postfix is the only thing distinguishing normal and highpri workers. As workers f

[PATCH 14/14] workqueue: update sysfs interface to reflect NUMA awareness and a kernel param to disable NUMA affinity

2013-03-27 Thread Tejun Heo
Unbound workqueues are now NUMA aware. Let's add some control knobs and update sysfs interface accordingly. * Add kernel param workqueue.numa_disable which disables NUMA affinity globally. * Replace sysfs file "pool_id" with "pool_ids" which contain node:pool_id pairs. This change is userla

[PATCH 13/14] workqueue: implement NUMA affinity for unbound workqueues

2013-03-27 Thread Tejun Heo
Currently, an unbound workqueue has single current, or first, pwq (pool_workqueue) to which all new work items are queued. This often isn't optimal on NUMA machines as workers may jump around across node boundaries and work items get assigned to workers without any regard to NUMA affinity. This p

[PATCH 10/14] workqueue: use NUMA-aware allocation for pool_workqueues

2013-03-27 Thread Tejun Heo
Use kmem_cache_alloc_node() with @pool->node instead of kmem_cache_zalloc() when allocating a pool_workqueue so that it's allocated on the same node as the associated worker_pool. As there's no no kmem_cache_zalloc_node(), move zeroing to init_pwq(). This was suggested by Lai Jiangshan. Signed-o

[PATCH 11/14] workqueue: introduce numa_pwq_tbl_install()

2013-03-27 Thread Tejun Heo
Factor out pool_workqueue linking and installation into numa_pwq_tbl[] from apply_workqueue_attrs() into numa_pwq_tbl_install(). link_pwq() is made safe to call multiple times. numa_pwq_tbl_install() links the pwq, installs it into numa_pwq_tbl[] at the specified node and returns the old entry.

[PATCH 08/14] workqueue: map an unbound workqueues to multiple per-node pool_workqueues

2013-03-27 Thread Tejun Heo
Currently, an unbound workqueue has only one "current" pool_workqueue associated with it. It may have multple pool_workqueues but only the first pool_workqueue servies new work items. For NUMA affinity, we want to change this so that there are multiple current pool_workqueues serving different NU

[PATCH 09/14] workqueue: break init_and_link_pwq() into two functions and introduce alloc_unbound_pwq()

2013-03-27 Thread Tejun Heo
Break init_and_link_pwq() into init_pwq() and link_pwq() and move unbound-workqueue specific handling into apply_workqueue_attrs(). Also, factor out unbound pool and pool_workqueue allocation into alloc_unbound_pwq(). This reorganization is to prepare for NUMA affinity and doesn't introduce any fu

[PATCH 06/14] workqueue: make workqueue->name[] fixed len

2013-03-27 Thread Tejun Heo
Currently workqueue->name[] is of flexible length. We want to use the flexible field for something more useful and there isn't much benefit in allowing arbitrary name length anyway. Make it fixed len capping at 24 bytes. Signed-off-by: Tejun Heo --- kernel/workqueue.c | 19 ---

[PATCH 07/14] workqueue: move hot fields of workqueue_struct to the end

2013-03-27 Thread Tejun Heo
Move wq->flags and ->cpu_pwqs to the end of workqueue_struct and align them to the cacheline. These two fields are used in the work item issue path and thus hot. The scheduled NUMA affinity support will add dispatch table at the end of workqueue_struct and relocating these two fields will allow u

Subject: [PATCHSET v2 wq/for-3.10] workqueue: NUMA affinity for unbound workqueues

2013-03-27 Thread Tejun Heo
Hello, Changes from the last take[L] are * Lai pointed out that the previous implementation was broken in that if a workqueue spans over multiple nodes and some of the nodes don't have any desired online CPUs, work items queued on those nodes would be spread across all CPUs violating the co

[PATCH 01/14] workqueue: move pwq_pool_locking outside of get/put_unbound_pool()

2013-03-27 Thread Tejun Heo
The scheduled NUMA affinity support for unbound workqueues would need to walk workqueues list and pool related operations on each workqueue. Move wq_pool_mutex locking out of get/put_unbound_pool() to their callers so that pool operations can be performed while walking the workqueues list, which i

Re: [PATCH 1/2] extcon: max77693: Fix return value

2013-03-27 Thread Sachin Kamat
Hi Chanwoo, On 28 March 2013 04:51, Chanwoo Choi wrote: > On 03/27/2013 08:23 PM, Sachin Kamat wrote: >> Return the value obtained from the function instead of hardcoding. >> Silences the following warning: >> drivers/extcon/extcon-max77693.c:297 max77693_muic_set_path() >> info: why not propagat

s390x: kernel BUG at fs/ext4/inode.c:1591!

2013-03-27 Thread CAI Qian
System hung when running xfstests-dev 013 test case on an s390x guest. Never saw this on 3.9-rc3 before but need to double-check. Any idea? CAI Qian Ý 1113.795759¨ Ý cut here ¨ Ý 1113.795771¨ kernel BUG at fs/ext4/inode.c:1591! Ý 1113.795845¨ illegal operation: 0001 Ý#1¨ S

[PATCH v2 1/2] extcon: max77693: Fix return value

2013-03-27 Thread Sachin Kamat
Return the value obtained from the function instead of hardcoding. Silences the following warnings: drivers/extcon/extcon-max77693.c:297 max77693_muic_set_path() info: why not propagate 'ret' from max77693_update_reg() instead of (-11)? drivers/extcon/extcon-max77693.c:310 max77693_muic_set_path()

[PATCH v2 2/2] extcon: max8997: Fix return value

2013-03-27 Thread Sachin Kamat
Return the value obtained from the function instead of hardcoding. Fixes the following warnings: drivers/extcon/extcon-max8997.c:235 max8997_muic_set_path() info: why not propagate 'ret' from max8997_update_reg() instead of (-11)? drivers/extcon/extcon-max8997.c:248 max8997_muic_set_path() info: wh

Re: [PATCH v2 1/4] iio: adc: Document the regulator/clocks for exynos-adc

2013-03-27 Thread Jonathan Cameron
Doug Anderson wrote: >Hi, > >On Wed, Mar 27, 2013 at 11:40 AM, Lars-Peter Clausen >wrote: >> On 03/27/2013 07:35 PM, Naveen Krishna Ch wrote: >>> On 13 March 2013 13:39, Doug Anderson wrote: The exynos ADC won't work without a regulator called "vdd" and a >clock called "adc". Docum

Re: [PATCH 1/2] workqueue: fix race condition in unbound workqueue free path

2013-03-27 Thread Tejun Heo
Oops, forgot something. Both patches are against wq/for-3.10 and fix problems introduced in this devel cycle, so no need to be alarmed. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordom

[PATCH 2/2] workqueue: fix unbound workqueue attrs hashing / comparison

2013-03-27 Thread Tejun Heo
>From b37c3e3a74346749f0278c349dc0857107cb4370 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Wed, 27 Mar 2013 23:27:41 -0700 29c91e9912b ("workqueue: implement attribute-based unbound worker_pool management") implemented attrs based worker_pool matching. It tried to avoid false negative when co

[PATCH 1/2] workqueue: fix race condition in unbound workqueue free path

2013-03-27 Thread Tejun Heo
>From b2277a4e655c0858da7d85b99f0925abeedc3b6c Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Wed, 27 Mar 2013 23:27:41 -0700 8864b4e59 ("workqueue: implement get/put_pwq()") implemented pwq (pool_workqueue) refcnting which frees workqueue when the last pwq goes away. It determined whether it wa

[PATCH 3/3] backlight: vgg2432a4: convert vgg2432a4_driver to dev_pm_ops

2013-03-27 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Also, use of pm_message_t is deprecated. Thus, it is removed. Signed-off-by: Jingoo Han --- drivers/video/backlight/ili9320.c | 24 +--- drivers/v

[PATCH 2/3] backlight: tosa: convert tosa to dev_pm_ops

2013-03-27 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/video/backlight/tosa_bl.c | 18 -- drivers/video/backlight/tosa_lcd.c | 18 -- 2 files changed,

[PATCH 1/3] backlight: omap1: convert omapbl to dev_pm_ops

2013-03-27 Thread Jingoo Han
Instead of using legacy suspend/resume methods, using newer dev_pm_ops structure allows better control over power management. Signed-off-by: Jingoo Han --- drivers/video/backlight/omap1_bl.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/v

[PATCH v3] hw_random: Add Broadcom BCM2835 RNG driver

2013-03-27 Thread Lubomir Rintel
This adds a driver for random number generator present on Broadcom BCM2835 SoC, used in Raspberry Pi and Roku 2 devices. Signed-off-by: Dom Cobley Signed-off-by: Lubomir Rintel Tested-by: Stephen Warren Cc: Herbert Xu Cc: Stephen Warren Cc: Matt Mackall Cc: linux-rpi-ker...@lists.infradead.o

[PATCH] iommu: exynos: Fix out of bound array access

2013-03-27 Thread Axel Lin
In the case of no-match in "for (i = 0; i < (pdev->num_resources / 2); i++)", i is "pdev->num_resources / 2". Fix the boundary checking to avoid the out of bound array access for data->sfrbases[i]. Signed-off-by: Axel Lin --- drivers/iommu/exynos-iommu.c |2 +- 1 file changed, 1 insertion(+)

Re: [PATCH] pinctrl: bcm2835: make use of of_property_read_u32_index()

2013-03-27 Thread Tony Prisk
On Wed, 2013-03-27 at 23:09 -0600, Stephen Warren wrote: > Use the new standard API of_property_read_u32_index() instead of open- > coding it. > > Signed-off-by: Stephen Warren > --- > Note: This depends on the proposed patch "of: Add support for reading > a u32 from a multi-value property" by To

Re: [PATCH] hw_random: Add Broadcom BCM2835 RNG Driver

2013-03-27 Thread Lubomir Rintel
On Fri, 2013-03-22 at 20:44 -0600, Stephen Warren wrote: > On 03/22/2013 06:55 AM, Lubomir Rintel wrote: > > Signed-off-by: Lubomir Rintel > > A commit description would be useful. > > > arch/arm/boot/dts/bcm2835.dtsi |5 + > > arch/arm/configs/bcm2835_defconfig |3 +- > > drive

Re: [PATCH] ALSA: hda - Clean up documentation a bit

2013-03-27 Thread Rob Landley
On 03/27/2013 03:30:22 AM, Paul Bolle wrote: CONFIG_SND_HDA_POWER_SAVE was removed in v3.6.7, see commit 83012a7ccbb90dee33c97a004b3e374f988612af ("ALSA: hda - Clean up CONFIG_SND_HDA_POWER_SAVE"). Clean up hda's documentation to reflect that. Signed-off-by: Paul Bolle --- 0) I send this to the

[PATCH] bcm2835: Add Broadcom BCM2835 RNG to the device tree

2013-03-27 Thread Lubomir Rintel
This adds a device tree binding for random number generator present on Broadcom BCM2835 SoC, used in Raspberry Pi and Roku 2 devices. Signed-off-by: Lubomir Rintel Tested-by: Stephen Warren Cc: Stephen Warren Cc: linux-rpi-ker...@lists.infradead.org Cc: devicetree-disc...@lists.ozlabs.org Cc: l

[PATCHv3 2/6] arm: vt8500: Increase available GPIOs on arch-vt8500

2013-03-27 Thread Tony Prisk
With the inclusion of the pin control driver, more GPIO pins have been identified on the arch-vt8500 SoCs requiring an increase in the available GPIOs. Signed-off-by: Tony Prisk --- arch/arm/Kconfig |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/

[PATCHv3 1/6] of: Add support for reading a u32 from a multi-value property.

2013-03-27 Thread Tony Prisk
This patch adds an of_property_read_u32_index() function to allow reading a single indexed u32 value from a property containing multiple u32 values. Signed-off-by: Tony Prisk --- drivers/of/base.c | 33 + include/linux/of.h |9 + 2 files changed, 42

[PATCHv3 6/6] gpio: vt8500: Remove arch-vt8500 gpio driver

2013-03-27 Thread Tony Prisk
With the move to a combined pinctrl/gpio driver, the arch-vt8500 gpio driver is no longer required. Signed-off-by: Tony Prisk --- .../devicetree/bindings/gpio/gpio-vt8500.txt | 24 -- drivers/gpio/Kconfig |6 - drivers/gpio/Makefile

[PATCHv3 4/6] arm: dts: vt8500: Update Wondermedia SoC dtsi files for pinctrl driver

2013-03-27 Thread Tony Prisk
This patch adds pinctrl nodes to the VIA VT8500 and Wondermedia SoC dtsi files to support the pinctrl driver. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500.dtsi |9 + arch/arm/boot/dts/wm8505.dtsi |9 + arch/arm/boot/dts/wm8650.dtsi |9 + arch/arm/boo

[PATCHv3 5/6] arm: vt8500: Remove gpio devicetree nodes

2013-03-27 Thread Tony Prisk
Remove the gpio related devicetree nodes as these are no longer required with the move to a combined pinctrl/gpio driver. Signed-off-by: Tony Prisk --- arch/arm/boot/dts/vt8500.dtsi |7 --- arch/arm/boot/dts/wm8505.dtsi |7 --- arch/arm/boot/dts/wm8650.dtsi |7 --- arch/a

[PATCHv3 0/6] arm: vt8500: Add support for pinctrl/gpio module

2013-03-27 Thread Tony Prisk
v3 changes: Rebased onto v3.9-rc4 Added the missing interrupt-controller info to the relevant dtsi files. Removed the gpio-vt8500.txt binding along with the gpio driver. Changes made as requested by Linux Walleij: Removed the wm,pinmux property which has caused too much confusion, and left the

Re: [PATCH] gpio: palmas: add dt support

2013-03-27 Thread Laxman Dewangan
On Wednesday 27 March 2013 09:27 PM, Stephen Warren wrote: On 03/27/2013 07:00 AM, Linus Walleij wrote: On Thu, Mar 21, 2013 at 3:30 PM, Laxman Dewangan wrote: #ifdef CONFIG_OF_GPIO - palmas_gpio->gpio_chip.of_node = palmas->dev->of_node; + palmas_gpio->gpio_chip.of_node = pdev-

Re: [PATCH v2 1/2] PM / devfreq: Fix compiler warnings

2013-03-27 Thread MyungJoo Ham
On Wed, Mar 27, 2013 at 10:52 PM, Rajagopal Venkat wrote: > Fix compiler warnings generated when devfreq is not enabled > (CONFIG_PM_DEVFREQ is not set). > > Signed-off-by: Rajagopal Venkat Thanks! Acked-by: MyungJoo Ham > --- > include/linux/devfreq.h | 16 > 1 file chan

Re: [PATCH] gpio: palmas: add dt support

2013-03-27 Thread Laxman Dewangan
On Wednesday 27 March 2013 06:30 PM, Linus Walleij wrote: On Thu, Mar 21, 2013 at 3:30 PM, Laxman Dewangan wrote: +#ifdef CONFIG_OF +static struct of_device_id of_palmas_gpio_match[] = { + { .compatible = "ti,palmas-gpio"}, + { }, +}; +MODULE_DEVICE_TABLE(of, of_palmas_gpio_match);

[PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined

2013-03-27 Thread Chen Gang
for make V=1 EXTRA_CFLAGS=-W ARCH=arm allmodconfig printk is need when CONFIG_BPF_JIT is defined or it will report pr_err and print_hex_dump are implicit declaration Signed-off-by: Chen Gang --- include/linux/filter.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff

Re: [PATCH 1/1] Input: mma8450 - fix signed 12bits to 32bits conversion

2013-03-27 Thread Dmitry Torokhov
Hi Seb, On Wed, Mar 27, 2013 at 09:17:43AM +0100, seb wrote: > Event value is wrong. Should be in range -2048 to 2047, but is in range 0 to > 4095. > Use int8_t to int conversion and remove 0xfff mask. > > Signed-off-by: seb > --- > drivers/input/misc/mma8450.c | 15 ++- > 1 file

[PATCH v4 5/6] ARM: dts: omap: update usb_otg_hs data

2013-03-27 Thread Kishon Vijay Abraham I
Updated the usb_otg_hs dt data to include the *phy* and *phy-names* binding in order for the driver to use the new generic PHY framework. Also updated the Documentation to include the binding information. The PHY binding information can be found at Documentation/devicetree/bindings/phy/phy-bindings

[PATCH v4 0/6] Generic PHY Framework

2013-03-27 Thread Kishon Vijay Abraham I
Added a generic PHY framework that provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. To obtain a reference to the PHY without using phandle, the platform specfic intialization code (say from

[PATCH v4 2/6] usb: phy: omap-usb2: use the new generic PHY framework

2013-03-27 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. omap_usb2_suspend is split into omap_usb_suspend and omap_usb_resume in order to align with the new framework. However using the old USB PHY library cannot be completely removed because OTG is intertwined with PHY and moving to the new framewor

[PATCH v4 3/6] usb: otg: twl4030: use the new generic PHY framework

2013-03-27 Thread Kishon Vijay Abraham I
Used the generic PHY framework API to create the PHY. twl4030_usb_suspend and twl4030_usb_resume is added to phy_ops in order to align with the new framework. However using the old USB PHY library cannot be completely removed because OTG is intertwined with PHY and moving to the new framework comp

[PATCH v4 4/6] ARM: OMAP: USB: Add phy binding information

2013-03-27 Thread Kishon Vijay Abraham I
In order for controllers to get PHY in case of non dt boot, the phy binding information should be added in the platform specific initialization code using phy_bind. Signed-off-by: Kishon Vijay Abraham I --- arch/arm/mach-omap2/usb-musb.c |7 ++- 1 file changed, 6 insertions(+), 1 deletio

[PATCH v4 1/6] drivers: phy: add generic PHY framework

2013-03-27 Thread Kishon Vijay Abraham I
The PHY framework provides a set of APIs for the PHY drivers to create/destroy a PHY and APIs for the PHY users to obtain a reference to the PHY with or without using phandle. To obtain a reference to the PHY without using phandle, the platform specfic intialization code (say from board file) shoul

[PATCH v4 6/6] usb: musb: omap2430: use the new generic PHY framework

2013-03-27 Thread Kishon Vijay Abraham I
Use the generic PHY framework API to get the PHY. The usb_phy_set_suspend and usb_phy_set_resume is replaced with phy_suspend and phy_resume to align with the new PHY framework. musb->xceiv can't be removed as of now because musb core uses xceiv.state and xceiv.otg. Once there is a separate state

Re: Generic syscall ABI support

2013-03-27 Thread H. Peter Anvin
On 03/27/2013 08:09 PM, Ley Foon Tan wrote: > Need advise regarding the generic syscall ABI support. > > We are planning to upstream our Nios II kernel (arch/nios2) to mainline. > But it doesn't support generic syscall ABI yet (It requires an updated > Glibc port as well). > > The question is, i

Re: [PATCH] Input: trackpoint - Optimize trackpoint init to use power-on reset

2013-03-27 Thread Dmitry Torokhov
Hi Shawn, On Tue, Mar 26, 2013 at 12:36:41PM -0700, Shawn Nematbakhsh wrote: > The trackpoint driver sets various parameter default values, all of > which happen to be power-on defaults (Source: IBM TrackPoint Engineering > Specification, Version 4.0. Also confirmed by empirical data). > > By sen

Re: [PATCH] arm: omap: RX-51: ARM errata 430973 workaround

2013-03-27 Thread Ивайло Димитров
Tony, Who do you expect to make that code merge? Do you expect us to mechanically merge RX51 PPA API patch with the existing generic OMAP PPA API code putting #ifdefs all over the place? Not that it is impossible, but the only real piece of HW I have here is n900, so I just can't be sure the c

linux-next: Tree for Mar 28

2013-03-27 Thread Stephen Rothwell
Hi all, The next linux-next release will be on Tuesday April 2. Changes since 20130327: The vl4-dvb tree still had its build failure for which I disabled a staging driver. The hid tree gained a conflict against Linus' tree. The net-next tree gained a build failure for which I rever

Re: linux-next: build failure after merge of the final tree (net-next tree related)

2013-03-27 Thread David Miller
From: Stephen Rothwell Date: Thu, 28 Mar 2013 16:04:20 +1100 > Hi all, > > After merging the final tree, today's linux-next build (powerpc > ppc44x_defconfig) failed like this: > > net/packet/af_packet.c: In function 'packet_sendmsg_spkt': > net/packet/af_packet.c:1515:2: error: implicit declar

[PATCH] pinctrl: bcm2835: make use of of_property_read_u32_index()

2013-03-27 Thread Stephen Warren
Use the new standard API of_property_read_u32_index() instead of open- coding it. Signed-off-by: Stephen Warren --- Note: This depends on the proposed patch "of: Add support for reading a u32 from a multi-value property" by Tony Prisk. BTW, I realized why I didn't create that standard API, but w

linux-next: build failure after merge of the final tree (net-next tree related)

2013-03-27 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: net/packet/af_packet.c: In function 'packet_sendmsg_spkt': net/packet/af_packet.c:1515:2: error: implicit declaration of function 'skb_probe_transport_header' [-Werror=implicit-function-de

Re: [PATCH 6/6] video: fb: vt8500: Convert framebuffer drivers to standardized binding

2013-03-27 Thread Tony Prisk
On Wed, 2013-03-27 at 13:10 +0200, Tomi Valkeinen wrote: > Hi, > > On 2013-03-27 10:47, Tony Prisk wrote: > > Now that a display timing binding is available, convert our almost identical > > binding to use the standard binding. > > > > This patch converts the vt8500 and wm8505 framebuffer drivers

Re: [Bulk] [PATCH] video: fix invalid free of devm_ allocated data

2013-03-27 Thread Tony Prisk
On Thu, 2013-03-28 at 01:55 +0200, Andrei Epure wrote: > The objects allocated by devm_* APIs are managed by devres and are freed when > the device is detached. Hence there is no need to use kfree() explicitly. > Patch found using coccinelle. > > Signed-off-by: Andrei Epure > --- > drivers/video

Re: [PATCH] video: fixed missing iounmap coccinelle errors

2013-03-27 Thread Tony Prisk
On Thu, 2013-03-28 at 01:43 +0200, Andrei Epure wrote: > Modified or added the necessary goto statements so that the ioremapped > regions get unmapped before return. > > Signed-off-by: Andrei Epure > --- > drivers/video/vt8500lcdfb.c |7 --- > drivers/video/wm8505fb.c|7 --- >

[PATCH 2/2] clk: allow reentrant calls into the clk framework

2013-03-27 Thread Mike Turquette
Reentrancy into the clock framework is necessary for clock operations that result in nested calls to the clk api. A common example is a clock that is prepared via an i2c transaction, such as a clock inside of a discrete audio chip or a power management IC. The i2c subsystem itself will use the cl

[PATCH 1/2] clk: abstract locking out into helper functions

2013-03-27 Thread Mike Turquette
Create locking helpers for the global mutex and global spinlock. The definitions of these helpers will be expanded upon in the next patch which introduces reentrancy into the locking scheme. Signed-off-by: Mike Turquette Cc: Rajagopal Venkat Cc: David Brown Cc: Ulf Hansson Cc: Laurent Pinchar

[PATCH v5 0/2] reentrancy in the common clk framework

2013-03-27 Thread Mike Turquette
This fifth attempt at allowing calls to the clk api to reenter splits the last patch into two parts. The first patch abstracts out the locking details into some helper functions and converts all of the direct calls to the mutex and spinlock api to use these helpers. The second patch introduces th

Re: [PATCH -next] mg_disk: fix error return code in mg_probe()

2013-03-27 Thread Jingoo Han
On Thursday, March 28, 2013 1:32 PM, Wei Yongjun wrote: > > From: Wei Yongjun > > Fix to return a negative error code from the error handling > case instead of 0, as returned elsewhere in this function. > > Signed-off-by: Wei Yongjun CC'ed Jens Axboe It looks good. Reviewed-by: Jingoo Han

Re: [PATCH] ARM: davinci: use is IS_ENABLED macro

2013-03-27 Thread Prabhakar Lad
Hi Sekhar, On Wed, Mar 27, 2013 at 4:13 PM, Stephen Rothwell wrote: > Hi, > > On Mon, 25 Mar 2013 16:51:35 +0530 Prabhakar lad > wrote: >> >> --- a/arch/arm/mach-davinci/board-da830-evm.c >> +++ b/arch/arm/mach-davinci/board-da830-evm.c >> @@ -298,7 +298,7 @@ static const short da830_evm_emif25

[PATCH -next] mg_disk: fix error return code in mg_probe()

2013-03-27 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/block/mg_disk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/block/mg_disk.c b/drive

Re: zsmalloc zbud hybrid design discussion?

2013-03-27 Thread Bob Liu
On 03/28/2013 04:04 AM, Dan Magenheimer wrote: > Seth and all zproject folks -- > > I've been giving some deep thought as to how a zpage > allocator might be designed that would incorporate the > best of both zsmalloc and zbud. > > Rather than dive into coding, it occurs to me that the > best ch

[PATCH] PCI, ACPI: Don't query OSC support with all possible controls

2013-03-27 Thread Yinghai Lu
Found problem on system that firmware that could handle pci aer. Firmware get error reporting after pci injecting error, before os boots. But after os boots, firmware can not get report anymore, even pci=noaer is passed. Root cause: BIOS _OSC has problem with query bit checking. It turns out that

linux-next: manual merge of the signal tree with Linus' tree

2013-03-27 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the signal tree got a conflict in fs/splice.c between commit 06ae43f34bcc ("Don't bother with redoing rw_verify_area() from default_file_splice_from()") from Linus' tree and commit 76b021d053ed ("convert vmsplice to COMPAT_SYSCALL_DEFINE") from the signal tree.

[PATCH 2/2] eisa, PCI: init eisa early before pnp step in

2013-03-27 Thread Yinghai Lu
Mathhew reported kernels fail the pci_eisa probe and are later successful with the virtual_eisa_root_init force probe without slot0. The reason for that is: pnp probing is early than pci_eisa_init get called as pci_eisa_init is called via pci_driver. pnp 00:0f has 0xc80 - 0xc84 reserved. [9.7

[PATCH 1/2] eisa, PCI: Fix bus res reference

2013-03-27 Thread Yinghai Lu
Matthem found that 3.8.3 is having problems with an old (ancient) PCI-to-EISA bridge, the Intel 82375. It worked with the 3.2 kernel. He identified the 82375, but doesn't assign the struct resource *res pointer inside the struct eisa_root_device, and panics. After looking at pci_eisa_init(), found

[PATCH 0/2] eisa: fix eisa with PCI

2013-03-27 Thread Yinghai Lu
Looks like pci eisa bridge support is broken for a while. one is root io resource reference, and other one is pnp related. Please check if we can put them in v3.9. eisa, PCI: Fix bus res reference eisa, PCI: init eisa early before pnp step in Thanks Yinghai Lu -- To unsubscribe

[PATCH 6/7] cpuacct: Remove redundant NULL checks in cpuacct_acount_field()

2013-03-27 Thread Li Zefan
This is a micro optimazation for a hot path. - We don't need to check if @ca returned from task_ca() is NULL. - We don't need to check if @ca returned from parent_ca() is NULL. Signed-off-by: Li Zefan --- kernel/sched/cpuacct.c | 4 ++-- kernel/sched/cpuacct.h | 5 + 2 files changed, 7 inse

[PATCH 7/7] cpuacct: Clean up cpuacct.h

2013-03-27 Thread Li Zefan
Now most of the code in cpuacct.h can be moved to cpuacct.c Signed-off-by: Li Zefan --- kernel/sched/cpuacct.c | 44 +++- kernel/sched/cpuacct.h | 46 -- 2 files changed, 43 insertions(+), 47 deletions(-) diff -

[PATCH 2/7] sched: Split cpuacct out of sched.h

2013-03-27 Thread Li Zefan
Add cpuacct.h and let sched.h include it. Signed-off-by: Li Zefan --- kernel/sched/cpuacct.h | 52 ++ kernel/sched/sched.h | 49 +-- 2 files changed, 53 insertions(+), 48 deletions(-) create mode 10064

[PATCH 5/7] cpuacct: Remove redundant NULL checks in cpuacct_charge()

2013-03-27 Thread Li Zefan
This is micro optimization for the hot path. - We don't need to check if @ca is NULL in parent_ca(). - We don't need to check if @ca is NULL in the beginning of the for loop. Signed-off-by: Li Zefan --- kernel/sched/cpuacct.c | 6 +- kernel/sched/cpuacct.h | 2 +- 2 files changed, 6 inserti

[PATCH 4/7] cpuacct: Add cpuacct_acount_field()

2013-03-27 Thread Li Zefan
So we can remove open-coded cpuacct code in cputime.c. Signed-off-by: Li Zefan --- kernel/sched/cpuacct.c | 23 +++ kernel/sched/cpuacct.h | 6 ++ kernel/sched/cputime.c | 18 +- 3 files changed, 30 insertions(+), 17 deletions(-) diff --git a/kernel/sche

[PATCH 3/7] cpuacct: Add cpuacct_init()

2013-03-27 Thread Li Zefan
So we don't open-coded initialization of cpuacct in core.c. Signed-off-by: Li Zefan --- kernel/sched/core.c| 8 ++-- kernel/sched/cpuacct.c | 7 +++ kernel/sched/cpuacct.h | 5 + 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/co

[PATCH 1/7] sched: Split cpuacct code out of core.c

2013-03-27 Thread Li Zefan
Signed-off-by: Li Zefan --- kernel/sched/Makefile | 1 + kernel/sched/core.c| 220 --- kernel/sched/cpuacct.c | 227 + 3 files changed, 228 insertions(+), 220 deletions(-) create mode 100644 kerne

[PATCH 0/7] sched: Split cpuacct

2013-03-27 Thread Li Zefan
- This patchset splits cpuacct out of core scheduler code. - Plus two small optimizations. 0001-sched-Split-cpuacct-code-out-of-core.c.patch 0002-sched-Split-cpuacct-out-of-sched.h.patch 0003-cpuacct-Add-cpuacct_init.patch 0004-cpuacct-Add-cpuacct_acount_field.patch 0005-cpuacct-Remove-redundant-N

Re: [PATCH v4] watchdog: Add Broadcom BCM2835 watchdog timer driver

2013-03-27 Thread Guenter Roeck
On Wed, Mar 27, 2013 at 09:00:29PM -0600, Stephen Warren wrote: > On 03/27/2013 10:40 AM, Lubomir Rintel wrote: > > This adds a driver for watchdog timer hardware present on Broadcom BCM2835 > > SoC, > > used in Raspberry Pi and Roku 2 devices. > > > > Signed-off-by: Lubomir Rintel > > Signed-of

[PATCH] checkpatch: do not exit in main process subroutine

2013-03-27 Thread zhangwei(Jovi)
Currently checkpatch program exit when process empty file, This will cause issue when @ARGV include many files ready to check. For example, there may have Module.symvers empty file in kernel directory. [root@jovi ~]# scripts/checkpatch.pl -f kernel/* then many file "after" empty file will not be

Re: [PATCH] tokenring: delete last holdout of CONFIG_TR

2013-03-27 Thread David Miller
From: Paul Bolle Date: Wed, 27 Mar 2013 21:52:28 +0100 > Tokenring support was deleted in v3.5. One last holdout of the macro > CONFIG_TR escaped that fate. Until now. > > Signed-off-by: Paul Bolle Applied to net-next, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-

RE: Davicom Linux driver

2013-03-27 Thread Joseph Chang
Dear Miller, This is Joseph CHANG. I had sent you the patches used my gmail earlier than Allen did. My gmail account is josright...@gmail.com The patches's subjects were: [PATCH 1/2] ethernet: dm9000 driver: davicom: upgrade driver: 3rd trial [PATCH 2/2] ethernet: dm9000 driver: davicom:

Re: Davicom Linux driver

2013-03-27 Thread David Miller
From: "Joseph Chang" Date: Thu, 28 Mar 2013 10:25:58 +0800 > Dear Miller, > > This is Joseph CHANG. > I had sent you the patches used my gmail earlier than Allen did. > My gmail account is josright...@gmail.com > The patches's subjects were: >[PATCH 1/2] ethernet: dm9000 driver: davicom:

Re: intel_pstate_timer_func divide by zero oops

2013-03-27 Thread Parag Warudkar
On Wed, Mar 27, 2013 at 10:51 PM, Dirk Brandewie wrote: > > Is there any way to capture the beginning of this trace? I tried but since the oops scrolls fast followed by a hard freeze, I wasn't able to capture it completely. May be I can try netconsole and see if that helps. > > pid_param_set() i

Re: Davicom Linux driver

2013-03-27 Thread Greg KH
On Thu, Mar 28, 2013 at 10:25:58AM +0800, Joseph Chang wrote: > Dear Miller, > > This is Joseph CHANG. > I had sent you the patches used my gmail earlier than Allen did. > My gmail account is josright...@gmail.com > The patches's subjects were: >[PATCH 1/2] ethernet: dm9000 driver: davicom

Generic syscall ABI support

2013-03-27 Thread Ley Foon Tan
Need advise regarding the generic syscall ABI support. We are planning to upstream our Nios II kernel (arch/nios2) to mainline. But it doesn't support generic syscall ABI yet (It requires an updated Glibc port as well). The question is, is it a requirement for new arch to support generic syscall

Re: [PATCH v4] watchdog: Add Broadcom BCM2835 watchdog timer driver

2013-03-27 Thread Stephen Warren
On 03/27/2013 10:40 AM, Lubomir Rintel wrote: > This adds a driver for watchdog timer hardware present on Broadcom BCM2835 > SoC, > used in Raspberry Pi and Roku 2 devices. > > Signed-off-by: Lubomir Rintel > Signed-off-by: Dom Cobley Those two s-o-b lines should be swapped, since if Dom did s

[PATCH] ia64: Fix example error_injection_tool

2013-03-27 Thread Xie XiuQi
I got a "sched_setaffinity:: Invalid argument" error when using err_injection_tool to inject error on a system with over 32 cpus. Error information when injecting an error on a system with over 32 cpus: $ ./err_injection_tool -i /sys/devices/system/cpu/cpu0/err_inject//err_type_info Begine at Tue

Re: [PATCH v9 RESEND 4/4] ARM: dts: add sram for imx53 and imx6q

2013-03-27 Thread Shawn Guo
On Wed, Mar 20, 2013 at 11:52:47AM +0100, Philipp Zabel wrote: > Signed-off-by: Philipp Zabel > Reviewed-by: Shawn Guo > Acked-by: Grant Likely > --- > Changes since v8: > - Changed device tree compatible string to "mmio-sram" > --- > arch/arm/boot/dts/imx53.dtsi |5 + > arch/arm/boot/

Re: intel_pstate_timer_func divide by zero oops

2013-03-27 Thread Dirk Brandewie
Is there any way to capture the beginning of this trace? pid_param_set() is on the stack which means that something is changing the debugfs parameters or the stack is FUBAR. On 03/27/2013 06:49 PM, Parag Warudkar wrote: I get this same oops occassionally - the machine freezes and there doesn't

RE: [PATCH 1/2] ethernet: dm9000 driver: davicom: upgrade driver: 3rd trial

2013-03-27 Thread Joseph Chang
Dear Denis, Yes, I can tell more detail, Should I re-do the patch and submit again? I will revise the log as below: (Please help comment again, thanks.) - Fixing bug for DM9000B(DSP) which is a DSP revision! 3rd trial. - - The chip of DM9000B(DSP) is different in internal PHY compare to DM9

Re: [PATCH v7 5/5] hwmon: add ST-Ericsson ABX500 hwmon driver

2013-03-27 Thread Hongbo Zhang
On 28 March 2013 03:48, Guenter Roeck wrote: > On Wed, Mar 27, 2013 at 03:13:32PM +0800, Hongbo Zhang wrote: >> Each of ST-Ericsson X500 chip set series consists of both ABX500 and DBX500 >> chips. This is ABX500 hwmon driver, where the abx500.c is a common layer for >> all ABX500s, and the ab8500

[PATCH] i2c: remove CONFIG_HOTPLUG ifdefs

2013-03-27 Thread Yijing Wang
CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG ifdefs in i2c files. Signed-off-by: Yijing Wang --- drivers/i2c/i2c-core.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 991d38d..d1db97e 100644

[PATCH 1/2] mm: remove CONFIG_HOTPLUG ifdefs

2013-03-27 Thread Yijing Wang
CONFIG_HOTPLUG is going away as an option, cleanup CONFIG_HOTPLUG ifdefs in mm files. Signed-off-by: Yijing Wang Cc: Minchan Kim Cc: Mel Gorman Cc: Bartlomiej Zolnierkiewicz Cc: Rik van Riel Cc: Hugh Dickins Cc: Bill Pemberton Cc: Greg Kroah-Hartman --- include/linux/vmstat.h |7 +

Re: [PATCH V7 0/5] virtio-scsi multiqueue

2013-03-27 Thread Wanlong Gao
On 03/23/2013 07:28 PM, Wanlong Gao wrote: > This series implements virtio-scsi queue steering, which gives > performance improvements of up to 50% (measured both with QEMU and > tcm_vhost backends). > > This version rebased on Rusty's virtio ring rework patches, which > has already gone into virt

Re: Davicom Linux driver

2013-03-27 Thread David Miller
This is not the correct way to submit a patch for inclusion upstream You should post each patch in a seperate, numbered, list posting, in plain ASCII text, and not as an attachment. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [PATCH] cpufreq: cpufreq-cpu0: use the exact frequency for clk_set_rate()

2013-03-27 Thread Shawn Guo
On Wed, Mar 27, 2013 at 11:46:38PM +0100, Guennadi Liakhovetski wrote: > Hi Shawn > > On Mon, 25 Feb 2013, Guennadi Liakhovetski wrote: > > > clk_set_rate() isn't supposed to accept approximate frequencies, instead > > a supported frequency should be obtained from clk_round_rate() and then > > us

Re: [RFC] mm: remove swapcache page early

2013-03-27 Thread Shaohua Li
On Thu, Mar 28, 2013 at 10:18:24AM +0900, Minchan Kim wrote: > On Wed, Mar 27, 2013 at 04:16:48PM -0700, Hugh Dickins wrote: > > On Wed, 27 Mar 2013, Dan Magenheimer wrote: > > > > From: Hugh Dickins [mailto:hu...@google.com] > > > > Subject: Re: [RFC] mm: remove swapcache page early > > > > > > >

  1   2   3   4   5   6   7   8   >