[PATCH v3 0/2] arm & arm64: perf: Fix callchain parse error with

2015-05-01 Thread Hou Pengyang
For arm & arm64, when tracing with tracepoint events, the IP and cpsr are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. These two patches fix this by implementing perf_arch_fetch_caller_regs for arm and arm64, which fills several necessary

[PATCH v3 1/2] arm: perf: Fix callchain parse error with kernel tracepoint events

2015-05-01 Thread Hou Pengyang
For ARM, when tracing with tracepoint events, the IP and cpsr are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. ./perf record -e sched:sched_switch -g --call-graph dwarf ls [ perf record: Captured and wrote 0.006 MB perf.data ] ./perf report

[PATCH v3 2/2] arm64: perf: Fix callchain parse error with kernel tracepoint events

2015-05-01 Thread Hou Pengyang
For ARM64, when tracing with tracepoint events, the IP and pstate are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. ./perf record -e sched:sched_switch -g --call-graph dwarf ls [ perf record: Captured and wrote 0.146 MB perf.data ] ./perf

[PATCH v3 1/2] arm: perf: Fix callchain parse error with kernel tracepoint events

2015-05-01 Thread Hou Pengyang
For ARM, when tracing with tracepoint events, the IP and cpsr are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. ./perf record -e sched:sched_switch -g --call-graph dwarf ls [ perf record: Captured and wrote 0.006 MB perf.data ] ./perf report

[PATCH v3 2/2] arm64: perf: Fix callchain parse error with kernel tracepoint events

2015-05-01 Thread Hou Pengyang
For ARM64, when tracing with tracepoint events, the IP and pstate are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. ./perf record -e sched:sched_switch -g --call-graph dwarf ls [ perf record: Captured and wrote 0.146 MB perf.data ] ./perf

[PATCH v3 0/2] arm & arm64: perf: Fix callchain parse error with

2015-05-01 Thread Hou Pengyang
For arm & arm64, when tracing with tracepoint events, the IP and cpsr are set to 0, preventing the perf code parsing the callchain and resolving the symbols correctly. These two patches fix this by implementing perf_arch_fetch_caller_regs for arm and arm64, which fills several necessary

[PATCH v2] rtc: s3c: Integrate Exynos3250 into S3C6410

2015-05-01 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski There are now no differences between RTC on Exynos3250 and S3C6410. Merge everything into one so duplicated code could be removed. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Acked-by: Alexandre Belloni Reviewed-by: Javier Martinez Canillas

Re: [PATCH 3/3] context_tracking,x86: remove extraneous irq disable & enable from context tracking on syscall entry

2015-05-01 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Fri, May 1, 2015 at 12:11 PM, Rik van Riel wrote: > > On 05/01/2015 02:40 PM, Ingo Molnar wrote: > > > >> Or we could do that in the syscall path with a single store of a > >> constant flag to a location in the task struct. We have a number of > >> natural flags

Re: [PATCH 3/3] netconsole: implement extended console support

2015-05-01 Thread Tetsuo Handa
Tejun Heo wrote: > +If a message doesn't fit in 1000 bytes, the message is split into > +multiple fragments by netconsole. These fragments are transmitted with > +"ncfrag" header field added. > + > + ncfrag=/ > + > +For example, > + > + 6,416,1758426,-,ncfrag=0/33;the first chunk, > +

