Re: [PATCH 05/19] sched: warnings in kernel/sched/fair.c

2013-01-25 Thread Paul Turner
On Fri, Jan 25, 2013 at 6:14 AM, Arnd Bergmann wrote: > a4c96ae319 "sched: Unthrottle rt runqueues in __disable_runtime()" > turned the unthrottle_offline_cfs_rqs function into a static symbol, > which now triggers a warning about it being potentially unused: > > kernel/sched/fair.c:2055:13:

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Raghavendra K T
On 01/25/2013 04:35 PM, Andrew Jones wrote: On Fri, Jan 25, 2013 at 04:10:25PM +0530, Raghavendra K T wrote: * Ingo Molnar [2013-01-24 11:32:13]: * Raghavendra K T wrote: From: Peter Zijlstra In case of undercomitted scenarios, especially in large guests yield_to overhead is

Re: [PATCH RESEND V5 4/6] perf, x86: Move MSR address offset calculation to architecture specific files

2013-01-25 Thread Jacob Shin
On Fri, Jan 25, 2013 at 12:15:37PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > Move counter index to MSR address offset calculation to architecture > > specific files. This prepares the way for perf_event_amd to enable > > counter addresses that are not

Re: [PATCH V3 RESEND RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2013-01-25 Thread Raghavendra K T
On 01/25/2013 04:17 PM, Ingo Molnar wrote: * Raghavendra K T wrote: * Ingo Molnar [2013-01-24 11:32:13]: * Raghavendra K T wrote: From: Peter Zijlstra In case of undercomitted scenarios, especially in large guests yield_to overhead is significantly high. when run queue length of

Re: [PATCH 18/19] ARM: at91: suspend both memory controllers on at91sam9263

2013-01-25 Thread Arnd Bergmann
On Friday 25 January 2013 16:42:19 Jean-Christophe PLAGNIOL-VILLARD wrote: > On 14:14 Fri 25 Jan , Arnd Bergmann wrote: > > For the past three years, we have had a #warning in > > mach-at91 about the sdram_selfrefresh_enable or > > at91sam9_standby functions possibly not working on > >

RE: [PATCHv2 1/9] staging: zsmalloc: add gfp flags to zs_create_pool

2013-01-25 Thread Dan Magenheimer
> From: Seth Jennings [mailto:sjenn...@linux.vnet.ibm.com] > Subject: Re: [PATCHv2 1/9] staging: zsmalloc: add gfp flags to zs_create_pool > > On 01/24/2013 07:33 PM, Minchan Kim wrote: > > Hi Seth, frontswap guys > > > > On Tue, Jan 8, 2013 at 5:24 AM, Seth Jennings > > wrote: > >>

Re: [PATCH RESEND V5 2/6] perf, amd: Generalize northbridge constraints code for family 15h

2013-01-25 Thread Jacob Shin
On Fri, Jan 25, 2013 at 12:07:40PM +0100, Stephane Eranian wrote: > On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > > From: Robert Richter > > > > Generalize northbridge constraints code for family 10h so that later > > we can reuse the same code path with other AMD processor families that

Re: [PATCH] fbcon: fix locking harder

2013-01-25 Thread Daniel Vetter
On Fri, Jan 25, 2013 at 2:43 AM, Dave Airlie wrote: > Okay so Alan's patch handled the case where there was no registered fbcon, > however the other path entered in set_con2fb_map pit. > > In there we called fbcon_takeover, but we also took the console lock in a > couple > of places. So push the

Re: [PATCH 18/19] ARM: at91: suspend both memory controllers on at91sam9263

2013-01-25 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:14 Fri 25 Jan , Arnd Bergmann wrote: > For the past three years, we have had a #warning in > mach-at91 about the sdram_selfrefresh_enable or > at91sam9_standby functions possibly not working on > at91sam9263. In the meantime a function was added > to do the right thing on at91sam9g45,

[PATCH v2] block/partition/msdos: detect AIX formatted disks even without 55aa

2013-01-25 Thread Philippe De Muyter
AIX formatted disks do not always have the MSDOS 55aa signature. This happens e.g. for unbootable AIX disks. Up to now, such disks were not recognized as AIX disks, because of the missing 55aa. Fix that by inverting the two tests. Let's first check for the AIX magic strings, and only if that

Re: [perfmon2] [PATCH RESEND V5 0/6] perf, amd: Enable AMD family 15h northbridge counters

2013-01-25 Thread Jacob Shin
On Fri, Jan 25, 2013 at 10:42:57AM +0100, Stephane Eranian wrote: > Hi Jacob, > > I will apply this patch to libpfm4. > But I have a question. Why aren't the other uncore > events included here as well? I am talking about > the events listed in BKDG sections 3.16.2 to 3.16.6? > Are those NOT

Re: [PATCH] block/partition/msdos: detect AIX formatted disks even without 55aa

2013-01-25 Thread Andreas Mohr
Hi, IMHO that patch would better have a small but important one-liner comment (one cannot rely on people always making use of SCM history functionality, thereby this would be at risk of getting reversed accidentally eventually). E.g. /* Note order! (some AIX disks, e.g. unbootable kind, have no

Re: [tracepoint] cargo-culting considered harmful...

2013-01-25 Thread Al Viro
On Fri, Jan 25, 2013 at 09:49:53AM -0500, Mathieu Desnoyers wrote: > static > void lttng_enumerate_task_fd(struct lttng_session *session, > struct task_struct *p, char *tmp) > { > struct fdtable *fdt; > struct file *filp; > unsigned int i; > const

Re: [PATCH v7 07/18] perf: add generic memory sampling interface

2013-01-25 Thread Stephane Eranian
On Fri, Jan 25, 2013 at 10:01 AM, Ingo Molnar wrote: > > * Stephane Eranian wrote: > >> This patch adds PERF_SAMPLE_DSRC. >> >> PERF_SAMPLE_DSRC collects the data source, i.e., where >> did the data associated with the sampled instruction >> come from. Information is stored in a perf_mem_dsrc >>

[PATCH 2/5] ARM: compressed/head.S: work around new binutils warning

2013-01-25 Thread Arnd Bergmann
In August 2012, Matthew Gretton-Dann checked a change into binutils labelled "Error on obsolete & warn on deprecated registers", apparently as part of ARMv8 support. Apparently, this was supposed to emit the message "Warning: This coprocessor register access is deprecated in ARMv8" when using

Re: [PATCH] ACPI / scan: Make it clear that acpi_bus_trim() cannot fail

2013-01-25 Thread Toshi Kani
On Thu, 2013-01-24 at 23:56 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Since acpi_bus_trim() cannot fail, change its definition to a void > function, so that its callers don't check the return value in vain > and update the callers. > > Signed-off-by: Rafael J. Wysocki

[PATCH 5/5] drm/exynos: don't include plat/gpio-cfg.h

2013-01-25 Thread Arnd Bergmann
Patch 9eb3e9e6f3 "drm/exynos: add support for ARCH_MULTIPLATFORM" allowed building the exynos hdmi driver on non-samsung platforms, which unfortunately broke compilation in combination with 22c4f42897 "drm: exynos: hdmi: add support for exynos5 hdmi", which added an inclusion of the

[PATCH v2 0/5] ARM build regressions in 3.8

2013-01-25 Thread Arnd Bergmann
This is what remains from my previous 15 patch series, the other patches have largely been obsoleted by fixes from other people that found the same issues. The samsung and w90x900 fixes should probably go through the arm-soc tree, while I'd hope James Morris to pick up the seccomp one and Dave

[PATCH 3/5] ARM: samsung: fix assembly syntax for new gas

2013-01-25 Thread Arnd Bergmann
Recent assembler versions complain about extraneous whitespace inside [] brackets. This fixes all of these instances for the samsung platforms. We should backport this to all kernels that might need to be built with new binutils. arch/arm/kernel/entry-armv.S: Assembler messages:

[PATCH 4/5] ARM: w90x900: fix legacy assembly syntax

2013-01-25 Thread Arnd Bergmann
New ARM binutils don't allow extraneous whitespace inside of brackets, which causes this error on all mach-w90x900 defconfigs: arch/arm/kernel/entry-armv.S: Assembler messages: arch/arm/kernel/entry-armv.S:214: Error: ARM register expected -- `ldr r0,[ r6,#(0x10C)]'

[PATCH 1/5] samples/seccomp: be less stupid about cross compiling

2013-01-25 Thread Arnd Bergmann
The seccomp filters are currently built for the build host, not for the machine that they are going to run on, but they are also built for with the -m32 flag if the kernel is built for a 32 bit machine, both of which seems rather odd. It broke allyesconfig on my machine, which is x86-64, but

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Peter Hurley
On Fri, 2013-01-25 at 08:44 -0500, Peter Hurley wrote: > On Fri, 2013-01-25 at 10:47 +0100, Linus Walleij wrote: > > On Thu, Jan 24, 2013 at 9:52 PM, Aaron Sierra wrote: > > > > > In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found at > > > offsets 0x58 and 0x5C, respectively. This

Re: [PATCH v7 00/18] perf: add memory access sampling support

2013-01-25 Thread Stephane Eranian
On Fri, Jan 25, 2013 at 9:55 AM, Ingo Molnar wrote: > > * Stephane Eranian wrote: > >> This patch series had a new feature to the kernel perf_events >> interface and corresponding user level tool, perf. > > Can I add your Signed-off-by tag to the patches you picked up > from Andi? > Yes. But

Re: [tracepoint] cargo-culting considered harmful...

2013-01-25 Thread Steven Rostedt
On Fri, 2013-01-25 at 09:38 -0500, Mathieu Desnoyers wrote: > Yep, I'd be OK with removing this example, since now all users are > expected to user TRACE_EVENT(), which is built on top of tracepoints. Can I get your Acked-by for the following patch? -- Steve commit

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Aaron Sierra
> On Fri, 2013-01-25 at 14:25 +0100, Paul Bolle wrote: > > 0) insmod-ing an updated lpc_ich.ko generated quite a bit of noise > > in > > dmesg: > > <6>[19913.247530] iTCO_wdt: Found a ICH8M-E TCO device > > (Version=2, TCOBASE=0x1060) > > <6>[19913.249310] iTCO_wdt: initialized.

Re: [PATCH v6 2/2] perf stat: add interval printing

2013-01-25 Thread Stephane Eranian
On Fri, Jan 25, 2013 at 3:52 AM, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 22, 2013 at 02:18:52PM +0100, Stephane Eranian escreveu: >> This patch adds a new printing mode for perf stat. >> It allows internval printing. That means perf stat >> can now print event deltas at regular time

Re: [PATCH RESEND V5 6/6] perf, amd: Enable northbridge performance counters on AMD family 15h

2013-01-25 Thread Stephane Eranian
On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > On AMD family 15h processors, there are 4 new performance counters > (in addition to 6 core performance counters) that can be used for > counting northbridge events (i.e. DRAM accesses). Their bit fields are > almost identical to the core

[PATCH RESEND] goldfish: power device

2013-01-25 Thread Alan Cox
From: Mike Lockwood Add the emulated power driver for the Goldfish platform. This folds together the code from the Google tree, Jun Nakajima's cleanups and x86 porting work, and then a tidy up to pass checkpatch. Signed-off-by: Mike A. Chan [cleanup and x86 support] Signed-off-by: Sheng Yang

Re: [PATCHv2 1/9] staging: zsmalloc: add gfp flags to zs_create_pool

2013-01-25 Thread Seth Jennings
On 01/24/2013 07:33 PM, Minchan Kim wrote: > Hi Seth, frontswap guys > > On Tue, Jan 8, 2013 at 5:24 AM, Seth Jennings > wrote: >> zs_create_pool() currently takes a gfp flags argument >> that is used when growing the memory pool. However >> it is not used in allocating the metadata for the

Re: [PATCH for 3.2.34] memcg: do not trigger OOM from add_to_page_cache_locked

2013-01-25 Thread azurIt
Any news? Thnx! azur __ > Od: "Michal Hocko" > Komu: azurIt > Dátum: 30.12.2012 12:08 > Predmet: Re: [PATCH for 3.2.34] memcg: do not trigger OOM from > add_to_page_cache_locked > > CC: linux-kernel@vger.kernel.org,

[PATCH] block/partition/msdos: detect AIX formatted disks even without 55aa

2013-01-25 Thread Philippe De Muyter
AIX formatted disks do not always have the MSDOS 55aa signature. This happens e.g. for unbootable AIX disks. Up to now, such disks were not recognized as AIX disks, because of the missing 55aa. Fix that by inverting the two tests. Let's first check for the AIX magic strings, and only if that

Re: [PATCH v4 1/4] drivers: usb: phy: add a new driver for usb part of control module

2013-01-25 Thread Felipe Balbi
Hi, On Fri, Jan 25, 2013 at 12:29:43PM +, Mark Rutland wrote: > > > > + depending upon omap4 or omap5. > > > > + - reg-names: The names of the register addresses corresponding to the > > > > registers > > > > + filled in "reg". > > > > + - ti,type: This is used to differentiate whether

[PATCH 1/1] digsig: Fix memory leakage in digsig_verify_rsa()

2013-01-25 Thread Dmitry Kasatkin
From: YOSHIFUJI Hideaki digsig_verify_rsa() does not free kmalloc'ed buffer returned by mpi_get_buffer(). Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: Dmitry Kasatkin Cc: sta...@vger.kernel.org --- lib/digsig.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/digsig.c

Re: [tracepoint] cargo-culting considered harmful...

2013-01-25 Thread Mathieu Desnoyers
* Al Viro (v...@zeniv.linux.org.uk) wrote: > On Wed, Jan 23, 2013 at 03:51:47PM -0800, Andrew Morton wrote: > > > > note that > > > * file->f_path is already pinned down by open(), path_get() does not > > > provide anything extra. > > > * file->f_path.dentry is already pinned by open() *and*

RE: [PATCH v1 0/6] USB: Add support for multiple PHYs of same type

2013-01-25 Thread Mohammed, Afzal
Hi Kishon, On Thu, Jan 24, 2013 at 17:21:45, Mohammed, Afzal wrote: > On Wed, Jan 23, 2013 at 19:56:37, ABRAHAM, KISHON VIJAY wrote: > > On Wednesday 23 January 2013 07:28 PM, Mohammed, Afzal wrote: > > > USB first instance of am335x works in mainline as of now. > > > Can you check if this

Re: [tracepoint] cargo-culting considered harmful...

2013-01-25 Thread Mathieu Desnoyers
* Steven Rostedt (rost...@goodmis.org) wrote: > On Wed, Jan 23, 2013 at 10:55:24PM +, Al Viro wrote: > > In samples/tracepoints/tracepoint-probe-sample.c: > > /* > > * Here the caller only guarantees locking for struct file and struct inode. > > * Locking must therefore be done in the probe

Re: [PATCH 09/19] mfd/twl4030: don't warn about uninitialized return code

2013-01-25 Thread Amit Kucheria
On Fri, Jan 25, 2013 at 2:14 PM, Arnd Bergmann wrote: > If the twl4030_write_script function gets called with > a zero length argument, its return value does not > get set. We know that all scripts have a nonzero > length, but returning an error in case they ever > do is probably appropriate. > >

Re: [PATCH 09/19] mfd/twl4030: don't warn about uninitialized return code

2013-01-25 Thread Arnd Bergmann
On Friday 25 January 2013 15:25:03 Peter Ujfalusi wrote: > On 01/25/2013 03:14 PM, Arnd Bergmann wrote: > > If the twl4030_write_script function gets called with > > a zero length argument, its return value does not > > get set. We know that all scripts have a nonzero > > length, but returning an

Re: [PATCH 09/19] mfd/twl4030: don't warn about uninitialized return code

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 03:14 PM, Arnd Bergmann wrote: > If the twl4030_write_script function gets called with > a zero length argument, its return value does not > get set. We know that all scripts have a nonzero > length, but returning an error in case they ever > do is probably appropriate. > > Without

[PATCH 04/19] oss/dmabuf: use dma_map_single

2013-01-25 Thread Arnd Bergmann
The virt_to_bus/bus_to_virt functions have been deprecated for as long as I can remember, and they are used in very few remaining instances, usually in obscure ISA device drivers. The OSS sound drivers are the only ones that are still used on the ARM architecture, and only on some of the earliest

[PATCH 06/19] sched/debug: fix format string for 32 bit platforms

2013-01-25 Thread Arnd Bergmann
The type returned from atomic64_t can be either unsigned long or unsigned long long, depending on the architecture. Using a cast to unsigned long long lets us use the same format string for all architectures. Without this patch, building with scheduler debugging enabled results in:

[PATCH 10/19] watchdog: at91sam9: at91_wdt_dt_ids cannot be __init

2013-01-25 Thread Arnd Bergmann
The device IDs are referenced by the driver and potentially used beyond the init time, as kbuild correctly warns about. Remove the __initconst annotation. Without this patch, building at91_dt_defconfig results in: WARNING: drivers/watchdog/built-in.o(.data+0x28): Section mismatch in reference

[PATCH 00/19] ARM: common warning fixes

2013-01-25 Thread Arnd Bergmann
Hi everyone, This series fixes all the known build warnings on ARM with any of the defconfig files. Most of these patches are regressions and warn about code that changed in linux-3.8, so it would be nice to fix those before the release. The patch for the ARM_UNWIND warning is added here for

[PATCH 12/19] pinctrl: exynos: don't mark probing functions as __init

2013-01-25 Thread Arnd Bergmann
Functions called from a driver probe() method must not be marked __init, because they may get called after the init phase is done, when the device shows up late, or because of deferred probing. Without this patch, building exynos_defconfig results in multiple warnings like: WARNING:

[PATCH 02/19] ARM: disable virt_to_bus/virt_to_bus almost everywhere

2013-01-25 Thread Arnd Bergmann
We are getting a number of warnings about the use of the deprecated bus_to_virt function in drivers using the ARM ISA DMA API: drivers/parport/parport_pc.c: In function 'parport_pc_fifo_write_block_dma': drivers/parport/parport_pc.c:622:3: warning: 'bus_to_virt' is deprecated (declared at

[PATCH 15/19] sunrpc: don't warn for unused variable 'buf'

2013-01-25 Thread Arnd Bergmann
When RPC_DEBUG is unset, the dprintk() macro does nothing, causing the 'buf' variable in svc_printk to become unused. Marking it as __maybe_unused avoids a harmless gcc warning. Without this patch, building at91_dt_defconfig results in: net/sunrpc/svc.c: In function 'svc_printk':

[PATCH 03/19] ARM: msm: proc_comm_boot_wait should not be __init

2013-01-25 Thread Arnd Bergmann
msm_smd_probe is a driver probe function and may get called after the __init time, so it must not call any __init function, as the link-time warning reports. Take away the __init annotation on proc_comm_boot_wait to fix this. Without this patch, building msm_defconfig results in: WARNING:

Re: [PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Johannes Berg
On Fri, 2013-01-25 at 14:14 +, Arnd Bergmann wrote: > gcc cannot prove that the value of sdata->vif.type does not > change between the switch() statement and the second > comparison to NL80211_IFTYPE_AP, causing a harmless > warning. > Slightly reordering the code makes the warning go away >

[PATCH 05/19] sched: warnings in kernel/sched/fair.c

2013-01-25 Thread Arnd Bergmann
a4c96ae319 "sched: Unthrottle rt runqueues in __disable_runtime()" turned the unthrottle_offline_cfs_rqs function into a static symbol, which now triggers a warning about it being potentially unused: kernel/sched/fair.c:2055:13: warning: 'unthrottle_offline_cfs_rqs' defined but not used

[PATCH 19/19] [INCOMPLETE] ARM: make return_address available for ARM_UNWIND

2013-01-25 Thread Arnd Bergmann
From: sahara This is a reminder that we still need to fix the return_address function to work correctly with the unwinder. Keun-O Park has made this attempt in the past, which is still under discussion[1], and Dave Martin has also mentioned that he would provide a solution for this problem.

[PATCH 18/19] ARM: at91: suspend both memory controllers on at91sam9263

2013-01-25 Thread Arnd Bergmann
For the past three years, we have had a #warning in mach-at91 about the sdram_selfrefresh_enable or at91sam9_standby functions possibly not working on at91sam9263. In the meantime a function was added to do the right thing on at91sam9g45, which looks like it should also work on '9263. This patch

[PATCH 07/19] scripts/sortextable: silence script output

2013-01-25 Thread Arnd Bergmann
The exception table sorter outputs one line every time it gets called, e.g. 'sort done marker at 66dc00', which is slightly annoying when doing 'make -s' which is otherwise completely silent. Since that output is not helpful to most people building the kernel, turn it off by default.

[PATCH 13/19] pinctrl: nomadik: nmk_prcm_gpiocr_get_mode may be unused

2013-01-25 Thread Arnd Bergmann
nmk_prcm_gpiocr_get_mode is only needed for debugfs output at the moment, which can be compile-time disabled. Marking the function __maybe_unused still gives us compile-time coverage, but avoids a gcc warning. Without this patch, building nhk8815_defconfig results in:

[PATCH 11/19] regmap: avoid undefined return from regmap_read_debugfs

2013-01-25 Thread Arnd Bergmann
Gcc warns about the case where regmap_read_debugfs tries to walk an empty map->debugfs_off_cache list, which results in uninitialized variable getting returned. Setting this variable to 0 first avoids the warning and the potentially undefined value. Without this patch, building mxs_defconfig

[PATCH 09/19] mfd/twl4030: don't warn about uninitialized return code

2013-01-25 Thread Arnd Bergmann
If the twl4030_write_script function gets called with a zero length argument, its return value does not get set. We know that all scripts have a nonzero length, but returning an error in case they ever do is probably appropriate. Without this patch, building omap2plus_defconfig results in:

[PATCH 17/19] input/joystick: use get_cycles on ARM

2013-01-25 Thread Arnd Bergmann
ARM normally has an accurate clock source, so we can theoretically use analog joysticks more accurately and at the same time avoid the build warning #warning Precise timer not defined for this architecture. from the joystick driver. Now, why anybody would use that driver no ARM I have no idea,

[PATCH 14/19] spi/atmel: remove incorrect __exit_p()

2013-01-25 Thread Arnd Bergmann
Since we no longer allow building without hotplug, the atmel_spi_remove function is always present and we should not use __exit_p() to refer to it. Without this patch, building at91_dt_defconfig results in: drivers/spi/spi-atmel.c:1006:12: warning: 'atmel_spi_remove' defined but not used

[PATCH 16/19] mac80211: avoid a build warning

2013-01-25 Thread Arnd Bergmann
gcc cannot prove that the value of sdata->vif.type does not change between the switch() statement and the second comparison to NL80211_IFTYPE_AP, causing a harmless warning. Slightly reordering the code makes the warning go away with no functional change. Without this patch, building ARM

[PATCH 08/19] lockdep: avoid warning about unused variables

2013-01-25 Thread Arnd Bergmann
When lockdep is disabled, a call to lockdep_assert_held does not use its argument, which results in a compiler warning if nothing else in the same function uses that variable. An instance of this was introduced by c9a49628819 "nfsd: make client_lock per net". Without this patch, building ARM

[PATCH 01/19] ARM: shmobile: fix defconfig warning on CONFIG_USB

2013-01-25 Thread Arnd Bergmann
A recent update to the marzen_defconfig introduced a duplicate CONFIG_USB=y line. This removes one of the two. arch/arm/configs/marzen_defconfig:86:warning: override: reassigning to symbol USB Signed-off-by: Arnd Bergmann Cc: Simon Horman Cc: linux...@vger.kernel.org ---

[PATCH v3]scripts/tags.sh: Add ctags magic for declarations of popular kernel type

2013-01-25 Thread Kirill Tkhai
1)Add magic for declarations of variables of popular kernel type like spinlock_t, list_head, wait_queue_head_t and other. 2)Add a set of specially handled declaration extentions like __attribute, __aligned and other. 3)Simplify pci_bus_* magic Signed-off-by: Kirill V Tkhai Cc: Michal Marek

[PATCH] [x86]: Compiler Option Os is better on latest x86

2013-01-25 Thread ling . ma . program
From: Ma Ling Currently we use O2 as compiler option for better performance, although it will enlarge code size, in modern CPUs larger instructon and unified cache, sophisticated instruction prefetch weaken instruction cache miss, meanwhile flags such as -falign-functions, -falign-jumps,

Re: [PATCH] fbcon: fix locking harder

2013-01-25 Thread Josh Boyer
On Thu, Jan 24, 2013 at 8:43 PM, Dave Airlie wrote: > Okay so Alan's patch handled the case where there was no registered fbcon, > however the other path entered in set_con2fb_map pit. > > In there we called fbcon_takeover, but we also took the console lock in a > couple > of places. So push the

Re: [PATCH Resend 1/3] sched: fix nr_busy_cpus with coupled cpuidle

2013-01-25 Thread Frederic Weisbecker
2013/1/25 Vincent Guittot : > > Le 25 janv. 2013 13:00, "Frederic Weisbecker" a écrit : > > >> >> 2013/1/25 Vincent Guittot : >> > This sequence is not the right one >> > >> >> I'm going to look for the saved trace to check the sequence above >> > >> > I haven't been able to reproduce the bug

Re: [PATCH v2] userns: improve uid/gid map collision detection

2013-01-25 Thread Aristeu Rozanski
On Thu, Jan 24, 2013 at 04:46:12PM -0800, Andrew Morton wrote: > eek, a macro! Macros are always bad. > > This one is bad because > > a) it's a macro > > b) it evaluates its args multiple times and hence will cause nasty >bugs if called with expressions-with-side-effects. > > c) it

Re: [RFC PATCH] gpiolib-acpi: Add ACPI5 event model support to gpio.

2013-01-25 Thread Mathias Nyman
On 01/25/2013 02:54 PM, Linus Walleij wrote: On Fri, Jan 25, 2013 at 12:48 PM, Mathias Nyman wrote: Add ability to handle ACPI events signalled by GPIO interrupts. ACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be

Re: [PATCH RESEND 1/1] X86: Handle Hyper-V vmbus interrupts as special hypervisor interrupts

2013-01-25 Thread Olaf Hering
On Fri, Jan 25, Jan Beulich wrote: > >>> On 24.01.13 at 19:59, Olaf Hering wrote: > > On Thu, Jan 24, KY Srinivasan wrote: > > > > > >> > Question is - considering you stated that this is supported > >> > starting in Win8, doesn't Hyper-V itself announce that > >> > capability in some explicit

Re: [lttng-dev] [PATCH] Add ACCESS_ONCE() to avoid compiler splitting assignments

2013-01-25 Thread Paul E. McKenney
On Sun, Jan 20, 2013 at 03:51:31PM -0500, Mathieu Desnoyers wrote: > * Paul E. McKenney (paul...@linux.vnet.ibm.com) wrote: > > On Wed, Jan 16, 2013 at 07:50:54AM -0500, Mathieu Desnoyers wrote: > > > * Mathieu Desnoyers (mathieu.desnoy...@efficios.com) wrote: > > > > * Paul E. McKenney

Re: [PATCH v2 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 02:44 PM, Florian Vaussard wrote: > Call to led_pwm_set() can happen inside atomic context, like triggers. > If the PWM call can sleep, defer using a worker. > > Signed-off-by: Florian Vaussard Reviewed-by: Peter Ujfalusi > --- > drivers/leds/leds-pwm.c | 50

Re: [PATCH v2 1/3] pwm: Add pwm_cansleep() as exported API to users

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 02:44 PM, Florian Vaussard wrote: > Calls to some external PWM chips can sleep. To help users, > add pwm_cansleep() API. > > Signed-off-by: Florian Vaussard Reviewed-by: Peter Ujfalusi > --- > drivers/pwm/core.c | 12 > include/linux/pwm.h | 10 ++ > 2

Re: [PATCH v2 2/3] pwm: Add can_sleep property to drivers

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 02:44 PM, Florian Vaussard wrote: > Calls to PWM drivers connected through I2C can sleep. > Use the new can_sleep property. > > Signed-off-by: Florian Vaussard Acked-by: Peter Ujfalusi > --- > drivers/pwm/pwm-twl-led.c |1 + > drivers/pwm/pwm-twl.c |1 + > 2 files

Re: Commit 607ca46e97a1b6594b29647d98a32d545c24bdff breaks building tools/hv/hv_kvp_daemon.c

2013-01-25 Thread Bjarke Istrup Pedersen
2012/12/12 Bjarke Istrup Pedersen : > Hey, > > It seems like this commit breaks building hv_kvp_daemon. > > Here is the bisect log: > > # good: [a0d271cbfed1dd50278c6b06bead3d00ba0a88f9] Linux 3.6 > git bisect good a0d271cbfed1dd50278c6b06bead3d00ba0a88f9 > # bad:

Re: [BUG] panda board locks up on boot

2013-01-25 Thread Steven Rostedt
On Fri, 2013-01-25 at 08:52 +, Russell King - ARM Linux wrote: > On Thu, Jan 24, 2013 at 10:01:26PM -0500, Steven Rostedt wrote: > > I've recently started testing my work on arm boards and have found that > > they both don't boot under the latest kernel anymore. I already posted > > about my

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Peter Hurley
On Fri, 2013-01-25 at 10:47 +0100, Linus Walleij wrote: > On Thu, Jan 24, 2013 at 9:52 PM, Aaron Sierra wrote: > > > In ICH5 and earlier the GPIOBASE and GPIOCTRL registers are found at > > offsets 0x58 and 0x5C, respectively. This patch allows GPIO access to > > properly be enabled (and

[PATCH v2 2/3] pwm: Add can_sleep property to drivers

2013-01-25 Thread Florian Vaussard
Calls to PWM drivers connected through I2C can sleep. Use the new can_sleep property. Signed-off-by: Florian Vaussard --- drivers/pwm/pwm-twl-led.c |1 + drivers/pwm/pwm-twl.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/pwm/pwm-twl-led.c

[PATCH v2 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Florian Vaussard
Call to led_pwm_set() can happen inside atomic context, like triggers. If the PWM call can sleep, defer using a worker. Signed-off-by: Florian Vaussard --- drivers/leds/leds-pwm.c | 50 +++--- 1 files changed, 42 insertions(+), 8 deletions(-) diff

[PATCH v2 0/3] leds-pwm: Defer PWM calls if PWM can sleep

2013-01-25 Thread Florian Vaussard
Hello, When using the leds-pwm module with external PWM chips connected through I2C, the kernel will panic when settings a trigger. In this case, PWM calls can sleep, and should be deferred. Patch 1 and 2 add the necessary API to the PWM subsystem, and update matching drivers. Patch 3 updates

[PATCH v2 1/3] pwm: Add pwm_cansleep() as exported API to users

2013-01-25 Thread Florian Vaussard
Calls to some external PWM chips can sleep. To help users, add pwm_cansleep() API. Signed-off-by: Florian Vaussard --- drivers/pwm/core.c | 12 include/linux/pwm.h | 10 ++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/drivers/pwm/core.c

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Paul Bolle
On Fri, 2013-01-25 at 14:25 +0100, Paul Bolle wrote: > 0) insmod-ing an updated lpc_ich.ko generated quite a bit of noise in > dmesg: > <6>[19913.247530] iTCO_wdt: Found a ICH8M-E TCO device (Version=2, > TCOBASE=0x1060) > <6>[19913.249310] iTCO_wdt: initialized. heartbeat=30 sec

[PATCH] x86: Hyper-V: register clocksource only if its advertised

2013-01-25 Thread Olaf Hering
Enable hyperv_clocksource only if its advertised as a feature. XenServer 6 returns the signature which is checked in ms_hyperv_platform(), but it does not offer all features. Currently the clocksource is enabled unconditionally in ms_hyperv_init_platform(), and the result is a hanging guest.

Re: [PATCH v2 2/6] usb: otg: utils: add facilities in phy lib to support multiple PHYs of same type

2013-01-25 Thread Roger Quadros
On 01/25/2013 04:33 AM, Kishon Vijay Abraham I wrote: > In order to add support for multipe PHY's of the same type, new API's > for adding PHY and getting PHY has been added. Now the binding > information for the PHY and controller should be done in platform file > using usb_bind_phy API. And for

Re: [PATCH 3/3] aio-use-cancellation-list-lazily-fix

2013-01-25 Thread Hillf Danton
On Fri, Jan 25, 2013 at 5:43 AM, Kent Overstreet wrote: > The cancellation changes were fubar - we can't cancel a kiocb if it > doesn't actually have a cancellation callback. > > The use of xchg() in aio_complete() was right - there we're marking the > kiocb as completed - but we need to use

[PATCH] regulator: tps80031: Use IS_ERR to check return value of regulator_register()

2013-01-25 Thread Axel Lin
regulator_register() does not return NULL, it returns ERR_PTR on error. Signed-off-by: Axel Lin --- drivers/regulator/tps80031-regulator.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps80031-regulator.c b/drivers/regulator/tps80031-regulator.c

Re: [PATCH v3] lpc_ich: fix gpio base and control offsets

2013-01-25 Thread Paul Bolle
On Fri, 2013-01-25 at 13:43 +0100, Linus Walleij wrote: > On Fri, Jan 25, 2013 at 1:00 PM, Paul Bolle wrote: > > Would testing on 3.7.5 be helpful? > > Sure it's as good an indicator of the quality of the patch as any. > > If it works on that kernel, it makes probablility lower that it breaks >

Re: [PATCH v2 1/6] usb: otg: Add an API to bind the USB controller and PHY

2013-01-25 Thread Roger Quadros
On 01/25/2013 04:33 AM, Kishon Vijay Abraham I wrote: > In order to support platforms which has multiple PHY's (of same type) and > which has multiple USB controllers, a new design is adopted wherin the binding > information (between the PHY and the USB controller) should be passed to the > PHY

Re: [RFC] efivars write(2) races

2013-01-25 Thread Matt Fleming
On Fri, 2013-01-25 at 11:50 +0800, Lingzhu Xiang wrote: > On 01/25/2013 08:25 AM, Al Viro wrote: > > 1) process A does write() on efivars file, reaches ->get_variable(), > > gets newdatasize set, drops efivars->lock and loses CPU before an attempt to > > grab ->i_mutex. process B comes and

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-25 Thread Michal Hocko
On Wed 23-01-13 06:29:31, Simon Jeons wrote: > On Tue, 2013-01-22 at 19:42 +0800, Tang Chen wrote: > > Here are some bug fix patches for physical memory hot-remove. All these > > patches are based on the latest -mm tree. > > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm >

Re: [PATCH RESEND V5 5/6] perf, x86: Allow for architecture specific RDPMC indexes

2013-01-25 Thread Stephane Eranian
On Thu, Jan 10, 2013 at 8:50 PM, Jacob Shin wrote: > Similar to config_base and event_base, allow architecture specific > RDPMC ECX values. > > Signed-off-by: Jacob Shin Acked-by: Stephane Eranian > --- > arch/x86/kernel/cpu/perf_event.c |2 +- > arch/x86/kernel/cpu/perf_event.h |

Re: [PATCH 1/3] aio: Fix a null pointer deref in batch_complete_aio

2013-01-25 Thread Hillf Danton
On Fri, Jan 25, 2013 at 5:43 AM, Kent Overstreet wrote: > The batch completion code was trying to be a bit too clever, and skip > checking ctx where it couldn't be NULL - but that broke if a kiocb had > been cancelled. Move the check to kioctx_ring_unlock(). > > Reported-by: Valdis Kletnieks >

Re: [BUG] panda board locks up on boot

2013-01-25 Thread Steven Rostedt
On Fri, 2013-01-25 at 08:43 +, Mats Liljegren wrote: > Hi Steven, > > Do you have CONFIG_CPU_FREQ enabled? As I posted earlier in > linux-kernel forum ("Failed booting PandaBoard ES with Linux 3.8 RC4" > two days ago) my PandaBoard ES hangs while booting with this option > enabled. It works

Re: [PATCH 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 02:04 PM, Florian Vaussard wrote: >>> @@ -153,6 +182,8 @@ static int led_pwm_probe(struct platform_device *pdev) >>> led_dat->cdev.max_brightness = cur_led->max_brightness; >>> led_dat->cdev.flags |= LED_CORE_SUSPENDRESUME; >>> >>> +

Re: [PATCH v3 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform

2013-01-25 Thread Jason Cooper
On Fri, Jan 25, 2013 at 01:57:51PM +0100, Linus Walleij wrote: > On Fri, Jan 25, 2013 at 1:55 PM, Linus Walleij > wrote: > > On Fri, Jan 25, 2013 at 1:46 PM, Jason Cooper wrote: > >> On Fri, Jan 25, 2013 at 09:17:57AM +0100, Linus Walleij wrote: > >>> On Tue, Jan 22, 2013 at 10:10 PM, Gregory

Re: [PATCH 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Florian Vaussard
Le 25/01/2013 13:53, Peter Ujfalusi a écrit : On 01/25/2013 11:01 AM, Florian Vaussard wrote: Call to led_pwm_set() can happen inside atomic context, like triggers. If the PWM call can sleep, defer using a worker. Signed-off-by: Florian Vaussard --- drivers/leds/leds-pwm.c | 45

Re: [PATCH 2/5] jump label: constify lookup functions

2013-01-25 Thread Steven Rostedt
On Fri, 2013-01-25 at 11:16 +0100, Borislav Petkov wrote: > On Thu, Jan 24, 2013 at 11:15:10PM -0500, Sasha Levin wrote: > > Sorry about this. I didn't have the ability to build all arches over here :( > > Seen this already: https://www.kernel.org/pub/tools/crosstool/ And look in the kernel

Re: [PATCH v3 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform

2013-01-25 Thread Jason Cooper
On Fri, Jan 25, 2013 at 01:55:04PM +0100, Linus Walleij wrote: > On Fri, Jan 25, 2013 at 1:46 PM, Jason Cooper wrote: > > On Fri, Jan 25, 2013 at 09:17:57AM +0100, Linus Walleij wrote: > >> On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT > >> wrote: > >> > >> > The Globalscale Mirabox platform

Re: [PATCH Resend 1/3] sched: fix nr_busy_cpus with coupled cpuidle

2013-01-25 Thread Frederic Weisbecker
2013/1/25 Vincent Guittot : > This sequence is not the right one > >> I'm going to look for the saved trace to check the sequence above > > I haven't been able to reproduce the bug that this patch was supposed to > solved. The patch 2 and 3 seem enough to fix the nr_busy_cpus field. I will >

Re: [PATCH v3 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform

2013-01-25 Thread Linus Walleij
On Fri, Jan 25, 2013 at 1:55 PM, Linus Walleij wrote: > On Fri, Jan 25, 2013 at 1:46 PM, Jason Cooper wrote: >> On Fri, Jan 25, 2013 at 09:17:57AM +0100, Linus Walleij wrote: >>> On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT >>> wrote: >>> >>> > The Globalscale Mirabox platform can be

Re: [PATCH v3 3/3] arm: mvebu: enable gpio expander over i2c on Mirabox platform

2013-01-25 Thread Linus Walleij
On Fri, Jan 25, 2013 at 1:46 PM, Jason Cooper wrote: > On Fri, Jan 25, 2013 at 09:17:57AM +0100, Linus Walleij wrote: >> On Tue, Jan 22, 2013 at 10:10 PM, Gregory CLEMENT >> wrote: >> >> > The Globalscale Mirabox platform can be connected to the JTAG/GPIO box >> > through the Multi-IO port. The

Re: [RFC PATCH] gpiolib-acpi: Add ACPI5 event model support to gpio.

2013-01-25 Thread Linus Walleij
On Fri, Jan 25, 2013 at 12:48 PM, Mathias Nyman wrote: > Add ability to handle ACPI events signalled by GPIO interrupts. > > ACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are > handled by ACPI event methods which need to be called from the GPIO > controller's interrupt

Re: [PATCH 3/3] leds: leds-pwm: Defer led_pwm_set() if PWM can sleep

2013-01-25 Thread Peter Ujfalusi
On 01/25/2013 11:01 AM, Florian Vaussard wrote: > Call to led_pwm_set() can happen inside atomic context, like triggers. > If the PWM call can sleep, defer using a worker. > > Signed-off-by: Florian Vaussard > --- > drivers/leds/leds-pwm.c | 45 +++-- >

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