Re: [PATCH 3/3] f2fs: prevent waiter encountering incorrect discard states

2017-03-31 Thread Chao Yu
Ping, Any problem here? Thanks, On 2017/3/28 9:17, Chao Yu wrote: > On 2017/3/28 7:56, Jaegeuk Kim wrote: >> On 03/27, Chao Yu wrote: >>> In f2fs_submit_discard_endio, we will wake up waiter before setting >>> discard command states, so waiter may use incorrect states. Change >>> the order betwe

Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read()

2017-03-31 Thread Greg KH
On Fri, Mar 31, 2017 at 02:00:13PM -0700, Doug Anderson wrote: > On Fri, Mar 31, 2017 at 12:29 PM, Greg KH wrote: > BTW: I presume that nobody has decided that it would be a wise idea to > pick the OOM reaper code back to any stable trees? It seemed a bit > too scary to me, so I wrote a dumber (b

Re: [B.A.T.M.A.N.] [PATCH] net: batman-adv: use new api ethtool_{get|set}_link_ksettings

2017-03-31 Thread Sven Eckelmann
On Freitag, 31. März 2017 22:33:34 CEST Philippe Reynes wrote: > > Do you know if anyone already prepared the get_link_ksettings support for > > kernels older than 4.6 for backports.git? > > Sorry, I don't know this repo. Do you have an url please ? > But I suppose that nobody works on such backpo

Re: linux-next: tty: BUG: spinlock bad magic on CPU#0, init/1

2017-03-31 Thread Andrei Vagin
On Fri, Mar 31, 2017 at 03:19:48PM +0200, Greg Kroah-Hartman wrote: > On Wed, Mar 15, 2017 at 10:57:14PM -0700, Andrei Vagin wrote: > > Hello, > > > > We run CRIU tests for linux-next and here is a new bug in the kernel log > > > > [2.431229] Freeing unused kernel memory: 1356K > > [2.436

Re: [PATCH V8 1/6] LIBIO: Introduce a generic PIO mapping method

2017-03-31 Thread kbuild test robot
Hi zhichang.yuan, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/zhichang-yuan/LIBIO-Introduce-a

Re: [PATCH v3 0/3] perf/sdt: Hardening argument support

2017-03-31 Thread Ravi Bangoria
On Tuesday 28 March 2017 09:10 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Mar 29, 2017 at 12:29:29AM +0900, Masami Hiramatsu escreveu: >> Hi Arnaldo, >> >> please pull this, I've already acked to this series. > I did it 15 minutes ago, running build tests on it now. Hi Arnaldo, Thanks for pu

Re: [PATCH V8 1/6] LIBIO: Introduce a generic PIO mapping method

2017-03-31 Thread kbuild test robot
Hi zhichang.yuan, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/zhichang-yuan/LIBIO-Introduce-a

[RFC][PATCH 2/2] exec: If possible don't wait for ptraced threads to be reaped

2017-03-31 Thread Eric W. Biederman
Take advantage of the situation when sighand->count == 1 to only wait for threads to reach EXIT_ZOMBIE instead of EXIT_DEAD in de_thread. Only old old linux threading libraries use CLONE_SIGHAND without CLONE_THREAD. So this situation should be present most of the time. This allows ptracing thro

[RFC][PATCH 1/2] sighand: Count each thread group once in sighand_struct

2017-03-31 Thread Eric W. Biederman
In practice either a thread group is either using a sighand_struct or it isn't. Therefore simplify things a bit and only increment the count in sighand_struct when a new thread group is created that uses the existing sighand_struct, and only decrement the count in sighand_struct when a thread gro

[RFC][PATCH 0/2] exec: Fixing ptrace'd mulit-threaded hang

2017-03-31 Thread Eric W. Biederman
I spent a little more time with this and only waiting until the killed thread are zombies (and not reaped as we do today) really looks like the right fix. Oleg the following two patches work on top of your PTRACE_EVENT_EXIT change and probably need a little more cleanup until they are ready for s

Re: [PATCH V2 net-next 1/7] ptr_ring: introduce batch dequeuing

2017-03-31 Thread Jason Wang
On 2017年03月31日 22:31, Michael S. Tsirkin wrote: On Fri, Mar 31, 2017 at 11:52:24AM +0800, Jason Wang wrote: On 2017年03月30日 21:53, Michael S. Tsirkin wrote: On Thu, Mar 30, 2017 at 03:22:24PM +0800, Jason Wang wrote: This patch introduce a batched version of consuming, consumer can dequeue mo

Re: [PATCH -v2 1/2] mm, swap: Use kvzalloc to allocate some swap data structure

2017-03-31 Thread Huang, Ying
Hi, Michal, Michal Hocko writes: > On Fri 24-03-17 06:56:10, Dave Hansen wrote: >> On 03/24/2017 12:33 AM, John Hubbard wrote: >> > There might be some additional information you are using to come up with >> > that conclusion, that is not obvious to me. Any thoughts there? These >> > calls use t

Re: [PATCH v13 3/6] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-03-31 Thread kbuild test robot
Hi Jan, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jan-Glauber/Cavium-MMC-driver/20170401-055302

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Chewie Lin
On Sat, Apr 01, 2017 at 04:32:39AM +0100, Al Viro wrote: > On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > > Replace string with formatted arguments in the dev_warn() call. It removes > > the checkpatch warning: > > > > WARNING: Prefer using "%s", __func__ to embedded function na

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Sat, 2017-04-01 at 05:08 +0100, Al Viro wrote: > On Fri, Mar 31, 2017 at 08:52:50PM -0700, Joe Perches wrote: > > > > MILD SUGGESTION: don't spell the function name out in format strings; > > > "this_function: foo is %d", n > > > might be better off as > > > "%s: foo is %d", __func__, n > >

Re: [PATCH 2/2] ARM: dts: imx7: add USDHC NAND clock to SDHC instances

2017-03-31 Thread Stefan Agner
On 2017-03-31 20:03, Dong Aisheng wrote: > On Wed, Mar 29, 2017 at 05:50:29PM -0700, Stefan Agner wrote: >> The USDHC instances need the USDHC NAND clock in order to operate. >> Add the clock as ahb bus clock. >> >> Signed-off-by: Stefan Agner >> --- >> arch/arm/boot/dts/imx7s.dtsi | 6 +++--- >>

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Al Viro
On Fri, Mar 31, 2017 at 08:52:50PM -0700, Joe Perches wrote: > > MILD SUGGESTION: don't spell the function name out in format strings; > > "this_function: foo is %d", n > > might be better off as > > "%s: foo is %d", __func__, n > > in case you ever move it to another function or rename yo

Re: [PATCH v13 3/6] mmc: cavium: Add MMC PCI driver for ThunderX SOCs

2017-03-31 Thread kbuild test robot
Hi Jan, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jan-Glauber/Cavium-MMC-driver/20170401-055302

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Sat, 2017-04-01 at 04:46 +0100, Al Viro wrote: > On Fri, Mar 31, 2017 at 08:36:22PM -0700, Joe Perches wrote: > > On Sat, 2017-04-01 at 04:32 +0100, Al Viro wrote: > > > On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > > > > Replace string with formatted arguments in the dev_warn()

Re: [PATCH v23 00/11] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-03-31 Thread Fu Wei
Hi Xiongfeng Wang, On 1 April 2017 at 10:14, Xiongfeng Wang wrote: > > > On 2017/4/1 1:50, fu@linaro.org wrote: >> From: Fu Wei >> >> This patchset: >> (1)Preparation for adding GTDT support in arm_arch_timer: >> 1. Introduce a MMIO CNTFRQ helper. >> 2. separate out devic

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Al Viro
On Fri, Mar 31, 2017 at 08:36:22PM -0700, Joe Perches wrote: > On Sat, 2017-04-01 at 04:32 +0100, Al Viro wrote: > > On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > > > Replace string with formatted arguments in the dev_warn() call. It removes > > > the checkpatch warning: > > > > >

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Sat, 2017-04-01 at 04:32 +0100, Al Viro wrote: > On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > > Replace string with formatted arguments in the dev_warn() call. It removes > > the checkpatch warning: > > > > WARNING: Prefer using "%s", __func__ to embedded function names []

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Fri, 2017-03-31 at 20:18 -0700, Chewie Lin wrote: > These are good points, but any feedback on the dev_warn() call itself? > I was trying to fix the checkpatch warning on my first try. Using "%s" with a long string is generally inefficient. Compare the compiled object size of printf("%

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Al Viro
On Fri, Mar 31, 2017 at 06:59:19PM -0700, Chewie Lin wrote: > Replace string with formatted arguments in the dev_warn() call. It removes > the checkpatch warning: > > WARNING: Prefer using "%s", __func__ to embedded function names > #417: FILE: main_usb.c:417: > +

Re: [PATCH -mm -v7 4/9] mm, THP, swap: Add get_huge_swap_page()

2017-03-31 Thread Huang, Ying
Johannes Weiner writes: > On Thu, Mar 30, 2017 at 12:28:17PM +0800, Huang, Ying wrote: >> Johannes Weiner writes: >> > On Tue, Mar 28, 2017 at 01:32:04PM +0800, Huang, Ying wrote: >> >> @@ -527,6 +527,23 @@ static inline swp_entry_t get_swap_page(void) >> >> >> >> #endif /* CONFIG_SWAP */ >>

Re: [PATCH -mm -v7 1/9] mm, swap: Make swap cluster size same of THP size on x86_64

2017-03-31 Thread Huang, Ying
Johannes Weiner writes: > On Thu, Mar 30, 2017 at 08:45:56AM +0800, Huang, Ying wrote: >> Johannes Weiner writes: >> >> > On Tue, Mar 28, 2017 at 01:32:01PM +0800, Huang, Ying wrote: >> >> @@ -499,6 +499,19 @@ config FRONTSWAP >> >> >> >> If unsure, say Y to enable frontswap. >> >> >> >

Re: [PATCH] drivers: fixed a checkpatch warning

2017-03-31 Thread Chewie Lin
On Fri, Mar 31, 2017 at 11:53:55AM -0700, Joe Perches wrote: > On Fri, 2017-03-31 at 01:40 -0700, Chewie Lin wrote: > > fixed a coding style error/warning. > > > > Signed-off-by: Chewie Lin > > --- > > drivers/staging/vt6656/main_usb.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Chewie Lin
On Fri, Mar 31, 2017 at 07:45:09PM -0700, Joe Perches wrote: > On Fri, 2017-03-31 at 19:15 -0700, Randy Dunlap wrote: > > On 03/31/17 18:59, Chewie Lin wrote: > > > Replace string with formatted arguments in the dev_warn() call. It removes > > > the checkpatch warning: > > > > > > WARNING: Prefe

Re: [BUG nohz]: wrong user and system time accounting

2017-03-31 Thread Luiz Capitulino
On Sat, 1 Apr 2017 01:24:54 +0200 Frederic Weisbecker wrote: > On Fri, Mar 31, 2017 at 04:09:10PM -0400, Luiz Capitulino wrote: > > On Thu, 30 Mar 2017 17:25:46 -0400 > > Luiz Capitulino wrote: > > > > > On Thu, 30 Mar 2017 16:18:17 +0200 > > > Frederic Weisbecker wrote: > > > > > > > On

Re: [PATCH -mm -v7 9/9] mm, THP, swap: Delay splitting THP during swap out

2017-03-31 Thread Huang, Ying
Johannes Weiner writes: > On Thu, Mar 30, 2017 at 12:15:13PM +0800, Huang, Ying wrote: >> Johannes Weiner writes: >> > On Tue, Mar 28, 2017 at 01:32:09PM +0800, Huang, Ying wrote: >> >> @@ -198,6 +240,18 @@ int add_to_swap(struct page *page, struct list_head >> >> *list) >> >> VM_BUG_ON_PAGE(

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Fri, 2017-03-31 at 19:15 -0700, Randy Dunlap wrote: > On 03/31/17 18:59, Chewie Lin wrote: > > Replace string with formatted arguments in the dev_warn() call. It removes > > the checkpatch warning: > > > > WARNING: Prefer using "%s", __func__ to embedded function names > > #417: FILE: m

[PATCH] f2fs: remove the redundant variable definition

2017-03-31 Thread Kaixu Xia
The variable 'i' has been defined before, so here we can use it directly. Signed-off-by: Kaixu Xia --- fs/f2fs/checkpoint.c |1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 0339daf..2e42684 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/che

[PATCH] staging: iio: light: constify attribute_group structures

2017-03-31 Thread simran singhal
As the event_attrs field of iio_info structures is constant, so these attribute_group structures can also be declared constant. File size before: textdata bss dec hex filename 150641528 0 1659240d0 drivers/staging/iio/light/tsl2x7x_core.o File size after: t

Re: [v6 PATCH 00/21] x86: Enable User-Mode Instruction Prevention

2017-03-31 Thread Andy Lutomirski
On Fri, Mar 31, 2017 at 2:26 PM, Stas Sergeev wrote: > 31.03.2017 17:11, Alexandre Julliard пишет: >> >> In fact it would be nice to be able to make sidt/sgdt/etc. segfault >> too. I know a new syscall is a pain, > > Maybe arch_prctl() then? I still like my idea of a generic mechanism to turn off

Re: [RFC 1/8] Introduce Peer-to-Peer memory (p2pmem) device

2017-03-31 Thread okaya
On 2017-03-31 21:57, Logan Gunthorpe wrote: On 31/03/17 05:51 PM, Sinan Kaya wrote: You can put a restriction with DMI/SMBIOS such that all devices from 2016 work else they belong to blacklist. How do you get a manufacturing date for a given device within the kernel? Is this actually somethin

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Joe Perches
On Fri, 2017-03-31 at 18:59 -0700, Chewie Lin wrote: > Replace string with formatted arguments in the dev_warn() call. It removes > the checkpatch warning: > > WARNING: Prefer using "%s", __func__ to embedded function names > #417: FILE: main_usb.c:417: > +

Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

2017-03-31 Thread zhichang.yuan
On 04/01/2017 07:02 AM, Rafael J. Wysocki wrote: > On Fri, Mar 31, 2017 at 8:52 AM, zhichang.yuan > wrote: >> Hi, Rafael, >> >> Thanks for reviewing this! >> >> On 2017/3/31 4:31, Rafael J. Wysocki wrote: >>> On Thursday, March 30, 2017 11:26:58 PM zhichang.yuan wrote: On some platforms(suc

Re: [PATCH v23 00/11] acpi, clocksource: add GTDT driver and GTDT support in arm_arch_timer

2017-03-31 Thread Xiongfeng Wang
On 2017/4/1 1:50, fu@linaro.org wrote: > From: Fu Wei > > This patchset: > (1)Preparation for adding GTDT support in arm_arch_timer: > 1. Introduce a MMIO CNTFRQ helper. > 2. separate out device-tree code from arch_timer_detect_rate > 3. remove arch_timer_detect_

Re: [PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Randy Dunlap
On 03/31/17 18:59, Chewie Lin wrote: > Replace string with formatted arguments in the dev_warn() call. It removes > the checkpatch warning: > > WARNING: Prefer using "%s", __func__ to embedded function names > #417: FILE: main_usb.c:417: > +"usb_device_res

[PATCH 5/9] perf trace: Handle unpaired raw_syscalls:sys_exit event

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Which may happen when we start a tracing session and a thread is waiting for something like "poll" to return, in which case we better print "?" both for the syscall entry timestamp and for the duration. E.g.: Tracing existing mutt session: # perf trace -p `pido

[PATCH 8/9] perf tools: Do not fail in case of empty HOME env variable

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Currently we fail in the following case: $ unset HOME $ ./perf record ls $ echo $? 255 It's because the config code init fails due to a missing HOME variable value. Fix this by skipping the user config init if there's no HOME variable value. Reported-by: Jan Stancek Si

[PATCH 7/9] tools include uapi: Grab copies of stat.h and fcntl.h

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We will need it to build tools/perf/trace/beauty/statx.h. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-nin41ve2fa63lrfbdr6x5...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- too

[GIT PULL 0/9] perf/core improvements and fixes

2017-03-31 Thread Arnaldo Carvalho de Melo
linux into perf/core (2017-03-28 07:44:43 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-4.12-20170331 for you to fetch changes up to fd5cead23f54697310bd565aa2a23ae5128080a0: perf trace: Beautify sta

[PATCH 6/9] perf utils: Fix spelling mistake: "Invalud" -> "Invalid"

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Colin Ian King Trivial fix to spelling mistake in pr_debug message. Signed-off-by: Colin King Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Krister Johansen Cc: Peter Zijlstra Cc: kernel-janit...@vger.kernel.org Link: http://lkml.kernel.org/r/20170330095440.19444-1-colin.

[PATCH 3/9] perf/sdt/x86: Move OP parser to tools/perf/arch/x86/

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria SDT marker argument is in N@OP format. N is the size of argument and OP is the actual assembly operand. OP is arch dependent component and hence it's parsing logic also should be placed under tools/perf/arch/. Signed-off-by: Ravi Bangoria Acked-by: Masami Hiramatsu Cc: Alex

[PATCH 2/9] perf/sdt/x86: Add renaming logic for (missing) 8 bit registers

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria I found couple of events using al, bl, cl and dl registers for argument. These are not directly accepted by uprobe_events and thus needs to be mapped to ax, bx, cx and dx respectively. Few ex, /usr/bin/qemu-system-s390x css_adapter_interrupt: 1@%bl css_chpid_add: 1

[PATCH 1/9] perf tools: Remove support for command aliases

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This came from 'git', but isn't documented anywhere in tools/perf/Documentation/, looks like baggage we can do without, ditch it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-e7uwkn60t4hmlnwj9

[PATCH 4/9] perf report: Drop cycles 0 for LBR print

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Jin Yao For some platforms, for example Broadwell, it doesn't support cycles for LBR. But the perf always prints cycles:0, it's not necessary. The patch refactors the LBR info print code and drops the cycles:0. For example: perf report --branch-history --no-children --stdio On Broadwell:

[PATCH 9/9] perf trace: Beautify statx syscall 'flag' and 'mask' arguments

2017-03-31 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To test it, build samples/statx/test_statx, which I did as: $ make headers_install $ cc -I ~/git/linux/usr/include samples/statx/test-statx.c -o /tmp/statx And then use perf trace on it: # perf trace -e statx /tmp/statx /etc/passwd statx(/etc/passwd) = 0

Re: [PATCH] dm ioctl: Remove double parentheses

2017-03-31 Thread Joe Perches
On Fri, 2017-03-31 at 18:50 -0700, Matthias Kaehlcke wrote: > El Thu, Mar 16, 2017 at 09:48:30AM -0700 Matthias Kaehlcke ha dit: > > > The extra pair of parantheses is not needed and causes clang to generate > > the following warning: > > > > drivers/md/dm-ioctl.c:1776:11: error: equality compari

[PATCH 001/001] drivers/staging/vt6656/main_usb.c: checkpatch warning

2017-03-31 Thread Chewie Lin
Replace string with formatted arguments in the dev_warn() call. It removes the checkpatch warning: WARNING: Prefer using "%s", __func__ to embedded function names #417: FILE: main_usb.c:417: +"usb_device_reset fail status=%d\n", status); tot

Re: [PATCH] x86/intel_rdt: Add cpus_list rdtgroup file

2017-03-31 Thread Fenghua Yu
On Thu, Mar 30, 2017 at 04:59:47PM +0200, Jiri Olsa wrote: > On Wed, Mar 29, 2017 at 06:16:00PM +0200, Jiri Olsa wrote: > > On Wed, Mar 29, 2017 at 09:08:26AM -0700, Fenghua Yu wrote: > > > On Wed, Mar 29, 2017 at 05:09:48PM +0200, Jiri Olsa wrote: > > > > While playing with the resctrl interface I

[PATCH] eudyptula challenge

2017-03-31 Thread Chewie Lin
Hi all: Better and improved changelog version 3. I'm submitting this patch as part of Eudyptula challenge to fix a coding style problem. Thanks for taking time on this trivial patch. sl424 Chewie Lin (1): drivers/staging/vt6656/main_usb.c: checkpatch warning drivers/staging/vt6656/m

Re: [RFC 1/8] Introduce Peer-to-Peer memory (p2pmem) device

2017-03-31 Thread Logan Gunthorpe
On 31/03/17 05:51 PM, Sinan Kaya wrote: > You can put a restriction with DMI/SMBIOS such that all devices from 2016 > work else they belong to blacklist. How do you get a manufacturing date for a given device within the kernel? Is this actually something generically available? Logan

[GIT PULL] nfsd bugfixes for 4.11

2017-03-31 Thread J. Bruce Fields
Please pull nfsd bugfixes from git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.11-1 The restriction of NFSv4 to TCP went overboard and also broke the backchannel; fix. Also some minor refinements to the nfsd version-setting interface that we'd like to get fixed before release. --b. Chuck

Re: [PATCH] dm ioctl: Remove double parentheses

2017-03-31 Thread Matthias Kaehlcke
El Thu, Mar 16, 2017 at 09:48:30AM -0700 Matthias Kaehlcke ha dit: > The extra pair of parantheses is not needed and causes clang to generate > the following warning: > > drivers/md/dm-ioctl.c:1776:11: error: equality comparison with extraneous > parentheses [-Werror,-Wparentheses-equality] >

RE: [PATCH 0/3]measure SMI cost

2017-03-31 Thread Liang, Kan
> On Thu, Mar 23, 2017 at 11:25 AM, wrote: > > From: Kan Liang > > > > Currently, there is no way to measure the time cost in System > > management mode (SMM) by perf. > > > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once > it > > sets, the PMU core counters will freeze on

Re: [PATCH 16/16] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-03-31 Thread kbuild test robot
Hi Wu, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wu-Hao/Intel-FPGA-Device-Drivers/20170401

Fwd: [PATCH] fix exessiv cpu usaj by vs code

2017-03-31 Thread Ryan Gonzalez
>From c01518fd1f14eebf88992fc47f86a298776a4926 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Fri, 1 Apr 2017 01:00:00 -0500 Subject: [PATCH] fix exessiv cpu usaj by vs code https://www.reddit.com/r/programming/comments/612v99/vs_code_uses_13_cpu_when_idle_due_to_blinking/ obviously, js stuf

Re: [PATCH 11/16] fpga: intel: fme: add partial reconfiguration sub feature support

2017-03-31 Thread kbuild test robot
Hi Kang, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wu-Hao/Intel-FPGA-Device-Drivers/20170401

[PATCH v2] ALSA: hda/ca0132: Limit values for chip addresses to 32-bit

2017-03-31 Thread Matthias Kaehlcke
With the previous unsigned long value clang generates warnings like this: sound/pci/hda/patch_ca0132.c:860:37: error: implicit conversion from 'unsigned long' to 'u32' (aka 'unsigned int') changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion] spec->curr_chip

Re: Free after use in fw_pm_notify()->kill_requests_without_uevent() due pending_fw_head

2017-03-31 Thread Luis R. Rodriguez
On Tue, Mar 14, 2017 at 5:53 PM, Luis R. Rodriguez wrote: > On Tue, Feb 21, 2017 at 06:59:12PM -0800, Sodagudi Prasad wrote: >> On 2017-01-03 07:19, Greg KH wrote: >> > On Tue, Jan 03, 2017 at 06:44:03AM -0800, Sodagudi Prasad wrote: >> > > >> > > Hi All, >> > > >> > > Device has crashed due to me

Re: [alsa-devel] [PATCH] ALSA: hda/ca0132: Limit values for chip addresses to 32-bit

2017-03-31 Thread Matthias Kaehlcke
Sorry for the delayed reply, El Mon, Mar 20, 2017 at 10:33:43AM +0100 Takashi Iwai ha dit: > On Thu, 16 Mar 2017 21:52:23 +0100, > Matthias Kaehlcke wrote: > > > > With the previous unsigned long value clang generates warnings like > > this: > > > > sound/pci/hda/patch_ca0132.c:860:37: error: i

RE: [PATCH] ACPICA: use designated initializers

2017-03-31 Thread Moore, Robert
Acpica is built with many compilers, even very old ones. It runs on at least 12 known operating systems, and very probably more. I'm sorry, but no, we are not going to start adding compiler-specific ifdefs/code in the base ACPICA code. I don't care what you do in the Linux-specific or gcc-speci

Re: [PATCH] ACPICA: use designated initializers

2017-03-31 Thread Kees Cook
On Wed, Mar 29, 2017 at 7:12 PM, Zheng, Lv wrote: > Hi, > >> From: keesc...@google.com [mailto:keesc...@google.com] On Behalf Of Kees Cook >> Subject: Re: [PATCH] ACPICA: use designated initializers >> >> On Sun, Dec 18, 2016 at 10:06 PM, Zheng, Lv wrote: >> > Hi, >> > >> >> From: Kees Cook [mail

Re: [PATCH v5 3/6] irqdomain: Add irq_domain_{push,pop}_irq() functions.

2017-03-31 Thread David Daney
On 03/14/2017 09:11 AM, Marc Zyngier wrote: Hi David, On 01/03/17 01:48, David Daney wrote: For an already existing irqdomain hierarchy, as might be obtained via a call to pci_enable_msix(), a PCI driver wishing to add an additional irqdomain to the hierarchy needs to be able to insert the irqd

Re: [RFC][PATCHv2 5/8] sysrq: switch to printk.emergency mode in unsafe places

2017-03-31 Thread Sergey Senozhatsky
Hello, On (03/31/17 17:37), Petr Mladek wrote: > On Wed 2017-03-29 18:25:08, Sergey Senozhatsky wrote: > > It's not always possible/safe to wake_up() printk kernel > > thread from sysrq (theoretically). Thus we better switch > > printk() to emergency mode in some of the sysrq handlers, > > which a

Re: [PATCH] mm: Add additional consistency check

2017-03-31 Thread Kees Cook
On Fri, Mar 31, 2017 at 2:33 PM, Andrew Morton wrote: > On Fri, 31 Mar 2017 09:40:28 -0700 Kees Cook wrote: > >> As found in PaX, this adds a cheap check on heap consistency, just to >> notice if things have gotten corrupted in the page lookup. > > "As found in PaX" isn't a very illuminating just

Re: sudo x86info -a => kernel BUG at mm/usercopy.c:78!

2017-03-31 Thread Kees Cook
On Fri, Mar 31, 2017 at 11:26 AM, Linus Torvalds wrote: > On Fri, Mar 31, 2017 at 10:32 AM, Kees Cook wrote: >> >> How is 8809 both in the direct mapping and a slab object? > > I think this is just very regular /dev/mem behavior, that is hidden by > the fact that the *normal* case for

Re: [PATCH] [media] vcodec: mediatek: Remove double parentheses

2017-03-31 Thread Matthias Kaehlcke
El Fri, Mar 17, 2017 at 02:01:33PM -0700 Matthias Kaehlcke ha dit: > The extra pairs of parentheses are not needed and cause clang > warnings like this: > > drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality > comparison with extraneous parentheses [-Werror,-Wparenthese

Re: [PATCH 16/16] fpga: intel: afu: add FPGA_PORT_DMA_MAP/UNMAP ioctls support

2017-03-31 Thread kbuild test robot
Hi Wu, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wu-Hao/Intel-FPGA-Device-Drivers/20170401

Re: [PATCH v5 2/6] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers.

2017-03-31 Thread David Daney
I am finally getting back to this, sorry for the delay ... On 03/14/2017 09:54 AM, Marc Zyngier wrote: On 01/03/17 01:48, David Daney wrote: Follow-on patch for gpio-thunderx uses a irqdomain hierarchy which requires slightly different flow handlers, add them to chip.c which contains most of th

Re: [PATCH] kbuild, LLVMLinux: Add -Werror to cc-option to support clang

2017-03-31 Thread Kees Cook
On Fri, Mar 31, 2017 at 1:38 PM, Arnd Bergmann wrote: > From: Mark Charlebois > > Clang will warn about unknown warnings but will not return false > unless -Werror is set. GCC will return false if an unknown > warning is passed. > > Adding -Werror make both compiler behave the same. > > [arnd: it

Re: [PATCH net 08/19] net: hns: Fix to adjust buf_size of ring according to mtu

2017-03-31 Thread kbuild test robot
Hi lipeng, [auto build test WARNING on net/master] url: https://github.com/0day-ci/linux/commits/Salil-Mehta/net-hns-Misc-HNS-Bug-Fixes-Code-Improvements/20170401-060153 coccinelle warnings: (new ones prefixed by >>) >> drivers/net/ethernet/hisilicon/hns/hns_enet.c:1548:8-9: WARNING: retur

Re: [RFC 1/8] Introduce Peer-to-Peer memory (p2pmem) device

2017-03-31 Thread Sinan Kaya
On 3/31/2017 6:42 PM, Logan Gunthorpe wrote: > > > On 31/03/17 03:38 PM, Sinan Kaya wrote: >> On 3/31/2017 5:23 PM, Logan Gunthorpe wrote: >>> What exactly would you white/black list? It can't be the NIC or the >>> disk. If it's going to be a white/black list on the switch or root port >>> then y

[PATCH] net: hns: fix boolreturn.cocci warnings

2017-03-31 Thread kbuild test robot
drivers/net/ethernet/hisilicon/hns/hns_enet.c:1548:8-9: WARNING: return of 0/1 in function 'hns_enable_serdes_lb' with return type bool Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: lipeng Signed-

[PATCH v6 0/2] mmc: host: s3cmci: add device tree support

2017-03-31 Thread Sergio Prado
This series adds support for configuring Samsung's S3C24XX MMC/SD/SDIO controller via device tree. Tested on FriendlyARM mini2440, based on s3c2440 SoC. Changes since v5 (as reported by Arnd Bergmann) - fix module device table name that was causing an error when building the driver as a module

[PATCH v6 1/2] dt-bindings: mmc: add DT binding for S3C24XX MMC/SD/SDIO controller

2017-03-31 Thread Sergio Prado
Adds the device tree bindings description for Samsung S3C24XX MMC/SD/SDIO controller, used as a connectivity interface with external MMC, SD and SDIO storage mediums. Acked-by: Rob Herring Signed-off-by: Sergio Prado --- .../devicetree/bindings/mmc/samsung,s3cmci.txt | 42 ++

[PATCH v6 2/2] mmc: host: s3cmci: allow probing from device tree

2017-03-31 Thread Sergio Prado
Allows configuring Samsung S3C24XX MMC/SD/SDIO controller using a device tree. Signed-off-by: Sergio Prado --- drivers/mmc/host/s3cmci.c | 257 +++--- 1 file changed, 126 insertions(+), 131 deletions(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc

Re: [PATCH 11/16] fpga: intel: fme: add partial reconfiguration sub feature support

2017-03-31 Thread kbuild test robot
Hi Kang, [auto build test WARNING on linus/master] [also build test WARNING on v4.11-rc4 next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Wu-Hao/Intel-FPGA-Device-Drivers/20170401

[PATCH] net: ethernet: ti: cpsw: wake tx queues on ndo_tx_timeout

2017-03-31 Thread Grygorii Strashko
In case, if TX watchdog is fired some or all netdev TX queues will be stopped and as part of recovery it is required not only to drain and reinitailize CPSW TX channeles, but also wake up stoppted TX queues what doesn't happen now and netdevice will stop transmiting data until reopenned. Hence, ad

[PATCH v4 3/5] watchdog: iTCO_wdt: Add PMC specific noreboot update api

2017-03-31 Thread Kuppuswamy Sathyanarayanan
In some SOCs, setting noreboot bit needs modification to PMC GC registers. But not all PMC drivers allow other drivers to memory map their GC region. This could create mem request conflict in watchdog driver. So this patch adds facility to allow PMC drivers to pass noreboot update function to watch

[PATCH v4 1/5] platform/x86: intel_pmc_ipc: fix gcr offset

2017-03-31 Thread Kuppuswamy Sathyanarayanan
According to Broxton APL PMC spec, gcr mem region starts at offset 0x1000 from ipc mem base address. In this driver, PLAT_RESOURCE_GCR_OFFSET macro defines the offset of GCR memory region from IPC mem region. So we should use 0x1000(4K) as GCR offset. But currently this driver uses 0x1008 as GCT of

[PATCH v4 2/5] platform/x86: intel_pmc_ipc: Add pmc gcr read/write/update api's

2017-03-31 Thread Kuppuswamy Sathyanarayanan
This patch adds API's to read/write/update PMC GC registers. PMC dependent devices like iTCO_WDT, Telemetry has requirement to acces GCR registers. These API's can be used for this purpose. Signed-off-by: Kuppuswamy Sathyanarayanan --- arch/x86/include/asm/intel_pmc_ipc.h | 21 drivers

[PATCH v4 5/5] platform/x86: intel_pmc_ipc: use gcr mem base for S0ix counter read

2017-03-31 Thread Kuppuswamy Sathyanarayanan
To maintain the uniformity in accessing GCR registers, this patch modifies the S0ix counter read function to use GCR address base instead of ipc address base. Signed-off-by: Kuppuswamy Sathyanarayanan Reviewed-by: Rajneesh Bhardwaj Tested-by: Shanth Murthy --- arch/x86/include/asm/intel_pmc_i

[PATCH v4 4/5] platform/x86: intel_pmc_ipc: Fix iTCO GCS memory mapping failure

2017-03-31 Thread Kuppuswamy Sathyanarayanan
iTCO watchdog driver need access to PMC_CFG GCR register to modify the no reboot setting. Currently, this is done by passing PMC_CFG reg address as memory resource to watchdog driver and allowing it directly modify the PMC_CFG register. But currently PMC driver also has requirement to memory map th

Re: [BUG nohz]: wrong user and system time accounting

2017-03-31 Thread Frederic Weisbecker
On Fri, Mar 31, 2017 at 04:09:10PM -0400, Luiz Capitulino wrote: > On Thu, 30 Mar 2017 17:25:46 -0400 > Luiz Capitulino wrote: > > > On Thu, 30 Mar 2017 16:18:17 +0200 > > Frederic Weisbecker wrote: > > > > > On Thu, Mar 30, 2017 at 09:59:54PM +0800, Wanpeng Li wrote: > > > > 2017-03-30 21:38

Re: dwc2_hc_chhltd_intr_dma - ChHltd set errors?

2017-03-31 Thread John Stultz
On Thu, Mar 2, 2017 at 12:00 PM, John Stultz wrote: > Hey John, > We've noticed that when using usb ethernet adapters on HiKey, we > occasionally see errors like: > > dwc2 f72c.usb: dwc2_hc_chhltd_intr_dma: Channel 0 - ChHltd set, > but reason is unknown > dwc2 f72c.usb: hcint 0x0002

Re: [PATCH V8 5/6] ACPI: Support the probing on the devices which apply indirect-IO

2017-03-31 Thread Rafael J. Wysocki
On Fri, Mar 31, 2017 at 8:52 AM, zhichang.yuan wrote: > Hi, Rafael, > > Thanks for reviewing this! > > On 2017/3/31 4:31, Rafael J. Wysocki wrote: >> On Thursday, March 30, 2017 11:26:58 PM zhichang.yuan wrote: >>> On some platforms(such as Hip06/Hip07), the legacy ISA/LPC devices access >>> I/O

[PATCH] ACPI / scan: Prefer devices without _HID for _ADR matching

2017-03-31 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Commit c2a6bbaf0c5f (ACPI / scan: Prefer devices without _HID/_CID for _ADR matching) added a list_empty(&adev->pnp.ids) check to find_child_checks() so as to catch situations in which the ACPI core attempts to decode _ADR for a device having a _HID too which is strictly a

[PATCH] sparc64: Fix memory corruption when THP is enabled

2017-03-31 Thread Nitin Gupta
The memory corruption was happening due to incorrect TLB/TSB flushing of hugepages. Reported-by: David S. Miller Signed-off-by: Nitin Gupta --- arch/sparc/mm/tlb.c | 6 +++--- arch/sparc/mm/tsb.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/sparc/mm/tlb.c b/arch

Re: [PATCH v5 2/2] mmc: host: s3cmci: allow probing from device tree

2017-03-31 Thread Sergio Prado
On Fri, Mar 31, 2017 at 01:11:59PM +0200, Ulf Hansson wrote: > On 31 March 2017 at 09:25, Arnd Bergmann wrote: > > On Sat, Mar 18, 2017 at 2:13 AM, Sergio Prado > > wrote: > > > >> > >> +static const struct of_device_id s3cmci_dt_match[] = { > >> + { > >> + .compatible = "sams

[PATCH] um: Fix PTRACE_POKEUSER on x86_64

2017-03-31 Thread Richard Weinberger
This is broken since ever but sadly nobody noticed. Recent versions of GDB set DR_CONTROL unconditionally and UML dies due to a heap corruption. It turns out that the PTRACE_POKEUSER was copy&pasted from i386 and assumes that addresses are 4 bytes long. Fix that by using 8 as address size in the c

Re: [RFC 1/8] Introduce Peer-to-Peer memory (p2pmem) device

2017-03-31 Thread Logan Gunthorpe
On 31/03/17 03:38 PM, Sinan Kaya wrote: > On 3/31/2017 5:23 PM, Logan Gunthorpe wrote: >> What exactly would you white/black list? It can't be the NIC or the >> disk. If it's going to be a white/black list on the switch or root port >> then you'd need essentially the same code to ensure they are

Re: memory hotplug and force_remove

2017-03-31 Thread Rafael J. Wysocki
On Friday, March 31, 2017 02:02:36 PM Michal Hocko wrote: > On Fri 31-03-17 19:55:30, Joey Lee wrote: > > On Fri, Mar 31, 2017 at 12:55:05PM +0200, Michal Hocko wrote: > > > On Fri 31-03-17 18:49:05, Joey Lee wrote: > > > > Hi Michal, > > > > > > > > On Fri, Mar 31, 2017 at 10:30:17AM +0200, Micha

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-31 Thread Andrew Duggan
On 03/31/2017 01:57 AM, Benjamin Tissoires wrote: On Mar 29 2017 or thereabouts, Andrew Duggan wrote: On 03/29/2017 01:50 AM, Benjamin Tissoires wrote: On Mar 28 2017 or thereabouts, Andrew Duggan wrote: On 03/19/2017 10:00 PM, Peter Hutterer wrote: On Fri, Mar 17, 2017 at 12:23:36PM -0700,

Re: [PATCH v2] module: check if memory leak by module.

2017-03-31 Thread Jessica Yu
+++ Vaneet Narang [29/03/17 09:23 +]: Hi, Hmm, how can you track _all_ vmalloc allocations done on behalf of the module? It is quite some time since I've checked kernel/module.c but from my vague understading your check is basically only about statically vmalloced areas by module loader. Is

Re: [PATCH 6/8] bio-integrity: add bio_integrity_setup helper

2017-03-31 Thread kbuild test robot
Hi Dmitry, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4] [cannot apply to block/for-next next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dmitry

Re: [PATCH v2] tracing/kprobes: expose maxactive for kretprobe in kprobe_events

2017-03-31 Thread Masami Hiramatsu
On Fri, 31 Mar 2017 10:08:39 -0400 Steven Rostedt wrote: > On Fri, 31 Mar 2017 15:20:24 +0200 > Alban Crequy wrote: > > > When a kretprobe is installed on a kernel function, there is a maximum > > limit of how many calls in parallel it can catch (aka "maxactive"). A > > kernel module could call

Re: [PATCH 7/8] T10: Move opencoded contants to common header

2017-03-31 Thread kbuild test robot
Hi Dmitry, [auto build test ERROR on linus/master] [also build test ERROR on v4.11-rc4] [cannot apply to block/for-next next-20170331] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dmitry

  1   2   3   4   5   6   7   8   >