Re: [PATCH] MODSIGN: Change default key details [ver #2]

2015-05-01 Thread Linus Torvalds
On Fri, May 1, 2015 at 2:41 PM, Abelardo Ricart III wrote: > > Here's my two-line patch strictly defining the build order, for your perusal. Ok, so this looks possible and sounds like it could explain the issues. But I'd like somebody who is much more familiar with these kinds of subtleties in

[PATCH] drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD

2015-05-01 Thread Krzysztof Kozlowski
Selecting CONFIG_FB_S3C disables CONFIG_DRM_EXYNOS_FIMD leading to build error: drivers/built-in.o: In function `exynos_dp_dpms': binder.c:(.text+0xd6a840): undefined reference to `fimd_dp_clock_enable' binder.c:(.text+0xd6ab54): undefined reference to `fimd_dp_clock_enable' Signed-off-by:

Re: [PATCH 3/3] context_tracking,x86: remove extraneous irq disable & enable from context tracking on syscall entry

2015-05-01 Thread Mike Galbraith
On Fri, 2015-05-01 at 14:05 -0400, Rik van Riel wrote: > On 05/01/2015 12:34 PM, Ingo Molnar wrote: > > > > * Rik van Riel wrote: > > > >>> I can understand people running hard-RT workloads not wanting to > >>> see the overhead of a timer tick or a scheduler tick with variable > >>> (and

Re: [PATCH 3.19 016/175] ksoftirqd: Enable IRQs and call cond_resched() before poking RCU

2015-05-01 Thread Mike Galbraith
On Fri, 2015-05-01 at 22:52 +0200, Greg Kroah-Hartman wrote: > On Fri, May 01, 2015 at 03:00:00PM -0500, Josh Hunt wrote: > > On Wed, Mar 4, 2015 at 12:13 AM, Greg Kroah-Hartman > > wrote: > > > 3.19-stable review patch. If anyone has any objections, please let me > > > know. > > > > > >

RE: [PATCH v3 12/20] clk: tegra: pll: Add specialized logic for T210

2015-05-01 Thread Jim Lin
> +static void clk_plle_tegra210_is_enabled(struct struct clk_hw *hw) { Returned type is "int" instead of "void". Also one "struct" only for "clk_hw *hw"? > + struct tegra_clk_pll *pll = to_clk_pll(hw); > + u32 val; > + > + val = pll_readl_base(pll); > + > + return val &

[GIT] Networking

2015-05-01 Thread David Miller
1) Receive packet length needs to be adjust by 2 on RX to accomodate the two padding bytes in altera_tse driver. From Vlastimil Setka. 2) If rx frame is dropped due to out of memory in macb driver, we leave the receive ring descriptors in an undefined state. From Punnaiah Choudary

Re: Sharing credentials in general (Re: [GIT PULL] kdbus for 4.1-rc1)

2015-05-01 Thread Andy Lutomirski
On Mon, Apr 27, 2015 at 9:33 AM, David Herrmann wrote: > On Mon, Apr 27, 2015 at 6:13 PM, Andy Lutomirski wrote: >> 2. This is a nice thought, but it doesn't work in practice. Sorry. >> I can give you a big pile of CVEs from last year if you like, or I can >> try explaining again. >> >> The

Re: [PATCH v6 0/6] arm64: Add kernel probes (kprobes) support

2015-05-01 Thread William Cohen
On 04/29/2015 06:23 AM, Will Deacon wrote: > On Tue, Apr 28, 2015 at 03:58:21AM +0100, William Cohen wrote: >> Hi All, > > Hi Will, > >> I have been experimenting with the patches for arm64 kprobes support. >> On occasion the kernel gets stuck in a loop printing output: >> >> Unexpected kernel

[PATCH 1/7] x86/intel_rdt: Intel Cache Allocation Technology detection

2015-05-01 Thread Vikas Shivappa
This patch adds support for the new Cache Allocation Technology (CAT) feature found in future Intel Xeon processors. CAT is part of Intel Resource Director Technology(RDT) which enables sharing of processor resources. This patch includes CPUID enumeration routines for CAT and new values to track

[PATCH 2/7] x86/intel_rdt: Adds support for Class of service management

2015-05-01 Thread Vikas Shivappa
This patch adds a cgroup subsystem to support Intel Resource Director Technology(RDT) or Platform Shared resources Control. The resources that are currently supported for sharing is L3 cache (Cache Allocation Technology or CAT). When a RDT cgroup is created it has a CLOSid and CBM associated with

[PATCH 5/7] x86/intel_rdt: Software Cache for IA32_PQR_MSR

2015-05-01 Thread Vikas Shivappa
This patch implements a common software cache for IA32_PQR_MSR(RMID 0:9, CLOSId 32:63) to be used by both CMT and CAT. CMT updates the RMID where as CAT updates the CLOSid in the software cache. When the new RMID/CLOSid value is different from the cached values, IA32_PQR_MSR is updated. Since

[PATCH 7/7] x86/intel_rdt: Add CAT documentation and usage guide

2015-05-01 Thread Vikas Shivappa
Adds a description of Cache allocation technology, overview of kernel implementation and usage of CAT cgroup interface. Signed-off-by: Vikas Shivappa --- Documentation/cgroups/rdt.txt | 180 ++ 1 file changed, 180 insertions(+) create mode 100644

[PATCH 3/7] x86/intel_rdt: Support cache bit mask for Intel CAT

2015-05-01 Thread Vikas Shivappa
Add support for cache bit mask manipulation. The change adds a file cache_mask to the RDT cgroup which represents the CBM(cache bit mask) for the cgroup. Update to the CBM is done by writing to the IA32_L3_MASK_n. The RDT cgroup follows cgroup hierarchy ,mkdir and adding tasks to the cgroup

[PATCH 6/7] x86/intel_rdt: Intel haswell CAT enumeration

2015-05-01 Thread Vikas Shivappa
CAT(Cache Allocation Technology) on hsw needs to be enumerated separately. CAT is only supported on certain HSW SKUs. This patch does a probe test for hsw CPUs by writing a CLOSid into high 32 bits of IA32_PQR_MSR and see if the bits stick. The probe test is only done after confirming that the

[PATCH V6 0/7] x86/intel_rdt: Intel Cache Allocation Technology

2015-05-01 Thread Vikas Shivappa
This patch adds a cgroup subsystem to support the new Cache Allocation Technology (CAT) feature found in future Intel Xeon Intel processors. CAT is part of Resource Director Technology(RDT) or Platform Shared resource control which provides support to control sharing of platform resources like

[PATCH 4/7] x86/intel_rdt: Implement scheduling support for Intel RDT

2015-05-01 Thread Vikas Shivappa
Adds support for IA32_PQR_ASSOC MSR writes during task scheduling. The high 32 bits in the per processor MSR IA32_PQR_ASSOC represents the CLOSid. During context switch kernel implements this by writing the CLOSid of the cgroup to which the task belongs to the CPU's IA32_PQR_ASSOC MSR. For Cache

[PATCH CORRECT 03/10] parse_integer: convert sscanf()

2015-05-01 Thread Alexey Dobriyan
Rewrite kstrto*() functions through parse_integer(). _kstrtoul() and _kstrtol() are removed because parse_integer() can dispatch based on BITS_PER_LONG saving function call. Also move function definitions and comment one instance. Remove redundant boilerplate comments from elsewhere. High bit

Re: Tux3 Report: How fast can we fsync?

2015-05-01 Thread David Lang
On Fri, 1 May 2015, Daniel Phillips wrote: On Friday, May 1, 2015 8:38:55 AM PDT, Dave Chinner wrote: Well, yes - I never claimed XFS is a general purpose filesystem. It is a high performance filesystem. Is is also becoming more relevant to general purpose systems as low cost storage gains

[i915]] *ERROR* mismatch in scaler_state.scaler_id

