Re: bio linked list corruption.

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:42 AM, Dave Jones wrote: > > The stacks show nearly all of them are stuck in sync_inodes_sb That's just wb_wait_for_completion(), and it means that some IO isn't completing. There's also a lot of processes waiting for inode_lock(), and a few waiting for mnt_want_write(

Re: [RFC PATCH 1/5] of: introduce the overlay manager

2016-10-26 Thread Thomas Petazzoni
Hello, On Wed, 26 Oct 2016 10:29:59 -0600, Mathieu Poirier wrote: > > + overlay = devm_kzalloc(dev, sizeof(*overlay), GFP_KERNEL); > > Function devm_kzalloc() can sleep but you're holding a spinlock - I'm > surprised the kernel didn't complain here. Allocate the memory before > holding

[RFC 1/3] regulator: core: Add over current changed event

2016-10-26 Thread ahaslam
From: Axel Haslam Regulator consumers may be interested to know when the over current condition is over. Add an over currerent "changed" event. The registered useres for this event can then check the over current flag to know the status of the over current condition. Signed-off-by: Axel Haslam

Re: [kernel-hardening] [RFC v4 03/18] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-10-26 Thread Jann Horn
On Wed, Oct 26, 2016 at 08:56:39AM +0200, Mickaël Salaün wrote: > This new arraymap looks like a set and brings new properties: > * strong typing of entries: the eBPF functions get the array type of > elements instead of CONST_PTR_TO_MAP (e.g. > CONST_PTR_TO_LANDLOCK_HANDLE_FS); > * force seque

[RFC 3/3] regulator: fixed: dt: Allow an optional over current pin

2016-10-26 Thread ahaslam
From: Axel Haslam Add support for an optional over current input pin which can be used to send an over current event to the regulator consumer. Cc: devicet...@vger.kernel.org Signed-off-by: Axel Haslam --- Documentation/devicetree/bindings/regulator/fixed-regulator.txt | 4 drivers/regula

[PATCH 0/3] regulator: Send events on over current condition

2016-10-26 Thread ahaslam
From: Axel Haslam Some usb drivers rely on external power switches/regulators to handle the port vbus. Some of these drivers currently are still using gpios for the enable pin and also the over current indicator. We would like to move these drivers to use a regulator instead, because it makes th

[RFC 2/3] regulator: fixed: Handle optional overcurrent pin

2016-10-26 Thread ahaslam
From: Axel Haslam Fixed regulators (ex. TPS2087D) may have a over current pin that is activated when an over current condition is detected. Consumers may be interested to know about the status changes of this pin to disable the regulator and notify framework layers or userspace. Allow the fix re

Re: [PATCH V2 08/10] watchdog: da9062/61: watchdog driver

2016-10-26 Thread Guenter Roeck
On Wed, Oct 26, 2016 at 05:56:39PM +0100, Steve Twiss wrote: > From: Steve Twiss > > The of_device_id match array is added to support "dlg,da9062-watchdog" > as a valid .compatible string. > > The watchdog_info structure is linked to this device tree compatible > string in the .data section. Ext

Re: [PATCH 1/2] perf, x86-mm: Add exit-fault tracing

2016-10-26 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 26, 2016 at 10:51:16AM +0200, Peter Zijlstra escreveu: > On Wed, Oct 26, 2016 at 01:51:59AM +0200, Alexis Berlemont wrote: > > -ENOCHANGELOG Yeah, please add one explaining why we want this, how we can use it, for example, in 'perf trace', to measure how long each page fault took, exa

Re: [PATCH 0/2] perf: measure page fault duration in perf trace

2016-10-26 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 26, 2016 at 10:46:18AM +0200, Peter Zijlstra escreveu: > On Wed, Oct 26, 2016 at 01:51:58AM +0200, Alexis Berlemont wrote: > > Hi, > > > > Here are 2 small patches which try to fulfill a point in the perf todo > > list: > > There's a todo list? https://perf.wiki.kernel.org/index.php/

Re: [PATCH 4.4 000/112] 4.4.28-stable review

2016-10-26 Thread Shuah Khan
On 10/26/2016 06:21 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.28 release. > There are 112 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses s

Re: [PATCH 4.8 000/140] 4.8.5-stable review

2016-10-26 Thread Shuah Khan
On 10/26/2016 06:21 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.5 release. > There are 140 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses sh

Re: bio linked list corruption.

2016-10-26 Thread Dave Jones
On Wed, Oct 26, 2016 at 09:48:39AM -0700, Linus Torvalds wrote: > I know you already had this in some email, but I lost it. I think you > narrowed it down to a specific set of system calls that seems to > trigger this best. fallocate and xattrs or something? So I was about to give that a shot

Re: [PATCH 4/6 v5] sched: propagate load during synchronous attach/detach

