Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Al Viro
On Tue, Aug 30, 2016 at 10:02:38AM -0700, Linus Torvalds wrote: > On Tue, Aug 30, 2016 at 6:04 AM, Josh Poimboeuf wrote: > > There are three usercopy warnings which are currently being silenced for > > gcc 4.6 and newer: > > [.. snip snip ..] > > Ok, I'm not entirely happy with the timing, but I

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Linus Torvalds
On Tue, Aug 30, 2016 at 11:12 AM, Al Viro wrote: > > The only thing in my pile it conflicts with is this: Ok, no worries then. Linus

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Ilia Mirkin
On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer wrote: > I configured bbswitch to not set any states automatically... > So it's possible to obtain and verify the GPU power state. > > However I removed the bbswitch module and booted with nouveau. > > Kernel 4.7.2: nouveau switches the discrete GPU o

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Kees Cook
On Tue, Aug 30, 2016 at 1:02 PM, Linus Torvalds wrote: > On Tue, Aug 30, 2016 at 6:04 AM, Josh Poimboeuf wrote: >> There are three usercopy warnings which are currently being silenced for >> gcc 4.6 and newer: > > [.. snip snip ..] > > Ok, I'm not entirely happy with the timing, but I think the p

Re: [PATCH] nfsd: more robust allocation failure handling in nfsd_reply_cache_init

2016-08-30 Thread Linus Torvalds
On Tue, Aug 30, 2016 at 4:48 AM, Jeff Layton wrote: > > While this would be good to get in, I don't see any particular urgency > here. This seems like it'd be reasonable for v4.9. Agreed, looks ok to me. It certainly does not look like a new regression or like a serious problem issue in practice.

Re: [PATCH RFC UGLY] x86,mm,sched: make lazy TLB mode even lazier

2016-08-30 Thread Andy Lutomirski
On Mon, Aug 29, 2016 at 6:14 PM, H. Peter Anvin wrote: > On August 29, 2016 4:55:02 PM PDT, Andy Lutomirski > wrote: >>On Aug 29, 2016 7:54 AM, "Rik van Riel" wrote: >>> >>> On Sun, 2016-08-28 at 01:11 -0700, Andy Lutomirski wrote: >>> > On Aug 25, 2016 9:06 PM, "Rik van Riel" wrote: >>> > > >

Re: [PATCH] char: hw_random: bcm2835: handle of_iomap failures in bcm2835 driver

2016-08-30 Thread Eric Anholt
Arvind Yadav writes: > Check return value of of_iomap and handle errors correctly. > > Signed-off-by: Arvind Yadav Acked-by: Eric Anholt signature.asc Description: PGP signature

Re: [PATCH] ACPI: CPPC: Support PCC with interrupt flag

2016-08-30 Thread Hoan Tran
On Thu, Jul 21, 2016 at 2:07 PM, Hoan Tran wrote: > For PCC mailbox with interrupt flag, CPPC should call mbox_chan_txdone() > function to notify the mailbox framework about TX completion. > > Signed-off-by: Hoan Tran > --- > This patch is tested on top and depends on patch[1]: > [1] http://www.s

[PATCH] ASoC: tlv320dac33: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "dac33_wq" queues a single work item &dac33->work and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, it has been converted to use system_wq. The work item has been flushed in dac33_soc_remove to ensure that there are no pending tasks while

Re: [PATCH -v2] mm: Don't use radix tree writeback tags for pages in swap cache

2016-08-30 Thread Rik van Riel
On Tue, 2016-08-30 at 10:28 -0700, Huang, Ying wrote: > From: Huang Ying > > File pages use a set of radix tree tags (DIRTY, TOWRITE, WRITEBACK, > etc.) to accelerate finding the pages with a specific tag in the > radix > tree during inode writeback.  But for anonymous pages in the swap > cache,

[PATCH v2] ASoC: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "dac33_wq" queues a single work item &dac33->work and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, it has been converted to use system_wq. The work item has been flushed in dac33_soc_remove to ensure that there are no pending tasks while

Re: [PATCH 2/2] mm/usercopy: enable usercopy size checking for modern versions of gcc

2016-08-30 Thread Kees Cook
On Mon, Aug 29, 2016 at 10:48 AM, Josh Poimboeuf wrote: > On Fri, Aug 26, 2016 at 05:37:20PM -0700, Linus Torvalds wrote: >> On Fri, Aug 26, 2016 at 1:56 PM, Josh Poimboeuf wrote: >> > >> > There's one problem with that though. It's going to annoy a lot of >> > people who do allyesconfig/allmodc

Re: [RFC][PATCH] Fix a race between rwsem and the scheduler

