Re: [PATCH net-next 4/5] ipv6: Compute multipath hash for sent ICMP errors from offending packet

2016-10-27 Thread David Miller
From: Jakub Sitnicki Date: Mon, 24 Oct 2016 11:28:51 +0200 > diff --git a/include/linux/icmpv6.h b/include/linux/icmpv6.h > index 57086e9..6282e03 100644 > --- a/include/linux/icmpv6.h > +++ b/include/linux/icmpv6.h > @@ -45,4 +45,6 @@ extern void icmpv6_flow_init(struct

Re: [PATCH v5 2/5] driver core: Functional dependencies tracking support

2016-10-27 Thread Greg Kroah-Hartman
On Wed, Oct 26, 2016 at 01:19:02PM +0200, Lukas Wunner wrote: > Hi Rafael, > > sorry for not responding to v5 of your series earlier, just sending > this out now in the hope that it reaches you before your travels. > > On Mon, Oct 10, 2016 at 02:51:04PM +0200, Rafael J. Wysocki wrote: > > - Modif

Re: [PATCH] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-10-27 Thread Bjorn Helgaas
On Thu, Oct 27, 2016 at 07:42:27AM +0200, Hannes Reinecke wrote: > On 10/26/2016 09:43 PM, Bjorn Helgaas wrote: > > Hi Johannes, > > > > On Wed, Oct 26, 2016 at 03:53:34PM +0200, Johannes Thumshirn wrote: > >> The Read Completion Boundary bit must only be set on a device or endpoint > >> if > >>

Re: [PATCH net-next 5/5] ipv6: Compute multipath hash for forwarded ICMP errors from offending packet

2016-10-27 Thread David Miller
From: Jakub Sitnicki Date: Mon, 24 Oct 2016 11:28:52 +0200 > + inner_iph = skb_header_pointer( > + skb, skb_transport_offset(skb) + sizeof(*icmph), > + sizeof(_inner_iph), &_inner_iph); Please do not style this call like this, put as many arguments as you can on the f

Re: [patch v1 1/2] drivers/platform/x86: move module mlx-platform from arch/x86 to drivers/platform/x86

2016-10-27 Thread Andy Shevchenko
On Thu, 2016-10-27 at 15:26 +, Vadim Pasternak wrote: > > -Original Message- > > From: Andy Shevchenko [mailto:andriy.shevche...@linux.intel.com] > > Sent: Thursday, October 27, 2016 4:59 PM > > To: Vadim Pasternak ; dvh...@infradead.org; > > fengguang...@intel.com > > Cc: da...@davemlo

[PATCH v4] ARM: davinci: da8xx: Remove duplicated defines

2016-10-27 Thread Alexandre Bailon
Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, but da8xx-cfgchip.h intend to replace them. Remove duplicated defines between da8xx-cfgchip.h and usb-davinci.h Signed-off-by: Alexandre Bailon --- arch/arm/mach-davinci/board-da830-evm.c | 5 +++-- arch/arm/mach-davinci/board-omapl

[PATCH v2] dmaengine: DW DMAC: split pdata to hardware properties and platform quirks

2016-10-27 Thread Eugeniy Paltsev
This patch is to address a proposal by Andy in this thread: http://www.spinics.net/lists/dmaengine/msg11506.html Split platform data to actual hardware properties, and platform quirks. Now we able to use quirks and hardware properties separately from different sources (pdata, device tree or autocon

Re: [alsa-devel] [RFC PATCH 2/2] ASoC: samsung: Print a one-time message if the snow driver's probe defers

2016-10-27 Thread Javier Martinez Canillas
+Marek, Hello, On 10/20/2016 08:27 AM, Sylwester Nawrocki wrote: > On 10/20/2016 12:41 PM, Javier Martinez Canillas wrote: >> I see no relevant changes in exynos_defconfig between v4.7..v4.8 and >> also no changes in drivers/Makefile that could cause things to be >> initialized on a different ord

Re: [PATCH v5 0/5] Functional dependencies between devices

2016-10-27 Thread Greg Kroah-Hartman
On Mon, Oct 10, 2016 at 02:36:31PM +0200, Rafael J. Wysocki wrote: > Hi Everyone, > > > On Thursday, September 08, 2016 11:25:44 PM Rafael J. Wysocki wrote: > > > > [cut] > > > > > Time for another update. :-) > > > > Fewer changes this time, mostly to address issues found by Lukas and Marek.

[PATCHv3 3/3] z3fold: add compaction worker

2016-10-27 Thread Vitaly Wool
This patch implements compaction worker thread for z3fold. This worker does not free up any pages directly but it allows for a denser placement of compressed objects which results in less actual pages consumed and higher compression ratio therefore. This patch has been checked with the latest Linu

Re: [PATCH v5 2/5] driver core: Functional dependencies tracking support

2016-10-27 Thread Greg Kroah-Hartman
On Mon, Oct 10, 2016 at 02:51:04PM +0200, Rafael J. Wysocki wrote: > +/* > + * Device link flags. > + * > + * STATELESS: The core won't track the presence of supplier/consumer drivers. > + * AUTOREMOVE: Remove this link automatically on consumer driver unbind. > + */ > +#define DL_FLAG_STATELESS

[PATCH 6/7] lightnvm: add ECC error codes

2016-10-27 Thread Javier González
Add ECC error codes to enable the appropriate handling in the target. Signed-off-by: Javier González --- include/linux/lightnvm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index e3ccaff..33643ae 100644 --- a/include/linux/lightnvm.h

