Re: [PATCH] sched: write better comments for weight calculations

2017-03-22 Thread Joel Fernandes
On Wed, Mar 22, 2017 at 7:18 AM, Peter Zijlstra wrote: > On Fri, Mar 10, 2017 at 12:47:43PM -0800, Joel Fernandes wrote: >> This patch rewrites comments related task priorities and CPU usage >> along with an example to show how it works. > > To what purpose? Bigger word count? The intention is to

Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-03-22 Thread Jon Masters
On 03/22/2017 10:48 AM, Bjorn Helgaas wrote: > On Wed, Mar 22, 2017 at 10:28:27AM -0400, Jon Masters wrote: >> On 03/21/2017 10:56 AM, David Daney wrote: > >>> Yes. After all this back and forth, Cavium has decided to deploy >>> firmware with "CAVxxx" as _HID. >> >> Great. How about a stable back

[PATCH 1/1] of: default implementation for of_find_all_nodes(...).

2017-03-22 Thread Artur Lorincz
Added default implementation for of_find_all_nodes(). This function is used by board.c from the board module (drivers/staging/board). Signed-off-by: Artur Lorincz --- include/linux/of.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 21e6323

Re: [PATCH] ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188

2017-03-22 Thread Alexander Kochetkov
Hello, Heiko! > 22 марта 2017 г., в 18:54, Heiko Stuebner написал(а): > > I've applied a slightly different variant in [0] with your commit message and > moved the dma properties to the mmc/emmc nodes in rk3xxx.dtsi - as the dma > channels are the same on both rk3188 and rk3066. Thank you! I ha

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Arnd Bergmann
On Wed, Mar 22, 2017 at 4:32 PM, Catalin Marinas wrote: > On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: >> On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas >> wrote: >> Taht was certainly not intended, and I don't see yet what exactly is going >> on. >> What is your setting for

Re: [PATCH 03/20] asm-generic/io.h: add PCI config space remap interface

2017-03-22 Thread Bjorn Helgaas
On Wed, Mar 22, 2017 at 03:04:03PM +, Lorenzo Pieralisi wrote: > Hi Bjorn, Arnd, > > On Thu, Mar 16, 2017 at 04:12:43PM -0500, Bjorn Helgaas wrote: > > [+cc Luis] > > > > On Mon, Feb 27, 2017 at 03:14:14PM +, Lorenzo Pieralisi wrote: > > > The PCI specifications (Rev 3.0, 3.2.5 "Transacti

Re: [PATCH] staging: fbtft: Replace a bit shift by a use of BIT.

2017-03-22 Thread Andy Shevchenko
On Wed, Mar 22, 2017 at 6:18 PM, Andy Shevchenko wrote: > On Wed, Mar 22, 2017 at 4:37 AM, Arushi Singhal > wrote: >> This patch replaces bit shifting on 1 with the BIT(x) macro. >> This was done with coccinelle: >> @@ >> constant c; >> @@ >> >> -1 << c >> +BIT(c) >> > > While using BIT() macro i

Re: [PATCH] sched/fair: Fix ftq noise bench regression

2017-03-22 Thread Dietmar Eggemann
On 22/03/17 09:22, Vincent Guittot wrote: > On 21 March 2017 at 18:46, Dietmar Eggemann wrote: >> Hi Vincent, >> >> On 17/03/17 13:47, Vincent Guittot wrote: >> >> [...] >> >>> Reported-by: ying.hu...@linux.intel.com >>> Signed-off-by: Vincent Guittot >>> Fixes: 4e5160766fcc ("sched/fair: Propaga

[PATCH] [media] usb: au0828: remove redundant code

2017-03-22 Thread Colin King
From: Colin Ian King The check for ret being non-zero is false as ret is always zero, hence we have redundant dead code that can be removed. Detected with CoverityScan, CID#112968 ("Constant' variable guards dead code (DEADCODE)'") Signed-off-by: Colin Ian King --- drivers/media/usb/au0828/au

Re: [PATCH] PCI: ACPI: Fix ThunderX PEM initialization

2017-03-22 Thread Bjorn Helgaas
On Wed, Mar 22, 2017 at 12:25:39PM -0400, Jon Masters wrote: > On 03/22/2017 10:48 AM, Bjorn Helgaas wrote: > > On Wed, Mar 22, 2017 at 10:28:27AM -0400, Jon Masters wrote: > >> On 03/21/2017 10:56 AM, David Daney wrote: > > > >>> Yes. After all this back and forth, Cavium has decided to deploy >

Re: [lkp-robot] [x86] 69218e4799: BUG:kernel_hang_in_boot_stage

2017-03-22 Thread Andy Lutomirski
On Wed, Mar 22, 2017 at 12:36 AM, Ingo Molnar wrote: > > * Thomas Garnier wrote: > >> > static inline void setup_fixmap_gdt(int cpu) >> > { >> > __set_fixmap(get_cpu_gdt_ro_index(cpu), >> > -__pa(get_cpu_gdt_rw(cpu)), pg_fixmap_gdt_flags); >> > +s

Re: [PATCH] kasan: report only the first error

2017-03-22 Thread Andrey Konovalov
On Wed, Mar 22, 2017 at 5:06 PM, Andrey Ryabinin wrote: > Disable kasan after the first report. There are several reasons for this: > * Single bug quite often has multiple invalid memory accesses causing > storm in the dmesg. > * Write OOB access might corrupt metadata so the next report wil

Re: [PATCH] ARM: dts: rockchip: setup DMA-channels for mmc0 and emmc for rk3188

2017-03-22 Thread Heiko Stuebner
Hi, Am Mittwoch, 22. März 2017, 19:20:56 CET schrieb Alexander Kochetkov: > Hello, Heiko! > > > 22 марта 2017 г., в 18:54, Heiko Stuebner написал(а): > I have working settings for eMMC for radxa rock. What do you think, is it > good idea to add them to the kernel DT? As Radxa Rock doesn’t come w

Re: [PATCH] sched: fair: Improve PELT decay_load calculation comments

2017-03-22 Thread Joel Fernandes
On Wed, Mar 22, 2017 at 7:16 AM, Peter Zijlstra wrote: > On Fri, Mar 10, 2017 at 12:23:41PM -0800, Joel Fernandes wrote: >> The PELT decay_load comments are a bit confusing, first of all >> the 1/2^N should be (1/2)^N so that the reader doesn't get confused. > > I'm thinking you're confused. They'

Re: [PATCH] blk-mq: don't complete un-started request in timeout handler

2017-03-22 Thread Jens Axboe
On 03/22/2017 11:58 AM, Keith Busch wrote: > On Tue, Mar 21, 2017 at 11:03:59PM -0400, Jens Axboe wrote: >> On 03/21/2017 10:14 PM, Ming Lei wrote: >>> When iterating busy requests in timeout handler, >>> if the STARTED flag of one request isn't set, that means >>> the request is being processed in

Re: [PATCH v5 2/4] fpga pr ip: Core driver support for Altera Partial Reconfiguration IP.

2017-03-22 Thread Anatolij Gustschin
Hi Matthew, On Wed, 22 Mar 2017 09:08:18 -0700 (PDT) matthew.gerl...@linux.intel.com matthew.gerl...@linux.intel.com wrote: ... >> Can we also add a function for registering a PCIe device with >> PR IP here? Something like: > >If we have an alt_pr_pcie_register function, we will need the >corre

Re: [RFC][PATCH 1/4] printk: introduce printing kernel thread

2017-03-22 Thread Petr Mladek
On Mon 2017-03-06 21:45:51, Sergey Senozhatsky wrote: > This patch introduces a dedicated printing kernel thread - printk_kthread. > The main purpose of this kthread is to offload printing to a non-atomic > and always scheduleable context, which eliminates 4) and makes 1)-3) less > critical. printk

