Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Greg KH
On Tue, Oct 08, 2013 at 11:16:44PM -0700, Joe Perches wrote: > On Tue, 2013-10-08 at 22:43 -0700, Greg KH wrote: > > On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > > > Currently, devm_ managed memory only supports kzalloc. > > > > > > Convert the devm_kzalloc implementation to devm

Re: [PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-08 Thread Simon Horman
On Wed, Oct 09, 2013 at 01:59:46PM +0900, Magnus Damm wrote: > Hi Simon, > > On Wed, Oct 9, 2013 at 12:40 PM, Simon Horman wrote: > > On Tue, Oct 08, 2013 at 02:34:03PM +0900, takas...@ops.dti.ne.jp wrote: > >> Use common clock framework version of clock > >> drivers/clk/shmobile/clk-emev2.c > >

Re: [PATCH 32/52] tools/perf/build: Speed up auto-detection of features by adding a 'test-all' target

2013-10-08 Thread Ingo Molnar
* Jiri Olsa wrote: > On Tue, Oct 08, 2013 at 12:11:02PM +0200, Ingo Molnar wrote: > > SNIP > > > diff --git a/tools/perf/config/feature-checks/Makefile > > b/tools/perf/config/feature-checks/Makefile > > index c65bdac..b031669 100644 > > --- a/tools/perf/config/feature-checks/Makefile > > +++

Re: [PATCH 18/52] tools/perf/build: Split out feature check: 'libunwind'

2013-10-08 Thread Ingo Molnar
* David Ahern wrote: > On 10/8/13 4:10 AM, Ingo Molnar wrote: > >@@ -240,15 +241,7 @@ ifneq ($(ARCH),x86) > > endif > > > > ifndef NO_LIBUNWIND > >- # for linking with debug library, run like: > >- # make DEBUG=1 LIBUNWIND_DIR=/opt/libunwind/ > >- ifdef LIBUNWIND_DIR > >-LIBUNWIND_CFLAG

[PATCH v3] USB: gadget: s3c-hsotg: add isochronous transfers support

2013-10-08 Thread Robert Baldyga
This patch adds isochronous transfer support. It adds few modifications: - Modify s3c_hsotg_epint() function. Some interrupts are ignored for isochronous endpoints, (e.g. INTknTXFEmpMsk) becouse isochronous request is always transfered in single transaction, which ends with XferCompl interrupt.

[PATCH 53/52] tools/perf/build: Clean up feature_print_code()

2013-10-08 Thread Ingo Molnar
* Jiri Olsa wrote: > On Tue, Oct 08, 2013 at 10:46:10AM +0200, Ingo Molnar wrote: > > SNIP > > > So, this is a bit of a GNU Make mystery to me. If I have a failure for at > > least one of the features, and if I leave out that DUMMY then I get this > > printout: > > > > ...

Re: [PATCHv4 0/5] gpu: host1x: Add runtime pm support

2013-10-08 Thread Terje Bergström
On 08.10.2013 09:27, Arto Merilainen wrote: > This series adds runtime pm support for host1x, gr2d and dc. It retains the > current behaviour if CONFIG_PM_RUNTIME is not enabled. > > The gr2d clock is enabled when a new job is submitted and disabled when > the work is done. Due to parent->child re

Re: [PATCH] rtc: rtc-puv3: use dev_dbg() instead of pr_debug()

2013-10-08 Thread sangjung.woo
On 10/09/2013 03:20 PM, Joe Perches wrote: On Wed, 2013-10-09 at 14:49 +0900, Sangjung Woo wrote: Because dev_*() are used along with pr_debug() function in this code, the debug message is not tidy. This patch converts from pr_debug() to dev_dbg() since dev_*() are encouraged to use in device dr

[PATCH v2] rtc: rtc-puv3: use dev_dbg() instead of pr_debug()

2013-10-08 Thread Sangjung Woo
Because dev_*() are used along with pr_debug() function in this code, the debug message is not tidy. This patch converts from pr_debug() to dev_dbg() since dev_*() are encouraged to use in device driver code. Signed-off-by: Sangjung Woo --- drivers/rtc/rtc-puv3.c | 22 +++--- 1

[PATCH v2 2/5] thermal: exynos: Provide separate TMU data for Exynos4412

2013-10-08 Thread Lukasz Majewski
Up till now Exynos5250 and Exynos4412 had the same definitions for TMU data. Following commit changes that, by introducing separate exynos4412_default_tmu_data structure. Since Exynos4412 was chronologically first, the corresponding name for TMU registers and default data was renamed. Additionall

[PATCH v2 3/5] thermal: exynos: Provide initial setting for TMU's test MUX address at Exynos4412

2013-10-08 Thread Lukasz Majewski
The commit d0a0ce3e77c795258d47f9163e92d5031d0c5221 ("thermal: exynos: Add missing definations and code cleanup") has removed setting of test MUX address value at TMU configuration setting. This field is not present on Exynos4210 and Exynos5 SoCs. However on Exynos4412 SoC it is required to set th

Re: linux-next: manual merge of the tty-next tree

2013-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 08, 2013 at 03:44:15PM +0200, Thierry Reding wrote: > Today's linux-next merge of the tty-next tree got a conflict in > > drivers/tty/serial/imx.c > > caused by commits e2c2725 (serial: imx: Use NULL as the last argument of > add_preferred_console()) and b4e788d (Revert "serial:

[PATCH v2 4/5] ARM: dts: exynos4x12: Device tree node definition for TMU on Exynos4x12

2013-10-08 Thread Lukasz Majewski
The TMU device tree node definition for Exynos4x12 family of SoCs. Signed-off-by: Lukasz Majewski Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Tomasz Figa --- Changes for v2: - None arch/arm/boot/dts/exynos4x12.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arc

[PATCH v2 0/5] thermal: exynos: Fixes for v3.12

2013-10-08 Thread Lukasz Majewski
This patch series is divided into two parts: 1. Device tree node definition and enabelement for TMU at Exynos4412 (Trats2) 2. Exynos thermal subsystem regressions for v3.12-rc4. Several commits were necessary to properly fix regression for TMU test MUX address setting after reset. Test HW:

[PATCH v2 5/5] ARM: dts: exynos4412-trats2: Enable TMU support at Trats2

2013-10-08 Thread Lukasz Majewski
This patch enables support for TMU at Exynos4412 based Trats2 board. Signed-off-by: Lukasz Majewski Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Tomasz Figa --- Changes for v2: - None arch/arm/boot/dts/exynos4412-trats2.dts |5 + 1 file changed, 5 insertions(+) diff --git a/a

[PATCH v2 1/5] thermal: exynos: Remove check for thermal device pointer at exynos_report_trigger()

2013-10-08 Thread Lukasz Majewski
The commit 4de0bdaa9677d11406c9becb70c60887c957e1f0 ("thermal: exynos: Add support for instance based register/unregister") broke check for presence of therm_dev at global thermal zone in exynos_report_trigger(). The resulting wrong test prevents thermal_zone_device_update() call, which calls hand

Re: [GIT PULL] clocksource: event stream on architected timers and tcb_clksrc misc changes

2013-10-08 Thread Ingo Molnar
* Daniel Lezcano wrote: > Hi Thomas, Ingo, > > - Will Deacon and Sudeep KarkadaNagesha implemented the event stream for > architected timer. The event streams can be used to impose a timeout on > a wfe, to safeguard against any programming error in case an expected > event is not generated o

Re: [PATCH] tun: don't look at current when non-blocking

2013-10-08 Thread Jason Wang
On 10/09/2013 03:46 AM, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Sun, 6 Oct 2013 21:25:12 +0300 > >> We play with a wait queue even if socket is >> non blocking. This is an obvious waste. >> Besides, it will prevent calling the non blocking >> variant when current is not valid. >>

[PATCH] USB: gadget: s3c-hsotg: fix set_ep_maxpacket function

2013-10-08 Thread Robert Baldyga
This patch fixes max packet size check in s3c_hsotg_set_ep_maxpacket() function. According USB specification, bits 10..0 of mps specifies maximum packet size, so there is bitwise AND between mps and 0x7ff value. Also added check if maxpacket isn't grater than 1024 which is maximum size od single US

Re: [PATCH] rtc: rtc-puv3: use dev_dbg() instead of pr_debug()

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 14:49 +0900, Sangjung Woo wrote: > Because dev_*() are used along with pr_debug() function in this code, > the debug message is not tidy. This patch converts from pr_debug() to > dev_dbg() since dev_*() are encouraged to use in device driver code. [] > diff --git a/drivers/rtc

Re: [PATCH v8 0/9] rwsem performance optimizations

2013-10-08 Thread Ingo Molnar
* Tim Chen wrote: > Ingo, > > I ran the vanilla kernel, the kernel with all rwsem patches and the > kernel with all patches except the optimistic spin one. I am listing > two presentations of the data. Please note that there is about 5% > run-run variation. > > % change in performance vs

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Joe Perches
On Tue, 2013-10-08 at 22:43 -0700, Greg KH wrote: > On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > > Currently, devm_ managed memory only supports kzalloc. > > > > Convert the devm_kzalloc implementation to devm_kmalloc > > and remove the complete memset to 0 but still set the > >

Re: [PATCH 1/2] i2c-mux-gpio: use deferred probing with the device tree

2013-10-08 Thread Peter Korsgaard
> "WS" == Wolfram Sang writes: WS> On Tue, Oct 08, 2013 at 03:51:50PM +0200, Ionut Nicu wrote: >> If the i2c-parent bus driver is not loaded, returning >> -EINVAL will force people to unload and then reload the >> module again to get it working. >> >> Signed-off-by: Ionut Nicu WS> Doesn't t

Re: [PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-08 Thread Ben Dooks
On 09/10/13 05:38, Simon Horman wrote: On Tue, Oct 08, 2013 at 02:58:08PM +0900, Magnus Damm wrote: On Tue, Oct 8, 2013 at 2:32 PM, wrote: Device tree clock binding document for EMMA Mobile EV2 SMU, And Common clock framework based implementation of it. Following nodes are defined to describe

Re: [PATCH 00/16] sched/wait: Collapse __wait_event macros -v5

2013-10-08 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Tue, Oct 08, 2013 at 08:28:43PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 08, 2013 at 01:40:56PM -0700, Paul E. McKenney wrote: > > > On Tue, Oct 08, 2013 at 09:47:18PM +0200, Ingo Molnar wrote: > > [ . . . ] > > > > > > Should I be thinking about making a k

Re: Use of drivers/platform and matching include?

2013-10-08 Thread Andi Shyti
> >just a question, is this code the one you have already in > >codeaurora for 8974/8226/8626/8610 etc? > Yes. Finally, I would say! But you should have done this much earlier so that you could have made the life of your customers easier and maybe they could have helped you on upstreaming the cod

Re: [PATCH 6/6] x86: Allow disabling HW_BREAKPOINTS and PERF_EVENTS

2013-10-08 Thread Ingo Molnar
* Frederic Weisbecker wrote: > On Tue, Oct 08, 2013 at 10:05:21PM +0200, Peter Zijlstra wrote: > > On Tue, Oct 08, 2013 at 09:55:59PM +0200, Frederic Weisbecker wrote: > > > 1) make breakpoints independant from perf. The drawback is that we must > > > then > > > add seperate hooks on context sw

Re: [PATCH 3/3] perf record: mmap output file

2013-10-08 Thread Ingo Molnar
* David Ahern wrote: > When recording raw_syscalls for the entire system, e.g., > perf record -e raw_syscalls:*,sched:sched_switch -a -- sleep 1 > > you end up with a negative feedback loop as perf itself calls > write() fairly often. This patch handles the problem by mmap'ing the > file in

Re: [f2fs-dev] [PATCH v2] f2fs: avoid congestion_wait when do_checkpoint for better performance

2013-10-08 Thread Yuan Zhong
Hi Gu, > Hi Yuan, > On 10/08/2013 07:30 PM, Yuan Zhong wrote: > >> Hi Gu, >> >>> Hi Yuan, >>> On 10/08/2013 04:30 PM, Yuan Zhong wrote: >> Previously, do_checkpoint() will call congestion_wait() for waiting the pages (previous submitted node/meta/data pages) to be written back. B

Re: [PATCH v2 0/3] Move ARCH specific fpu_counter out of task_struct

2013-10-08 Thread Vineet Gupta
Hi Andrew, On 10/09/2013 01:44 AM, Andrew Morton wrote: > On Tue, 8 Oct 2013 13:16:26 +0530 Vineet Gupta > wrote: > >> When debugging a ARC SMP 3.11 build failure due to a ST insn dealing with >> task_struct.thread going out of range, I spotted @fpu_counter in task_struct >> which only SH/x86 h

[PATCH] rtc: rtc-puv3: use dev_dbg() instead of pr_debug()

2013-10-08 Thread Sangjung Woo
Because dev_*() are used along with pr_debug() function in this code, the debug message is not tidy. This patch converts from pr_debug() to dev_dbg() since dev_*() are encouraged to use in device driver code. Signed-off-by: Sangjung Woo --- drivers/rtc/rtc-puv3.c | 20 ++-- 1 f

Re: [RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Greg KH
On Tue, Oct 08, 2013 at 10:32:27PM -0700, Joe Perches wrote: > Currently, devm_ managed memory only supports kzalloc. > > Convert the devm_kzalloc implementation to devm_kmalloc > and remove the complete memset to 0 but still set the > initial struct devres header and whatever padding before > dat

Re: [RFCv3 1/7] ARM: OMAP2+: hwmod-data: Add SSI information

2013-10-08 Thread Paul Walmsley
On Sun, 6 Oct 2013, Sebastian Reichel wrote: > This patch adds Synchronous Serial Interface (SSI) hwmod support for > OMAP34xx SoCs. > > Signed-off-by: Sebastian Reichel Thanks, queued this one for v3.13. You can drop it from any future reposts of this series. - Paul -- To unsubscribe from

[PATCH] dma: mmp_tdma: add multiple burst size support for 910-squ

2013-10-08 Thread Qiao Zhou
add multiple burst size support for 910-squ. Signed-off-by: Qiao Zhou --- drivers/dma/mmp_tdma.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mmp_tdma.c b/drivers/dma/mmp_tdma.c index 38cb517..d84354b 100644 --- a/drivers/dma/mmp_t

[PATCH v1] dma: mmp-tdma: add multiple burst size support for 910-squ

2013-10-08 Thread Qiao Zhou
v1: add multiple burst size support. remove previous fixed 32-byte setting. Qiao Zhou (1): dma: mmp_tdma: add multiple burst size support for 910-squ drivers/dma/mmp_tdma.c | 25 - 1 files changed, 24 insertions(+), 1 deletions(-) -- To unsubscribe from this list: se

[PATCH v2 2/3] x86: Move fpu_counter into ARCH specific thread_struct

2013-10-08 Thread Vineet Gupta
From: Vineet Gupta Only a couple of arches (sh/x86) use fpu_counter in task_struct so it can be moved out into ARCH specific thread_struct, reducing the size of task_struct for other arches. Compile tested i386_defconfig + gcc 4.7.3 Signed-off-by: Vineet Gupta Acked-by: Ingo Molnar Cc: x...@k

Re: [PATCH] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread sangjung.woo
On 10/09/2013 01:59 PM, Joe Perches wrote: The commit message doesn't match the patch subject (shows kzalloc) I was a bit surprised to find there isn't a devm_kmalloc. This seems fine otherwise. I just sent the second patch file after modifying the commit message. Thank you for your opinion.

[RFC PATCH] device: Add kernel standard devm_k.alloc functions

2013-10-08 Thread Joe Perches
Currently, devm_ managed memory only supports kzalloc. Convert the devm_kzalloc implementation to devm_kmalloc and remove the complete memset to 0 but still set the initial struct devres header and whatever padding before data to 0. Add the other normal alloc variants as static inlines with __GFP

[PATCH v2] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread Sangjung Woo
In order to be free automatically and make the cleanup paths more simple, use devm_kzalloc() instead of kmalloc(). Signed-off-by: Sangjung Woo --- drivers/rtc/rtc-pl030.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030

Re: [PATCH V3] PCI: exynos: add support for MSI

2013-10-08 Thread Jingoo Han
On Tuesday, October 08, 2013 3:23 PM, Kishon Vijay Abraham I wrote: > On Friday 06 September 2013 12:24 PM, Jingoo Han wrote: > > This patch adds support for Message Signaled Interrupt in the > > Exynos PCIe diver using Synopsys designware PCIe core IP. > > > > Signed-off-by: Siva Reddy Kallam > >

Re: [PATCH 3/6] pinctrl: single: Prepare for supporting SoC specific features

2013-10-08 Thread Haojian Zhuang
On Tue, Oct 8, 2013 at 7:55 PM, Linus Walleij wrote: > On Mon, Oct 7, 2013 at 7:35 PM, Tony Lindgren wrote: > >> Hi Linus W, >> >> Any comments on the pinctrl patches 3 - 5 in this series? > > I have no problems with this patch #3, as it is just changing syntax, > not semantics. > > The problems

Re: [PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-08 Thread Magnus Damm
Hi Simon, On Wed, Oct 9, 2013 at 12:40 PM, Simon Horman wrote: > On Tue, Oct 08, 2013 at 02:34:03PM +0900, takas...@ops.dti.ne.jp wrote: >> Use common clock framework version of clock >> drivers/clk/shmobile/clk-emev2.c >> instead of sh-clkfwk version >> arch/arm/mach-shmobile/clock-emev2.c >>

Re: [PATCH] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 13:36 +0900, sangjung.woo wrote: > On 10/09/2013 01:07 PM, Joe Perches wrote: > > On Wed, 2013-10-09 at 13:00 +0900, Sangjung Woo wrote: > >> In order to be free automatically and make the cleanup paths more > >> simple, use devm_kzalloc() instead of kzalloc(). > > [] > >> dif

RE: [PATCH 1/7] powerpc: Add interface to get msi region information

2013-10-08 Thread Bhushan Bharat-R65777
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, October 09, 2013 4:27 AM > To: Bhushan Bharat-R65777 > Cc: alex.william...@redhat.com; j...@8bytes.org; b...@kernel.crashing.org; > ga...@kernel.crashing.org; linux-kernel@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org;

Re: [alsa-devel] [RFC/RFT v2 0/4] ALSA: hda - hdmi: ATI/AMD multi-channel and HBR support

2013-10-08 Thread Olivier Langlois
> > Then please test everything again. I.e. > o speaker-test -D hdmi:CARD=Generic,DEV=0 -c8 -r192000 -F S32_LE > this work fine > o Is there any difference seen > with these, in the beginning/end (i.e. fade-out/in): > speaker-test -D hdmi:CARD=Generic,DEV=0,AES0=0x04 -c2 -r48000 >

Re: [PATCH] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread sangjung.woo
On 10/09/2013 01:07 PM, Joe Perches wrote: On Wed, 2013-10-09 at 13:00 +0900, Sangjung Woo wrote: In order to be free automatically and make the cleanup paths more simple, use devm_kzalloc() instead of kzalloc(). [] diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030.c [] @@ -106,7

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-08 Thread Benjamin Herrenschmidt
On Tue, 2013-10-08 at 20:55 -0700, H. Peter Anvin wrote: > Why not add a minimum number to pci_enable_msix(), i.e.: > > pci_enable_msix(pdev, msix_entries, nvec, minvec) > > ... which means "nvec" is the number of interrupts *requested*, and > "minvec" is the minimum acceptable number (otherwise

Re: [PATCH] thermal/intel_powerclamp: Add newer CPU models

2013-10-08 Thread Zhang Rui
On Thu, 2013-09-26 at 04:33 -0700, Jacob Pan wrote: > This will enable intel_powerclamp driver on newer Intel CPUs > including some Ivy Bridge and Haswell processors. > > Signed-off-by: Jacob Pan applied to thermal -next. thanks, rui > --- > drivers/thermal/intel_powerclamp.c |5 + > 1

Re: [f2fs-dev] [PATCH v2] f2fs: avoid congestion_wait when do_checkpoint for better performance

2013-10-08 Thread Gu Zheng
Hi Yuan, On 10/08/2013 07:30 PM, Yuan Zhong wrote: > Hi Gu, > >> Hi Yuan, >> On 10/08/2013 04:30 PM, Yuan Zhong wrote: > >>> Previously, do_checkpoint() will call congestion_wait() for waiting the >>> pages (previous submitted node/meta/data pages) to be written back. >>> Because congestion_wai

Re: [PATCH] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 13:00 +0900, Sangjung Woo wrote: > In order to be free automatically and make the cleanup paths more > simple, use devm_kzalloc() instead of kzalloc(). [] > diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030.c [] > @@ -106,7 +106,7 @@ static int pl030_probe(struct am

[PATCH] rtc: pl030: Use devm_kzalloc() instead of kmalloc()

2013-10-08 Thread Sangjung Woo
In order to be free automatically and make the cleanup paths more simple, use devm_kzalloc() instead of kzalloc(). Signed-off-by: Sangjung Woo --- drivers/rtc/rtc-pl030.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-08 Thread H. Peter Anvin
On 10/02/2013 03:29 AM, Alexander Gordeev wrote: > > As result, device drivers will cease to use the overcomplicated > repeated fallbacks technique and resort to a straightforward > pattern - determine the number of MSI/MSI-X interrupts required > before calling pci_enable_msi_block() and pci_enab

Re: [PATCH v2 3/3] ARM: shmobile: kzm9d: Use common clock framework

2013-10-08 Thread Simon Horman
On Tue, Oct 08, 2013 at 02:34:03PM +0900, takas...@ops.dti.ne.jp wrote: > Use common clock framework version of clock > drivers/clk/shmobile/clk-emev2.c > instead of sh-clkfwk version > arch/arm/mach-shmobile/clock-emev2.c > when it is configured as a part of multi-platform. > > Signed-off-by: T

Re: [PATCH v2 2/3] ARM: shmobile: emev2: Add clock tree description in DT

2013-10-08 Thread Simon Horman
On Tue, Oct 08, 2013 at 02:54:26PM +0900, Magnus Damm wrote: > On Tue, Oct 8, 2013 at 2:33 PM, wrote: > > Add minimum clock tree description to .dts file. > > This provides same set of clocks as current sh-clkfwk version .c > > code does. > > > > Signed-off-by: Takashi Yoshii Thanks. I plan to

Re: [PATCH 6/6] x86: Allow disabling HW_BREAKPOINTS and PERF_EVENTS

2013-10-08 Thread Andi Kleen
Some more comments. > - your patches might break apps/ABI Can you please explain that a bit more. We have a lot of CONFIG options that disable syscalls, /sys, lots of stuff. Whoever uses them needs to know what they are doing. I thought it was pretty much consensus that Linux is supposed to be

Re: [PATCH v2 1/3] clk: emev2: Add support for emev2 SMU clocks with DT

2013-10-08 Thread Simon Horman
On Tue, Oct 08, 2013 at 02:58:08PM +0900, Magnus Damm wrote: > On Tue, Oct 8, 2013 at 2:32 PM, wrote: > > Device tree clock binding document for EMMA Mobile EV2 SMU, > > And Common clock framework based implementation of it. > > Following nodes are defined to describe clock tree. > > - renesas,em

Re: [PATCH] lockstat: report avg wait and hold times

2013-10-08 Thread Davidlohr Bueso
On Thu, 2013-10-03 at 14:15 +0200, Ingo Molnar wrote: > * Davidlohr Bueso wrote: [...] > > --- a/kernel/lockdep_proc.c > > +++ b/kernel/lockdep_proc.c > > @@ -421,6 +421,7 @@ static void seq_lock_time(struct seq_file *m, struct > > lock_time *lt) > > seq_time(m, lt->min); > > seq_time(m,

Re: [PATCH 00/16] sched/wait: Collapse __wait_event macros -v5

2013-10-08 Thread Paul E. McKenney
On Tue, Oct 08, 2013 at 08:28:43PM -0700, Paul E. McKenney wrote: > On Tue, Oct 08, 2013 at 01:40:56PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 08, 2013 at 09:47:18PM +0200, Ingo Molnar wrote: [ . . . ] > > > > Should I be thinking about making a kernel/rcu? > > > > > > I wanted to raise i

Re: [PATCH 00/16] sched/wait: Collapse __wait_event macros -v5

2013-10-08 Thread Paul E. McKenney
On Tue, Oct 08, 2013 at 01:40:56PM -0700, Paul E. McKenney wrote: > On Tue, Oct 08, 2013 at 09:47:18PM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > On Tue, Oct 08, 2013 at 12:23:31PM +0200, Ingo Molnar wrote: > > > > > > > > * Peter Zijlstra wrote: > > > > > > > > > O

[PATCH 1/3] perf util: Add findnew method to intlist - v2

2013-10-08 Thread David Ahern
Similar to other findnew based methods if the requested object is not found, add it to the list. v2: followed format of other findnew methods per acme's request Signed-off-by: David Ahern Cc: Ingo Molnar Cc: Frederic Weisbecker Cc: Peter Zijlstra Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane

[PATCH 3/3] perf record: mmap output file

2013-10-08 Thread David Ahern
When recording raw_syscalls for the entire system, e.g., perf record -e raw_syscalls:*,sched:sched_switch -a -- sleep 1 you end up with a negative feedback loop as perf itself calls write() fairly often. This patch handles the problem by mmap'ing the file in chunks of 64M at a time and copies

[PATCH 2/3] perf trace: Add summary option to dump syscall statistics

2013-10-08 Thread David Ahern
When enabled dumps a summary of all syscalls by task with the usual statistics -- min, max, average and relative stddev. For example, make - 26341 : 3344 [ 17.4% ] 0.000 ms read : 520.000 4.802 0.644 30.08 write : 200.004 0.036

[PATCH 0/3] perf trace enhancements

2013-10-08 Thread David Ahern
Hi Arnaldo: Revision to intlist per your comment with the summary option updated per your perf/core branch. The mmap output file has survived local testing without problems so please consider it for inclusion as well. It lowers the overhead of perf-record. David Ahern (3): perf util: Add findn

Re: [PATCH 6/6] x86: Allow disabling HW_BREAKPOINTS and PERF_EVENTS

2013-10-08 Thread Andi Kleen
> So I test-built a config close to your config with both tracing and perf > on and off (note, I had OPROFILE and KVM in a module), and got the > following kernel sizes: Yes I mistakenly included KVM (I think that was the difference) Without KVM it's ~272k text, 96k BSS data delta. Still big, b

Re: [PATCH 8/8] ARM: add initial support for Marvell Berlin SoCs

2013-10-08 Thread Jisheng Zhang
Dear Sebastian, On Tue, 8 Oct 2013 05:24:33 -0700 Sebastian Hesselbarth wrote: > This adds initial support for the Marvell Berlin (88DE3xxx) SoC family > and basic machine setup for Armada 1500 (88DE3100) SoCs. First of all, thanks for these patches. I worked and is still working on Marvell Ber

Re: [PATCH 6/6] x86: Allow disabling HW_BREAKPOINTS and PERF_EVENTS

2013-10-08 Thread Andi Kleen
> You'd think that, but for whatever reason, ftrace/perf oopses still happen. Hiding bugs seems like a poor use of the CONFIG option. It would be better to figure out a way to catch them earlier. Perhaps trinity needs to run more often? any chance of a fengguang style nightly service for mainline

Re: [dm-devel] A review of dm-writeboost

2013-10-08 Thread Akira Hayakawa
Mikulas, > Waking up every 100ms in flush_proc is not good because it wastes CPU time > and energy if the driver is idle. Yes, 100ms is too short. I will change it to 1sec then. We can wait for 1 sec in termination. > The problem is that if you fill up the whole cache device in less time > than

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 13:22 +1100, Ryan Mallon wrote: > Anyway, updated patch below: nit: > diff --git a/lib/vsprintf.c b/lib/vsprintf.c [] > @@ -1312,11 +1313,36 @@ char *pointer(const char *fmt, char *buf, char *end, > void *ptr, > spec.field_width = default_widt

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Linus Torvalds
On Tue, Oct 8, 2013 at 7:06 PM, Al Viro wrote: > On Tue, Oct 08, 2013 at 06:38:47PM -0700, Linus Torvalds wrote: >> On Tue, Oct 8, 2013 at 6:18 PM, Al Viro wrote: >> > >> > Point, but I would argue that we should yell very loud if we get 0 from >> > vfs_write() for non-zero size. I'm not sure if

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Ryan Mallon
On 09/10/13 13:00, Joe Perches wrote: > On Wed, 2013-10-09 at 12:55 +1100, Ryan Mallon wrote: >> On 09/10/13 12:30, Joe Perches wrote: >>> On Tue, 2013-10-08 at 17:49 -0700, Joe Perches wrote: On Wed, 2013-10-09 at 11:15 +1100, Ryan Mallon wrote: > Some setuid binaries will allow reading o

[GIT PULL] MTD fixes for 3.12-rc

2013-10-08 Thread Brian Norris
7; of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc (2013-09-19 18:49:08 -0500) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/for-linus-20131008 for you to fetch changes up to 2b468ef0e7959b703626b64c4d264ef822c9267a: mtd: m25p80:

gma500_gfx: Black VGA display with Intel D2500CC board

2013-10-08 Thread Jan-Benedict Glaw
Hi! I'll try an up-to-date kernel tomorrow, but with 3.10.x running, I thought the usual fixes for black screens should be included. The board features a VGA as well as a DVI connector, VGA is connected. No LVDS, no DisplayPort. With DRM debugging enabled, I get this: [0.00] Linux vers

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Al Viro
On Tue, Oct 08, 2013 at 06:38:47PM -0700, Linus Torvalds wrote: > On Tue, Oct 8, 2013 at 6:18 PM, Al Viro wrote: > > > > Point, but I would argue that we should yell very loud if we get 0 from > > vfs_write() for non-zero size. I'm not sure if POSIX allows write(2) > > to return that, but a lot o

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 12:55 +1100, Ryan Mallon wrote: > On 09/10/13 12:30, Joe Perches wrote: > > On Tue, 2013-10-08 at 17:49 -0700, Joe Perches wrote: > >> On Wed, 2013-10-09 at 11:15 +1100, Ryan Mallon wrote: > >>> Some setuid binaries will allow reading of files which have read > >>> permission

Re: [patch 2/3] pvclock: detect watchdog reset at pvclock read

2013-10-08 Thread Marcelo Tosatti
On Tue, Oct 08, 2013 at 11:58:10AM +0200, Paolo Bonzini wrote: > Il 08/10/2013 03:05, Marcelo Tosatti ha scritto: > > +void pvclock_touch_watchdogs(void) > > +{ > > + touch_softlockup_watchdog_sync(); > > + clocksource_touch_watchdog(); > > + rcu_cpu_stall_reset(); > > + reset_hung_task_det

Re: [PATCH v2 12/15] KVM: MMU: allow locklessly access shadow page table out of vcpu thread

2013-10-08 Thread Marcelo Tosatti
On Tue, Oct 08, 2013 at 12:02:32PM +0800, Xiao Guangrong wrote: > > Hi Marcelo, > > On Oct 8, 2013, at 9:23 AM, Marcelo Tosatti wrote: > > >> > >> + if (kvm->arch.rcu_free_shadow_page) { > >> + kvm_mmu_isolate_pages(invalid_list); > >> + sp = list_first_entry(invalid_list, s

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-08 Thread Mark Lord
On 13-10-02 06:29 AM, Alexander Gordeev wrote: .. > This update converts pci_enable_msix() and pci_enable_msi_block() > interfaces to canonical kernel functions and makes them return a > error code in case of failure or 0 in case of success. Rather than silently break dozens of drivers in mysterio

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Ryan Mallon
On 09/10/13 12:30, Joe Perches wrote: > On Tue, 2013-10-08 at 17:49 -0700, Joe Perches wrote: >> On Wed, 2013-10-09 at 11:15 +1100, Ryan Mallon wrote: >>> Some setuid binaries will allow reading of files which have read >>> permission by the real user id. This is problematic with files which >>> us

Re: [RFC PATCH v2 0/1] FPGA subsystem core

2013-10-08 Thread Greg Kroah-Hartman
On Tue, Oct 08, 2013 at 06:47:41PM -0500, delicious quinoa wrote: > On Tue, Oct 8, 2013 at 4:44 PM, Greg Kroah-Hartman > wrote: > > On Tue, Oct 08, 2013 at 12:00:14PM -0500, Alan Tull wrote: > >> On Fri, 2013-10-04 at 16:33 -0700, Greg Kroah-Hartman wrote: > >> > On Fri, Oct 04, 2013 at 11:12:13AM

Re: [x86] BUG: unable to handle kernel paging request at 00740060

2013-10-08 Thread Mike Galbraith
On Tue, 2013-10-08 at 21:05 +0200, Jakub Jelinek wrote: > On Tue, Oct 08, 2013 at 08:51:54PM +0200, Oleg Nesterov wrote: > > On 10/08, Linus Torvalds wrote: > > > > > > (not yet merged), see: > > > > > > > > > http://git.kernel.org/cgit/linux/kernel/git/tip/tip.git/commit/?id=0c44c2d0f459cd7e

Re: [PATCH] mmc: sdhci-esdhc-imx: Check the return value from clk_prepare_enable()

2013-10-08 Thread Shawn Guo
On Tue, Oct 08, 2013 at 10:47:28AM -0300, Fabio Estevam wrote: > clk_prepare_enable() may fail, so let's check its return value and propagate > it > in the case of error. > > Also, fix the sequence for disabling the clock in the probe error path and > also in the remove function. > > Signed-off

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Linus Torvalds
On Tue, Oct 8, 2013 at 6:18 PM, Al Viro wrote: > > Point, but I would argue that we should yell very loud if we get 0 from > vfs_write() for non-zero size. I'm not sure if POSIX allows write(2) > to return that, but a lot of userland code won't be expecting that and > won't be able to cope... Ac

Re: [PATCH RFC 00/77] Re-design MSI/MSI-X interrupts enablement pattern

2013-10-08 Thread Michael Ellerman
On Tue, Oct 08, 2013 at 09:33:02AM +0200, Alexander Gordeev wrote: > On Tue, Oct 08, 2013 at 03:33:30PM +1100, Michael Ellerman wrote: > > On Wed, Oct 02, 2013 at 12:29:04PM +0200, Alexander Gordeev wrote: > > > This technique proved to be confusing and error-prone. Vast share > > > of device drive

Re: [x86] BUG: unable to handle kernel NULL pointer dereference at (null)

2013-10-08 Thread Linus Torvalds
On Tue, Oct 8, 2013 at 6:09 PM, Fengguang Wu wrote: > [ 27.189229] BUG: unable to handle kernel NULL pointer dereference at > 0108 > [ 27.190165] IP: [] rw_verify_area+0xa0/0x1b0 This looks like file->f_inode is NULL, and it's trying to access inode->i_flock. There's a number of other o

[PATCH] xhci-hub.c: handle command_trb that may be link TRB

2013-10-08 Thread Xiao Jin
From: xiao jin Date: Wed, 9 Oct 2013 09:38:45 +0800 Subject: [PATCH] xhci-hub.c: handle command_trb that may be link TRB When xhci stop device, it's possible cmd_ring enqueue point to link TRB after queue the last but one stop endpoint. We must handle the command_trb point to the next segment trb

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Joe Perches
On Tue, 2013-10-08 at 17:49 -0700, Joe Perches wrote: > On Wed, 2013-10-09 at 11:15 +1100, Ryan Mallon wrote: > > Some setuid binaries will allow reading of files which have read > > permission by the real user id. This is problematic with files which > > use %pK because the file access permission

Re: [PATCH] DMA: extend documentation to provide more API details

2013-10-08 Thread Dan Williams
On Mon, Oct 7, 2013 at 12:40 AM, Guennadi Liakhovetski wrote: > Hi Russell > > On Sun, 6 Oct 2013, Russell King - ARM Linux wrote: > >> On Sat, Oct 05, 2013 at 11:00:45PM +0200, Guennadi Liakhovetski wrote: >> > On Sat, 5 Oct 2013, Russell King - ARM Linux wrote: >> > >> > > On Sat, Oct 05, 2013 a

Re: [PATCH 5/9][v5] powerpc: implement is_instr_load_store().

2013-10-08 Thread Michael Ellerman
On Wed, Oct 09, 2013 at 12:03:19PM +1100, Michael Ellerman wrote: > On Tue, 2013-10-08 at 12:31 -0700, Sukadev Bhattiprolu wrote: > > Michael Ellerman [mich...@ellerman.id.au] wrote: > > | bool is_load_store(int ext_opcode) > > | { > > | upper = ext_opcode >> 5; > > | lower = ext_op

[PATCH] kobject: show debug info on delayed kobject release

2013-10-08 Thread Fengguang Wu
Useful for locating buggy drivers on kernel oops. It may add dozens of new lines to boot dmesg. DEBUG_KOBJECT_RELEASE is hopefully only enabled in debug kernels (like maybe the Fedora rawhide one, or at developers), so being a bit more verbose is likely ok. CC: Russell King - ARM Linux CC: Greg

Re: linux-next: manual merge of the imx-mxs tree

2013-10-08 Thread Shawn Guo
On Tue, Oct 08, 2013 at 03:44:12PM +0200, Thierry Reding wrote: > Today's linux-next merge of the imx-mxs tree got conflicts in > > arch/arm/mach-imx/mach-imx6q.c > > caused by commits 4d9d18a (ARM: imx: remove custom .init_time hook), > e709f38 (ARM: imx6: report soc info via soc device) a

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Al Viro
On Wed, Oct 09, 2013 at 02:18:33AM +0100, Al Viro wrote: > Point, but I would argue that we should yell very loud if we get 0 from > vfs_write() for non-zero size. I'm not sure if POSIX allows write(2) > to return that, but a lot of userland code won't be expecting that and > won't be able to cop

Re: [PATCH v2] mmc: sdhci-pci: add Intel Merrifield support

2013-10-08 Thread David Cohen
Kindly ping :) Any comments? Br, David Cohen On 10/01/2013 01:18 PM, David Cohen wrote: Implement initial SDHCI Intel Merrifield support. This patch is based on previous one from Yunpeng Gao Signed-off-by: David Cohen --- drivers/mmc/host/sdhci-pci.c | 30 ++ 1

Re: [xen] double fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC

2013-10-08 Thread Dave Jones
On Tue, Oct 08, 2013 at 05:45:37PM -0700, Linus Torvalds wrote: > normally that whole DEBUG_KOBJECT_RELEASE > thing is hopefully only enabled in debug kernels (like maybe the > Fedora rawhide one Nope. After spending a couple of days fruitlessly trying to get my machine to boot with it enable

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Al Viro
On Tue, Oct 08, 2013 at 05:52:42PM -0700, Linus Torvalds wrote: > On Tue, Oct 8, 2013 at 5:15 PM, Al Viro wrote: > > > > ... and deal with short writes properly > > .. except you don't. > > > + while (nr) { > > + if (dump_interrupted()) > > + return 0; >

[PATCH] xhci: correct the usage of USB_CTRL_SET_TIMEOUT

2013-10-08 Thread Xiao Jin
From: xiao jin Date: Wed, 9 Oct 2013 09:09:46 +0800 Subject: [PATCH] xhci: correct the usage of USB_CTRL_SET_TIMEOUT The usage of USB_CTRL_SET_TIMEOUT is incorrect. The definition of USB_CTRL_SET_TIMEOUT is 5000ms. The input timeout to wait_for_completion_interruptible_timeout is jiffies. That ma

Re: Reworking dm-writeboost [was: Re: staging: Add dm-writeboost]

2013-10-08 Thread Akira Hayakawa
Mike, I am happy to see that guys from filesystem to the block subsystem have been discussing how to handle barriers in each layer almost independently. >> Merging the barriers and replacing it with a single FLUSH >> by accepting a lot of writes >> is the reason for deferring barriers in writeboo

Re: [PATCH] kernel/pid.c: check pid whether be NULL in __change_pid()

2013-10-08 Thread Chen Gang
On 10/09/2013 01:56 AM, Oleg Nesterov wrote: > On 10/08, Chen Gang wrote: >> >> On 10/07/2013 08:43 PM, Oleg Nesterov wrote: >>> but still recommend to check it in __change_pid() to let itself consistency. >>> >>> Why? >>> >>> Contrary, I think we should not hide the problem. If __change_

Re: [PATCH 5/9][v5] powerpc: implement is_instr_load_store().

2013-10-08 Thread Michael Ellerman
On Tue, 2013-10-08 at 12:31 -0700, Sukadev Bhattiprolu wrote: > Michael Ellerman [mich...@ellerman.id.au] wrote: > | bool is_load_store(int ext_opcode) > | { > | upper = ext_opcode >> 5; > | lower = ext_opcode & 0x1f; > | > | /* Short circuit as many misses as we can */ > |

Re: [RFC][PATCH 10/13] make dump_emit() use vfs_write() instead of banging at ->f_op->write directly

2013-10-08 Thread Linus Torvalds
On Tue, Oct 8, 2013 at 5:15 PM, Al Viro wrote: > > ... and deal with short writes properly .. except you don't. > + while (nr) { > + if (dump_interrupted()) > + return 0; > + n = vfs_write(file, addr, nr, &pos); > + if (n < 0)

Re: [PATCH v2] vsprintf: Check real user/group id for %pK

2013-10-08 Thread Joe Perches
On Wed, 2013-10-09 at 11:15 +1100, Ryan Mallon wrote: > Some setuid binaries will allow reading of files which have read > permission by the real user id. This is problematic with files which > use %pK because the file access permission is checked at open() time, > but the kptr_restrict setting is

  1   2   3   4   5   6   7   8   9   >