[PATCH 7/7] lightnvm: rrpc: split bios of size > 256kb

2016-10-27 Thread Javier González
rrpc cannot handle bios of size > 256kb due to NVME's 64 bit completion bitmap. If a larger bio comes, split it explicitly. Signed-off-by: Javier González --- drivers/lightnvm/rrpc.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index

[PATCH 5/7] lightnvm: export set bad block table

2016-10-27 Thread Javier González
Bad blocks should be managed by block owners. This would be either targets for data blocks or sysblk for system blocks. In order to support this, export two functions: One to mark a block as an specific type (e.g., bad block) and another to update the bad block table on the device. Move bad block

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-10-27 Thread Sebastian Andrzej Siewior
On 2016-10-27 16:53:48 [+0200], Petr Mladek wrote: > > In each case, I wonder if the problem is caused by the conversion > to the kthread worker or by the CPU hotplug state conversion. drop the hotplug patch and you will see. > Best Regards, > Petr Sebastian

Re: [PATCH 5/5] tty: amba-pl011: Add earlycon support for SBSA UART

2016-10-27 Thread Greg Kroah-Hartman
On Mon, Oct 24, 2016 at 11:59:20AM +0800, Kefeng Wang wrote: > Hi Greg, any more comments, thanks. Never wait, just resend if you have comments and you know you have to fix them up...

Re: Build regressions/improvements in v4.9-rc1

2016-10-27 Thread Geert Uytterhoeven
On Thu, Oct 27, 2016 at 11:11 AM, Thomas Petazzoni wrote: > On Thu, 27 Oct 2016 09:07:55 +, Alexey Brodkin wrote: > >> > axs101 is using a 770 core, while the toolchain is built for the HS38 >> > core. I'm somewhat surprised that a single ARC toolchain cannot produce >> > code for both 770 and

Re: [PATCH] [media] dvb: avoid warning in dvb_net

2016-10-27 Thread Arnd Bergmann
On Thursday, October 27, 2016 10:13:27 AM CEST Jarod Wilson wrote: > On Thu, Oct 27, 2016 at 03:57:41PM +0200, Arnd Bergmann wrote: > > With gcc-5 or higher on x86, we can get a bogus warning in the > > dvb-net code: > > > > drivers/media/dvb-core/dvb_net.c: In function ‘dvb_net_ule’: > > arch/x86

Re: [PATCH v2] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-27 Thread Paolo Bonzini
On 27/10/2016 11:32, Lorenzo Stoakes wrote: > On Thu, Oct 27, 2016 at 11:27:24AM +0200, Paolo Bonzini wrote: >> >> >> On 27/10/2016 02:12, Andrew Morton wrote: >>> >>> Subject: [PATCH v2] mm: remove unnecessary __get_user_pages_unlocked() calls >>> >>> The patch is rather misidentified

Re: [PATCH net-next 0/5] Route ICMPv6 errors with the flow when ECMP in use

2016-10-27 Thread David Miller
From: Jakub Sitnicki Date: Mon, 24 Oct 2016 11:28:47 +0200 > However, for it to work IPv6 flow labels have to be same in both > directions (i.e. reflected) or need to be chosen in a manner that > ensures that the flow going in the opposite direction would actually > be routed to a given path. My

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-27 Thread Peter Zijlstra
On Thu, Oct 27, 2016 at 10:07:42AM +0100, Mel Gorman wrote: > > Something like so could work I suppose, but then there's a slight > > regression in the page_unlock() path, where we now do an unconditional > > spinlock; iow. we loose the unlocked waitqueue_active() test. > > > > I can't convince m

Re: [RFC PATCH 0/5] Add an overlay manager to handle board capes

2016-10-27 Thread Hans de Goede
Hi, On 27-10-16 15:41, Rob Herring wrote: Please Cc the maintainers of drivers/of/. + Frank R, Hans, Dmitry S On Wed, Oct 26, 2016 at 9:57 AM, Antoine Tenart wrote: Hi all, Many boards now come with dips and compatible capes; among others the C.H.I.P, or Beaglebones. All these boards have a

Re: [PATCH 1/2] mm: add locked parameter to get_user_pages_remote()

2016-10-27 Thread Michal Hocko
On Thu 27-10-16 12:55:27, Michal Hocko wrote: > On Thu 27-10-16 10:51:40, Lorenzo Stoakes wrote: > > This patch adds a int *locked parameter to get_user_pages_remote() to allow > > VM_FAULT_RETRY faulting behaviour similar to get_user_pages_[un]locked(). > > > > Taking into account the previous ad

Re: [19/28] brcmfmac: avoid maybe-uninitialized warning in brcmf_cfg80211_start_ap

2016-10-27 Thread Kalle Valo
Arnd Bergmann wrote: > A bugfix added a sanity check around the assignment and use of the > 'is_11d' variable, which looks correct to me, but as the function is > rather complex already, this confuses the compiler to the point where > it can no longer figure out if the variable is always initializ

[PATCH v2] [media] dvb: avoid warning in dvb_net

2016-10-27 Thread Arnd Bergmann
With gcc-5 or higher on x86, we can get a bogus warning in the dvb-net code: drivers/media/dvb-core/dvb_net.c: In function ‘dvb_net_ule’: arch/x86/include/asm/string_32.h:77:14: error: ‘dest_addr’ may be used uninitialized in this function [-Werror=maybe-uninitialized] drivers/media/dvb-core/dvb_

Re: [PATCH 1/2] PCI: hisi: add PCIe driver support for HiSilicon STB SoCs

