[git pull] Input updates for 3.12-rc0

2013-09-14 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. The only change is David Hermann's new EVIOCREVOKE evdev ioctl

Re: [PATCH 211/228] cpufreq: tegra: remove calls to cpufreq_notify_transition()

2013-09-14 Thread Rafael J. Wysocki
On Saturday, September 14, 2013 09:39:31 AM Viresh Kumar wrote: > On 14 September 2013 04:22, Stephen Warren wrote: > > I wonder if this series is bisectable? Perhaps I should just go and read > > the rest of the series, but I presume there's a patch somewhere else > > that adds those two

[PATCH] modpost: Fix secondary errors seen if a single module build fails

2013-09-14 Thread Guenter Roeck
Commit ea4054a23 (modpost: handle huge numbers of modules) added support for building a large number of modules. Unfortunately, the commit changed the semantics of the makefile: Instead of passing only existing object files to modpost, make now passes all expected object files. If make was

Re: [PATCH net 2/3] lib: introduce upper case hex ascii helpers

2013-09-14 Thread Andrew Morton
On Sun, 15 Sep 2013 01:27:03 -0300 Thiago Farina wrote: > On Fri, Sep 13, 2013 at 2:37 PM, Andre Naujoks wrote: > > To be able to use the hex ascii functions in case sensitive environments > > the array hex_asc_upper[] and the needed functions for hex_byte_pack_upper() > > are introduced. > > >

Re: [PATCH net 2/3] lib: introduce upper case hex ascii helpers

2013-09-14 Thread Thiago Farina
On Fri, Sep 13, 2013 at 2:37 PM, Andre Naujoks wrote: > To be able to use the hex ascii functions in case sensitive environments > the array hex_asc_upper[] and the needed functions for hex_byte_pack_upper() > are introduced. > > Signed-off-by: Andre Naujoks > --- > include/linux/kernel.h | 11

Re: [RFC PATCH] mm: numa: adjust hinting fault record if page is migrated

2013-09-14 Thread Hillf Danton
Hello Rik On Sat, Sep 14, 2013 at 11:55 PM, Rik van Riel wrote: > On 09/14/2013 07:53 AM, Hillf Danton wrote: >> After page A on source node is migrated to page B on target node, hinting >> fault is recorded on the target node for B. On the source node there is >> another record for A, since a

[PATCH V4 03/15] asymmetric keys: separate the length checking of octet string from RSA_I2OSP

2013-09-14 Thread Lee, Chun-Yi
Due to RSA_I2OSP is not only used by signature verification path but also used in signature generation path. So, separate the length checking of octet string because it's not for generate 0x00 0x01 leading string when used in signature generation. The naming of _RSA_I2OSP and the variables used

[PATCH V4 01/15] asymmetric keys: add interface and skeleton for implement signature generation

2013-09-14 Thread Lee, Chun-Yi
Add generate_signature interface on signature.c, asymmetric-subtype and rsa.c for prepare to implement signature generation. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- crypto/asymmetric_keys/private_key.h | 29 + crypto/asymmetric_keys/public_key.c

[PATCH V4 12/15] Hibernate: show the verification time for monitor performance

2013-09-14 Thread Lee, Chun-Yi
Show the verification time for monitor the performance of SHA256 and RSA verification. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- kernel/power/snapshot.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kernel/power/snapshot.c

[PATCH 10/15] Hibernate: Avoid S4 sign key data included in snapshot image

2013-09-14 Thread Lee, Chun-Yi
This patch add swsusp_page_is_sign_key() method to hibernate_key.c and check the page is S4 sign key data when collect saveable page in snapshot.c to avoid sign key data included in snapshot image. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- kernel/power/snapshot.c |6 ++

[PATCH V4 15/15] Hibernate: adapt to UEFI secure boot with signature check

2013-09-14 Thread Lee, Chun-Yi
Base on Matthew Garrett's 2 patches in "[PATCH] Add additional security checks when module loading is restricted" series [PATCH 01/10] Add secure_modules() call [PATCH V3 11/11] Add option to automatically enforce module signatures when in Secure Boot mode This patch introduced

[PATCH V4 11/15] Hibernate: taint kernel when signature check fail

2013-09-14 Thread Lee, Chun-Yi
We will not direct fail the hibernate snapshot restore when the signature check fail, instead kernel will complain by warning message and taint kernel. This patch also introduced a sig_enforce flag to indicate if we want direct fail the snapshot restore when signature check fail. User can enable

[PATCH V4 14/15] Hibernate: notify bootloader regenerate key-pair for snapshot verification

