Re: [RFC][PATCH] spin loop arch primitives for busy waiting

2017-04-07 Thread Will Deacon
On Fri, Apr 07, 2017 at 01:30:11AM +1000, Nicholas Piggin wrote: > On Thu, 6 Apr 2017 15:13:53 +0100 > Will Deacon wrote: > > On Thu, Apr 06, 2017 at 10:59:58AM +1000, Nicholas Piggin wrote: > > > Thanks for taking a look. The default spin primitives should just > > > continue to do the right thin

Re: [PATCH v6 4/4] arm64/syscalls: Specific usage of verify_pre_usermode_state

2017-04-07 Thread Catalin Marinas
On Wed, Apr 05, 2017 at 11:14:34AM -0700, Thomas Garnier wrote: > On Wed, Apr 5, 2017 at 10:49 AM, Catalin Marinas > wrote: > > On Wed, Apr 05, 2017 at 07:36:17AM -0700, Thomas Garnier wrote: > >> On Wed, Apr 5, 2017 at 7:22 AM, Catalin Marinas > >> wrote: > >> > On Tue, Apr 04, 2017 at 10:47:27

[PATCH v4 2/2] usb: gadget: udc: atmel: Update Kconfig help for fifo_mode = 0

2017-04-07 Thread cristian.birsan
From: Cristian Birsan Update Kconfig help for fifo_mode = 0 to explain the behavior better. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/Kconfig b/drive

[PATCH v4 1/2] usb: gadget: udc: atmel: Use dev_err() to display EP configuration error

2017-04-07 Thread cristian.birsan
From: Cristian Birsan Use dev_err() to display EP configuration error to avoid silent failure. Signed-off-by: Cristian Birsan Acked-by: Nicolas Ferre --- drivers/usb/gadget/udc/atmel_usba_udc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/

[PATCH v4 0/2] usb: gadget: udc: atmel: Endpoint allocation scheme fixes

2017-04-07 Thread cristian.birsan
From: Cristian Birsan This patch series provides fixes, based on the feedback received on the mailing list, for the following: - fifo table parameters validation against device tree values - coding style - message display for EP configuration error - Kconfig comme

Re: [HMM 01/16] mm/memory/hotplug: add memory type parameter to arch_add/remove_memory

2017-04-07 Thread Jerome Glisse
On Fri, Apr 07, 2017 at 05:11:05PM +0200, Michal Hocko wrote: > On Fri 07-04-17 10:57:43, Jerome Glisse wrote: > > On Fri, Apr 07, 2017 at 04:45:04PM +0200, Michal Hocko wrote: > > > On Fri 07-04-17 10:32:49, Jerome Glisse wrote: > > > > On Fri, Apr 07, 2017 at 02:13:49PM +0200, Michal Hocko wrote:

Re: [PATCH linux-next v3 2/4] usb: gadget: udc: atmel: Minor code cleanup

2017-04-07 Thread m91496
Hi, The patch 2 does not apply because it's already on testing/next. I'll send a new patch series version that will apply clean on top of testing branch. Regards, Cristi On 05.04.2017 15:33, Felipe Balbi wrote: > > Hi, > > cristian.bir...@microchip.com writes: >> From: Cristian Birsan >> >>

Re: [PULL] arm64 pre-requisite patches for timer workarounds

2017-04-07 Thread Catalin Marinas
On Fri, Apr 07, 2017 at 02:44:58PM +0100, Marc Zyngier wrote: > The following changes since commit 97da3854c526d3a6ee05c849c96e48d21527606c: > > Linux 4.11-rc3 (2017-03-19 19:09:39 -0700) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-pl

Re: linux-next: Tree for Apr 7 (btrfs)

2017-04-07 Thread David Sterba
On Fri, Apr 07, 2017 at 08:10:48AM -0700, Randy Dunlap wrote: > On 04/07/17 08:08, Randy Dunlap wrote: > > On 04/07/17 01:27, Stephen Rothwell wrote: > >> Hi all, > >> > >> Changes since 20170406: > >> > > > > on i386: > > > > ERROR: "__udivdi3" [fs/btrfs/btrfs.ko] undefined! > > > > Reported-by

Re: [PATCH 12/12] ef/libstub: arm/arm64: Randomize the base of the UEFI rt services region

2017-04-07 Thread Ard Biesheuvel
On 7 April 2017 at 16:58, Catalin Marinas wrote: > Hi Ard, > > On 4 April 2017 at 17:09, Ard Biesheuvel wrote: >> Update the allocation logic for the virtual mapping of the UEFI runtime >> services to start from a randomized base address if KASLR is in effect, >> and if the UEFI firmware exposes

[GIT PULL] arm64: fixes for -rc6

2017-04-07 Thread Will Deacon
Hi Linus, Please pull these two arm64 fixes for -rc6. We've got a regression fix for the signal raised when userspace makes an unsupported unaligned access and a revert of the contiguous (hugepte) support for hugetlb, which has once again been found to be broken. One day, maybe, we'll get it right