2016-10-27 Thread Arnd Bergmann
On Friday, October 21, 2016 9:45:36 AM CEST Ruqiang Ju wrote: > Add PCIe controller drvier for HiSilicon STB SoCs, > the controller is based on the DesignWare's PCIe core. > > Signed-off-by: Ruqiang Ju > --- > .../bindings/pci/hisilicon-histb-pcie.txt | 66 +++ > drivers/pci/host/Kconf

Re: Getting interrupt every million cache misses

2016-10-27 Thread Peter Zijlstra
On Wed, Oct 26, 2016 at 10:54:16PM +0200, Pavel Machek wrote: > Hi! > > I'd like to get an interrupt every million cache misses... to do a > printk() or something like that. As far as I can tell, modern hardware > should allow me to do that. AFAICT performance events subsystem can do > something l

Re: [PATCH 2/2] PM / sleep: don't suspend parent when async child suspend_{noirq,early} fails

2016-10-27 Thread Greg Kroah-Hartman
On Wed, Oct 19, 2016 at 05:46:11PM -0700, Brian Norris wrote: > Ugh, as I hope the patch context makes clear, the subject should be > > s/early/late/ > > as should the body of the commit message. > > On Wed, Oct 19, 2016 at 05:26:10PM -0700, Brian Norris wrote: > > Consider two devices, A and B,

Re: [PATCH v2] mm: remove unnecessary __get_user_pages_unlocked() calls

2016-10-27 Thread Paolo Bonzini
On 27/10/2016 02:12, Andrew Morton wrote: > > >> Subject: [PATCH v2] mm: remove unnecessary __get_user_pages_unlocked() calls > > The patch is rather misidentified. > >> virt/kvm/async_pf.c | 7 --- >> virt/kvm/kvm_main.c | 5 ++--- >> 2 files changed, 6 insertions(+), 6 deletions(-) >

Re: [PATCH net-next] ibmveth: v1 calculate correct gso_size and set gso_type

2016-10-27 Thread Eric Dumazet
On Wed, 2016-10-26 at 11:09 +1100, Jon Maxwell wrote: > We recently encountered a bug where a few customers using ibmveth on the > same LPAR hit an issue where a TCP session hung when large receive was > enabled. Closer analysis revealed that the session was stuck because the > one side was adver

Re: [PATCH v10 07/19] vfio iommu type1: Update argument of vaddr_get_pfn()

2016-10-27 Thread Kirti Wankhede
On 10/27/2016 5:41 PM, Jike Song wrote: > On 10/27/2016 05:29 AM, Kirti Wankhede wrote: >> Update arguments of vaddr_get_pfn() to take struct mm_struct *mm as input >> argument. >> >> Signed-off-by: Kirti Wankhede >> Signed-off-by: Neo Jia >> Change-Id: I885fd4cd4a9f66f4ee2c1caf58267464ec239f52

Re: [PATCH v2] inotify: Convert to using per-namespace limits

2016-10-27 Thread Eric W. Biederman
Nikolay Borisov writes: > On 10/11/2016 10:36 AM, Nikolay Borisov wrote: >> This patchset converts inotify to using the newly introduced >> per-userns sysctl infrastructure. >> >> Currently the inotify instances/watches are being accounted in the >> user_struct structure. This means that in setu

Re: [alsa-devel] [RFC PATCH 2/2] ASoC: samsung: Print a one-time message if the snow driver's probe defers

2016-10-27 Thread Sylwester Nawrocki
On 10/27/2016 05:38 PM, Javier Martinez Canillas wrote: > +Marek, > > Hello, > > On 10/20/2016 08:27 AM, Sylwester Nawrocki wrote: >> On 10/20/2016 12:41 PM, Javier Martinez Canillas wrote: >>> I see no relevant changes in exynos_defconfig between v4.7..v4.8 and >>> also no changes in drivers/Mak

Re: [RFC PATCH 5/5] of: overlay-mgr: add a detector for headers stored on a ds2431 eeprom over w1

2016-10-27 Thread Matthias Brugger
On 10/26/2016 04:57 PM, Antoine Tenart wrote: Signed-off-by: Antoine Tenart --- Please provide a commit message. drivers/of/overlay-manager/Kconfig | 10 ++ drivers/w1/slaves/w1_ds2431.c | 39 ++ 2 files changed, 49 insertions(+) diff --gi

Re: [PATCH 4/5] ARM: davinci: enable LEDs default-on trigger in default config

2016-10-27 Thread David Lechner
On 10/27/2016 06:29 AM, Sekhar Nori wrote: On Saturday 22 October 2016 12:06 AM, David Lechner wrote: The LEDs default-on trigger is nice to have. For example, it can be used to configure a LED as a power indicator. Signed-off-by: David Lechner --- arch/arm/configs/davinci_all_defconfig | 1 +

[RFC][PATCHv4 0/6] printk: use printk_safe to handle printk() recursive calls

