Re: [PATCH v4 4/4] regulator: Prevent falling too fast

2016-12-13 Thread Matthias Kaehlcke
Hi, El Tue, Dec 13, 2016 at 12:00:32PM -0800 Doug Anderson ha dit: > On Tue, Dec 13, 2016 at 9:19 AM, Mark Brown wrote: > > On Mon, Dec 12, 2016 at 01:15:02PM -0800, Matthias Kaehlcke wrote: > >> El Fri, Oct 28, 2016 at 07:15:21PM +0100 Mark Brown ha dit: > >> > On Mon, Sep 26, 2016 at 10:41:59A

Re: [PATCH v2] memory_hotplug: zone_can_shift() returns boolean value

2016-12-13 Thread Reza Arbab
On Tue, Dec 13, 2016 at 03:29:49PM -0500, Yasuaki Ishimatsu wrote: online_{kernel|movable} is used to change the memory zone to ZONE_{NORMAL|MOVABLE} and online the memory. To check that memory zone can be changed, zone_can_shift() is used. Currently the function returns minus integer value, plu

[PATCH] pinctrl: fix DT bindings for marvell,kirkwood-pinctrl

2016-12-13 Thread Andreas Klinger
On Marvell mv88f6180 mpp pins range from 0 to 19 as well as from 35 to 44. This is already fixed in commit: 9573e7923007961799beff38bc5c5a7635634eef This is the documentation change for above commit. Signed-off-by: Andreas Klinger --- .../bindings/pinctrl/marvell,kirkwood-pinctrl.txt| 20 ++

Re: [RFC, PATCHv1 15/28] x86: detect 5-level paging support

2016-12-13 Thread Boris Petkov
On December 13, 2016 11:44:06 PM GMT+01:00, "H. Peter Anvin" wrote: >When compiling with -fPIC gcc treats ebx as a "fixed register". A >fixed >register can't be spilled, and so a clobber of a fixed register is a >fatal error. > >Like it or not, it's how it works. > > -hpa In the meantime

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2016 at 09:39:55PM +0100, christophe leroy wrote: > Le 13/12/2016 à 20:15, Segher Boessenkool a écrit : > >On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: > >>At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is > >>set to mark the interrupt as recov

Re: [RFC, PATCHv1 15/28] x86: detect 5-level paging support