Re: [PATCH 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Kirill A. Shutemov
On Fri, Apr 07, 2017 at 07:05:26PM +0530, Anshuman Khandual wrote: > On 04/06/2017 07:31 PM, Kirill A. Shutemov wrote: > > On x86, 5-level paging enables 56-bit userspace virtual address space. > > Not all user space is ready to handle wide addresses. It's known that > > at least some JIT compilers

RE: [PATCH] arm64: enable ARCH_WANT_RELAX_ORDER for aarch64

2017-04-07 Thread Gabriele Paoloni
Hi Robin and all > -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Robin Murphy > Sent: 20 March 2017 14:00 > To: Dingtianhong; Catalin Marinas; Will Deacon; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger

Re: [PATCH] RDS: IB: ensure an initialized ret is printed in pr_warn message

2017-04-07 Thread Santosh Shilimkar
On 4/7/2017 7:24 AM, Dan Carpenter wrote: Setting it to zero doesn't seem like the right thing, it should be an error code. Oh, heh... Smatch parses this one correctly. "ret" is always initialized but the code is probably buggy in a different way: [...] 561 ibmr = rds_

Re: [PATCH 00/24] Kernel lockdown

2017-04-07 Thread Austin S. Hemmelgarn
On 2017-04-05 16:14, David Howells wrote: These patches provide a facility by which a variety of avenues by which userspace can feasibly modify the running kernel image can be locked down. These include: (*) No unsigned modules and no modules for which can't validate the signature. (*)

Re: [PATCH 12/12] ef/libstub: arm/arm64: Randomize the base of the UEFI rt services region

2017-04-07 Thread Catalin Marinas
Hi Ard, On 4 April 2017 at 17:09, Ard Biesheuvel wrote: > Update the allocation logic for the virtual mapping of the UEFI runtime > services to start from a randomized base address if KASLR is in effect, > and if the UEFI firmware exposes an implementation of EFI_RNG_PROTOCOL. > > This makes it m

Re: [PATCH v3 8/8] arm64: exception: check shared writable page in SEI handler

2017-04-07 Thread James Morse
Hi Xie XiuQi, On 30/03/17 11:31, Xie XiuQi wrote: > From: Wang Xiongfeng > > Since SEI is asynchronous, the error data has been consumed. So we must > suppose that all the memory data current process can write are > contaminated. If the process doesn't have shared writable pages, the > process w

2017 UNPAID FUND RECOVERED LETTER

2017-04-07 Thread INTERNATIONAL MONETARY FUND (IMF)

[PATCH 1/3] sysctl: add sanity check for proc_douintvec

2017-04-07 Thread Liping Zhang
From: Liping Zhang Commit e7d316a02f68 ("sysctl: handle error writing UINT_MAX to u32 fields") introduced the proc_douintvec helper function, but it forgot to add the related sanity check when doing register_sysctl_table. So add it now. Signed-off-by: Liping Zhang --- fs/proc/proc_sysctl.c | 1

[PATCH 2/3] sysctl: don't print negative flag for proc_douintvec

2017-04-07 Thread Liping Zhang
From: Liping Zhang I saw some very confusing sysctl output on my system: # cat /proc/sys/net/core/xfrm_aevent_rseqth -2 # cat /proc/sys/net/core/xfrm_aevent_etime -10 cat /proc/sys/net/ipv4/tcp_notsent_lowat -4294967295 Because we forget to set the *negp flag in proc_douintvec, so it

[PATCH 3/3] sysctl: report EINVAL if value is larger than UINT_MAX for proc_douintvec

2017-04-07 Thread Liping Zhang
From: Liping Zhang Currently, inputting the following command will succeed but actually the value will be truncated: # echo 0x12 > /proc/sys/net/ipv4/tcp_notsent_lowat This is not friendly to the user, so instead, we should report error when the value is larger than UINT_MAX. Fixes: e

[PATCH 0/3] sysctl: fix some bugs related to proc_douintvec

2017-04-07 Thread Liping Zhang
From: Liping Zhang This patch set aims to fix some bugs introduced by commit e7d316a02f68 ("sysctl: handle error writing UINT_MAX to u32 fields"). Liping Zhang (3): sysctl: add sanity check for proc_douintvec sysctl: don't print negative flag for proc_douintvec sysctl: report EINVAL if val

Re: linux-next: manual merge of the scsi-mkp tree with the char-misc tree

2017-04-07 Thread Bart Van Assche
On 04/06/2017 10:33 PM, Stephen Rothwell wrote: > Hi Martin, > > Today's linux-next merge of the scsi-mkp tree got a conflict in: > > drivers/scsi/osd/osd_uld.c > > between commit: > > ac1ddc584e98 ("scsi: utilize new cdev_device_add helper function") > > from the char-misc tree and commit

Re: linux-next: manual merge of the net-next tree with the net tree

2017-04-07 Thread Cong Wang
On Thu, Apr 6, 2017 at 5:12 PM, Stephen Rothwell wrote: > diff --cc net/sched/sch_generic.c > index 1a2f9e964330,3e64d23e098c.. > --- a/net/sched/sch_generic.c > +++ b/net/sched/sch_generic.c > @@@ -794,8 -794,8 +794,8 @@@ static void attach_default_qdiscs(struc > } >

Re: [PATCH 4/5] drivers: char: Replace printk with pr_err.

2017-04-07 Thread Greg Kroah-Hartman
On Fri, Apr 07, 2017 at 05:04:06PM +0530, Varsha Rao wrote: > Replace printk with pr_err to fix the checkpatch issue. > > Signed-off-by: Varsha Rao > --- > drivers/char/misc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/char/misc.c b/drivers/char/misc.c > in

Re: [PATCH 5/5] drivers: char: Replace bit operation functions with IDA allocator.

2017-04-07 Thread Greg Kroah-Hartman
On Fri, Apr 07, 2017 at 05:04:41PM +0530, Varsha Rao wrote: > Replace bit operation functions with IDA allocator functions. As IDA > allocation is simpler. But why does this matter? > > Signed-off-by: Varsha Rao > --- > drivers/char/misc.c | 16 ++-- > 1 file changed, 10 insertions

[PATCHv3 8/8] x86/mm: Allow to have userspace mappings above 47-bits

2017-04-07 Thread Kirill A. Shutemov
On x86, 5-level paging enables 56-bit userspace virtual address space. Not all user space is ready to handle wide addresses. It's known that at least some JIT compilers use higher bits in pointers to encode their information. It collides with valid pointers with 5-level paging and leads to crashes.

Re: [PATCH 0/2] Trace completion of all bios

2017-04-07 Thread Jens Axboe
On 04/06/2017 07:10 PM, NeilBrown wrote: > Hi Jens, > I think all objections to this patch have been answered so I'm > resending. > I've added a small cleanup patch first which makes some small > enhancements to the documentation and #defines for the bio->flags > field. Added for 4.12. I hand

Re: [RFC 8/9] arm64/kvm: context-switch PAC registers

2017-04-07 Thread Marc Zyngier
Hi Mark, On 03/04/17 16:19, Mark Rutland wrote: > If we have pointer authentication support, a guest may wish to use it. > This patch adds the infrastructure to allow it to do so. > > This is sufficient for basic testing, but not for real-world usage. A > guest will still see pointer authenticati

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-07 Thread Sergey Senozhatsky
On (04/07/17 17:23), Peter Zijlstra wrote: [..] > > we are looking at different typical setups :) serial console being 45 > > seconds behind logbuf does not surprise me anymore. > > That does sound like you're doing something wrong and should look at > reducing printk() more than anything else. y

