[PATCH v3 00/19] ARM: at91: move to common clk framework

2013-08-07 Thread Boris BREZILLON
Hello, This patch series is the 3rd version of the new at91 clock implementation (using common clk framework). Most of the clock provided by the PMC (Power Management Controller) are implemented : - main clock (main oscillator) - pll clocks - master clock - programmable clocks - utmi clock - peri

[PATCH v3 01/19] ARM: at91: move at91_pmc.h to include/linux/clk/at91_pmc.h

2013-08-07 Thread Boris BREZILLON
This patch moves at91_pmc.h header from machine specific directory (arch/arm/mach-at91/include/mach/at91_pmc.h) to clk include directory (include/linux/clk/at91_pmc.h). We need this to avoid reference to machine specific headers in clk drivers. Signed-off-by: Boris BREZILLON --- arch/arm/mach-at

[PATCH v3 02/19] ARM: at91: add Kconfig options for common clk support

2013-08-07 Thread Boris BREZILLON
This patch adds the following Kconfig options to prepare the transition to common clk framework: - AT91_USE_OLD_CLK: this option is selected by every SoC which does not support new at91 clks based on common clk framework (SoC which does not define the clock tree in its device tree). This opt

Re: [BUG] hackbench locks up with perf in 3.11-rc1 and beyond

2013-08-07 Thread Joonsoo Kim
On Thu, Aug 08, 2013 at 12:08:56AM -0400, Steven Rostedt wrote: > I went to do some benchmarks on the jump label code, and ran: > > > perf stat -r 100 ./hackbench 50 > > It ran twice, and then would die with: > > [ 65.785108] hackbench invoked oom-killer: gfp_mask=0x200da, order=0, > oom_sco

[PATCH part2 3/4] acpi: Remove "continue" in macro INVALID_TABLE().

2013-08-07 Thread Tang Chen
The macro INVALID_TABLE() is defined like this: #define INVALID_TABLE(x, path, name)\ { pr_err("ACPI OVERRIDE: " x " [%s%s]\n", path, name); continue; } And it is used like this: for (...) { ... if (...)

Re: [PATCH 00/11] Add compression support to pstore

2013-08-07 Thread Tony Luck
On Wed, Aug 7, 2013 at 9:29 PM, Aruna Balakrishnaiah wrote: > When we preallocate, we can use the same big_buf for compression as well as > decompression. > Also workspace will be one for both. By allocating max of inflate workspace > size and deflate > workspace size. We can save memory here. We

[PATCH part2 0/4] acpi: Trivial fix and improving for memory hotplug.

2013-08-07 Thread Tang Chen
This patch-set does some trivial fix and improving in ACPI code for memory hotplug. Patch 1,3,4 have been acked. Tang Chen (4): acpi: Print Hot-Pluggable Field in SRAT. earlycpio.c: Fix the confusing comment of find_cpio_data(). acpi: Remove "continue" in macro INVALID_TABLE(). acpi: Intr

[PATCH part2 1/4] acpi: Print Hot-Pluggable Field in SRAT.

2013-08-07 Thread Tang Chen
The Hot-Pluggable field in SRAT suggests if the memory could be hotplugged while the system is running. Print it as well when parsing SRAT will help users to know which memory is hotpluggable. Signed-off-by: Tang Chen Reviewed-by: Wanpeng Li Reviewed-by: Zhang Yanfei Acked-by: Tejun Heo --- a

[PATCH part2 4/4] acpi: Introduce acpi_verify_initrd() to check if a table is invalid.

2013-08-07 Thread Tang Chen
In acpi_initrd_override(), it checks several things to ensure the table it found is valid. In later patches, we need to do these check somewhere else. So this patch introduces a common function acpi_verify_table() to do all these checks, and reuse it in different places. The function will be used i

[PATCH part2 2/4] earlycpio.c: Fix the confusing comment of find_cpio_data().

2013-08-07 Thread Tang Chen
The comments of find_cpio_data() says: * @offset: When a matching file is found, this is the offset to the * beginning of the cpio. .. But according to the code, dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); nptr = PTR_ALIGN(dptr + ch[C_FILESIZE], 4); *offset = (long)npt

