[PATCH 2/7] sched/fair: calculate runnable_weight slightly differently

2017-07-14 Thread Josef Bacik
From: Josef Bacik Our runnable_weight currently looks like this runnable_weight = shares * runnable_load_avg / load_avg The goal is to scale the runnable weight for the group based on its runnable to load_avg ratio. The problem with this is it biases us towards tasks that never go to sleep. T

[PATCH 4/7] sched/fair: don't include effective load of process in the old cpu load

2017-07-14 Thread Josef Bacik
From: Josef Bacik We have no idea how long ago the process went to sleep. It could have just gone to sleep, in which case we would essentially be counting the load of the process twice in the previous effective load. Since the history presumably already exists in the previous cpu load don't bot

[PATCH 3/7] sched/fair: fix definitions of effective load

2017-07-14 Thread Josef Bacik
From: Josef Bacik It appears as though we've reversed the definitions of 'this_effective_load' and 'prev_effective_load'. We seem to be using the wrong CPU capacity for both of these parameters, and we want to add the imbalance percentage to the current CPU to make sure we're meeting a high enou

[PATCH 1/7] sched/fair: use reweight_entity to reweight tasks

2017-07-14 Thread Josef Bacik
From: Josef Bacik reweight_task only accounts for the load average change in the cfs_rq, but doesn't account for the runnable_average change in the cfs_rq. We need to do everything reweight_entity does, and then we just set our inv_weight appropriately. Signed-off-by: Josef Bacik --- kernel/s

[PATCH 0/7][RESEND] Fix cpu imbalance with equal weighted groups

2017-07-14 Thread Josef Bacik
(sorry to anybody who got this already, fb email is acting weird and ate the linux-kernel submission so I have no idea who got this and who didn't.) Hello, In testing stacked services we noticed that if you started a normal CPU heavy application in one cgroup, and a cpu stress test in another cg

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-14 Thread Joe Lawrence
On Thu, Jul 13, 2017 at 08:46:40PM -0500, Josh Poimboeuf wrote: > Date: Thu, 13 Jul 2017 20:46:40 -0500 > From: Josh Poimboeuf > To: Joe Lawrence > Cc: live-patch...@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu > , Jiri Kosina , Miroslav Benes > , Petr Mladek , Chris J Arges > >

[PATCH v2 00/13] mpt3sas driver NVMe support:

2017-07-14 Thread Suganath Prabu S
Ventura Series controller are Tri-mode. The controller and firmware are capable of supporting NVMe devices and PCIe switches to be connected with the controller. This patch set adds driver level support for NVMe devices and PCIe switches. Suganath Prabu S (13): mpt3sas: Update MPI Header mpt3s

[PATCH v2 02/13] mpt3sas: Add nvme device support in slave alloc, target alloc and probe

2017-07-14 Thread Suganath Prabu S
1) Added support for probing pcie device and adding NVMe drives to SML and driver's internal list pcie_device_list. 2) Added support for determing NVMe as boot device. 3) Added nvme device support for call back functions scan_finished target_alloc,slave_alloc,target destroy and slave destroy. a

