[PATCH v3] mm: pmd dirty emulation in page fault handler

2016-12-22 Thread Minchan Kim
Andreas reported [1] made a test in jemalloc hang in THP mode in arm64. http://lkml.kernel.org/r/mvmmvfy37g1@hawking.suse.de The problem is page fault handler supports only accessed flag emulation for THP page of SW-dirty/accessed architecture. This patch enables dirty-bit emulation for those

Re: [RFC PATCH v2] crypto: Add IV generation algorithms

2016-12-22 Thread Herbert Xu
On Thu, Dec 22, 2016 at 04:25:12PM +0530, Binoy Jayan wrote: > > > It doesn't have to live outside of dm-crypt. You can register > > these IV generators from there if you really want. > > Sorry, but I didn't understand this part. What I mean is that moving the IV generators into the crypto API d

Re: [Intel-gfx] [PATCH] drm/i915: check if execlist_port is empty before using its content

2016-12-22 Thread Chris Wilson
On Fri, Dec 23, 2016 at 01:46:36PM +0800, changbin...@intel.com wrote: > From: "Du, Changbin" > > This patch fix a crash in function reset_common_ring. In this case, > the port[0].request is null when reset the render ring, so a null > dereference exception is raised. We need to check execlist_po

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-22 Thread Johannes Weiner
On Thu, Dec 22, 2016 at 12:22:27PM -0800, Hugh Dickins wrote: > On Wed, 21 Dec 2016, Linus Torvalds wrote: > > On Wed, Dec 21, 2016 at 9:13 PM, Dave Chinner wrote: > > > I unmounted the fs, mkfs'd it again, ran the > > > workload again and about a minute in this fired: > > > > > > [628867.607417]

Re: [PATCH V5 1/3] ARM64 LPC: Indirect ISA port IO introduced

2016-12-22 Thread Ming Lei
On Fri, Dec 23, 2016 at 9:43 AM, zhichang.yuan wrote: > Hi,Ming, > > > On 2016/12/22 16:15, Ming Lei wrote: >> Hi Guys, >> >> On Tue, Nov 8, 2016 at 11:47 AM, zhichang.yuan >> wrote: >>> For arm64, there is no I/O space as other architectural platforms, such as >>> X86. Most I/O accesses are achi

Re: [PATCH] serial: 8250: use initializer instead of memset to clear local struct

2016-12-22 Thread Greg Kroah-Hartman
On Fri, Dec 23, 2016 at 12:21:48PM +0900, Masahiro Yamada wrote: > Leave the way of zero-out to the compiler's decision; the compiler > may know a more optimized way than calling memset(). But no, it doesn't, it will leave "blank" areas in the structure with bad data in it, which is why we do mems

Re: [PATCH] tpm: Restore functionality to xen vtpm driver.

2016-12-22 Thread Greg KH
On Thu, Dec 22, 2016 at 02:41:52PM -0600, Dr. Greg Wettstein wrote: > Functionality of the xen-tpmfront driver was lost secondary to > the introduction of xenbus multi-page support in the following > commit: > > ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d > > xenbus_client: Extend interface to suppo

Re: [PATCH] drm/i915: check if execlist_port is empty before using its content

2016-12-22 Thread Jani Nikula
On Fri, 23 Dec 2016, changbin...@intel.com wrote: > From: "Du, Changbin" > > This patch fix a crash in function reset_common_ring. In this case, > the port[0].request is null when reset the render ring, so a null > dereference exception is raised. We need to check execlist_port status > first. > >

[PATCH 3/4] usb: xhci: add XHCI_MISS_CA_EVENT quirk bit

2016-12-22 Thread Lu Baolu
Writing the CMD_RING_ABORT bit in xhci command register should cause a command completion event with the command completion code set to command ring stopped. However on some hosts, the CMD_RING_RUNNING bit is correctly cleared but the completion event is never sent. Current xhci driver treats the

[PATCH 1/4] usb: xhci: remove unnecessary second abort try

2016-12-22 Thread Lu Baolu
The second try was a workaround for (what we thought was) command ring failing to stop in the first place. But this turns out to be due to the race that we have fixed(see "xhci: Fix race related to abort operation"). With that fix, it is time to remove the second try. Signed-off-by: Lu Baolu ---

[PATCH 0/4] refactor command timeout handling

2016-12-22 Thread Lu Baolu
Hi Mathias, This patch series is for command timeout refactoring. Patches usb: xhci: remove unnecessary second abort try usb: xhci: remove CRR polling in xhci_abort_cmd_ring() are follow-ups of your comments of "remove unnecessary second abort try as a separate patch, send to usb-next" and

[PATCH 2/4] usb: xhci: remove CRR polling in xhci_abort_cmd_ring()

2016-12-22 Thread Lu Baolu
xHCI driver aborts the command ring by setting CA (Command Abort) bit in the command register. With this setting, host should abort all command executions and generate a command completion event with the completion code set to command ring stopped. Software should time the completion of command abo