Re: [PATCH v4 1/4] mmc: dw_mmc: Invalidate cache of current_speed after suspend/resume

2013-08-07 Thread Jaehoon Chung
Hi Doung On 08/07/2013 06:37 AM, Doug Anderson wrote: > The dw_mmc driver keeps a cache of the current slot->clock in order to > avoid doing a whole lot of work every time set_ios() is called. > However, after suspend/resume the register values are bogus so we need > to ensure that the cached valu

[PATCH v3 03/19] clk: at91: add PMC base support

2013-08-07 Thread Boris BREZILLON
This patch adds at91 PMC (Power Management Controller) base support. All at91 clocks managed by the PMC unit will use this framework. This framework provides the following fonctionalities: - define a new struct at91_pmc to hide PMC internals (lock, PMC memory mapping, irq domain, ...) - read/wr

Re: [PATCH 0/8] rcu: Ensure rcu read site is deadlock-immunity

2013-08-07 Thread Lai Jiangshan
On 08/08/2013 12:18 PM, Paul E. McKenney wrote: > On Thu, Aug 08, 2013 at 11:10:47AM +0800, Lai Jiangshan wrote: >> On 08/08/2013 10:33 AM, Paul E. McKenney wrote: >>> On Thu, Aug 08, 2013 at 10:33:15AM +0800, Lai Jiangshan wrote: On 08/08/2013 10:12 AM, Steven Rostedt wrote: > On Thu, 201

Re: [PATCH v4 8/9] pci: Tune secondary bus reset timing

2013-08-07 Thread Alex Williamson
On Wed, 2013-08-07 at 11:30 -0700, Alexander Duyck wrote: > On 08/06/2013 07:56 PM, Alex Williamson wrote: > > On Tue, 2013-08-06 at 16:27 -0700, Alexander Duyck wrote: > >> On 08/05/2013 12:37 PM, Alex Williamson wrote: > >>> The PCI spec indicates that with stable power, reset needs to be > >>> a

[PATCH v3 05/19] clk: at91: add PMC main clock

2013-08-07 Thread Boris BREZILLON
This patch adds new at91 main oscillator clock implementation using common clk framework. If rate is not provided during clock registration it is calculated using the slow clock (main clk parent in this case) rate and MCFR register. Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Makefile

Re: [PATCH part2 3/4] acpi: Remove "continue" in macro INVALID_TABLE().

2013-08-07 Thread Joe Perches
On Thu, 2013-08-08 at 13:03 +0800, Tang Chen wrote: > Change it to the style like other macros: > > #define INVALID_TABLE(x, path, name)\ > do { pr_err("ACPI OVERRIDE: " x " [%s%s]\n", path, name); } while (0) Single statement macros do _not_ need to

Re: [PATCH V3]hrtimer: Fix a performance regression by disable reprogramming in remove_hrtimer