[PATCH v2 03/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe devices

2017-07-14 Thread Suganath Prabu S
* Added support for translating the SGLs associated with incoming commands either to IEE SGL or NVMe PRPs for NVMe devices. * The hardware translation of IEEE SGL to NVMe PRPs has limitation and if a command cannot be translated by hardware then it will go to firmware and the firmware needs to tra

[PATCH v2 04/13] mpt3sas: Added support for nvme encapsulated request message.

2017-07-14 Thread Suganath Prabu S
* Mpt3sas driver uses the NVMe Encapsulated Request message to send an NVMe command to an NVMe device attached to the IOC. * Normal I/O commands like reads and writes are passed to the controller as SCSI commands and the controller has the ability to translate the commands to NVMe equivalent. * T

[PATCH v2 09/13] mpt3sas: scan and add nvme device after controller reset

2017-07-14 Thread Suganath Prabu S
After Controller reset, Scan and add nvme device back to the topology. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 194 +- 1 files changed, 190 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/mpt

[PATCH v2 07/13] mpt3sas: Handle NVMe PCIe device related events generated from firmware.

2017-07-14 Thread Suganath Prabu S
* The controller firmware sends separate events for NVMe devices and PCIe switches similar to existing SAS events. * NVMe device detection, addition and removal are reported by the firmware through PCIe Topology Change list events. * The PCIe device state change events are sent when the firmware

[PATCH v2 11/13] mpt3sas: NVMe drive support for BTDHMAPPING ioctl command and log info

2017-07-14 Thread Suganath Prabu S
* Added debug prints for pcie devices in ioctl debug path. Which will be helpful for debugging. * Added PCIe device support for ioctl BTDHMAPPING ioctl. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 88 +++

[PATCH v2 12/13] mpt3sas: Fix nvme drives checking for tlr.

2017-07-14 Thread Suganath Prabu S
Check for NVMe drives before enabling or checking tlr. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drive

[PATCH v2 13/13] mpt3sas: Update mpt3sas driver version.

2017-07-14 Thread Suganath Prabu S
Updated mpt3sas driver version to 15.101.00.00 Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.

[PATCH v2 10/13] mpt3as: Add-Task-management-debug-info-for-NVMe-drives.

2017-07-14 Thread Suganath Prabu S
Added debug information for NVMe/PCIe drives in target rest path. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 83 - 1 files changed, 70 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/mpt3sas/m

[PATCH v2 08/13] mpt3sas: Set NVMe device queue depth as 128

2017-07-14 Thread Suganath Prabu S
Sets nvme device queue depth, name and displays device capabilities Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h |2 +- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 40 ++ 2 files changed, 41 insertions(+), 1

[PATCH v2 05/13] mpt3sas: API 's to support NVMe drive addition to SML

2017-07-14 Thread Suganath Prabu S
Below Functions are added in various paths to support NVMe drive addition. _scsih_pcie_add_device _scsih_pcie_device_add _scsih_pcie_device_init_add _scsih_check_pcie_access_status _scsih_pcie_check_device mpt3sas_get_pdev_by_handle mpt3sas_config_get_pcie_device_pg0 mpt3sas_config_get_pcie_devi

[PATCH v2 06/13] mpt3sas: API's to remove nvme drive from sml

2017-07-14 Thread Suganath Prabu S
Below API's are included in nvme drive remove path. _scsih_pcie_device_remove_by_handle _scsih_pcie_device_remove_from_sml Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 148 +- 1 files changed, 145 insertio

[PATCH] staging: lustre: fix spelling mistake, "grranted" -> "granted"

2017-07-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in CERROR error message Signed-off-by: Colin Ian King --- drivers/staging/lustre/lustre/ptlrpc/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ptlrpc/import.c b/drivers/staging/lust

Re: [PATCH 4.4 00/57] 4.4.77-stable review

2017-07-14 Thread Greg Kroah-Hartman
On Fri, Jul 14, 2017 at 02:21:10PM +0200, Arnd Bergmann wrote: > On Fri, Jul 14, 2017 at 11:51 AM, Greg Kroah-Hartman > wrote: > > On Thu, Jul 13, 2017 at 02:07:45PM -0700, kernelci.org bot wrote: > >> stable-rc/linux-4.4.y boot: 99 boots: 1 failed, 92 passed with 5 offline, > >> 1 conflict (v4.4

Re: [PATCH 4.4 00/57] 4.4.77-stable review

2017-07-14 Thread Greg Kroah-Hartman
On Fri, Jul 14, 2017 at 01:35:24PM +0100, Mark Brown wrote: > On Fri, Jul 14, 2017 at 11:51:20AM +0200, Greg Kroah-Hartman wrote: > > On Thu, Jul 13, 2017 at 02:07:45PM -0700, kernelci.org bot wrote: > > > stable-rc/linux-4.4.y boot: 99 boots: 1 failed, 92 passed with 5 offline, > > > 1 conflict (

Re: [PATCH 6/6] mm/hmm: documents how device memory is accounted in rss and memcg

2017-07-14 Thread Michal Hocko
On Thu 13-07-17 17:15:32, Jérôme Glisse wrote: > For now we account device memory exactly like a regular page in > respect to rss counters and memory cgroup. We do this so that any > existing application that starts using device memory without knowing > about it will keep running unimpacted. This a

Re: [PATCH 02/13] mpt3sas: SGL to PRP Translation for I/Os to NVMe devices

2017-07-14 Thread Suganath Prabu Subramani
Hi Keith, We have made change and submitted V2 of patch set. Thanks, Suganath Prabu S On Wed, Jul 12, 2017 at 5:34 AM, Keith Busch wrote: > On Tue, Jul 11, 2017 at 01:55:02AM -0700, Suganath Prabu S wrote: >> +/** >> + * _base_check_pcie_native_sgl - This function is called for PCIe end >> devi

[PATCH v2 01/13] mpt3sas: Update MPI Header

2017-07-14 Thread Suganath Prabu S
Update MPI Files for NVMe support Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2.h | 43 +++- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 647 +- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 11 +- drivers/scsi/mpt3sas

Re: [PATCH v2] xattr: Enable security.capability in user namespaces

2017-07-14 Thread Serge E. Hallyn
Quoting Stefan Berger (stef...@linux.vnet.ibm.com): > On 07/13/2017 08:38 PM, Eric W. Biederman wrote: > >Stefan Berger writes: > > > >>On 07/13/2017 01:49 PM, Eric W. Biederman wrote: > >> > >>>My big question right now is can you implement Ted's suggested > >>>restriction. Only one security.foo

Re: [PATCH 1/2] ASoC: fix pcm-creation regression

2017-07-14 Thread Linus Walleij
On Wed, Jul 12, 2017 at 5:55 PM, Johan Hovold wrote: > This reverts commit 99b04f4c4051 ("ASoC: add Component level > pcm_new/pcm_free"), which started calling the pcm_new callback for every > component in a *card* when creating a new pcm, something which does not > seem to make any sense. > > Th

[PATCH v4 2/3] nvmet: Move serial number from controller to subsystem

2017-07-14 Thread Johannes Thumshirn
The NVMe specification defines the serial number as: "Serial Number (SN): Contains the serial number for the NVM subsystem that is assigned by the vendor as an ASCII string. Refer to section 7.10 for unique identifier requirements. Refer to section 1.5 for ASCII string requirements" So move it fr

[PATCH] HID: logitech-hidpp: fix spelling mistake, "feeback" -> "feedback"

2017-07-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in hid_info message and add line break to split an overly long line to clean up a checkpatch warning. Signed-off-by: Colin Ian King --- drivers/hid/hid-logitech-hidpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dr

[PATCH v4 3/3] nvmet: preserve controller serial number between reboots

2017-07-14 Thread Johannes Thumshirn
The NVMe target has no way to preserve controller serial IDs across reboots which breaks udev scripts doing SYMLINK+="dev/disk/by-id/nvme-$env{ID_SERIAL}-part%n. Export the randomly generated serial number via configfs and allow setting of a serial via configfs to mitigate this breakage. Signed-o

[PATCH v4 0/3] Provide a stable serial number

2017-07-14 Thread Johannes Thumshirn
This pathset is a follow up to http://lists.infradead.org/pipermail/linux-nvme/2017-July/011934.html. The 1st patch moves the serial attribute from the contrller to the subsystem, while the 2nd patch makes it configurable via configfs. Changes to v3: * Drop lock while subsystem isn't visible (Chi

Re: [PATCH 2/2] Revert "ASoC: ux500: drop platform DAI assignments"

2017-07-14 Thread Linus Walleij
On Wed, Jul 12, 2017 at 5:55 PM, Johan Hovold wrote: > This reverts commit f1013cdeeeb9 ("ASoC: ux500: drop platform DAI > assignments"), which seems to have been based on a misunderstanding and > prevents the platform driver callbacks from being made (e.g. to > preallocate DMA memory). > > The r

Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335

2017-07-14 Thread Mike Galbraith
On Wed, 2017-07-12 at 07:37 -0400, Ilia Mirkin wrote: > On Wed, Jul 12, 2017 at 7:25 AM, Mike Galbraith wrote: > > On Wed, 2017-07-12 at 11:55 +0200, Mike Galbraith wrote: > >> On Tue, 2017-07-11 at 14:22 -0400, Ilia Mirkin wrote: > >> > > >> > Some display stuff did change for 4.13 for GM20x+ boa

[PATCH v4 1/3] nvmet: prefix version configfs file with attr

2017-07-14 Thread Johannes Thumshirn
The NVMe target's attribute files need an attr prefix in order to have nvmetcli recognize them. Add this attribute. Signed-off-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig --- drivers/nvme/target/configfs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dri

Re: [PATCH v3 1/3] nvmet: prefix version configfs file with attr

2017-07-14 Thread Hannes Reinecke
On 07/14/2017 02:53 PM, Johannes Thumshirn wrote: > The NVMe target's attribute files need an attr prefix in order to have > nvmetcli recognize them. Add this attribute. > > Signed-off-by: Johannes Thumshirn > --- > drivers/nvme/target/configfs.c | 8 > 1 file changed, 4 insertions(+),

Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335

2017-07-14 Thread Mike Galbraith
On Fri, 2017-07-14 at 15:36 +0200, Mike Galbraith wrote: >  All DRM did was to slip a > WARN_ON_ONCE() that nouveau triggers into a kernel module where such > things no longer warn, they blow the box out of the water. BTW, turn that irksome WARN_ON_ONCE() in drivers/gpu/drm/drm_vblank.c into a WAR

Droid 4 boot failure due to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events)

2017-07-14 Thread Sebastian Reichel
Hi, I just bisected another issue breaking boot on Droid 4. My bisect points to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events). It do not see any message printed to UART (with earlyprintk) once that commit is part of my image. Kernel config is below. -- Sebastian # A

Re: linux-next: manual merge of the rdma tree with Linus' tree

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 08:03:49AM -0400, Doug Ledford wrote: > On Fri, 2017-07-14 at 07:55 +0300, Leon Romanovsky wrote: > > On Fri, Jul 14, 2017 at 01:50:26PM +1000, Stephen Rothwell wrote: > > > Hi all, > > > > > > On Fri, 14 Jul 2017 06:34:16 +0300 Leon Romanovsky > > > wrote: > > > > > > > >

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-14 Thread Josh Poimboeuf
On Fri, Jul 14, 2017 at 09:23:29AM -0400, Joe Lawrence wrote: > > On Wed, Jul 12, 2017 at 10:10:00AM -0400, Joe Lawrence wrote: > > > When the livepatch core executes klp_(un)patch_object, call out to a > > > livepatch-module specified array of callback hooks. These hooks provide > > > a notificat

[PATCH] osq_lock: fix osq_lock queue corruption

2017-07-14 Thread Prateek Sood
Fix ordering of link creation between node->prev and prev->next in osq_lock(). A case in which the status of optimistic spin queue is CPU6->CPU2 in which CPU6 has acquired the lock. At this point if CPU0 comes in to acquire osq_lock, it will update the tail count. After tail count update if CPU2 st

Re: [linux-sunxi] [PATCH v5 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-14 Thread Priit Laes
On Thu, Jul 13, 2017 at 09:46:57PM +0200, Olliver Schinagl wrote: > Hey Priit, > > On 07/13/17 21:23, Priit Laes wrote: > > On Mon, Jul 10, 2017 at 11:45:32AM +0200, Olliver Schinagl wrote: > >> Hi Pleas, > >> > >> again, but this time with content :) > >> > >> On 04-07-17 22:04, Priit Laes wrote:

Re: [PATCH 22/22] IB/mlx4: fix sprintf format warning

2017-07-14 Thread Leon Romanovsky
On Fri, Jul 14, 2017 at 02:07:14PM +0200, Arnd Bergmann wrote: > gcc-7 points out that a negative port_num value would overflow > the string buffer: > > drivers/infiniband/hw/mlx4/sysfs.c: In function > 'mlx4_ib_device_register_sysfs': > drivers/infiniband/hw/mlx4/sysfs.c:251:16: error: 'sprintf'

[PATCH] osq_lock: avoid live-lock issue for RT task

2017-07-14 Thread Prateek Sood
Live Lock due to task spinning while unqueue of CPU osq_node from optimistic_spin_queue. Task T1 had decremented mutex count to acquire the lock on CPU0. Before setting owner it got preempted. On CPU1 task T2 acquired osq_lock and started spinning on owner of mutex with preemption disabled. CPU1 r

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-14 Thread Sinan Kaya
On 7/13/2017 9:26 PM, Ding Tianhong wrote: > There is no code to enable the PCIe Relaxed Ordering bit in the configuration > space, > it is only be enable by default according to the PCIe Standard Specification, > what we > do is to distinguish the RC problematic platform and clear the Relaxed >

Re: [PATCH v5 03/14] drm/fb-helper: separate the fb_setcmap helper into atomic and legacy paths

2017-07-14 Thread Daniel Vetter
On Thu, Jul 13, 2017 at 06:25:27PM +0200, Peter Rosin wrote: > The legacy path implements setcmap in terms of crtc .gamma_set. > > The atomic path implements setcmap by directly updating the crtc gamma_lut > property. > > This has a couple of benefits: > - it makes the redundant fb helpers .load_

Re: [PATCH 1/2] printk: Unconditionally unregister boot consoles if in init section

2017-07-14 Thread Matt Redfearn
On 14/07/17 13:40, Petr Mladek wrote: On Wed 2017-07-12 13:11:17, Petr Mladek wrote: On Tue 2017-07-11 15:41:50, Matt Redfearn wrote: On 11/07/17 13:43, Petr Mladek wrote: IMHO, the reasonable solution is to move early console code and data out of the init sections. We should do this for the

[GIT PULL] Thermal management updates for v4.13-rc1

2017-07-14 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next to receive the latest Thermal Management updates for v4.13-rc1 with top-most commit 5d72ed35678a351a1aed4b454c25d583f8bccb28:   Merge branches 'thermal-core', 'thermal-intel' and 'thermal-soc' into

Re: [PATCH 19/22] block: DAC960: shut up format-overflow warning

2017-07-14 Thread Jens Axboe
On 07/14/2017 06:07 AM, Arnd Bergmann wrote: > gcc-7 points out that a large controller number would overflow the > string length for the procfs name and the firmware version string: > > drivers/block/DAC960.c: In function 'DAC960_Probe': > drivers/block/DAC960.c:6591:38: warning: 'sprintf' may wr

Re: [PATCH v5 04/14] drm: amd: remove dead code and pointless local lut storage

2017-07-14 Thread Alex Deucher
On Thu, Jul 13, 2017 at 12:25 PM, Peter Rosin wrote: > The redundant fb helpers .load_lut, .gamma_set and .gamma_get are > no longer used. Remove the dead code and hook up the crtc .gamma_set > to use the crtc gamma_store directly instead of duplicating that > info locally. > > Acked-by: Daniel Ve

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-14 Thread Mark Rutland
On Fri, Jul 14, 2017 at 01:27:14PM +0100, Ard Biesheuvel wrote: > On 14 July 2017 at 11:48, Ard Biesheuvel wrote: > > On 14 July 2017 at 11:32, Mark Rutland wrote: > >> On Thu, Jul 13, 2017 at 07:28:48PM +0100, Ard Biesheuvel wrote: > >>> OK, so here's a crazy idea: what if we > >>> a) carve out

Re: [PATCH v5 12/14] drm: radeon: remove dead code and pointless local lut storage

2017-07-14 Thread Alex Deucher
On Thu, Jul 13, 2017 at 12:25 PM, Peter Rosin wrote: > The redundant fb helpers .load_lut, .gamma_set and .gamma_get are > no longer used. Remove the dead code and hook up the crtc .gamma_set > to use the crtc gamma_store directly instead of duplicating that > info locally. > > Acked-by: Daniel Ve

Re: [PATCH 15/22] hwmon: applesmc: fix format string overflow

2017-07-14 Thread Guenter Roeck
On 07/14/2017 05:07 AM, Arnd Bergmann wrote: gcc-7 warns that the key might exceed five bytes for lage index values: drivers/hwmon/applesmc.c: In function 'applesmc_show_fan_position': drivers/hwmon/applesmc.c:906:18: error: '%d' directive writing between 1 and 5 bytes into a region of size 4 [

[PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-14 Thread Gaurav Pathak
staging: rts5208: Refactored code to avoid few defects. Signed-off-by: Gaurav Pathak --- Hi, Gaurav hope this text appaers in the email, and i put it at the right place in patch. drivers/staging/rts5208/ms.c| 5 +++-- drivers/staging/rts5208/rtsx.c | 4 ++-- drivers/staging/rts52

Re: [PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-14 Thread Sinan Kaya
On 7/13/2017 7:38 PM, Bjorn Helgaas wrote: >> This does not specify a hard limit above on how long SW need to wait. > I wouldn't expect a *maximum* time we can wait. I'm looking for the > minimum times the spec requires. My understanding is FLR needs to finish in 100ms max under normal circumsta

[PATCH v2 0/5] thermal: imx: Add nvmem-cells binding on imx6sx

2017-07-14 Thread Leonard Crestez
On imx6sx accessing OCOTP directly is wrong because the ocotp clock needs to be enabled first. Fix this by adding a nvmem-cells binding and using it on imx6sx, imx6ul and imx6ull. The existing binding is kept around because it works fine on imx6qdl. This was initially reported by Lothar Waßmann

[PATCH v2 2/5] nvmem: core: Add nvmem_cell_read_u32

2017-07-14 Thread Leonard Crestez
This function does a quick and easy read of an u32 value without any kind of resource management code on the consumer side. Signed-off-by: Leonard Crestez --- drivers/nvmem/core.c | 37 + include/linux/nvmem-consumer.h | 8 2 files changed,

[PATCH v2 4/5] ARM: dts: imx6sx: Use nvmem-cells for tempmon

2017-07-14 Thread Leonard Crestez
On imx6sx accessing OCOTP directly is wrong because the ocotp clock needs to be enabled first. Use the nvmem-cells binding instead. This requirement does not apply to older imx6qdl chips because there the ocotp access clock (clk_ipg_s) is always enabled. This is visible by comparing the "System C

[PATCH] arch: blackfin: kernel: fix spelling mistake, "parition" -> "partition"

2017-07-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in pr_info message Signed-off-by: Colin Ian King --- arch/blackfin/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/blackfin/kernel/setup.c b/arch/blackfin/kernel/setup.c index ad82468bd94d..0950911a5a4

[PATCH v2 5/5] ARM: dts: imx6ul: Add imx6ul-tempmon

2017-07-14 Thread Leonard Crestez
This works identically to imx6sx-tempmon on both imx6ul and imx6ull. It just needs to be defined in dts. Signed-off-by: Leonard Crestez --- arch/arm/boot/dts/imx6ul.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx

[PATCH v2 3/5] thermal: imx: Add support for reading OCOTP through nvmem

2017-07-14 Thread Leonard Crestez
On newer imx SOCs accessing OCOTP directly is wrong because the ocotp clock needs to be enabled first. Add support for reading those same values through the nvmem API instead. The older path is preserved for compatibility with older dts and because it works correctly on imx6qdl chips. Signed-off-

[PATCH v2 1/5] thermal: imx: Add nvmem-cells alternate binding for OCOTP access

2017-07-14 Thread Leonard Crestez
On newer imx SOCs accessing OCOTP directly is wrong because the ocotp clock needs to be enabled first. Add a binding for accessing the same values through the imx-ocotp nvmem driver using nvmem-cells. This is similar to other thermal drivers. The old binding is preserved for compatibility and beca

Re: Droid 4 boot failure due to 422580c3cea7 (mm/oom_kill.c: add tracepoints for oom reaper-related events)

2017-07-14 Thread Roman Gushchin
Hi Sebastian! This is really interesting, because this patch adds few tracepoints and all of them are called from the oom code, which is hopefully not a part of the boot process. Can you, please, confirm, that it can be reproduced with some confidence? If so, can you, please, eliminate the tra

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-14 Thread Ard Biesheuvel
On 14 July 2017 at 15:06, Mark Rutland wrote: > On Fri, Jul 14, 2017 at 01:27:14PM +0100, Ard Biesheuvel wrote: >> On 14 July 2017 at 11:48, Ard Biesheuvel wrote: >> > On 14 July 2017 at 11:32, Mark Rutland wrote: >> >> On Thu, Jul 13, 2017 at 07:28:48PM +0100, Ard Biesheuvel wrote: > >> >>> OK,

Re: [PATCH v2 2/2] drm/panel: simple: Add support for ddc-only panel

2017-07-14 Thread Rob Herring
On Thu, Jul 13, 2017 at 6:04 AM, wrote: > From: Patrick Bruenn > > This is a fix for the CX9020 Embedded PC. On that device the 24-bit > parallel-display signal of the imx53 is combined with an I2C channel > and converted to DVI-D port. Devicetree magic always requires a panel > connected to the

Re: [Xen-devel] [PATCH v1] xen/grant-table: log the lack of grants

2017-07-14 Thread Julien Grall
On 07/13/2017 06:42 PM, Wengang wrote: Hi, Hello, Anyone can you please review this patch? Most of the developer community were at Xen Summit this week, so you may expect some delay in review. However, in general it is better to CC relevant maintainers of your code to raise attention

Re: [PATCH 6/9] mm, page_alloc: simplify zonelist initialization

2017-07-14 Thread Mel Gorman
On Fri, Jul 14, 2017 at 03:02:42PM +0200, Michal Hocko wrote: > > It *might* be safer given the next patch to zero out the remainder of > > the _zonerefs to that there is no combination of node add/remove that has > > an iterator working with a semi-valid _zoneref which is beyond the last > > corre

Crypto Fixes for 4.13

2017-07-14 Thread Herbert Xu
Hi Linus: This push fixes the following issues: - New compiler warnings in cavium. - Set post-op IV properly in caam (this fixes chaining). - Fix potential use-after-free in atmel in case of EBUSY. - Fix sleeping in softirq path in chcr. - Disable buggy sha1-avx2 driver (may overread and page fa

Re: [GIT PULL] Please pull NFS client changes for Linux 4.13

2017-07-14 Thread Dave Jones
On Thu, Jul 13, 2017 at 05:16:24PM -0400, Anna Schumaker wrote: > Hi Linus, > > The following changes since commit 32c1431eea4881a6b17bd7c639315010aeefa452: > > Linux 4.12-rc5 (2017-06-11 16:48:20 -0700) > > are available in the git repository at: > > git://git.linux-nfs.org/projec

Re: [PATCH 2/2] mm, memory_hotplug: remove zone restrictions

2017-07-14 Thread Reza Arbab
On Fri, Jul 14, 2017 at 02:12:33PM +0200, Michal Hocko wrote: Historically we have enforced that any kernel zone (e.g ZONE_NORMAL) has to precede the Movable zone in the physical memory range. The purpose of the movable zone is, however, not bound to any physical memory restriction. It merely def

Re: [PATCH V4] PCI: handle CRS returned by device after FLR

2017-07-14 Thread Sinan Kaya
Hi Bjorn, On 7/13/2017 7:49 PM, Bjorn Helgaas wrote: > How VFs report vendor ID is irrelevant. I was trying to highlight this. "SR-IOV spec rev 1.1, 3.4.1.1 & 3.4.1.2, Vendor ID and Device ID fields for the VF return 0x when read. The "Virtualization Intermediary" is supposed to use the ve

Re: [Intel-gfx] [PATCH v2 02/12] drm/atomic: Change drm_atomic_helper_swap_state to return an error.

2017-07-14 Thread Daniel Vetter
On Tue, Jul 11, 2017 at 04:33:04PM +0200, Maarten Lankhorst wrote: > We want to change swap_state to wait indefinitely, but to do this > swap_state should wait interruptibly. This requires propagating > the error to each driver. > > Cc: dri-de...@lists.freedesktop.org > Cc: linux-kernel@vger.kerne

Re: linux-next: manual merge of the rdma tree with Linus' tree

2017-07-14 Thread Doug Ledford
On Fri, 2017-07-14 at 07:54 +0300, Leon Romanovsky wrote: > On Fri, Jul 14, 2017 at 12:12:33AM -0400, Doug Ledford wrote: > > On Fri, 2017-07-14 at 06:34 +0300, Leon Romanovsky wrote: > > > On Thu, Jul 13, 2017 at 09:17:13PM -0400, Doug Ledford wrote: > > > > On Fri, 2017-07-14 at 11:14 +1000, Step

Re: [PATCH v4 1/1] usb:host:xhci support option to disable the xHCI USB2 HW LPM

2017-07-14 Thread Rob Herring
On Wed, Jul 12, 2017 at 03:06:48PM +0700, Thang Q. Nguyen wrote: > XHCI specification 1.1 does not require xHCI-compliant controllers > to always enable hardware USB2 LPM. However, the current xHCI > driver always enable it when seeing HLC=1. > This patch supports an option for users to control dis

Re: [PATCH 0/2] Avoid crashes by early (boot) consoles using init memory

2017-07-14 Thread Petr Mladek
On Fri 2017-07-14 14:57:45, Fabio M. Di Nitto wrote: > Hi Petr, > > On 7/14/2017 2:51 PM, Petr Mladek wrote: > > Some early consoles have code and data in the init section. It makes some > > sense but this might cause problems when they are not replaced by > > the real console in time. The two pat

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-14 Thread Robin Murphy
On 14/07/17 15:06, Mark Rutland wrote: > On Fri, Jul 14, 2017 at 01:27:14PM +0100, Ard Biesheuvel wrote: >> On 14 July 2017 at 11:48, Ard Biesheuvel wrote: >>> On 14 July 2017 at 11:32, Mark Rutland wrote: On Thu, Jul 13, 2017 at 07:28:48PM +0100, Ard Biesheuvel wrote: > > OK, so here's

Re: [PATCH 1/4] dt-bindings: iio: stm32-dac: add support for STM32F4

2017-07-14 Thread Rob Herring
On Mon, Jul 10, 2017 at 03:23:57PM +0200, Fabrice Gasnier wrote: > Introduce new compatible to support STM32F4 DAC (Digital-To-Analog > converter) variant. > > Signed-off-by: Fabrice Gasnier > --- > Documentation/devicetree/bindings/iio/dac/st,stm32-dac.txt | 4 +++- > 1 file changed, 3 insertio

[PATCH v2 0/2] Fix modify_qp failure

2017-07-14 Thread Mustafa Ismail
Commit 5ecce4c9b17b("Check port number supplied by user verbs cmds") causes modify_qp to fail because port_num is only valid when the mask is set. Additionally, for iWARP, the port_num is not initialized which also causes modify_qp to fail. This series fixes both issues. Changes to V2: * Add rev

[PATCH v2 2/2] RDMA/core: Initialize port_num in qp_attr

2017-07-14 Thread Mustafa Ismail
Initialize the port_num for iWARP in rdma_init_qp_attr. Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds") Cc: # v2.6.14+ Reviewed-by: Steve Wise Signed-off-by: Mustafa Ismail --- drivers/infiniband/core/cma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infi

[PATCH v2 1/2] RDMA/uverbs: Fix the check for port number

2017-07-14 Thread Mustafa Ismail
The port number is only valid if IB_QP_PORT is set in the mask. So only check port number if it is valid to prevent modify_qp from failing due to an invalid port number. Fixes: 5ecce4c9b17b("Check port number supplied by user verbs cmds") Cc: # v2.6.14+ Reviewed-by: Steve Wise Signed-off-by: Mus

Re: A udev rule to serve the change event of ACPI container?

2017-07-14 Thread joeyli
On Fri, Jul 14, 2017 at 10:37:13AM +0200, Michal Hocko wrote: > On Thu 13-07-17 20:45:21, Joey Lee wrote: > > On Thu, Jul 13, 2017 at 09:06:19AM +0200, Michal Hocko wrote: > > > On Thu 13-07-17 14:58:06, Joey Lee wrote: > [...] > > > > If BIOS emits ejection event for a ACPI0004 container, someone

Re: [PATCH v8 2/5] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-07-14 Thread Rob Herring
On Mon, Jul 10, 2017 at 04:46:52PM +0100, Jose Abreu wrote: > Document the bindings for the Synopsys Designware HDMI RX. > > Signed-off-by: Jose Abreu > Cc: Carlos Palminha > Cc: Rob Herring > Cc: Mark Rutland > Cc: Mauro Carvalho Chehab > Cc: Hans Verkuil > Cc: Sylwester Nawrocki > Cc: dev

[PATCH v6 1/6] clk: sunxi-ng: div: Add support for fixed post-divider

2017-07-14 Thread Priit Laes
SATA clock on sun4i/sun7i is of type (parent) / M / 6 where 6 is fixed post-divider. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/ccu_div.c | 15 +-- drivers/clk/sunxi-ng/ccu_div.h | 3 ++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/cc

[PATCH v6 4/6] dt-bindings: List devicetree binding for the CCU of Allwinner A10

2017-07-14 Thread Priit Laes
Allwinner A10 is now driven by sunxi-ng CCU driver. Add devicetree binding for it. Acked-by: Rob Herring Reviewed-by: Chen-Yu Tsai Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/b

[PATCH v6 0/6] ARM: sunxi: Convert sun4i/sun7i series SoCs to sunxi-ng CCU

2017-07-14 Thread Priit Laes
Hi, This serie brings A10 (sun4i) and A20 (sun7i) SoCs into the sunxi-ng world. With this patchset we now support all the clocks in sun4i/sun7i SoCs. As mentioned in sun5i conversion, this is pretty much standard stuff as most of the required clocks were already implemented in the sunxi-ng framew

[PATCH v6 5/6] ARM: sun7i: Convert to CCU

2017-07-14 Thread Priit Laes
Convert sun7i-a20.dtsi to new CCU driver. Tested on Cubietruck. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi | 719 +++- 1 file changed, 84 insertions(+), 635 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.

[PATCH v6 6/6] ARM: sun4i: Convert to CCU

2017-07-14 Thread Priit Laes
Convert sun4i-a10.dtsi to new CCU driver. Tested on Gemei G9 tablet. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10.dtsi | 646 +++- 1 file changed, 73 insertions(+), 573 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i

[PATCH v6 3/6] dt-bindings: List devicetree binding for the CCU of Allwinner A20

2017-07-14 Thread Priit Laes
Allwinner A20 is now driven by sunxi-ng CCU driver. Add devicetree binding for it. Acked-by: Rob Herring Reviewed-by: Chen-Yu Tsai Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/clock/sunxi-ccu.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/b

[PATCH v6 2/6] clk: sunxi-ng: Add sun4i/sun7i CCU driver

2017-07-14 Thread Priit Laes
Introduce a clock controller driver for sun4i A10 and sun7i A20 series SoCs. Signed-off-by: Priit Laes --- drivers/clk/sunxi-ng/Kconfig | 13 +- drivers/clk/sunxi-ng/Makefile |1 +- drivers/clk/sunxi-ng/ccu-sun4i-a10.c | 1454 ++- drivers/c

Re: [PATCH] mtd: gpmi-nand: do not fail setting ONFI timing mode if available

2017-07-14 Thread Han Xu
On 07/13/2017 03:15 PM, Boris Brezillon wrote: > Hi Miquel, > > Le Thu, 13 Jul 2017 21:20:30 +0200, > Miquel Raynal a écrit : > >> GPMI NFC driver fails to apply timing mode if the ->onfi_get_features() >> does not return the mode that was previously applied. >> >> We can assume that a nand chip

RE: [PATCH 4.4 29/57] RDMA/uverbs: Check port number supplied by user verbs cmds

2017-07-14 Thread Ismail, Mustafa
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Friday, July 14, 2017 1:49 AM > To: Ismail, Mustafa > Cc: linux-kernel@vger.kernel.org; linux-r...@vger.kernel.org; > sta...@vger.kernel.org; Yevgeny Kliteynik ; > Tziporet Koren ; Alex Polak > ; Bo

Re: [Intel-gfx] [PATCH v2 02/12] drm/atomic: Change drm_atomic_helper_swap_state to return an error.

2017-07-14 Thread Sean Paul
On Fri, Jul 14, 2017 at 04:30:30PM +0200, Daniel Vetter wrote: > On Tue, Jul 11, 2017 at 04:33:04PM +0200, Maarten Lankhorst wrote: > > We want to change swap_state to wait indefinitely, but to do this > > swap_state should wait interruptibly. This requires propagating > > the error to each driver.

Re: A question about acpi_early_init(), and want to invoke acpi_early_init() earlier

2017-07-14 Thread Julian Wollrath
Hi, > > I reproduced it by the following command line: > > ...noapic acpi_sci=level... > > > > the original dmesg is: > > > > [0.00] tsc: Fast TSC calibration using PIT > > > > the broken dmesg is: > > > > [0.001000] tsc: PIT calibration matches HPET. 1 loops > > > > Is it right? I

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-14 Thread Robin Murphy
On 14/07/17 15:39, Robin Murphy wrote: > On 14/07/17 15:06, Mark Rutland wrote: >> On Fri, Jul 14, 2017 at 01:27:14PM +0100, Ard Biesheuvel wrote: >>> On 14 July 2017 at 11:48, Ard Biesheuvel wrote: On 14 July 2017 at 11:32, Mark Rutland wrote: > On Thu, Jul 13, 2017 at 07:28:48PM +0100,

Re: [regression drm/noveau] suspend to ram -> BOOM: exception RIP: drm_calc_vbltimestamp_from_scanoutpos+335

2017-07-14 Thread Tobias Klausmann
On 7/14/17 3:41 PM, Mike Galbraith wrote: On Fri, 2017-07-14 at 15:36 +0200, Mike Galbraith wrote:  All DRM did was to slip a WARN_ON_ONCE() that nouveau triggers into a kernel module where such things no longer warn, they blow the box out of the water. BTW, turn that irksome WARN_ON_ONCE() in

Re: [PATCH 3/9] regulator: mt6380: Add support for MT6380

2017-07-14 Thread Sean Wang
On Sat, 2017-06-24 at 00:43 +0800, Sean Wang wrote: > On Fri, 2017-06-23 at 17:14 +0100, Mark Brown wrote: > > On Fri, Jun 23, 2017 at 11:56:05PM +0800, Sean Wang wrote: > > > On Tue, 2017-06-06 at 19:22 +0100, Mark Brown wrote: > > > > > > > + return (regval & info->desc.enable_mask) ? > > >

[PATCH 0/2] kprobe: Fix: add symbols to kprobe blacklist

2017-07-14 Thread Francis Deslauriers
Hi all, While fuzzing the Perf kprobe and kretprobe interfaces, I found some inputs that trigger crashes of a 4.12 kernel(6f7da290413ba713f0cdd9ff1a2a9bb129ef4f6c) on a x86-64 VM. I know that K(ret)probes can crash the kernel in multiple ways but should Perf be allowed to do it? To do this analys

[PATCH 1/2] kprobe: fix: Add _ASM_NOKPROBE to x86 apic interrupt macro

2017-07-14 Thread Francis Deslauriers
Adding a Kprobe on the apic_timer_interrupt symbol can lead to a kernel crash. This symbol is defined by the apicinterrupt3 macro and adding the symbol to the kprobe blacklist in this macro prevents this issue. Signed-off-by: Francis Deslauriers --- arch/x86/entry/entry_64.S | 1 + 1 file change

[PATCH 2/2] kprobe: fix: Add ftrace_ops_assist_func to kprobe blacklist

2017-07-14 Thread Francis Deslauriers
This function is called when a kprobe is hit. Thus it should be blacklisted to prevent kprobe to be triggered by kprobes. Signed-off-by: Francis Deslauriers --- kernel/trace/ftrace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index b308be3

Re: [PATCH] [media] vimc: set id_table for platform drivers

2017-07-14 Thread Helen Koike
Hi, Thanks for the patch On 2017-07-14 05:58 AM, Javier Martinez Canillas wrote: The vimc platform drivers define a platform device ID table but these are not set to the .id_table field in the platform driver structure. So the platform device ID table is only used to fill the aliases in the mo

[PATCH] use __func__ to print "dcon_freeze_store"

2017-07-14 Thread KIU Shueng Chuan
Signed-off-by: KIU Shueng Chuan --- drivers/staging/olpc_dcon/olpc_dcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index f7f3a780ec10..3a8d99fa9e49 100644 --- a/drivers/staging/olpc_dcon/olpc

<    1   2   3   4   5   6   7   8   >