2013-09-14 Thread Lee, Chun-Yi
This patch introduced SNAPSHOT_REGEN_KEYS kernel config, enable this option let kernel notify booloader (e.g. shim) to regenerate key-pair of snapshot verification for each hibernate. Kernel loaded S4 sign key in efi stub, so the private key forward from efi bootloader to kernel in UEFI secure

[PATCH V4 13/15] Hibernate: introduced SNAPSHOT_SIG_HASH config for select hash algorithm

2013-09-14 Thread Lee, Chun-Yi
This patch introduced SNAPSHOT_SIG_HASH config for user to select which hash algorithm will be used during signature generation of snapshot. v2: Add define check of oCONFIG_SNAPSHOT_VERIFICATION in snapshot.c before declare pkey_hash(). Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi ---

[PATCH V4 09/15] Hibernate: generate and verify signature of snapshot

2013-09-14 Thread Lee, Chun-Yi
This patch add the code for generate/verify signature of snapshot, it put the signature to snapshot header. This approach can support both on userspace hibernate and in-kernel hibernate. v3: - Change the naming of SIG_LENG to SIG_LEN - Extracts the code of signature generation code from

[PATCH V4 08/15] Hibernate: introduced RSA key-pair to verify signature of snapshot

2013-09-14 Thread Lee, Chun-Yi
Introduced a hibernate_key.c file to query the key pair from EFI variables and maintain key pair for check signature of S4 snapshot image. We loaded the private key when snapshot image stored success. This patch introduced 2 EFI variables for store the key to sign S4 image and verify signature

[PATCH V4 04/15] asymmetric keys: implement OS2IP in rsa

2013-09-14 Thread Lee, Chun-Yi
Implement Octet String to Integer conversion [RFC3447 sec 4.2] in rsa.c. It's the second step of signature generation operation. This patch is temporary set non-RSASP1 message to pks->S for debugging. The naming of RSA_OS2IP and the variables used in this function accord PKCS#1 spec but not

[PATCH V4 05/15] asymmetric keys: implement RSASP1

2013-09-14 Thread Lee, Chun-Yi
Implement RSASP1 and fill-in the following data to public key signature structure: signature length (pkcs->k), signature octet strings (pks->S) and MPI of signature (pks->rsa.s). The naming of RSASP1 and the variables used in this function accord PKCS#1 spec but not follow kernel naming

[PATCH V4 06/15] asymmetric keys: support parsing PKCS #8 private key information

2013-09-14 Thread Lee, Chun-Yi
Add ASN.1 files and parser to support parsing PKCS #8 noncompressed private key information. It's better than direct parsing pure private key because PKCS #8 has a privateKeyAlgorithm to indicate the algorithm of private key, e.g. RSA from PKCS #1 v2: - Removed bitfield declare of privkey_algo in

[PATCH V4 02/15] asymmetric keys: implement EMSA_PKCS1-v1_5-ENCODE in rsa

2013-09-14 Thread Lee, Chun-Yi
Implement EMSA_PKCS1-v1_5-ENCODE [RFC3447 sec 9.2] in rsa.c. It's the first step of signature generation operation (RSASSA-PKCS1-v1_5-SIGN). This patch is temporary set emLen to pks->k, and temporary set EM to pks->S for debugging. We will replace the above values to real signature after

[PATCH V4 07/15] asymmetric keys: explicitly add the leading zero byte to encoded message

2013-09-14 Thread Lee, Chun-Yi
Per PKCS1 spec, the EMSA-PKCS1-v1_5 encoded message is leading by 0x00 0x01 in its first 2 bytes. The leading zero byte is suppressed by MPI so we pass a pointer to the _preceding_ byte to RSA_verify() in original code, but it has risk for the byte is not zero because it's not in EM buffer's

[RFC V4 PATCH 00/15] Signature verification of hibernate snapshot

2013-09-14 Thread Lee, Chun-Yi
Hi experts, This patchset is the implementation for signature verification of hibernate snapshot image. The origin idea is from Jiri Kosina: Let EFI bootloader generate key-pair in UEFI secure boot environment, then pass it to kernel for sign/verify S4 image. Due to there have potential threat

Re: [RESEND PATCH v2 3/4] mm/hwpoison: fix false report 2nd try page recovery

2013-09-14 Thread Andi Kleen
> Reviewed-by: Naoya Horiguchi > Signed-off-by: Wanpeng Li Acked-by: Andi Kleen -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RESEND PATCH v2 4/4] mm/hwpoison: fix the lack of one reference count against poisoned page

2013-09-14 Thread Andi Kleen
> Reviewed-by: Naoya Horiguchi > Signed-off-by: Wanpeng Li Acked-by: Andi Kleen -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RESEND PATCH v2 2/4] mm/hwpoison: fix miss catch transparent huge page