Re: [PATCH] net: netfilter: Use list_{next/prev}_entry instead of list_entry

2017-04-07 Thread Pablo Neira Ayuso
On Wed, Mar 29, 2017 at 11:15:40AM +0530, simran singhal wrote: > This patch replace list_entry with list_prev_entry as it makes the > code more clear to read. Also applied, thanks.

Re: [PATCH 3/6] cpufreq: schedutil: ensure max frequency while running RT/DL tasks

2017-04-07 Thread Peter Zijlstra
On Thu, Mar 02, 2017 at 03:45:04PM +, Patrick Bellasi wrote: > + struct task_struct *curr = cpu_curr(smp_processor_id()); Isn't that a weird way of writing 'current' ?

Re: [PATCH] net: netfilter: Use seq_puts()/seq_putc() where possible

2017-04-07 Thread Pablo Neira Ayuso
On Wed, Mar 29, 2017 at 03:25:17AM +0530, simran singhal wrote: > For string without format specifiers, use seq_puts(). For > seq_printf("\n"), use seq_putc('\n'). Applied, thanks.

Re: [PATCH 2/5] i915: flush gem obj freeing workqueues to add accuracy to the i915 shrinker

2017-04-07 Thread Chris Wilson
On Fri, Apr 07, 2017 at 03:06:00PM +0200, Andrea Arcangeli wrote: > On Fri, Apr 07, 2017 at 11:02:11AM +0100, Chris Wilson wrote: > > On Fri, Apr 07, 2017 at 01:23:44AM +0200, Andrea Arcangeli wrote: > > > Waiting a RCU grace period only guarantees the work gets queued, but > > > until after the qu

Re: [PATCH 5/5 v2] rcu: Fix dyntick-idle tracing

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 08:09:22 -0700 "Paul E. McKenney" wrote: > > > > > > Yeah, I am a bit concerned about idle-entry latency... > > > > > > > Which should now be fine because of the inlined this_cpu_inc/dec() > > which is very efficient and made for fast paths like this. > > OK, I am wi

Re: [PATCH 0/5 v2] tracing: Add usecase of synchronize_rcu_tasks() and stack_tracer_disable()

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 08:11:46 -0700 "Paul E. McKenney" wrote: > On Fri, Apr 07, 2017 at 10:58:26AM -0400, Steven Rostedt wrote: > > On Fri, 7 Apr 2017 07:43:35 -0700 > > "Paul E. McKenney" wrote: > > > > > On Fri, Apr 07, 2017 at 10:01:06AM -0400, Steven Rostedt wrote: > > > > Paul, > > > >

Re: [PATCH] xen, fbfront: fix connecting to backend

2017-04-07 Thread Bartlomiej Zolnierkiewicz
On Thursday, March 23, 2017 10:11:12 AM Boris Ostrovsky wrote: > On 03/23/2017 08:52 AM, Juergen Gross wrote: > > Connecting to the backend isn't working reliably in xen-fbfront: in > > case XenbusStateInitWait of the backend has been missed the backend > > transition to XenbusStateConnected will t

Re: [PATCH v2] net: Remove unnecessary cast on void pointer

