[PATCH -next] ARM: mvebu: fix return value check in armada_xp_pmsu_cpufreq_init()

2014-07-22 Thread weiyj_lk
From: Wei Yongjun In case of error, the function clk_get() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/arm/mach-mvebu/pmsu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simply return not signaled yet. It's not only the lockup case from radeon I have in mind here. For userspace queues it might be necessary to call copy_fr

pull request: bluetooth-next 2014-07-21

2014-07-22 Thread Gustavo Padovan
Hi John, Here follows some more patches for 3.17. These are mostly fixes to what we've sent to you before for next merge window. Please pull! Thanks. Gustavo --- The following changes since commit 4d042654afb342386cb5c33e29843b76d598ab61: Bluetooth: cmtp: Remove unnecessary null test

Re: [PATCH v2 0/2] printk: more log flag simplification

2014-07-22 Thread Borislav Petkov
On Tue, Jul 22, 2014 at 09:01:55AM -0500, Alex Elder wrote: > This series eliminates the LOG_CONT entirely from the printk/log code. > It builds on another series, posted earlier today: > http://www.spinics.net/lists/kernel/msg1791665.html > This series was originally longer, but in review I wa

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 16:24, Christian König schreef: >> No, you really shouldn't be doing much in the check anyway, it's meant to be >> a lightweight check. If you're not ready yet because of a lockup simply >> return not signaled yet. > It's not only the lockup case from radeon I have in mind here. For u

Re: [PATCH 1/3] bebob: Fix a missing to unlock mutex in error handling case

2014-07-22 Thread Takashi Iwai
At Tue, 22 Jul 2014 23:11:03 +0900, Takashi Sakamoto wrote: > > In error handling case, special_clk_ctl_put() returns without unlock_mutex(), > therefore the mutex is still locked. This commit moves mutex_lock() after > the error handling case. > > This commit is my solution for this post. > > [

Re: [PATCH v2] iio: exynos-adc: add experimental touchscreen support

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:33 PM, Arnd Bergmann wrote: (...) +static int exynos_read_s3c64xx_ts(struct iio_dev *indio_dev, int *x, int *y) +{ + struct exynos_adc *info = iio_priv(indio_dev); + unsigned long timeout; + int ret; + + mutex_lock(&indio_dev->mlock); +

Re: [PATCH v4 02/11] mfd: add documentation for atmel-hlcdc DT bindings

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:41 PM, Boris BREZILLON wrote: The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) exposes 2 subdevices: - a display controller (controlled by a DRM driver) - a PWM chip This patch adds documentation for atmel-hlcdc DT bind

Re: [PATCH] pinctrl: qcom: Make muxing of gpio function explicit

2014-07-22 Thread Linus Walleij
On Sat, Jul 12, 2014 at 3:21 AM, Bjorn Andersson wrote: > Instead of relying on pinmux->disable(), make the gpio function an > explicit function for all pins that supports it. > > Signed-off-by: Bjorn Andersson Thanks, patch applied! > This fixes the regression that was introduced by removing

[PATCH] iommu/vt-d: fix race between free_irte() and get_irte()

2014-07-22 Thread Greg Edwards
get_irte() can race with free_irte() and dereference a NULL iommu pointer. Signed-off-by: Greg Edwards Cc: sta...@vger.kernel.org --- drivers/iommu/intel_irq_remapping.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remap

Re: [PATCH 2/2] pinctrl: remove all usage of gpio_remove ret val in driver/pinctl

2014-07-22 Thread Linus Walleij
On Sat, Jul 12, 2014 at 10:30 PM, abdoulaye berthe wrote: > Signed-off-by: abdoulaye berthe This patch applied to the pin control git tree. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH -v4] random: introduce getrandom(2) system call

2014-07-22 Thread Rolf Eike Beer
> EAGAIN The requested entropy was not available, and the > getentropy(2) would have blocked if GRND_BLOCK flag > was set. I think either "and the call to getentropy(2)" or "and getentropy(2)" here. Greetings, Eike -- To unsubscribe from

Re: [PATCH v2 0/2] security: introduce kernel_fw_from_file hook

2014-07-22 Thread Mimi Zohar
On Mon, 2014-07-21 at 12:06 -0700, Kees Cook wrote: > This is a reduced version of the original patch. This adds only the LSM > hook to the existing firmware loading logic so that the LSM can reason > about the origin and contents of a firmware coming from userspace. > > Thanks! > > -Kees > > v

Re: [PATCH v4 04/11] pwm: add DT bindings documentation for atmel-hlcdc-pwm driver