2013-09-14 Thread Andi Kleen
> Reviewed-by: Naoya Horiguchi > Signed-off-by: Wanpeng Li Acked-by: Andi Kleen -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [RESEND PATCH v2 1/4] mm/hwpoison: fix traverse hugetlbfs page to avoid printk flood

2013-09-14 Thread Andi Kleen
> Reviewed-by: Naoya Horiguchi > Signed-off-by: Wanpeng Li Acked-by: Andi Kleen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the

Re: [PATCH] argv_split: Return NULL if argument contains nonon-whitespace.

2013-09-14 Thread Tetsuo Handa
Oleg Nesterov wrote: > > upon core dump because helper_argv[0] == NULL at > > > > helper_argv = argv_split(GFP_KERNEL, cn.corename, NULL); > > call_usermodehelper_setup(helper_argv[0], ...); > > Are you sure? See above. > Yes, I'm sure. execve(NULL) from user space is safe, but

[RESEND PATCH v2 2/4] mm/hwpoison: fix miss catch transparent huge page

2013-09-14 Thread Wanpeng Li
Changelog: *v1 -> v2: reverse PageTransHuge(page) && !PageHuge(page) check PageTransHuge() can't guarantee the page is transparent huge page since it return true for both transparent huge and hugetlbfs pages. This patch fix it by check the page is also !hugetlbfs page. Before patch: [

[RESEND PATCH v2 3/4] mm/hwpoison: fix false report 2nd try page recovery

2013-09-14 Thread Wanpeng Li
If the page is poisoned by software inject w/ MF_COUNT_INCREASED flag, there is a false report 2nd try page recovery which is not truth, this patch fix it by report first try free buddy page recovery if MF_COUNT_INCREASED is set. Before patch: [ 346.332041] Injecting memory failure at pfn

[RESEND PATCH v2 4/4] mm/hwpoison: fix the lack of one reference count against poisoned page

2013-09-14 Thread Wanpeng Li
The lack of one reference count against poisoned page for hwpoison_inject w/o hwpoison_filter enabled result in hwpoison detect -1 users still referenced the page, however, the number should be 0 except the poison handler held one after successfully unmap. This patch fix it by hold one

[RESEND PATCH v2 1/4] mm/hwpoison: fix traverse hugetlbfs page to avoid printk flood

2013-09-14 Thread Wanpeng Li
madvise_hwpoison won't check if the page is small page or huge page and traverse in small page granularity against the range unconditional, which result in a printk flood "MCE xxx: already hardware poisoned" if the page is huge page. This patch fix it by increase

[RESEND PATCH v5 4/4] mm/vmalloc: fix show vmap_area information race with vmap_area tear down

2013-09-14 Thread Wanpeng Li
Changelog: *v4 -> v5: return directly for !VM_VM_AREA case and remove (VM_LAZY_FREE | VM_LAZY_FREEING) check There is a race window between vmap_area tear down and show vmap_area information. AB remove_vm_area spin_lock(_area_lock);

[RESEND PATCH v5 1/4] mm/vmalloc: don't set area->caller twice

2013-09-14 Thread Wanpeng Li
Changelog: *v1 -> v2: rebase against mmotm tree The caller address has already been set in set_vmalloc_vm(), there's no need to set it again in __vmalloc_area_node. Reviewed-by: Zhang Yanfei Signed-off-by: Wanpeng Li --- mm/vmalloc.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH] kthread: Make kthread_create() killable.

2013-09-14 Thread Tetsuo Handa
Oleg Nesterov wrote: > I am wondering if this can be simplified... > > At least you can move create->done from kthread_create_info to the > stack, and turn create->owner into the pointer to that completion. Use of DECLARE_COMPLETION_ONSTACK() looks harmful to me because current thread needs to

[RESEND PATCH v5 2/4] mm/vmalloc: revert "mm/vmalloc.c: emit the failure message before return"

2013-09-14 Thread Wanpeng Li
Changelog: *v2 -> v3: revert commit 46c001a2 directly Don't warning twice in __vmalloc_area_node and __vmalloc_node_range if __vmalloc_area_node allocation failure. This patch revert commit 46c001a2 (mm/vmalloc.c: emit the failure message before return). Reviewed-by: Zhang Yanfei

[RESEND PATCH v5 3/4] mm/vmalloc: revert "mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info"

2013-09-14 Thread Wanpeng Li
Changelog: *v2 -> v3: revert commit d157a558 directly The VM_UNINITIALIZED/VM_UNLIST flag introduced by commit f5252e00(mm: avoid null pointer access in vm_struct via /proc/vmallocinfo) is used to avoid accessing the pages field with unallocated page when show_numa_info() is called. This patch