2017-04-07 Thread Pablo Neira Ayuso
On Wed, Mar 29, 2017 at 12:35:16AM +0530, simran singhal wrote: > The following Coccinelle script was used to detect this: > @r@ > expression x; > void* e; > type T; > identifier f; > @@ > ( > *((T *)e) > | > ((T *)x)[...] > | > ((T*)x)->f > | > > - (T*) > e > ) > > Unnecessary paranthese

Re: [PATCH 1/2] s390/perf: fix perf annotate error -95 (4.10 regression)

2017-04-07 Thread Arnaldo Carvalho de Melo
Em Thu, Apr 06, 2017 at 09:51:51AM +0200, Christian Borntraeger escreveu: > since 4.10 perf annotate exits on s390 with an "unknown error -95". > Turns out that commit 786c1b51844d ("perf annotate: Start supporting > cross arch annotation") added a hard requirement for architecture Argh, that was

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-07 Thread Peter Zijlstra
On Sat, Apr 08, 2017 at 12:13:06AM +0900, Sergey Senozhatsky wrote: > On (04/07/17 14:44), Pavel Machek wrote: > [..] > > > [..] > > > > I believe "spend at most 2 seconds in printk(), then print a warning > > > > and offload" is a solution closer to what we had before. > > > > > > a warning here

Re: [PATCH v2 5/6] drivers/perf: Add support for ARMv8.2 Statistical Profiling Extension

2017-04-07 Thread Kim Phillips
On Fri, 7 Apr 2017 12:31:07 +0100 Mark Rutland wrote: > Hi Kim, Hi Mark, > On Fri, Apr 07, 2017 at 11:52:41AM +0100, Kim Phillips wrote: > > On Thu, 6 Apr 2017 19:45:04 +0100 > > Mark Rutland wrote: > > > On Thu, Apr 06, 2017 at 07:33:07PM +0100, Kim Phillips wrote: > > > > On Thu, 6 Apr 2017

[PATCH] coresight: tmc: minor fix for output log

2017-04-07 Thread Leo Yan
In current code the output logs are not well symmetric for sink and link enabling and disabling. This patch is to fix that so can output paired logs. Cc: Mathieu Poirier Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/coresight-tmc-etf.c | 25 + 1 file changed, 17

Re: [PATCH v2 2/5] perf/x86/intel: Record branch type

2017-04-07 Thread Peter Zijlstra
On Fri, Apr 07, 2017 at 06:47:43PM +0800, Jin Yao wrote: > Perf already has support for disassembling the branch instruction > and using the branch type for filtering. The patch just records > the branch type in perf_branch_entry. > > Before recording, the patch converts the x86 branch classificat

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-07 Thread Sergey Senozhatsky
On (04/07/17 14:44), Pavel Machek wrote: [..] > > [..] > > > I believe "spend at most 2 seconds in printk(), then print a warning > > > and offload" is a solution closer to what we had before. > > > > a warning here can be very noisy. > > Well, on normally-configured it should be ok. We don't com

Re: [PATCH 0/5 v2] tracing: Add usecase of synchronize_rcu_tasks() and stack_tracer_disable()

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:58:26AM -0400, Steven Rostedt wrote: > On Fri, 7 Apr 2017 07:43:35 -0700 > "Paul E. McKenney" wrote: > > > On Fri, Apr 07, 2017 at 10:01:06AM -0400, Steven Rostedt wrote: > > > Paul, > > > > > > Here's my latest. You OK with it? > > > > Given your update to 3/5, I s

[PATCH 0/4] Add fixes to STM32 pintrl

2017-04-07 Thread Alexandre TORGUE
This series add several fixes to STM32 pinctrl: - Set input mode when PIN is used as interrupt - Implement .get_direction() gpio_chip callback - In DT: set each gpio controller as a interrupt controller. User who wants to use gpio as interrupt will have choice to use either "gpiolib" int

[PATCH 2/4] pinctrl: stm32: replace device_initcall() with arch_initcall()

2017-04-07 Thread Alexandre TORGUE
Pinctrl has to be registered earlier. Mainly to register bank irqdomain earlier as other devices could use interrupts from those irqdomain. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/pinctrl-stm32f429.c b/drivers/pinctrl/stm32/pinctrl-stm32f429.c index 990b867..4bbade2 1

[PATCH 1/4] pinctrl: stm32: set pin to gpio input when used as interrupt

2017-04-07 Thread Alexandre TORGUE
This patch ensures that pin is correctly set as gpio input when it is used as an interrupt. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index abc405b..c8825e5 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/

[PATCH 3/4] pinctrl: stm32: Implement .get_direction gpio_chip callback

2017-04-07 Thread Alexandre TORGUE
Add .get_direction() gpiochip callback in STM32 pinctrl driver. Signed-off-by: Alexandre TORGUE diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index c8825e5..fdde60f 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctr

Re: [HMM 01/16] mm/memory/hotplug: add memory type parameter to arch_add/remove_memory

2017-04-07 Thread Michal Hocko
On Fri 07-04-17 10:57:43, Jerome Glisse wrote: > On Fri, Apr 07, 2017 at 04:45:04PM +0200, Michal Hocko wrote: > > On Fri 07-04-17 10:32:49, Jerome Glisse wrote: > > > On Fri, Apr 07, 2017 at 02:13:49PM +0200, Michal Hocko wrote: > > > > On Wed 05-04-17 16:40:11, Jérôme Glisse wrote: > > > > > When