2016-08-30 Thread Peter Zijlstra
On Tue, Aug 30, 2016 at 06:57:47PM +0200, Oleg Nesterov wrote: > On 08/30, Peter Zijlstra wrote: > > On Tue, Aug 30, 2016 at 03:04:27PM +0200, Oleg Nesterov wrote: > > > But context switch should imply mb() we can rely on? > > > > Not sure it should, on x86 switch_mm does a CR3 write and that is >

Bisected: Kernel deadlock bug related to cgroups.

2016-08-30 Thread Brent Lovelace
I found a kernel deadlock regression bug introduced in the 4.4 kernel. This bug occurs when running an ftp send-to-self test. We used libcurl against a ftp server. We are requesting to download a 45k file at about 17 times per second. It locks up on its own after about 5 minutes. It will happe

Re: [PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-30 Thread Jarkko Sakkinen
On Tue, Aug 30, 2016 at 12:07:01PM -0600, Jason Gunthorpe wrote: > On Tue, Aug 30, 2016 at 01:51:06AM +0300, Jarkko Sakkinen wrote: > > Unseal and load operations should be done as an atomic operation. This > > commit introduces unlocked tpm_transmit() so that tpm2_unseal_trusted() > > can do the l

Re: [PATCH 2/2] clk: mvebu: dynamically allocate resources in Armada CP110 system controller

2016-08-30 Thread Stephen Boyd
On 08/30, Marcin Wojtas wrote: > 2016-08-25 2:16 GMT+02:00 Stephen Boyd : > > On 08/23, Marcin Wojtas wrote: > >> @@ -335,10 +343,12 @@ static int cp110_syscon_clk_probe(struct > >> platform_device *pdev) > >> cp110_clks[CP110_MAX_CORE_CLOCKS + i] = clk; > >> } > >> > >> -

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-08-30 Thread Andy Lutomirski
On Aug 30, 2016 10:02 AM, "Chris Metcalf" wrote: > > On 8/30/2016 12:30 PM, Andy Lutomirski wrote: >> >> On Tue, Aug 30, 2016 at 8:32 AM, Chris Metcalf wrote: >>> >>> On 8/30/2016 3:58 AM, Peter Zijlstra wrote: On Mon, Aug 29, 2016 at 12:40:32PM -0400, Chris Metcalf wrote: > > O

Re: [PATCH v3 1/2] input: misc: Add generic input driver to read encoded GPIO lines

2016-08-30 Thread Tony Lindgren
* Dmitry Torokhov [160829 20:26]: > Applied, thank you. > > DTS change should go through some other tree though. Thanks I'm picking up the dts patch into omap-for-v4.9/dt. Tony

Re: [RESEND PATCH v3 1/3] ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes

2016-08-30 Thread Tony Lindgren
* Kishon Vijay Abraham I [160830 04:06]: > Hi Tony, > > On Friday 26 August 2016 09:00 PM, Tony Lindgren wrote: > > * Kishon Vijay Abraham I [160810 05:34]: > >> Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" > >> property to assign a PCI domain number to each of the host > >>

[PATCH 0/9] staging: octeon: multi rx group (queue) support

2016-08-30 Thread Aaro Koskinen
Hi, This series implements multiple RX group support that should improve the networking performance on multi-core OCTEONs. Basically we register IRQ and NAPI for each group, and ask the HW to select the group for the incoming packets based on hash. Tested on EdgeRouter Lite with a simple forwardi

[PATCH 3/9] staging: octeon: pass the NAPI instance reference to irq handler

2016-08-30 Thread Aaro Koskinen
Pass the NAPI instance reference to the interrupt handler. This is preparation for having multiple NAPI instances. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.

[PATCH 4/9] staging: octeon: move common poll code into a separate function

2016-08-30 Thread Aaro Koskinen
Move common poll code into a separate function. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 29 +++-- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c i

[PATCH 1/9] staging: octeon: disable rx interrupts in oct_rx_shutdown

2016-08-30 Thread Aaro Koskinen
Disable RX interrupts in oct_rx_shutdown(). This way we don't need to expose the RX IRQ numbers outside the RX module. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 9 + drivers/staging/octeon/ethernet.c| 9 - 2 files changed, 9 insertions(+), 9 dele

[PATCH 9/9] staging: octeon: enable taking multiple rx groups into use

2016-08-30 Thread Aaro Koskinen
Enable taking multiple RX groups into use. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet.c | 42 +-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index

[PATCH 2/9] staging: octeon: use passed interrupt number in the handler

2016-08-30 Thread Aaro Koskinen
Use passed interrupt number in the handler, so we can avoid using the global variable. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/et

[PATCH 5/9] staging: octeon: create a struct for rx group specific data

2016-08-30 Thread Aaro Koskinen
Create a struct for RX group specific data. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index 140e8af..65f601

[PATCH 6/9] staging: octeon: move irq into rx group specific data