2016-10-26 Thread Vincent Guittot
On 26 October 2016 at 16:28, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 02:31:01PM +0200, Vincent Guittot wrote: >> On 26 October 2016 at 12:54, Peter Zijlstra wrote: >> > On Mon, Oct 17, 2016 at 11:14:11AM +0200, Vincent Guittot wrote: >> >> /* >> >> + * Signed add and clamp on underflow.

Re: [PATCH 2/2] arm64/numa: support HAVE_MEMORYLESS_NODES

2016-10-26 Thread Will Deacon
On Tue, Oct 25, 2016 at 10:59:18AM +0800, Zhen Lei wrote: > Some numa nodes may have no memory. For example: > 1) a node has no memory bank plugged. > 2) a node has no memory bank slots. > > To ensure percpu variable areas and numa control blocks of the > memoryless numa nodes to be allocated from

Re: [PATCH] firmware: qcom: scm: Fix interrupted SCM calls fully

2016-10-26 Thread Bjorn Andersson
On Wed 28 Sep 03:42 PDT 2016, Sricharan R wrote: > Patch [1] fixes the issues with interrupted SCM64 calls > by returning the register r6 (Session ID) on the next try, but register > r0 also needs to be preserved for the retry. r0 contains the > result of the previous try. Without this i see that

Re: [PATCH V5 3/3] ACPI: pci_link: Include PIRQ_PENALTY_PCI_USING for ISA IRQs

2016-10-26 Thread Sinan Kaya
Thanks Jonathan, On 10/24/2016 12:46 AM, Jonathan Liu wrote: >> 1.9.1 >> > > This series fixes one or more network adapters not working in Linux > 32-bit x86 guest running inside VirtualBox if I have 4 network > adapters enabled. > The following message no longer appears in the kernel log: > ACPI:

Re: [PATCH v3 1/1] kthread: allocate kthread structure using kmalloc

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Oleg Nesterov wrote: > On 10/26, Thomas Gleixner wrote: > > > > On Wed, 26 Oct 2016, Oleg Nesterov wrote: > > > +static inline void set_kthread_struct(void *kthread) > > > +{ > > > + /* > > > + * We abuse ->set_child_tid to avoid the new member and because it > > > + * can't

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Johannes Weiner
On Wed, Oct 26, 2016 at 11:18:52AM -0700, Linus Torvalds wrote: > On Mon, Oct 24, 2016 at 11:47 AM, Johannes Weiner wrote: > > > > How about this instead: given that we already mark the shadow entries > > exceptional, and the exceptional bit is part of the radix tree API, > > can we just introduce

[GIT PULL] libata fixes for v4.9-rc2

2016-10-26 Thread Tejun Heo
Hello, Linus. The AHCI MSI handling change in rc1 was a bit broken and caused disk probing failures on some machines. These three patches should fix the issues. Thanks. The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are

Re: [PATCH v6 1/9] sched: Extend scheduler's asym packing

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 12:27 +0200, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > > > > We generalize the scheduler's asym packing to provide an ordering > > > of the cpu beyond just the cpu number.  This allows the use of the > >

Re: complete_all and "forever" completions

2016-10-26 Thread Dmitry Torokhov
On Wed, Oct 26, 2016 at 05:42:13PM +0200, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 05:10:01AM -0700, Dmitry Torokhov wrote: > > On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > > > > > Or do we need some

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Linus Torvalds
On Mon, Oct 24, 2016 at 11:47 AM, Johannes Weiner wrote: > > How about this instead: given that we already mark the shadow entries > exceptional, and the exceptional bit is part of the radix tree API, > can we just introduce a node->exceptional counter for those entries > and have the radix tree c

Re: bio linked list corruption.

2016-10-26 Thread Dave Jones
On Wed, Oct 26, 2016 at 09:48:39AM -0700, Linus Torvalds wrote: > On Wed, Oct 26, 2016 at 9:30 AM, Dave Jones wrote: > > > > I gave this a go last thing last night. It crashed within 5 minutes, > > but it was one we've already seen (the bad page map trace) with nothing > > additional that loo

Re: console issue since 3.6, console=ttyS1 hangs

2016-10-26 Thread Nathan Zimmer
On 10/25/2016 03:41 PM, Sean Young wrote: On Mon, Oct 24, 2016 at 04:49:25PM -0500, Nathan Zimmer wrote: [0.974874] system 00:03: Plug and Play ACPI device, IDs PNP0c02 (active) [0.975038] pnp 00:04: parse resource options [0.975048] pnp 00:04: dependent set 0 (acceptable) io mi

Re: [RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-26 Thread Dave Hansen
On 10/26/2016 03:13 AM, Li, Liang Z wrote: > 3 times memory required is not accurate, please ignore this. sorry ... > The complexity is the point. What is making it so complex? Can you describe the problems?

Re: [PATCH 0/5] mm: workingset: radix tree subtleties & single-page file refaults

2016-10-26 Thread Johannes Weiner
On Wed, Oct 26, 2016 at 11:21:07AM +0200, Jan Kara wrote: > On Mon 24-10-16 14:47:39, Johannes Weiner wrote: > > From: Johannes Weiner > > Date: Mon, 17 Oct 2016 09:00:04 -0400 > > Subject: [PATCH] mm: workingset: restore single-page file refault tracking > > > > Currently, we account shadow entr

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 12:52 +0200, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > >   > > > + if (itmt_sysctl_header) > > > + unregister_sysctl_table(itmt_sysctl_header); > > What sets itmt_sysctl_header to NULL? > > > >

Merge problem: Re: Applied "spi: fsl-espi: avoid processing uninitalized data on error" to the spi tree

2016-10-26 Thread Heiner Kallweit
Am 26.10.2016 um 12:15 schrieb Mark Brown: > The patch > >spi: fsl-espi: avoid processing uninitalized data on error > > has been applied to the spi tree at > >git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git > > All being well this means that it will be integrated into th

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Tim Chen wrote: > On Wed, 2016-10-26 at 13:24 +0200, Thomas Gleixner wrote: > > > There were reservations on the multi-socket case of ITMT, maybe it would > > > help to spell those out in great detail here. That is, have the comment > > > explain the policy instead of simply st

Re: [PATCH v6 1/9] sched: Extend scheduler's asym packing

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 12:27 +0200, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > > We generalize the scheduler's asym packing to provide an ordering > > of the cpu beyond just the cpu number.  This allows the use of the > > ASYM_PACKING scheduler machinery to move loads to

Re: [RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-26 Thread Dave Hansen
On 10/26/2016 03:06 AM, Li, Liang Z wrote: > I am working on Dave's new bitmap schema, I have finished the part of > getting the 'hybrid scheme bitmap' and found the complexity was more > than I expected. The main issue is more memory is required to save > the 'hybrid scheme bitmap' beside that use

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 11:04 AM, Bob Peterson wrote: > > I can test it for you, if you give me about an hour. I can definitely wait an hour, it would be lovely to see more testing. Especially if you have a NUMA machine and an interesting workload. And if you actually have that NUMA machine and

Re: [PATCH] lib/genalloc.c: Start search from start of chunk

2016-10-26 Thread Will Deacon
On Tue, Oct 25, 2016 at 11:36:44AM -0700, Daniel Mentz wrote: > gen_pool_alloc_algo() iterates over the chunks of a pool trying to find > a contiguous block of memory that satisfies the allocation request. > > The shortcut > > if (size > atomic_read(&chunk->avail)) > continue;

[PATCH v4] usb: musb: remove duplicated actions

2016-10-26 Thread Kirill Esipov
Removing unnecessary duplicated actions that we've got while merging: 19915e623458 ("Merge 4.1-rc7 into usb-next") Signed-off-by: Kirill Esipov --- drivers/usb/musb/musb_core.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c ind

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Bob Peterson
- Original Message - | On Wed, Oct 26, 2016 at 10:15 AM, Linus Torvalds | wrote: | > | > Oh, and the patch is obviously entirely untested. I wouldn't want to | > ruin my reputation by *testing* the patches I send out. What would be | > the fun in that? | | So I tested it. It compiles, and

Re: [PATCH] ARM: davinci: da850: Fix pwm name matching

2016-10-26 Thread Sekhar Nori
On Wednesday 26 October 2016 09:32 PM, Kevin Hilman wrote: > Hi Sekhar, > > Sekhar Nori writes: > >> On Tuesday 25 October 2016 11:24 PM, David Lechner wrote: >>> This fixes pwm name matching for DA850 familiy devices. When using device >>> tree, the da850_auxdata_lookup[] table caused pwm devic

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 12:52 +0200, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Tim Chen wrote: > > > >   > > + if (itmt_sysctl_header) > > + unregister_sysctl_table(itmt_sysctl_header); > What sets itmt_sysctl_header to NULL? > If the registration of the itmt sysctl table has faile

[PATCH 4/5] iommu: Move REQ_ACS_FLAGS out to header and rename

2016-10-26 Thread Alex Williamson
Allow other parts of the kernel to see which PCI ACS flags the IOMMU layer considers necessary for isolation. Signed-off-by: Alex Williamson Cc: Joerg Roedel --- drivers/iommu/iommu.c | 18 +- include/linux/iommu.h | 11 +++ 2 files changed, 16 insertions(+), 13 dele

[PATCH 5/5] PCI: Balance ports to avoid ACS errata on Pericom switches

2016-10-26 Thread Alex Williamson
As described in the included code comment, this quirk is intended to work around an errata in a variety of Pericom 4-lane, 3 and 4 port PCIe 2.0 switches. The switches advertise ACS capabilities, but the P2P Request Redirection support includes an errata that PCI_ACS_RR effectively doesn't work an

[PATCH 2/5] PCI: Extract link speed & width retrieval from pcie_get_minimum_link()

2016-10-26 Thread Alex Williamson
Signed-off-by: Alex Williamson --- drivers/pci/pci.c | 26 -- include/linux/pci.h |2 ++ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index b901ee7..6d6cf89 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pc

[PATCH 3/5] PCI: Extract link retraining from pcie_aspm_configure_common_clock()

2016-10-26 Thread Alex Williamson
Signed-off-by: Alex Williamson --- drivers/pci/pci.c | 29 + drivers/pci/pcie/aspm.c | 17 + include/linux/pci.h |1 + 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 6d6cf89

Re: [PATCH] net: bonding: use new api ethtool_{get|set}_link_ksettings

2016-10-26 Thread Jay Vosburgh
Philippe Reynes wrote: >The ethtool api {get|set}_settings is deprecated. >We move this driver to new api {get|set}_link_ksettings. This is just an API change, i.e., no change to functionality? -J >Signed-off-by: Philippe Reynes >--- > drivers/net/bonding/bond_main.c | 16 ++

[PATCH 0/5] PCI: ACS enable quirk for link balancing switches

2016-10-26 Thread Alex Williamson
A series exposing and extracting bits of things that the kernel already does, culminating in an ACS enabling quirk to work around an errata where data through a Pericom PCIe switch gets stuck when the upstream and downstream ports are running at different link speeds and P2P Request Redirection is

[PATCH 1/5] PCI: Make pci_std_enable_acs() non-static

2016-10-26 Thread Alex Williamson
For use by quirks. Signed-off-by: Alex Williamson --- drivers/pci/pci.c |2 +- include/linux/pci.h |1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index aab9d51..b901ee7 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 12:49 +0200, Thomas Gleixner wrote: > On Thu, 20 Oct 2016, Tim Chen wrote: > > > > +static int sched_itmt_update_handler(struct ctl_table *table, int write, > > +   void __user *buffer, size_t *lenp, loff_t *ppos) > Please align the arguments proper > >

Re: [PATCH v5 14/18] x86/intel_rdt: Add cpus file

2016-10-26 Thread Thomas Gleixner
On Sat, 22 Oct 2016, Fenghua Yu wrote: > @@ -323,8 +325,11 @@ static int intel_rdt_online_cpu(unsigned int cpu) > struct rdt_resource *r; > > mutex_lock(&rdtgroup_mutex); > + per_cpu(cpu_closid, cpu) = 0; > for_each_capable_rdt_resource(r) > domain_add_cpu(cpu,

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 10:15 AM, Linus Torvalds wrote: > > Oh, and the patch is obviously entirely untested. I wouldn't want to > ruin my reputation by *testing* the patches I send out. What would be > the fun in that? So I tested it. It compiles, and it actually also solves the performance prob

[PATCH] arm64: dts: msm8996: Correct slpi region reg definition

2016-10-26 Thread Bjorn Andersson
I missed the missing cell in the reg property of the slpi region in my review, so let's add it. Fixes: 2b7f0de19648 ("arm64: dts: msm8996: Add reserve-memory nodes") Cc: Sarangdhar Joshi Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion

Re: [PATCH 02/12] ASoC: dapm: Implement stereo mixer control support

2016-10-26 Thread Mark Brown
On Mon, Oct 03, 2016 at 07:07:54PM +0800, Chen-Yu Tsai wrote: > /* find dapm widget path assoc with kcontrol */ > dapm_kcontrol_for_each_path(path, kcontrol) { > + /* > + * If status for the second channel was given ( >= 0 ), > + * consider the sec

Re: [RFC PATCH] kbuild: add -fno-PIE

2016-10-26 Thread Sven Joachim
On 2016-10-25 09:30 +0200, Sebastian Andrzej Siewior wrote: > On 2016-10-24 19:32:30 [+0200], Sven Joachim wrote: >> On 2016-10-24 09:43 +0200, Sebastian Andrzej Siewior wrote: >> >> > On 2016-10-24 09:38:49 [+0200], Sven Joachim wrote: >> >> >> >> But make still fails with it. :-( >> > >> > try

[PATCH] x86/pat, mm: Make track_pfn_insert() return void

2016-10-26 Thread Borislav Petkov
On Mon, Oct 24, 2016 at 04:31:45PM +1000, Dave Airlie wrote: > A recent change to the mm code in: > 87744ab3832b83ba71b931f86f9cfdb000d07da5 > mm: fix cache mode tracking in vm_insert_mixed() While we're at it, let's simplify that track_pfn_insert() thing: --- >From 6feb0b253e1fcccbcbc8ab3e8838db

Re: [PATCH v2] modversions: treat symbol CRCs as 32 bit quantities on 64 bit archs

2016-10-26 Thread Ard Biesheuvel
On 26 October 2016 at 14:04, Ard Biesheuvel wrote: > On 26 October 2016 at 11:07, Michael Ellerman wrote: >> Hi Ard, >> >> I like the concept, but ... >> >> Ard Biesheuvel writes: >>> The symbol CRCs are emitted as ELF symbols, which allows us to easily >>> populate the kcrctab sections by relyi

[PATCH v2 3/8] perf/trace: Add notification for perf trace events

2016-10-26 Thread Punit Agrawal
Add a mechanism to notify listeners about perf trace event state changes. This enables listeners to take actions requiring the event context (e.g., attached process). The notification mechanism can be used to reduce trace point based profiling overhead by enabling/disabling hardware traps for spec

[PATCH] PCI: mvebu: Take control of mbus windows setup by the firmware

2016-10-26 Thread Jason Gunthorpe
The firmware may setup the mbus to access PCI-E and indicate this has happened with a ranges mapping for the PCI-E ID. If this happens then the mbus setup and the pci dynamic setup conflict, creating problems. Have PCI-E assume control of the firmware specified default mapping by setting the value

[PATCH v2 5/8] KVM: Add event to trace tlb invalidations

2016-10-26 Thread Punit Agrawal
As TLB operations can have an impact on system performance, add a trace event to enable monitoring of guest TLB maintenance operations. Signed-off-by: Punit Agrawal Cc: Steven Rostedt Cc: Paolo Bonzini --- include/trace/events/kvm.h | 17 + 1 file changed, 17 insertions(+) dif

[PATCH v2 7/8] arm64: KVM: Handle trappable TLB instructions

2016-10-26 Thread Punit Agrawal
The ARMv8 architecture allows trapping of TLB maintenane instructions from EL0/EL1 to higher exception levels. On encountering a trappable TLB instruction in a guest, an exception is taken to EL2. Add support to handle emulating the TLB instructions. Signed-off-by: Punit Agrawal Cc: Christoffer

[PATCH v2 2/8] KVM: Track the pid of the VM process

2016-10-26 Thread Punit Agrawal
Userspace tools such as perf can be used to profile individual processes. Track the PID of the virtual machine process to match profiling requests targeted at it. This can be used to take appropriate action to enable the requested profiling operations for the VMs of interest. Signed-off-by: Punit

[PATCH v2 8/8] KVM: arm/arm64: Enable selective trapping of TLB instructions

2016-10-26 Thread Punit Agrawal
The TTLB bit of Hypervisor Control Register controls the trapping of guest TLB maintenance instructions. Taking the trap requires a switch to the hypervisor and is an expensive operation. Enable selective trapping of guest TLB instructions when the associated perf trace event is enabled for a spec

[PATCHv2 0/2] THREAD_INFO_IN_TASK prep work for arm64+s390

2016-10-26 Thread Mark Rutland
Hi all, [resending for linux-arch, apologies for spam] Heiko and I have been working on THREAD_INFO_IN_TASK for s390 and arm64 respectively, and we're both targetting v4.10. These are the common core changes which we both require. I've put together a branch [1,2] based on v4.9-rc2. I intend to t

[PATCH v2 4/8] KVM: arm/arm64: Register perf trace event notifier

2016-10-26 Thread Punit Agrawal
Register a notifier to track state changes of perf trace events. The notifier will enable taking appropriate action for trace events targeting VM. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier --- arch/arm/include/asm/kvm_host.h | 8 +++ arch/arm/kvm/Kconfig

[PATCHv2 2/2] thread_info: include for THREAD_INFO_IN_TASK

2016-10-26 Thread Mark Rutland
When CONFIG_THREAD_INFO_IN_TASK is selected, the current_thread_info() macro relies on current having been defined prior to its use. However, not all users of current_thread_info() include , and thus current is not guaranteed to be defined. When CONFIG_THREAD_INFO_IN_TASK is not selected, it's pos

[PATCHv2 1/2] thread_info: factor out restart_block

2016-10-26 Thread Mark Rutland
Since commit f56141e3e2d9aabf ("all arches, signal: move restart_block to struct task_struct"), thread_info and restart_block have been logically distinct, yet struct restart_block is still defined in . At least one architecture (erroneously) uses restart_block as part of its thread_info, and thus

[PATCH v2 6/8] arm: KVM: Handle trappable TLB instructions

2016-10-26 Thread Punit Agrawal
It is possible to enable selective trapping of guest TLB maintenance instructions executed in lower privilege levels to HYP mode. This feature can be used to monitor guest TLB operations. Add support to emulate the TLB instructions when their execution traps to hyp mode. Signed-off-by: Punit Agra

[PATCHv2 0/2] THREAD_INFO_IN_TASK prep work for arm64+s390

2016-10-26 Thread Mark Rutland
Hi all, Heiko and I have been working on THREAD_INFO_IN_TASK for s390 and arm64 respectively, and we're both targetting v4.10. These are the common core changes which we both require. I've put together a branch [1,2] based on v4.9-rc2. I intend to tag this at some point next week so that Heiko an

[PATCH v2 0/8] Add support for monitoring guest TLB operations

2016-10-26 Thread Punit Agrawal
Hi, This is the fourth posting of this series. The biggest change compared to previous vesion is the addition of support for ARM hosts. With the addition of ARM support, the patchset is now more complete. Prior versions can be found at [0][1][2]. I would particularly appreciate feedback from main

[PATCH v2 1/8] arm64/kvm: hyp: tlb: use __tlbi() helper

2016-10-26 Thread Punit Agrawal
From: Mark Rutland Now that we have a __tlbi() helper, make use of this in the arm64 KVM hyp code to get rid of asm() boilerplate. At the same time, we simplify __tlb_flush_vm_context by using __flush_icache_all(), as this has the appropriate instruction cache maintenance and barrier. Signed-off

[PATCH v1] memcg: Prevent caches to be both OFF_SLAB & OBJFREELIST_SLAB

2016-10-26 Thread Thomas Garnier
While testing OBJFREELIST_SLAB integration with pagealloc, we found a bug where kmem_cache(sys) would be created with both CFLGS_OFF_SLAB & CFLGS_OBJFREELIST_SLAB. The original kmem_cache is created early making OFF_SLAB not possible. When kmem_cache(sys) is created, OFF_SLAB is possible and if pa

[PATCH 1/2] ARM: memory: da8xx-ddrctl: new driver

2016-10-26 Thread Bartosz Golaszewski
Create a new driver for the da8xx DDR2/mDDR controller and implement support for writing to the Peripheral Bus Burst Priority Register. Signed-off-by: Bartosz Golaszewski --- .../memory-controllers/ti-da8xx-ddrctl.txt | 20 +++ drivers/memory/Kconfig | 8 +

Re: [PATCH v5 12/18] x86/intel_rdt: Add "info" files to resctrl file system

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Luck, Tony wrote: > >> +.mode= 0444, > >> +.kf_ops= &rdtgroup_kf_single_ops, > >> +.seq_show= rdt_num_closid_show, > >> +}, > >> +{ > >> +.name= "cbm_val", > > > > cbm_val? Is that a value? No, it's the valid

[PATCH 2/2] ARM: bus: da8xx-mstpri: new driver

2016-10-26 Thread Bartosz Golaszewski
Create the driver for the da8xx master peripheral priority configuration and implement support for writing to the three Master Priority registers on da850 SoCs. Signed-off-by: Bartosz Golaszewski --- .../devicetree/bindings/bus/ti,da850-mstpri.txt| 20 ++ drivers/bus/Kconfig

[PATCH 0/2] ARM: da850: new drivers for better LCDC support

2016-10-26 Thread Bartosz Golaszewski
This series adds two new drivers in order to better support the LCDC rev1 present on the da850 boards. The first patch adds a new memory driver which allows to write to the DDR2/mDDR memory controller present on the da8xx SoCs. Since the memory controller region is not mapped by anyone else, I wen

Re: [PATCH v5 10/18] x86/intel_rdt: Build structures for each resource based on cache topology

2016-10-26 Thread Thomas Gleixner
On Wed, 26 Oct 2016, Luck, Tony wrote: > Order is visible to users when we print entries in the schemata file, and > validate input that they write (we require that they provide all masks in > the same order as this list). > If we hot remove a socket, it disappears from the list, and from the > s

[PATCH 2/2] clk: uniphier: add clock data for cpufreq

2016-10-26 Thread Masahiro Yamada
Data needed for CPU-gear change (cpufreq). Note: At this moment, some clock data for Pro5/Pxs2 (32bit SoCs) are a bit faked because clock rates greater than LONG_MAX (~2.15 GHz) must be avoided on 32 bit systems. Signed-off-by: Masahiro Yamada --- I raised a flag in the following post: https://

[PATCH 1/2] clk: uniphier: add CPU-gear change (cpufreq) support

2016-10-26 Thread Masahiro Yamada
Core support code for CPU frequency changes, which will be used by the generic cpufreq driver. The register view is different from the generic clk-mux; it has a separate status register, and an update bit to load the register setting. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/Mak

Re: [RFC PATCH 4/5] w1: add a callback to call slave when a new device is connected

2016-10-26 Thread Antoine Tenart
Hello Mathieu, On Wed, Oct 26, 2016 at 10:42:28AM -0600, Mathieu Poirier wrote: > On 26 October 2016 at 08:57, Antoine Tenart > wrote: > > } > > + if (fops->callback) { > > + err = fops->callback(sl); > > + /* > > +

Re: [RFC v4 00/18] Landlock LSM: Unprivileged sandboxing

2016-10-26 Thread Mickaël Salaün
On 26/10/2016 18:56, Mickaël Salaün wrote: > > On 26/10/2016 16:52, Jann Horn wrote: >> On Wed, Oct 26, 2016 at 08:56:36AM +0200, Mickaël Salaün wrote: >>> The loaded Landlock eBPF programs can be triggered by a seccomp filter >>> returning RET_LANDLOCK. In addition, a cookie (16-bit value) can be

Re: [PATCH v6 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-26 Thread Tim Chen
On Wed, 2016-10-26 at 13:24 +0200, Thomas Gleixner wrote: > On Wed, 26 Oct 2016, Peter Zijlstra wrote: > > > > On Wed, Oct 26, 2016 at 12:49:36PM +0200, Thomas Gleixner wrote: > > > > > > > > > > > > > + /* > > > > +  * ITMT capability automatically enables ITMT > > > > +  * s

[PATCH V2 08/10] watchdog: da9062/61: watchdog driver

2016-10-26 Thread Steve Twiss
From: Steve Twiss The of_device_id match array is added to support "dlg,da9062-watchdog" as a valid .compatible string. The watchdog_info structure is linked to this device tree compatible string in the .data section. Extra code is added into the probe function to search-for and assign this matc

Re: [Intel-wired-lan] [net-next PATCH 27/27] igb: Revert "igb: Revert support for build_skb in igb"

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > This reverts commit f9d40f6a9921 ("igb: Revert support for build_skb in > igb") and adds a few changes to update it to work with the latest version > of igb. We are now able to revert the removal of this due to the fact > that with the rec

[PATCH V2 05/10] mfd: da9061: MFD core support

2016-10-26 Thread Steve Twiss
From: Steve Twiss MFD support for DA9061 is provided as part of the DA9062 device driver. The registers header file adds two new chip variant IDs defined in DA9061 and DA9062 hardware. The core header file adds new software enumerations for listing the valid DA9061 IRQs and a da9062_compatible_t

[PATCH V2 03/10] Documentation: devicetree: thermal: da9062/61 TJUNC temperature binding

2016-10-26 Thread Steve Twiss
From: Steve Twiss Device tree binding information for DA9062 and DA9061 thermal junction temperature monitor. Binding descriptions for the DA9061 and DA9062 thermal TJUNC supervisor device driver, using a single THERMAL_TRIP_HOT trip-wire and allowing for a configurable polling period for over-t

Re: [PATCH 2/2] scsi: ufs: Use the resource-managed function to add devfreq device

2016-10-26 Thread Subhash Jadavani
On 2016-10-26 00:38, Chanwoo Choi wrote: This patch uses the resource-managed to add the devfreq device. This function will make it easy to handle the devfreq device. - struct devfreq *devm_devfreq_add_device(struct device *dev, struct devfreq_dev_profile *profi

[PATCH V2 04/10] Documentation: devicetree: mfd: da9062/61 MFD binding

2016-10-26 Thread Steve Twiss
From: Steve Twiss Extend existing DA9062 binding information to include the DA9061 PMIC for MFD core and regulators. Add a da9062-onkey link to the existing onkey binding file. Add a da9062-thermal link to the new temperature monitoring binding file found in [PATCH V2 03/10]. Delete the da9062

[PATCH V2 09/10] thermal: da9062/61: Thermal junction temperature monitoring driver

2016-10-26 Thread Steve Twiss
From: Steve Twiss Add junction temperature monitoring supervisor device driver, compatible with the DA9062 and DA9061 PMICs. If the PMIC's internal junction temperature rises above TEMP_WARN (125 degC) an interrupt is issued. This TEMP_WARN level is defined as the THERMAL_TRIP_HOT trip-wire insi

Re: [PATCH v2 4/5] ARC: MCIP: Set an initial affinity value in idu_irq_map

2016-10-26 Thread Vineet Gupta
On 10/26/2016 09:36 AM, Marc Zyngier wrote: > On Wed, Oct 26 2016 at 05:17:34 PM, Vineet Gupta > wrote: >> On 10/26/2016 07:05 AM, Marc Zyngier wrote: >>> It definitely feels weird to encode the interrupt affinity in the DT >>> (the kernel and possible userspace usually know much better than the

Re: [Intel-wired-lan] [net-next PATCH 25/27] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > The ARM architecture provides a mechanism for deferring cache line > invalidation in the case of map/unmap.  This patch makes use of this > mechanism to avoid unnecessary synchronization. > > A secondary effect of this change is that the

[PATCH V2 10/10] MAINTAINERS: da9062/61 updates to the Dialog Semiconductor search terms

2016-10-26 Thread Steve Twiss
From: Steve Twiss Hi, Dialog Semiconductor support would like to add to the MAINTAINERS search terms. This update will allow us to follow files for device tree bindings and source code relating to input onkey drivers, chip thermal monitoring and watchdog timers. Signed-off-by: Steve Twiss ---

Re: [Intel-wired-lan] [net-next PATCH 26/27] igb: Update code to better handle incrementing page count

2016-10-26 Thread Jeff Kirsher
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote: > This patch updates the driver code so that we do bulk updates of the page > reference count instead of just incrementing it by one reference at a > time. > The advantage to doing this is that we cut down on atomic operations and > this in

[PATCH V2 02/10] Documentation: devicetree: watchdog: da9062/61 watchdog timer binding

2016-10-26 Thread Steve Twiss
From: Steve Twiss Add binding information for DA9062 and DA9061 watchdog. Example bindings for both devices are added. The original binding for DA9062 (only) used to reside inside the Documentation/devicetree/bindings/mfd/da9062.txt MFD document. The da9062-watchdog section was deleted in that

Re: complete_all and "forever" completions

2016-10-26 Thread Dmitry Torokhov
On Wed, Oct 26, 2016 at 05:12:36PM +, Nicholas Mc Guire wrote: > On Wed, Oct 26, 2016 at 05:42:13PM +0200, Peter Zijlstra wrote: > > On Wed, Oct 26, 2016 at 05:10:01AM -0700, Dmitry Torokhov wrote: > > > On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > > > > On Tue, Oct 25, 201

[PATCH V2 01/10] Documentation: devicetree: input: additions for da9061 onkey driver

2016-10-26 Thread Steve Twiss
From: Steve Twiss Add binding information for DA9061 onkey. This patch updates the compatible string "dlg,da9061-onkey" to support DA9061, removes the reference to KEY_SLEEP (which the driver no longer supports) and fixes a typo in the example for DA9063. It also adds two new examples, one for

[PATCH V2 06/10] regulator: da9061: BUCK and LDO regulator driver

2016-10-26 Thread Steve Twiss
From: Steve Twiss Regulator support for the DA9061 is added into the DA9062 regulator driver. The regulators for DA9061 differ from those of DA9062. A new DA9061 enumeration list for the LDOs and Bucks supported by this device is added. Regulator information added: the old regulator information

[PATCH V2 07/10] Input: da9061: onkey driver

2016-10-26 Thread Steve Twiss
From: Steve Twiss Copyright header is updated to add DA9061 in its description and the module description macro is extended to include DA9061. Minor change to the code, alters dev_dbg() statements to report a generic "PMIC" instead of DA9063. This device driver is compatible with DA9061, DA9062

[PATCH V2 00/10] da9061: DA9061 driver submission

2016-10-26 Thread Steve Twiss
From: Steve Twiss This patch set adds support for the Dialog DA9061 Power Management IC. Support is made by altering the existing DA9062 device driver, where appropriate. In this patch set the following is provided: [PATCH V2 01/10] Binding for onkey [PATCH V2 02/10] Binding for watchdog [PATCH

Re: CONFIG_VMAP_STACK, on-stack struct, and wake_up_bit

2016-10-26 Thread Linus Torvalds
On Wed, Oct 26, 2016 at 9:32 AM, Linus Torvalds wrote: > > Quite frankly, I think the solution is to just rip out all the insane > zone crap. IOW, something like the attached. Advantage: - just look at the number of garbage lines removed! 21 insertions(+), 182 deletions(-) - it will actuall

Re: [PATCH v6 1/5] ARM: davinci: da8xx: add usb phy clocks

2016-10-26 Thread Sekhar Nori
On Wednesday 26 October 2016 10:07 PM, David Lechner wrote: > On 10/26/2016 02:59 AM, Sekhar Nori wrote: >> On Wednesday 26 October 2016 08:36 AM, David Lechner wrote: >>> Up to this point, the USB phy clock configuration was handled >>> manually in >>> the board files and in the usb drivers. This

Re: complete_all and "forever" completions

2016-10-26 Thread Nicholas Mc Guire
On Wed, Oct 26, 2016 at 05:42:13PM +0200, Peter Zijlstra wrote: > On Wed, Oct 26, 2016 at 05:10:01AM -0700, Dmitry Torokhov wrote: > > On Wed, Oct 26, 2016 at 10:45:35AM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 25, 2016 at 03:30:54PM -0700, Dmitry Torokhov wrote: > > > > > Or do we need some

Re: [v12, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-10-26 Thread Scott Wood
On Wed, 2016-09-21 at 14:57 +0800, Yangbo Lu wrote: > diff --git a/drivers/soc/fsl/Kconfig b/drivers/soc/fsl/Kconfig > new file mode 100644 > index 000..b99764c > --- /dev/null > +++ b/drivers/soc/fsl/Kconfig > @@ -0,0 +1,19 @@ > +# > +# Freescale SOC drivers > +# > + > +source "drivers/soc/fsl

Re: [PATCH] net: Reset skb to network header in neigh_hh_output

2016-10-26 Thread Eric Dumazet
On Wed, 2016-10-26 at 18:53 +0200, Abdelrhman Ahmed wrote: > I think it's at the right place as the current one is a little different from > the > commit e1f165032c8bade3a6bdf546f8faf61fda4dd01c. > > In the next lines, skb_push is called after copying the hardware header and > there > is no chan

<    1   2   3   4   5   6   7   8   9   10   >