2014-07-22 Thread Varka Bhadram
On Tuesday 22 July 2014 06:41 PM, Boris BREZILLON wrote: The HLCDC IP available in some Atmel SoCs (i.e. sam9x5i.e. at91sam9n12, at91sam9x5 family or sama5d3 family) provide a PWM device. The DT bindings used for this PWM device is following the default 3 cells bindings described in Documentati

Re: [PATCH 2/2 V2] workqueue: remove the argument @wakeup from worker_set_flags()

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:02:00PM +0800, Lai Jiangshan wrote: > worker_set_flags() doesn't necessarily wake next worker and the @wakeup > can be removed, the caller can use the following conbination instead > when needed: > > worker_set_flags(); > if (need_more_worker(pool)) >

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 16:27, schrieb Maarten Lankhorst: op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simply return not signaled yet. It's not only the lockup ca

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 15:45, Christian König schreef: > Am 22.07.2014 15:26, schrieb Daniel Vetter: >> On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: >>> Am 22.07.2014 13:57, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel Vetter wrote: > On Tue, Jul 22, 201

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
op 22-07-14 16:39, Christian König schreef: > Am 22.07.2014 16:27, schrieb Maarten Lankhorst: >> op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet because of a lockup simpl

Re: [PATCH 9/9] usb: musb: musb_am335x: reinstate module loading/unloading support

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 09:49:30AM +0200, Lothar Waßmann wrote: > Hi, > > Felipe Balbi wrote: > > On Fri, Jul 18, 2014 at 11:31:30AM +0200, Lothar Waßmann wrote: > > > There is no need to throw the baby out with the bath due to a bad > > > failure analysis. The commit: > > > 7adb5c876e9c usb: musb

Re: [PATCH 8/9] usb: phy: am335x: call usb_gen_phy_init()/usb_gen_phy_shutdown() in am335x_init()/am335x_shutdown()

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 10:06:13AM +0200, Lothar Waßmann wrote: > Hi, > > Felipe Balbi wrote: > > Hi,, > > > > On Mon, Jul 21, 2014 at 10:03:07AM +0200, Lothar Waßmann wrote: > > > Hi, > > > > > > > On Fri, Jul 18, 2014 at 11:31:29AM +0200, Lothar Waßmann wrote: > > > > > This patch makes it pos

[PATCH 1/2] libata: Fix scsi_host can_queue issue in ata_qc_new()

2014-07-22 Thread Mike Qiu
The can_queue in scsi_host can be more than ATA_MAX_QUEUE (32), for example, in ipr, it can be 100 or more. Also, some drivers, like ipr driver, haven't filled the field scsi_host in ata_port, and will lead a call trace, so add check for that. Signed-off-by: Mike Qiu --- drivers/ata/libata-core

Re: [PATCH RESEND v2 1/4] pinctrl: Update Qualcomm pm8xxx GPIO parameters definitions

2014-07-22 Thread Ivan T. Ivanov
On Thu, 2014-07-17 at 22:41 +0300, Ivan T. Ivanov wrote: > From: "Ivan T. Ivanov" > > Available 'power-source' labels differ between chips. > Use just VIN0-VIN14 in the input source names. > > PM8018, PM8038, PM8058, PM8917, PM8921 pin controller hardware > support only one function 'gpio'. Curr

[PATCH 2/2] libata: Fix NULL pointer of scsi_host in ata_port

2014-07-22 Thread Mike Qiu
In ata_sas_port_alloc(), it haven't initialized scsi_host field in ata_port, although scsi_host is in parameters list and unused in this function. With commit 1871ee134b73 ("libata: support the ata host which implements a queue depth less than 32") ata_qc_new() try to use scsi_host, while it is a

[PATCH 1/5] power: reset: Add restart functionality for STiH41x platforms

2014-07-22 Thread Lee Jones
This driver adds the restart functionality for STiH415 and STiH416 platforms from STMicroelectronics. This driver registers an arm_pm_restart function to reset the platform. Signed-off-by: Christophe Kerello Signed-off-by: Lee Jones --- drivers/power/reset/Kconfig | 6 ++ drivers/power

[PATCH 0/5] power: reset: Add support for ST's boards

2014-07-22 Thread Lee Jones
This set provides device reset support for Orly2 and Cannes. Lee Jones (5): power: reset: Add restart functionality for STiH41x platforms power: reset: st: Provide DT bindings for ST's Power Reset driver ARM: sti: Add Restart support for the STiH417 (Cannes) board ARM: sti: Add Restart su

[PATCH 5/5] ARM: multi_v7_defconfig: Enable ST's Power Reset driver

2014-07-22 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 5348364..1878e8d 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_d

kernel panic when writing to 32 GB SDHC card