2016-08-30 Thread Aaro Koskinen
Move IRQ number into RX group specific data. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index 65f6013..77

Re: constification and cocci / kernel build test robot ?

2016-08-30 Thread Kees Cook
On Sun, Aug 28, 2016 at 9:13 AM, Julia Lawall wrote: > [Adding Kees, in case it's of interest] > > Below is the list of types of top-level initialized structures and the > number that are const. For quicker reading, here are some that are > sometimes const (numerator), but not always (denominator

[PATCH 7/9] staging: octeon: move group number into rx group data

2016-08-30 Thread Aaro Koskinen
Move group number into RX group data. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c index 776003c..668aee

Re: [PATCHv2 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare

2016-08-30 Thread Richard Guy Briggs
On 2016-08-23 16:20, Mateusz Guzik wrote: > audit_exe_compare directly accesses mm->exe_file without making sure the > object is stable. Fixing it using current primitives results in > partially duplicating what proc_exe_link is doing. > > As such, introduce a trivial helper which can be used in b

[PATCH 8/9] staging: octeon: support enabling multiple rx groups

2016-08-30 Thread Aaro Koskinen
Support enabling multiple RX groups. Signed-off-by: Aaro Koskinen --- drivers/staging/octeon/ethernet-rx.c | 126 ++- drivers/staging/octeon/ethernet.c| 6 +- drivers/staging/octeon/octeon-ethernet.h | 2 +- 3 files changed, 81 insertions(+), 53 deleti

Re: [PATCH 1/2] tracing/syscalls: allow multiple syscall numbers per syscall

2016-08-30 Thread Andy Lutomirski
On Tue, Aug 30, 2016 at 1:14 AM, Marcin Nowakowski wrote: > > > On 30.08.2016 01:55, Andy Lutomirski wrote: >> >> On Aug 29, 2016 11:30 AM, "Marcin Nowakowski" >> wrote: >>> >>> >>> Syscall metadata makes an assumption that only a single syscall number >>> corresponds to a given method. This is t

Re: [PATCH v14 04/14] task_isolation: add initial support

2016-08-30 Thread Chris Metcalf
On 8/30/2016 1:36 PM, Chris Metcalf wrote: See the other thread with Peter Z for the longer discussion of this. At this point I'm leaning towards replacing the set_tsk_need_resched() with set_current_state(TASK_INTERRUPTIBLE); schedule(); __set_current_state(TASK_RUNNING); I don'

[PATCH V2 2/4] x86/mce, PCI: Provide quirks to identify Xeon models with machine check recovery

2016-08-30 Thread Luck, Tony
Each Xeon includes a number of capability registers in PCI space that describe some features not enumerated by CPUID. Use these to determine that we are running on a model that can recover from machine checks. Hooks for Ivybridge ... Skylake provided. Signed-off-by: Tony Luck --- V2: Boris & Li

Re: [RFC v2 09/10] landlock: Handle cgroups (performance)

2016-08-30 Thread Andy Lutomirski
On Sun, Aug 28, 2016 at 2:42 AM, Mickaël Salaün wrote: > > > On 28/08/2016 10:13, Andy Lutomirski wrote: >> On Aug 27, 2016 11:14 PM, "Mickaël Salaün" wrote: >>> >>> >>> On 27/08/2016 22:43, Alexei Starovoitov wrote: On Sat, Aug 27, 2016 at 09:35:14PM +0200, Mickaël Salaün wrote: > On 27

Re: [RFC v2 06/10] landlock: Add LSM hooks

2016-08-30 Thread Andy Lutomirski
On Aug 25, 2016 12:34 PM, "Mickaël Salaün" wrote: > > Add LSM hooks which can be used by userland through Landlock (eBPF) > programs. This programs are limited to a whitelist of functions (cf. > next commit). The eBPF program context is depicted by the struct > landlock_data (cf. include/uapi/linu

Re: [PATCH v2] ASoC: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread kbuild test robot
Hi Bhaktipriya, [auto build test ERROR on asoc/for-next] [also build test ERROR on v4.8-rc4 next-20160825] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to reco

Re: [PATCH v3] time: alarmtimer: Add the trcepoints for alarmtimer

2016-08-30 Thread John Stultz
On Tue, Aug 30, 2016 at 4:50 AM, Baolin Wang wrote: > Hi, > > On 22 August 2016 at 12:23, Baolin Wang wrote: >> For system debugging, we usually want to know who sets one alarm timer, the >> time of the timer, when the timer started and fired and so on. Thus adding >> tracepoints can help us trac

[PATCH 2/2] fusion: mptbase: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueues "ioc->reset_work_q" and "ioc->fw_event_q" queue a single work item &ioc->fault_reset_work and &fw_event->work, respectively and hence don't require ordering. Hence, they have been converted to use alloc_workqueue(). The WQ_MEM_RECLAIM flag has been set to ensure forward progress und

[PATCH 1/9] staging: sm750fb: fix line length coding style issue in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix a line length warning found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c inde

[PATCH 3/9] staging: sm750fb: fix coding style issues in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix line length and block comment * prefix warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/sta

[PATCH 2/9] staging: sm750fb: fix line length coding style issue in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix a line length warning found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c

[PATCH 7/9] staging: sm750fb: fix block comment style issues in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix block comment * prefix and trailing */ warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/st

[PATCH 8/9] staging: sm750fb: fix line length coding style issue in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix a line length warning found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c i

[PATCH 6/9] staging: sm750fb: fix line length coding style issue in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix a line length warning found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c i

[PATCH 9/9] staging: sm750fb: fix line length coding style issue in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix a line length warning found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c i

[PATCH v2] cfg80211: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "cfg80211_wq" is involved in cleanup, scan and event related works. It queues multiple work items &rdev->event_work, &rdev->dfs_update_channels_wk, &wiphy_to_rdev(request->wiphy)->scan_done_wk, &wiphy_to_rdev(wiphy)->sched_scan_results_wk, which require strict execution ordering. Henc

[PATCH 4/9] staging: sm750fb: fix coding style issues in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix line length and block comment * prefix warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/s

[PATCH 5/9] staging: sm750fb: fix coding style issues in ddk750_chip.c

2016-08-30 Thread Moshe Green
Fix line length and block comment * prefix warnings found by the checkpatch.pl tool in ddk750_chip.c. Signed-off-by: Moshe Green --- drivers/staging/sm750fb/ddk750_chip.c | 31 --- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/drivers/staging/sm750fb

[PATCH 1/2] perf_event: remove unused DEBUG_PERF_USE_VMALLOC

2016-08-30 Thread Kim Phillips
This 'DEBUG'-prefixed version of PERF_USE_VMALLOC is not used anywhere. It appears to be leftovers from commit 906010b "perf_event: Provide vmalloc() based mmap() backing" that introduced it. Not sure what commit cb30711 "perf_event: Don't allow vmalloc() backed perf on powerpc" was trying to do w

[PATCH 2/2] arm64: don't select PERF_USE_VMALLOC by default

2016-08-30 Thread Kim Phillips
Any arm64 based parts that have cache aliasing issues can set it manually. Apparently dragged in from ARM(32) defaults in commit 8c2c3df "arm64: Build infrastructure". Signed-off-by: Kim Phillips Cc: Catalin Marinas --- arch/arm64/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch

[PATCH 0/2] fusion: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
This patch set removes deprecated create_singlethread_workqueue instances from drivers/message Bhaktipriya Shridhar (2): fusion/mptfc: Remove deprecated create_singlethread_workqueue fusion: mptbase: Remove deprecated create_singlethread_workqueue drivers/message/fusion/mptbase.c | 7 ---

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Josh Poimboeuf
On Tue, Aug 30, 2016 at 02:15:58PM -0400, Kees Cook wrote: > static inline __must_check unsigned long __copy_from_user(void *to, >const void __user *from, unsigned long n) > { > int dest_size = __compiletime_object_size(to); > > might_fault(); > /* K

[PATCH v10 2/4] i2c: tegra: add separate function for config_load programing

2016-08-30 Thread Shardar Shariff Md
Define separate function for configuration load register handling to make it use by different functions later. Signed-off-by: Shardar Shariff Md --- Changes in v2: - Remove unnecessary paranthesis and align to 80 characters per line Changes in v3: - Add separate function for config load handlin

[PATCH v10 1/4] i2c: tegra: use readl_poll_timeout after config_load reg programmed

2016-08-30 Thread Shardar Shariff Md
After CONFIG_LOAD register is programmed instead of explicitly waiting for timeout, use readl_poll_timeout() to check for register value to get updated or wait till timeout. Signed-off-by: Shardar Shariff Md --- Changes in v4: - Split timeout calculation to separate patch Changes in v5: - Move d

[PATCH v10 3/4] i2c: tegra: use atomic poll function during configuration

2016-08-30 Thread Shardar Shariff Md
Use readl_poll_timeout_atomic() function as *wait_for_config_load() function can be called from atomic context. Signed-off-by: Shardar Shariff Md --- Changes in v10: - Rebase on top of [PATCH V2 0/9] Some Tegra I2C Updates --- --- drivers/i2c/busses/i2c-tegra.c | 9 +++-- 1 file changed, 7

[PATCH v10 4/4] i2c: tegra: proper handling of error cases

2016-08-30 Thread Shardar Shariff Md
To summarize the issue observed in error cases: SW Flow: For i2c message transfer, packet header and data payload is posted and then required error/packet completion interrupts are enabled later. HW flow: HW process the packet just after packet header is posted, if ARB lost/NACK error occurs (SW

[PATCH 1/2] fusion/mptfc: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "fc_rescan_work_q" queues multiple work items viz &ioc->fc_rescan_work, &ioc->fc_lsc_work, &ioc->fc_setup_reset_work, which require strict execution ordering. Hence, an ordered dedicated workqueue has been used. WQ_MEM_RECLAIM has been set since the workqueue is belongs to a storage

[PATCH] Enable code completion in VIM

2016-08-30 Thread Mathieu Maret
Vim, with the omnicppcomplete(#1) plugin, can do code completion using information build by ctags. Add flags needed by omnicppcomplete(#2) to have completion on member of structure. 1: https://github.com/vim-scripts/omnicppcomplete 2: https://github.com/vim-scripts/OmniCppComplete/blob/master/doc

Re: [PATCH 07/11] Input: synaptics-rmi4 - f30/f03: Forward mechanical buttons on buttonpads to PS/2 guest

2016-08-30 Thread Andrew Duggan
On 08/30/2016 08:13 AM, Benjamin Tissoires wrote: Hi Andrew, On Aug 26 2016 or thereabouts, Andrew Duggan wrote: Resending as plain text Hi Benjamin, This patch causes standard clickpads without extended buttons to not work. I'll explain some more below. On 08/18/2016 02:24 AM, Benjamin Tiss

RE: [PATCH v8 1/3] i2c: tegra: use readx_poll_timeout after config_load reg programmed

2016-08-30 Thread Shardar Mohammed
Hi Wolfram Sang, I have pushed below changes: PATCH v9 series with only taking care of review comment. PATCH v10 series with rebasing on top of Jon's patch series [PATCH V2 0/9] Some Tegra I2C Updates. Please review. Thanks, Shardar > -Original Message- > From: Wolfram Sang [mailto:w

Re: [PATCH 7/9] staging: sm750fb: fix block comment style issues in ddk750_chip.c

2016-08-30 Thread Joe Perches
On Tue, 2016-08-30 at 22:05 +0300, Moshe Green wrote: > Fix block comment * prefix and trailing */ warnings found > by the checkpatch.pl tool in ddk750_chip.c. [] > diff --git a/drivers/staging/sm750fb/ddk750_chip.c > b/drivers/staging/sm750fb/ddk750_chip.c [] > @@ -320,8 +320,10 @@ unsigned int c

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Kees Cook
On Tue, Aug 30, 2016 at 3:09 PM, Josh Poimboeuf wrote: > On Tue, Aug 30, 2016 at 02:15:58PM -0400, Kees Cook wrote: >> static inline __must_check unsigned long __copy_from_user(void *to, >>const void __user *from, unsigned long n) >> { >> int dest_size = __c

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Tue, Aug 30, 2016 at 02:13:46PM -0400, Ilia Mirkin wrote: > On Tue, Aug 30, 2016 at 2:02 PM, Roland Singer > wrote: > > I configured bbswitch to not set any states automatically... > > So it's possible to obtain and verify the GPU power state. > > > > However I removed the bbswitch module and b

Re: [PATCH] mlock.2: document that is a bad idea to fork() after mlock()

2016-08-30 Thread Michael Kerrisk (man-pages)
Hello Sebastian On 08/30/2016 08:59 PM, Sebastian Andrzej Siewior wrote: > fork() will remove the write PTE bit from the page table on each VMA > which will be copied via COW. A such such, the memory is available but > marked read only in the page table and will fault on write access. > This rende

Re: constification and cocci / kernel build test robot ?

2016-08-30 Thread Julia Lawall
On Tue, 30 Aug 2016, Kees Cook wrote: > On Sun, Aug 28, 2016 at 9:13 AM, Julia Lawall wrote: > > [Adding Kees, in case it's of interest] > > > > Below is the list of types of top-level initialized structures and the > > number that are const. For quicker reading, here are some that are > > som

[PATCH v3] ASoC: Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
The workqueue "dac33_wq" queues a single work item &dac33->work and hence doesn't require ordering. Also, it is not being used on a memory reclaim path. Hence, it has been converted to use system_wq. The work item has been flushed in dac33_soc_remove to ensure that there are no pending tasks while

Re: [PATCH 1/2] tracing/syscalls: allow multiple syscall numbers per syscall

2016-08-30 Thread Steven Rostedt
On Tue, 30 Aug 2016 11:52:39 -0700 Andy Lutomirski wrote: > Okay, I think I see what's going on. init_ftrace_syscalls() does: > > meta = find_syscall_meta(addr); > > Unless I'm missing some reason why this is a sensible thing to do, > this seems overcomplicated and incorrect. There i

Re: [PATCH v11 2/4] tee: generic TEE subsystem

2016-08-30 Thread Andrew F. Davis
On 08/22/2016 08:00 AM, Jens Wiklander wrote: > +/* > + * Unprivileged devices in the in the lower half range and privileged ^^ in the in the [snip] > + > + rc = alloc_chrdev_region(&tee_devt, 0, TEE_NUM_DEVICES, "tee"); > + if (rc < 0) { if (rc) ? [snip]

Re: what is the purpose of SLAB and SLUB (was: Re: [PATCH v3] mm/slab: Improve performance of gathering slabinfo) stats

2016-08-30 Thread Christoph Lameter
On Tue, 30 Aug 2016, Mel Gorman wrote: > > Userspace mapped pages can be hugepages as well as giant pages and that > > has been there for a long time. Intermediate sizes would be useful too in > > order to avoid having to keep lists of 4k pages around and continually > > scan them. > > > > Userspa

Re: [PATCH v3 1/3] firmware_class: encapsulate firmware loading status

2016-08-30 Thread Luis R. Rodriguez
On Mon, Aug 29, 2016 at 04:18:33PM +0200, Daniel Wagner wrote: > On 08/29/2016 11:50 AM, Daniel Wagner wrote: > >On 08/25/2016 07:50 PM, Luis R. Rodriguez wrote: > >>>+#else /* CONFIG_FW_LOADER_USER_HELPER */ > >>>+ > >>>+static int loading_timeout = 60; > >>>+#define firmware_loading_timeout()

Re: [PATCH 0/9] Remove deprecated create_singlethread_workqueue

2016-08-30 Thread David Howells
Bhaktipriya Shridhar wrote: > This patch set removes deprecated create_singlethread_workqueue > usages in fs/. > > Bhaktipriya Shridhar (9): > fs/afs/vlocation: Remove deprecated create_singlethread_workqueue > fs/afs/rxrpc: Remove deprecated create_singlethread_workqueue > fs/afs/callback

[PATCH net-next 1/1] rxrpc: Don't expose skbs to in-kernel users [ver #2]

2016-08-30 Thread David Howells
Don't expose skbs to in-kernel users, such as the AFS filesystem, but instead provide a notification hook the indicates that a call needs attention and another that indicates that there's a new call to be collected. This makes the following possibilities more achievable: (1) Call refcounting can

[PATCH net-next 0/1] rxrpc: Remove use of skbs from AFS [ver #2]

2016-08-30 Thread David Howells
patch can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-rewrite Tagged thusly: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rewrite-20160830-2v2 David --- David Howells (1): rxrpc: Do

Re: [PATCH 7/9] staging: sm750fb: fix block comment style issues in ddk750_chip.c

2016-08-30 Thread moshe green
Will do. Thanks On 30 August 2016 at 22:19, Joe Perches wrote: > On Tue, 2016-08-30 at 22:05 +0300, Moshe Green wrote: >> Fix block comment * prefix and trailing */ warnings found >> by the checkpatch.pl tool in ddk750_chip.c. > [] >> diff --git a/drivers/staging/sm750fb/ddk750_chip.c >> b/drive

Re: [PATCH 3/3] soc: ti: Add ti_sci_pm_domains driver

2016-08-30 Thread Dave Gerlach
Jon, Ulf, On 08/26/2016 06:37 PM, Dave Gerlach wrote: Hi, On 08/25/2016 02:27 AM, Ulf Hansson wrote: + Jon [...] + +static int ti_sci_pm_domains_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device_node *np = dev->of_node; + struct ti_sci

Re: [PATCH] iio: fix pressure data output unit in hid-sensor-attributes

2016-08-30 Thread Pandruvada, Srinivas
On Mon, 2016-08-29 at 18:50 +0800, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > According to IIO ABI definition, IIO_PRESSURE data output unit is > kilopascal: > http://lxr.free-electrons.com/source/Documentation/ABI/testing/sysfs- > bus-iio > > This patch fix output unit of HID pressu

Re: [RFC v2 00/10] Landlock LSM: Unprivileged sandboxing

2016-08-30 Thread Mickaël Salaün
On 30/08/2016 18:06, Andy Lutomirski wrote: > On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: >> Hi, >> >> This series is a proof of concept to fill some missing part of seccomp as the >> ability to check syscall argument pointers or creating more dynamic security >> policies. The goal of

Re: [PATCH v8 09/11] doc: bindings: mfd: act8945a: Update the example

2016-08-30 Thread Rob Herring
On Thu, Aug 25, 2016 at 03:38:35PM +0800, Wenyou Yang wrote: > Since the act8945a-charger is regarded as a sub-device and it using > "interrupts" property, update the examples section. > > Signed-off-by: Wenyou Yang > --- > > Changes in v8: None > Changes in v7: None > Changes in v6: None > Chan

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-08-30 Thread Andy Lutomirski
On Tue, Aug 30, 2016 at 12:37 PM, Chris Metcalf wrote: > On 8/30/2016 2:43 PM, Andy Lutomirski wrote: >> >> On Aug 30, 2016 10:02 AM, "Chris Metcalf" wrote: >>> >>> On 8/30/2016 12:30 PM, Andy Lutomirski wrote: On Tue, Aug 30, 2016 at 8:32 AM, Chris Metcalf wrote: > > The

Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-30 Thread Pavel Machek
> > > I would warn and try to continue regardless (which was the original > > > plan here AFAICS), or we change a possible data loss into a guaranteed > > > one. > > > > > > IMO it is sufficient to give up when a PFN we have image data for is > > > not pfn_valid() during resume, which we do alrea

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Peter Wu
On Mon, Aug 29, 2016 at 11:02:10AM -0500, Bjorn Helgaas wrote: > [+cc linux-acpi, linux-kernel, dri-devel] > > Hi Roland, > > I have no idea how to debug this problem. Are you seeing something > that suggests it may be a PCI problem? Yes I suspect there is an ACPI and/ or PCI problem, possibly

[PATCH RFC v4] x86,mm,sched: make lazy TLB mode even lazier

2016-08-30 Thread Rik van Riel
On Sat, 27 Aug 2016 16:02:25 -0700 Linus Torvalds wrote: > The only remaining comment is that I'd make that > lazy_tlb_can_skip_flush() function just use a switch table for the > tlbstate comparisons rather than the repeated conditionals. After staring at the code for an hour or so yesterday, I

Re: [PATCH] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-08-30 Thread Rob Herring
On Thu, Aug 25, 2016 at 10:44:08AM +0100, Richard Fitzgerald wrote: > This patch adds DT settings for the max_channels_clocked, spk_fmt and > spk_mute pdata. > > Signed-off-by: Richard Fitzgerald > --- > Documentation/devicetree/bindings/mfd/arizona.txt | 11 > drivers/mfd/arizona-core.

Re: [PATCH 1/2] tracing/syscalls: allow multiple syscall numbers per syscall

2016-08-30 Thread Andy Lutomirski
On Tue, Aug 30, 2016 at 12:29 PM, Steven Rostedt wrote: > On Tue, 30 Aug 2016 11:52:39 -0700 > Andy Lutomirski wrote: > > >> Okay, I think I see what's going on. init_ftrace_syscalls() does: >> >> meta = find_syscall_meta(addr); >> >> Unless I'm missing some reason why this is a sensible

Re: [RFC v2 00/10] Landlock LSM: Unprivileged sandboxing

2016-08-30 Thread Andy Lutomirski
On Tue, Aug 30, 2016 at 12:51 PM, Mickaël Salaün wrote: > > On 30/08/2016 18:06, Andy Lutomirski wrote: >> On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: >>> Hi, >>> >>> This series is a proof of concept to fill some missing part of seccomp as >>> the >>> ability to check syscall argumen

[PATCH] rtc: changed raw spi calls to register map calls

2016-08-30 Thread RAGHAVENDRA GANIGA
>From 2ec82b6c9b99647e31d26c4c828dc7c51af8a633 Mon Sep 17 00:00:00 2001 From: Raghavendra Ganiga Date: Wed, 31 Aug 2016 01:13:30 +0530 Subject: [PATCH] rtc: changed raw spi calls to register map calls This patch changes calls of spi read write calls to register map read and write calls Signed-of

Re: [PATCH 0/9] Remove deprecated create_singlethread_workqueue

2016-08-30 Thread Bhaktipriya Shridhar
Hello David, I'll mail another patchset with AFS, ocfs2 and nfsd patches separated out. Thanks, Bhaktipriya On Wed, Aug 31, 2016 at 1:06 AM, David Howells wrote: > Bhaktipriya Shridhar wrote: > >> This patch set removes deprecated create_singlethread_workqueue >> usages in fs/. >> >> Bhaktip

Re: [PATCH] blk-mq: abstract tag allocation out into scale_bitmap library

2016-08-30 Thread Omar Sandoval
On Mon, Aug 29, 2016 at 04:40:03PM -0700, Omar Sandoval wrote: > From: Omar Sandoval > > This is a generally useful data structure, so make it available to > anyone else who might want to use it. It's also a nice cleanup > separating the allocation logic from the rest of the tag handling logic. >

RE: [PATCH v3] Added perf functionality to mmdc driver

2016-08-30 Thread Zhengyu Shen
> Hi, > > On Tue, Aug 30, 2016 at 07:43:29PM +0800, Shawn Guo wrote: > > On Mon, Aug 29, 2016 at 11:06:44AM -0500, Zhi Li wrote: > > > On Wed, Aug 17, 2016 at 2:42 PM, Zhengyu Shen > wrote: > > > > MMDC is a multi-mode DDR controller that supports DDR3/DDR3L > > > > x16/x32/x64 and LPDDR2 two cha

Re: [PATCH] drm/nouveau: silence warnings reported during builds with W=1

2016-08-30 Thread Arnd Bergmann
On Tuesday 30 August 2016, Baoyou Xie wrote: > We get some warnings when building kernel with W=1: > drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c:222:1: warning: no previous > prototype for 'gf117_grctx_generate_main' [-Wmissing-prototypes] > drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c:2

Re: [RFC v2 06/10] landlock: Add LSM hooks

2016-08-30 Thread Mickaël Salaün
On 30/08/2016 20:56, Andy Lutomirski wrote: > On Aug 25, 2016 12:34 PM, "Mickaël Salaün" wrote: >> >> Add LSM hooks which can be used by userland through Landlock (eBPF) >> programs. This programs are limited to a whitelist of functions (cf. >> next commit). The eBPF program context is depicted b

Re: [PATCH v15 04/13] task_isolation: add initial support

2016-08-30 Thread Chris Metcalf
On 8/30/2016 2:43 PM, Andy Lutomirski wrote: On Aug 30, 2016 10:02 AM, "Chris Metcalf" wrote: On 8/30/2016 12:30 PM, Andy Lutomirski wrote: On Tue, Aug 30, 2016 at 8:32 AM, Chris Metcalf wrote: The basic idea is just that we don't want to be at risk from the dyntick getting enabled. Similar

Re: [PATCHv2 0/2] introduce get_task_exe_file and use it to fix audit_exe_compare

2016-08-30 Thread Mateusz Guzik
On Tue, Aug 30, 2016 at 02:50:21PM -0400, Richard Guy Briggs wrote: > On 2016-08-23 16:20, Mateusz Guzik wrote: > > audit_exe_compare directly accesses mm->exe_file without making sure the > > object is stable. Fixing it using current primitives results in > > partially duplicating what proc_exe_li

Re: [PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Al Viro
On Tue, Aug 30, 2016 at 02:15:58PM -0400, Kees Cook wrote: > First, some current API usage which we'll need to maintain at least > for now: __copy_*_user() is just copy_*_user() without the access_ok() > checks. Unfortunately, some arch implement different copying methods > depending on if the ent

Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results

2016-08-30 Thread Andy Gross
On Tue, Aug 23, 2016 at 11:38:41AM +0100, Lorenzo Pieralisi wrote: > On Mon, Aug 22, 2016 at 05:38:31PM -0700, Stephen Boyd wrote: > > [...] > > > This all comes about because the firmware generates a session id > > for the SMC call and jams it in x6. The assembly on the > > non-secure side is wr

Re: [PATCH] arm64: dts: rockchip: Explicitly set pclk_pmu_src on rk3399

2016-08-30 Thread Doug Anderson
Hi, On Tue, Aug 30, 2016 at 10:06 AM, Brian Norris wrote: > On Tue, Aug 30, 2016 at 09:05:06AM +0200, Heiko Stuebner wrote: >> Am Dienstag, 30. August 2016, 08:59:31 schrieb Elaine Zhang: >> > On 08/30/2016 02:18 AM, Brian Norris wrote: >> > > On Mon, Aug 29, 2016 at 11:11:24AM -0700, Doug Anders

[PATCH] git-send-email: Add ability to cc: any "trailers" from commit message

2016-08-30 Thread Joe Perches
Many commits have various forms of trailers similar to "Acked-by: Name " and "Reported-by: Name " Add the ability to cc these trailers when using git send-email. This can be suppressed with --suppress-cc=trailers. Signed-off-by: Joe Perches --- Documentation/git-send-email.txt | 10 ++

Re: [RFC v2 06/10] landlock: Add LSM hooks

2016-08-30 Thread Andy Lutomirski
On Tue, Aug 30, 2016 at 1:10 PM, Mickaël Salaün wrote: > > On 30/08/2016 20:56, Andy Lutomirski wrote: >> On Aug 25, 2016 12:34 PM, "Mickaël Salaün" wrote: >>> >>> Add LSM hooks which can be used by userland through Landlock (eBPF) >>> programs. This programs are limited to a whitelist of functio

Re: [PATCH 3/3] nvme: Enable autonomous power state transitions

2016-08-30 Thread Andy Lutomirski
On Mon, Aug 29, 2016 at 4:16 PM, Andy Lutomirski wrote: > On Aug 29, 2016 8:07 AM, "J Freyensee" > wrote: >> >> On Mon, 2016-08-29 at 02:25 -0700, Andy Lutomirski wrote: >> > NVME devices can advertise multiple power states. These states can >> > be either "operational" (the device is fully func

<    2   3   4   5   6   7   8   9   >