Re: [RFC][PATCH 4/4] printk: enable printk offloading

2017-03-22 Thread Sergey Senozhatsky
Hello, On (03/22/17 16:43), Petr Mladek wrote: > The patch looks fine to me. But it might get more complicated > if we decide to have a global option to avoid the kthread. > Let's discuss this in the 3rd patch first. thanks for taking a look. so I was going to publish a new patch set tonight, bu

Re: [PATCH v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Neil Armstrong
On 03/22/2017 05:21 PM, Philipp Zabel wrote: > On Tue, 2017-03-21 at 16:12 +0100, Neil Armstrong wrote: >> Some display pipelines can only provide non-RBG input pixels to the HDMI TX >> Controller, this patch takes the pixel format from the plat_data if provided. >> >> Signed-off-by: Neil Armstrong

[PATCH v2] staging: iio: Replace a bit shift by a use of BIT.

2017-03-22 Thread Arushi Singhal
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ constant c; @@ -1 << c +BIT(c) Signed-off-by: Arushi Singhal --- changes in v2 -remove/correct the wrong code. drivers/staging/iio/cdc/ad7150.c | 2 +- drivers/staging/iio/cdc/ad7746.c | 16 +++

Re: [PATCH] selftests/x86/ldt_gdt_32: Work around a glibc sigaction bug

2017-03-22 Thread Andy Lutomirski
On Tue, Mar 21, 2017 at 11:48 PM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> i386 glibc is buggy and calls the sigaction syscall incorrectly. >> This is asymptomatic for normal programs, but it blows up on >> programs that do evil things with segmentation. ldt_gdt an example >> of such

Re: [lkp-robot] [x86] 69218e4799: BUG:kernel_hang_in_boot_stage

2017-03-22 Thread Thomas Garnier
On Wed, Mar 22, 2017 at 9:33 AM, Andy Lutomirski wrote: > On Wed, Mar 22, 2017 at 12:36 AM, Ingo Molnar wrote: >> >> * Thomas Garnier wrote: >> >>> > static inline void setup_fixmap_gdt(int cpu) >>> > { >>> > __set_fixmap(get_cpu_gdt_ro_index(cpu), >>> > -__pa(get_c

Re: [PATCH] ARM: dts: rockchip: increase SD clock frequency on Radxa Rock

2017-03-22 Thread Heiko Stuebner
Hi, Am Dienstag, 21. März 2017, 18:40:22 CET schrieb Alexander Kochetkov: > The patch set SD clock frequency to maximum possible to SD-card > (50MHz). This change actual clock frequency from 32MHz to 48MHz > (speedup 1.5X). > > Banner line before patch: 'mmc_host mmc0: Bus speed (slot 0) = 32

Re: [PATCH 07/17] net: convert sock.sk_refcnt from atomic_t to refcount_t

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 07:54:04AM -0700, Eric Dumazet wrote: > > I guess someone could code a lib/test_refcount.c launching X threads > using either atomic_inc or refcount_inc() in a loop. > > That would give a rough estimate of the refcount_t overhead among > various platforms. Cycles spend on

Re: [PATCH] sched/fair: Fix ftq noise bench regression

2017-03-22 Thread Vincent Guittot
On 22 March 2017 at 17:22, Dietmar Eggemann wrote: > On 22/03/17 09:22, Vincent Guittot wrote: >> On 21 March 2017 at 18:46, Dietmar Eggemann wrote: >>> Hi Vincent, >>> >>> On 17/03/17 13:47, Vincent Guittot wrote: >>> >>> [...] >>> Reported-by: ying.hu...@linux.intel.com Signed-off-by:

Re: [PATCH] [v2] arm64: define BUG() instruction without CONFIG_BUG

2017-03-22 Thread Catalin Marinas
On Wed, Mar 22, 2017 at 05:29:19PM +0100, Arnd Bergmann wrote: > On Wed, Mar 22, 2017 at 4:32 PM, Catalin Marinas > wrote: > > On Wed, Mar 22, 2017 at 03:51:54PM +0100, Arnd Bergmann wrote: > >> On Wed, Mar 22, 2017 at 3:37 PM, Catalin Marinas > >> wrote: > > >> Taht was certainly not intended,

Re: [PATCH v1] KVM: x86: fix illegal MP_STATE when in/entering SMM

2017-03-22 Thread Radim Krčmář
2017-03-22 16:53+0100, David Hildenbrand: > If we already entered/are about to enter SMM, don't allow > switching to INIT/SIPI_RECEIVED, otherwise the next call to > kvm_apic_accept_events() will report a warning. > > Fixes: cd7764fe9f73 ("KVM: x86: latch INITs while in system management mode") >

[PATCH 00/23] hisi_sas: error handling and other misc fixes and improvements

2017-03-22 Thread John Garry
This patchset introduces a range of error handling and other misc improvements for the HiSilicon SAS controller, including: - controller reset function - softreset for SATA error handling - fixes for slot free'ing - v2 hw error handling improvements - and other misc, more minor stuff John Garry (1

[PATCH 01/23] scsi: hisi_sas: add to_hisi_sas_port()

2017-03-22 Thread John Garry
Introduce function to get hisi_sas_port from asd_sas_port. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas.h | 2 ++ drivers/scsi/hisi_sas/hisi_sas_main.c | 17 + drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 4 +++- drivers/scsi/hisi_s

[PATCH 18/23] scsi: hisi_sas: rename hisi_sas_link_timeout_{enable, disable}_link

2017-03-22 Thread John Garry
For consistency, remove the "hisi_sas_" prefix. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 45bd69d..e9

[PATCH 13/23] scsi: hisi_sas: fix some sas_task.task_state_lock locking

2017-03-22 Thread John Garry
Some more locking needs to be added/modified for when read-modify-writing sas_task.task_state_flags. Note: since we can attempt to grab this lock in interrupt context we should use irq variant of spin_lock. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/his

[PATCH 11/23] scsi: hisi_sas: check for SAS_TASK_STATE_ABORTED in slot complete

2017-03-22 Thread John Garry
Check in slot_complete_v2_hw() for whether a task has already been completed by upper layer. Signed-off-by: John Garry Reviewed-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/dri

[PATCH 07/23] scsi: hisi_sas: only reset link for PHY_FUNC_LINK_RESET

2017-03-22 Thread John Garry
We currently do a hard reset for a link reset. Change this to do a link reset only. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/driver

[PATCH 21/23] scsi: hisi_sas: check hisi_sas_lu_reset() error message

2017-03-22 Thread John Garry
Unless we actually get some sort of failure in hisi_sas_lu_reset(), don't print a message. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c

[PATCH 23/23] scsi: hisi_sas: add is_sata_phy_v2_hw()

2017-03-22 Thread John Garry
From: Xiaofei Tan Add helper function is_sata_phy_v2_hw() to judge whether the attached device is SATA disk for a root PHY. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 17 + 1 file changed, 13 insertions(+), 4 deletions(-)

[PATCH 09/23] scsi: hisi_sas: modify hisi_sas_abort_task() for SSP

2017-03-22 Thread John Garry
Currently an internal abort is executed regardless of the result of the TMF. We should also check the result of the internal abort to see if we should free the slot. So change the status code STAT_IO_COMPLETE to TMF_RESP_FUNC_SUCC, meaning the slot has been successfully aborted. Signed-off-by: Jo

[PATCH 16/23] scsi: hisi_sas: some modifications to v2 hw reg init values

2017-03-22 Thread John Garry
This patch includes: (1) Disable transport layer retry (2) Support CQ time and count interrupt coal (3) fix link FIFO full issue Signed-off-by: Xiang Chen Signed-off-by: Zhao Nenglong Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 12 ++-- 1 file changed, 6 inse

[PATCH 20/23] scsi: hisi_sas: release SMP slot in lldd_abort_task

2017-03-22 Thread John Garry
From: Xiang Chen When an SMP task timeouts, it will call lldd_abort_task to release the associated slot, and then will release the sas_task. Currently in lldd_abort_task, if we fail to internally abort IO, then the slot of SMP IO is not released, but sas_task will still be later released, so the

Re: [lkp-robot] [x86] 69218e4799: BUG:kernel_hang_in_boot_stage

2017-03-22 Thread Andy Lutomirski
On Wed, Mar 22, 2017 at 9:38 AM, Thomas Garnier wrote: > On Wed, Mar 22, 2017 at 9:33 AM, Andy Lutomirski wrote: >> On Wed, Mar 22, 2017 at 12:36 AM, Ingo Molnar wrote: >>> >>> * Thomas Garnier wrote: >>> > static inline void setup_fixmap_gdt(int cpu) > { > __set_fixmap

[PATCH 12/23] scsi: hisi_sas: free slots after hardreset

2017-03-22 Thread John Garry
From: Xiang Chen After hardreset, we clear up IOs of remote disks, so we need to free those slots in LLDD. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/scsi

[PATCH 10/23] scsi: hisi_sas: hardreset for SATA disk in LU reset

2017-03-22 Thread John Garry
When issuing an LU reset for a SATA target, issue an internal abort and a hard reset. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 38 ++- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers/sc

Re: [PATCH v2 06/18] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-22 Thread Daniel Lezcano
On Wed, Mar 22, 2017 at 03:59:21PM +, Marc Zyngier wrote: > [Sorry, sent too quickly] > [ ... ] > >> struct arch_timer_erratum_workaround { > >> - const char *id; /* Indicate the Erratum ID */ > >> + enum arch_timer_erratum_match_type match_type; > > > > Putting the match_fn inst

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Sudeep Holla
On 22/03/17 16:01, Leo Yan wrote: > On Wed, Mar 22, 2017 at 02:07:47PM +, Sudeep Holla wrote: [...] >> >> We can always do that unconditionally. If implementations don't honor >> those bits, it's different. If they hang on accessing something which is >> on debug power domain and not on cor

[PATCH 19/23] scsi: hisi_sas: add hisi_sas_clear_nexus_ha()

2017-03-22 Thread John Garry
Add function for upper-layer to reset controller when all else fails. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas

[PATCH 03/23] scsi: hisi_sas: move PHY init to hisi_sas_scan_start()

2017-03-22 Thread John Garry
Relocate the PHY init code from LLDD hw init path to hisi_sas_scan_start(). Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 9 +++-- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 3 +-- drivers/scsi/h

[PATCH 04/23] scsi: hisi_sas: add softreset function for SATA disk

2017-03-22 Thread John Garry
From: Xiang Chen Add softreset to clear IO after internal abort device for SATA disk. The SATA error handling for the controller is based on device internal abort and softreset function. The controller does not support internal abort for single IO, so we need to execute internal abort for devic

[PATCH 17/23] scsi: hisi_sas: handle PHY UP+DOWN simultaneous irq

2017-03-22 Thread John Garry
From: Xiaofei Tan Handle the situation that PHY UP and DOWN irq happen simultaneously. There is no mechanism of SoC HW to ensure this situation will never happen. So, we add this handle just in case. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw

Re: [PATCH] sched: fair: Improve PELT decay_load calculation comments

2017-03-22 Thread Peter Zijlstra
On Wed, Mar 22, 2017 at 09:35:43AM -0700, Joel Fernandes wrote: > On Wed, Mar 22, 2017 at 7:16 AM, Peter Zijlstra wrote: > > On Fri, Mar 10, 2017 at 12:23:41PM -0800, Joel Fernandes wrote: > >> The PELT decay_load comments are a bit confusing, first of all > >> the 1/2^N should be (1/2)^N so that

[PATCH v2] staging: fbtft: Replace a bit shift by a use of BIT.

2017-03-22 Thread Arushi Singhal
This patch replaces bit shifting on 1 with the BIT(x) macro. This was done with coccinelle: @@ constant c; @@ -1 << c +BIT(c) Signed-off-by: Arushi Singhal --- changes in v2 -improve the code. drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- drivers/staging/fbtft/fb_ili9163.c | 2 +- driver

[PATCH 15/23] scsi: hisi_sas: process error codes according to their priority

2017-03-22 Thread John Garry
From: Xiang Chen There are some rules to decide which error code has the high priority when errors happen together: (1) Error phase of CQ decides the error happens on RX or TX; (2) For TX error, when DMA/TRANS TX error happen simultaneously, the priority of DMA TX error is higher than TRANS TX e

Re: [PATCH] ARM: dts: rockchip: increase SD clock frequency on Radxa Rock

2017-03-22 Thread Alexander Kochetkov
> 22 марта 2017 г., в 19:47, Heiko Stuebner написал(а): > > sorry, but I will not apply this patch at this time. > When testing on my radxarock with the card I always use upon entering the > rootfs everything explodes with -110 errors, while without that patch the > card > runs stable as far

[PATCH 05/23] scsi: hisi_sas: remove hisi_sas_port_deformed()

2017-03-22 Thread John Garry
Currently when a root PHY is deformed from a asd_sas_port we try to release the slots in the LLDD, and fail. Regardless, it is not right to release this early. This patch removes the deformed function. As it was before, port deformation is still done in hisi_sas_phy_down(). It would be nice to a

[PATCH 08/23] scsi: hisi_sas: modify error handling for v2 hw

2017-03-22 Thread John Garry
From: Xiang Chen For error codes which need abort-and-retry, simulate IO timeout and let SCSI+ATA layers process those errors. Previously for SSP, we should try to abort the IO in the LLDD and then pass back to upper layer, but sometimes this would also error. So Instead of adding special error

[PATCH 02/23] scsi: hisi_sas: add controller reset

2017-03-22 Thread John Garry
From: Xiang Chen There are some scenarios that we need to warm-rest to reset registers of SAS controller. During reset we disable interrupts/DQs/PHYs, and after reset we re-init the hardware and rescan the topology to see if anything changed. Signed-off-by: Xiang Chen Signed-off-by: Xiaofei Tan

[PATCH 22/23] scsi: hisi_sas: use dev_is_sata to identify SATA or SAS disk

2017-03-22 Thread John Garry
From: Xiang Chen When SMP IO is sent, sas_protocol_ata couldn't judge whether the disk is SATA or SAS disk. So use dev_is_sata to identify SATA or SAS disk. Signed-off-by: Xiang Chen Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] kasan: report only the first error

2017-03-22 Thread Andrey Konovalov
On Wed, Mar 22, 2017 at 5:54 PM, Andrey Ryabinin wrote: > On 03/22/2017 07:34 PM, Andrey Konovalov wrote: >> On Wed, Mar 22, 2017 at 5:06 PM, Andrey Ryabinin >> wrote: >>> Disable kasan after the first report. There are several reasons for this: >>> * Single bug quite often has multiple invalid

[PATCH 14/23] scsi: hisi_sas: remove task free'ing for timeouts

2017-03-22 Thread John Garry
When a TMF or internal abort times-out, do not free slot. We expect this to be done upon later escalated error handling. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/scsi/hisi_sas/h

[PATCH 06/23] scsi: hisi_sas: error hisi_sas_task_prep() when port down

2017-03-22 Thread John Garry
When sas_port is NULL, then return SAS_PHY_DOWN. In addition, when the sas_dev is gone then explicitly return SAS_PHY_DOWN. Signed-off-by: John Garry Signed-off-by: Xiang Chen --- drivers/scsi/hisi_sas/hisi_sas_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dri

Re: [PATCH 14/15] power: supply: Add driver for Cherry Trail Whiskey Cove PMIC Fuel Gauge

2017-03-22 Thread Hans de Goede
Hi, On 17-03-17 18:58, Andy Shevchenko wrote: On Fri, 2017-03-17 at 10:55 +0100, Hans de Goede wrote: Add a driver for the Cherry Trail Whiskey Cove PMIC Fuel Gauge, note the Cherry Trail Whiskey Cove PMIC Fuel Gauge block is purely a fuel gauge and not a full battery controller. As such it off

[RFC 5/8] regulator: anatop: fix min dropout for bypass mode

2017-03-22 Thread Leonard Crestez
From: Irina Tirdea In bypass mode, the anatop digital regulators do not have any minimum dropout value (the input voltage is equal to the output voltage according to documentation). Having a min dropout value of 125mV will lead to an increased voltage for PMIC supplies. Only set minimum dropout

[PATCHv2 0/4] Regmap IRQ fix and related changes CPCAP

2017-03-22 Thread Tony Lindgren
Hi all, Here's v2 set of fixes to make CPCAP PMIC interrupts work reliably when used with multiple drivers. While working on the ADC, charger and USB PHY drivers I noticed that the PMIC interrupt to the SoC would eventually stop working. All these can wait for v4.12 merge window as these issues d

[PATCH 4/4] mfd: cpcap: Fix bad use of IRQ sense register

2017-03-22 Thread Tony Lindgren
The cpcap INTS registers are for getting the value of the line, not for configuring the type. Cc: Charles Keepax Cc: Lee Jones Cc: Marcel Partap Cc: Michael Scott Cc: Sebastian Reichel Reviewed-By: Sebastian Reichel Tested-by: Sebastian Reichel Acked-by: Lee Jones Signed-off-by: Tony Lindg

[PATCH 1/4] regmap: irq: Fix lost interrupts by introducing handle_reread

2017-03-22 Thread Tony Lindgren
At least Motorola CPCAP PMIC needs it's device interrupts re-read until there are no more interrupts. Otherwise the PMIC interrupt to the SoC will eventually stop toggling. This seems to be a bug in the CPCAP PMIC where it can stop driving the GPIO interrupt to the SoC with pending CPCAP interrupts

Re: [PATCH v6 03/14] mmc: core: Add mmc-card dt sub-node parse in core layer

2017-03-22 Thread Gregory CLEMENT
Hi Ulf, On mer., mars 15 2017, Ulf Hansson wrote: > On 14 February 2017 at 18:01, Gregory CLEMENT > wrote: >> From: Hu Ziji >> >> Some vendor host, like Xenon, can support multiple types. >> In dts, use mmc-card dt sub-node to indicate eMMC is in use. >> >> Add a generic mmc-card parse funct

[RFC 8/8] ARM: dts: imx6qdl-sabresd: Enable fsl,ldo-bypass

2017-03-22 Thread Leonard Crestez
This enables LDO bypass by default on the imx6qdl-sabresd boards. New dts files with -ldo suffix are added for users who want to run with LDOs enabled on these boards anyway. Signed-off-by: Leonard Crestez --- arch/arm/boot/dts/imx6dl-sabresd-ldo.dts | 13 + arch/arm/boot/dts/imx6q-s

[RFC 1/8] ARM: imx: gpc: Do not print error message for EPROBE_DEFER

2017-03-22 Thread Leonard Crestez
The pu regulator request will return -EPROBE_DEFER if it has a supply from PMIC and this supply is not yet registered. This does not represent an error since the driver will call probe again later, so only print a warning message in this case. Signed-off-by: Irina Tirdea Signed-off-by: Leonard Cr

[PATCH 3/4] mfd: cpcap: Use ack_invert interrupts

2017-03-22 Thread Tony Lindgren
We should use ack_invert as the int_read_and_clear() in the Motorola kernel tree does "ireg_val & ~mreg_val" before writing to the mask register. Cc: Charles Keepax Cc: Lee Jones Cc: Marcel Partap Cc: Michael Scott Tested-by: Sebastian Reichel Signed-off-by: Tony Lindgren --- drivers/mfd/mo

[PATCH 2/4] mfd: cpcap: Use handle_reread flag for interrupts

2017-03-22 Thread Tony Lindgren
On CPCAP we need to keep reading interrupts until there are no more interrupts. Otherwise the PMIC interrupt to the SoC will at some point stop toggling. This seems to happen because new CPCAP device interrupts show up while we're handling. Cc: Charles Keepax Cc: Lee Jones Cc: Marcel Partap Cc:

Re: [PATCH] cpufreq: schedutil: Always trace frequency if it does not change

2017-03-22 Thread Rafael J. Wysocki
On Wed, Mar 22, 2017 at 3:21 PM, Peter Zijlstra wrote: > On Wed, Mar 22, 2017 at 01:52:04PM +0100, Rafael J. Wysocki wrote: >> On Wed, Mar 22, 2017 at 10:29 AM, Peter Zijlstra >> wrote: > >> > So why not fix the tools? >> >> Because I can't. >> >> I just can't go and fix all of the tools binarie

Re: [PATCH] ARM: dts: rockchip: increase SD clock frequency on Radxa Rock

2017-03-22 Thread Alexander Kochetkov
> 22 марта 2017 г., в 20:04, Alexander Kochetkov > написал(а): > > Ok. Let leave as is for now. > > My radxa worked stable for a year with this settings. Ok, I not sure what my radxa worked stable with this settings. Hieko, thanks for catching that. Sorry for your time.

Re: [RFC 8/8] ARM: dts: imx6qdl-sabresd: Enable fsl,ldo-bypass

2017-03-22 Thread Lucas Stach
Am Mittwoch, den 22.03.2017, 18:53 +0200 schrieb Leonard Crestez: > This enables LDO bypass by default on the imx6qdl-sabresd boards. New > dts files with -ldo suffix are added for users who want to run with LDOs > enabled on these boards anyway. Given that using LDO bypass affects the device life

[PATCH 1/1] tty: serial: st-asc: Make the locking RT aware

2017-03-22 Thread Lionel Debieve
The lock is a sleeping lock and local_irq_save() is not the standard implementation now. Working for both -RT and non RT. Signed-off-by: Lionel Debieve --- drivers/tty/serial/st-asc.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/st-asc.c b/driver

[PATCH v3 2/2] pinctrl: samsung: Use devres version of gpiochip_add_data

2017-03-22 Thread Charles Keepax
Use devm_gpiochip_add_data to simplify the error path in samsung_gpiolib_register. Signed-off-by: Charles Keepax Reviewed-by: Krzysztof Kozlowski --- No changes since v2. drivers/pinctrl/samsung/pinctrl-samsung.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH v3 1/2] pinctrl: samsung: Register pinctrl before GPIO

2017-03-22 Thread Charles Keepax
If we request a GPIO hog, then gpiochip_add_data will attempt to request some of its own GPIOs. The driver also uses gpiochip_generic_request which means that for any GPIO request to succeed the pinctrl needs to be registered. Currently however the driver registers the GPIO and then the pinctrl mea

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Lionel DEBIEVE
On 03/22/2017 05:05 PM, Steven Rostedt wrote: > On Wed, 22 Mar 2017 16:18:43 +0100 > Lionel Debieve wrote: > >> Use raw_spin_lock in enable/disable channel as it comes from >> interrupt context. >> >> BUG: sleeping function called from invalid context at >> kernel/locking/rtmutex.c:995 >> in_atomi

Re: [PATCH 0/6] staging: BCM2835 MMAL V4L2 camera driver

2017-03-22 Thread Mauro Carvalho Chehab
Hi Michael, Em Mon, 20 Mar 2017 08:40:11 -0700 Michael Zoran escreveu: > > > Are you using Eric Anholt's HDMI Audio driver that's included in > > > VC4?  > > > That could well be incompatible with the firmware driver. Or are > > > you > > > using a half mode of VC4 for audio and VCHIQ for video?

Re: [PATCH] ARM: dts: rockchip: increase SD clock frequency on Radxa Rock

2017-03-22 Thread Heiko Stuebner
Am Mittwoch, 22. März 2017, 20:14:36 CET schrieb Alexander Kochetkov: > > > 22 марта 2017 г., в 20:04, Alexander Kochetkov > > написал(а): > > > > Ok. Let leave as is for now. > > > > My radxa worked stable for a year with this settings. > > Ok, I not sure what my radxa worked stable with thi

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Suzuki K Poulose
On 22/03/17 16:17, Sudeep Holla wrote: On 22/03/17 15:45, Mike Leach wrote: On 22 March 2017 at 14:07, Sudeep Holla wrote: On 22/03/17 12:54, Mike Leach wrote: On 21 March 2017 at 15:39, Sudeep Holla mailto:sudeep.ho...@arm.com>> wrote: [...] I disagree with this approach. One of th

[PATCH] backlight: pwm_bl: Fix GPIO out for unimplemented .get_direction()

2017-03-22 Thread Geert Uytterhoeven
Commit 7613c922315e308a ("backlight: pwm_bl: Move the checks for initial power state to a separate function") not just moved some code, but made slight changes in semantics. If a gpiochip doesn't implement the optional .get_direction() callback, gpiod_get_direction always returns -EINVAL, which is

Re: [PATCH] sched/fair: Fix ftq noise bench regression

2017-03-22 Thread Dietmar Eggemann
On 22/03/17 16:55, Vincent Guittot wrote: > On 22 March 2017 at 17:22, Dietmar Eggemann wrote: >> On 22/03/17 09:22, Vincent Guittot wrote: >>> On 21 March 2017 at 18:46, Dietmar Eggemann >>> wrote: Hi Vincent, On 17/03/17 13:47, Vincent Guittot wrote: [...] >> +static inline bo

Re: [PATCH v1 2/4] clk: rockchip: rk3228: add CLK_IGNORE_UNUSED flag for some clks

2017-03-22 Thread Heiko Stuebner
Hi Elaine, in general, I expect some sort of explanation in the commit message on why clocks need to be always on and cannot be handled from a driver. Also you can save flags, if you just make leave-clocks critical, which also is way safer than using clk_ignore_unused - see rk3399. Some highlig

[RFC 7/8] cpufreq: imx6q: Initialize LDO bypass

2017-03-22 Thread Leonard Crestez
Several imx6* socs have three built-in regulators LDO_ARM LDO_SOC and LDO_PU used to control internal chip voltages. "ldo-bypass" mode refers to placing these regulators in bypass mode and controlling voltages from an external power management chip instead. This is intended to save power at the exp

Re: [PATCH] kasan: report only the first error

2017-03-22 Thread Andrey Ryabinin
On 03/22/2017 07:34 PM, Andrey Konovalov wrote: > On Wed, Mar 22, 2017 at 5:06 PM, Andrey Ryabinin > wrote: >> Disable kasan after the first report. There are several reasons for this: >> * Single bug quite often has multiple invalid memory accesses causing >> storm in the dmesg. >> * Write

[RFC 6/8] regulator: core: Add regulator_is_bypass function

2017-03-22 Thread Leonard Crestez
This is a simple kernel API to query the bypass state of a regulator. Signed-off-by: Leonard Crestez --- drivers/regulator/core.c | 26 ++ include/linux/regulator/consumer.h | 1 + 2 files changed, 27 insertions(+) diff --git a/drivers/regulator/core.c b/drive

[RFC 4/8] regulator: core: Check enabling bypass respects constraints

2017-03-22 Thread Leonard Crestez
Enabling bypass mode makes a regulator passthrough the supply voltage directly. It is possible that the supply voltage is set high enough that it violates machine constraints so let's check for that. The supply voltage might be higher because of min_dropout_uV or maybe there is just an unrelated c

[RFC 2/8] cpufreq: imx6q: Fix handling EPROBE_DEFER from regulator

2017-03-22 Thread Leonard Crestez
From: Irina Tirdea If there are any errors in getting the cpu0 regulators, the driver returns -ENOENT. In case the regulators are not yet available, the devm_regulator_get calls will return -EPROBE_DEFER, so that the driver can be probed later. If we return -ENOENT, the driver will fail its initi

[RFC 0/8] ARM: imx: Upstream fsl,ldo-bypass

2017-03-22 Thread Leonard Crestez
Freescale imx socs have three built-in regulators LDO_ARM LDO_SOC and LDO_PU used to control internal chip voltages. "ldo-bypass" mode refers to placing these regulators in bypass mode and controlling voltages from an external power management chip instead. The intention is to save power (at the ex

[RFC 3/8] cpufreq: imx6q: Set max suspend_freq to avoid changes during suspend

2017-03-22 Thread Leonard Crestez
If the cpufreq driver tries to modify voltage/freq during suspend/resume it might need to control an external PMIC via I2C or SPI but those devices might be already suspended. To avoid this scenario we just increase cpufreq to highest setpoint before suspend. This issue can easily be triggered by

Re: [RFC 7/8] cpufreq: imx6q: Initialize LDO bypass

2017-03-22 Thread Lucas Stach
Am Mittwoch, den 22.03.2017, 18:53 +0200 schrieb Leonard Crestez: > Several imx6* socs have three built-in regulators LDO_ARM LDO_SOC and > LDO_PU used to control internal chip voltages. "ldo-bypass" mode refers > to placing these regulators in bypass mode and controlling voltages from > an externa

RE: [PATCH V1] mmc: core: fix still flush cache when eMMC cache off

2017-03-22 Thread Bean Huo (beanhuo)
Ping Linux-mmc maintainer... Tested-by: Shawn Lin Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Shawn Lin >On Sunday, March 19, 2017 12:45:40 AM Bean Huo wrote: >> This patch fixes the issue that mmc_blk_issue_rq still flushes cache >> when eMMC cache has already been off through user sp

Re: [PATCH v4.11] cgroup, net_cls: iterate the fds of only the tasks which are being migrated

2017-03-22 Thread David Miller
From: Tejun Heo Date: Tue, 14 Mar 2017 19:25:56 -0400 > The net_cls controller controls the classid field of each socket which > is associated with the cgroup. Because the classid is per-socket > attribute, when a task migrates to another cgroup or the configured > classid of the cgroup changes,

Re: [PATCH v2 1/9] Coccinelle: locks: identify callers of spin_lock{,_irq,_irqsave}() in irqchip implementations

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 10:54:15AM +0100, Julia Lawall wrote: > On Tue, 21 Mar 2017, Julia Cartwright wrote: > > On PREEMPT_RT, the spinlock_t type becomes an object which sleeps under > > contention. The codepaths used to support scheduling (irq dispatching, arch > > code, the scheduler, timers)

[PATCH 1/3] ACPI, ioapic: Clear on-stack resource before using it

2017-03-22 Thread Joerg Roedel
From: Joerg Roedel The on-stack resource-window 'win' in setup_res() is not properly initialized. This causes the pointers in the embedded 'struct resource' to contain stale pointers. These pointers (in my case the ->child pointer) gets later propagated to the global iomem_resources list, causin

[PATCH 2/3] ACPI: Remove platform devices from a bus on removal

2017-03-22 Thread Joerg Roedel
From: Joerg Roedel The function acpi_bus_attach() creates platform_devices if this is specified by the firmware. But in acpi_bus_trim() these devices are not removed, leaving a dangling reference to the parent device. In the case of a PCI root-bus, this results in the host_bridge device not bein

Re: [PATCH] kasan: report only the first error

2017-03-22 Thread Alexander Potapenko
On Wed, Mar 22, 2017 at 6:07 PM, Andrey Konovalov wrote: > On Wed, Mar 22, 2017 at 5:54 PM, Andrey Ryabinin > wrote: >> On 03/22/2017 07:34 PM, Andrey Konovalov wrote: >>> On Wed, Mar 22, 2017 at 5:06 PM, Andrey Ryabinin >>> wrote: Disable kasan after the first report. There are several rea

[PATCH 3/3] ACPI: Don't create a platform_device for IOAPIC/IOxAPIC

2017-03-22 Thread Joerg Roedel
From: Joerg Roedel No platform-device is required for IO(x)APICs, so don't even create them. Signed-off-by: Joerg Roedel --- drivers/acpi/acpi_platform.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c inde

[PATCH 0/3] ACPI Fixes for Hotplug

2017-03-22 Thread Joerg Roedel
Hi, here are fixes for three issues I found in ACPI code during hotplug testing. Patches 2 and 3 fix the same issue, but I think both make sense on their own. Please review. Thanks, Joerg Joerg Roedel (3): ACPI, ioapic: Clear on-stack resource before using it ACPI: Remove platform

Re: [PATCH v3 3/5] coresight: add support for debug module

2017-03-22 Thread Sudeep Holla
On 22/03/17 17:09, Suzuki K Poulose wrote: > On 22/03/17 16:17, Sudeep Holla wrote: [...] >> >> Point taken. So we could just specify that all necessary power >> domains need to be on for proper functionality for this feature and >> that it's highly platform specific instead of mixing cpu/clus

Re: [PATCH RT 1/1] remoteproc: Prevent schedule while atomic

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 04:18:43PM +0100, Lionel Debieve wrote: > Use raw_spin_lock in enable/disable channel as it comes from > interrupt context. > > BUG: sleeping function called from invalid context at > kernel/locking/rtmutex.c:995 > in_atomic(): 1, irqs_disabled(): 128, pid: 307, name: pulse

[PATCH v2] cpufreq: schedutil: Trace frequency only if it has changed

2017-03-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki sugov_update_commit() calls trace_cpu_frequency() to record the current CPU frequency if it has not changed in the fast switch case to prevent utilities from getting confused (they may report that the CPU is idle if the frequency has not been recorded for too long, for exa

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