[PATCH 4/4] usb: xhci: warn on command timeout in stopped command ring

2016-12-22 Thread Lu Baolu
If xhci host fails to response to a command, the command watchdog timer will be fired. The callback function will abort and clear current command and restart the command execution. If driver fails to restart command execution, it will assume there is a larger problem in host and report the situatio

[PATCH 0/1] xhci: Fix race related to abort operation

2016-12-22 Thread Lu Baolu
Hi Mathias, This is a follow-up patch for below comment "rebase OGAWA Hirofumi's changes on top of that, and send to usb-linus only" in below discussion thread. https://lkml.org/lkml/2016/12/21/186 I rebased the patch and added unlock-before and lock-after xhci->lock during waiting for the com

[PATCH 1/1] xhci: Fix race related to abort operation

2016-12-22 Thread Lu Baolu
From: OGAWA Hirofumi Current abort operation has race. xhci_handle_command_timeout() xhci_abort_cmd_ring() xhci_write_64(CMD_RING_ABORT) xhci_handshake(5s) do { check CMD_RING_RUNNING udelay(1) .

[PATCH 0/1] usb: xhci: hold lock over xhci_abort_cmd_ring()

2016-12-22 Thread Lu Baolu
Hi Mathias, This is a follow-up patch for below comment "fix the lock to cover abort+CRR check, and send it to usb-linus +stable" in below discussion thread. https://lkml.org/lkml/2016/12/21/186 It's based on v4.9. Best regards, Lu Baolu Lu Baolu (1): usb: xhci: hold lock over xhci_abort_c

[PATCH 1/1] usb: xhci: hold lock over xhci_abort_cmd_ring()

2016-12-22 Thread Lu Baolu
In command timer function, xhci_handle_command_timeout(), xhci->lock is unlocked before call into xhci_abort_cmd_ring(). This might cause race between the timer function and the event handler. The xhci_abort_cmd_ring() function sets the CMD_RING_ABORT bit in the command register and polling it unt

Re: [PATCH 00/66] use permission-specific DEVICE_ATTR variants

2016-12-22 Thread Julia Lawall
> Hi Julia, > > I noticed that drivers/hwmon/gl518sm.c was not converted. Running your script > on it does not do anything. Any idea what might cause that ? I'll check. > I noticed that I get a warning if I specify a debug file: > > File "devattr-new.cocci", line 36, characters 5-6: > Warning 26:

Why do Zombie process' /proc entries have uid 0?

2016-12-22 Thread Keno Fischer
This is mostly out of curiosity, but I was surprised by the behavior, so I was hoping somebody might be able to explain why this behavior was chosen. In particular, consider any zombie process, e.g. $ cat /proc/77078/status Name: test State: Z (zombie) Tgid: 77078 Ngid: 0 Pid: 77078 PPid: 77077 Tr

Re: [PATCH V6 04/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detection and IO Coalescing

2016-12-22 Thread kbuild test robot
Hi Sasikumar, [auto build test WARNING on scsi/for-next] [also build test WARNING on next-20161223] [cannot apply to v4.9] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Sasikumar-Chandrasekaran

[PATCH] drm/i915: check if execlist_port is empty before using its content

2016-12-22 Thread changbin . du
From: "Du, Changbin" This patch fix a crash in function reset_common_ring. In this case, the port[0].request is null when reset the render ring, so a null dereference exception is raised. We need to check execlist_port status first. [ 35.748034] BUG: unable to handle kernel NULL pointer derefe

Re: [PATCH] MIPS: ralink: fix incorrect assignment on ralink_soc

2016-12-22 Thread John Crispin
On 23/12/2016 00:52, Colin King wrote: > From: Colin Ian King > > ralink_soc sould be assigned to RT3883_SOC, replace incorrect > comparision with assignment. > > Signed-off-by: Colin Ian King Acked-by: John Crispin i thought i had sent this fix upstream ages ago. luckily this bug never cau

Re: [PATCH 1/2] drm/panel: Add support for S6E3HA2 panel driver on TM2 board

2016-12-22 Thread hoegeun kwon
On 12/20/2016 03:55 AM, Rob Herring wrote: On Wed, Dec 14, 2016 at 03:04:04PM +0900, Hoegeun Kwon wrote: This patch add support for MIPI-DSI based S6E3HA2 AMOLED panel driver. This panel has 1440x2560 resolution in 5.7-inch physical panel in the TM2 device. Signed-off-by: Donghwa Lee Signed-

RE: RE: [PATCH] Input: Change msleep to usleep_range for small msecs

2016-12-22 Thread ZHANG Xu (BST/ESA3.1)
Dear Aniroop Mathur Please see the acknowledgement below. Best regards Albert (Xu) ZHANG BST/ESA3.1 Tel. +86(21)2218-1283 -Original Message- From: Aniroop Mathur [mailto:a.mat...@samsung.com] Sent: Thursday, December 01, 2016 6:34 PM To: ZHANG Xu (BST/ESA3.1) ; Dmitry Torokhov ;

Re: [PATCH 65/66] hwmon: (fam15h_power) use permission-specific DEVICE_ATTR variants

2016-12-22 Thread Huang Rui
On Thu, Dec 22, 2016 at 01:05:34PM +0100, Julia Lawall wrote: > Use DEVICE_ATTR_RO etc. for read only attributes etc. This simplifies the > source code, improves readbility, and reduces the chance of > inconsistencies. > > The semantic patch for the RO case, in the case where the show function >

[RFC PATCHv2 2/4] clk: mdm9615: Add EBI2 clock

2016-12-22 Thread Zoran Markovic
Add definition of EBI2 clock used by MDM9615 NAND controller. Cc: Andy Gross Cc: David Brown Cc: Michael Turquette Cc: Stephen Boyd Cc: Rob Herring Cc: Mark Rutland Cc: Neil Armstrong Cc: linux-arm-...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: devicet..

Re: [PATCH v3 1/4] dt-bindings: phy: Add support for QUSB2 phy

2016-12-22 Thread Vivek Gautam
Hi Rob, On Fri, Dec 23, 2016 at 2:46 AM, Rob Herring wrote: > On Tue, Dec 20, 2016 at 10:33:48PM +0530, Vivek Gautam wrote: >> Qualcomm chipsets have QUSB2 phy controller that provides >> HighSpeed functionality for DWC3 controller. >> Adding dt binding information for the same. >> >> Signed-off

[PATCH] tools build: replace $(CC) -E with $(CPP) for pre-processing

2016-12-22 Thread Masahiro Yamada
The top-level Makefile defines: CPP = $(CC) -E So, $(CC) -E can be replaced with $(CPP) and this makes more sense for pre-processing. Signed-off-by: Masahiro Yamada --- tools/build/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/build/Mak

[PATCH] genirq: use simple work queue for polling spurious irq

2016-12-22 Thread Zhang Xiao
Spurious irq will be disabled and then polled through mod_timer in interrupt context. While mod_timer has a common spin_lock operation thus will cause an error: BUG: sleeping function called from invalid context. Move the mod_timer into simple work queue to fix it. Signed-off-by: Zhang Xiao ---

Re: [PATCH] cpufreq: powernv: Add boost files to export ultra-turbo frequencies

2016-12-22 Thread Gautham R Shenoy
Hi Shilpa, On Fri, Dec 16, 2016 at 04:43:08PM +0530, Shilpasri G Bhat wrote: > In P8+, Workload Optimized Frequency(WOF) provides the capability to > boost the cpu frequency based on the utilization of the other cpus > running in the chip. The On-Chip-Controller(OCC) firmware will control > the ac

Re: [4.10, panic, regression] iscsi: null pointer deref at iscsi_tcp_segment_done+0x20d/0x2e0

2016-12-22 Thread Dave Chinner
On Fri, Dec 23, 2016 at 09:33:36AM +1100, Dave Chinner wrote: > On Fri, Dec 23, 2016 at 09:15:00AM +1100, Dave Chinner wrote: > > On Thu, Dec 22, 2016 at 01:10:19PM -0800, Linus Torvalds wrote: > > > Ok, so the numa issue was a red herring. With that fixed: > > > > > > On Thu, Dec 22, 2016 at 1:06

[PATCH v1 0/3] soc: rockchip: power-domain: support RK3328 SoC

2016-12-22 Thread Elaine Zhang
Elaine Zhang (3): dt/bindings: power: add RK3328 SoCs header for idle-request dt-bindings: add binding for rk3328 power domains soc: rockchip: power-domain: Modify power domain driver for rk3328 .../bindings/soc/rockchip/power_domain.txt | 3 ++ drivers/soc/rockchip/pm_domains.c

[PATCH v1 2/3] dt-bindings: add binding for rk3328 power domains

2016-12-22 Thread Elaine Zhang
Add binding documentation for the power domains found on Rockchip RK3328 SoCs. But RK3328 SoC just support idle, not support pd. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/soc/rockchip/power_domain.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/de

[PATCH v1 3/3] soc: rockchip: power-domain: Modify power domain driver for rk3328

2016-12-22 Thread Elaine Zhang
This driver is modified to support RK3328 SoC. RK3328 SoC is only support idle. add DOMAIN_M type, for support regs have write_enable bit. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 63 +++ 1 file changed, 57 insertions(+), 6 deletions

[PATCH v1 1/3] dt/bindings: power: add RK3328 SoCs header for idle-request

2016-12-22 Thread Elaine Zhang
According to a description from TRM, add all the idle request. Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3328-power.h | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 include/dt-bindings/power/rk3328-power.h diff --git a/include/dt-bindings/power/r

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Hugh Dickins
On Fri, 23 Dec 2016, Dashi DS1 Cao wrote: > The kernel version is "RELEASE: 3.10.0-327.36.3.el7.x86_64". It was the > latest kernel release of CentOS 7.2 at that time, or maybe still now. Okay, thanks: so, basically a v3.10 kernel, with lots of added patches, but also lacking many more recent fi

[PATCH] serial: 8250: use initializer instead of memset to clear local struct

2016-12-22 Thread Masahiro Yamada
Leave the way of zero-out to the compiler's decision; the compiler may know a more optimized way than calling memset(). It may end up with memset() for big structures like this after all, but the code will be cleaner at least. Signed-off-by: Masahiro Yamada --- drivers/tty/serial/8250/8250_aco

[PATCH] arm64: dts: uniphier: add eMMC controller node for LD11/LD20

2016-12-22 Thread Masahiro Yamada
Add Cadence's eMMC controller node for LD11/LD20. Signed-off-by: Masahiro Yamada --- arch/arm/boot/dts/uniphier-pinctrl.dtsi | 5 + arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 12 arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 12 3 files chang

Re: [PATCH] ACPI: small formatting fixes

2016-12-22 Thread Nick Desaulniers
On Tue, Dec 13, 2016 at 08:00:01PM +0100, Pavel Machek wrote: > Actually.. the ACPI cleanup is fine. You did well :-). > Pavel Cool, so (forgive the naive question) what happens next? Maybe I'm too used to the immediate gratifi

[PATCH] powerpc: Fix build warning on 32-bit PPC - bisected to commit 989cea5c14be

2016-12-22 Thread Larry Finger
I am getting the following warning when I build kernel 4.9-git on my PowerBook G4 with a 32-bit PPC processor: AS arch/powerpc/kernel/misc_32.o arch/powerpc/kernel/misc_32.S:299:7: warning: "CONFIG_FSL_BOOKE" is not defined [-Wundef] This problem is evident after commit 989cea5c14be ("kbu

Re: Still OOM problems with 4.9er kernels

2016-12-22 Thread Minchan Kim
On Fri, Dec 09, 2016 at 04:52:07PM +0100, Gerhard Wiesinger wrote: > On 09.12.2016 14:40, Michal Hocko wrote: > >On Fri 09-12-16 08:06:25, Gerhard Wiesinger wrote: > >>Hello, > >> > >>same with latest kernel rc, dnf still killed with OOM (but sometimes > >>better). > >> > >>./update.sh: line 40: 1

RE: [PATCH v3 2/3] USB3/DWC3: Add property "snps, incr-burst-type-adjustment" for INCR burst type

2016-12-22 Thread Jerry Huang
Hi, Rob, > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, December 23, 2016 2:45 AM > To: Jerry Huang > Cc: ba...@kernel.org; mark.rutl...@arm.com; catalin.mari...@arm.com; > will.dea...@arm.com; li...@armlinux.org.uk; devicet...@vger.kernel.org; > linux-..

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
I'd expected that one or more tasks doing the free were the current task of other cpu cores, but only one of the four dumps has two swapd task that are concurrently at execution on different cpu. This is the task leading to the crash: PID: 247TASK: 881fcfad8000 CPU: 14 COMMAND: "kswapd1

[PATCH v3 07/12] scsi: ufs: set default UFS power management level

2016-12-22 Thread Subhash Jadavani
UFS device and link can be put in multiple different low power modes hence UFS driver supports multiple different low power modes. This change sets the default UFS power management level which should put the link hibernate state and device in sleep state. This default power management level gives g

[PATCH v3 08/12] scsi: ufs: add capability to keep auto bkops always enabled

2016-12-22 Thread Subhash Jadavani
UFS device requires to perform bkops (back ground operations) periodically but host can control (via auto-bkops parameter of device) when device can perform bkops based on its performance requirements. In general, host would like to enable the device's auto-bkops only when it's not doing any regula

[PATCH v3 12/12] scsi: ufs: Improve fatal error logs

2016-12-22 Thread Subhash Jadavani
From: Dolev Raviv Errors such as UIC error, illegal OCS values, and others may require more information for debugging. Such information could be hibern8 events, events sequences, recoverable errors, error history, and more. This patch improves tracking of important errors and events in debug leve

[PATCH v3 09/12] scsi: ufs: fix setting init power mode

2016-12-22 Thread Subhash Jadavani
Immediately after successful UFS link startup, UFS link power mode would be in PWM-G1, 1-lane, SLOW-AUTO mode. But currently we are doing few of the DME local/peer attributes access before setting the "hba->pwr_info" to default power mode. If we are doing link startup as part of error recovery then

[PATCH v3 10/12] scsi: ufs: add time profiling support

2016-12-22 Thread Subhash Jadavani
This patch adds the profiling support for some of the time critical operations like hibern8 enter/exit, clock gating & clock scaling. Reviewed-by: Venkat Gopalakrishnan Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 24 include/trace/events/ufs.h | 40

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

2016-12-22 Thread Subhash Jadavani
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 - doorbell register - number of transfer bytes - interrupt status register

[PATCH v3 06/12] scsi: ufs: provide sysfs attribute to select the PM level

2016-12-22 Thread Subhash Jadavani
This patch provides the sysfs attribute to choose the power management level for UFS runtime and system suspend. Reviewed-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 144 ++ drivers/scsi/ufs/ufshcd.h | 2 +

[PATCH v3 04/12] scsi: ufs: Add sysfs node to dynamically control clock gating

2016-12-22 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock gating during runtime. Write 1 or 0 to "clkgate_enable" sysfs node to enable/disable clock gating. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 48

[PATCH v3 05/12] scsi: ufs: Add sysfs node to dynamically control clock scaling

2016-12-22 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock scaling during runtime. Write 1/0 to "clkscale_enable" sysfs node to enable/disable clock scaling. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 95

[PATCH v3 03/12] scsi: ufs: fix multiple ufs spec violation

2016-12-22 Thread Subhash Jadavani
From: Dolev Raviv When a command to a W-LU is timed out via scsi, error handling will treat it as any other LU and send commands such as START_STOP with wrong format or task abort. Those commands are illegal for W-LU according to the UFS spec. To solve it, when an error is recognized those steps

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

2016-12-22 Thread Subhash Jadavani
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/debug/tracing/events/ufs/enable cat /sys/kernel/debug/tracing/trace_pipe

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

2016-12-22 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 fro

Re: [PATCH 2/2] vfio iommu type1: fix the testing of capability for remote task

2016-12-22 Thread Jike Song
On 12/22/2016 08:20 PM, Kirti Wankhede wrote: > On 12/21/2016 9:40 PM, Jike Song wrote: >> Before the mdev enhancement type1 iommu used capable() to test the >> capability of current task; in the course of mdev development a >> new requirement, testing for another task other than current, was >> ra

Re: [PATCH 00/66] use permission-specific DEVICE_ATTR variants

2016-12-22 Thread Guenter Roeck
On 12/22/2016 04:04 AM, Julia Lawall wrote: Use DEVICE_ATTR_RO etc. for read only attributes etc. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. A previous version of this semantic patch transformed only cases where the show and store functions

[PATCH 3/4] perf sched timehist: Remove hardcoded 'comm_width' check at print_summary

2016-12-22 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Now that the default 'comm_width' value is 30, no need to check that at print_summary, Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20161222060350.17655-1-namhy...@kernel.org [ Split from a larger patch ] Signe

[GIT PULL 0/4] perf/urgent fixes for 'perf sched timehist' and samples/bpf/ testing

2016-12-22 Thread Arnaldo Carvalho de Melo
/linux.git tags/perf-urgent-for-mingo-20161222 for you to fetch changes up to bdd75729e5d279d734e8d3fb41ef4818ac1598ab: perf sched timehist: Fix invalid period calculation (2016-12-22 16:35:46 -0300) perf/urgent fixes: Fixes for &

[PATCH 1/4] perf sched timehist: Honour 'comm_width' when aligning the headers

2016-12-22 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Current default value is 20, but that may change in the future, so make places where we have 20 hardcoded use 'comm_width'. Signed-off-by: Namhyung Kim Cc: David Ahern Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20161222060350.17655-1-namhy...@kernel.or

[PATCH 4/4] perf sched timehist: Fix invalid period calculation

2016-12-22 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When --time option is given with a value outside recorded time, the last sample time (tprev) was set to that value and run time calculation might be incorrect. This is a problem of the first samples for each cpus since it would skip the runtime update when tprev is 0. But wit

[PATCH 2/4] perf sched timehist: Enlarge default 'comm_width'

2016-12-22 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Current default value is 20 but it's easily changed to a bigger value as task has a long name and different tid and pid. And it makes the output not aligned. So change it to have a large value as summary shows. Committer notes: Before: # perf sched record ^C # perf s

Re: [PATCH v3] hwmon: adt7411: add min, max and alarm attributes

2016-12-22 Thread Guenter Roeck
On 12/15/2016 09:38 AM, Michael Walle wrote: This patch adds support for the min, max and alarm attributes of the voltage and temperature channels. Additionally, the temp2_fault attribute is supported which indicates a fault of the external temperature diode. Signed-off-by: Michael Walle Pass

linux-next: Tree for Dec 23

2016-12-22 Thread Stephen Rothwell
Hi all, Please do not add any material for v4.11 to your linux-next included branches until after v4.10-rc1 has been released. There will be no linux-next releases from me between Dec 24 and Jan 2 inclusive (unless I get really bored with my new toys :-)). Changes since 20161222: The scsi tree

[git pull] drm fixes for 4.10-rc1

2016-12-22 Thread Dave Airlie
Hi Linus, Some fixes came in while I was out, mostly intel and amdgpu ones, with one ast fix. If you can land them before -rc1 it would be good but I don't mind if they don't. Dave. The following changes since commit 50f6584e4c626b8fa39edb66f33fec27bab3996c: Merge tag 'leds_for_4.10_email_upd

RE: A small window for a race condition in mm/rmap.c:page_lock_anon_vma_read

2016-12-22 Thread Dashi DS1 Cao
The kernel version is "RELEASE: 3.10.0-327.36.3.el7.x86_64". It was the latest kernel release of CentOS 7.2 at that time, or maybe still now. I've tried to print the value of anon_vma from other three dumps, but the content is not available in the dump. "gdb: page excluded: kernel virtual addres

Re: [PATCH 6/6] watchdog: ts4600: add driver for TS-4600 watchdog

2016-12-22 Thread Guenter Roeck
On 12/14/2016 03:12 PM, Sebastien Bourdelin wrote: This watchdog is instantiated in a FPGA and can only be access using a GPIOs bit-banged bus, called the NBUS by Technologic Systems. The watchdog is made of only one register, called the feed register. Writing to this register will re-arm the wat

Re: [PATCHv6 6/7] printk: use printk_safe buffers in printk

2016-12-22 Thread Sergey Senozhatsky
On (12/22/16 18:10), Petr Mladek wrote: ... > There are many callers. I think that such wrappers make sense. > I would only like to keep naming scheme similar to the classic > locks. I mean: > > printk_safe_enter_irq() > printk_safe_exit_irq() > > printk_safe_enter_irqsave(flags) > printk_safe_ex

Re: [PATCH V5 1/3] ARM64 LPC: Indirect ISA port IO introduced

2016-12-22 Thread zhichang.yuan
Hi,Ming, On 2016/12/22 16:15, Ming Lei wrote: > Hi Guys, > > On Tue, Nov 8, 2016 at 11:47 AM, zhichang.yuan > wrote: >> For arm64, there is no I/O space as other architectural platforms, such as >> X86. Most I/O accesses are achieved based on MMIO. But for some arm64 SoCs, >> such as Hip06, whe

[PATCH] serial: 8250_fintek: Add resource check for Fintek F81504/508/512

2016-12-22 Thread Ji-Ze Hong (Peter Hong)
Add resource type check for Fintek F81504/508/512, BAR3/4/5 must be IORESOURCE_IO. Fintek is trying to make F81504/508/512 works on MMIO interface, but it's still in progress. We found some issue when the experiment IC when the BAR3/4/5 is IORESOURCE_MEM. It'll cause wrong operation with IO resour

Re: [PATCH 0/2] power: supply: bq24735: poll register if no ac-detect gpio

2016-12-22 Thread Sebastian Reichel
Hi, On Wed, Dec 21, 2016 at 10:29:51PM +0100, Peter Rosin wrote: > My patch [1] "power: supply: bq24735-charger: allow chargers to share the > ac-detect gpio" is perhaps a bit hard to digest. And while I still think > some way of sharing the ac-detect gpio is worthwhile, I thought of another > way

Re: [PATCH v2 00/12] power: supply: axp288_charger: Various fixes

2016-12-22 Thread Sebastian Reichel
Hi, On Wed, Dec 21, 2016 at 03:36:45PM +0100, Hans de Goede wrote: > Here is v2 of my axp288_charger series, which fixup the axp288_charger > code to actually work. > > This implements the suggestion by Chanwoo Choi on how we can use the > existing extcon_get_extcon_dev instead of introducing a n

[PATCH V6 02/11] megaraid_sas: 128 MSIX Support

2016-12-22 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid based Controllers will have the support for 128 MSI-X vectors, resulting in the need to support 128 reply queues This patch is depending on patch 1 and same as V5 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 1 + drivers/scs

[PATCH V6 03/11] megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers

2016-12-22 Thread Sasikumar Chandrasekaran
An UNMAP command on a PI formatted device will leave the Logical Block Application Tag and Logical Block Reference Tag as all F's (for those LBAs that are unmapped). To avoid IO errors if those LBAs are subsequently read before they are written with valid tag fields, the MPI SCSI IO requests nee

[PATCH 1/7] hid: intel-ish-hid: ishtp: add helper function for driver data get/set

2016-12-22 Thread Even Xu
Add helper function ishtp_set_drvdata() and ishtp_get_drvdata() for different ISH client drivers to set/get private driver data. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/bus.c | 27 +++ drive

[PATCH 3/7] hid: intel-ish-hid: ishtp: add helper functions for client buffer operation

2016-12-22 Thread Even Xu
Add helper ishtp_cl_tx_empty() and ishtp_cl_rx_get_rb() to hide internal details from callers, who needs this functionality. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/client-buffers.c | 45 d

[PATCH V6 01/11] megaraid_sas: Add new pci device Ids for SAS3.5 Generic Megaraid Controllers

2016-12-22 Thread Sasikumar Chandrasekaran
This patch contains new pci device ids for SAS3.5 Generic Megaraid Controllers This Pacth is Same as V5 Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl --- drivers/scsi/megaraid/megaraid_sas.h| 12 +--- drivers/scsi/megaraid/megaraid_sas_base.c | 14 +

[PATCH 5/7] hid: intel-ish-hid: ishtp: add helper function for client search

2016-12-22 Thread Even Xu
Add helper function ishtp_fw_cl_get_client() for client driver searching client information to hide internal details from callers. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp/bus.c | 25 + drive

[PATCH 4/7] hid: intel-ish-hid: use helper function to access client buffer

2016-12-22 Thread Even Xu
ishtp bus driver exposed helper functions for client buffer accessing, so change to use these functions in ishtp-hid-client driver to avoid access client buffer directly. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid

[PATCH 6/7] hid: intel-ish-hid: use helper function to search client id

2016-12-22 Thread Even Xu
ishtp exposed helper ishtp_fw_cl_get_client() function for client information searching, so switch to use it. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 14 ++ 1 file changed, 6 insertions(+

[PATCH 7/7] misc: intel-ish-client: add intel ishtp clients driver

2016-12-22 Thread Even Xu
Intel ISHFW supports many different clients, in hid/intel-ish-hid/ishtp bus driver, it creates following client devices: HID client: interface of sensor configure and sensor event report. SMHI client: interface of sensor calibration, ISHFW debug, ISHFW performance analysis a

[PATCH V6 08/11] megaraid_sas: Enable or Disable Fast path based on the PCI Threshold Bandwidth

2016-12-22 Thread Sasikumar Chandrasekaran
Large SEQ IO workload should sent as non fast path commands This patch is depending on patch 7 80 chars per line limit is taken care around VD_EXT_DEBUG macro. Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 8 + drivers/scsi/megaraid/megaraid_sas

[PATCH 2/7] hid: intel-ish-hid: use helper function for private driver data set/get

2016-12-22 Thread Even Xu
Use helper set/get function to set/get driver data in ishtp-hid-client driver instead of directly accessing cl_device driver_data member. Signed-off-by: Even Xu Reviewed-by: Andriy Shevchenko Acked-by: Srinivas Pandruvada --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 14 +++--- 1

[PATCH V6 07/11] megaraid_sas: Add the Support for SAS3.5 Generic Megaraid Controllers Capabilities

2016-12-22 Thread Sasikumar Chandrasekaran
The Megaraid driver has to support the SAS3.5 Generic Megaraid Controllers Firmware functionality. This patch is depending on patch 6 and same as V5 Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl --- drivers/scsi/megaraid/megaraid_sas_base.c | 53 ++

[PATCH V6 09/11] megaraid_sas: ldio_outstanding variable is not decremented in completion path

2016-12-22 Thread Sasikumar Chandrasekaran
ldio outstanding variable needs to be decremented in io completion path for iMR dual queue depth This patch is depending on patch 8 and same as V5 Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 7 +-- 1 file changed, 5 ins

[PATCH V6 04/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detection and IO Coalescing

2016-12-22 Thread Sasikumar Chandrasekaran
Detect sequential IO streams and pass those IOs directly to FW. This patch is depending on patch 3 Few code indentation issues fixed Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl --- drivers/scsi/megaraid/megaraid_sas.h| 1 + drivers/scsi/megaraid/megaraid_sas_bas

[PATCH V6 06/11] megaraid_sas: Dynamic Raid Map Changes for SAS3.5 Generic Megaraid Controllers

2016-12-22 Thread Sasikumar Chandrasekaran
SAS3.5 Generic Megaraid Controllers FW will support new dynamic RaidMap to have different sizes for different number of supported VDs. This patch is depending on patch 5 80 chars per line limit is taken care around VD_EXT_DEBUG macro. NULL pointer check for desc_table has been removed. Few code

[PATCH V6 05/11] megaraid_sas: SAS3.5 Generic Megaraid Controllers Fast Path for RAID 1/10 Writes

2016-12-22 Thread Sasikumar Chandrasekaran
To improve RAID 1/10 Write performance, OS drivers need to issue the required Write IOs as Fast Path IOs (after the appropriate checks allowing Fast Path to be used) to the appropriate physical drives (translated from the OS logical IO) and wait for all Write IOs to complete. If any of the Writ

[PATCH V6 11/11] megaraid_sas: driver version upgrade

2016-12-22 Thread Sasikumar Chandrasekaran
Upgrade driver version. This patch is depending on patch 10 and same as V5 Signed-off-by: Sasikumar Chandrasekaran Reviewed-by: Tomas Henzl --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/d

[PATCH V6 10/11] megaraid_sas: Implement the PD Map support for SAS3.5 Generic Megaraid Controllers

2016-12-22 Thread Sasikumar Chandrasekaran
Update Linux driver to use new pdTargetId field for JBOD target ID This patch is depending on patch 9 and same as V5 Signed-off-by: Sasikumar Chandrasekaran --- drivers/scsi/megaraid/megaraid_sas.h| 105 +--- drivers/scsi/megaraid/megaraid_sas_base.c | 3 + d

[PATCH V6 00/11] megaraid_sas: Updates for scsi-next

2016-12-22 Thread Sasikumar Chandrasekaran
Sasikumar Chandrasekaran (11): megaraid_sas: Add new pci device Ids for SAS3.5 Generic Megaraid Controllers megaraid_sas: 128 MSIX Support megaraid_sas: EEDP Escape Mode Support for SAS3.5 Generic Megaraid Controllers megaraid_sas: SAS3.5 Generic Megaraid Controllers Stream Detecti

[PATCH] perf/x86: set pmu->module in Intel PMU modules

2016-12-22 Thread David Carrillo-Cisneros
The conversion of Intel PMU drivers into modules did not include reference counting. The machine will crash when attempting to access deleted code if an event from a module PMU is started and the module removed before the event is destroyed. i.e. this crashes the machine: $ insmod intel-

Re: [PATCH v2 REGRESSION RESEND] usb: ohci-at91: use descriptor-based gpio APIs correctly

2016-12-22 Thread Peter Rosin
On 2016-12-22 18:27, Greg Kroah-Hartman wrote: > On Thu, Dec 22, 2016 at 08:43:55AM +0100, Peter Rosin wrote: >> The gpiod_get* function family does not want the -gpio suffix. >> Use devm_gpiod_get_index_optional instead of devm_gpiod_get_optional. >> The descriptor based APIs handle active high/lo

Re: [RFC PATCH 2/4] clk: mdm9615: Add EBI2 clock

2016-12-22 Thread Stephen Boyd
On 12/22, Zoran Markovic wrote: > +static struct clk_branch ebi2_clk = { > + .hwcg_reg = 0x2664, > + .hwcg_bit = 6, > + .halt_reg = 0x2fcc, > + .halt_bit = 23, > + .clkr = { > + .enable_reg = 0x2664, > + .enable_mask = BIT(6)|BIT(4), Some spaces here aro

Re: [PATCH v2] stmmac: CSR clock configuration fix

2016-12-22 Thread Phil Reid
G'day Joao, On 23/12/2016 01:06, Joao Pinto wrote: Às 4:57 PM de 12/22/2016, Phil Reid escreveu: On 22/12/2016 23:47, Joao Pinto wrote: Hello Phil, Às 3:42 PM de 12/22/2016, Phil Reid escreveu: G'day Joao, On 22/12/2016 20:38, Joao Pinto wrote: When testing stmmac with my QoS reference des

Re: [PATCH v5 6/7] remoteproc: qcom: Implement Hexagon core specific changes.

2016-12-22 Thread Bjorn Andersson
On Thu 15 Dec 04:21 PST 2016, Avaneesh Kumar Dwivedi wrote: > +/* QDSP6v56 parameters */ > +#define QDSP6v56_LDO_BYPBIT(25) > +#define QDSP6v56_BHS_ON BIT(24) > +#define QDSP6v56_CLAMP_WL BIT(21) > +#define QDSP6v56_CLAMP_QMC_MEM BIT(22) > +#d

Re: [PATCH] arc: enable unaligned access in kernel mode

2016-12-22 Thread Vineet Gupta
On 12/21/2016 03:40 AM, Alexey Brodkin wrote: > This enables misaligned access handling even in kernel mode. > Some wireless drivers (ath9k-htc and mt7601u) use misaligned accesses > here and there and to cope with that without fixing stuff in the drivers > we're just gracefully handling it on ARC.

Re: linux-next: build failure after merge of the scsi tree

2016-12-22 Thread James Bottomley
On Fri, 2016-12-23 at 11:45 +1100, Stephen Rothwell wrote: > Hi James, > > After merging the scsi tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/scsi/qedi/qedi_main.c: In function 'qedi_init': > drivers/scsi/qedi/qedi_main.c:2073:2: error: implicit declaratio

[PATCH] md/r5cache: fix spelling mistake on "recoverying"

2016-12-22 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "recoverying" to "recovering" in pr_dbg message. Signed-off-by: Colin Ian King --- drivers/md/raid5-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/raid5-cache.c b/drivers/md/raid5-cache.c index bff1b4a

[GIT PULL] ARC updates for 4.10-rc1 part 2

2016-12-22 Thread Vineet Gupta
Hi Linus, Please pull. Thx and Happy holidays ! -Vineet -> The following changes since commit 7badf6fefca8278e749e82411fdb98b123cca50e: ARC: axs10x: really enable ARC PGU (2016-11-30 11:54:25 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux

  1   2   3   4   5   6   >