2014-07-22 Thread Tomasz Chmielewski
I'm experiencing kernel panics when writing random data (say, rsyncing data from a different host) to a SDHC card. Typically, this happens after 5 mins - 1 hour of such activity. The trace contains __usb_hdc_giveback_urb, sg_complete, but unfortunately I don't have it in text format. I've upl

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-22 Thread Felipe Balbi
Hi, On Tue, Jul 22, 2014 at 10:18:00AM +0100, Peter Griffin wrote: > > > +static inline u32 st_dwc3_readl(void __iomem *base, u32 offset) > > > +{ > > > + return readl_relaxed(base + offset); > > > +} > > > + > > > +static inline void st_dwc3_writel(void __iomem *base, u32 offset, u32 > > > value

Re: [PATCH 2/2] libata: Fix NULL pointer of scsi_host in ata_port

2014-07-22 Thread Mike Qiu
[+cc Wendy, Brian King, Stephen] On 07/22/2014 10:51 PM, Mike Qiu wrote: In ata_sas_port_alloc(), it haven't initialized scsi_host field in ata_port, although scsi_host is in parameters list and unused in this function. With commit 1871ee134b73 ("libata: support the ata host which implements a

Re: [PATCH] mailbox/omap: Use module_platform_driver

2014-07-22 Thread Suman Anna
Hi Tobias, On 07/22/2014 07:13 AM, Tobias Klauser wrote: > Use the module_platform_driver to omit module init/exit boilerplate code. > > Signed-off-by: Tobias Klauser > --- > drivers/mailbox/mailbox-omap1.c | 13 + > drivers/mailbox/mailbox-omap2.c | 13 + > 2 files chan

[PATCH v5 (staging-next) 1/5] staging:iio:hmc5843: Added regmap support

2014-07-22 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 140

[PATCH v3] gpiolib: Export gpiochip_request_own_desc and gpiochip_free_own_desc

2014-07-22 Thread Guenter Roeck
Both functions were introduced to let gpio drivers request their own gpio pins. Without exporting the functions, this can however only be used by gpio drivers built into the kernel. Secondary impact is that the functions can not currently be used by platform initialization code associated with the

[PATCH v5 (staging-next) 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-22 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 14 +-

[PATCH 3/5] ARM: sti: Add Restart support for the STiH417 (Cannes) board

2014-07-22 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index 4f9024f..a370e73 100644 --- a/arch/arm/boot/dts/stih407.dtsi +++ b/arch/arm/boot/dts/stih407.dtsi @@ -63,6 +6

[PATCH 4/5] ARM: sti: Add Restart support for the STiH416 (Orly2) board

2014-07-22 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stih416.dtsi b/arch/arm/boot/dts/stih416.dtsi index 84758d7..95b15b0 100644 --- a/arch/arm/boot/dts/stih416.dtsi +++ b/arch/arm/boot/dts/stih416.dtsi @@ -28,6 +2

[PATCH 2/5] power: reset: st: Provide DT bindings for ST's Power Reset driver

2014-07-22 Thread Lee Jones
Signed-off-by: Christophe Kerello Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/power/reset/st-reset.txt | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/st-reset.txt diff --git a/Documentation/devicetree/bindi

Re: [PATCH] ahci: st: Make of_device_id array const

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, Kiran Padwal wrote: > Make of_device_id array const, because all OF functions handle it as const. > > Signed-off-by: Kiran Padwal > --- > drivers/ata/ahci_st.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Lee Jones -- Lee Jones Linaro STMicroelect

[PATCH v5 (staging-next) 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-22 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- .../devicetree/bindings/iio/magnetometer/hmc5

[PATCH v5 (staging-next) 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-22 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers/stagi

[PATCH v5 (staging-next) 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-22 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

Re: [RFC PATCH] usb: dwc3: core: allow vendor drivers to check probe status

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 02:55:34PM +0100, Peter Griffin wrote: > Hi Felipe, > > Sorry for the delay in replying. I've been trying to get to the root cause > of this problem so I could reply which took longer than I had hoped. > > The problem manifested itself as a hang on register read/write acce

Re: [PATCH V3] workqueue: unfold start_worker() into create_worker()

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:03:02PM +0800, Lai Jiangshan wrote: > Simply unfold the code of start_worker() into create_worker() and > remove the original start_worker() and create_and_start_worker(). > > The only trade-off is the introduced overhead that the pool->lock > is released and regrabbed a

Re: [PATCH v4 3/6] thermal: Added Bang-bang thermal governor

2014-07-22 Thread Peter Feuerer
Hi, Zhang Rui writes: On Mon, 2014-07-21 at 11:29 +0200, Borislav Petkov wrote: On Sun, Jul 20, 2014 at 02:51:17AM +0200, Peter Feuerer wrote: > The bang-bang thermal governor uses a hysteresis to switch abruptly on > or off a cooling device. It is intended to control fans, which can > not be

Re: [PATCH 3/3] driver:gpio remove all usage of gpio_remove retval in driver

2014-07-22 Thread Linus Walleij
On Sat, Jul 12, 2014 at 10:30 PM, abdoulaye berthe wrote: Heads up. Requesting ACKs for this patch or I'm atleast warning that it will be applied. We're getting rid of the return value from gpiochip_remove(). > this remove all reference to gpio_remove retval in all driver > except pinctrl and gp

Re: [patch 13/13] mm: memcontrol: rewrite uncharge API

2014-07-22 Thread Michal Hocko
On Sat 19-07-14 13:39:11, Johannes Weiner wrote: > On Fri, Jul 18, 2014 at 05:12:54PM +0200, Miklos Szeredi wrote: > > On Fri, Jul 18, 2014 at 4:45 PM, Johannes Weiner wrote: > > > > > I assumed the source page would always be new, according to this part > > > in fuse_try_move_page(): > > > > > >

Re: [PATCH v2 0/4] virtio-rng: contribute to early randomness requests

2014-07-22 Thread Amit Shah
On (Tue) 22 Jul 2014 [07:46:23], Jason Cooper wrote: > On Mon, Jul 21, 2014 at 05:15:48PM +0530, Amit Shah wrote: > > v2: > > - update patch 3 to store the hwrng_register_done bool per-device > >rather than global > > - add patch 2 that re-arranges struct elems for better packing. > > > > Hi

Re: [PATCH V4 1/5] trace-cmd/listen: Apply the trace-msg protocol for communication between a server and clients

2014-07-22 Thread Steven Rostedt
Sorry for taking so long to reply, I've been hacking on the kernel a bit and that takes precedence over user tools :-/ On Fri, 11 Jul 2014 00:58:26 + Yoshihiro YUNOMAE wrote: > Apply trace-msg protocol for communication between a server and clients. > > Currently, trace-listen(server) and

[PATCH v5 (staging-next) 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-22 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. v2: * Reverted the changed order of iio unregister and setting hmc mode to sleep v3: * Fixed bug introduced in the first patch * Readded few comment lines which have gone missing

[PATCH] Documentation/arm64/memory.txt: fix typo

2014-07-22 Thread Alex Bennée
There is no swapper_pgd_dir, it meant swapper_pg_dir. Signed-off-by: Alex Bennée --- Documentation/arm64/memory.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/arm64/memory.txt b/Documentation/arm64/memory.txt index d50fa61..dd724c8 100644 --- a/Documentatio

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 16:44, schrieb Maarten Lankhorst: op 22-07-14 15:45, Christian König schreef: Am 22.07.2014 15:26, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: Am 22.07.2014 13:57, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 01:46:07PM +0200, Daniel

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 16:47, schrieb Maarten Lankhorst: op 22-07-14 16:39, Christian König schreef: Am 22.07.2014 16:27, schrieb Maarten Lankhorst: op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're n

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 3:45 PM, Christian König wrote: >> Would that be something you can agree to? > > > No, the whole enable_signaling stuff should go away. No callback from the > driver into the fence code, only the other way around. > > fence->signaled as well as fence->wait should become man

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 4:39 PM, Christian König wrote: > Am 22.07.2014 16:27, schrieb Maarten Lankhorst: > >> op 22-07-14 16:24, Christian König schreef: No, you really shouldn't be doing much in the check anyway, it's meant to be a lightweight check. If you're not ready yet becaus

Re: [PATCH 4/4] aio: use iovec array rather than the single one

2014-07-22 Thread Jeff Moyer
Gu Zheng writes: > use an iovec array rather than the single one, so that we can avoid > to alloc more iovecs buffer in small(< 8) PREADV/PWRITEV cases. I did some basic functional testing of this change and the change in patch 1/4. That testing included using aio-stress to drive queue depths o

[PATCH] staging: dgnc: Remove all C99 comments

2014-07-22 Thread Seunghun Lee
This patch fixes the following checkpatch error: ERROR: do not use C99 // comments CC: Lidza Louina Signed-off-by: Seunghun Lee --- drivers/staging/dgnc/dgnc_driver.h | 10 +- drivers/staging/dgnc/digi.h| 36 ++-- 2 files changed, 23 insertio

Re: [PATCH v2] workqueue: detach rescuer from pool until the last

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:03:47PM +0800, Lai Jiangshan wrote: > In 51697d393922 ("workqueue: use generic attach/detach routine for rescuers"), > The rescuer detaches itself from the pool before put_pwq() so that > the put_unbound_pool() will not destroy the rescuer-attached pool. > > It is unnece

Re: [PATCH] workqueue: get the probable node ID from the first CPU of the mask

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:04:02PM +0800, Lai Jiangshan wrote: > + node = cpu_to_node(cpumask_first(pool->attrs->cpumask)); Minor but maybe cpumask_any() is a better fit here? Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH] workqueue: remove the stale comment in pwq_unbound_release_workfn()

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:04:27PM +0800, Lai Jiangshan wrote: > In 75ccf5950f82 ("workqueue: prepare flush_workqueue() for dynamic > creation and destrucion of unbound pool_workqueues"), a comment > about the synchronization for the pwq in pwq_unbound_release_workfn() > was added. The comment clai

Re: [PATCH] workqueue: remove the suspicuous out_unlock label in get_unbound_pool()

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:04:49PM +0800, Lai Jiangshan wrote: > After the locking was moved up to the caller of the get_unbound_pool(), > out_unlock label doesn't need to do any unlock operation and the name > became bad, so we just remove this label, and the only usage-site > "goto out_unlock" is

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 17:17, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 3:45 PM, Christian König wrote: Would that be something you can agree to? No, the whole enable_signaling stuff should go away. No callback from the driver into the fence code, only the other way around. fence->signaled as we

[PATCH 2/2] ARM: LPAE: reduce damage caused by idmap to virtual memory layout

2014-07-22 Thread Konstantin Khlebnikov
idmap layout combines both phisical and virtual addresses. Everything works fine if ram physically lays below PAGE_OFFSET. Otherwise idmap starts punching huge holes in virtual memory layout. It maps ram by 2MiB sections, but when it allocates new pmd page it cuts 1GiB at once. This patch makes a

[PATCH 1/2] ARM: LPAE: load upper bits of early TTBR0/TTBR1

2014-07-22 Thread Konstantin Khlebnikov
This patch fixes booting when idmap pgd lays above 4gb. Commit 4756dcbfd37 mostly had fixed this, but it'd failed to load upper bits. Also this fixes adding TTBR1_OFFSET to TTRR1: if lower part overflows carry flag must be added to the upper part. Signed-off-by: Konstantin Khlebnikov Cc: Cyril C

[PATCH v5 1/6] acerhdf: Adding support for "manual mode"

2014-07-22 Thread Peter Feuerer
Some Acer models require an additional command to turn off the fan after bios mode has been enabled. Adding new section in bios table to allow support for those models, by writing an extra "manual mode" register. Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter

Re: [PATCH 0/3] clk : Fix SOCFPGA clk crash and some clean up

2014-07-22 Thread Dinh Nguyen
Hi Charles, On Tue, 2014-07-22 at 08:00 +0200, Steffen Trumtrar wrote: > Hi! > > As you touch clk.c, you should Cc > >Mike Turquette > > He is the maintainer for that code. > Yes, please use get_maintainer.pl on any files that you have a patch for. ./scripts/get_maintainer.pl -f drivers

[PATCH v5 0/6] acerhdf/thermal: adding new models, appropriate governor and minor clean up

2014-07-22 Thread Peter Feuerer
Hi, This patch series is intended to: * Introduce "manual mode" support (Patch 1 & 2), which is needed to control the fan of a few new models. * Add an appropriate thermal governor (Patch 3 & 4). Manipulating and fiddling around with the step-wise governor has been a very fragile th

[PATCH v5 4/6] acerhdf: Use bang-bang thermal governor

2014-07-22 Thread Peter Feuerer
acerhdf has been doing an on-off fan control using hysteresis by post-manipulating the outcome of thermal subsystem trip point handling. This patch enables acerhdf to use the bang-bang governor, which is intended for on-off controlled fans. Cc: Andrew Morton CC: Zhang Rui Cc: Andreas Mohr Cc: J

[PATCH v5 5/6] acerhdf: added critical trip point

2014-07-22 Thread Peter Feuerer
added critical trip point which represents the temperature limit. Added return -EINVAL in case wrong trip point is provided. Cc: Andrew Morton Cc: Andreas Mohr Cc: Borislav Petkov Cc: Javi Merino Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 10 +- 1 file changed,

Re: [PATCH v6 4/5] PCI: add PCI controller for keystone PCIe h/w

2014-07-22 Thread Rob Herring
On Fri, Jul 18, 2014 at 2:50 PM, Arnd Bergmann wrote: > On Friday 18 July 2014 14:31:39 Rob Herring wrote: >> > + >> > + Example: >> > + pcie_msi_intc: msi-interrupt-controller { >> > + interrupt-controller; >> > + #interrupt-cells = <1>; >> > +

[PATCH v5 2/6] acerhdf: Adding support for new models

2014-07-22 Thread Peter Feuerer
added following new models: * Aspire 5755G * AO521 * AO751h * Aspire One 753 * Extensa 5420 * Aspire 5315 * Aspire 5739G * TravelMate TM8573T Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c |

[PATCH v5 6/6] acerhdf: minor clean up

2014-07-22 Thread Peter Feuerer
* renamed bios_settings_t to bios_settings, as it is no typedef * replaced "unsigned char" by u8 in bios_settings struct for better readability. Cc: Andrew Morton Cc: Andreas Mohr Acked-by: Borislav Petkov Signed-off-by: Peter Feuerer --- drivers/platform/x86/acerhdf.c | 12 ++

[PATCH v5 3/6] thermal: Added Bang-bang thermal governor

2014-07-22 Thread Peter Feuerer
The bang-bang thermal governor uses a hysteresis to switch abruptly on or off a cooling device. It is intended to control fans, which can not be throttled but just switched on or off. Bang-bang cannot be set as default governor as it is intended for special devices only. For those special devices

Re: [PATCH] workqueue: use nr_node_ids instead of wq_numa_tbl_len

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 01:05:40PM +0800, Lai Jiangshan wrote: > They are the same and nr_node_ids is provided by the memory subsystem. > > Signed-off-by: Lai Jiangshan Applied to wq/for-3.17. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the b

Re: [PATCH] CAPABILITIES: remove undefined caps from all processes

2014-07-22 Thread Andrew Vagin
On Mon, Jul 21, 2014 at 04:59:01PM -0400, Eric Paris wrote: > This is effectively a revert of 7b9a7ec565505699f503b4fcf61500dceb36e744 > plus fixing it a different way... > > We found, when trying to run an application from an application which > had dropped privs that the kernel does security che

Re: [PATCH] drm/crtc-helper: use drm_framebuffer flags

2014-07-22 Thread Benjamin Gaignard
Adding LKML and David in diffusion list to get an opinion on this patch 2014-07-10 10:01 GMT+02:00 Fabien DESSENNE : > Hi, > Can anyone review this patch ? > Thanks for your time. > Fabien > >> -Original Message- >> From: Fabien DESSENNE [mailto:fabien.desse...@st.com] >> Sent: mardi 1 jui

[PATCH] pinctrl: dra: dt-bindings: Fix pull enable/disable

2014-07-22 Thread Nishanth Menon
The DRA74/72 control module pins have a weak pull up and pull down. This is configured by bit offset 17. if BIT(17) is 1, a pull up is selected, else a pull down is selected. However, this pull resisstor is applied based on BIT(16) - PULLUDENABLE - if BIT(18) is *0*, then pull as defined in BIT(17

Re: [PATCH v6 4/5] PCI: add PCI controller for keystone PCIe h/w

2014-07-22 Thread Rob Herring
On Mon, Jul 21, 2014 at 11:39 AM, Murali Karicheri wrote: > On 07/20/2014 09:44 PM, Jingoo Han wrote: >> >> On Saturday, July 19, 2014 5:29 AM, Murali Karicheri wrote: >>> >>> On 07/18/2014 03:31 PM, Rob Herring wrote: On Fri, Jul 18, 2014 at 10:14 AM, Murali Karicheri wrote: >>> >>

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Alex Deucher
On Tue, Jul 22, 2014 at 11:19 AM, Daniel Vetter wrote: > On Tue, Jul 22, 2014 at 4:39 PM, Christian König > wrote: >> Am 22.07.2014 16:27, schrieb Maarten Lankhorst: >> >>> op 22-07-14 16:24, Christian König schreef: > > No, you really shouldn't be doing much in the check anyway, it's mea

Re: [PATCH 1/2] libata: Fix scsi_host can_queue issue in ata_qc_new()

2014-07-22 Thread Tejun Heo
Hello, (cc'ing Dan) On Tue, Jul 22, 2014 at 10:50:19AM -0400, Mike Qiu wrote: > The can_queue in scsi_host can be more than ATA_MAX_QUEUE (32), > for example, in ipr, it can be 100 or more. > > Also, some drivers, like ipr driver, haven't filled the field > scsi_host in ata_port, and will lead a

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 5:35 PM, Christian König wrote: > Drivers exporting fences need to provide a fence->signaled and a fence->wait > function, everything else like fence->enable_signaling or calling > fence_signaled() from the driver is optional. > > Drivers wanting to use exported fences don'

Re: [patch 13/13] mm: memcontrol: rewrite uncharge API

2014-07-22 Thread Miklos Szeredi
On Tue, Jul 22, 2014 at 5:08 PM, Michal Hocko wrote: > On Sat 19-07-14 13:39:11, Johannes Weiner wrote: >> On Fri, Jul 18, 2014 at 05:12:54PM +0200, Miklos Szeredi wrote: >> > On Fri, Jul 18, 2014 at 4:45 PM, Johannes Weiner >> > wrote: >> > >> > > I assumed the source page would always be new,

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-22 Thread Lee Jones
> > > > +static void st_dwc3_init(struct st_dwc3 *dwc3_data) > > > > +{ > > > > + u32 reg = st_dwc3_readl(dwc3_data->glue_base, USB2_CLKRST_CTRL); > > > > + > > > > + reg |= aux_clk_en(1) | ext_cfg_reset_n(1) | xhci_revision(1); > > > > + reg &= ~sw_pipew_reset_n(1); > > > > > >

Re: [PATCH] sched: update last_balance only when actually balanced

2014-07-22 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/22/2014 08:04 AM, Peter Zijlstra wrote: >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index >> 45943b2..4f7fee2 100644 --- a/kernel/sched/fair.c +++ >> b/kernel/sched/fair.c @@ -7187,7 +7187,9 @@ static void >> rebalance_domains(stru

Re: [PATCH] pinctrl: dra: dt-bindings: Fix pull enable/disable

2014-07-22 Thread Nishanth Menon
> 1: dra72x-evm: Boot ok: http://slexy.org/raw/s20I6QXQa (needs MMC filesystem > that current dts does not have. Oops - missed a character in the link: http://slexy.org/view/s20I6QXQal Sorry about the spam. -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscrib

[PATCH 0/3] FS-Cache: Bug fixes for bugs that happen under vma pressure

2014-07-22 Thread Milosz Tanski
FS-Cache has a few bugs generally only get tried in error mode / under VMA preassure. The problem is exhasterbated when majority of the IO is cacheable netfs IO. At that point there are few pages that are evictalbe due to GPF_NOFS allocation strategies. The first bug is a recursive hang caused by

Re: [PATCHv4 2/5] lib/genalloc.c: Add genpool range check function

2014-07-22 Thread Catalin Marinas
On Mon, Jul 21, 2014 at 08:51:04PM +0100, Laura Abbott wrote: > On 7/9/2014 3:33 PM, Olof Johansson wrote: > > On Wed, Jul 2, 2014 at 11:03 AM, Laura Abbott wrote: > >> > >> After allocating an address from a particular genpool, > >> there is no good way to verify if that address actually > >> bel

[PATCH 1/3] FS-Cache: Timeout for releasepage()

2014-07-22 Thread Milosz Tanski
This is meant to avoid a recursive hang caused by underlying filesystem trying to grab a free page and causing a write-out. INFO: task kworker/u30:7:28375 blocked for more than 120 seconds. Not tainted 3.15.0-virtual #74 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this messag

[PATCH 2/3] FS-Cache: Reduce cookie ref count if submit fails.

2014-07-22 Thread Milosz Tanski
--- fs/fscache/object.c |4 1 file changed, 4 insertions(+) diff --git a/fs/fscache/object.c b/fs/fscache/object.c index d3b4539..186076b 100644 --- a/fs/fscache/object.c +++ b/fs/fscache/object.c @@ -925,6 +925,7 @@ static const struct fscache_state *_fscache_invalidate_object(struct f

[PATCH 3/3] FS-Cache: refcount becomes corrupt under vma preasure.

2014-07-22 Thread Milosz Tanski
In rare cases under heavy VMA preasure the ref count for fscache cookies becomes corrupt. In this case we decrement ref count even if fail before incrememnt the refcount. FS-Cache: Assertion failed bnode-eca5f9c6/syslog 0 > 0 is false [ cut here ] kernel BUG at fs/fscache/c

Re: [PATCH] ahci: st: Make of_device_id array const

2014-07-22 Thread Tejun Heo
On Tue, Jul 22, 2014 at 07:45:43PM +0530, Kiran Padwal wrote: > Make of_device_id array const, because all OF functions handle it as const. > > Signed-off-by: Kiran Padwal Applied to libata/for-3.17. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Maarten Lankhorst
Hey, op 22-07-14 17:02, Christian König schreef: > Am 22.07.2014 16:44, schrieb Maarten Lankhorst: >> op 22-07-14 15:45, Christian König schreef: >>> Am 22.07.2014 15:26, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 02:19:57PM +0200, Christian König wrote: > Am 22.07.2014 13:57, schrieb

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-22 Thread Felipe Balbi
On Tue, Jul 22, 2014 at 04:45:03PM +0100, Lee Jones wrote: > > > > > +static void st_dwc3_init(struct st_dwc3 *dwc3_data) > > > > > +{ > > > > > + u32 reg = st_dwc3_readl(dwc3_data->glue_base, USB2_CLKRST_CTRL); > > > > > + > > > > > + reg |= aux_clk_en(1) | ext_cfg_reset_n(1) | xhci_revisi

Re: [PATCH v2 0/2] printk: more log flag simplification

2014-07-22 Thread Alex Elder
On 07/22/2014 09:24 AM, Borislav Petkov wrote: > On Tue, Jul 22, 2014 at 09:01:55AM -0500, Alex Elder wrote: >> This series eliminates the LOG_CONT entirely from the printk/log code. >> It builds on another series, posted earlier today: >> http://www.spinics.net/lists/kernel/msg1791665.html >>

Re: [STLinux Kernel] [PATCH v3 10/10] MAINTAINERS: Add sdhci-st file to ARCH/STI architecture

2014-07-22 Thread Olof Johansson
On Tue, Jul 22, 2014 at 5:13 AM, Maxime Coquelin wrote: > Hi Olof, Arnd, Kevin, > > I am preparing two tags for v3.17 regarding STi platform. > One for DT, and one for defconfigs. > > Except this one, I have no patches for ARM-SoC. > Can you take this patch directly

Re: [PATCHv4 5/5] arm64: Add atomic pool for non-coherent and CMA allocations.

2014-07-22 Thread Catalin Marinas
On Mon, Jul 21, 2014 at 11:36:49PM +0100, Laura Abbott wrote: > On 7/18/2014 6:43 AM, Catalin Marinas wrote: > > On Wed, Jul 02, 2014 at 07:03:38PM +0100, Laura Abbott wrote: > >> @@ -73,50 +124,56 @@ static void __dma_free_coherent(struct device *dev, > >> size_t size, > >>

Re: [PATCH v2 1/3] usb: dwc3: add ST dwc3 glue layer to manage dwc3 HC

2014-07-22 Thread Lee Jones
On Tue, 22 Jul 2014, Felipe Balbi wrote: > On Tue, Jul 22, 2014 at 04:45:03PM +0100, Lee Jones wrote: > > > > > > +static void st_dwc3_init(struct st_dwc3 *dwc3_data) > > > > > > +{ > > > > > > + u32 reg = st_dwc3_readl(dwc3_data->glue_base, USB2_CLKRST_CTRL); > > > > > > + > > > > > > + reg |

Re: [PATCHv4 3/5] common: dma-mapping: Introduce common remapping functions

2014-07-22 Thread Catalin Marinas
On Mon, Jul 21, 2014 at 08:33:48PM +0100, Laura Abbott wrote: > On 7/18/2014 6:53 AM, Catalin Marinas wrote: > > On Wed, Jul 02, 2014 at 07:03:36PM +0100, Laura Abbott wrote: > >> +void *dma_common_pages_remap(struct page **pages, size_t size, > >> + unsigned long vm_flags, pgprot_

Re: [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Daniel Vetter
On Tue, Jul 22, 2014 at 5:42 PM, Alex Deucher wrote: >> Fence-based syncing between userspace queues submitted stuff through >> doorbells and anything submitted by the general simply wont work. >> Which is why I think the doorbell is a stupid interface since I just >> don't see cameras and v4l dev

Re: [Nouveau] [PATCH 09/17] drm/radeon: use common fence implementation for fences

2014-07-22 Thread Christian König
Am 22.07.2014 17:42, schrieb Daniel Vetter: On Tue, Jul 22, 2014 at 5:35 PM, Christian König wrote: Drivers exporting fences need to provide a fence->signaled and a fence->wait function, everything else like fence->enable_signaling or calling fence_signaled() from the driver is optional. Drive

Re: [PATCH v2] bus: ARM CCN PMU driver

2014-07-22 Thread Olof Johansson
On Tue, Jul 22, 2014 at 3:11 AM, Pawel Moll wrote: > Hi Arnd, Kevin, Olof, > > On Fri, 2014-07-11 at 16:06 +0100, Pawel Moll wrote: >> Driver providing perf backend for ARM Cache Coherent Network >> interconnect. Supports counting all hardware events and crosspoint >> watchpoints. >> >> Currently

Re: [PATCH v4 3/6] thermal: Added Bang-bang thermal governor

2014-07-22 Thread Borislav Petkov
On Tue, Jul 22, 2014 at 04:59:02PM +0200, Peter Feuerer wrote: > Then the "depend on THERMAL_GOV_BANG_BANG" could be removed from > acerhdf Kbuild, as the "select" will take care acerhdf is compiled > with THERMAL_GOV_BANG_BANG enabled, right? Yes, try it. -- Regards/Gruss, Boris. Sent from

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