Re: [RFC] Restrict kernel spawning of threads to a specified set of cpus.

2013-09-16 Thread Peter Zijlstra
On Fri, Sep 13, 2013 at 03:40:40PM +, Christoph Lameter wrote: Hmmm... usermodehelper is based on workqueues. I guess this will ultimately come down to modify the workqueue behavior for WORK_CPU_UNBOUND? You don't need to keep it like that -- in fact I would suggest removing that

Re: [GIT PULL] S+core Architecture : fix bugs for compiling and support necessary functions

2013-09-16 Thread Lennox Wu
OK, thanks for your reminding, most the format is referenced from other git pull requests, however, I still miss something, I will fix them. How detailed content shold a summary have? I indeed have made some summary in the commits. Could you give me an example? About why I didn't send a copy to

Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

2013-09-16 Thread Peter Zijlstra
On Fri, Sep 13, 2013 at 11:18:21PM -0700, Andi Kleen wrote: tip-bot for Peter Zijlstra tip...@zytor.com writes: + + at = (struct pebs_record_nhm *)(unsigned long)ds-pebs_buffer_base; + top = (struct pebs_record_nhm *)(unsigned long)ds-pebs_index; ds-pebs_index =

Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

2013-09-16 Thread H. Peter Anvin
On 09/16/2013 01:07 AM, Peter Zijlstra wrote: On Fri, Sep 13, 2013 at 11:18:21PM -0700, Andi Kleen wrote: tip-bot for Peter Zijlstra tip...@zytor.com writes: + + at = (struct pebs_record_nhm *)(unsigned long)ds-pebs_buffer_base; + top = (struct pebs_record_nhm *)(unsigned

ATTN:Purchasing Manager---supply 2-ethylanthraquinone---menjie chemicals co

2013-09-16 Thread Fsbho
Dear Sir or Madam: Good Day! Glad to learn you`re on the market of hydrogen peroxide(H2O2) products. We are a professional manufacturers of organic intermediate for 17years , as well as the supplier for ARKEMA, FMC ,now we specialized in the products: the working carrier for

Re: [PATCH 20/51] Input: atmel_mxt_ts - Set default irqflags when there is no pdata

2013-09-16 Thread Dmitry Torokhov
On Thu, Jul 18, 2013 at 07:17:44PM +0200, rydb...@euromail.se wrote: Hi Nick, From: Yufeng Shen mile...@chromium.org This is the preparation for supporting the code path when there is platform data provided and still boot the device into a sane state with backup NVRAM config.

Re: [RFC PATCH 1/1] module: Make wait module's refcount to zero procedure as async

2013-09-16 Thread Rusty Russell
Lucas De Marchi lucas.de.mar...@gmail.com writes: On Thu, Sep 12, 2013 at 9:30 PM, Rusty Russell ru...@rustcorp.com.au wrote: Peter Chen peter.c...@freescale.com writes: Currently, if module's refcount is not zero during the unload, it waits there until the user decreases that refcount. Hi

Why does test_bit() take a volatile addr?

2013-09-16 Thread Rusty Russell
Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) I noticed because gcc failed to elimiate some code in a patch I was playing with. I'm nervous about subtle bugs involved in ripping it out, even if noone knows why. Should I

[PATCH 0/2] Enable PPS reporting for USB serial devices (v3)

2013-09-16 Thread Paul Chavent
Hi. This series enable the PPS reporting for USB serial devices. This third submission improve commit messages, and fix some coding guidelines. The last patch of the v2 will be integrated in an more global reworking of the pl2303 driver. Paul Chavent (2): USB : serial : call handle_dcd_change

[PATCH 1/2] USB : serial : call handle_dcd_change in ftdi driver.

2013-09-16 Thread Paul Chavent
When the device receive a DCD status change, forward the signal to the USB serial system. This way, we can detect, for instance, PPS pulses. Signed-off-by: Paul Chavent paul.chav...@onera.fr --- drivers/usb/serial/ftdi_sio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff

[PATCH 2/2] USB : serial : invoke dcd_change ldisc's handler.

2013-09-16 Thread Paul Chavent
The DCD pin of the serial port can receive a PPS signal. By calling the port line discipline dcd handle, this patch allow to monitor PPS through USB serial devices. However the performance aren't as good as the uart drivers, so document this point too. Signed-off-by: Paul Chavent

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Stephen Rothwell
Hi Rusty, On Mon, 16 Sep 2013 13:38:35 +0930 Rusty Russell ru...@rustcorp.com.au wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) Because we sometimes pass volatile pointers to it and gcc will complain if you pass

[RFC 3/5] squashfs: remove cache for normal data page

2013-09-16 Thread Minchan Kim
Sqsuashfs have used cache for normal data pages but it's pointless because MM already has cache layer and squashfs adds extra pages into MM's page cache when it reads a page from compressed block. This patch removes cache usage for normal data pages so it could remove unnecessary one copy(ie,

[RFC 1/5] squashfs: clean up squashfs_read_data

2013-09-16 Thread Minchan Kim
The squashfs_read_data functions has a role to read a block and decompress for datablock and metadata. This patch cleans it up so it has squashfs_read_datablock and squashfs_meta_datablock and morever, squashfs_read_datablock has two part, one is just request I/O and other part is decompress.

[RFC 0/5] squashfs enhance

2013-09-16 Thread Minchan Kim
Our proudct have used squashfs for rootfs and it saves a few bucks per device. Super thanks, Squashfs! You were a perfect for us. But unfortunately, our device start to become complex so sometime we need better throughput for sequential I/O but current squashfs couldn't meet our usecase. When I

[RFC 2/5] squashfs: clean up squashfs_readpage

2013-09-16 Thread Minchan Kim
Now squashfs_readpage handles regular data, fragmented data and hole pags so it's rather complex. This patch cleans it up so it makes simple for review and upcoming readahread support. It shouldn't change any old behavior. Signed-off-by: Minchan Kim minc...@kernel.org --- fs/squashfs/file.c |

[RFC 4/5] squashfs: support multiple decompress stream buffer

2013-09-16 Thread Minchan Kim
Now squashfs have used for only one stream buffer for decompression so it hurts concurrent read performance due to locking lock of getting stream buffer. When file system mount, the number of stream buffer is started from num_online_cpus() and grows up to num_online_cpus() * 2M / block_size * 2.

[RFC 5/5] squashfs: support readpages

2013-09-16 Thread Minchan Kim
This patch supports squashfs_readpages so it can do readahead pages without unplugging I/O scheduler. With blktrace, I confirmed following test. 2 compression ratio 1G file(ie, 500M consumed by real storage) sequential read with fadvise(SEQUENTIAL) hint and tune some knobs for block device and

Re: [tip:perf/core] perf/x86/intel: Clean-up/reduce PEBS code

2013-09-16 Thread Peter Zijlstra
On Mon, Sep 16, 2013 at 08:07:36AM +0200, Peter Zijlstra wrote: There already was an implicit division there, and sizeof(pebs_record_hsw) = 176, can it really optimize that constant division? I suppose we could go and introduce CONFIG_PERF_DEBUG and stuff sanity checks under that.. :/ Or

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Michael S. Tsirkin
On Mon, Sep 16, 2013 at 04:53:44PM +1000, Stephen Rothwell wrote: Hi Rusty, On Mon, 16 Sep 2013 13:38:35 +0930 Rusty Russell ru...@rustcorp.com.au wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr)

[PATCH] coredump: Make startup of coredump to pipe killable.

2013-09-16 Thread Tetsuo Handa
Oleg Nesterov wrote: Hi Tetsuo, please do not start the off-list discussions ;) Sorry. Although I think and hope that there is no easy way to trigger this bug, this bug might become a CVE if found one. Thus, I started without ML. I assume you also think that there is no easy way to trigger

Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-09-16 Thread Roger Quadros
Hi, On 09/16/2013 05:52 AM, Kishon Vijay Abraham I wrote: On Thursday 12 September 2013 06:49 PM, Roger Quadros wrote: On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, power_on and power_off the following APIs are

[GIT PULL] UBIFS changes for 3.12-rc1

2013-09-16 Thread Artem Bityutskiy
Hi Linus, very few changes. I'll start using a single UBI/UBIFS tree instead of 2 trees from now on. So in the future you'll get 1 small pull request instead of 2 tiny ones. The following changes since commit d4e4ab86bcba5a72779c43dc1459f71fea3d89c8: Linux 3.11-rc5 (2013-08-11 18:04:20 -0700)

Re: [PATCH v3 4/4] Documentation: add LP3943 DT bindings and document

2013-09-16 Thread Lee Jones
On Sun, 15 Sep 2013, Thierry Reding wrote: On Thu, Sep 12, 2013 at 04:24:55PM +0100, Lee Jones wrote: On Thu, 12 Sep 2013, Milo Kim wrote: [...] diff --git a/Documentation/lp3943.txt b/Documentation/lp3943.txt new file mode 100644 index 000..576ebd0 --- /dev/null +++

[GIT PULL] UBI changes for 3.12-rc1

2013-09-16 Thread Artem Bityutskiy
Hi Linus, very few changes. I'll start using a single UBI/UBIFS tree instead of 2 trees from now on. So in the future you'll get 1 small pull request instead of 2 tiny ones. The following changes since commit b36f4be3de1b123d8601de062e7dbfc904f305fb: Linux 3.11-rc6 (2013-08-18 14:36:53 -0700)

Re: [PATCH 38/38] iio: magn-core: st: Provide support for the LSM303DLH

2013-09-16 Thread Lee Jones
On Sat, 14 Sep 2013, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: Trivial patch adding the LSM303DLH to the list of already supported Magnetometer Sensors. Signed-off-by: Lee Jones lee.jo...@linaro.org err. ? index 12e7e79..b2e2917 100644 ---

Re: [PATCH 3/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-09-16 Thread Roger Quadros
On 09/16/2013 06:01 AM, Kishon Vijay Abraham I wrote: On Thursday 12 September 2013 04:49 PM, Roger Quadros wrote: Hi Kishon, On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: Adapted omap-usb3 PHY driver to Generic PHY Framework and moved phy-omap-usb3 driver in drivers/usb/phy to

[PATCH 0/2] vsprintf: ignore %n again

2013-09-16 Thread Kees Cook
Whether seq_printf should return void or error, %n still needs to be removed. As such, instead of changing the seq_file structure and adding instructions to all callers of seq_printf, just examine seq-count for the callers that care about how many characters were put into the buffer, as suggested

[PATCH 2/2] vsprintf: ignore %n again

2013-09-16 Thread Kees Cook
This ignores %n in printf again, as was originally documented. Implementing %n poses a greater security risk than utility, so it should stay ignored. To help anyone attempting to use %n, a warning will be emitted if it is encountered. Based on earlier patch by Joe Perches. Signed-off-by: Kees

[PATCH 1/2] remove all uses of printf's %n

2013-09-16 Thread Kees Cook
All users of %n are calculating padding size when using seq_file, so instead use the new last_len member for discovering the length of the written strings. Signed-off-by: Kees Cook keesc...@chromium.org --- fs/proc/consoles.c |5 +++-- fs/proc/nommu.c |6 -- fs/proc/task_mmu.c

Re: [PATCH v2 1/4] mm/zswap: bugfix: memory leak when re-swapon

2013-09-16 Thread Weijie Yang
First, I apologize for my delay reply and appreciate the review from you and Bob Liu. On Tue, Sep 10, 2013 at 1:03 AM, Seth Jennings sjenn...@linux.vnet.ibm.com wrote: On Fri, Sep 06, 2013 at 01:16:45PM +0800, Weijie Yang wrote: zswap_tree is not freed when swapoff, and it got re-kmalloc in

Re: [GIT PULL] UBI changes for 3.12-rc1

2013-09-16 Thread Artem Bityutskiy
On Mon, 2013-09-16 at 10:30 +0300, Artem Bityutskiy wrote: Hi Linus, very few changes. I'll start using a single UBI/UBIFS tree instead of 2 trees from now on. So in the future you'll get 1 small pull request instead of 2 tiny ones. Also, I do realize this is very late, apologies for this.

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Stephen Rothwell
Hi Michael, On Mon, 16 Sep 2013 10:26:03 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Mon, Sep 16, 2013 at 04:53:44PM +1000, Stephen Rothwell wrote: On Mon, 16 Sep 2013 13:38:35 +0930 Rusty Russell ru...@rustcorp.com.au wrote: Predates git, does anyone remember the

Re: [PATCH 2/2] gpio / ACPI: add support for GPIO operation regions

2013-09-16 Thread Mika Westerberg
On Mon, Sep 16, 2013 at 01:21:53AM +, Zheng, Lv wrote: A pseudo device may be created to access the GPIO operation region fields provided by one GPIO device. The pseudo device may have other functions to access other GPIO operation region fields provided by other GPIO devices, or

Re: [PATCH 32/38] iio: accel-core: st: Move LSM303DLH into correct group

2013-09-16 Thread Lee Jones
On Sat, 14 Sep 2013, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: The LSM303DLH's WAI (WhoAmI) is 0x33, meaning it should be enabled by Accel Sensor group one. For the device to probe without error, we'll need to ensure it's registered with the correct WAI.

Re: [PATCH 1/2] sched: calculate_imbalance: Fix local-avg_load sds-avg_load case

2013-09-16 Thread Vladimir Davydov
On 09/16/2013 09:52 AM, Peter Zijlstra wrote: On Sun, Sep 15, 2013 at 05:49:13PM +0400, Vladimir Davydov wrote: In busiest-group_imb case we can come to calculate_imbalance() with local-avg_load = busiest-avg_load = sds-avg_load. This can result in imbalance overflow, because it is calculated

Re: [PATCH 2/2] USB : serial : invoke dcd_change ldisc's handler.

2013-09-16 Thread Rodolfo Giometti
On Mon, Sep 16, 2013 at 08:41:00AM +0200, Paul Chavent wrote: The DCD pin of the serial port can receive a PPS signal. By calling the port line discipline dcd handle, this patch allow to monitor PPS through USB serial devices. However the performance aren't as good as the uart drivers, so

Re: [PATCH 1/2] sched: load_balance: Prevent reselect prev dst_cpu if some pinned

2013-09-16 Thread Peter Zijlstra
On Sun, Sep 15, 2013 at 09:30:13PM +0400, Vladimir Davydov wrote: Currently new_dst_cpu is prevented from being reselected actually, not dst_cpu. This can result in attempting to pull tasks to this_cpu twice. Signed-off-by: Vladimir Davydov vdavy...@parallels.com --- kernel/sched/fair.c |

Re: [PATCH 2/3] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-16 Thread Marc Zyngier
On 15/09/13 10:30, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:10:55PM +0200, Andrew Jones wrote: Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64 and other arches using the same name - allowing grep to show them all. Also update the help text to

Re: [PATCH 2/2] sched: load_balance: Reset env when going to redo due to all pinned

2013-09-16 Thread Vladimir Davydov
On 09/16/2013 09:43 AM, Peter Zijlstra wrote: On Sun, Sep 15, 2013 at 09:30:14PM +0400, Vladimir Davydov wrote: Firstly, reset env.dst_cpu/dst_rq to this_cpu/this_rq, because it could have changed in 'some pinned' case. Otherwise, should_we_balance() can stop balancing beforehand. Secondly,

Re: [PATCH 1/2] remove all uses of printf's %n

2013-09-16 Thread Geert Uytterhoeven
On Mon, Sep 16, 2013 at 9:43 AM, Kees Cook keesc...@chromium.org wrote: All users of %n are calculating padding size when using seq_file, so instead use the new last_len member for discovering the length of the written strings. Would it make sense to provide a seq_pad(...) function instead, to

Re: [PATCH 1/2] sched: calculate_imbalance: Fix local-avg_load sds-avg_load case

2013-09-16 Thread Peter Zijlstra
On Mon, Sep 16, 2013 at 12:06:08PM +0400, Vladimir Davydov wrote: On 09/16/2013 09:52 AM, Peter Zijlstra wrote: On Sun, Sep 15, 2013 at 05:49:13PM +0400, Vladimir Davydov wrote: - if (busiest-avg_load sds-avg_load) { + if (busiest-avg_load = sds-avg_load || + local-avg_load =

Re: [PATCH 2/2] sched: load_balance: Reset env when going to redo due to all pinned

2013-09-16 Thread Peter Zijlstra
On Mon, Sep 16, 2013 at 12:08:59PM +0400, Vladimir Davydov wrote: Signed-off-by: Vladimir Davydovvdavy...@parallels.com --- kernel/sched/fair.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index

Re: [PATCH 3/4] Add physical count arch timer support for clocksource in ARMv7.

2013-09-16 Thread Marc Zyngier
Hi Maxime, On 14/09/13 13:05, maxime.rip...@free-electrons.com wrote: Hi Marc, Fan, On Fri, Sep 13, 2013 at 10:30:49AM +0100, Marc Zyngier wrote: On 13/09/13 09:49, cinifr wrote: On 13 September 2013 00:39, Marc Zyngier marc.zyng...@arm.com wrote: I am wondering what is the principle

Re: [PATCH 25/38] iio: pressure-core: st: Allow for number of channels to vary

2013-09-16 Thread Lee Jones
On Sat, 14 Sep 2013, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: At the moment the number of channels specified is dictated by the first sensor supported by the driver. As we add support for more sensors this is likely to vary. Instead of using the ARRAY_SIZE() of the

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Geert Uytterhoeven
On Mon, Sep 16, 2013 at 6:08 AM, Rusty Russell ru...@rustcorp.com.au wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) That's why we have full-history-linux ;-) Unfortunately it doesn't show the rationale, as this

Re: [PATCH 1/1] Drivers: input: serio: New driver to support Hyper-V synthetic keyboard

2013-09-16 Thread Dan Carpenter
The main thing is that could you improve the error handling in hv_kbd_on_channel_callback() explained inline. On Sun, Sep 15, 2013 at 10:28:54PM -0700, K. Y. Srinivasan wrote: Add a new driver to support synthetic keyboard. On the next generation Hyper-V guest firmware, many legacy devices will

Re: [PATCH 21/38] iio: sensors-core: st: Clean-up error handling in st_sensors_read_axis_data()

2013-09-16 Thread Lee Jones
On Sat, 14 Sep 2013, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: Gets rid of those unnecessary gotos. Unfortunately it introduced a bug whilst it is at it. Sometimes those gotos are necessary and the 'right' way to do things. Signed-off-by: Lee Jones

Re: [PATCH] [RFC] x86: kvm: remove KVM_SOFT_MAX_VCPUS

2013-09-16 Thread Andrew Jones
On Sun, Sep 15, 2013 at 12:03:22PM +0300, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:16:51PM +0200, Andrew Jones wrote: This patch removes KVM_SOFT_MAX_VCPUS and uses num_online_cpus() for KVM_CAP_NR_VCPUS instead, as ARM does. While the API doc simply says KVM_CAP_NR_VCPUS should

Re: [PATCH] x86: kvm: introduce CONFIG_KVM_MAX_VCPUS

2013-09-16 Thread Andrew Jones
On Sun, Sep 15, 2013 at 12:08:38PM +0300, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:18:49PM +0200, Andrew Jones wrote: Take CONFIG_KVM_MAX_VCPUS from arm32, but set the default to 255. Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/x86/include/asm/kvm_host.h | 5 +++--

[PATCH] sched: tweak comment for sched_info_depart

2013-09-16 Thread Michael S. Tsirkin
sched_info_depart seems to be only called from sched_info_switch, so only on involuntary task switch. Tweak comment to match. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- kernel/sched/stats.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/sched/stats.h

Re: [PATCH 14/38] iio: accel: st: Append _accel to accelerator sensor device names

2013-09-16 Thread Lars-Peter Clausen
On 09/14/2013 02:27 PM, Jonathan Cameron wrote: On 09/14/13 13:14, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: Some of ST's sensors are appended with their sensor type and some are not. For consistency we're extending the same naming convention throughout. Signed-off-by: Lee

Re: [PATCH 2/3] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-16 Thread Gleb Natapov
On Mon, Sep 16, 2013 at 09:09:27AM +0100, Marc Zyngier wrote: On 15/09/13 10:30, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:10:55PM +0200, Andrew Jones wrote: Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64 and other arches using the same name

[PATCH 6/9] of/irq: Propagate errors in of_irq_to_resource_table()

2013-09-16 Thread Thierry Reding
Now that all helpers return precise error codes, this function can propagate these errors to the caller properly. Signed-off-by: Thierry Reding tred...@nvidia.com --- drivers/of/irq.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/of/irq.c

[PATCH 4/9] of/irq: Introduce of_irq_get()

2013-09-16 Thread Thierry Reding
This is a version of irq_of_parse_and_map() that propagates the precise error code instead of returning 0 for all errors. It will be used in subsequent patches to allow further propagation of error codes. To avoid code duplication, implement irq_of_parse_and_map() as a wrapper around the new

[PATCH 8/9] of/i2c: Resolve interrupt references at probe time

2013-09-16 Thread Thierry Reding
Instead of resolving interrupt references at device creation time, delay resolution until probe time. At device creation time, there is nothing that can be done if an interrupt parent isn't ready yet, and the device will end up with an invalid interrupt number (0). If the interrupt reference is

[PATCH 9/9] gpio: tegra: Use module_platform_driver()

2013-09-16 Thread Thierry Reding
With the driver core now resolving interrupt references at probe time, it is no longer necessary to force explicit probe ordering using initcalls. Signed-off-by: Thierry Reding tred...@nvidia.com --- Note that there are potentially many more drivers that can be switched to the generic

[PATCH 7/9] of/platform: Resolve interrupt references at probe time

2013-09-16 Thread Thierry Reding
Interrupt references are currently resolved very early (when a device is created). This has the disadvantage that it will fail in cases where the interrupt parent hasn't been probed and no IRQ domain for it has been registered yet. To work around that various drivers use explicit initcall ordering

[PATCH 5/9] of/irq: Introduce __of_irq_to_resource()

2013-09-16 Thread Thierry Reding
This is a version of of_irq_to_resource() that propagates the precise error code instead of returning 0 for all errors. It will be used in subsequent patches to allow further propagation of error codes. To avoid code duplication, implement of_irq_to_resource() as a wrapper around the new

[PATCH 1/9] of/irq: Rework of_irq_count()

2013-09-16 Thread Thierry Reding
The of_irq_to_resource() helper that is used to implement of_irq_count() tries to resolve interrupts and in fact creates a mapping for resolved interrupts. That's pretty heavy lifting for something that claims to just return the number of interrupts requested by a given device node. Instead, use

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Michael S. Tsirkin
On Mon, Sep 16, 2013 at 01:38:35PM +0930, Rusty Russell wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) I noticed because gcc failed to elimiate some code in a patch I was playing with. I'm nervous about

[PATCH 2/9] irqdomain: Introduce __irq_create_mapping()

2013-09-16 Thread Thierry Reding
This is a version of irq_create_mapping() that propagates the precise error code instead of returning 0 for all errors. It will be used in subsequent patches to allow further propagation of error codes. To avoid code duplication, implement irq_create_mapping() as a wrapper around the new

[PATCH 0/9] of/irq: Defer interrupt reference resolution

2013-09-16 Thread Thierry Reding
Hi, This small series allows interrupt references from the device tree to be resolved at driver probe time, rather than at device creation time. The current implementation resolves such references while devices are added during the call to of_platform_populate(), which happens very early in the

[PATCH 3/9] irqdomain: Introduce __irq_create_of_mapping()

2013-09-16 Thread Thierry Reding
This is a version of irq_create_of_mapping() that propagates the precise error code instead of returning 0 for all errors. It will be used in subsequent patches to allow further propagation of error codes. To avoid code duplication, implement irq_create_of_mapping() as a wrapper around the new

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Oliver Neukum
On Mon, 2013-09-16 at 13:38 +0930, Rusty Russell wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) I noticed because gcc failed to elimiate some code in a patch I was playing with. I'm nervous about subtle bugs

Re: [PATCH 1/7] usb: dwc3: get usb_phy only if the platform indicates the presence of PHY

2013-09-16 Thread Vivek Gautam
Hi, On Thu, Sep 12, 2013 at 6:41 PM, Roger Quadros rog...@ti.com wrote: On 09/12/2013 02:26 PM, Vivek Gautam wrote: Hi, On Thu, Sep 12, 2013 at 4:34 PM, Roger Quadros rog...@ti.com wrote: Hi, On 09/12/2013 01:47 PM, Vivek Gautam wrote: On Thu, Sep 12, 2013 at 4:06 PM, Roger Quadros

Re: [PATCH v2 1/9] i2c: prepare runtime PM support for I2C client devices

2013-09-16 Thread Mika Westerberg
On Sun, Sep 15, 2013 at 03:48:12PM +0200, Sylwester Nawrocki wrote: On 09/13/2013 05:40 PM, Mika Westerberg wrote: [...] The call to pm_runtime_get_noresume() should make sure that the device is in active state (at least in state where it can access the bus) if I'm understanding this right.

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Michael S. Tsirkin
On Mon, Sep 16, 2013 at 10:40:00AM +0200, Oliver Neukum wrote: On Mon, 2013-09-16 at 13:38 +0930, Rusty Russell wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile unsigned long *addr) I noticed because gcc failed to elimiate some

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Michael S. Tsirkin
On Mon, Sep 16, 2013 at 06:02:31PM +1000, Stephen Rothwell wrote: Hi Michael, On Mon, 16 Sep 2013 10:26:03 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Mon, Sep 16, 2013 at 04:53:44PM +1000, Stephen Rothwell wrote: On Mon, 16 Sep 2013 13:38:35 +0930 Rusty Russell

Re: [PATCH] x86: kvm: introduce CONFIG_KVM_MAX_VCPUS

2013-09-16 Thread Gleb Natapov
On Mon, Sep 16, 2013 at 10:28:20AM +0200, Andrew Jones wrote: On Sun, Sep 15, 2013 at 12:08:38PM +0300, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:18:49PM +0200, Andrew Jones wrote: Take CONFIG_KVM_MAX_VCPUS from arm32, but set the default to 255. Signed-off-by: Andrew Jones

Re: [PATCH 2/3] arm32: kvm: rename CONFIG_KVM_ARM_MAX_VCPUS

2013-09-16 Thread Marc Zyngier
On 16/09/13 09:32, Gleb Natapov wrote: On Mon, Sep 16, 2013 at 09:09:27AM +0100, Marc Zyngier wrote: On 15/09/13 10:30, Gleb Natapov wrote: On Sat, Sep 14, 2013 at 02:10:55PM +0200, Andrew Jones wrote: Drop the _ARM_ part of the name. We can then introduce a config option like this to aarch64

Re: Why does test_bit() take a volatile addr?

2013-09-16 Thread Oliver Neukum
On Mon, 2013-09-16 at 11:44 +0300, Michael S. Tsirkin wrote: On Mon, Sep 16, 2013 at 10:40:00AM +0200, Oliver Neukum wrote: On Mon, 2013-09-16 at 13:38 +0930, Rusty Russell wrote: Predates git, does anyone remember the rationale? ie: int test_bit(int nr, const volatile

[PATCH] kfifo: kfifo_copy_{to,from}_user: Fix copied bytes calculation

2013-09-16 Thread Lars-Peter Clausen
'copied' and 'len' are in bytes, while 'ret' is in elements, so we need to multiply 'ret' with the size of one element to get the correct result. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- lib/kfifo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/kfifo.c

Failed to install linux kernel 3.10.10 and 3.10.12 on Xeon machine

2013-09-16 Thread Rakhi Hemani
Dear All, I need to install a new linux kernel on xeon E5 - 2665 machine. I tried to install linux kernel 3.10.10 and 3.10.12 but the boot fails with the following error.. {1}[Hardware Error]: Hardware error from APEI Generic Hardware error source: 32993 In the configuration file I selected

Re: [PATCH] [RFC] x86: kvm: remove KVM_SOFT_MAX_VCPUS

2013-09-16 Thread Gleb Natapov
On Mon, Sep 16, 2013 at 10:22:09AM +0200, Andrew Jones wrote: [1] Actually, until 972fc544b6034a in uq/master is merged there won't be any warnings either. Signed-off-by: Andrew Jones drjo...@redhat.com --- arch/x86/include/asm/kvm_host.h | 1 - arch/x86/kvm/x86.c

Re: [PATCHv3 linux-next] hrtimer: Add notifier when clock_was_set was called

2013-09-16 Thread Thomas Gleixner
On Mon, 16 Sep 2013, Fan Du wrote: On 2013年09月13日 22:32, Thomas Gleixner wrote: On Fri, 13 Sep 2013, Fan Du wrote: (2) What I have been bugging you around here for this long time is really the second problem, I'm sorry I didn't make it clearly to you and others, which is

From Mrs Monat Adama.

2013-09-16 Thread monat
Dear Friend, Greetings to you and your family. My name is Mrs Monate Adama, the current Chief Auditor of a formidable bank here in Ouagadougou, Burkina Faso, West Africa. I have a transaction worth of 12.5 Million U.S dollars for transferring into your care for our mutual benefits, so  i need

Re: [brcmfmac] BUG: unable to handle kernel paging request at ffffffff82196446

2013-09-16 Thread Arend van Spriel
On 09/02/2013 12:23 PM, Fengguang Wu wrote: Greetings, I got the below dmesg and the first bad commit is Hi Fengguang, I could not reproduce this issue. Could you retest with the attached patch file applied and let me know if that fixes the problem? Regards, Arend commit

Re: [PATCH v2 4/4] mm/zswap: use GFP_NOIO instead of GFP_KERNEL

2013-09-16 Thread Weijie Yang
On Tue, Sep 10, 2013 at 12:47 AM, Seth Jennings sjenn...@linux.vnet.ibm.com wrote: On Fri, Sep 06, 2013 at 01:16:45PM +0800, Weijie Yang wrote: To avoid zswap store and reclaim functions called recursively, use GFP_NOIO instead of GFP_KERNEL Signed-off-by: Weijie Yang weijie.y...@samsung.com

[PATCH 2/4] ARM: perf: wire up perf_regs and unwind support for ARM

2013-09-16 Thread Jean Pihet
From: Will Deacon will.dea...@arm.com This patch hooks in the perf_regs and libunwind code for ARM. Signed-off-by: Will Deacon will.dea...@arm.com Cc: Jean Pihet jean.pi...@linaro.org --- tools/perf/arch/arm/Makefile| 3 ++ tools/perf/arch/arm/include/perf_regs.h | 54

[PATCH 3/4] perf tools: Check libunwind for availability of dwarf parsing feature

2013-09-16 Thread Jean Pihet
The newly added dwarf unwinding feature [1] requires: . a recent version (= 1.1) of libunwind, . libunwind to be configured with --enable-debug-frame. [1] http://www.spinics.net/lists/kernel/msg1598951.html Add the corresponding API test in the feature check list. Signed-off-by: Jean Pihet

[PATCH 4/4] perf: parse the .debug_frame section in case .eh_frame is not present

2013-09-16 Thread Jean Pihet
On ARM the debug info is not present in the .eh_frame sections but in .debug_frame instead, in the dwarf format. Use libunwind to load and parse the debug info. Dependencies: . if present, libunwind = 1.1 is needed to prevent a segfault when parsing the dwarf info, . libunwind needs to be

[PATCH v2 0/4] perf: parse the dwarf backtrace info from .debug_frame section

2013-09-16 Thread Jean Pihet
On ARM the debug info is not present in the .eh_frame sections but in .debug_frame instead, in dwarf format. This patch set uses libunwind to load and parse the dwarf debug info from the .debug_frame section if no .eh_frame_hdr section is found; also it sets the hooks in the perf_regs and

[PATCH 1/4] ARM: perf: add support for perf registers API

2013-09-16 Thread Jean Pihet
From: Will Deacon will.dea...@arm.com This patch implements the functions required for the perf registers API, allowing the perf tool to interface kernel register dumps with libunwind in order to provide userspace backtracing. Signed-off-by: Will Deacon will.dea...@arm.com Cc: Jean Pihet

Re: [PATCH 1/4 v2] mfd: add STw481x driver

2013-09-16 Thread Lee Jones
On Fri, 13 Sep 2013, Linus Walleij wrote: This adds a driver for the STw481x PMICs found in the Nomadik family of platforms. This one uses pure device tree probing. Print some of the OTP registers on boot and register a regulator MFD child. Signed-off-by: Linus Walleij

[BUG] uncore_pmu_event_init: using smp_processor_id() in preemptible core

2013-09-16 Thread Peter Zijlstra
Hi, Trinity just triggered this: [ 595.847438] BUG: using smp_processor_id() in preemptible [] code: trinity-child28/2674 [ 595.857378] caller is uncore_pmu_event_init+0x114/0x270 [ 595.863262] CPU: 11 PID: 2674 Comm: trinity-child28 Tainted: GW 3.11.0+ #365 [

Re: [PATCH 32/38] iio: accel-core: st: Move LSM303DLH into correct group

2013-09-16 Thread Denis CIOCCA
Hi Lee, On 09/10/13 13:49, Lee Jones wrote: The LSM303DLH's WAI (WhoAmI) is 0x33, meaning it should be enabled by Accel Sensor group one. For the device to probe without error, we'll need to ensure it's registered with the correct WAI. Signed-off-by: Lee Jones lee.jo...@linaro.org You

Re: [PATCH 14/38] iio: accel: st: Append _accel to accelerator sensor device names

2013-09-16 Thread Denis CIOCCA
Hi Lars, On 09/14/2013 02:27 PM, Jonathan Cameron wrote: On 09/14/13 13:14, Jonathan Cameron wrote: On 09/10/13 13:49, Lee Jones wrote: Some of ST's sensors are appended with their sensor type and some are not. For consistency we're extending the same naming convention throughout.

Re: [PATCH 1/4] ipc,shm: fix race with selinux

2013-09-16 Thread Manfred Spraul
On 09/16/2013 05:04 AM, Davidlohr Bueso wrote: Currently, we check shm security only under RCU. Since selinux can free the security structure, through selinux_sem_free_security(), we can run into a use-after-free condition. This bug affects both shmctl and shmat syscalls. The fix is obvious,

BLK_TN_PROCESS events not delivered for all devices

2013-09-16 Thread Jan Kara
Hi, I've been looking into a problem where BLK_TN_PROCESS events are not delivered to all devices which are being traced. This results in process name being (null) when trace for a single device is parsed. The reason for this problem is that trace_note_tsk() is called only if tsk-btrace_seq

Re: [PATCH 38/38] iio: magn-core: st: Provide support for the LSM303DLH

2013-09-16 Thread Denis CIOCCA
Hi Lee, index 12e7e79..b2e2917 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -151,7 +151,8 @@ static const struct st_sensors st_magn_sensors[] = { .wai = ST_MAGN_1_WAI_EXP, .sensors_supported = {

Re: trinity finds ftrace/perf bug. Film at 11.

2013-09-16 Thread Peter Zijlstra
On Fri, Sep 13, 2013 at 10:16:38AM -0400, Dave Jones wrote: without the diff, it'll use all kinds of fds. this diff hardwires it to just use fd's from perf_event_open. I'll hack up a command line switch to do this in a better way at some point. Dave diff --git a/fds.c b/fds.c

Re: [PATCH 32/38] iio: accel-core: st: Move LSM303DLH into correct group

2013-09-16 Thread Lee Jones
On Mon, 16 Sep 2013, Denis CIOCCA wrote: Hi Lee, On 09/10/13 13:49, Lee Jones wrote: The LSM303DLH's WAI (WhoAmI) is 0x33, meaning it should be enabled by Accel Sensor group one. For the device to probe without error, we'll need to ensure it's registered with the correct WAI.

[RFC, PATCH] clocksource: provide timekeeping for efm32 SoCs

2013-09-16 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Hello, I'm not sure that the way I implemented if a given timer is used as clock_source or clock_event_device is robust. Does it need locking? The reason to create a timer device for each timer instead of a single device of all of

Re: [PATCH 27/38] iio: pressure-core: st: Give some indication if device probing was successful

2013-09-16 Thread Lee Jones
echo working: cat /sys/bus/iio/devices/*/name isn't too much digging. If you really want to do that on your machine - do so in rc.local Okay, I was going round the long way, which is why is was difficult: /sys/class/i2c-adapter/i2c-2/2-005c/iio\:device2/name I will revert the

Re: [brcmfmac] BUG: unable to handle kernel paging request at ffffffff82196446

2013-09-16 Thread Fengguang Wu
On Mon, Sep 16, 2013 at 11:15:53AM +0200, Arend van Spriel wrote: On 09/02/2013 12:23 PM, Fengguang Wu wrote: Greetings, I got the below dmesg and the first bad commit is Hi Fengguang, I could not reproduce this issue. Could you retest with the attached patch file applied and let me

Re: [PATCH 3/3] video: xilinxfb: Simplify error path

2013-09-16 Thread Tomi Valkeinen
On 12/09/13 08:54, Michal Simek wrote: @@ -394,16 +382,12 @@ static int xilinxfb_release(struct device *dev) /* Turn off the display */ xilinx_fb_out32(drvdata, REG_CTRL, 0); - /* Release the resources, as allocated based on interface */ - if (drvdata-flags

Re: [PATCH 32/38] iio: accel-core: st: Move LSM303DLH into correct group

2013-09-16 Thread Denis CIOCCA
Hi Lee, That's what the datasheet for the board says. Perhaps it's that that's incorrect? Annoyingly, instead of printing the device name on the package, ST put some non-Googleable nonsense is there instead (probably the serial number). Nevertheless, I'll revert the patch and work

[GIT pull] timers core for 3.12

2013-09-16 Thread Thomas Gleixner
Linus, please pull the latest timers/core git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/core * armada SoC clocksource overhaul with a trivial merge conflict * Minor improvements to various SoC clocksource drivers Thanks, tglx --

Re: [PATCH 38/38] iio: magn-core: st: Provide support for the LSM303DLH

2013-09-16 Thread Lee Jones
On Mon, 16 Sep 2013, Denis CIOCCA wrote: Hi Lee, index 12e7e79..b2e2917 100644 --- a/drivers/iio/magnetometer/st_magn_core.c +++ b/drivers/iio/magnetometer/st_magn_core.c @@ -151,7 +151,8 @@ static const struct st_sensors st_magn_sensors[] = { .wai = ST_MAGN_1_WAI_EXP,

  1   2   3   4   5   6   7   8   9   10   >