2016-12-13 Thread H. Peter Anvin
On 12/09/16 07:32, Kirill A. Shutemov wrote: > > Something like this? > > diff --git a/arch/x86/boot/cpuflags.c b/arch/x86/boot/cpuflags.c > index 6687ab953257..366aad972025 100644 > --- a/arch/x86/boot/cpuflags.c > +++ b/arch/x86/boot/cpuflags.c > @@ -70,16 +70,22 @@ int has_eflag(unsigned long

Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm

2016-12-13 Thread Michal Marek
Dne 9.12.2016 v 23:46 Dodji Seketeli napsal(a): > Hello, > > Nicholas Piggin a écrit: > > [...] > >> That said, a dwarf based checker tool should be able to do as good a job >> (maybe a bit better because report is very informative and it may pick up >> compiler alignments or padding options).

Re: /drivers/char/Kconfig Bug Kernel Patch

2016-12-13 Thread Max Bires
On Tue, Dec 13, 2016 at 1:37 PM, Arnd Bergmann wrote: > > On Tuesday, December 13, 2016 1:30:39 PM CET Max Bires wrote: > > While trying to turn off the port device in defconfig, I ran into a bug > > caused by the fact that the Kconfig for port didn't have a string after the > > bool declaration.

[PATCH v4] siphash: add cryptographically secure hashtable function

2016-12-13 Thread Jason A. Donenfeld
SipHash is a 64-bit keyed hash function that is actually a cryptographically secure PRF, like HMAC. Except SipHash is super fast, and is meant to be used as a hashtable keyed lookup function. SipHash isn't just some new trendy hash function. It's been around for a while, and there really isn't any

Re: /drivers/char/Kconfig Bug Kernel Patch

2016-12-13 Thread Josh Triplett
> From c4a21c2ac0c587094000a3daeb13eec6056dc63f Mon Sep 17 00:00:00 2001 > From: Max > Date: Fri, 9 Dec 2016 15:16:47 -0800 > Subject: [PATCH] char: lack of bool string made CONFIG_DEVPORT always on > > Without a bool string present, using "# CONFIG_DEVPORT is not set" in > defconfig files would

Re: [RFC, PATCHv1 15/28] x86: detect 5-level paging support

2016-12-13 Thread H. Peter Anvin
On 12/08/16 12:20, Borislav Petkov wrote: > On Thu, Dec 08, 2016 at 12:08:53PM -0800, Linus Torvalds wrote: >> Especially since that's some of the ugliest inline asm ever due to the >> nasty BX handling. > > Yeah, about that: why doesn't gcc handle that for us like it would > handle a clobbered re

Re: [PATCH v3] siphash: add cryptographically secure hashtable function

2016-12-13 Thread Jason A. Donenfeld
Hi Eric, On Tue, Dec 13, 2016 at 9:39 AM, Eric Biggers wrote: > Hmm, I don't think you can really do load_unaligned_zeropad() without first > checking for 'left != 0'. The fixup section for load_unaligned_zeropad() > assumes that rounding the pointer down to a word boundary will produce an > add

[GIT PULL UPDATED] libata changes for v4.10-rc1

2016-12-13 Thread Tejun Heo
Hello, One more patch from Adam added. It makes libata skip probing for NCQ prio unless the feature is explicitly requested by the user. This is necessary because some controllers lock up after the optional feature is probed. * Adam added opt-in ATA command priority support. * There are machin

Re: [PATCHSET/RFC v2] blk-mq scheduling framework

2016-12-13 Thread Jens Axboe
On 12/13/2016 09:28 AM, Jens Axboe wrote: >>> No worries, ask away if you have questions. As you might have seen, it's >>> still a little bit of a moving target, but it's getting closer every >>> day. I'll post a v3 later today hopefully that will be a good fix point >>> for you. I'll need to add t

Re: [inotify] fee1df54b6: BUG_kmalloc-#(Not_tainted):Freepointer_corrupt

2016-12-13 Thread Andrey Vagin
On Tue, Dec 13, 2016 at 11:34 AM, Nikolay Borisov wrote: > > > On 13.12.2016 20:51, Eric W. Biederman wrote: >> Nikolay Borisov writes: >> >>> So this thing resurfaced again and I took a hard look into the code but >>> couldn't find anything suspicious. So the allocating and freeing >>> contexts

Re: [PATCH v2 1/2] devicetree: i2c-hid: Add Wacom digitizer + regulator support

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 12:34 PM, Brian Norris wrote: > Hi all, > > On Mon, Dec 12, 2016 at 08:47:06AM -0600, Rob Herring wrote: > > [Snip Benjamin's proposal; I agree we don't really want a multi-level DT > layout purely for making the driver look a little nicer (I'm not sure > this would really

Re: [RFC PATCH] mm: introduce kv[mz]alloc helpers

2016-12-13 Thread Joe Perches
On Tue, 2016-12-13 at 11:14 +0100, Michal Hocko wrote: > Are there any more comments or objections to this patch? Is this a good > start or kv[mz]alloc has to provide a way to cover GFP_NOFS users as > well in the initial version. Did Andrew Morton ever comment on this? I believe he was the primar

Re: [PATCH 1/2] arm64: setup: introduce kaslr_offset()

2016-12-13 Thread Alexander Popov
On 12.12.2016 14:29, Will Deacon wrote: > On Sun, Dec 11, 2016 at 03:50:55AM +0300, Alexander Popov wrote: >> Introduce kaslr_offset() similarly to x86_64 for fixing kcov. >> >> Signed-off-by: Alexander Popov >> --- >> arch/arm64/include/asm/setup.h | 19 +++ >> arch/arm64/in

Re: [PATCH] dm: Avoid sleeping while holding the dm_bufio lock

2016-12-13 Thread Doug Anderson
Hi, On Mon, Dec 12, 2016 at 4:08 PM, Doug Anderson wrote: > OK, so I just put a printk in wait_iff_congested() and it didn't show > me waiting for the timeout (!). I know that I saw > wait_iff_congested() in the originally reproduction of this problem, > but it appears that in my little "balloon

Re: [PATCH v3] PCI/ACPI: xgene: Add ECAM quirk for X-Gene PCIe controller

2016-12-13 Thread Jon Masters
ou see any issues. Just following up. Please find attached a boot log from an HPE ProLiant m400 Moonshot X-Gene based cartridge running next-20161213 with pci/ecam branch. Here is the /proc/iomem output as well: # cat /proc/iomem 1052-10523fff : APMC0D18:00 1052-10523fff : APMC0D18:00

[RFC v2] timers: Don't wake ktimersoftd on every tick

2016-12-13 Thread Haris Okanovic
Changed the way timers are collected per Julia and Thomas' recommendation: Expired timers are now collected in interrupt context and fired in ktimersoftd to avoid double-walk of `pending_map`. This is implemented by storing lists of expired timers in timer_base, which carries a memory overhead 9*s

Re: [v5,4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-12-13 Thread Alexander Sverdlin
Hi! On 17/11/16 12:43, Sriram Dash wrote: > From: Arnd Bergmann > > For xhci-hcd platform device, all the DMA parameters are not > configured properly, notably dma ops for dwc3 devices. So, set > the dma for xhci from sysdev. sysdev is pointing to device that > is known to the system firmware or

Re: sctp: suspicious rcu_dereference_check() usage in sctp_epaddr_lookup_transport

2016-12-13 Thread Marcelo Ricardo Leitner
On Tue, Dec 13, 2016 at 07:07:01PM +0100, Dmitry Vyukov wrote: > Hello, > > I am getting the following reports while running syzkaller fuzzer: > > [ INFO: suspicious RCU usage. ] > 4.9.0+ #85 Not tainted > --- > ./include/linux/rhashtable.h:572 suspicious rcu_dereferen

Re: /drivers/char/Kconfig Bug Kernel Patch

2016-12-13 Thread Arnd Bergmann
On Tuesday, December 13, 2016 1:30:39 PM CET Max Bires wrote: > While trying to turn off the port device in defconfig, I ran into a bug > caused by the fact that the Kconfig for port didn't have a string after the > bool declaration. I fixed this in the attached patch (though I figure the > descrip

Re: [RFC][PATCH 2/5] usb: dwc2: Workaround case where GOTGCTL state is wrong

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 4:28 AM, Vardan Mikayelyan wrote: > On 12/13/2016 11:12 AM, John Stultz wrote: >> When removing a USB-A to USB-otg adapter cable, we get a change >> status irq, and then in dwc2_conn_id_status_change, we >> erroniously see the GOTGCTL_CONID_B flag set. This causes us to >>

Re: [PATCH 5/5] Documentation: fsl-quadspi: Add fsl, ls1012a-qspi compatible string

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 8:47 PM, Yao Yuan wrote: > On Thu, Dec 13, 2016 at 05:23:02PM +0800, Rob Herring wrote: >> On Thu, Dec 08, 2016 at 05:23:04PM +0800, Yuan Yao wrote: >> > From: Yuan Yao >> >> Same problem in this subject too. >> >> > >> > new compatible string: "fsl,ls1012a-qspi". >> > >>

Re: [PATCH v4] media: Driver for Toshiba et8ek8 5MP sensor

2016-12-13 Thread Pavel Machek
Hi! I have finally found the old mail you were refering to. Let me go through it. > > +/* > > + * Convert exposure time `us' to rows. Modify `us' to make it to > > + * correspond to the actual exposure time. > > + */ > > +static int et8ek8_exposure_us_to_rows(struct et8ek8_sensor *sensor, u32 >

Re: [RFC 01/10] kmod: add test driver to stress test the module loader

2016-12-13 Thread Luis R. Rodriguez
t; > +++ b/tools/testing/selftests/kmod/kmod.sh > > @@ -0,0 +1,449 @@ > > +#!/bin/bash > > +# <-- snip --> > > +# You'll want at least 4096 GiB of RAM to expect to run these tests > > 4TiB of RAM? I assume this was meant to be 4 GiB not 4096? Whoops, ye

Re: [PATCH 2/4] dt-bindings: mfd: Remove TPS65217 interrupts

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 5:24 PM, Milo Kim wrote: > On 12/13/2016 02:25 AM, Rob Herring wrote: >> >> On Fri, Dec 09, 2016 at 03:28:31PM +0900, Milo Kim wrote: >>> >>> Interrupt numbers are from the datasheet, so no need to keep them in >>> the ABI. Use the number in the DT file. >> >> I don't see t

Re: [PATCH v6 1/8] MFD: add bindings for STM32 Timers driver

2016-12-13 Thread Rob Herring
On Tue, Dec 13, 2016 at 3:29 AM, Benjamin Gaignard wrote: > 2016-12-12 19:51 GMT+01:00 Rob Herring : >> On Fri, Dec 09, 2016 at 03:15:12PM +0100, Benjamin Gaignard wrote: >>> Add bindings information for STM32 Timers >>> >>> version 6: >>> - rename stm32-gtimer to stm32-timers >>> - change compati

Re: [RFC, PATCHv1 00/28] 5-level paging

2016-12-13 Thread Dave Hansen
On 12/08/2016 09:01 PM, Ingo Molnar wrote: >> > - Handle opt-in wider address space for userspace. >> > >> > Not all userspace is ready to handle addresses wider than current >> > 47-bits. At least some JIT compiler make use of upper bits to encode >> > their info. >> > >> > We

undefined reference to `_text'

2016-12-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b78b499a67c3f77aeb6cd0b54724bc38b141255d commit: 7c7808ce107d63e158dbbc3af085980985a0c3c4 openrisc: prevent VGA console, fix builds date: 31 hours ago config: openrisc-alldefconfig (attached as .config) co

Re: [PATCH v2 11/12] scsi: ufs: add trace event for ufs commands

2016-12-13 Thread Subhash Jadavani
On 2016-12-13 12:22, Steven Rostedt wrote: On Tue, 13 Dec 2016 11:52:16 -0800 Subhash Jadavani wrote: From: Lee Susman Use the ftrace infrastructure to conditionally trace ufs command events. New trace event is created, which samples the following ufs command data: - device name - optiona

[PATCH] vfio/type1: Restore mapping performance with mdev support

2016-12-13 Thread Alex Williamson
As part of the mdev support, type1 now gets a task reference per vfio_dma and uses that to get an mm reference for the task while working on accounting. That's the correct thing to do for paths where we can't rely on using current, but there are still hot paths where we can optimize because we kno

Re: [RFC PATCH] mm: introduce kv[mz]alloc helpers

2016-12-13 Thread Andreas Dilger
On Dec 13, 2016, at 3:14 AM, Michal Hocko wrote: > > Are there any more comments or objections to this patch? Is this a good > start or kv[mz]alloc has to provide a way to cover GFP_NOFS users as > well in the initial version. I'm in favour of this cleanup as a starting point. I definitely agre

[PATCH] lib: add CONFIG_TEST_SORT to enable self-test of sort()

2016-12-13 Thread Felix Kostenzer
From: Kostenzer Felix along with the addition made to Kconfig.debug, the prior existing but permanently disabled test function has been slightly refactored. patch has been tested using QEMU 2.1.2 with a .config obtained through 'make defconfig' (x86_64) and manually enabling the option. Signed-

Re: version 3.18.44 to 3.18.45 introduced a bug in "drivers/scsi/megaraid/megaraid_sas_base.c"

2016-12-13 Thread alexander . levin
On Tue, Dec 13, 2016 at 08:47:33AM -0800, Greg Kroah-Hartman wrote: > On Tue, Dec 13, 2016 at 08:43:41AM -0800, James Bottomley wrote: > > On Tue, 2016-12-13 at 08:33 -0800, Randy Dunlap wrote: > > > On 12/13/16 08:30, Greg Kroah-Hartman wrote: > > > > I don't maintain 3.18-stable :) > > > > > > >

Re: [RFC PATCH v3] audit: use proper refcount locking on audit_sock

2016-12-13 Thread Paul Moore
On Tue, Dec 13, 2016 at 10:03 AM, Richard Guy Briggs wrote: > Resetting audit_sock appears to be racy. > > audit_sock was being copied and dereferenced without using a refcount on > the source sock. > > Bump the refcount on the underlying sock when we store a refrence in > audit_sock and release i

[RFC v4 07/16] iommu: Implement reserved_regions iommu-group sysfs file

2016-12-13 Thread Eric Auger
A new iommu-group sysfs attribute file is introduced. It contains the list of reserved regions for the iommu-group. Each reserved region is described on a separate line: - first field is the start IOVA address, - second is the end IOVA address, Signed-off-by: Eric Auger --- v3 -> v4: - add cast

[RFC v4 06/16] iommu: iommu_get_group_resv_regions

2016-12-13 Thread Eric Auger
Introduce iommu_get_group_resv_regions whose role consists in enumerating all devices from the group and collecting their reserved regions. The list is sorted and overlaps are checked. Signed-off-by: Eric Auger --- v3 -> v4: - take the iommu_group lock in iommu_get_group_resv_regions - the list

[RFC v4 12/16] irqdomain: irq_domain_check_msi_remap

2016-12-13 Thread Eric Auger
This new function checks whether all platform and PCI MSI domains implement IRQ remapping. This is useful to understand whether VFIO passthrough is safe with respect to interrupts. On ARM typically an MSI controller can sit downstream to the IOMMU without preventing VFIO passthrough. As such any a

[RFC v4 09/16] iommu/arm-smmu: Implement reserved region get/put callbacks

2016-12-13 Thread Eric Auger
The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger --- v3 -> v4: - do not handle PCI host bridge windows anymore - encode

[RFC v4 10/16] iommu/arm-smmu-v3: Implement reserved region get/put callbacks

2016-12-13 Thread Eric Auger
iommu/arm-smmu: Implement reserved region get/put callbacks The get() populates the list with the MSI IOVA reserved window. At the moment an arbitray MSI IOVA window is set at 0x800 of size 1MB. This will allow to report those info in iommu-group sysfs. Signed-off-by: Eric Auger --- v4: c

[RFC v4 11/16] irqdomain: Add IRQ_DOMAIN_FLAG_MSI_REMAP value

2016-12-13 Thread Eric Auger
This new enum value aims at indicating whether the irq domain implements MSI remapping. This property is useful to assess the IRQ assignment safety at VFIO level. Signed-off-by: Eric Auger --- include/linux/irqdomain.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/irqdomai

[RFC v4 08/16] iommu/vt-d: Implement reserved region get/put callbacks

2016-12-13 Thread Eric Auger
This patch registers the [0xfee0 - 0xfeef] 1MB MSI range as a reserved region. This will allow to report that range in the iommu-group sysfs. Signed-off-by: Eric Auger --- RFCv2 -> RFCv3: - use get/put_resv_region callbacks. RFC v1 -> RFC v2: - fix intel_iommu_add_reserved_regions name

Re: [v5,6/6] usb: dwc3: Do not set dma coherent mask

2016-12-13 Thread Alexander Sverdlin
Hi! On 17/11/16 12:43, Sriram Dash wrote: > From: Arnd Bergmann > > The dma mask is correctly set up by the DT probe function, no > need to override it any more. > > Signed-off-by: Arnd Bergmann > Signed-off-by: Sriram Dash Successfully tested on arm64/axxia with DWC3 USB host, XHCIs properl

Re: [PATCH] cpumask: avoid WARN in prefill_possible_map()

2016-12-13 Thread Thomas Gleixner
On Tue, 13 Dec 2016, Dmitry Safonov wrote: > > +static inline void cpumask_reset_possible_mask(void) { } > ... > > +static inline void reset_cpu_possible_mask(void) > > Is this intentionally? No, that was a left over and a missing refresh bevor sending it out quickly. Thanks, tglx

[RFC v4 14/16] vfio/type1: Allow transparent MSI IOVA allocation

2016-12-13 Thread Eric Auger
When attaching a group to the container, check the group's reserved regions and test whether the IOMMU translates MSI transactions. If yes, we initialize an IOVA allocator through the iommu_get_msi_cookie API. This will allow the MSI IOVAs to be transparently allocated on MSI controller's compose()

[RFC v4 13/16] irqchip/gicv3-its: Sets IRQ_DOMAIN_FLAG_MSI_REMAP

2016-12-13 Thread Eric Auger
The GICv3 ITS is MSI remapping capable. Let's advertise this property so that VFIO passthrough can assess IRQ safety. Signed-off-by: Eric Auger --- drivers/irqchip/irq-gic-v3-its.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-i

[RFC v4 15/16] vfio/type1: Check MSI remapping at irq domain level

2016-12-13 Thread Eric Auger
In case the IOMMU does not bypass MSI transactions (typical case on ARM), we check all MSI controllers are IRQ remapping capable. If not the IRQ assignment may be unsafe. At this stage the arm-smmu-(v3) still advertise the IOMMU_CAP_INTR_REMAP capability at IOMMU level. This will be removed in sub

Re: [PATCH v2 02/12] scsi: ufs: add tracing support

2016-12-13 Thread Subhash Jadavani
On 2016-12-13 12:10, Steven Rostedt wrote: On Tue, 13 Dec 2016 11:48:45 -0800 Subhash Jadavani wrote: This change adds the ftrace support for following: 1. UFS initialization time 2. Clock gating states 3. Clock scaling states 4. Power management APIs latency 5. BKOPs enable/disable Usage:

[RFC v4 03/16] iommu: Add a new type field in iommu_resv_region

2016-12-13 Thread Eric Auger
We introduce a new field to differentiate the reserved region types and specialize the apply_resv_region implementation. Legacy direct mapped regions have IOMMU_RESV_DIRECT type. We introduce 2 new reserved memory types: - IOMMU_RESV_MSI will characterize MSI regions - IOMMU_RESV_NOMAP characteriz

[RFC v4 02/16] iommu: Rename iommu_dm_regions into iommu_resv_regions

2016-12-13 Thread Eric Auger
We want to extend the callbacks used for dm regions and use them for reserved regions. Reserved regions can be - directly mapped regions - regions that cannot be iommu mapped (PCI host bridge windows, ...) - MSI regions (because they belong to another address space or because they are not transla

[RFC v4 00/16] KVM PCIe/MSI passthrough on ARM/ARM64 and IOVA reserved regions

2016-12-13 Thread Eric Auger
Following LPC discussions, we now report reserved regions through iommu-group sysfs reserved_regions attribute file. Reserved regions are populated through the IOMMU get_resv_region callback (former get_dm_regions), now implemented by amd-iommu, intel-iommu and arm-smmu: - the amd-iommu reports de

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread christophe leroy
Le 13/12/2016 à 20:15, Segher Boessenkool a écrit : On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is set to mark the interrupt as recoverable. MSR RI has to be unset before writing into SRR0 and SRR1 at except

[RFC v4 01/16] iommu/dma: Allow MSI-only cookies

2016-12-13 Thread Eric Auger
IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other users to piggyback o

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-13 Thread Dmitry Vyukov
"On Tue, Dec 13, 2016 at 9:09 PM, Alan Stern wrote: > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > >> On Tue, Dec 13, 2016 at 7:38 PM, Alan Stern >> wrote: >> > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: >> > >> >> On Tue, Dec 13, 2016 at 4:52 PM, Alan Stern >> >> wrote: >> >> > On Tue, 13 Dec 2

[RFC v4 04/16] iommu: iommu_alloc_resv_region

2016-12-13 Thread Eric Auger
Introduce a new helper serving the purpose to allocate a reserved region. This will be used in iommu driver implementing reserved region callbacks. Signed-off-by: Eric Auger --- v3 -> v4: - add INIT_LIST_HEAD(®ion->list) - use int for prot param and add int type param - remove implementation ou

[RFC v4 16/16] iommu/arm-smmu: Do not advertise IOMMU_CAP_INTR_REMAP anymore

2016-12-13 Thread Eric Auger
IOMMU_CAP_INTR_REMAP has been advertised in arm-smmu(-v3) although on ARM this property is not attached to the IOMMU but rather is implemented in the MSI controller (GICv3 ITS). Now vfio_iommu_type1 takes into account the MSI domain MSI remapping capability, let's correct this. Signed-off-by: Eri

[RFC v4 05/16] iommu: Only map direct mapped regions

2016-12-13 Thread Eric Auger
As we introduced new reserved region types which do not require mapping, let's make sure we only map direct mapped regions. Signed-off-by: Eric Auger --- v3 -> v4: - use region's type and reword commit message and title --- drivers/iommu/iommu.c | 3 +++ 1 file changed, 3 insertions(+) diff -

Re: [PATCH v3 0/4] ARM: Add support for CONFIG_DEBUG_VIRTUAL

2016-12-13 Thread Florian Fainelli
On 12/09/2016 03:36 PM, Florian Fainelli wrote: > This patch series builds on top of Laura's [PATCHv5 00/10] > CONFIG_DEBUG_VIRTUAL > for arm64 to add support for CONFIG_DEBUG_VIRTUAL for ARM. > > This was tested on a Brahma B15 platform (ARMv7 + HIGHMEM + LPAE). > > Note that the treewide chang

[PATCH v2] memory_hotplug: zone_can_shift() returns boolean value

2016-12-13 Thread Yasuaki Ishimatsu
online_{kernel|movable} is used to change the memory zone to ZONE_{NORMAL|MOVABLE} and online the memory. To check that memory zone can be changed, zone_can_shift() is used. Currently the function returns minus integer value, plus integer value and 0. When the function returns minus or plus integ

[PATCH 4/5] radix tree test suite: Delete unused rcupdate.c

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox This file was used to implement call_rcu() before liburcu implemented that function. It hasn't even been compiled since before the test suite was added to the kernel. Remove it to reduce confusion. Signed-off-by: Matthew Wilcox --- tools/testing/radix-tree/rcupdate.c | 8

[PATCH 5/5] Reimplement IDR and IDA using the radix tree

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox The IDR is very similar to the radix tree. It has some functionality that the radix tree did not have (alloc next free, cyclic allocation, a callback-based for_each, destroy tree), which is readily implementable on top of the radix tree. A few small changes were needed in o

[PATCH 0/5] Additional radix tree patches for 4.10

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox Hi Andrew, One bug has popped up in testing which is reasonably hard to hit (fixed by patch 2 in this series). I needed to change the test suite to be able to catch the bug in action. The test suite was returning freed memory to glibc's malloc, but we have to keep a cache

[PATCH 1/5] radix tree test suite: Cache recently freed objects

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox The kmem_cache_alloc implementation simply allocates new memory from malloc() and calls the ctor, which zeroes out the entire object. This means it cannot spot bugs where the object isn't properly reinitialised before being freed. Add a small (11 objects) cache before freein

[PATCH 2/5] radix-tree: Ensure counts are initialised

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox radix_tree_join() was freeing nodes with a non-zero ->exceptional count, and radix_tree_split() wasn't zeroing ->exceptional when it allocated the new node. Fix this by making all callers of radix_tree_node_alloc() pass in the new counts (and some other always-initialised fi

Re: page allocation stall in kernel 4.9 when copying files from one btrfs hdd to another

2016-12-13 Thread David Arendt
Hi, unfortunately I did not dump meminfo before the crash. Here is the actual meminfo as of now with the copy running for about 3 hours. MemTotal: 32806572 kB MemFree: 197336 kB MemAvailable: 31226888 kB Buffers: 52 kB Cached: 30603160 kB SwapCached:

[PATCH 3/5] radix tree test suite: Add new tag check

2016-12-13 Thread Matthew Wilcox
From: Matthew Wilcox We have a check that setting a tag on a single entry at root succeeds, but we were missing a check that clearing a tag on that same entry also succeeds. Signed-off-by: Matthew Wilcox --- tools/testing/radix-tree/tag_check.c | 3 +++ 1 file changed, 3 insertions(+) diff --

Re: [PATCH 2/2] iio: adc: hx711: Add IIO driver for AVIA HX711

2016-12-13 Thread Peter Meerwald-Stadler
> This is the IIO driver for AVIA HX711 ADC which ist mostly used in weighting > cells. comments below > The protocol is quite simple and using GPIO's: GPIOs > One GPIO is used as clock (SCK) while another GPIO is read (DOUT) > > Signed-off-by: Andreas Klinger > --- > drivers/iio/adc/Kconf

Re: [PATCH v2 11/12] scsi: ufs: add trace event for ufs commands

2016-12-13 Thread Steven Rostedt
On Tue, 13 Dec 2016 11:52:16 -0800 Subhash Jadavani wrote: > From: Lee Susman > > Use the ftrace infrastructure to conditionally trace ufs command events. > New trace event is created, which samples the following ufs command data: > - device name > - optional identification string > - task tag

Re: [GIT PULL] Block core changes for 4.10

2016-12-13 Thread Jens Axboe
On 12/11/2016 06:52 PM, Jens Axboe wrote: > Note that this pull will throw 3 trivial merge conflicts, since we had > patches that went into mainline after 4.9-rc1 (upon which this branch is > based), and one that will not show up in block/blk-flush.c. The latter > is due to a fix that went in for t

Re: [PATCH v1 07/12] scsi: ufs: add option to change default UFS power management level

2016-12-13 Thread Subhash Jadavani
On 2016-12-13 12:04, Rob Herring wrote: On Mon, Dec 12, 2016 at 04:54:20PM -0800, Subhash Jadavani wrote: UFS device and link can be put in multiple different low power modes hence UFS driver supports multiple different low power modes. By default UFS driver selects the default (optimal) low po

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-13 Thread Alan Stern
On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > On Tue, Dec 13, 2016 at 7:38 PM, Alan Stern wrote: > > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > > > >> On Tue, Dec 13, 2016 at 4:52 PM, Alan Stern > >> wrote: > >> > On Tue, 13 Dec 2016, Dmitry Vyukov wrote: > >> > > >> >> >> > If it is > >> >> >>

Re: [PATCH 1/2] iio: adc: hx711: Add DT binding for avia,hx711

2016-12-13 Thread Peter Meerwald-Stadler
> Add DT bindings for avia,hx711 > Add vendor avia to vendor list > > Signed-off-by: Andreas Klinger > --- > .../devicetree/bindings/iio/adc/avia-hx711.txt | 23 > ++ > .../devicetree/bindings/vendor-prefixes.txt| 1 + > 2 files changed, 24 insertions(+) > cre

Re: [PATCH 3/9] dt-bindings: stm32-dma: Fix typo regarding DMA client binding

2016-12-13 Thread Rob Herring
On Tue, Dec 13, 2016 at 02:40:45PM +0100, M'boumba Cedric Madianga wrote: > Only four cells are required for dma client binding not five. > > Signed-off-by: M'boumba Cedric Madianga > Reviewed-by: Ludovic BARRE > --- > Documentation/devicetree/bindings/dma/stm32-dma.txt | 5 ++--- > 1 file chan

Re: [PATCH] keys/encrypted: Fix two crypto-on-the-stack bugs

2016-12-13 Thread David Howells
Andy Lutomirski wrote: > I don't know whether you're right, but that sounds a bit silly to me. > This is a *tiny* amount of memory. Assuming a 1MiB kernel image in 4K pages, that gets you back a couple of pages I think - useful if you've only got a few MiB of RAM. David

Re: [PATCH v2 02/12] scsi: ufs: add tracing support

2016-12-13 Thread Steven Rostedt
On Tue, 13 Dec 2016 11:48:45 -0800 Subhash Jadavani wrote: > This change adds the ftrace support for following: > 1. UFS initialization time > 2. Clock gating states > 3. Clock scaling states > 4. Power management APIs latency > 5. BKOPs enable/disable > > Usage: > echo 1 > /sys/kernel/deb

Re: [PATCH 4.8 00/33] 4.8.15-stable review

2016-12-13 Thread Greg Kroah-Hartman
On Tue, Dec 13, 2016 at 12:32:17PM -0700, Shuah Khan wrote: > On 12/13/2016 10:16 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.8.15 release. > > There are 33 patches in this series, all will be posted as a response > > to this one. If anyone has any issu

[PATCH 3.12 07/38] tty: audit: Fix audit source

2016-12-13 Thread Jiri Slaby
From: Peter Hurley 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6b2a3d628aa752f0ab825fc6d4d07b09e274d1c1 upstream. The data to audit/record is in the 'from' buffer (ie., the input read buffer). Fixes: 72586c6061ab ("n_tty: Fix auditing su

[PATCH 3.12 06/38] kernel/panic.c: turn off locks debug before releasing console lock

2016-12-13 Thread Jiri Slaby
From: Vitaly Kuznetsov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7625b3a0007decf2b135cb47ca67abc78a7b1bc1 upstream. Commit 08d78658f393 ("panic: release stale console lock to always get the logbuf printed out") introduced an unwanted ba

[PATCH 3.12 05/38] mtd: blkdevs: fix potential deadlock + lockdep warnings

2016-12-13 Thread Jiri Slaby
From: Brian Norris 3.12-stable review patch. If anyone has any objections, please let me know. === commit f3c63795e90f0c6238306883b6c72f14d5355721 upstream. Commit 073db4a51ee4 ("mtd: fix: avoid race condition when accessing mtd->usecount") fixed a race condition but due to poor o

[PATCH 3.12 04/38] i2c: at91: fix write transfers by clearing pending interrupt first

2016-12-13 Thread Jiri Slaby
From: Cyrille Pitchen 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6f6ddbb09d2a5baded0e23add3ad2d9e9417ab30 upstream. In some cases a NACK interrupt may be pending in the Status Register (SR) as a result of a previous transfer. However at9

Re: [PATCH v2 2/2] crypto: mediatek - add DT bindings documentation

2016-12-13 Thread Rob Herring
On Tue, Dec 13, 2016 at 09:31:16AM +0800, Ryder Lee wrote: > Add DT bindings documentation for the crypto driver > > Signed-off-by: Ryder Lee > --- > .../devicetree/bindings/crypto/mediatek-crypto.txt | 32 > ++ > 1 file changed, 32 insertions(+) > create mode 100644 > Doc

Re: [PATCH v1 07/12] scsi: ufs: add option to change default UFS power management level

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 04:54:20PM -0800, Subhash Jadavani wrote: > UFS device and link can be put in multiple different low power modes hence > UFS driver supports multiple different low power modes. By default UFS > driver selects the default (optimal) low power mode (which gives moderate > power

[PATCH v2 01/12] scsi: ufs: dump debug info during failures

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv Inserts driver dumps for UFS Host Controller registers, Transfer Requests and Task Management Requests. The dumps will occur on driver initialization failure, ufshcd_abort() and on error handling path. Signed-off-by: Dolev Raviv Signed-off-by: Subhash Jadavani --- Changes v1

[PATCH 3.12 08/38] Revert "drivers/net: Disable UFO through virtio"

2016-12-13 Thread Jiri Slaby
From: Vlad Yasevich 3.12-stable review patch. If anyone has any objections, please let me know. === commit e3e3c423f82a415195a7bbbfa619bfa7b20d2db6 upstream. This reverts commit 3d0ad09412ffe00c9afa201d01effdb6023d09b4. Now that GSO functionality can correctly track if the fragme

Re: [PATCH v3 1/3] perf: add PERF_RECORD_NAMESPACES to include namespaces related info

2016-12-13 Thread Eric W. Biederman
Hari Bathini writes: > Hi Eric, > > > On Monday 12 December 2016 11:57 PM, Eric W. Biederman wrote: >> Hari Bathini writes: >> >>> With the advert of container technologies like docker, that depend >>> on namespaces for isolation, there is a need for tracing support for >>> namespaces. This patc

[PATCH 3.12 09/38] KVM: x86: drop error recovery in em_jmp_far and em_ret_far

2016-12-13 Thread Jiri Slaby
From: Radim Krčmář 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2117d5398c81554fbf803f5fd1dc55eb78216c0c upstream. em_jmp_far and em_ret_far assumed that setting IP can only fail in 64 bit mode, but syzkaller proved otherwise (and SDM agre

Re: page allocation stall in kernel 4.9 when copying files from one btrfs hdd to another

2016-12-13 Thread Xin Zhou
Hi David, It has GFP_NOFS flags, according to definition, the issue might have happened during initial DISK/IO. By the way, did you get a chance to dump the meminfo and run "top" before the system hang? It seems more info about the system running state needed to know the issue. Thanks. Xin  

[PATCH 3.12 11/38] USB: serial: cp210x: add ID for the Zone DPMX

2016-12-13 Thread Jiri Slaby
From: Paul Jakma 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2ab13292d7a314fa45de0acc808e41aaad31989c upstream. The BRIM Brothers Zone DPMX is a bicycle powermeter. This ID is for the USB serial interface in its charging dock for the cont

[GIT PULL] ext4 updates for 4.10

2016-12-13 Thread Theodore Ts'o
The following changes since commit bc33b0ca11e3df46a4fa7639ba488c9d4911: Linux 4.9-rc4 (2016-11-05 16:23:36 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to a551d7c8deefb6d9fb4

Re: [PATCH] mm-add-vfree_atomic-fix

2016-12-13 Thread Andrey Ryabinin
On 12/13/2016 09:15 PM, Andy Lutomirski wrote: >>> >>> But not quite acked by me. What happened to the vfree code that >>> causes vfree_deferred to be called in a preemptable context? That >>> sounds like a bug. >> >> Not sure I understand but the above stack points to a preemptible >> context

[PATCH 3.12 10/38] usb: chipidea: move the lock initialization to core file

2016-12-13 Thread Jiri Slaby
From: Peter Chen 3.12-stable review patch. If anyone has any objections, please let me know. === commit a5d906bb261cde5f881a949d3b0fbaa285dcc574 upstream. This can fix below dump when the lock is accessed at host mode due to it is not initialized. [ 46.119638] INFO: trying to r

[PATCH 3.12 17/38] apparmor: fix change_hat not finding hat after policy replacement

2016-12-13 Thread Jiri Slaby
From: John Johansen 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d40658c977769ce2138f286cf131537bf68bdfe upstream. After a policy replacement, the task cred may be out of date and need to be updated. However change_hat is using the stale

Re: [PATCH v4 4/4] regulator: Prevent falling too fast

2016-12-13 Thread Doug Anderson
Hi, On Tue, Dec 13, 2016 at 9:19 AM, Mark Brown wrote: > On Mon, Dec 12, 2016 at 01:15:02PM -0800, Matthias Kaehlcke wrote: >> El Fri, Oct 28, 2016 at 07:15:21PM +0100 Mark Brown ha dit: >> > On Mon, Sep 26, 2016 at 10:41:59AM -0700, Doug Anderson wrote: > >> > What you're describing to me is a d

Re: [PATCH v3 3/3] perf tool: add cgroup identifier entry in perf report

2016-12-13 Thread Eric W. Biederman
Hari Bathini writes: > Hi Eric, > > > On Tuesday 13 December 2016 03:36 AM, Eric W. Biederman wrote: >> Hari Bathini writes: >> >>> This patch introduces a cgroup identifier entry field in perf report to >>> identify or distinguish data of different cgroups. It uses the unique >>> inode number o

[PATCH 3.12 12/38] USB: serial: ftdi_sio: add support for TI CC3200 LaunchPad

2016-12-13 Thread Jiri Slaby
From: Doug Brown 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9bfef729a3d11f04d12788d749a3ce6b47645734 upstream. This patch adds support for the TI CC3200 LaunchPad board, which uses a custom USB vendor ID and product ID. Channel A is used

[PATCH 3.12 14/38] scsi: mpt3sas: Fix secure erase premature termination

2016-12-13 Thread Jiri Slaby
From: Andrey Grodzovsky 3.12-stable review patch. If anyone has any objections, please let me know. === commit 18f6084a989ba1b38702f9af37a2e4049a924be6 upstream. This is a work around for a bug with LSI Fusion MPT SAS2 when perfoming secure erase. Due to the very long time the ope

[PATCH 3.12 16/38] cfg80211: limit scan results cache size

2016-12-13 Thread Jiri Slaby
From: Johannes Berg 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9853a55ef1bb66d7411136046060bbfb69c714fa upstream. It's possible to make scanning consume almost arbitrary amounts of memory, e.g. by sending beacon frames with random BSSIDs

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