[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 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

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 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 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

[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

[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

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

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: [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

[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:

[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

[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

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

[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

[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

[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

[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

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

[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

[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

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 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

[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 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

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 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 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] 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 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

[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 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 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

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

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

[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: [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 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

[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 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 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 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 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 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 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 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

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") >

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] 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 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] 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: [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] 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: [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: [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: [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: [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: [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] 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] 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] 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: [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] 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 >

[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] 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

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] [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] 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

[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] 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

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 v4 4/6] drm: bridge: dw-hdmi: Switch to V4L bus format and encodings

2017-03-22 Thread Philipp Zabel
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 On i.MX6 we could provide RGB/YUV bus formats d

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 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 is a good idea, you make it inconsistent here. There are at least two opti

[PATCH v8] staging: adis16060: Remove iio_dev mlock and refactor code

2017-03-22 Thread simran singhal
The IIO subsystem is redefining iio_dev->mlock to be used by the IIO core only for protecting device operating mode changes. ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes. In this driver, mlock was being used to protect hardware state changes. In the driver, buf_lock protects both t

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

2017-03-22 Thread Sudeep Holla
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 >> > wrote: >>> >> [...] >> >>> I disagree with this approach. One of the main usef

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

2017-03-22 Thread Lionel DEBIEVE
OK, resend without. BR Lionel -Original Message- From: Steven Rostedt [mailto:rost...@goodmis.org] Sent: mercredi 22 mars 2017 17:11 To: Lionel DEBIEVE Cc: Thomas Gleixner ; linux-rt-us...@vger.kernel.org; linux-kernel@vger.kernel.org; bige...@linutronix.de; Patrice CHOTARD ; Greg Kroa

[PATCH] staging: vt6656: removed coding style errors

2017-03-22 Thread Prasant Jalan
The patch replaces spaces with tabs as required by kernel coding standards. Signed-off-by: Prasant Jalan --- drivers/staging/vt6656/rxtx.c | 40 ++-- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/stagin

Re: [PATCH] x86: remove unused atomic_inc_short()

2017-03-22 Thread Andrey Ryabinin
On 03/22/2017 05:10 PM, Dmitry Vyukov wrote: > It is completely unused and implemented only on x86. > Remove it. > > Signed-off-by: Dmitry Vyukov > Suggested-by: Andrey Ryabinin Not me, it was Mark Rutland > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Peter Zijlstr

Re: kexec regression since 4.9 caused by efi

2017-03-22 Thread Ard Biesheuvel
On 21 March 2017 at 07:48, Dave Young wrote: > On 03/20/17 at 10:14am, Dave Young wrote: >> On 03/17/17 at 01:32pm, Matt Fleming wrote: >> > On Fri, 17 Mar, at 10:09:51AM, Dave Young wrote: >> > > >> > > Matt, I think it should be fine although I think the md type checking in >> > > efi_mem_desc_l

Re: [PATCH v2 7/9] gpio: 104-idi-48: make use of raw_spinlock variants

2017-03-22 Thread Julia Cartwright
On Wed, Mar 22, 2017 at 08:44:14AM -0400, William Breathitt Gray wrote: > On Tue, Mar 21, 2017 at 05:43:07PM -0500, Julia Cartwright wrote: > >The 104-idi-48 gpio driver currently implements an irq_chip for handling > >interrupts; due to how irq_chip handling is done, it's necessary for the > >irq_

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

2017-03-22 Thread Steven Rostedt
On Wed, 22 Mar 2017 08:43:50 + Lionel DEBIEVE wrote: > Just to agree with Thomas. > > Do you want me to resend the patch without RT tag? > Yes please. And hopefully it will be picked up in mainline. -- Steve

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

2017-03-22 Thread Jose Abreu
Hi Neil, On 21-03-2017 15:12, 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 Looks fine, I'm assuming you test this on your plat

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:08 PM, Jose Abreu wrote: > Hi Neil, > > > On 21-03-2017 15:12, 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

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

2017-03-22 Thread matthew . gerlach
On Tue, 21 Mar 2017, Anatolij Gustschin wrote: Hi Matthew, Hi Anatolij, On Fri, 10 Mar 2017 11:40:25 -0800 matthew.gerl...@linux.intel.com matthew.gerl...@linux.intel.com wrote: ... +int alt_pr_unregister(struct device *dev) +{ + dev_dbg(dev, "%s\n", __func__); + + fpga_mgr_u

[RESEND v1] UBI: add debugfs file for tracking PEB state

2017-03-22 Thread Zach Brown
From: Ben Shelton Add a file under debugfs to allow easy access to the erase count for each physical erase block on an UBI device. This is useful when debugging data integrity issues with UBIFS on NAND flash devices. Signed-off-by: Ben Shelton Signed-off-by: Zach Brown --- drivers/mtd/ubi/de

[PATCH] kasan: report only the first error

2017-03-22 Thread Andrey Ryabinin
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 will print bogus alloc/free stacktraces. * Reports after the fi

Re: [v3 PATCH 4/4] powernv: Recover correct PACA on wakeup from a stop on P9 DD1

2017-03-22 Thread Nicholas Piggin
On Wed, 22 Mar 2017 20:34:17 +0530 "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > POWER9 DD1.0 hardware has an issue due to which the SPRs of a thread > waking up from stop 0,1,2 with ESL=1 can endup being misplaced in the > core. Thus the HSPRG0 of a thread waking up from can conta

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

2017-03-22 Thread Steven Rostedt
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_atomic(): 1, irqs_disabled(): 128, pid: 307, name: pulseaudio

Re: [PATCH 0/5] fujitsu-laptop: platform device code cleanup

2017-03-22 Thread Darren Hart
On Sat, Mar 18, 2017 at 10:10:35PM +1030, Jonathan Woithe wrote: > Apologies for the delay in reviewing this series: I've had a busy few days. > > On Tue, Mar 14, 2017 at 11:26:26AM +0100, Micha?? K??pie?? wrote: > > This series removes backlight-related sysfs attributes from the platform > > devi

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

2017-03-22 Thread Leo Yan
On Wed, Mar 22, 2017 at 02:07:47PM +, Sudeep Holla wrote: > On 22/03/17 12:54, Mike Leach wrote: > > On 21 March 2017 at 15:39, Sudeep Holla > > wrote: > > > [...] > > > I disagree with this approach. One of the main usefulness of such > > self hosted debug featu

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

2017-03-22 Thread Marc Zyngier
[Sorry, sent too quickly] On 22/03/17 15:41, Daniel Lezcano wrote: > On Mon, Mar 20, 2017 at 05:48:17PM +, Marc Zyngier wrote: >> We're currently stuck with DT when it comes to handling errata, which >> is pretty restrictive. In order to make things more flexible, let's >> introduce an infrast

Re: [PATCH 12/15] i2c: core: Add new i2c_acpi_new_device helper function

2017-03-22 Thread Hans de Goede
Hi, On 17-03-17 18:37, Andy Shevchenko wrote: On Fri, 2017-03-17 at 10:55 +0100, Hans de Goede wrote: By default the i2c subsys creates an i2c-client for the first I2cSerialBus resource of an acpi_device, but some acpi_devices have multiple I2cSerialBus resources and the driver may need access

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