2015-05-01 Thread Sergey Senozhatsky
Hi, linux-next 20150501 [1.968953] [drm:check_crtc_state [i915]] *ERROR* mismatch in scaler_state.scaler_id (expected 0, found -1) [1.968953] [ cut here ] [1.968983] WARNING: CPU: 0 PID: 6 at drivers/gpu/drm/i915/intel_display.c:12008 check_crtc_state+0xb15

[PATCH 10/10] ext2, ext3, ext4: convert to parse_integer()/kstrto*()

2015-05-01 Thread Alexey Dobriyan
Convert away from deprecated simple_strto*() interfaces. Signed-off-by: Alexey Dobriyan --- fs/ext2/super.c |6 -- fs/ext3/super.c |7 --- fs/ext4/super.c | 15 +++ 3 files changed, 15 insertions(+), 13 deletions(-) --- a/fs/ext2/super.c +++ b/fs/ext2/super.c @@

[PATCH 09/10] ocfs2: convert to parse_integer()/kstrto*()

2015-05-01 Thread Alexey Dobriyan
Convert away from deprecated simple_strto*() interfaces. Autodetection of value range from type allows to remove disgusting checks: if ((major == LONG_MIN) || (major == LONG_MAX) || (major > (u8)-1) || (major < 1)) return -ERANGE; if ((minor ==

Re: [v2,2/2] powerpc32: add support for csum_add()

2015-05-01 Thread Scott Wood
On Tue, 2015-04-28 at 21:01 +0200, christophe leroy wrote: > > > Le 25/03/2015 02:30, Scott Wood a écrit : > > > On Tue, Feb 03, 2015 at 12:39:27PM +0100, LEROY Christophe wrote: > > > The C version of csum_add() as defined in include/net/checksum.h gives the > > > following assembly: > > >

[PATCH 08/10] fs/cachefiles/: convert to parse_integer()

2015-05-01 Thread Alexey Dobriyan
Convert away from deprecated simple_strto*() interfaces. Switch "unsigned long" to "unsigned int" where possible. kstrto*() functions can't be used because of trailing "%" sign. :^) Signed-off-by: Alexey Dobriyan --- fs/cachefiles/daemon.c | 84

[PATCH 07/10] parse_integer: convert misc fs/ code

2015-05-01 Thread Alexey Dobriyan
Convert random fs/ code away from simple_strto*() interfaces. Note about "struct simple_attr" conversion: ->set_buf is unneeded because everything can be done from stack. ->get_buf is useless as well, but that's a separate patch. Mutex is not removed, as it may guard readers from writers,

[PATCH 06/10] parse_integer: convert mm/

2015-05-01 Thread Alexey Dobriyan
Convert mm/ directory away from deprecated simple_strto*() interface. One thing to note about parse_integer() and seemingly useless casts -- range of accepted values depends on result type. int val; parse_integer(s, 0, ); will accept negative integers, while int val;

[PATCH 03/19] f2fs: move existing definitions into f2fs.h

2015-05-01 Thread Jaegeuk Kim
This patch moves some inode-related definitions from node.h to f2fs.h to add new features. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 22 ++ fs/f2fs/node.h | 22 -- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/fs/f2fs/f2fs.h

[PATCH 08/19] f2fs: clean up f2fs_lookup

2015-05-01 Thread Jaegeuk Kim
This patch cleans up to avoid deep indentation. Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 658e807..a311c3c 100644 --- a/fs/f2fs/namei.c +++

[PATCH 05/10] parse_integer: convert lib/

2015-05-01 Thread Alexey Dobriyan
Convert away lib/ from deprecated simple_strto*() interfaces. "&(int []){0}[0]" expression is anonymous variable, don't be scared. Filesystem option parser code does parsing 1.5 times: first to know boundaries of a value (args[0].from, args[0].to) and then actual parsing with match_number().

[PATCH 05/19] f2fs: add f2fs_map_blocks

2015-05-01 Thread Jaegeuk Kim
This patch introduces f2fs_map_blocks structure likewise ext4_map_blocks. Now, f2fs uses f2fs_map_blocks when handling get_block. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 72 ++--- fs/f2fs/f2fs.h | 16 ++

[PATCH 09/19] f2fs: add f2fs_may_inline_{data, dentry}

2015-05-01 Thread Jaegeuk Kim
This patch adds f2fs_may_inline_data and f2fs_may_inline_dentry. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 3 ++- fs/f2fs/file.c | 2 +- fs/f2fs/inline.c | 13 - fs/f2fs/namei.c | 4 ++-- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/f2fs.h

[PATCH 10/19] f2fs: add sbi and page pointer in f2fs_io_info

2015-05-01 Thread Jaegeuk Kim
This patch adds f2fs_sb_info and page pointers in f2fs_io_info structure. With this change, we can reduce a lot of parameters for IO functions. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 9 +++-- fs/f2fs/data.c | 47 +--

[PATCH 13/19] f2fs: fix race on allocating and deallocating a dentry block

2015-05-01 Thread Jaegeuk Kim
There are two threads: f2fs_delete_entry() get_new_data_page() f2fs_reserve_block() dn.blkaddr = XXX lock_page(dentry_block) truncate_hole() dn.blkaddr = NULL unlock_page(dentry_block)

[PATCH 04/19] f2fs: add feature facility in superblock

2015-05-01 Thread Jaegeuk Kim
This patch introduces a feature in superblock, which will indicate any new features for f2fs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 7 +++ include/linux/f2fs_fs.h | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index

[PATCH 12/19] f2fs: introduce dot and dotdot name check

2015-05-01 Thread Jaegeuk Kim
This patch adds an inline function to check dot and dotdot names. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 11 +++ fs/f2fs/hash.c | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index e99a404..b8f99fd 100644 ---

[PATCH 18/19] f2fs: introduce discard_map for f2fs_trim_fs

2015-05-01 Thread Jaegeuk Kim
This patch adds a bitmap for discard issues from f2fs_trim_fs. There-in rule is to issue discard commands only for invalidated blocks after mount. Once mount is done, f2fs_trim_fs trims out whole invalid area. After ehn, it will not issue and discrads redundantly. Signed-off-by: Jaegeuk Kim ---

[PATCH 17/19] f2fs: revmove spin_lock for write_orphan_inodes

2015-05-01 Thread Jaegeuk Kim
This patch removes spin_lock, since this is covered by f2fs_lock_op already. And, we should avoid to use page operations inside spin_lock. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/checkpoint.c

[PATCH 03/10] parse_integer: convert sscanf()

2015-05-01 Thread Alexey Dobriyan
Remove base second guessing. Uniformly fix too liberal acceptance in %lu/%ld cases in the next patch. Signed-off-by: Alexey Dobriyan --- lib/vsprintf.c | 36 ++-- 1 file changed, 10 insertions(+), 26 deletions(-) --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@

[PATCH 04/10] sscanf: fix overflow

2015-05-01 Thread Alexey Dobriyan
Fun fact: uint8_t val; sscanf("256", "%hhu", ); will return 1 (as it should), and make val=0 (as it should not). Apart from correctness, patch allows to remove checks and switch to proper types in several (most?) cases: grep -e 'scanf.*%[0-9]\+[dioux]' -n -r . Such

[PATCH 15/19] f2fs: fix counting the number of inline_data inodes

2015-05-01 Thread Jaegeuk Kim
This patch fixes to count the missing symlink case. Signed-off-by: Jaegeuk Kim --- fs/f2fs/namei.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index c0ba8e3..90a9640 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -61,6 +61,9

[PATCH 11/19] f2fs: move get_page for gc victims

2015-05-01 Thread Jaegeuk Kim
This patch moves getting victim page into move_data_page. Signed-off-by: Jaegeuk Kim --- fs/f2fs/gc.c | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index 72667a5..1bd11f0 100644 --- a/fs/f2fs/gc.c +++

[PATCH 14/19] f2fs: add need_dentry_mark

2015-05-01 Thread Jaegeuk Kim
This patch introduces need_dentry_mark() to clean up and avoid redundant node locks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/node.c | 35 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h

[PATCH 19/19] f2fs: issue discard with finally produced len and minlen

2015-05-01 Thread Jaegeuk Kim
This patch determines to issue discard commands by comparing given minlen and the length of produced final candidates. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 2 +- fs/f2fs/f2fs.h | 2 +- fs/f2fs/segment.c| 10 ++ 3 files changed, 8 insertions(+), 6

[PATCH 16/19] f2fs: split find_data_page according to specific purposes

2015-05-01 Thread Jaegeuk Kim
This patch splits find_data_page as follows. 1. f2fs_gc - use get_read_data_page() with read only 2. find_in_level - use find_data_page without locked page 3. truncate_partial_page - In the case cache_only mode, just drop cached page. - Ohterwise, use get_lock_data_page() and guarantee to

[PATCH 07/19] f2fs: expose f2fs_mpage_readpages

2015-05-01 Thread Jaegeuk Kim
This patch implements f2fs_mpage_readpages for further optimization on encryption support. The basic code was taken from fs/mpage.c, and changed to be simple by adjusting that block_size is equal to page_size in f2fs. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 157

[PATCH 06/19] f2fs: introduce f2fs_commit_super

2015-05-01 Thread Jaegeuk Kim
This patch introduces f2fs_commit_super to write updated superblock. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 1 + fs/f2fs/super.c | 24 2 files changed, 25 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index c98454d..7ff3ac7 100644 ---

[PATCH 02/19] f2fs: add missing version info in superblock

2015-05-01 Thread Jaegeuk Kim
The mkfs.f2fs remains kernel version in superblock, but f2fs module has not added that so far. Signed-off-by: Jaegeuk Kim --- include/linux/f2fs_fs.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/f2fs_fs.h b/include/linux/f2fs_fs.h index 591f8c3..8d345c2 100644 ---

[PATCH 01/19] f2fs: fix not to check IS_ERR for null pointer

2015-05-01 Thread Jaegeuk Kim
The acl can have null, error pointer, or valid pointer. So, we should check its pointer existence too. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index c8f25f7..851ff98 100644 --- a/fs/f2fs/acl.c

[PATCH 02/10] parse_integer: rewrite kstrto*()

2015-05-01 Thread Alexey Dobriyan
Rewrite kstrto*() functions through parse_integer(). _kstrtoul() and _kstrtol() are removed because parse_integer() can dispatch based on sizeof(long) saving function call. Also move function definitions and comment one instance. Remove redundant boilerplate comments from elsewhere. High bit

[PATCH 01/10] Add parse_integer() (replacement for simple_strto*())

2015-05-01 Thread Alexey Dobriyan
kstrto*() and kstrto*_from_user() family of functions were added to help with parsing one integer written as string to proc/sysfs/debugfs files. But they have a limitation: string passed must end with \0 or \n\0. There are enough places where kstrto*() functions can't be used because of this

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-01 Thread Aravind Gopalakrishnan
On 5/1/15 5:47 PM, Borislav Petkov wrote: On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar wrote: So instead of playing games with an ancient delay, I'd suggest we install the 10 msec INIT assertion wait as a platform quirk instead,

Re: [PATCH 3/3] ipc/mqueue: lockless pipelined wakeups

2015-05-01 Thread Davidlohr Bueso
On Fri, 2015-05-01 at 17:52 -0400, George Spelvin wrote: > In general, Acked-by, but you're making me fix all your comments. :-) > > This is a nice use of the wake queue, since the code was already handling > the same problem in a similar way with STATE_PENDING. > > > * The receiver accepts the

RE: [RFC PATCH 5/5] GHES: Make NMI handler have a single reader

2015-05-01 Thread Zheng, Lv
Hi, > From: Borislav Petkov [mailto:b...@alien8.de] > Sent: Thursday, April 30, 2015 4:49 PM > > On Thu, Apr 30, 2015 at 08:05:12AM +, Zheng, Lv wrote: > > Are there any such data around the SC and LL (MIPS)? > > What, you can't search the internet yourself? I mean if LL can do what you

Re: [PATCH 02/11] drivers/clk: include for clk-max77xxx modular code

2015-05-01 Thread Paul Gortmaker
[Re: [PATCH 02/11] drivers/clk: include for clk-max77xxx modular code] On 01/05/2015 (Fri 14:37) Stephen Boyd wrote: > On 04/30/15 18:47, Paul Gortmaker wrote: > > These files are built off of the tristate COMMON_CLK_MAX77686 and > > COMMON_CLK_MAX77802 respectively. They also contains modular

kernel >= 4.0: crashes when using traceroute6 with isatap

2015-05-01 Thread Wolfgang Walter
Hello, kernel 4.0 (and 4.0.1) crashes immediately when I use traceroute6 with an isatap-tunnel. I took an image of the message I got. It is not complete as my vt has not enough lines. 3.19.3 works fine. Regards, -- Wolfgang Walter Studentenwerk München Anstalt des öffentlichen Rechts

Re: [dm-devel] Regression: Disk corruption with dm-crypt and kernels >= 4.0

2015-05-01 Thread Abelardo Ricart III
On Fri, 2015-05-01 at 22:47 +0100, Alasdair G Kergon wrote: > On Fri, May 01, 2015 at 12:37:07AM -0400, Abelardo Ricart III wrote: > > # first bad commit: [cf2f1abfbd0dba701f7f16ef619e4d2485de3366] dm crypt: > > don't > > allocate pages for a partial request > > That's not a particularly good

Re: [PATCH] ktime: Fix ktime_divns to do signed division

2015-05-01 Thread Nicolas Pitre
On Fri, 1 May 2015, John Stultz wrote: > static inline u64 ktime_divns(const ktime_t kt, s64 div) > { > if (__builtin_constant_p(div) && !(div >> 32)) { > - u64 ns = kt.tv64; > + s64 ns = kt.tv64; > + int neg = 0; > + > + if (ns < 0) { > +

Re: [PATCH 0/13] Parallel struct page initialisation v4

2015-05-01 Thread Waiman Long
On 05/01/2015 06:02 PM, Waiman Long wrote: Bad news! I tried your patch on a 24-TB DragonHawk and got an out of memory panic. The kernel log messages were: : [ 80.126186] CPU 474: hi: 186, btch: 31 usd: 0 [ 80.131457] CPU 475: hi: 186, btch: 31 usd: 0 [ 80.136726] CPU 476:

Re: [PATCH] ktime: Fix ktime_divns to do signed division

2015-05-01 Thread John Stultz
On Fri, May 1, 2015 at 4:54 PM, Nicolas Pitre wrote: > On Fri, 1 May 2015, John Stultz wrote: > >> It was noted that the 32bit implementation of ktime_divns >> was doing unsgined division adn didn't properly handle >> negative values. >> >> This patch fixes the problem by checking and preserving

Re: [PATCH] ktime: Fix ktime_divns to do signed division

2015-05-01 Thread Nicolas Pitre
On Fri, 1 May 2015, John Stultz wrote: > It was noted that the 32bit implementation of ktime_divns > was doing unsgined division adn didn't properly handle > negative values. > > This patch fixes the problem by checking and preserving > the sign bit, and then reapplying it if appropriate > after

[GIT PULL] Ceph RBD fix for -rc2

2015-05-01 Thread Sage Weil
Hi Linus, Please pull the following RBD fix from git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client.git for-linus Thanks! sage Ilya Dryomov (1): rbd: end I/O the entire obj_request on error

Re: Regression: Disk corruption with dm-crypt and kernels >= 4.0

2015-05-01 Thread Abelardo Ricart III
On Fri, 2015-05-01 at 18:24 -0400, Abelardo Ricart III wrote: > On Fri, 2015-05-01 at 17:17 -0400, Mike Snitzer wrote: > > On Fri, May 01 2015 at 12:37am -0400, > > Abelardo Ricart III wrote: > > > > > I made sure to run a completely vanilla kernel when testing why I was > > > suddenly > > >

Re: [1/2] RTC: Add core rtc support for Gemini Soc devices

2015-05-01 Thread Alexandre Belloni
Hi, On 14/12/2010 at 16:08:26 +0100, Hans Ulli Kroll wrote : > driver for the rtc device > on Cortina Systems CS3516 or StormlinkSemi SL3516 aka Gemini SoC > > Signed-off-by: Hans Ulli Kroll This driver has never been merged and the platform doesn't seem to be active anymore. Is there still

Re: [PATCH v3 0/2] clk: improve handling of orphan clocks

2015-05-01 Thread Stephen Boyd
On 05/01/15 15:07, Heiko Stübner wrote: > Am Freitag, 1. Mai 2015, 13:52:47 schrieb Stephen Boyd: > >>> Instead I guess we could hook it less deep into clk_get_sys, like in the >>> following patch? >> It looks like it will work at least, but still I'd prefer to keep the >> orphan check contained

[PATCH] Fix an error that can cause fsl espi task blocked for more than 120 seconds

2015-05-01 Thread Jane Wan
Incorrect condition is used in spin_event_timeout(). When the TX is done, the SPIE_NF bit in ESPI_SPIE register is set to 1 to indicate the Tx FIFO is not full. If the bit is 0, it indicates the Tx FIFO is full. Due to this error, if the Tx FIFO is full at the beginning, but becomes not full

Re: [PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-01 Thread Florian Fainelli
On 01/05/15 15:09, Vivien Didelot wrote: > This commit introduces a new module_switch_driver macro, similar to > module_platform_driver and such, to reduce boilerplate when declaring > DSA switch drivers. > > In order to use the module_driver macro, register_switch_driver needed > to be changed

Re: Tux3 Report: How fast can we fsync?

2015-05-01 Thread Daniel Phillips
On Friday, May 1, 2015 8:38:55 AM PDT, Dave Chinner wrote: > > Well, yes - I never claimed XFS is a general purpose filesystem. It > is a high performance filesystem. Is is also becoming more relevant > to general purpose systems as low cost storage gains capabilities > that used to be considered

Re: [PATCH 1/3] mtd: sh_flctl: fixup wait_for_completion_timeout return handling

2015-05-01 Thread Laurent Pinchart
states > /* ret > 0 is success */ > return ret; > since it is only checking for > 0 in the call-sites > returning -ETIMEDOUT should be fine. > > Patch was compile tested with ap325rxa_defconfig (implies > CONFIG_MTD_NAND_SH_FLCTL=y) > > Patch is agai

Re: NFS Freezer and stuck tasks

2015-05-01 Thread Jeff Layton
On Fri, 1 May 2015 17:10:34 -0400 (EDT) Benjamin Coddington wrote: > On Fri, 1 May 2015, Benjamin Coddington wrote: > > > On Wed, 4 Mar 2015, Shawn Bohrer wrote: > > > > > Hello, > > > > > > We're using the Linux cgroup Freezer on some machines that use NFS and > > > have run into what appears

[PATCH] virtio: fix typo in vring_need_event() doc comment

2015-05-01 Thread Rusty Russell
From: Stefan Hajnoczi Here the "other side" refers to the guest or host. Signed-off-by: Stefan Hajnoczi Signed-off-by: Rusty Russell --- include/uapi/linux/virtio_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/virtio_ring.h

[PATCH] virtio: pass baton to Michael Tsirkin

2015-05-01 Thread Rusty Russell
With my job change kernel work will be "own time"; I'm keeping lguest and modules (and the virtio standards work), but virtio kernel has to go. This makes it clear that Michael is in charge. He's good, but having me watch over his shoulder won't help. Good luck Michael! Signed-off-by: Rusty

[PATCH v1] x86: punit_atom: punit device state debug driver

2015-05-01 Thread Srinivas Pandruvada
The patch adds a debug driver, which dumps the power states of all the North complex (NC) devices. This debug interface is useful to figure out the NC IPs which blocks the S0ix transitions on the platform. This is extremely useful during enabling PM on customer platforms and derivatives. This

[PATCH v1] x86: punit_atom: punit device state debug driver

2015-05-01 Thread Srinivas Pandruvada
v1 Based on review comments - Changed to tristate instead of bool - Moved config to kconfig.debug - Added debug in module name - Returning -ENXIO on debugfs file create error v0: Base version Srinivas Pandruvada (1): x86: punit_atom: punit device state debug driver

Re: [PATCH 2/3] mtd: sh_flctl: fix alignment of function argument

2015-05-01 Thread Laurent Pinchart
- > > Patch was compile tested with ap325rxa_defconfig (implies > CONFIG_MTD_NAND_SH_FLCTL=y) > > Patch is against 4.1-rc1 (localversion-next is -next-20150501) > > drivers/mtd/nand/sh_flctl.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/driv

Re: [PATCH 3/3] mtd: sh_flctl: remove unused variable and assignment

2015-05-01 Thread Laurent Pinchart
y) > > Patch is against 4.1-rc1 (localversion-next is -next-20150501) > > drivers/mtd/nand/sh_flctl.c |2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c > index b9f265a..6a5c4f7 100644 > --- a/driv

[PATCH v2] vfio: Fix runaway interruptible timeout

2015-05-01 Thread Alex Williamson
Commit 13060b64b819 ("vfio: Add and use device request op for vfio bus drivers") incorrectly makes use of an interruptible timeout. When interrupted, the signal remains pending resulting in subsequent timeouts occurring instantly. This makes the loop spin at a much higher rate than intended.

Re: [PATCH] sysfs: tightened sysfs permission checks

2015-05-01 Thread Rusty Russell
Gobinda Charan Maji writes: > There were some inconsistency in restriction to VERIFY_OCTAL_PERMISSIONS(). > Previously the test was "User perms >= group perms >= other perms". The > permission field of User, Group or Other consists of three bits. LSB is > EXECUTE permission, MSB is READ

RE: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Simmons, James A.
>> Yes the LARGE functions do the switching. I was expecting also patches to >> remove the >> OBD_ALLOC_LARGE functions as well which is not the case here. I do have one >> question still. The >> macro __OBD_MALLOC_VERBOSE allowed the ability to simulate memory allocation >> failures at >> a

Re: [PATCH] staging: media: omap4iss: Constify platform_device_id

2015-05-01 Thread Laurent Pinchart
Hi Krzysztof, Thank you for the patch. On Saturday 02 May 2015 00:43:07 Krzysztof Kozlowski wrote: > The platform_device_id is not modified by the driver and core uses it as > const. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Laurent Pinchart and applied to my tree. I'll send a pull

RE: [HPDD-discuss] [PATCH 2/11] Staging: lustre: fld: Use kzalloc and kfree

2015-05-01 Thread Simmons, James A.
>> Yes the LARGE functions do the switching. I was expecting also patches to >> remove the >> OBD_ALLOC_LARGE functions as well which is not the case here. I do have one >> question still. The >> macro __OBD_MALLOC_VERBOSE allowed the ability to simulate memory allocation >> failures at >> a

Re: [PATCH 0/1] speeding up cpu_up()

2015-05-01 Thread Borislav Petkov
On Fri, May 01, 2015 at 02:42:39PM -0700, Len Brown wrote: > On Mon, Apr 20, 2015 at 12:15 AM, Ingo Molnar wrote: > > > So instead of playing games with an ancient delay, I'd suggest we > > install the 10 msec INIT assertion wait as a platform quirk instead, > > and activate it for all

Re: [PATCH] ktime: Fix ktime_divns to do signed division

2015-05-01 Thread John Stultz
Bah. I forgot to add [RFC] to the subject. This patch isn't yet ready for submission, I just wanted to get some initial feedback on it. thanks -john On Fri, May 1, 2015 at 3:41 PM, John Stultz wrote: > It was noted that the 32bit implementation of ktime_divns > was doing unsgined division adn

Re: [PATCH 15/17] ACPICA/ARM: ACPI 5.1: Update for GTDT table changes.

2015-05-01 Thread Timur Tabi
On Tue, Jul 29, 2014 at 11:21 PM, Lv Zheng wrote: > From: Tomasz Nowicki > > New fields and new subtables. Tomasz Nowicki. > tomasz.nowi...@linaro.org > > Signed-off-by: Tomasz Nowicki > Signed-off-by: Hanjun Guo > Signed-off-by: Bob Moore > Signed-off-by: Lv Zheng Hi, I know this patch is

[PATCH] ktime: Fix ktime_divns to do signed division

2015-05-01 Thread John Stultz
It was noted that the 32bit implementation of ktime_divns was doing unsgined division adn didn't properly handle negative values. This patch fixes the problem by checking and preserving the sign bit, and then reapplying it if appropriate after the division. Unfortunately there is some

[PATCH v1 1/1] iio: ltr501: Add light channel support

2015-05-01 Thread Kuppuswamy Sathyanarayanan
Added support to calculate lux value from visible and IR spectrum adc count values. Also added IIO_LIGHT channel to enable user read the lux value directly from device using illuminance input ABI. Signed-off-by: Kuppuswamy Sathyanarayanan --- drivers/iio/light/ltr501.c | 71

Re: Regression: Disk corruption with dm-crypt and kernels >= 4.0

2015-05-01 Thread Abelardo Ricart III
On Fri, 2015-05-01 at 17:17 -0400, Mike Snitzer wrote: > On Fri, May 01 2015 at 12:37am -0400, > Abelardo Ricart III wrote: > > > I made sure to run a completely vanilla kernel when testing why I was > > suddenly > > seeing some nasty libata errors with all kernels >= v4.0. Here's a snippet: >

Re: [PATCH] x86: Optimize variable_test_bit()

2015-05-01 Thread Vladimir Makarov
On 01/05/15 04:49 PM, Linus Torvalds wrote: On Fri, May 1, 2015 at 12:02 PM, Vladimir Makarov wrote: GCC RA is a major reason to prohibit output operands for asm goto. Hmm.. Thinking some more about it, I think that what would actually work really well at least for the kernel is: (a)

[PATCH 1/3] net: dsa: introduce module_switch_driver macro

2015-05-01 Thread Vivien Didelot
This commit introduces a new module_switch_driver macro, similar to module_platform_driver and such, to reduce boilerplate when declaring DSA switch drivers. In order to use the module_driver macro, register_switch_driver needed to be changed to return an int instead of void, so make it return 0.

[PATCH 3/3] net: dsa: mv88e6060: use module_switch_driver

2015-05-01 Thread Vivien Didelot
Use the module_switch_driver helper macro to declare the driver and thus reduce boilerplate. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6060.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c

[PATCH 2/3] net: dsa: sf2: use module_switch_driver

2015-05-01 Thread Vivien Didelot
Use the module_switch_driver helper macro to declare the driver and thus reduce boilerplate. Signed-off-by: Vivien Didelot --- drivers/net/dsa/bcm_sf2.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index

Re: [PATCH v3 0/2] clk: improve handling of orphan clocks

2015-05-01 Thread Heiko Stübner
Am Freitag, 1. Mai 2015, 13:52:47 schrieb Stephen Boyd: > On 05/01/15 12:59, Heiko Stübner wrote: > > Am Donnerstag, 30. April 2015, 17:19:01 schrieb Stephen Boyd: > >> On 04/22, Heiko Stuebner wrote: > >>> Using orphan clocks can introduce strange behaviour as they don't have > >>> rate

Re: [GIT PULL] VFIO fixes for v4.1-rc2

2015-05-01 Thread Alex Williamson
On Fri, 2015-05-01 at 13:23 -0700, Linus Torvalds wrote: > On Fri, May 1, 2015 at 11:48 AM, Alex Williamson > wrote: > > > > Ok. It seemed like useful behavior to be able to provide some response > > to the user in the event that a ->remove handler is blocked by a device > > in-use and the user

  1   2   3   4   5   6   7   8   9   10   >