[RFC PATCH 0/5] clockevents: decouple broadcast mechanism from drivers

2012-12-18 Thread Mark Rutland
In some SMP systems, cpu-local timers may stop delivering interrupts when in low power states, or not all CPUs may have local timers. To support these systems we have a mechanism for broadcasting timer ticks to other CPUs. This mechanism relies on the struct clock_event_device::broadcast function

Re: [IPv6] crashed when __ip6_del_rt()

2012-12-18 Thread YOSHIFUJI Hideaki
stanley zhou wrote: > when call write_lock_bh() table is null cause crash in __ip6_del_rt(). > kernel version is 2.6.30.10 : > static int __ip6_del_rt(struct rt6_info *rt, struct nl_info *info) > { > int err; > struct fib6_table *table; > struct net *net = dev_net(rt->rt6i_dev); > > if (rt ==

Re: [PATCH] at24: make module parameters changeable via sysfs

2012-12-18 Thread Wolfram Sang
> I reviewed this patch 3 months ago and did not hear back. Are you going > to update this patch and resubmit, or should I just drop it? Uwe is on holiday. I'll take care about it if the need is still there... -- Pengutronix e.K. | Wolfram Sang|

Re: [RFC PATCH v2 3/6] sched: pack small tasks

2012-12-18 Thread Alex Shi
On Tue, Dec 18, 2012 at 5:53 PM, Vincent Guittot wrote: > On 17 December 2012 16:24, Alex Shi wrote: The scheme below tries to summaries the idea: Socket | socket 0 | socket 1 | socket 2 | socket 3 | LCPU| 0 | 1-15 | 16 | 17-31 | 32 | 33-47

Re: [PATCH] at24: make module parameters changeable via sysfs

2012-12-18 Thread Jean Delvare
Uwe, On Fri, 14 Sep 2012 10:25:36 +0200, Jean Delvare wrote: > On Wed, 12 Sep 2012 11:43:32 +0200, Uwe Kleine-König wrote: > > The respective values are evaluated at each read/write, so no further > > action is required than to change the perm argument to module_param. > > > > Note there is no

Re: [PATCH resend 0/2] I2C: sis630: add sis964 support

2012-12-18 Thread Jean Delvare
Hi Amaury, On Wed, 29 Aug 2012 03:35:13 +0200, Amaury Decrême wrote: > This serie of patches brings SIS964 support to i2c-sis630. > > The SiS datasheets have been used. > > The SIS964 isn't part of the SIS96X family and behaves differently. > For i2c, this array show the differences between

Re: [PATCH 13/13] drivers/media/tuners/e4000.c: use macros for i2c_msg initialization

2012-12-18 Thread Jean Delvare
Hi Julia, On Thu, 11 Oct 2012 08:45:43 +0200 (CEST), Julia Lawall wrote: > I found 6 cases where there are more than 2 messages in the array. I > didn't check how many cases where there are two messages but there is > something other than one read and one write. > > Perhaps a reasonable option

Re: [boot crash] Re: [GIT PULL[ block drivers bits for 3.8

2012-12-18 Thread Jens Axboe
On 2012-12-18 10:25, Ingo Molnar wrote: > > * Jens Axboe wrote: > >> Hi Linus, >> >> Now that the core bits are in, here are the driver bits for 3.8. The >> branch contains: > > FYI, I'm getting a divide-by-zero boot crash (serial log capture > below) with the attached config. > > Reproduced

Re: [PATCH V2] serial: tegra: add serial driver

2012-12-18 Thread Alan Cox
On Tue, 18 Dec 2012 12:29:53 +0530 Laxman Dewangan wrote: > Nvidia's Tegra has multiple uart controller which supports: > - APB dma based controller fifo read/write. > - End Of Data interrupt in incoming data to know whether end > of frame achieve or not. > - Hw controlled RTS and CTS flow

Re: [PATCH 2/8] Thermal: Create zone level APIs

2012-12-18 Thread Joe Perches
On Tue, 2012-12-18 at 14:59 +0530, Durgadoss R wrote: > This patch adds a new thermal_zone structure to > thermal.h. Also, adds zone level APIs to the thermal > framework. [] > diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c > +#define GET_INDEX(tz, ptr, indx, type)

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Laurent Navet
>> > Are you also able to build-test the changes? Yes, > Me too :) I just wanted to express that I would love to see a compile > test before submission, even for checkpatch thingies. Can save some > hazzle for all of us. > I agree, thanks for your comments, i'll send new patch in a few days. --

Re: [PATCH 1/8] Thermal: Create sensor level APIs

2012-12-18 Thread Joe Perches
On Tue, 2012-12-18 at 14:59 +0530, Durgadoss R wrote: > This patch creates sensor level APIs, in the > generic thermal framework. Just some trivial notes. > diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c [] > +static ssize_t > +sensor_temp_show(struct device *dev,

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Jean Delvare
On Tue, 18 Dec 2012 18:38:20 +0800, wenhao zhang wrote: > *A Stupid Question* This is not a stupid question, but a completely OFF-TOPIC question. Don't do that again, please. If you have a question to ask, start a new discussion thread on the appropriate list. Thanks, -- Jean Delvare -- To

Re: [PATCH] [RFC] drm/radeon: return 0 on successful gpu reset

2012-12-18 Thread Christian König
On 17.12.2012 22:31, Paul Bolle wrote: On an (outdated) laptop the radeon driver (almost always) prints, during the first resume of each session: [drm] crtc 1 is connected to a TV This message is a bit puzzling as, as far as I know, no TV has ever been connected to this laptop. Anyhow,

Re: [sched/rt] Optimization of function pull_rt_task()

2012-12-18 Thread Kirill Tkhai
16.11.2012, 00:36, "Steven Rostedt" : > Doing my INBOX maintenance (clean up), I've stumbled on this thread > again. I'm not sure the changes here are hopeless. > > On Mon, 2012-06-04 at 13:27 +0800, Yong Zhang wrote: > >>  On Fri, Jun 01, 2012 at 08:45:16PM +0400, Kirill Tkhai wrote: >>>  

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Wolfram Sang
> > Are you also able to build-test the changes? > > Most certainly yes, this driver has almost no dependencies. I will > build-test it anyway. Me too :) I just wanted to express that I would love to see a compile test before submission, even for checkpatch thingies. Can save some hazzle for

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Jean Delvare
On Tue, 18 Dec 2012 11:09:06 +0100, Wolfram Sang wrote: > > > i have planned fixing these too, do you prefer one patch fixing all or > > multiple patches (one per error/warning type )? > > One patch, definately. Yes please :) > You can skip the 80 char thing. For PCI device IDs, agreed. > Are

Re: [PATCH RESEND 0/6 v10] gpio: Add block GPIO

2012-12-18 Thread Jean-Christophe PLAGNIOL-VILLARD
On 07:58 Tue 18 Dec , Wolfgang Grandegger wrote: > On 12/18/2012 06:55 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 20:47 Mon 17 Dec , Wolfgang Grandegger wrote: > >> On 12/17/2012 07:02 PM, Roland Stigge wrote: > >>> On 12/17/2012 06:37 PM, Wolfgang Grandegger wrote: > /* Do

Re: [RFC PATCH v2 3/6] sched: pack small tasks

2012-12-18 Thread Vincent Guittot
On 17 December 2012 16:24, Alex Shi wrote: >>> The scheme below tries to summaries the idea: >>> >>> Socket | socket 0 | socket 1 | socket 2 | socket 3 | >>> LCPU| 0 | 1-15 | 16 | 17-31 | 32 | 33-47 | 48 | 49-63 | >>> buddy conf0 | 0 | 0| 1 | 16| 2

Re: linux-next: build failure after merge of the akpm tree

2012-12-18 Thread Mel Gorman
On Tue, Dec 18, 2012 at 01:29:07PM +1100, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > mm/migrate.c: In function 'migrate_misplaced_transhuge_page': > mm/migrate.c:1738:2: error: incompatible type for

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Wolfram Sang
> i have planned fixing these too, do you prefer one patch fixing all or > multiple patches (one per error/warning type )? One patch, definately. You can skip the 80 char thing. Are you also able to build-test the changes? -- Pengutronix e.K. | Wolfram Sang

Re: [PATCH] mm/swap: abort swapoff after disk error

2012-12-18 Thread Konstantin Khlebnikov
Hugh Dickins wrote: On Fri, 14 Dec 2012, Konstantin Khlebnikov wrote: Content of non-uptodate pages completely random, we cannot expose them into userspace. This leads to information leak and will crash userspace for sure. Good find, yes, it's very wrong as is. But, sorry, I don't like your

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Laurent Navet
Hi guys, > This is correct, however there are several other checkpatch errors and > warnings in this file and I would appreciate if you could fix them as > well. I'm not asking that you fix them all, but please consider fixing > the following: > > WARNING: space prohibited between function name

[PATCH] fuse: truncate file if async dio failed - v2

2012-12-18 Thread Maxim V. Patlasov
The patch improves error handling in fuse_direct_IO(): if we successfully submitted several fuse requests on behalf of synchronous direct write extending file and some of them failed, let's try to do our best to clean-up. Changed in v2: reuse fuse_do_setattr(). Thanks to Brian for suggestion.

Re: [patch 3/7] mm: vmscan: clarify how swappiness, highest priority, memcg interact

2012-12-18 Thread Mel Gorman
On Mon, Dec 17, 2012 at 01:12:33PM -0500, Johannes Weiner wrote: > A swappiness of 0 has a slightly different meaning for global reclaim > (may swap if file cache really low) and memory cgroup reclaim (never > swap, ever). > > In addition, global reclaim at highest priority will scan all LRU >

Re: 32kHz clock removal causes problems omap_hsmmc

2012-12-18 Thread Felipe Balbi
Hi, On Thu, Nov 15, 2012 at 10:31:33AM +0200, Luciano Coelho wrote: > Since the 32KHz clock was removed from the twl-regulator (0e8e5c34 > regulator: twl: Remove references to 32kHz clock from DT bindings), > we've been having problems with our wl12xx chip that is connected > through the

[PATCH] drivers/watchdog/eurotechwdt: handle spurious interrupts on wrong hardware

2012-12-18 Thread Konstantin Khlebnikov
"eurotechwdt" hasn't any PCI-ID or DMI checks, thus is can be loaded on any hardware. On my PC this leads to immediate reboot, because driver got irq right after registering irq handler. This patch rejects interrupts until device activation. There is no sense to load this driver without special

Re: [patch 1/7] mm: memcg: only evict file pages when we have plenty

2012-12-18 Thread Mel Gorman
On Mon, Dec 17, 2012 at 01:12:31PM -0500, Johannes Weiner wrote: > e986850 "mm, vmscan: only evict file pages when we have plenty" makes > a point of not going for anonymous memory while there is still enough > inactive cache around. > > The check was added only for global reclaim, but it is just

Re: [PATCH] driver i2c-nforce2: fix pointer CodingStyle issues

2012-12-18 Thread Jean Delvare
Hi Laurent, On Mon, 17 Dec 2012 22:04:19 +0100, Laurent Navet wrote: > fix these errors reported by checkpatch.pl > - drivers/i2c/busses/i2c-nforce2.c:191 > - drivers/i2c/busses/i2c-nforce2.c:193 > ERROR: "foo * bar" should be "foo *bar" > > - drivers/i2c/busses/i2c-nforce2.c:302: > ERROR:

Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-18 Thread Zhang, Lin-Bao (Linux Kernel R)
Hi Suresh and other guys , In 3.4.4/3.6.6 ,I found a x2apic issue . if I am wrong , sorry first , and welcome your correction . thanks for your forwarding other maintainers. I am testing a server , its BIOS is like this: a) If BIOS think the system is of x2apic , it will set

[PATCH 4/6] Add new base function _install_special_mapping() to mmap.c

2012-12-18 Thread stefani
From: Stefani Seibold The _install_special_mapping() is the new base function for install_special_mapping(). This function will return a pointer to the vma which was created or a error code in an ERR_PTR() The install_special_mapping() will unscramble this to the old behaviour, returning an

[PATCH 0/6] Add 32 bit VDSO time function support

2012-12-18 Thread stefani
From: Stefani Seibold This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the pitfalls. VDSO time functions

[PATCH 2/6] Make vsyscall_gtod_data handling x86 generic

2012-12-18 Thread stefani
From: Stefani Seibold This patch move the vsyscall_gtod_data handling out of vsyscall_64.c into an additonal file vsyscall_gtod.c and make the functions available for x86 32 bit kernels. Signed-off-by: Stefani Seibold --- arch/x86/Kconfig | 4 +-

[PATCH 1/6] Move out seqcount from seqlock.h

2012-12-18 Thread stefani
From: Stefani Seibold Create a seperate seqcount.h file which handles only seqcount. This file is save to include in VDSO, since there is no in-kernel functionality like spinlock in use. seqlock.h still includes seqcount.h, so there is no side effect for current users. Signed-off-by: Stefani

[PATCH 3/6] Make vsyscall_gtod_data compatible with 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold To make the vsyscall_gtod_data available for both VDSO (X86_64 and IA32_EMULATION) the alignment must be set to 4. Otherwise the code create with "gcc -m32" will fail, since the structure alignment in 32 bit mode ist 4 byte. There is currently no drawback for X86_64, since

[PATCH 6/6] Add 32 bit VDSO support for 32 and 64 bit kernels

2012-12-18 Thread stefani
From: Stefani Seibold This patch adds support for 32 bit VDSO. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. For 32 bit programs running under a 64 bit IA32_EMULATION, it is a little bit more tricky. In this case

[PATCH 5/6] Cleanup header files to build a proper 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold To build a proper VDSO for 64 bit and 32 bit from the same source, some header cleanup is necessary, otherwise a "gcc -m32" will produce a lot of errors and warnings due the differents with LP64 and LP32. Signed-off-by: Stefani Seibold --- arch/x86/mm/init_32.c

[PATCH 1/8] Thermal: Create sensor level APIs

2012-12-18 Thread Durgadoss R
This patch creates sensor level APIs, in the generic thermal framework. A Thermal sensor is a piece of hardware that can report temperature of the spot in which it is placed. A thermal sensor driver reads the temperature from this sensor and reports it out. This kind of driver can be in any

[PATCH 5/8] Thermal: Add 'thermal_map' sysfs node

2012-12-18 Thread Durgadoss R
This patch creates a thermal map sysfs node under /sys/class/thermal/thermal_zoneX/. This contains entries named map0, map1 .. mapN. Each map has the following space separated values: trip_type sensor_name cdev_name trip_mask weights Signed-off-by: Durgadoss R --- drivers/thermal/thermal_sys.c

[PATCH 4/8] Thermal: Add Thermal_trip sysfs node

2012-12-18 Thread Durgadoss R
This patch adds a thermal_trip directory under /sys/class/thermal/zoneX. This directory contains the trip point values for sensors bound to this zone. Signed-off-by: Durgadoss R --- drivers/thermal/thermal_sys.c | 237 - include/linux/thermal.h |

[PATCH 6/8] Thermal: Add Documentation to new APIs

2012-12-18 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248 insertions(+) create

[PATCH 7/8] Thermal: Make PER_ZONE values configurable

2012-12-18 Thread Durgadoss R
This patch makes MAX_SENSORS_PER_ZONE and MAX_CDEVS_PER_ZONE values configurable. The default value is 1, and range is 1-12. Signed-off-by: Durgadoss R --- No great reason for using 12. --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6 +++--- 2 files changed, 17

[PATCH 8/8] Thermal: Dummy driver used for testing

2012-12-18 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 315 3

[PATCH 2/8] Thermal: Create zone level APIs

2012-12-18 Thread Durgadoss R
This patch adds a new thermal_zone structure to thermal.h. Also, adds zone level APIs to the thermal framework. A thermal zone is a hot spot on the platform, which can have one or more sensors and cooling devices attached to it. These sensors can be mapped to a set of cooling devices, which when

[PATCH 0/8] Thermal Framework Enhancements

2012-12-18 Thread Durgadoss R
This patch is a v1 based on the RFC submitted here: https://patchwork.kernel.org/patch/1758921/ This patch set is based on Rui's -thermal tree, and is tested on a Core-i5 and an Atom netbook. This series contains 8 patches: Patch 1/8: Creates new sensor level APIs Patch 2/8: Creates new zone

[PATCH 3/8] Thermal: Add APIs to bind cdev to new zone structure

2012-12-18 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |8 + 2 files

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2012-12-18 Thread Hiroshi Doyu
Hi Rob, Rob Herring wrote @ Mon, 17 Dec 2012 15:00:46 +0100: > On 12/17/2012 12:18 AM, Hiroshi Doyu wrote: > > Set Snoop Control Unit(SCU) register base address dynamically from DT. > > > > Signed-off-by: Hiroshi Doyu > > --- > > arch/arm/mach-tegra/platsmp.c | 23 --- >

[PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-18 Thread Fabio Baltieri
Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs its own DT address resources to work properly, as done for platform_device in: f482833 ARM: ux500: add PRCM register base for pinctrl Reviewed-by: Linus Walleij Signed-off-by: Fabio Baltieri ---

Re: [PATCH] kvm: fix i8254 counter 0 wraparound

2012-12-18 Thread Gleb Natapov
On Sat, Dec 15, 2012 at 06:34:37AM -0500, Nickolai Zeldovich wrote: > The kvm i8254 emulation for counter 0 (but not for counters 1 and 2) > has at least two bugs in mode 0: > > 1. The OUT bit, computed by pit_get_out(), is never set high. > > 2. The counter value, computed by pit_get_count(),

[PATCH 1/2] pinctrl: nomadik: return if prcm_base is NULL

2012-12-18 Thread Fabio Baltieri
This patch adds a check for npct->prcm_base to make sure that the address is not NULL before using it, as the driver was made capable of loading even without a proper memory resource in: f1671bf pinctrl/nomadik: make independent of prcmu driver Also, refuses to probe without prcm_base on

Re: [PATCH v2] backlight: add lms501kf03 LCD driver

2012-12-18 Thread devendra.aaru
On Tue, Dec 18, 2012 at 3:46 AM, Jingoo Han wrote: > Add the lms501kf03 LCD panel driver. The lms501kf03 LCD panel (800 > x 480) driver uses 3-wired SPI inteface. > > Signed-off-by: Ilho Lee > Signed-off-by: Jingoo Han > --- > Change since v1: > - remove redundant return variables > - use

[PATCH V2] spi: remove check for bits_per_word on transfer from low level driver

2012-12-18 Thread Laxman Dewangan
The spi core make sure that each transfer structure have the proper setting for bits_per_word before calling low level transfer APIs. Hence it is no more require to check again in low level driver for this field whether this is set correct or not. Removing such code from low level driver.

[PATCH] [RFC] cpufreq: can't raise max frequency with cpu_thermal

2012-12-18 Thread Sonny Rao
The cpu_thermal generic thermal management code has a bug where once max cpu frequency has been lowered in sysfs (scaling_max_freq) it is not possible to raise the max back up later. The bug is that the notifer gets called by __cpufreq_set_policy() before the user policy max is raised, and is

[PATCH v2] backlight: add lms501kf03 LCD driver

2012-12-18 Thread Jingoo Han
Add the lms501kf03 LCD panel driver. The lms501kf03 LCD panel (800 x 480) driver uses 3-wired SPI inteface. Signed-off-by: Ilho Lee Signed-off-by: Jingoo Han --- Change since v1: - remove redundant return variables - use -EINVAL instead of -EFAULT - add a more detailed description of 120ms

[PATCH RESEND 4] ARM: plat-versatile: move secondary CPU startup into cpuinit

2012-12-18 Thread Claudio Fontana
Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the "right" section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug configs. Tested successfully on Fast-Models and on Arndale for VCPU hotplug.

[PATCHv2 1/2] dma: dw_dmac: add dwc_chan_pause and dwc_chan_resume

2012-12-18 Thread Andy Shevchenko
We will use at least the dwc_chan_resume() later. Signed-off-by: Andy Shevchenko Acked-by: Viresh Kumar --- drivers/dma/dw_dmac.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c index

[PATCHv2 2/2] dma: dw_dmac: clear suspend bit during termination

2012-12-18 Thread Andy Shevchenko
From: Heikki Krogerus The DMA transfer could not be established if previously it was paused and terminated. In that case the channel's suspend bit remains set that prevents to transfer anything until channel is resumed. The patch adds a code that clears the DWC_CFGL_CH_SUSP bit during

Re: [PATCH] mm: Suppress mm/memory.o warning on older compilers if !CONFIG_NUMA_BALANCING

2012-12-18 Thread David Rientjes
On Mon, 17 Dec 2012, Andrew Morton wrote: > > The kbuild test robot reported the following after the merge of Automatic > > NUMA Balancing when cross-compiling for avr32. > > > > mm/memory.c: In function 'do_pmd_numa_page': > > mm/memory.c:3593: warning: no return statement in function returning

Re: [PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-18 Thread Sebastian Andrzej Siewior
On Mon, Dec 17, 2012 at 06:21:16PM +0100, Armando Visconti wrote: > >Besides that the patch looks fine :) > > Do you mean that 'inited' should be changed with 'initialized'? Yes, I do. > Oh ... my poor english... :( Don't worry. Others, including myself, do this from time to time as well :) >

[PATCH] spi: Add the flag indicate to registe new device as children of master or not.

2012-12-18 Thread Jun Chen
Because there are two aim when allocating the new device, one is for children of master, other is for master. So this patch add one flag to indicate different purpose. Signed-off-by: Bi Chao Signed-off-by: Chen Jun --- drivers/spi/spi.c | 16 +++- include/linux/spi/spi.h

[regression][PATCH v3] watchdog: Fix disable/enable regression

2012-12-18 Thread Bjørn Mork
commit 8d451690 ("watchdog: Fix CPU hotplug regression") cause an oops or hard lockup when doing echo 0 > /proc/sys/kernel/nmi_watchdog echo 1 > /proc/sys/kernel/nmi_watchdog and the kernel is booted with nmi_watchdog=1 (default) Running laptop-mode-tools and disconnecting/connecting AC power

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-18 Thread Maxim V. Patlasov
12/17/2012 11:04 PM, Brian Foster пишет: On 12/17/2012 09:13 AM, Maxim V. Patlasov wrote: Hi, 12/15/2012 12:16 AM, Brian Foster пишет: On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: ... + fuse_do_truncate() looks fairly close to fuse_do_setattr(). Is there any reason we couldn't make

[GIT PULL] s390 patches for the 3.8 merge window #2

2012-12-18 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: The main patch is the function measurement blocks extension for PCI to do performance statistics and help with debugging. The

Re: [PATCH 1/3] tools/hv: Fix for long file names from readdir

2012-12-18 Thread Tomas Hozza
- Original Message - > > This is just for sanity. The value PATH_MAX was chosen after > > discussion > > with K. Y. Srinivasan and Olaf Hering instead of some "magic" > > number like > > 256 or 512. > > PATH_MAX is a magic name. It is defined in "limits.h". I would welcome some more

[patch] x86, paravirt: fix build error when thp is disabled

2012-12-18 Thread David Rientjes
With CONFIG_PARAVIRT=y and CONFIG_TRANSPARENT_HUGEPAGE=n, the build breaks because set_pmd_at() is undeclared: mm/memory.c: In function 'do_pmd_numa_page': mm/memory.c:3520: error: implicit declaration of function 'set_pmd_at' mm/mprotect.c: In function 'change_pmd_protnuma': mm/mprotect.c:120:

Re: [GIT PULL] x86/uapi for 3.8

2012-12-18 Thread Jan Beulich
>>> On 17.12.12 at 18:15, "H. Peter Anvin" wrote: > On 12/17/2012 09:03 AM, Jan Beulich wrote: > On 17.12.12 at 17:39, "H. Peter Anvin" wrote: >>> Right, I think you nailed this one. This patch copies PTEs from the >>> kernel PTEs and thus they will have the global bit set. It obviously

Re: [GIT PULL] x86/uapi for 3.8

2012-12-18 Thread Jan Beulich
On 17.12.12 at 18:15, H. Peter Anvin h...@linux.intel.com wrote: On 12/17/2012 09:03 AM, Jan Beulich wrote: On 17.12.12 at 17:39, H. Peter Anvin h...@linux.intel.com wrote: Right, I think you nailed this one. This patch copies PTEs from the kernel PTEs and thus they will have the global bit

[patch] x86, paravirt: fix build error when thp is disabled

2012-12-18 Thread David Rientjes
With CONFIG_PARAVIRT=y and CONFIG_TRANSPARENT_HUGEPAGE=n, the build breaks because set_pmd_at() is undeclared: mm/memory.c: In function 'do_pmd_numa_page': mm/memory.c:3520: error: implicit declaration of function 'set_pmd_at' mm/mprotect.c: In function 'change_pmd_protnuma': mm/mprotect.c:120:

Re: [PATCH 1/3] tools/hv: Fix for long file names from readdir

2012-12-18 Thread Tomas Hozza
- Original Message - This is just for sanity. The value PATH_MAX was chosen after discussion with K. Y. Srinivasan and Olaf Hering instead of some magic number like 256 or 512. PATH_MAX is a magic name. It is defined in limits.h. I would welcome some more constructive

[GIT PULL] s390 patches for the 3.8 merge window #2

2012-12-18 Thread Martin Schwidefsky
Hi Linus, please pull from the 'for-linus' branch of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git for-linus to receive the following updates: The main patch is the function measurement blocks extension for PCI to do performance statistics and help with debugging. The

Re: [PATCH 5/6] fuse: truncate file if async dio failed

2012-12-18 Thread Maxim V. Patlasov
12/17/2012 11:04 PM, Brian Foster пишет: On 12/17/2012 09:13 AM, Maxim V. Patlasov wrote: Hi, 12/15/2012 12:16 AM, Brian Foster пишет: On 12/14/2012 10:21 AM, Maxim V. Patlasov wrote: ... + fuse_do_truncate() looks fairly close to fuse_do_setattr(). Is there any reason we couldn't make

[regression][PATCH v3] watchdog: Fix disable/enable regression

2012-12-18 Thread Bjørn Mork
commit 8d451690 (watchdog: Fix CPU hotplug regression) cause an oops or hard lockup when doing echo 0 /proc/sys/kernel/nmi_watchdog echo 1 /proc/sys/kernel/nmi_watchdog and the kernel is booted with nmi_watchdog=1 (default) Running laptop-mode-tools and disconnecting/connecting AC power

[PATCH] spi: Add the flag indicate to registe new device as children of master or not.

2012-12-18 Thread Jun Chen
Because there are two aim when allocating the new device, one is for children of master, other is for master. So this patch add one flag to indicate different purpose. Signed-off-by: Bi Chao chao...@intel.com Signed-off-by: Chen Jun jun.d.c...@intel.com --- drivers/spi/spi.c | 16

Re: [PATCH] usb: gadget zero: avoid unnecessary reinit of data in f_sourcesink

2012-12-18 Thread Sebastian Andrzej Siewior
On Mon, Dec 17, 2012 at 06:21:16PM +0100, Armando Visconti wrote: Besides that the patch looks fine :) Do you mean that 'inited' should be changed with 'initialized'? Yes, I do. Oh ... my poor english... :( Don't worry. Others, including myself, do this from time to time as well :) Rgds,

Re: [PATCH] mm: Suppress mm/memory.o warning on older compilers if !CONFIG_NUMA_BALANCING

2012-12-18 Thread David Rientjes
On Mon, 17 Dec 2012, Andrew Morton wrote: The kbuild test robot reported the following after the merge of Automatic NUMA Balancing when cross-compiling for avr32. mm/memory.c: In function 'do_pmd_numa_page': mm/memory.c:3593: warning: no return statement in function returning

[PATCHv2 2/2] dma: dw_dmac: clear suspend bit during termination

2012-12-18 Thread Andy Shevchenko
From: Heikki Krogerus heikki.kroge...@linux.intel.com The DMA transfer could not be established if previously it was paused and terminated. In that case the channel's suspend bit remains set that prevents to transfer anything until channel is resumed. The patch adds a code that clears the

[PATCHv2 1/2] dma: dw_dmac: add dwc_chan_pause and dwc_chan_resume

2012-12-18 Thread Andy Shevchenko
We will use at least the dwc_chan_resume() later. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/dma/dw_dmac.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git

[PATCH RESEND 4] ARM: plat-versatile: move secondary CPU startup into cpuinit

2012-12-18 Thread Claudio Fontana
Using __CPUINIT instead of __INIT puts the secondary CPU startup code into the right section: it will not be freed in hotplug configurations, allowing hot-add of cpus, while still getting freed in non-hotplug configs. Tested successfully on Fast-Models and on Arndale for VCPU hotplug.

[PATCH v2] backlight: add lms501kf03 LCD driver

2012-12-18 Thread Jingoo Han
Add the lms501kf03 LCD panel driver. The lms501kf03 LCD panel (800 x 480) driver uses 3-wired SPI inteface. Signed-off-by: Ilho Lee ilho215@samsung.com Signed-off-by: Jingoo Han jg1@samsung.com --- Change since v1: - remove redundant return variables - use -EINVAL instead of -EFAULT - add

[PATCH] [RFC] cpufreq: can't raise max frequency with cpu_thermal

2012-12-18 Thread Sonny Rao
The cpu_thermal generic thermal management code has a bug where once max cpu frequency has been lowered in sysfs (scaling_max_freq) it is not possible to raise the max back up later. The bug is that the notifer gets called by __cpufreq_set_policy() before the user policy max is raised, and is

[PATCH V2] spi: remove check for bits_per_word on transfer from low level driver

2012-12-18 Thread Laxman Dewangan
The spi core make sure that each transfer structure have the proper setting for bits_per_word before calling low level transfer APIs. Hence it is no more require to check again in low level driver for this field whether this is set correct or not. Removing such code from low level driver.

Re: [PATCH v2] backlight: add lms501kf03 LCD driver

2012-12-18 Thread devendra.aaru
On Tue, Dec 18, 2012 at 3:46 AM, Jingoo Han jg1@samsung.com wrote: Add the lms501kf03 LCD panel driver. The lms501kf03 LCD panel (800 x 480) driver uses 3-wired SPI inteface. Signed-off-by: Ilho Lee ilho215@samsung.com Signed-off-by: Jingoo Han jg1@samsung.com --- Change since

[PATCH 1/2] pinctrl: nomadik: return if prcm_base is NULL

2012-12-18 Thread Fabio Baltieri
This patch adds a check for npct-prcm_base to make sure that the address is not NULL before using it, as the driver was made capable of loading even without a proper memory resource in: f1671bf pinctrl/nomadik: make independent of prcmu driver Also, refuses to probe without prcm_base on anything

Re: [PATCH] kvm: fix i8254 counter 0 wraparound

2012-12-18 Thread Gleb Natapov
On Sat, Dec 15, 2012 at 06:34:37AM -0500, Nickolai Zeldovich wrote: The kvm i8254 emulation for counter 0 (but not for counters 1 and 2) has at least two bugs in mode 0: 1. The OUT bit, computed by pit_get_out(), is never set high. 2. The counter value, computed by pit_get_count(), wraps

[PATCH 2/2] ARM: ux500: add pinctrl address resources

2012-12-18 Thread Fabio Baltieri
Current nmk_pinctrl driver is not PRCMU dependent anymore, so it needs its own DT address resources to work properly, as done for platform_device in: f482833 ARM: ux500: add PRCM register base for pinctrl Reviewed-by: Linus Walleij linus.wall...@linaro.org Signed-off-by: Fabio Baltieri

Re: [PATCH 4/4] ARM: tegra: Set SCU base address dynamically from DT

2012-12-18 Thread Hiroshi Doyu
Hi Rob, Rob Herring robherri...@gmail.com wrote @ Mon, 17 Dec 2012 15:00:46 +0100: On 12/17/2012 12:18 AM, Hiroshi Doyu wrote: Set Snoop Control Unit(SCU) register base address dynamically from DT. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- arch/arm/mach-tegra/platsmp.c | 23

[PATCH 0/8] Thermal Framework Enhancements

2012-12-18 Thread Durgadoss R
This patch is a v1 based on the RFC submitted here: https://patchwork.kernel.org/patch/1758921/ This patch set is based on Rui's -thermal tree, and is tested on a Core-i5 and an Atom netbook. This series contains 8 patches: Patch 1/8: Creates new sensor level APIs Patch 2/8: Creates new zone

[PATCH 3/8] Thermal: Add APIs to bind cdev to new zone structure

2012-12-18 Thread Durgadoss R
This patch creates new APIs to add/remove a cdev to/from a zone. This patch does not change the old cooling device implementation. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 80 + include/linux/thermal.h |

[PATCH 2/8] Thermal: Create zone level APIs

2012-12-18 Thread Durgadoss R
This patch adds a new thermal_zone structure to thermal.h. Also, adds zone level APIs to the thermal framework. A thermal zone is a hot spot on the platform, which can have one or more sensors and cooling devices attached to it. These sensors can be mapped to a set of cooling devices, which when

[PATCH 8/8] Thermal: Dummy driver used for testing

2012-12-18 Thread Durgadoss R
This patch has a dummy driver that can be used for testing purposes. This patch is not for merge. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/Kconfig|5 + drivers/thermal/Makefile |3 + drivers/thermal/thermal_test.c | 315

[PATCH 7/8] Thermal: Make PER_ZONE values configurable

2012-12-18 Thread Durgadoss R
This patch makes MAX_SENSORS_PER_ZONE and MAX_CDEVS_PER_ZONE values configurable. The default value is 1, and range is 1-12. Signed-off-by: Durgadoss R durgados...@intel.com --- No great reason for using 12. --- drivers/thermal/Kconfig | 14 ++ include/linux/thermal.h |6 +++---

[PATCH 6/8] Thermal: Add Documentation to new APIs

2012-12-18 Thread Durgadoss R
This patch adds Documentation for the new APIs introduced in this patch set. The documentation also has a model sysfs structure for reference. Signed-off-by: Durgadoss R durgados...@intel.com --- Documentation/thermal/sysfs-api2.txt | 248 ++ 1 file changed, 248

[PATCH 4/8] Thermal: Add Thermal_trip sysfs node

2012-12-18 Thread Durgadoss R
This patch adds a thermal_trip directory under /sys/class/thermal/zoneX. This directory contains the trip point values for sensors bound to this zone. Signed-off-by: Durgadoss R durgados...@intel.com --- drivers/thermal/thermal_sys.c | 237 -

[PATCH 5/8] Thermal: Add 'thermal_map' sysfs node

2012-12-18 Thread Durgadoss R
This patch creates a thermal map sysfs node under /sys/class/thermal/thermal_zoneX/. This contains entries named map0, map1 .. mapN. Each map has the following space separated values: trip_type sensor_name cdev_name trip_mask weights Signed-off-by: Durgadoss R durgados...@intel.com ---

[PATCH 1/8] Thermal: Create sensor level APIs

2012-12-18 Thread Durgadoss R
This patch creates sensor level APIs, in the generic thermal framework. A Thermal sensor is a piece of hardware that can report temperature of the spot in which it is placed. A thermal sensor driver reads the temperature from this sensor and reports it out. This kind of driver can be in any

[PATCH 5/6] Cleanup header files to build a proper 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net To build a proper VDSO for 64 bit and 32 bit from the same source, some header cleanup is necessary, otherwise a gcc -m32 will produce a lot of errors and warnings due the differents with LP64 and LP32. Signed-off-by: Stefani Seibold stef...@seibold.net

[PATCH 1/6] Move out seqcount from seqlock.h

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net Create a seperate seqcount.h file which handles only seqcount. This file is save to include in VDSO, since there is no in-kernel functionality like spinlock in use. seqlock.h still includes seqcount.h, so there is no side effect for current users.

[PATCH 3/6] Make vsyscall_gtod_data compatible with 32 bit VDSO

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net To make the vsyscall_gtod_data available for both VDSO (X86_64 and IA32_EMULATION) the alignment must be set to 4. Otherwise the code create with gcc -m32 will fail, since the structure alignment in 32 bit mode ist 4 byte. There is currently no drawback

[PATCH 6/6] Add 32 bit VDSO support for 32 and 64 bit kernels

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch adds support for 32 bit VDSO. For 32 bit programs running on a 32 bit kernel, the same mechanism is used as for 64 bit programs running on a 64 bit kernel. For 32 bit programs running under a 64 bit IA32_EMULATION, it is a little bit more

[PATCH 0/6] Add 32 bit VDSO time function support

2012-12-18 Thread stefani
From: Stefani Seibold stef...@seibold.net This patch add the functions vdso_gettimeofday(), vdso_clock_gettime() and vdso_time() to the 32 bit VDSO. The reason to do this was to get a fast reliable time stamp. Many developers uses TSC to get a fast time time stamp, without knowing the pitfalls.

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