[PATCH 4/4] ARM: dts: stm32: Set gpio controller also as interrupt controller

2017-04-07 Thread Alexandre TORGUE
This patch set each gpio controller as a interrupt controller. User who wants to use gpio as interrupt will have choice to use either "gpiolib" interface or "common" interrupt interface. Signed-off-by: Alexandre TORGUE diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.d

Re: linux-next: Tree for Apr 7 (btrfs)

2017-04-07 Thread Randy Dunlap
On 04/07/17 08:08, Randy Dunlap wrote: > On 04/07/17 01:27, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20170406: >> > > on i386: > > ERROR: "__udivdi3" [fs/btrfs/btrfs.ko] undefined! > > Reported-by: Randy Dunlap > or when built-in: fs/built-in.o: In function `scrub_bio_end_io_wo

Re: [PATCH RFC] mailbox: move controller timer to per-channel timers

2017-04-07 Thread Jassi Brar
On Thu, Apr 6, 2017 at 11:01 PM, Alexey Klimov wrote: > When mailbox controller provides two or more channels and > they are actively used by mailbox client(s) it's very easy > to trigger the warning in hrtimer_forward(): > > [ 247.853060] WARNING: CPU: 6 PID: 0 at kernel/time/hrtimer.c:805 > hr

Re: [RFC 0/9] ARMv8.3 pointer authentication userspace support

2017-04-07 Thread Adam Wallis
On 4/3/2017 11:19 AM, Mark Rutland wrote: > This series adds support for the ARMv8.3 pointer authentication extension. > > I've included a quick intro to the extension below, with the usual series > description below that. The final patch of the series adds additional > documentation regarding the

Re: [PATCH 5/5 v2] rcu: Fix dyntick-idle tracing

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:53:16AM -0400, Steven Rostedt wrote: > On Fri, 7 Apr 2017 07:40:11 -0700 > "Paul E. McKenney" wrote: > > > On Fri, Apr 07, 2017 at 10:01:11AM -0400, Steven Rostedt wrote: > > > From: "Paul E. McKenney" > > > > > > The tracing subsystem started using rcu_irq_entry() an

Re: linux-next: Tree for Apr 7 (btrfs)

2017-04-07 Thread Randy Dunlap
On 04/07/17 01:27, Stephen Rothwell wrote: > Hi all, > > Changes since 20170406: > on i386: ERROR: "__udivdi3" [fs/btrfs/btrfs.ko] undefined! Reported-by: Randy Dunlap -- ~Randy

Re: [PATCH 2/5 v2] tracing: Replace the per_cpu() with this_cpu() in trace_stack.c

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:48:38AM -0400, Steven Rostedt wrote: > On Fri, 7 Apr 2017 07:36:19 -0700 > "Paul E. McKenney" wrote: > > > On Fri, Apr 07, 2017 at 10:01:08AM -0400, Steven Rostedt wrote: > > > From: "Steven Rostedt (VMware)" > > > > > > The updates to the trace_active per cpu variabl

Re: [PATCH 1/5] perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()

2017-04-07 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 07, 2017 at 11:24:17PM +0900, Taeung Song escreveu: > When parsing disassemble lines, > use ltrim() and rtrim() to strip them, > not using just while loop and isspace(). > > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song > --- > tools/perf/util/annotate.c | 49 > +++

Re: [PATCH] drivers/video/fbdev: Fixing coding guidelines in acornfb.c

2017-04-07 Thread Bartlomiej Zolnierkiewicz
Hi, On Friday, March 24, 2017 10:58:08 AM Pushkar Jambhlekar wrote: > Fixing coding guidelines error reported by 'checkpatch.pl' > > Signed-off-by: Pushkar Jambhlekar Patch queued for 4.12, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics

Re: [PATCH 2/5] perf stat: Refactor the code to strip csv output with ltrim()

2017-04-07 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 07, 2017 at 11:24:18PM +0900, Taeung Song escreveu: > To strip csv output, use ltrim() instead of > just while loop and isspace() at print_metric_{only}_csv(). Applied. > Cc: Andi Kleen > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song > --- > tools/perf/builtin-st

Re: [PATCH 1/5] perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()

2017-04-07 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 07, 2017 at 12:01:30PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Apr 07, 2017 at 11:24:17PM +0900, Taeung Song escreveu: > > @@ -1148,9 +1136,9 @@ static int symbol__parse_objdump_line(struct symbol > > *sym, struct map *map, > > { > > struct annotation *notes = symbol__

Re: [PATCH v2 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-07 Thread Andrew Lunn
On Fri, Apr 07, 2017 at 10:15:02AM +0200, Juergen Borleis wrote: > When the LAN9303 device is in MDIO manged mode, all register accesses must > be done via MDIO. > > Please note: this code is *untested* yet due to the absence of such > configured hardware. It is based on a patch of Stefan Roese fr

Re: [PATCH 1/6] cpufreq: schedutil: reset sg_cpus's flags at IDLE enter

2017-04-07 Thread Patrick Bellasi
On 29-Mar 00:18, Rafael J. Wysocki wrote: > On Thursday, March 02, 2017 03:45:02 PM Patrick Bellasi wrote: > > Currently, sg_cpu's flags are set to the value defined by the last call of > > the cpufreq_update_util()/cpufreq_update_this_cpu(); for RT/DL classes > > this corresponds to the SCHED_CPUF

Re: [PATCH 1/5] perf annotate: Refactor the code to parse disassemble lines with {l,r}trim()

2017-04-07 Thread Arnaldo Carvalho de Melo
Em Fri, Apr 07, 2017 at 11:24:17PM +0900, Taeung Song escreveu: > When parsing disassemble lines, > use ltrim() and rtrim() to strip them, > not using just while loop and isspace(). > > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song > --- > tools/perf/util/annotate.c | 49 > +++

Re: [PATCH 0/5 v2] tracing: Add usecase of synchronize_rcu_tasks() and stack_tracer_disable()

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 07:43:35 -0700 "Paul E. McKenney" wrote: > On Fri, Apr 07, 2017 at 10:01:06AM -0400, Steven Rostedt wrote: > > Paul, > > > > Here's my latest. You OK with it? > > Given your update to 3/5, I suspect that we could live with it. I am > expecting some complaints about increas

Re: [HMM 01/16] mm/memory/hotplug: add memory type parameter to arch_add/remove_memory

2017-04-07 Thread Jerome Glisse
On Fri, Apr 07, 2017 at 04:45:04PM +0200, Michal Hocko wrote: > On Fri 07-04-17 10:32:49, Jerome Glisse wrote: > > On Fri, Apr 07, 2017 at 02:13:49PM +0200, Michal Hocko wrote: > > > On Wed 05-04-17 16:40:11, Jérôme Glisse wrote: > > > > When hotpluging memory we want more information on the type o

Re: [PATCH v2 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-07 Thread Andrew Lunn
> +static const struct of_device_id lan9303_mdio_of_match[] = { > + { .compatible = "smsc,lan9303" }, > + { /* sentinel */ }, > +}; I just chatted with Dave about this. Please include mdio and i2c in the compatible string, so they are different. That will avoid any possible problems.

Re: [PATCH] xen, fbfront: add support for specifying size via xenstore

2017-04-07 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, March 23, 2017 10:13:44 AM Boris Ostrovsky wrote: > On 03/23/2017 08:53 AM, Juergen Gross wrote: > > Today xen-fbfront supports specifying the display size via module > > parameters only. Add support for specifying the size via Xenstore in > > order to enable doing this easily vi

Re: [PATCH 5/5 v2] rcu: Fix dyntick-idle tracing

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 07:40:11 -0700 "Paul E. McKenney" wrote: > On Fri, Apr 07, 2017 at 10:01:11AM -0400, Steven Rostedt wrote: > > From: "Paul E. McKenney" > > > > The tracing subsystem started using rcu_irq_entry() and rcu_irq_exit() > > (with my blessing) to allow the current _rcuidle alternat

Re: KASLR causes intermittent boot failures on some systems

2017-04-07 Thread Jeff Moyer
Thomas Garnier writes: > CCing Kees for information. > > On Fri, Apr 7, 2017 at 7:41 AM, Jeff Moyer wrote: >> Hi, >> >> commit 021182e52fe01 ("x86/mm: Enable KASLR for physical mapping memory >> regions") causes some of my systems with persistent memory (whether real >> or emulated) to fail to b

Re: KASLR causes intermittent boot failures on some systems

2017-04-07 Thread Thomas Garnier
CCing Kees for information. On Fri, Apr 7, 2017 at 7:41 AM, Jeff Moyer wrote: > Hi, > > commit 021182e52fe01 ("x86/mm: Enable KASLR for physical mapping memory > regions") causes some of my systems with persistent memory (whether real > or emulated) to fail to boot with a couple of different cras

Re: [PATCH 2/5 v2] tracing: Replace the per_cpu() with this_cpu() in trace_stack.c

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 07:36:19 -0700 "Paul E. McKenney" wrote: > On Fri, Apr 07, 2017 at 10:01:08AM -0400, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > The updates to the trace_active per cpu variable can be updated with the > > this_cpu_*() functions as it only gets updated o

Re: [PATCH] coresight: etm_perf: Fix using uninitialised work

2017-04-07 Thread Mike Leach
Tested against the 4.11-rc1 OpenCSD perf tree - reproduced the problem and confirmed the patch fixes it on Juno r1. Noted that the command line ./perf record -e cs_etm/@2001.etf/ uname also causes the same problem, Larger question that may need future investigation in the openCSD project is wh

Re: [PATCH V10 06/12] of: device: Fix overflow of coherent_dma_mask

2017-04-07 Thread Robin Murphy
On 06/04/17 20:34, Frank Rowand wrote: > On 04/06/17 04:01, Sricharan R wrote: >> Hi Frank, >> >> On 4/6/2017 12:31 PM, Frank Rowand wrote: >>> On 04/04/17 03:18, Sricharan R wrote: Size of the dma-range is calculated as coherent_dma_mask + 1 and passed to arch_setup_dma_ops further. It o

Re: [kernel-hardening] Re: [RFC v2][PATCH 04/11] x86: Implement __arch_rare_write_begin/unmap()

2017-04-07 Thread Peter Zijlstra
On Fri, Apr 07, 2017 at 12:51:15PM +0200, Mathias Krause wrote: > Why that? It allows fast and CPU local modifications of r/o memory. > OTOH, an approach that needs to fiddle with page table entries > requires global synchronization to keep the individual TLB states in > sync. Hmm.. Not that fast,

Re: [HMM 01/16] mm/memory/hotplug: add memory type parameter to arch_add/remove_memory

2017-04-07 Thread Michal Hocko
On Fri 07-04-17 10:32:49, Jerome Glisse wrote: > On Fri, Apr 07, 2017 at 02:13:49PM +0200, Michal Hocko wrote: > > On Wed 05-04-17 16:40:11, Jérôme Glisse wrote: > > > When hotpluging memory we want more information on the type of memory. > > > This is to extend ZONE_DEVICE to support new type of m

Re: [PATCH 0/5 v2] tracing: Add usecase of synchronize_rcu_tasks() and stack_tracer_disable()

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:01:06AM -0400, Steven Rostedt wrote: > Paul, > > Here's my latest. You OK with it? Given your update to 3/5, I suspect that we could live with it. I am expecting some complaints about increases in idle-entry latency, but might be best to wait for complaints rather than

[PATCH 1/4] iommu/omap: Move data structures to omap-iommu.h

2017-04-07 Thread Joerg Roedel
From: Joerg Roedel The internal data-structures are scattered over various header and C files. Consolidate them in omap-iommu.h. Signed-off-by: Joerg Roedel --- drivers/iommu/omap-iommu.c | 16 drivers/iommu/omap-iommu.h | 32 +++

[PATCH 4/4] iommu/omap: Add iommu-group support

2017-04-07 Thread Joerg Roedel
From: Joerg Roedel Support for IOMMU groups will become mandatory for drivers, so add it to the omap iommu driver. Signed-off-by: Joerg Roedel --- drivers/iommu/omap-iommu.c | 43 +-- drivers/iommu/omap-iommu.h | 1 + 2 files changed, 42 insertions(+),

[PATCH 3/4] iommu/omap: Make use of 'struct iommu_device'

2017-04-07 Thread Joerg Roedel
From: Joerg Roedel Modify the driver to register individual iommus and establish links between devices and iommus in sysfs. Signed-off-by: Joerg Roedel --- drivers/iommu/omap-iommu.c | 25 + drivers/iommu/omap-iommu.h | 2 ++ 2 files changed, 27 insertions(+) diff --g

[PATCH 2/4] iommu/omap: Set dev->archdata.iommu = NULL in omap_iommu_remove_device

2017-04-07 Thread Joerg Roedel
From: Joerg Roedel Don't leave a stale pointer in case the device continues to exist for some more time. Signed-off-by: Joerg Roedel --- drivers/iommu/omap-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index e9c9b08..08bd7

[PATCH 0/4 v2] iommu/omap: Add support for iommu-groups and 'struct iommu_device'

2017-04-07 Thread Joerg Roedel
Hi, here is a small patch-set for the omap-iommu driver to make it use new features of the iommu-core. Please review. Thanks, Joerg Changes since v1: * Dropped patch 2 and moved device-link and group-handling to attach/detach_dev call-backs for now. Joerg R

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 14:44:55 +0200 Pavel Machek wrote: > Well, I have to agree here. This is 20 years worth of mess :-(. Maybe someone should propose a micro-conf at Linux Plumbers where we can brain storm a way to re-invent printk()? Seems it can do with a completely new rewrite. ;-) -- Steve

Re: [PATCH 5/5 v2] rcu: Fix dyntick-idle tracing

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:01:11AM -0400, Steven Rostedt wrote: > From: "Paul E. McKenney" > > The tracing subsystem started using rcu_irq_entry() and rcu_irq_exit() > (with my blessing) to allow the current _rcuidle alternative tracepoint > name to be dispensed with while still maintaining good

Re: [PATCH 7/7] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others()

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 13:27:01 +0200 Vitaly Kuznetsov wrote: > Add Hyper-V tracing subsystem and trace hyperv_mmu_flush_tlb_others(). > Tracing is done the same way we do xen_mmu_flush_tlb_others(). > > Signed-off-by: Vitaly Kuznetsov > --- > MAINTAINERS | 1 + > arch/x86/hype

Re: [PATCH] [media] media-entity: only call dev_dbg_obj if mdev is not NULL

2017-04-07 Thread Helen Koike
Hi Sakari, On 2017-04-07 04:40 AM, Sakari Ailus wrote: Hi Helen, On Thu, Apr 06, 2017 at 04:32:00PM -0300, Helen Koike wrote: Fix kernel Oops NULL pointer deference Call dev_dbg_obj only after checking if gobj->mdev is not NULL Signed-off-by: Helen Koike --- drivers/media/media-entity.c | 4

pull-request: wireless-drivers-next 2017-04-07

2017-04-07 Thread Kalle Valo
Hi Dave, here's a pull request for net-next, more info in the signed tag below. Please let me know if there are any problems. Kalle The following changes since commit 9c28286b1b4b9bce6e35dd4c8a1265f03802a89a: decnet: Use TCP nagle macro instead of literal number in decnet (2017-03-07 14:07:5

Re: [PATCH 2/5 v2] tracing: Replace the per_cpu() with this_cpu() in trace_stack.c

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:01:08AM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The updates to the trace_active per cpu variable can be updated with the > this_cpu_*() functions as it only gets updated on the CPU that the variable > is on. > > Signed-off-by: Steven Rostedt

Re: [PATCH 2/5] iommu/omap: Permanently keep iommu_dev pointer in arch_data

2017-04-07 Thread Joerg Roedel
Hi Suman, On Mon, Apr 03, 2017 at 03:35:46PM -0500, Suman Anna wrote: > > + iommu = platform_get_drvdata(pdev); > > + if (!iommu) { > > + of_node_put(np); > > + return -EINVAL; > > + } > > This change is causing the issues. OMAP IOMMU driver is not probed yet, > but this

Re: [HMM 01/16] mm/memory/hotplug: add memory type parameter to arch_add/remove_memory

2017-04-07 Thread Jerome Glisse
On Fri, Apr 07, 2017 at 02:13:49PM +0200, Michal Hocko wrote: > On Wed 05-04-17 16:40:11, Jérôme Glisse wrote: > > When hotpluging memory we want more information on the type of memory. > > This is to extend ZONE_DEVICE to support new type of memory other than > > the persistent memory. Existing us

[PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs

2017-04-07 Thread Joerg Roedel
From: Joerg Roedel ATS is broken on this hardware and causes IOMMU stalls and system failure. Disable ATS on these devices to make them usable again with IOMMU enabled. Note that the commit in the Fixes-tag is not buggy, it just uncovers the problem in the hardware by increasing the ATS-flush ra

[PATCH net-next] bindings: net: stmmac: add missing note about LPI interrupt

2017-04-07 Thread Niklas Cassel
From: Niklas Cassel The hardware has a LPI interrupt. There is already code in the stmmac driver to parse and handle the interrupt. However, this information was missing from the DT binding. Signed-off-by: Niklas Cassel --- Documentation/devicetree/bindings/net/stmmac.txt | 8 1 file

Re: Random guest crashes since 5c34d002dcc7 ("virtio_pci: use shared interrupts for virtqueues")

2017-04-07 Thread Mike Galbraith
On Fri, 2017-04-07 at 16:35 +0300, Michael S. Tsirkin wrote: > Oh wait, I still put the ctx feature patches in there :( > Pls ignore, I'll update when I've fixed it up. Sorry about the noise. Both worked fine w/wo threadirqs. -Mike

Re: [PATCH v2 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-07 Thread Andrew Lunn
Hi Juergen > +static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) > +{ > + int ret; > + u32 val; > + > + if (regnum > MII_EXPANSION) { > + if (regnum == MII_LAN911X_SPECIAL_CONTROL_STATUS) > + regnum = 7; /* map to LAN9303_VIRT_SPECIAL

Re: [PATCH 2/2] drm: dw-hdmi: Gate audio clock from the I2S enablement callbacks

2017-04-07 Thread Romain Perier
Hello, Le 07/04/2017 à 16:23, Neil Armstrong a écrit : > On 04/07/2017 04:19 PM, Romain Perier wrote: >> Currently, the audio sampler clock is enabled from dw_hdmi_setup() at >> step E. and is kept enabled for later use. This clock should be enabled >> and disabled along with the actual audio str

Re: [printk] fbc14616f4: BUG:kernel_reboot-without-warning_in_test_stage

2017-04-07 Thread Steven Rostedt
On Fri, 7 Apr 2017 10:14:49 +0200 Pavel Machek wrote: > > serial console can be quite slow. and port->lock, that is acquired by > > console_unlock()->call_console_drivers()->write(), is also accessible > > by serial driver's IRQ handler, and this lock may be busy long > > enough -- as long as tha

Re: [PATCH 1/3] clocksource: Augment bindings for Faraday timer

2017-04-07 Thread Rob Herring
On Fri, Apr 7, 2017 at 8:41 AM, Daniel Lezcano wrote: > On Fri, Mar 24, 2017 at 10:32:33PM +0100, Linus Walleij wrote: >> It turns out that the Cortina Gemini timer block is just a >> standard IP block from Faraday Technology named FTTMR010. >> >> In order to make things clear and understandable,

Re: [PATCH v2 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-07 Thread David Miller
From: Andrew Lunn Date: Fri, 7 Apr 2017 16:19:25 +0200 >> +static const struct of_device_id lan9303_mdio_of_match[] = { >> +{ .compatible = "smsc,lan9303" }, >> +{ /* sentinel */ }, >> +}; > > We still have the open question of is it a problem to have two > different drivers using the sa

Re: [PULL] clocksource/arch_timer: Errata workaround infrastructure rework

2017-04-07 Thread Daniel Lezcano
On Fri, Apr 07, 2017 at 02:59:21PM +0100, Marc Zyngier wrote: > Hi Daniel, > > Please find below the pull request for the arm64 architected timer > workaround infrastructure. As discussed on the list, the first 5 > patches are shared with the arm64 tree (and the whole branch is stable > anyway). >

[PATCH 4/5] perf pmu: Refactor wordwrap() with ltrim()

2017-04-07 Thread Taeung Song
Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/pmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 362051e..11c7525 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util

<    1   2   3   4   5   6   7   8   >