2016-10-27 Thread Sergey Senozhatsky
spin_lock_irqsave(&p->pi_lock, flags); WARN_ON(1); raw_spin_unlock_irqrestore(&p->pi_lock, flags); e) printk from console_cont_flush() /*and down the call chain */ printk() console_unlock() call_console_drivers() ... WARN_ON(1); [[against next-20161027

Re: [alsa-devel] [RFC PATCH 2/2] ASoC: samsung: Print a one-time message if the snow driver's probe defers

2016-10-27 Thread Javier Martinez Canillas
Hello Sylwester, On 10/27/2016 12:48 PM, Sylwester Nawrocki wrote: > On 10/27/2016 05:38 PM, Javier Martinez Canillas wrote: >> +Marek, >> >> Hello, >> >> On 10/20/2016 08:27 AM, Sylwester Nawrocki wrote: >>> On 10/20/2016 12:41 PM, Javier Martinez Canillas wrote: I see no relevant changes in

Re: [RFC PATCH 0/5] add support for DMO embedded controller

2016-10-27 Thread Zahari Doychev
On Thu, Oct 27, 2016 at 05:01:51PM +0200, Greg KH wrote: > On Thu, Oct 27, 2016 at 12:47:11PM +0200, Zahari Doychev wrote: > > This patch series adds support for the Data Modul Embedded Controller(dmec) > > which is implemented within an on board FPGA found on Data Modul embedded > > CPU modules. >

[PATCH 3/4] printk/btrfs: Handle more message headers

2016-10-27 Thread Petr Mladek
The commit 4bcc595ccd80decb4245096e ("printk: reinstate KERN_CONT for printing continuation lines") allows to define more message headers for a single message. The motivation is that continuous lines might get mixed. Therefore it make sense to define the right log level for every piece of a cont li

[PATCH 4/4] printk/sound: Handle more message headers

2016-10-27 Thread Petr Mladek
The commit 4bcc595ccd80decb4245096e ("printk: reinstate KERN_CONT for printing continuation lines") allows to define more message headers for a single message. The motivation is that continuous lines might get mixed. Therefore it make sense to define the right log level for every piece of a cont li

[RFC][PATCHv4 3/6] printk: introduce per-cpu safe_print seq buffer

2016-10-27 Thread Sergey Senozhatsky
This patch extends the idea of NMI per-cpu buffers to regions that may cause recursive printk() calls and possible deadlocks. Namely, printk() can't handle printk calls from schedule code or printk() calls from lock debugging code (spin_dump() for instance); because those may be called with `sem->l

[PATCH 1/4] printk/NMI: Handle continuous lines and missing newline

2016-10-27 Thread Petr Mladek
The commit 4bcc595ccd80decb4245 ("printk: reinstate KERN_CONT for printing continuation lines") added back KERN_CONT message header. As a result it might appear in the middle of the line when the parts are squashed via the temporary NMI buffer. A reasonable solution seems to be to split the text i

Re: [PATCH v6 5/5] ARM: DTS: da850: Add usb phy node

2016-10-27 Thread David Lechner
On 10/26/2016 05:26 AM, Sekhar Nori wrote: On Wednesday 26 October 2016 08:36 AM, David Lechner wrote: Add a node for the new usb phy driver. changed this to: Add a node for usb phy device. This device controls both the USB 1.1 and USB 2.0 PHYs. mainly because the node is for the dev

Re: [PATCH v2] dmaengine: DW DMAC: split pdata to hardware properties and platform quirks

2016-10-27 Thread Andy Shevchenko
On Thu, 2016-10-27 at 18:34 +0300, Eugeniy Paltsev wrote: > This patch is to address a proposal by Andy in this thread: > http://www.spinics.net/lists/dmaengine/msg11506.html > Split platform data to actual hardware properties, and platform > quirks. > Now we able to use quirks and hardware propert

[RFC][PATCHv4 2/6] printk: rename nmi.c and exported api

2016-10-27 Thread Sergey Senozhatsky
A preparation patch for printk_safe work. No functional change. - rename nmi.c to print_safe.c - rename exported functions to have `safe' prefix. Signed-off-by: Sergey Senozhatsky Acked-by: Steven Rostedt --- arch/arm/kernel/smp.c | 4 +- include/linux/hardirq.h

[RFC][PATCHv4 6/6] printk: remove zap_locks() function

2016-10-27 Thread Sergey Senozhatsky
We use printk-safe now which makes printk-recursion detection code in vprintk_emit() is unreachable. The tricky thing here is that, apart from detecting and reporting printk recursions, that code also used to zap_lockc() in case of panic. However, zap_locks() does not look to be needed anymore: 1)

[PATCH 0/4] printk: Fixes and hardening related to KERN_CONT

2016-10-27 Thread Petr Mladek
The first patch fixes a messed output of continuous lines when printing backtraces for all CPUs via NMI. It works well for me. The other patches fix problems that I noticed when working on the first patch. It would be great if the respective maintainers could do some more testing of them. Well, i

[PATCH] null_blk: Add notes to use LightNVM

2016-10-27 Thread Yasuaki Ishimatsu
If CONFIG_NVM is disabled, loading null_block module with use_lightnvm=1 fails. But there are no messages and documents related to the failure. So the patch adds the notes to use LightNVM. Signed-off-by: Yasuaki Ishimatsu Cc: Jens Axboe --- Documentation/block/null_blk.txt | 2 +- drivers/blo

[PATCH 2/4] printk/kdb: Handle more message headers

2016-10-27 Thread Petr Mladek
The commit 4bcc595ccd80decb4245096e ("printk: reinstate KERN_CONT for printing continuation lines") allows to define more message headers for a single message. The motivation is that continuous lines might get mixed. Therefore it make sense to define the right log level for every piece of a cont li

[RFC][PATCHv4 5/6] printk: use printk_safe buffers

2016-10-27 Thread Sergey Senozhatsky
Use printk_safe per-CPU buffers in in printk recursion-prone blocks: -- around logbuf_lock protected sections in vprintk_emit() and console_unlock() -- around down_trylock_console_sem() and up_console_sem() Note that this solution addresses deadlocks caused by printk() recursive calls only. Ex

[RFC][PATCHv4 4/6] printk: report lost messages in printk safe/nmi contexts

2016-10-27 Thread Sergey Senozhatsky
Account lost messages in pritk-safe and printk-safe-nmi contexts and report those numbers during printk_safe_flush(). Signed-off-by: Sergey Senozhatsky --- kernel/printk/internal.h| 17 --- kernel/printk/printk.c | 10 - kernel/printk/printk_safe.c | 50 +

Re: [PATCH v8 0/8] thunderbolt: Introducing Thunderbolt(TM) Networking

2016-10-27 Thread Andreas Noever
On Fri, Oct 21, 2016 at 4:57 PM, wrote: >> -Original Message- >> From: Amir Levy [mailto:amir.jer.l...@intel.com] >> Sent: Wednesday, September 28, 2016 9:44 AM >> To: gre...@linuxfoundation.org >> Cc: andreas.noe...@gmail.com; bhelg...@google.com; cor...@lwn.net; >> linux-kernel@vger.ker

[RFC][PATCHv4 1/6] printk: use vprintk_func in vprintk()

2016-10-27 Thread Sergey Senozhatsky
vprintk(), just like printk(), better be using per-cpu printk_func instead of direct vprintk_emit() call. Just in case if vprintk() will ever be called from NMI, or from any other context that can deadlock in printk(). Signed-off-by: Sergey Senozhatsky Reviewed-by: Steven Rostedt --- kernel/pri

Re: [PATCH V4 0/5] firmware: Add support for TI System Control Interface (TI-SCI) protocol driver

2016-10-27 Thread Kevin Hilman
Tero Kristo writes: > On 19/10/16 02:08, Nishanth Menon wrote: >> Version 4 of the series is basically a rebase to v4.9-rc1, no functional >> changes. > > Any final comments on this series, or shall I send a pull-req forward? > Very minimal changes compared to v3 so should be good to go imo. Not

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-27 Thread Heinz Diehl
On 27.10.2016, Grozdan wrote: > So in the end, I'm here to support the inclusion of BFQ. Paolo has put > too much energy, time, and sleepless nights into this so people like > me can have a working, responsive system during heavy disk operations. > From a normal user's perspective, I do not want

Re: [Qemu-devel] [PATCH v9 04/12] vfio iommu: Add support for mediated devices

2016-10-27 Thread Kirti Wankhede
On 10/27/2016 8:00 PM, Alex Williamson wrote: > On Thu, 27 Oct 2016 18:01:51 +0530 > Kirti Wankhede wrote: > >> On 10/27/2016 12:50 PM, Alexey Kardashevskiy wrote: >>> On 18/10/16 08:22, Kirti Wankhede wrote: VFIO IOMMU drivers are designed for the devices which are IOMMU capable. M

Re: [PATCH] arm64: mm: Fix memmap to be initialized for the entire section

2016-10-27 Thread Will Deacon
Hi Robert, On Mon, Oct 17, 2016 at 08:58:01PM +0200, Robert Richter wrote: > Mark, Will, any opinion here? Having looking at this, I'm inclined to agree with you; pfn_valid() is all about whether the underlying mem_map (struct page *) entry exists, not about whether the page is mappable or not.

Re: [RFC] scripts: Include postprocessing script for memory allocation tracing

2016-10-27 Thread Janani Ravichandran
> On Oct 21, 2016, at 3:08 AM, Michal Hocko wrote: > > Interesting. > $ cat /debug/tracing/available_tracers > function_graph preemptirqsoff preemptoff irqsoff function nop > > Do I have to configure anything specially? And if I do why isn't it any > better to simply add a start tracepoint and

Re: [RFC PATCH 01/13] of: Remove comments that state the obvious

2016-10-27 Thread Frank Rowand
On 10/27/16 05:18, Rob Herring wrote: > On Tue, Oct 25, 2016 at 3:58 PM, wrote: >> From: Frank Rowand >> >> Remove comments that state the obvious, to reduce clutter > > I'm probably not the best reviewer, have you ever seen a comment in my code. > :) > >> >> Signed-off-by: Frank Rowand >> -

[REVIEW][PATCH v2] mm: Add a user_ns owner to mm_struct and fix ptrace permission checks

2016-10-27 Thread Eric W. Biederman
During exec dumpable is cleared if the file that is being executed is not readable by the user executing the file. A bug in ptrace_may_access allows reading the file if the executable happens to enter into a subordinate user namespace (aka clone(CLONE_NEWUSER), unshare(CLONE_NEWUSER), or setns(fd

[PATCH] [media] rc: print correct variable for z8f0811

2016-10-27 Thread Arnd Bergmann
A recent rework accidentally left a debugging printk untouched while changing the meaning of the variables, leading to an uninitialized variable being printed: drivers/media/i2c/ir-kbd-i2c.c: In function 'get_key_haup_common': drivers/media/i2c/ir-kbd-i2c.c:62:2: error: 'toggle' may be used uninit

Re: [PATCH 2/2] PM / sleep: don't suspend parent when async child suspend_{noirq,early} fails

2016-10-27 Thread Brian Norris
On Thu, Oct 27, 2016 at 05:34:06PM +0200, Greg Kroah-Hartman wrote: > On Wed, Oct 19, 2016 at 05:46:11PM -0700, Brian Norris wrote: > > Ugh, as I hope the patch context makes clear, the subject should be > > > > s/early/late/ > > > > as should the body of the commit message. [...] > > If the patc

Re: [RFC PATCH 02/13] of: Remove excessive printks to reduce clutter

2016-10-27 Thread Frank Rowand
On 10/27/16 05:21, Rob Herring wrote: > On Tue, Oct 25, 2016 at 3:58 PM, wrote: >> From: Frank Rowand > > Maybe some should be debug? > >> Signed-off-by: Frank Rowand >> --- >> drivers/of/resolver.c | 28 >> 1 file changed, 28 deletions(-) >> >> diff --git a/driv

Re: [PATCH v6] tty/serial: at91: fix hardware handshake on Atmel platforms

2016-10-27 Thread Nicolas Ferre
Le 27/10/2016 à 18:04, Richard Genoud a écrit : > After commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management > when hardware handshake is enabled"), the hardware handshake wasn't > functional anymore on Atmel platforms (beside SAMA5D2). > > To understand why, one has to understand the f

Re: [PATCH 01/18] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2016-10-27 Thread Yury Norov
On Tue, Oct 25, 2016 at 12:22:47AM +0200, Arnd Bergmann wrote: > On Monday, October 24, 2016 12:30:47 PM CEST Chris Metcalf wrote: > > On 10/21/2016 4:33 PM, Yury Norov wrote: > > > All new 32-bit architectures should have 64-bit off_t type, but existing > > > architectures has 32-bit ones. > > > >

[PATCH v6] tty/serial: at91: fix hardware handshake on Atmel platforms

2016-10-27 Thread Richard Genoud
After commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when hardware handshake is enabled"), the hardware handshake wasn't functional anymore on Atmel platforms (beside SAMA5D2). To understand why, one has to understand the flag ATMEL_US_USMODE_HWHS first: Before commit 1cf6e8fc8341

[PATCH v2 2/2] PM / sleep: don't suspend parent when async child suspend_{noirq,late} fails

2016-10-27 Thread Brian Norris
Consider two devices, A and B, where B is a child of A, and B utilizes asynchronous suspend (it does not matter whether A is sync or async). If B fails to suspend_noirq() or suspend_late(), or is interrupted by a wakeup (pm_wakeup_pending()), then it aborts and sets the async_error variable. Howeve

Re: [RFC PATCH 02/13] of: Remove excessive printks to reduce clutter

2016-10-27 Thread Frank Rowand
On 10/27/16 06:51, Pantelis Antoniou wrote: > Hi Rob, Frank, > >> On Oct 27, 2016, at 15:21 , Rob Herring wrote: >> >> On Tue, Oct 25, 2016 at 3:58 PM, wrote: >>> From: Frank Rowand >> >> Maybe some should be debug? >> > > Yes, please do not get rid of them completely. > Leave them at least a

Re: [PATCH 3/4] printk/btrfs: Handle more message headers

2016-10-27 Thread Joe Perches
On Thu, 2016-10-27 at 17:52 +0200, Petr Mladek wrote: > Note that 3 bytes should be enough for the header buffer. I am not > sure where the 4 bytes came from. Maybe it expected that both > KERN_SOH and the log level strings end with '\0' but they > are concatenated. I believe it was from when KERN

Re: [PATCH v4 0/3] mtd: s3c2410: add device tree support

2016-10-27 Thread Boris Brezillon
On Wed, 26 Oct 2016 21:59:52 -0200 Sergio Prado wrote: > This series adds support for configuring Samsung's s3c2410 and > compatible flash memory controller via devicetree. > > Tested on FriendlyARM mini2440, based on s3c2440 SoC. > > Patch 3 depends on patch 1. Applied. Thanks, Boris > >

[PATCH] mpt3sas: Fix for block device of raid exists even after deleting raid disk

2016-10-27 Thread Sreekanth Reddy
While merging mpt3sas & mpt2sas code, we posted below patch for WarpDrive support, mpt3sas: Ported WarpDrive product SSS6200 support commit id is 7786ab6aff In this patch and in the below hunk, we have added is_warpdrive check condition on the wrong line --

Re: [Xen-devel] [PATCH 8/8] xen/pvh: Enable CPU hotplug

2016-10-27 Thread Boris Ostrovsky
On 10/27/2016 11:00 AM, Andrew Cooper wrote: On 27/10/16 15:25, Boris Ostrovsky wrote: On 10/14/2016 03:01 PM, Boris Ostrovsky wrote: On 10/14/2016 02:41 PM, Andrew Cooper wrote: On 14/10/16 19:05, Boris Ostrovsky wrote: PVH guests don't receive ACPI hotplug interrupts and therefore need

[PATCHv4 2/4] arm64: dump: Make the page table dumping seq_file optional

2016-10-27 Thread Laura Abbott
The page table dumping code always assumes it will be dumping to a seq_file to userspace. Future code will be taking advantage of the page table dumping code but will not need the seq_file. Make the seq_file optional for these cases. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: M

[PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-10-27 Thread Ard Biesheuvel
This series is a followup to the single patch 'modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs', of which two versions have been sent out so far [0][1] As pointed out by Michael, GNU ld behaves a bit differently between arm64 and PowerPC64, and where the former gets rid of all

[PATCHv4 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-27 Thread Laura Abbott
Page mappings with full RWX permissions are a security risk. x86 has an option to walk the page tables and dump any bad pages. (See e1a58320a38d ("x86/mm: Warn on W^X mappings")). Add a similar implementation for arm64. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: Mark Rutland S

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-27 Thread Jens Axboe
On 10/27/2016 08:34 AM, Grozdan wrote: On Thu, Oct 27, 2016 at 11:26 AM, Jan Kara wrote: On Wed 26-10-16 10:12:38, Jens Axboe wrote: On 10/26/2016 10:04 AM, Paolo Valente wrote: Il giorno 26 ott 2016, alle ore 17:32, Jens Axboe ha scritto: On 10/26/2016 09:29 AM, Christoph Hellwig wrote:

[PATCH v3 3/3] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-27 Thread Ard Biesheuvel
The modversion symbol CRCs are emitted as ELF symbols, which allows us to easily populate the kcrctab sections by relying on the linker to associate each kcrctab slot with the correct value. This has a couple of downsides: - Given that the CRCs are treated as memory addresses, we waste 4 bytes f

Re: [PATCH] can: fix warning in bcm_connect/proc_register

2016-10-27 Thread Cong Wang
On Thu, Oct 27, 2016 at 1:45 AM, Marc Kleine-Budde wrote: > On 10/24/2016 10:17 PM, Cong Wang wrote: >> On Mon, Oct 24, 2016 at 1:10 PM, Cong Wang wrote: >>> On Mon, Oct 24, 2016 at 12:11 PM, Oliver Hartkopp >>> wrote: if (proc_dir) { /* unique socket address as

[PATCHv4 0/4] WX checking for arm64

2016-10-27 Thread Laura Abbott
Hi, This is v4 of the implementation to check for writable and executable pages on arm64. This version contains a review from Ard and makes the UXN page count a separate variable. Overall, minor changes. Thanks, Laura Laura Abbott (4): arm64: dump: Make ptdump debugfs a separate option arm64

[PATCHv4 3/4] arm64: dump: Remove max_addr

2016-10-27 Thread Laura Abbott
max_addr was added as part of struct ptdump_info but has never actually been used. Remove it. Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Tested-by: Mark Rutland Signed-off-by: Laura Abbott --- v4: No changes --- arch/arm64/include/asm/ptdump.h | 1 - 1 file changed, 1 deletion(-) diff

[PATCH v3 2/3] powerpc/reloc64: add support for 32-bit CRC pseudo-symbols

2016-10-27 Thread Ard Biesheuvel
In preparation of modifying the core modversions code to emit the CRCs as 32-bit quantities, ensure that 64-bit PowerPC will be able to deal with this when CONFIG_RELOCATABLE=y, in which case the CRCs will be emitted into the final ELF binary as R_PPC64_ADDR32 relocations. Since 32-bit relocations

Re: [RFC PATCH 13/13] of: Remove unused variable overlay_symbols

2016-10-27 Thread Frank Rowand
On 10/27/16 07:41, Pantelis Antoniou wrote: > Hi Frank, > > >> On Oct 25, 2016, at 23:59 , frowand.l...@gmail.com wrote: >> >> From: Frank Rowand >> >> This unused variable is a reminder that symbols in overlays are >> not available to subsequent overlays. If such a feature is >> desired then t

[PATCH v3 1/3] powerpc/reloc32: fix corrupted modversion CRCs

2016-10-27 Thread Ard Biesheuvel
Commit 0e0ed6406e61 ("powerpc/modules: Module CRC relocation fix causes perf issues") fixed an issue with relocatable PIE kernels in a way that essentially reintroduced the issue again for 32-bit builds. Since the chosen approach does is not applicable to 32-bit, fix the issue by updating the runt

[PATCH v3 0/1] mm/mempolicy.c: forbid static or relative flags for local NUMA mode

2016-10-27 Thread Piotr Kwapulinski
The MPOL_F_STATIC_NODES and MPOL_F_RELATIVE_NODES flags are irrelevant when setting them for MPOL_LOCAL NUMA memory policy via set_mempolicy or mbind. Return the "invalid argument" from set_mempolicy and mbind whenever any of these flags is passed along with MPOL_LOCAL. It is consistent with MPOL_P

[PATCHv4 1/4] arm64: dump: Make ptdump debugfs a separate option

2016-10-27 Thread Laura Abbott
ptdump_register currently initializes a set of page table information and registers debugfs. There are uses for the ptdump option without wanting the debugfs options. Split this out to make it a separate option. Reviewed-by: Ard Biesheuvel Reviewed-by: Kees Cook Reviewed-by: Mark Rutland Teste

Re: [PATCH 00/14] introduce the BFQ-v0 I/O scheduler as an extra scheduler

2016-10-27 Thread Jens Axboe
On 10/27/2016 03:26 AM, Jan Kara wrote: On Wed 26-10-16 10:12:38, Jens Axboe wrote: On 10/26/2016 10:04 AM, Paolo Valente wrote: Il giorno 26 ott 2016, alle ore 17:32, Jens Axboe ha scritto: On 10/26/2016 09:29 AM, Christoph Hellwig wrote: On Wed, Oct 26, 2016 at 05:13:07PM +0200, Arnd Ber

[PATCH v3 0/3] modversions: Fix CRC mangling under CONFIG_RELOCATABLE=y

2016-10-27 Thread Ard Biesheuvel
This series is a followup to the single patch 'modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs', of which two versions have been sent out so far [0][1] As pointed out by Michael, GNU ld behaves a bit differently between arm64 and PowerPC64, and where the former gets rid of all

Re: bio linked list corruption.

2016-10-27 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:33 PM, Christoph Hellwig wrote: >> Dave, can you hit the warnings with this? Totally untested... > > Can we just kill off the unhelpful blk_map_ctx structure, e.g.: Yeah, I found that hard to read too. The difference between blk_map_ctx and blk_mq_alloc_data is minimal,

Re: [PATCH 1/2] KVM: x86: emulate fxsave and fxrstor

2016-10-27 Thread Radim Krčmář
2016-10-26 20:17-0400, Bandan Das: > Radim Krčmář writes: > ... >> +static int check_fxsr(struct x86_emulate_ctxt *ctxt) >> +{ >> +u32 eax = 1, ebx, ecx = 0, edx; >> + >> +ctxt->ops->get_cpuid(ctxt, &eax, &ebx, &ecx, &edx); >> +if (!(edx & FFL(FXSR))) >> +return emulate_ud(

Re: [PATCH 1/4] printk/NMI: Handle continuous lines and missing newline

2016-10-27 Thread Joe Perches
On Thu, 2016-10-27 at 17:52 +0200, Petr Mladek wrote: > The commit 4bcc595ccd80decb4245 ("printk: reinstate KERN_CONT for printing > continuation lines") added back KERN_CONT message header. As a result > it might appear in the middle of the line when the parts are squashed > via the temporary NMI

Re: [RFC PATCH 06/13] of: Remove prefix "__of_" and prefix "__" from local function names

2016-10-27 Thread Frank Rowand
On 10/27/16 05:47, Rob Herring wrote: > On Tue, Oct 25, 2016 at 3:58 PM, wrote: >> From: Frank Rowand > > I prefer to leave the prefixes and this is getting into pointless churn. > >> >> Signed-off-by: Frank Rowand >> --- >> drivers/of/resolver.c | 10 +- >> 1 file changed, 5 inserti

Re: bio linked list corruption.

2016-10-27 Thread Jens Axboe
On 10/27/2016 10:34 AM, Linus Torvalds wrote: On Wed, Oct 26, 2016 at 11:33 PM, Christoph Hellwig wrote: Dave, can you hit the warnings with this? Totally untested... Can we just kill off the unhelpful blk_map_ctx structure, e.g.: Yeah, I found that hard to read too. The difference between

Re: [RFC PATCH 00/13] of: Make drivers/of/resolver.c more readable

2016-10-27 Thread Frank Rowand
On 10/27/16 05:03, Rob Herring wrote: > On Tue, Oct 25, 2016 at 4:02 PM, Frank Rowand wrote: >> On 10/25/16 13:58, frowand.l...@gmail.com wrote: >>> From: Frank Rowand >>> >>> drivers/of/resolve.c is a bit difficult to read. Clean it up so >>> that review of future overlay related patches will b

[PATCH 2/2] serial: 8250_dw: Add support for IrDA SIR mode

2016-10-27 Thread Ed Blake
Add a set_ldisc function to enable/disable IrDA SIR mode according to the new line discipline. Signed-off-by: Ed Blake --- drivers/tty/serial/8250/8250_dw.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw

[PATCH 1/2] serial: 8250: Expose set_ldisc function

2016-10-27 Thread Ed Blake
Expose set_ldisc() function so that it can be overridden with a platform specific implementation. Signed-off-by: Ed Blake --- drivers/tty/serial/8250/8250_core.c | 3 +++ drivers/tty/serial/8250/8250_port.c | 12 ++-- include/linux/serial_8250.h | 4 include/linux/serial_c

Re: [RFC v1 02/14] bus1: provide stub cdev /dev/bus1

2016-10-27 Thread Linus Torvalds
On Thu, Oct 27, 2016 at 8:25 AM, Tom Gundersen wrote: > > Could you elaborate on why you think syscalls would be more > appropriate than ioctls? ioctl's tend to be a horrid mess both for things like compat.but also for things like system call tracing and filtering (ie BPF). The compat mess is fi

[GIT PULL] Block fixes for 4.9-rc

2016-10-27 Thread Jens Axboe
Hi Linus, A set of fixes for this series, most notably the fix for the blk-mq software queue regression in from this merge window. Apart from that, a fix for an unlikely hang if a queue is flooded with FUA requests from Ming, and a few small fixes for nbd and badblocks. Lastly, a rename update f

Re: [RFC v1 02/14] bus1: provide stub cdev /dev/bus1

2016-10-27 Thread Tom Gundersen
On Thu, Oct 27, 2016 at 6:37 PM, Linus Torvalds wrote: > On Thu, Oct 27, 2016 at 8:25 AM, Tom Gundersen wrote: >> >> Could you elaborate on why you think syscalls would be more >> appropriate than ioctls? > > ioctl's tend to be a horrid mess both for things like compat.but also > for things like

[PATCH] irq-bcm2836: Prevent spurious interrupts, and trap them early

2016-10-27 Thread Eric Anholt
From: Phil Elwell The old arch-specific IRQ macros included a dsb to ensure the write to clear the mailbox interrupt completed before returning from the interrupt. The BCM2836 irqchip driver needs the same precaution to avoid spurious interrupts. Spurious interrupts are still possible for other

[PATCH] irq-bcm2836: Prevent spurious interrupts, and trap them early

2016-10-27 Thread Eric Anholt
From: Phil Elwell The old arch-specific IRQ macros included a dsb to ensure the write to clear the mailbox interrupt completed before returning from the interrupt. The BCM2836 irqchip driver needs the same precaution to avoid spurious interrupts. Spurious interrupts are still possible for other

<    1   2   3   4   5   6   7   8   9   >