Re: scripts/config: fix variable substitution command

2013-09-14 Thread Yann E. MORIN
Sedat, All, On 2013-09-14 16:43 +0200, Sedat Dilek spake thusly: > On Sat, Sep 14, 2013 at 4:21 PM, Clément Chauplannaz > wrote: > > 2013/9/14 Sedat Dilek : [--SNIP--] > >> So, can you point me/us to the correct commit with subject, please?! > > > > My apologies for that mistake. The initial

Re: scripts/config: fix variable substitution command

2013-09-14 Thread Yann E. MORIN
Sedat, All, On 2013-09-14 14:21 +0200, Sedat Dilek spake thusly: > The ChangeLog from [1] says: > > Commit 229455bc02b87f7128f190c4491b4ce38648 accidentally changed > the separator between sed `s' command and its parameters from ':' to > '/'. > Revert this change. [--SNIP--] > Is this patch

Re: [PATCH 136/228] cpufreq: loongson2: use cpufreq_generic_init() routine

2013-09-14 Thread Aaro Koskinen
On Fri, Sep 13, 2013 at 06:31:22PM +0530, Viresh Kumar wrote: > Use generic cpufreq_generic_init() routine instead of replicating the same > code > here. This driver wasn't setting transition_latency and so is getting set to 0 > by default. Lets mark it explicitly by calling the generic routine

[PATCH 2/2] ipc/sem.c: optimize sem_lock().

2013-09-14 Thread Manfred Spraul
Operations that need access to the whole array must guarantee that there are no simple operations ongoing. Right now this is achieved by spin_unlock_wait(sem->lock) on all semaphores. If complex_count is nonzero, then this spin_unlock_wait() is not necessary, because it was already performed in

[PATCH 1/2] ipc/sem.c: Race in sem_lock()

2013-09-14 Thread Manfred Spraul
The exclusion of complex operations in sem_lock() is insufficient: After acquiring the per-semaphore lock, a simple op must first check that sem_perm.lock is not locked and only after that test check complex_count. The current code does it the other way around - and that creates a race. Details

Re: [Linaro-mm-sig] [RFC 0/1] drm/pl111: Initial drm/kms driver for pl111

2013-09-14 Thread Daniel Stone
Hi, On Tue, 2013-08-06 at 12:31 +0100, Tom Cooksey wrote: > > >> On Fri, Jul 26, 2013 at 11:58 AM, Tom Cooksey > > >> wrote: > > that was part of the reason to punt this problem to userspace ;-) > > > > In practice, the kernel drivers doesn't usually know too much about > > the

Re: [PATCH v3] dma: add driver for R-Car HPB-DMAC

2013-09-14 Thread Guennadi Liakhovetski
Hi Sergei On Sat, 14 Sep 2013, Sergei Shtylyov wrote: > Hello. > > On 09/14/2013 10:33 PM, Guennadi Liakhovetski wrote: > > > > From: Max Filippov > > > > Add support for HPB-DMAC found in Renesas R-Car SoCs, using 'shdma-base' > > > DMA > > > driver framework. > > > > Based on the original

Re: [PATCH 0/4] perf tools: New comm infrastructure

2013-09-14 Thread David Ahern
On 9/13/13 5:43 AM, Frederic Weisbecker wrote: The only way would be perhaps to be able to limit the deepness of the callchain branches. I was thinking about such a feature two days ago. Max callchain depth is set to 255 at compile time which can generate huge event sizes. perf needs to

[RFC PATCH] ES938 support for ES18xx driver

2013-09-14 Thread Ondrej Zary
Hello, this is an attempt to support ES938 3-D Audio Effects Processor found on some ES18xx (and possibly other) sound cards, doing bass/treble and 3D control. ES938 is controlled by MIDI SysEx commands sent through card's MPU401 port. The following patch works but has a problem: the midi port

[PATCH 1/1] isdn: hfcpci_softirq: get func return to suppress compiler warning

2013-09-14 Thread Antonio Alecrim Jr
Signed-off-by: Antonio Alecrim Jr --- drivers/isdn/hardware/mISDN/hfcpci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c index 7f910c7..3c92780 100644 --- a/drivers/isdn/hardware/mISDN/hfcpci.c

[PATCH 5/7] clocksource: add latch to clocksource

2013-09-14 Thread Mathieu Desnoyers
Add latch for data used by clock read operations. This is in preparation for the clock latch synchronization scheme. "cycle_last" rely on timekeeper seqlock synchronization, and will therefore need to be latched. Add: - cycle_last_latch (array of 2 elements), - read_latch(), - update_latch().

[PATCH 1/7] Move ntp variables into struct timekeeper_ntp

2013-09-14 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Cc: John Stultz Cc: Thomas Gleixner Cc: Peter Zijlstra --- include/linux/timekeeper_internal.h | 47 ++ kernel/time/ntp.c | 318 +++ 2 files changed, 187 insertions(+), 178 deletions(-) diff --git

[PATCH 6/7] x86 tsc clock: implement clock latch

2013-09-14 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Cc: John Stultz Cc: Thomas Gleixner Cc: Peter Zijlstra --- arch/x86/kernel/tsc.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 6ff4924..c75e9f9 100644 ---

[PATCH 3/7] Move ntp structure into struct timekeeper

2013-09-14 Thread Mathieu Desnoyers
This is in preparation for the latch synchronization scheme. Signed-off-by: Mathieu Desnoyers Cc: John Stultz Cc: Thomas Gleixner Cc: Peter Zijlstra --- include/linux/timekeeper_internal.h |4 + kernel/time/ntp.c | 361 +--

[PATCH 2/7] Move PPS variables into struct timekeeper_pps

2013-09-14 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers Cc: John Stultz Cc: Thomas Gleixner Cc: Peter Zijlstra --- include/linux/timekeeper_internal.h | 31 kernel/time/ntp.c | 134 +++ 2 files changed, 87 insertions(+), 78 deletions(-) diff --git

[PATCH 4/7] Pass struct timekeeper_ntp as parameter from timekeeper to ntp

2013-09-14 Thread Mathieu Desnoyers
This is in preparation for the latch synchronization scheme. Signed-off-by: Mathieu Desnoyers Cc: John Stultz Cc: Thomas Gleixner Cc: Peter Zijlstra --- kernel/time/ntp.c | 472 ++-- kernel/time/ntp_internal.h | 16 +-

[PATCH 7/7] Introduce timekeeper latch synchronization

2013-09-14 Thread Mathieu Desnoyers
Unlike the sequence lock, this latch synchronization scheme, proposed by Peter Zijlstra, always keeps a readable copy of the data. Therefore, readers will never deadlock if they nest on the writer, whether this happens because the read-side is explicitly called within the write-side critical

[RFC PATCH v2] timekeeper latch synchronization

2013-09-14 Thread Mathieu Desnoyers
Hi, Here is my timekeeper latch synchronization series update, still as RFC. It now passes the timetests provided by John Stultz (https://github.com/johnstultz-work/timetests.git). See the changelog of "Introduce timekeeper latch synchronization" to get a clear picture of all the goodness

Re: [PATCH] ptp: measure the time offset between PHC and system clock

2013-09-14 Thread Sergei Shtylyov
Hello. On 09/14/2013 12:03 PM, Dong Zhu wrote: This patch add a method into testptp.c to measure the time offset between phc and system clock through the ioctl PTP_SYS_OFFSET. Signed-off-by: Dong Zhu --- Documentation/ptp/testptp.c | 40 ++-- 1 file

Re: [PATCH v2 0/9] Introduce hwmon_device_register_with_groups and

2013-09-14 Thread Guenter Roeck
On 09/14/2013 11:31 AM, Jean Delvare wrote: Hi Guenter, On Mon, 02 Sep 2013 12:25:35 -0700, Guenter Roeck wrote: On 08/31/2013 07:48 PM, Guenter Roeck wrote: This patch series introduces new hwmon API functions hwmon_device_register_with_groups() and devm_hwmon_device_register_with_groups().

Re: [PATCH v3] dma: add driver for R-Car HPB-DMAC

2013-09-14 Thread Sergei Shtylyov
Hello. On 09/14/2013 10:33 PM, Guennadi Liakhovetski wrote: From: Max Filippov Add support for HPB-DMAC found in Renesas R-Car SoCs, using 'shdma-base' DMA driver framework. Based on the original patch by Phil Edworthy . Signed-off-by: Max Filippov [Sergei: removed useless #include,

Re: [PATCH] sched: Fix task_h_load calculation

2013-09-14 Thread Paul Turner
On Sat, Sep 14, 2013 at 8:39 AM, Vladimir Davydov wrote: > Patch a003a2 (sched: Consider runnable load average in move_tasks()) > sets all top-level cfs_rqs' h_load to rq->avg.load_avg_contrib, which is > always 0. This mistype leads to all tasks having weight 0 when load > balancing in a

Re: [PATCH] rcu: Fix CONFIG_RCU_NOCB_CPU_ALL panic on machines with sparse CPU mask

2013-09-14 Thread Paul E. McKenney
On Sat, Sep 14, 2013 at 05:03:20PM +0400, Kirill Tkhai wrote: > When a system has a sparse cpumask and CONFIG_RCU_NOCB_CPU_ALL is enabled, > rcu_spawn_nocb_kthreads() creates nocb threads for nonexistent CPUS. > > The problem is in rcu_bootup_announce_oddness(). cpumask_setall() sets all > bits

Re: 3.10.5: rcu_sched detected stalls on CPUs/tasks

2013-09-14 Thread Paul E. McKenney
On Sat, Sep 14, 2013 at 01:28:34PM +0200, Jochen Striepe wrote: > Hello again, > > On Mon, Sep 09, 2013 at 03:27:51PM -0700, Paul E. McKenney wrote: > > Several people helped track down another source of spurious stall > > warnings on large systems, please see below for the patch. > [...] >

Re: [PATCH v3] dma: add driver for R-Car HPB-DMAC

2013-09-14 Thread Guennadi Liakhovetski
On Sun, 25 Aug 2013, Sergei Shtylyov wrote: > From: Max Filippov > > Add support for HPB-DMAC found in Renesas R-Car SoCs, using 'shdma-base' DMA > driver framework. > > Based on the original patch by Phil Edworthy . > > Signed-off-by: Max Filippov > [Sergei: removed useless #include,

Re: [PATCHv2 00/25] perf tool: Add support for multiple data file storage

2013-09-14 Thread David Ahern
On 9/9/13 9:03 AM, David Ahern wrote: I have a flight recorder style command that address this problem (long-running/daemons) by processing task events and then stashing the sample events on a time-ordered list with chopping to maintain the time window. so far I noticed there could be race

Re: [PATCH v2 0/9] Introduce hwmon_device_register_with_groups and

2013-09-14 Thread Jean Delvare
Hi Guenter, On Mon, 02 Sep 2013 12:25:35 -0700, Guenter Roeck wrote: > On 08/31/2013 07:48 PM, Guenter Roeck wrote: > > This patch series introduces new hwmon API functions > > hwmon_device_register_with_groups() and > > devm_hwmon_device_register_with_groups(). > > > >

Re: audit looks unmaintained? [was: Re: [PATCH 11/12] pid: rewrite task helper functions avoiding task->pid and task->tgid]

2013-09-14 Thread Oleg Nesterov
On 09/13, Steve Grubb wrote: > > On Tuesday, September 10, 2013 07:20:33 PM Oleg Nesterov wrote: > > > > So, Steve, do you still think that patch was wrong? Attached below > > just in case. > > I think this looks OK. If the task filter NACK's auditing the process, then > clearing the flag is

Re: audit looks unmaintained? [was: Re: [PATCH 11/12] pid: rewrite task helper functions avoiding task->pid and task->tgid]

2013-09-14 Thread Oleg Nesterov
On 09/13, Steve Grubb wrote: > > On Sunday, September 08, 2013 05:54:35 PM Oleg Nesterov wrote: > > > > Then why audit_alloc() doesn't set TIF_SYSCALL_AUDIT unconditionally? > > The code I'm looking at does right at the end of the function. The code I'm looking at does right at the end too ;) but

Re: [RFC PATCH 3/4] pinctrl: at91: improve pinconf_set/get function robustness

2013-09-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:49 Fri 13 Sep , Boris BREZILLON wrote: > Reset caller's config variable before setting current config flags to avoid > erronous config return. > > DEBOUNCE and DEGLITCH options are mutually exclusive. Return an error if they > are both defined in the config. > Do not call set_deglitch

Re: [PATCH] perf session: Add option to copy events when queueing

2013-09-14 Thread David Ahern
On 9/14/13 10:16 AM, Frederic Weisbecker wrote: @@ -676,7 +682,12 @@ int perf_session_queue_event(struct perf_session *s, union perf_event *event, new->timestamp = timestamp; new->file_offset = file_offset; - new->event = event; + + if (s->copy_on_queue) { +

Re: [RFC PATCH 2/4] pinctrl: at91: fix sam9x5 debounce/deglitch functions

2013-09-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:47 Fri 13 Sep , Boris BREZILLON wrote: > Replace at91_mux_get_deglitch with at91_mux_pio3_get_deglitch when using > sam9x5 (pio3) IP. > at91_mux_get_deglitch only test the activation of the "Input Filter" which > may be overloaded by the activation of the "Input Filter Slow Clock" to use

[PATCH 00/11] Convert more drivers to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
The jc42 driver is compile tested only. All other patches were tested with real hardware. The patches apply on top of the previously submitted patches introducing hwmon_device_register_with_groups and devm_hwmon_device_register_with_groups. -- To unsubscribe from this list: send the line

[PATCH 02/11] hwmon: (max6642) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also rename new_client variable to client and introduce new variable dev pointing to client->dev in the probe function, and use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/max6642.c | 72 ---

[PATCH 04/11] hwmon: (max6697) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/max6697.c | 54 +++ 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/drivers/hwmon/max6697.c b/drivers/hwmon/max6697.c index a41b5f3..0af910a 100644 --- a/drivers/hwmon/max6697.c +++

[PATCH 06/11] hwmon: (ina2xx) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also introduce dev variable in probe function to simplify access to client->dev, and use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/ina2xx.c | 64 1 file changed, 21 insertions(+), 43

[PATCH 05/11] hwmon: (max16065) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Modify code to use is_visible to determine if an attribute should be created or not, then use devm_hwmon_device_register_with_groups to create the hwmon device and all attributes in one operation. Signed-off-by: Guenter Roeck --- drivers/hwmon/max16065.c | 124

[PATCH 03/11] hwmon: (lm73) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also introduce new variable dev pointing to client->dev in the probe function, and use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/lm73.c | 70 -- 1 file changed, 22 insertions(+), 48

[PATCH 08/11] hwmon: (lm95234) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/lm95234.c | 137 +-- 1 file changed, 50 insertions(+), 87 deletions(-) diff --git a/drivers/hwmon/lm95234.c b/drivers/hwmon/lm95234.c

[PATCH 10/11] hwmon: (ltc4261) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/ltc4261.c | 55 ++- 1 file changed, 16 insertions(+), 39 deletions(-) diff --git a/drivers/hwmon/ltc4261.c b/drivers/hwmon/ltc4261.c

[PATCH v3 01/11] hwmon: (ds1621) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also use new macro __ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- v3: Use __ATTRIBUTE_GROUPS drivers/hwmon/ds1621.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c

[PATCH 11/11] hwmon: (jc42) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/jc42.c | 61 +- 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/drivers/hwmon/jc42.c b/drivers/hwmon/jc42.c index 4a58f13..f362cea 100644 --- a/drivers/hwmon/jc42.c +++

[PATCH 09/11] hwmon: (ina209) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Also use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck --- drivers/hwmon/ina209.c | 46 ++ 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/drivers/hwmon/ina209.c b/drivers/hwmon/ina209.c index

[PATCH 07/11] hwmon: (tmp401) Convert to use devm_hwmon_device_register_with_groups

2013-09-14 Thread Guenter Roeck
Signed-off-by: Guenter Roeck --- drivers/hwmon/tmp401.c | 89 +++- 1 file changed, 28 insertions(+), 61 deletions(-) diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index dfe6d95..49bd122 100644 --- a/drivers/hwmon/tmp401.c +++

Re: [RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:40 Fri 13 Sep , Stephen Warren wrote: > On 09/13/2013 01:53 AM, Boris BREZILLON wrote: > > AT91 SoCs do not support per pin debounce time configuration. > > Instead you have to configure a debounce time which will be used for all > > pins of a given bank (PIOA, PIOB, ...). > > > diff

Re: access efi variables

2013-09-14 Thread Arend van Spriel
On 09/14/13 00:37, H. Peter Anvin wrote: On 09/13/2013 08:37 AM, Arend van Spriel wrote: I need to obtain a uefi variable so I went looking at the API in include/linux/efi.h. I found the following definition: But according to the specs the variable I need to obtain is 2k bytes. Should I expect

Re: [Patch v5 0/9] liblockdep: userspace lockdep

2013-09-14 Thread Sasha Levin
On 09/12/2013 02:01 PM, Ingo Molnar wrote: On 07/08/2013 04:39 AM, Ingo Molnar wrote: PeterZ is in favor as well so I'll apply them after the merge window, for v3.12. Hi Ingo, Do you intend to send liblockdep in this merge window as planned? If Peter agrees with them and picks them up then

Re: [RFC PATCH 1/4] pinctrl: at91: fix typos

2013-09-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:45 Fri 13 Sep , Boris BREZILLON wrote: > Fix AT91_PINCTRL_DEBOUNCE_VAL dt macro typo. > Fix at91_pinctrl_mux_ops callback typos. > Acked-by: Jean-Christophe PLAGNIOL-VILLARD > Signed-off-by: Boris BREZILLON > --- > drivers/pinctrl/pinctrl-at91.c |6 +++--- >

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

2013-09-14 Thread Jonathan Cameron
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 err. > index 12e7e79..b2e2917 100644 > --- a/drivers/iio/magnetometer/st_magn_core.c > +++ b/drivers/iio/magnetometer/st_magn_core.c > @@

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

2013-09-14 Thread Jonathan Cameron
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 You clearly have a better

Re: [PATCH] doc: fix some typos

2013-09-14 Thread Randy Dunlap
On 09/13/13 20:49, Xishi Qiu wrote: > diff --git a/Documentation/kprobes.txt b/Documentation/kprobes.txt > index 0cfb00f..ca278d5 100644 > --- a/Documentation/kprobes.txt > +++ b/Documentation/kprobes.txt > @@ -92,7 +92,7 @@ stack contents as the probed function. When it is done, > the handler

Re: [RFC PATCH alt 4/4] pinctrl: at91: rework debounce configuration

2013-09-14 Thread Jean-Christophe PLAGNIOL-VILLARD
On 09:53 Fri 13 Sep , Boris BREZILLON wrote: > AT91 SoCs do not support per pin debounce time configuration. > Instead you have to configure a debounce time which will be used for all > pins of a given bank (PIOA, PIOB, ...). > > Signed-off-by: Boris BREZILLON > --- >

Re: [PATCH 31/38] iio: accel-core: st: Clean up error handling in probe()

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > Reduce the amount of those unnecessary goto calls, as in most cases > we can simply return immediately. We also only call for the IRQ number > once and use that value throughout. > > Signed-off-by: Lee Jones ... > - if

Re: [PATCH 29/38] iio: pressure-core: st: Provide support for the Vdd power supply

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > The power to some of the sensors are controlled by regulators. In most > cases these are 'always on', but if not they will fail to work until > the regulator is enabled using the relevant APIs. This patch allows for > the Vdd power supply to be specified by

Re: [PATCH 28/38] iio: pressure: st: Add support for new LPS001WP pressure sensor

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > Here we use existing practices to introduce support for another > pressure/temperature sensor, the LPS001WP. > > Signed-off-by: Lee Jones Looks fine to me, will pick this up when the precursors are all sorted. > --- > drivers/iio/pressure/st_pressure.h

Re: [PATCH 26/38] iio: pressure-core: st: Clean-up probe() function

2013-09-14 Thread Jonathan Cameron
On 09/11/13 08:19, Lee Jones wrote: >>> err = st_sensors_init_sensor(indio_dev, plat_data); >>> if (err < 0) >>> - goto st_press_common_probe_error; >>> + return err; >>> >>> - if (pdata->get_irq_data_ready(indio_dev) > 0) { >>> + if (irq > 0) { >>> err

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

2013-09-14 Thread Jonathan Cameron
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 LPS331AP's > channel specifier we'll use a new

Re: [PATCH] perf session: Add option to copy events when queueing

2013-09-14 Thread Frederic Weisbecker
On Fri, Sep 06, 2013 at 01:37:01PM -0600, David Ahern wrote: > When processing events the session code has an ordered samples queue which is > used to time-sort events coming in across multiple mmaps. At a later point in > time samples on the queue are flushed up to some timestamp at which point

Re: [PATCH 24/38] iio: pressure-core: st: Expand and rename LPS331AP's channel descriptor

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > Due to the MACRO used, the task of reading, understanding and maintaining > the LPS331AP's channel descriptor is substantially difficult. This patch > is based on the view that it's better to have easy to read, maintainable > code than to save a few lines here

Re: [PATCH] kthread: Make kthread_create() killable.

2013-09-14 Thread Oleg Nesterov
Add lkml. On 09/13, Tetsuo Handa wrote: > > This patch makes kthread_create() killable, Probably makes sense... > @@ -255,36 +266,59 @@ struct task_struct *kthread_create_on_node(int > (*threadfn)(void *data), > const char namefmt[], >

Re: [PATCH 23/38] iio: pressure-core: st: Describe LPS331AP defines by name

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > They're currently named *_1_*, for 'Sensor 1', but the code will be much > more readable if we use the naming convention *_LPS331AP_* instead. > > Signed-off-by: Lee Jones Very happy to see this patch. The _1_ stuff should never have gotten through the

Re: [PATCH 18/38] iio: sensors-core: st: Allow full-scale to be an optional feature

2013-09-14 Thread Jonathan Cameron
On 09/14/13 17:45, Jonathan Cameron wrote: > On 09/10/13 13:49, Lee Jones wrote: >> Some chips either don't support it or fail to provide adequate documentation, >> so sometimes it's impossible to enable the feature even if it is supported. >> >> Signed-off-by: Lee Jones > Applied to the togreg

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

2013-09-14 Thread Jonathan Cameron
On 09/10/13 13:49, Lee Jones wrote: > Saving a few lines of code. > > Signed-off-by: Lee Jones Applied to the togreg branch of iio.git. To my mind the key thing here is that the error paths were previous inconsistent in that all but the last one went via a separate cleanup path whereas the last

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

2013-09-14 Thread Jonathan Cameron
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 > --- > drivers/iio/common/st_sensors/st_sensors_core.c | 17

  1   2   3   4   >