2013-08-07 Thread Mike Galbraith
(I got several copies of that, one would have been plenty. Some people get all grumpy when they get repeats, and at least one, who shall remain unnamed, gets even grumpier when folks don't trim their replies, so be careful;) On Thu, 2013-08-08 at 12:31 +0800, ethan.zhao wrote: > diff --git a/arc

[PATCH v3 04/19] clk: at91: add PMC macro file for dt definitions

2013-08-07 Thread Boris BREZILLON
This patch adds a new macro file for PMC macros. This macro file includes the definitions of SR (status register) bit offsets and will be use to reference PMC irqs. Signed-off-by: Boris BREZILLON --- include/dt-bindings/clk/at91/common/pmc.h | 20 1 file changed, 20 inser

Re: BUG cxgb3: Check and handle the dma mapping errors

2013-08-07 Thread Alexey Kardashevskiy
On 08/08/2013 02:55 AM, Divy Le ray wrote: > On 08/05/2013 11:41 AM, Jay Fenlason wrote: >> On Mon, Aug 05, 2013 at 12:59:04PM +1000, Alexey Kardashevskiy wrote: >>> Hi! >>> >>> Recently I started getting multiple errors like this: >>> >>> cxgb3 0006:01:00.0: iommu_alloc failed, tbl c306798

linux-next: manual merge of the mvebu tree with the i2c tree

2013-08-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mvebu tree got a conflict in Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt between commit f480adaf1b71 ("i2c: mv64xxx: Document the newly introduced allwinner compatible") from the i2c tree and commit e7c4a1e9f937 ("ARM: dts: mvebu: Introduce a new c

Re: [PATCH v2 1/2] ALSA: Added jack detection KControl support

2013-08-07 Thread Takashi Iwai
At Wed, 7 Aug 2013 17:45:09 +0100, Mark Brown wrote: > > On Fri, Aug 02, 2013 at 12:59:24AM -0700, Felipe F. Tonello wrote: > > > +int jack_ctl_integer_info(struct snd_kcontrol *kcontrol, > > + struct snd_ctl_elem_info *uinfo) > > +{ > > + uinfo->type = SNDRV_CTL_ELEM_T

linux-next: manual merge of the renesas tree with the leds tree

2013-08-07 Thread Stephen Rothwell
Hi Simon, Today's linux-next merge of the renesas tree got a conflict in drivers/leds/leds-renesas-tpu.c between commit 33d693e59c42 ("leds: use dev_get_platdata()") from the leds tree and commit ae3e4c277669 ("leds: Remove leds-renesas-tpu driver") from the renesas tree. I fixed it up (the latte

Re: [PATCH] netconsole: avoid a crash with multiple sysfs writers

2013-08-07 Thread Neil Horman
On Wed, Aug 07, 2013 at 12:02:44PM +0300, Dan Aloni wrote: > When my 'ifup eth' script was fired multiple times and ran concurrent on > my laptop, for some obscure /etc scripting reason, it was revealed > that the store_enabled() function in netconsole doesn't handle it nicely, > as recorded by the

Re: [v2] Enhanced support for MPC8xx/8xxx watchdog

2013-08-07 Thread leroy christophe
Le 26/06/2013 01:04, Scott Wood a écrit : On Thu, Feb 28, 2013 at 09:52:22AM +0100, LEROY Christophe wrote: This patch modifies the behaviour of the MPC8xx/8xxx watchdog. On the MPC8xx, at 133Mhz, the maximum timeout of the watchdog timer is 1s, which means it must be pinged twice a second. This

Re: [PATCH V3]hrtimer: Fix a performance regression by disable reprogramming in remove_hrtimer

2013-08-07 Thread Mike Galbraith
On Thu, 2013-08-08 at 07:29 +0200, Mike Galbraith wrote: > On Thu, 2013-08-08 at 12:31 +0800, ethan.zhao wrote: > > > diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h > > index 4137890..c27f04f 100644 > > --- a/arch/x86/include/asm/smp.h > > +++ b/arch/x86/include/asm/smp.h >

Re: [PATCH] perf tests: Fix compile failure on do_sort_something

2013-08-07 Thread Adrian Hunter
On 08/08/13 00:59, David Ahern wrote: > Commit b55ae0a9 added code-reading.c which fails to compile on Fedora 16 > with compiler version: > $ gcc --version > gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) > > Failure message is: > > tests/code-reading.c: In function ‘do_sort_something’: > tests/code-

Re: [PATCH v4 06/11] tracing: add 'enable_event' and 'disable_event' event trigger commands

2013-08-07 Thread Masami Hiramatsu
(2013/07/30 1:41), Tom Zanussi wrote: > + > +static int > +event_enable_trigger_func(struct event_command *cmd_ops, void *cmd_data, > + char *glob, char *cmd, char *param, int enabled) > +{ > + struct trace_array *tr = top_trace_array(); OK, here is the problem. top_trace

Linux apanic mechanism and difference from newer ram_console/persistent_ram mechanism

2013-08-07 Thread Vijay
Hello, I am new to the Kernel-Mailing list. I am not subscribed at the moment and would really appreciate it, if I can be CC'd in the reply/responses for my question. I am studying the different logging mechanisms on Linux in case of a Kernel panic (OOPS). So far from my search on the web, I hav

[PATCH v3 06/19] clk: at91: add PMC pll clocks

2013-08-07 Thread Boris BREZILLON
This patch adds new at91 pll clock implementation using common clk framework. The pll clock layout describe the PLLX register layout. There are four pll clock layouts: - at91rm9200 - at91sam9g20 - at91sam9g45 - sama5d3 PLL clocks are given characteristics: - min/max clock source rate - ranges of

[PATCH v3 07/19] clk: at91: add pll id macros for pll dt bindings

2013-08-07 Thread Boris BREZILLON
This patch adds the PLL id macros which will be used by pll dt definitions. Signed-off-by: Boris BREZILLON --- include/dt-bindings/clk/at91/common/clk-pll.h | 13 + 1 file changed, 13 insertions(+) create mode 100644 include/dt-bindings/clk/at91/common/clk-pll.h diff --git a/incl

[PATCH v3 08/19] clk: at91: add PMC master clock

2013-08-07 Thread Boris BREZILLON
This patch adds new at91 master clock implementation using common clk framework. The master clock layout describe the MCKR register layout. There are 2 master clock layouts: - at91rm9200 - at91sam9x5 Master clocks are given characteristics: - min/max clock output rate These characteristics are c

[PATCH v3 09/19] clk: at91: add PMC system clocks

2013-08-07 Thread Boris BREZILLON
This patch adds new at91 system clock implementation using common clk framework. Some peripherals need to enable a "system" clock in order to work properly. Each system clock is given an id based on the bit position in SCER/SCDR registers. Signed-off-by: Boris BREZILLON --- drivers/clk/at91/Mak

Re: [PATCH] netconsole: avoid a crash with multiple sysfs writers

2013-08-07 Thread Dan Aloni
On Thu, Aug 8, 2013 at 8:50 AM, Neil Horman wrote: > > On Wed, Aug 07, 2013 at 12:02:44PM +0300, Dan Aloni wrote: [..] > > > When my 'ifup eth' script was fired multiple times and ran concurrent o> @@ > > -682,7 +689,11 @@ restart: > >* we might sleep in __netpoll_

[PATCH v3 10/19] ARM: at91/dt: add system clk id definitions in dt-bindings include dir

2013-08-07 Thread Boris BREZILLON
This patch adds system clk ids definitions into dt-bindinds include dir (include/dt-bindings/clk/at91/'soc-name'/system-clk.h). These definitions will be used by dt definition to define and reference system clks. Signed-off-by: Boris BREZILLON --- .../dt-bindings/clk/at91/at91rm9200/clk-system.

[PATCH v3 11/19] clk: at91: add PMC peripheral clocks

2013-08-07 Thread Boris BREZILLON
This patch adds new at91 peripheral clock implementation using common clk framework. Almost all peripherals provided by at91 SoCs need a clock to work properly. This clock is enabled/disabled using PCER/PCDR resgisters. Each peripheral is given an id (see atmel's datasheets) which is used to defi

Re: [PATCH v2 4/7] perf, x86: Save/resotre LBR stack during context switch

2013-08-07 Thread Yan, Zheng
On 07/05/2013 08:31 PM, Peter Zijlstra wrote: > On Fri, Jul 05, 2013 at 04:51:33PM +0800, Yan, Zheng wrote: the LBR is shared resource, can be used by multiple events at the same time. >>> >>> Yeah so? There's tons of shared resources in the PMU already. >> >> we should restore the LBR c

[PATCH v3] Enhanced support for MPC8xx/8xxx watchdog

2013-08-07 Thread Christophe Leroy
This patch modifies the behaviour of the MPC8xx/8xxx watchdog. On the MPC8xx, at 133Mhz, the maximum timeout of the watchdog timer is 1s, which means it must be pinged twice a second. This is not in line with the Linux watchdog concept which is based on a default watchdog timeout around 60s. This p

Re: [PATCH] [TRIVIAL] ARM: msm: fix compilation error in gpiomux

2013-08-07 Thread Krzysztof Kozlowski
On śro, 2013-08-07 at 14:08 -0700, Stephen Boyd wrote: > On 08/07, David Brown wrote: > > On Wed, Aug 07, 2013 at 08:34:39AM +0200, Krzysztof Kozlowski wrote: > > >Fix compilation error in gpiomux (CONFIG_MSM_GPIOMUX=y): > > >arch/arm/mach-msm/gpiomux.c:24:13: error: static declaration of > > > ?

[PATCH 1/3] perf tools: Separate out GTK codes to libperf-gtk.so

2013-08-07 Thread Namhyung Kim
Separate out GTK codes to a shared object called libperf-gtk.so. This time only GTK codes are built with -fPIC and libperf remains as is. Cc: Andi Kleen Reviewed-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/Makefile| 39 --- tools/per

[PATCH/RFC 0/3] perf ui/gtk: Separate out GTK code to a shared object (v3)

2013-08-07 Thread Namhyung Kim
Hi, This is v3 of gtk code separation patchset to reduce library dependencies of the perf executable. I only built libperf-gtk.so with -fPIC, and it's not linked to libperf at build time. All unresolved symbols used for perf should be resolved at runtime via perf executable (so libperf.a) - I di

[PATCH 3/3] perf tools: Run dynamic loaded GTK browser

2013-08-07 Thread Namhyung Kim
Run GTK hist and annotation browser using libdl. Cc: Andi Kleen Reviewed-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 26 +++--- tools/perf/builtin-report.c | 16 ++-- tools/perf/config/Makefile| 2 +- tools/perf/ui/gtk

[PATCH 2/3] perf tools: Setup GTK browser dynamically

2013-08-07 Thread Namhyung Kim
Call setup/exit GTK browser function using libdl. Cc: Andi Kleen Reviewed-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/gtk.h | 3 +++ tools/perf/ui/setup.c | 50 +++-- tools/perf/ui/ui.h | 12 +--- 3 files change

Re: [PATCH] Documentation: Add device tree binding file for MOXA ART SoCs interrupt controller

2013-08-07 Thread Jonas Jensen
Hi Mark, On 2 August 2013 11:35, Mark Rutland wrote: >> The MOXA ART irqchip driver was added without accompanying devicetree >> document. >> ( in next-20130716 drivers/irqchip/irq-moxart.c ) > > Aaargh. That should not have happened >:( Sorry about this, my plan was to submit all doc

Re: [PATCH v2 1/2] mm: make vmstat_update periodic run conditional

2013-08-07 Thread Gilad Ben-Yossef
On Thu, Jun 20, 2013 at 5:05 PM, Christoph Lameter wrote: > > On Wed, 19 Jun 2013, Gilad Ben-Yossef wrote: > > > +static void vmstat_update(struct work_struct *w) > > +{ > > + int cpu, this_cpu = smp_processor_id(); > > + > > + if (unlikely(this_cpu == vmstat_monitor_cpu)) > > +

[PATCH v2 0/3] Add power control for lm90

2013-08-07 Thread Wei Ni
The device lm90 can be controlled by the vdd rail. Add function to power on/off the vdd. Enable the nct1008 on Tegra114 Dalmore board, and set the vdd-regulator. This series is v2, previous version patches: [v1]: http://www.mail-archive.com/linux-tegra@vger.kernel.org/msg12034.html Changes from v

[PATCH v2 3/3] Documentation: dt: hwmon: add OF document for lm90

2013-08-07 Thread Wei Ni
Add OF document for lm90 in Documentation/devicetree/. Signed-off-by: Wei Ni --- Documentation/devicetree/bindings/hwmon/lm90.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/lm90.txt diff --git a/Documentation/devicet

[PATCH v2 2/3] ARM: dt: t114 dalmore: add dt entry for nct1008

2013-08-07 Thread Wei Ni
Enable thermal sensor nct1008 for t114 dalmore. Signed-off-by: Wei Ni --- arch/arm/boot/dts/tegra114-dalmore.dts | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index b5a42f0..9d4d2b2

[PATCH v2 1/3] hwmon: (lm90) Add power control

2013-08-07 Thread Wei Ni
The device lm90 can be controlled by the vdd rail. Adding the power control support to power on/off the vdd rail. And make sure that power is enabled before accessing the device. Signed-off-by: Wei Ni --- drivers/hwmon/lm90.c | 49 + 1 file chang

<    4   5   6   7   8   9