[PATCH] sched/deadline: fix runtime accounting in documentation

2017-10-13 Thread Claudio Scordino
Signed-off-by: Claudio Scordino Signed-off-by: Luca Abeni --- Documentation/scheduler/sched-deadline.txt | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/scheduler/sched-deadline.txt b/Documentation/scheduler/sched-deadline.txt index e89e36e..79f40c

Re: [PATCH 2/2] mfd: Add Spreadtrum SC27xx series PMICs driver

2017-10-13 Thread Lee Jones
On Fri, 13 Oct 2017, Baolin Wang wrote: > On 13 October 2017 at 17:26, Lee Jones wrote: > > On Wed, 11 Oct 2017, Baolin Wang wrote: > > > >> This patch adds support for Spreadtrum SC27xx series PMIC MFD core, and It > >> provides communication through the SPI interfaces. The SC27xx series PMICs >

Re: [PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread Mark Brown
On Fri, Oct 13, 2017 at 06:01:15PM +0800, Jeffy Chen wrote: > Currently we are suspending the spi master in it's ->suspend callback, > which is racy as some other drivers may still want to transmit messages > on the bus(e.g. spi based pwm backlight). I'm missing patch 2/2. signature.asc Descript

linux-next: manual merge of the rdma tree with the FIXME tree

2017-10-13 Thread Mark Brown
Hi Doug, Today's linux-next merge of the rdma tree got a conflict in: drivers/net/ethernet/mellanox/mlx4/catas.c between commit: d2a0012e7632a5 ("drivers: net: mlx4: use setup_timer() helper.") from the net-next tree and commit: 55c0fcc3de4605 ("net/mlx4_core: Convert timers to use time

Re: Does perf-annotate work correctly?

2017-10-13 Thread Du, Changbin
Hi Jiri, Sorry, missed you (but get_maintainer.pl doesn't list you). Here is ealier email. https://lkml.org/lkml/2017/9/12/158 Do you think if this is a real issue? btw, is their a dedicated mailist for perf? Thanks. On Wed, Sep 13, 2017 at 05:14:09PM +0800, Du, Changbin wrote: > > Here is ano

Re: [PATCH] PM / QoS: Drop PM_QOS_FLAG_REMOTE_WAKEUP

2017-10-13 Thread Mika Westerberg
On Fri, Oct 13, 2017 at 02:35:12AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The PM QoS flag PM_QOS_FLAG_REMOTE_WAKEUP is not used consistently > and the vast majority of code simply assumes that remote wakeup > should be enabled for devices in runtime suspend if they can > ge

Re: [Part2 PATCH v5.1 12.7/31] crypto: ccp: Implement SEV_PEK_CSR ioctl command

2017-10-13 Thread Borislav Petkov
On Thu, Oct 12, 2017 at 11:13:44PM -0500, Brijesh Singh wrote: > As per the spec, its perfectly legal to pass input.address = 0x0 and > input.length = 0x0. If userspace wants to query CSR length then it will > fill all the fields with. In response, FW will return error > (LENGTH_TO_SMALL) and input

Re: [PATCH] staging: rtsx: Add support for RTS5260

2017-10-13 Thread Greg KH
On Fri, Oct 13, 2017 at 11:11:15AM +0100, Lee Jones wrote: > On Fri, 13 Oct 2017, Greg KH wrote: > > > On Fri, Oct 13, 2017 at 10:54:22AM +0100, Lee Jones wrote: > > > On Fri, 13 Oct 2017, Greg KH wrote: > > > > > > > On Fri, Oct 13, 2017 at 04:50:35PM +0800, rui_f...@realsil.com.cn wrote: > > >

[RESEND PATCH] perf ftrace: Add -O option to set trace option

2017-10-13 Thread changbin . du
From: Changbin Du There are some trace options to control what gets printed in the trace output or manipulate the tracers. This patch add a commandline option to set it. Example: perf ftrace -t function -O noprint-parent --trace-funcs "__kmalloc" -a Xorg-1874 [002] 4107.182911

Re: [PATCH v4 02/12] [media] cxd2880-spi: Add support for CXD2880 SPI interface

2017-10-13 Thread Honza Petrouš
Hi Takiguchi, >> If I understand it right, it uses SPI bus also for passing transport stream >> to the host system (also having some pid piltering inside!), isn't it? >> It would be interesting to know what is the max throughput of the CXD's SPI? > > Yes, max clock rate of spi is written in sony-c

Re: [PATCH v2 7/9] usb: host: modify description for MTK xHCI config

2017-10-13 Thread Mathias Nyman
On 13.10.2017 11:26, Chunfeng Yun wrote: Due to all MediaTek SoCs with xHCI host controller use this driver, remove limitation for specific SoCs Signed-off-by: Chunfeng Yun --- xHCI parts of series look good to me, If Rob Herring agrees with the dt changes I can send it forward -Mathias

答复: [PATCH] staging: rtsx: Add support for RTS5260

2017-10-13 Thread 冯锐
Loop Wei Wang > On Fri, Oct 13, 2017 at 11:11:15AM +0100, Lee Jones wrote: > > On Fri, 13 Oct 2017, Greg KH wrote: > > > > > On Fri, Oct 13, 2017 at 10:54:22AM +0100, Lee Jones wrote: > > > > On Fri, 13 Oct 2017, Greg KH wrote: > > > > > > > > > On Fri, Oct 13, 2017 at 04:50:35PM +0800, rui_f...@r

Re: [PATCH 3/7] PCI: Distribute available buses to hotplug capable PCIe downstream ports

2017-10-13 Thread Mika Westerberg
On Thu, Oct 12, 2017 at 01:32:23PM -0500, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 03:47:03PM +0300, Mika Westerberg wrote: > > On Wed, Oct 11, 2017 at 06:32:43PM -0500, Bjorn Helgaas wrote: > > > On Tue, Sep 26, 2017 at 05:17:16PM +0300, Mika Westerberg wrote: > > > > System BIOS sometimes a

Re: [PATCH] sched/deadline: Don't use dubious signed bitfields

2017-10-13 Thread Dan Carpenter
On Fri, Oct 13, 2017 at 09:36:06AM +0200, Luca Abeni wrote: > Hi, > > On Fri, 13 Oct 2017 10:01:22 +0300 > Dan Carpenter wrote: > > > It doesn't cause a run-time bug, but these bitfields should be unsigned. > > When it's signed ->dl_throttled is set to either 0 or -1, instead of > > 0 and 1 as e

Re: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-13 Thread Pali Rohár
On Friday 13 October 2017 11:43:14 Greg KH wrote: > I understand the goal here of getting this to all work properly, but > note that this is a different type of an operating system, and for some > things, maybe we just do not allow direct userspace access for the > obvious reasons (security, mainta

[RESEND PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread Jeffy Chen
Currently we are suspending the spi master in it's ->suspend callback, which is racy as some other drivers may still want to transmit messages on the bus(e.g. spi based pwm backlight). Convert to late and early system PM callbacks to avoid the race. Signed-off-by: Jeffy Chen --- drivers/spi/sp

[RESEND PATCH 0/2] rockchip: kevin: Enable edp display

2017-10-13 Thread Jeffy Chen
Make edp display works on chromebook kevin. Jeffy Chen (2): spi: rockchip: Convert to late and early system PM callbacks arm64: dts: rockchip: Enable edp disaplay on kevin arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399-gr

[RESEND PATCH 2/2] arm64: dts: rockchip: Enable edp disaplay on kevin

2017-10-13 Thread Jeffy Chen
Add edp panel and enable related nodes on kevin. Signed-off-by: Jeffy Chen --- arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 29 +++ arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 + 2 files changed, 45 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH 0/7] ARM: dts: imx6ul: Update dts files for the Ka-Ro TXUL module series

2017-10-13 Thread Lothar Waßmann
This patch set brings the Ka-Ro electronics GmbH TXUL board support up to date and adds support for the TXUL modules on the MB7 baseboard.

[PATCH 3/7] ARM: dts: imx6ul: add support for TXUL-8013

2017-10-13 Thread Lothar Waßmann
The TXUL-8013 is a Computer On Module manufactured by Ka-Ro electronics GmbH with the following characteristics: ProcessorFreescale i.MX 6ULL MCIMX6Y2, 528 MHz RAM 256MB 16-bit DDR3 SDRAM ROM 4GB eMMC Power supply Single 3.3 to 5V Size 26mm SO-DIMM Temp.

[PATCH 1/7] ARM: dts: imx6ul-txul: enable I2C bus recovery

2017-10-13 Thread Lothar Waßmann
Define the required properties to enable I2C bus recovery supported by the I2C subsystem. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi b/arch/arm/boot

[PATCH 6/7] ARM: dts: imx6ul: add support for TXUL modules on TXUL-Mainboard

2017-10-13 Thread Lothar Waßmann
Add .dts files for the TXUL module variants TXUL-5010, TXUL-5011, TXUL-8013 on the TXUL-Mainboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile| 6 +- arch/arm/boot/dts/imx6ul-tx6ul-mainboard.dts | 271 -- arch/arm/boot/dts/imx6u

[PATCH 7/7] ARM: dts: imx6ul-txul: add support for TXUL modules on MB7 baseboard

2017-10-13 Thread Lothar Waßmann
Add a dtsi file for TXUL modules on the MB7 baseboard and use it to create dts files for the various TXUL module variants on the MB7 baseboard. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/Makefile | 5 +- arch/arm/boot/dts/imx6ul-txul-5010-mb7.dts | 48

[PATCH 4/7] ARM: dts: imx6ul-txul: use panel-simple driver for LCD

2017-10-13 Thread Lothar Waßmann
Convert the TXUL board support to use the panel-simple driver. The now obsolete 'display-timings' node is kept for compatibility with U-Boot, which derives its display configuration therefrom. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 263 ++-

[PATCH 2/7] ARM: dts: imx6ul-txul: specify ethernet phy reset post-delay

2017-10-13 Thread Lothar Waßmann
Under certain circumstances the ethernet PHY cannot be detected on Ka-Ro electronics TXUL modules. Using a phy-reset-post-delay of > 5ms alleviates this problem. Specify a value of 10ms to be on the safe side. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 1 + 1 file ch

[PATCH 5/7] ARM: dts: imx6ul-txul: use interrupts-extended property

2017-10-13 Thread Lothar Waßmann
Use the 'interrupts-extended' property instead of pairs of 'interrupt-parent', 'interrupts' properties. Signed-off-by: Lothar Waßmann --- arch/arm/boot/dts/imx6ul-tx6ul.dtsi | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/imx6ul-tx6ul.dtsi b/ar

Re: Lowering the log level in watchdog_dev_register when err==-EBUSY

2017-10-13 Thread Radu Rendec
On Thu, 2017-10-12 at 12:54 -0700, Guenter Roeck wrote: > On Thu, Oct 12, 2017 at 07:15:59PM +0100, Radu Rendec wrote: > > Thanks for the suggestion! That makes sense. I will start working on > > converting i6300esb and submit a patch in a few days. > > > > By the way, I don't have the hardware. I

Re: [PATCH 1/2] spi: rockchip: Convert to late and early system PM callbacks

2017-10-13 Thread jeffy
Hi Mark, On 10/13/2017 06:17 PM, Mark Brown wrote: On Fri, Oct 13, 2017 at 06:01:15PM +0800, Jeffy Chen wrote: Currently we are suspending the spi master in it's ->suspend callback, which is racy as some other drivers may still want to transmit messages on the bus(e.g. spi based pwm backlight).

Re: [RFC 2/2] KVM: add virtio-pmem driver

2017-10-13 Thread Pankaj Gupta
> > On Thu, Oct 12, 2017 at 09:20:26PM +0530, Pankaj Gupta wrote: > > This patch adds virtio-pmem driver for KVM guest. > > Guest reads the persistent memory range information > > over virtio bus from Qemu and reserves the range > > as persistent memory. Guest also allocates a block > >

Re: [PATCH] xhci: Set DMA parameters appropriately

2017-10-13 Thread Robin Murphy
Hi Marek, On 13/10/17 09:15, Marek Szyprowski wrote: > Hi Robin, > > On 2017-10-11 15:56, Robin Murphy wrote: >> xHCI requires that data buffers do not cross 64KB boundaries (and are >> thus at most 64KB long as well) - whilst xhci_queue_{bulk,isoc}_tx() >> already split their input buffers into

[PATCH v2 1/4] dt-bindings: media: Binding document for Qualcomm Camera Control Interface driver

2017-10-13 Thread Todor Tomov
Add DT binding document for Qualcomm Camera Control Interface driver CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org Signed-off-by: Todor Tomov --- .../devicetree/bindings/i2c/i2c-qcom-cci.txt | 46 ++ 1 file changed, 46 insertions(+) create mode 1006

[PATCH v2 0/4] Qualcomm Camera Control Interface driver

2017-10-13 Thread Todor Tomov
This patchset adds basic support for the Qualcomm Camera Control Interface (CCI) controller found on Qualcomm MSM8916/APQ8016 and MSM8996/APQ8996 SoC. CCI has one I2C bus on MSM8916/APQ8016 and two I2C busses on MSM8996/APQ8096. The present driver supports the first I2C bus only. The driver is im

[PATCH] ALSA: hda - silence uninitialized variable warning in activate_amp_in()

2017-10-13 Thread Dan Carpenter
If snd_hda_get_conn_list() fails then "conn" isn't initialized. Signed-off-by: Dan Carpenter diff --git a/sound/pci/hda/hda_generic.c b/sound/pci/hda/hda_generic.c index 28e265a88383..5cc65093d941 100644 --- a/sound/pci/hda/hda_generic.c +++ b/sound/pci/hda/hda_generic.c @@ -795,6 +795,8 @@ stat

[PATCH v2 3/4] MAINTAINERS: Add Qualcomm Camera Control Interface driver

2017-10-13 Thread Todor Tomov
Add an entry for Qualcomm Camera Control Interface driver. Signed-off-by: Todor Tomov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2d3d750..10d78cb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11171,6 +11171,13 @@ W: http://wir

[PATCH v2 4/4] arm64: dts: qcom: Add Camera Control Interface support

2017-10-13 Thread Todor Tomov
This commit adds the CCI node for the CCI controller that resides on the Qualcomm MSM8916 and MSM8996 platforms. CC: Andy Gross CC: Rob Herring CC: Mark Rutland CC: devicet...@vger.kernel.org CC: linux-...@vger.kernel.org CC: linux-arm-ker...@lists.infradead.org Signed-off-by: Todor Tomov ---

[PATCH v2 2/4] i2c: Add Qualcomm Camera Control Interface driver

2017-10-13 Thread Todor Tomov
This commit adds basic I2C bus support for the Camera Control Interface (CCI) controller found on the Qualcomm SoC processors. CCI versions supported: - 1.0.8 - found on MSM8916/APQ8016 - support for the only CCI I2C bus; - 1.4.0 - found on MSM8996/APQ8096 - support for first (out of two) I2C bu

Re: [PATCH 2/2] Bluetooth: BT_HCIUART now depends on SERIAL_DEV_BUS

2017-10-13 Thread Hans de Goede
Hi, On 13-10-17 12:09, Johan Hovold wrote: On Thu, Oct 12, 2017 at 10:40:29AM +0200, Marcel Holtmann wrote: Hi Hans, It is no longer possible to build BT_HCIUART into the kernel when SERIAL_DEV_BUS is a loadable module, even if none of the SERIAL_DEV_BUS based implementations are selected: dr

Congratulations!

2017-10-13 Thread Oxfam Team
You won a donation funds of one million united states dollar. get back for more details

Re: [PATCH v5 16/16] perf util: use correct IP mapping to find srcline for hist entry

2017-10-13 Thread Jiri Olsa
On Thu, Oct 12, 2017 at 08:52:18PM +0200, Jiri Olsa wrote: > On Thu, Oct 12, 2017 at 08:22:58PM +0200, Milian Wolff wrote: > > SNIP > > > > > return SRCLINE_UNKNOWN; > > > > > > > > - return get_srcline(map->dso, map__rip_2objdump(map, he->ip), > > > > + return get_sr

Re: [PATCH v2 01/10] KVM: arm/arm64: vgic-its: fix return value for restore

2017-10-13 Thread Christoffer Dall
On Wed, Sep 27, 2017 at 03:28:31PM +0200, Eric Auger wrote: > From: wanghaibin > > This patch fix the migrate restore tables failure. > > The same scene, at the destination, the restore tables > interface traversal guest memory, and check the dte/ite > is valid or not. If all dtes/ites are inva

Re: [f2fs-dev] [PATCH] f2fs: update dirty status for CURSEG as well

2017-10-13 Thread Chao Yu
Hi Yunlong, On 2017/10/11 21:25, Yunlong Song wrote: > Without this patch, it will cause all the free segments using up in some > corner case. For example, there are 100 segments, and 20 of them are > reserved for ovp. If 79 segments are full of data, segment 80 becomes > CURSEG segment, write 512

Re: [PATCH v3 0/7] Support PPTT for ARM64

2017-10-13 Thread John Garry
On 12/10/2017 20:48, Jeremy Linton wrote: ACPI 6.2 adds the Processor Properties Topology Table (PPTT), which is used to describe the processor and cache topology. Ideally it is used to extend/override information provided by the hardware, but right now ARM64 is entirely dependent on firmware pro

Re: [f2fs-dev] [PATCH] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-13 Thread Chao Yu
On 2017/10/11 21:51, Yunlong Song wrote: > This can help us to debug on some corner case. > > Signed-off-by: Yunlong Song > --- > fs/f2fs/gc.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c > index 197ebf4..960503e 100644 > --- a/fs/f2f

Re: [PATCH] kbuild: shrink Makefile cache when it exceeds 1000 lines

2017-10-13 Thread Masahiro Yamada
2017-10-13 2:13 GMT+09:00 Doug Anderson : > Hi, > > On Thu, Oct 12, 2017 at 2:29 AM, Masahiro Yamada > wrote: >> The cache files are only cleaned away by "make clean". If you continue >> incremental builds, the cache files will grow up little by little. >> It is not a big deal in general use case

Re: NMI watchdog dump does not print on hard lockup

2017-10-13 Thread Petr Mladek
On Thu 2017-10-12 12:16:58, Steven Rostedt wrote: > static void lock_up_cpu(void *data) > { > unsigned long flags; > raw_spin_lock_irqsave(&global_trace.start_lock, flags); > raw_spin_lock(&global_trace.start_lock); > raw_spin_unlock(&global_trace.start_lock); > raw_sp

Re: [PATCH] spi-nor: intel-spi: Fix Kconfig dependency to LPC_ICH

2017-10-13 Thread Arnd Bergmann
On Wed, Oct 11, 2017 at 10:03 AM, Cyrille Pitchen wrote: > Le 25/08/2017 à 10:12, Bin Meng a écrit : >> The Intel SPI-NOR driver is dependent on LPC_ICH to get the platform >> data. Select it in the Kconfig. >> >> Signed-off-by: Bin Meng > > Applied to the spi-nor/next branch of l2-mtd This caus

Re: [f2fs-dev] [PATCH] f2fs: update dirty status for CURSEG as well

2017-10-13 Thread Yunlong Song
Correct, I will update the patch. On 2017/10/13 19:08, Chao Yu wrote: Hi Yunlong, On 2017/10/11 21:25, Yunlong Song wrote: Without this patch, it will cause all the free segments using up in some corner case. For example, there are 100 segments, and 20 of them are reserved for ovp. If 79 segme

[PATCH V11 1/4] mmc: core: Add parameter use_blk_mq

2017-10-13 Thread Adrian Hunter
Until mmc has blk-mq support fully implemented and tested, add a parameter use_blk_mq, default to false unless config option MMC_MQ_DEFAULT is selected. Signed-off-by: Adrian Hunter --- drivers/mmc/Kconfig | 11 +++ drivers/mmc/core/core.c | 7 +++ drivers/mmc/core/core.h |

[PATCH V11 0/4] mmc: Add Command Queue support

2017-10-13 Thread Adrian Hunter
Hi Here is V11 of the hardware command queue patches without the software command queue patches, now using blk-mq and now with blk-mq support for non-CQE I/O. HW CMDQ offers 25% - 50% better random multi-threaded I/O. I see a slight 2% drop in sequential read speed but no change to sequential wr

[PATCH V11 4/4] mmc: sdhci-pci: Add CQHCI support for Intel GLK

2017-10-13 Thread Adrian Hunter
Add CQHCI initialization and implement CQHCI operations for Intel GLK. Signed-off-by: Adrian Hunter --- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-pci-core.c | 155 +- 2 files changed, 155 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH V11 3/4] mmc: cqhci: support for command queue enabled host

2017-10-13 Thread Adrian Hunter
From: Venkat Gopalakrishnan This patch adds CMDQ support for command-queue compatible hosts. Command queue is added in eMMC-5.1 specification. This enables the controller to process upto 32 requests at a time. Adrian Hunter contributed renaming to cqhci, recovery, suspend and resume, cqhci_off,

[PATCH V11 2/4] mmc: block: Add CQE and blk-mq support

2017-10-13 Thread Adrian Hunter
Add CQE support to the block driver, including: - optionally using DCMD for flush requests - "manually" issuing discard requests - issuing read / write requests to the CQE - supporting block-layer timeouts - handling recovery - supporting re-tuning CQE offers 25% - 50% bett

Re: [f2fs-dev] [PATCH] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-13 Thread Yunlong Song
Yep, both are OK, since I do not care it is foreground or background. Here it just needs to do gc. On 2017/10/13 19:09, Chao Yu wrote: On 2017/10/11 21:51, Yunlong Song wrote: This can help us to debug on some corner case. Signed-off-by: Yunlong Song --- fs/f2fs/gc.c | 6 +- 1 file ch

[PATCH] ARM: sun8i: r40: add watchdog device node

2017-10-13 Thread Icenowy Zheng
The R40 SoC has a watchdog like the one on A20, in the timer memory zone (which is also the same on A20). Add the device tree node for it. Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/sun8i-r40.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi

[PATCH v2] kbuild: shrink .cache.mk when it exceeds 1000 lines

2017-10-13 Thread Masahiro Yamada
The cache files are only cleaned away by "make clean". If you continue incremental builds, the cache files will grow up little by little. It is not a big deal in general use cases because compiler flags do not change quite often. However, if you do build-test for various architectures, compilers,

[PATCH] thunderbolt: Fix some right shifting to zero bugs

2017-10-13 Thread Dan Carpenter
The problematic code looks like this: res_seq = res_hdr->xd_hdr.length_sn & TB_XDOMAIN_SN_MASK; res_seq >>= TB_XDOMAIN_SN_SHIFT; TB_XDOMAIN_SN_SHIFT is 27, and right shifting a u8 27 bits is always going to result in zero. The fix is to declare these variables as u32. Fixes: d1f

Re: ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-10-13 Thread Kalle Valo
Brian Norris wrote: > For devices where the FW supports WoWLAN but user-space has not > configured it, we don't do any PCI-specific suspend/resume operations, > because mac80211 doesn't call drv_suspend() when !wowlan. This has > particularly bad effects for some platforms, because we don't stop

Re: [PATCH v9 13/29] x86/insn-eval: Add utility functions to get segment selector

2017-10-13 Thread Borislav Petkov
On Thu, Oct 12, 2017 at 06:08:17PM -0700, Ricardo Neri wrote: > In my opinion it would be better to have all the checks in a single place. > This > makes the code easier to read that having this special case directly > in resolve_default_seg(). > ... > Rather than checking for null insn in resolve

hard lock-up with 4.14 git

2017-10-13 Thread Prakash Punnoor
Hi, after some use (eg. compiling packages) the machine locks up hard. Magic SysRq doesn't work. I had trouble bisecting the offending commit. This is my third try. And it points to 94b1b03b519b81c494900cb112aa00ed205cc2d9 "x86/mm: Rework lazy TLB mode and TLB freshness tracking". Does it make s

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-13 Thread Michael Ellerman
Vlastimil Babka writes: > On 10/11/2017 08:51 AM, Michal Hocko wrote: >> On Wed 11-10-17 13:37:50, Michael Ellerman wrote: >>> Michal Hocko writes: On Tue 10-10-17 23:05:08, Michael Ellerman wrote: > Michal Hocko writes: >> From: Michal Hocko >> >> Memory offlining can fail

Re: [PATCH v2 02/10] KVM: arm/arm64: vgic-its: Always allow clearing GITS_CREADR/CWRITER

2017-10-13 Thread Christoffer Dall
On Fri, Oct 06, 2017 at 05:29:02PM +0200, Auger Eric wrote: > Hi, > > On 06/10/2017 16:37, Andre Przywara wrote: > > Hi, > > > > On 27/09/17 14:28, Eric Auger wrote: > >> If the GITS_CBASER Size field is 0, which can correspond to a > >> reset value, the userspace fails to set the GITS_CREADR/CWR

Re: hard lock-up with 4.14 git

2017-10-13 Thread Prakash Punnoor
On 13.10.2017 13:39, Prakash Punnoor wrote: > Hi, > > after some use (eg. compiling packages) the machine locks up hard. Magic > SysRq doesn't work. > > I had trouble bisecting the offending commit. This is my third try. And > it points to 94b1b03b519b81c494900cb112aa00ed205cc2d9 "x86/mm: Rework >

Re: [PATCH] thunderbolt: Fix some right shifting to zero bugs

2017-10-13 Thread Mika Westerberg
On Fri, Oct 13, 2017 at 02:29:59PM +0300, Dan Carpenter wrote: > The problematic code looks like this: > > res_seq = res_hdr->xd_hdr.length_sn & TB_XDOMAIN_SN_MASK; > res_seq >>= TB_XDOMAIN_SN_SHIFT; > > TB_XDOMAIN_SN_SHIFT is 27, and right shifting a u8 27 bits is always > going to r

[PATCH] staging: rtl8723bs: hide "nolinked power save" info when not debugging

2017-10-13 Thread Icenowy Zheng
Currently the rtl8723bs driver will print "nolinked power save enter" and "nolinked power save leave" per minute if it's not connected to any network. These messages are meaningless and annoying to regular users. Hide them when it's not debugging. Signed-off-by: Icenowy Zheng --- drivers/stagi

Re: [PATCH v2 02/10] KVM: arm/arm64: vgic-its: Always allow clearing GITS_CREADR/CWRITER

2017-10-13 Thread Auger Eric
Hi Christoffer, On 13/10/2017 13:44, Christoffer Dall wrote: > On Fri, Oct 06, 2017 at 05:29:02PM +0200, Auger Eric wrote: >> Hi, >> >> On 06/10/2017 16:37, Andre Przywara wrote: >>> Hi, >>> >>> On 27/09/17 14:28, Eric Auger wrote: If the GITS_CBASER Size field is 0, which can correspond to a

Re: hard lock-up with 4.14 git

2017-10-13 Thread Markus Trippelsdorf
On 2017.10.13 at 13:39 +0200, Prakash Punnoor wrote: > after some use (eg. compiling packages) the machine locks up hard. Magic > SysRq doesn't work. > > I had trouble bisecting the offending commit. This is my third try. And > it points to 94b1b03b519b81c494900cb112aa00ed205cc2d9 "x86/mm: Rework

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-10-13 Thread Michal Hocko
On Fri 13-10-17 22:42:46, Michael Ellerman wrote: > Vlastimil Babka writes: > > On 10/11/2017 08:51 AM, Michal Hocko wrote: > >> On Wed 11-10-17 13:37:50, Michael Ellerman wrote: > >>> Michal Hocko writes: > On Tue 10-10-17 23:05:08, Michael Ellerman wrote: > > Michal Hocko writes: > >>

[PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-13 Thread Michal Hocko
From: Michal Hocko Michael has noticed that the memory offline tries to migrate kernel code pages when doing echo 0 > /sys/devices/system/memory/memory0/online The current implementation will fail the operation after several failed page migration attempts but we shouldn't even attempt to migrat

[PATCH 2/2] mm, page_alloc: fail has_unmovable_pages when seeing reserved pages

2017-10-13 Thread Michal Hocko
From: Michal Hocko Reserved pages should be completely ignored by the core mm because they have a special meaning for their owners. has_unmovable_pages doesn't check those so we rely on other tests (reference count, or PageLRU) to fail on such pages. Althought this happens to work it is safer to

[PATCH] tracing: hide unused functions

2017-10-13 Thread Arnd Bergmann
After trace_selftest_startup_sched_switch is removed, trace_test_buffer() is now only used inside of CONFIG_FUNCTION_TRACER, leading to this warning: kernel/trace/trace_selftest.c:62:12: error: 'trace_test_buffer' defined but not used [-Werror=unused-function] The same is true for a few other fu

Re: [PATCH] drm/tilcdc: Remove redundant OF_DETACHED flag setting

2017-10-13 Thread Jyri Sarha
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 10/13/17 10:47, Stephen Boyd wrote: > of_fdt_unflatten_tree() already sets the flag on this node to > OF_DETACHED, because of_fdt_unflatten_tree() calls > __unflatte

[PATCH] MAINTAINERS: update caam crypto driver maintainers list

2017-10-13 Thread Horia Geantă
Dan steps down as caam maintainer, being replaced by Aymen. Signed-off-by: Horia Geantă --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 92df4e80a170..bb3016c2c342 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5457,7 +5457,7 @@

Re: [PATCH 2/2] mm, page_alloc: fail has_unmovable_pages when seeing reserved pages

2017-10-13 Thread Vlastimil Babka
On 10/13/2017 02:00 PM, Michal Hocko wrote: > From: Michal Hocko > > Reserved pages should be completely ignored by the core mm because they > have a special meaning for their owners. has_unmovable_pages doesn't > check those so we rely on other tests (reference count, or PageLRU) to > fail on su

[PATCH 1/2] cfg80211: don't print log output for building shipped-certs

2017-10-13 Thread Arnd Bergmann
Building an allmodconfig kernel with 'make -s' now prints a single line: GEN net/wireless/shipped-certs.c Using '$(kecho)' here will skip the output with 'make -s' but otherwise keeps printing it, which is consistent with how we handle all the other output. Fixes: 90a53e4432b1 ("cfg80211:

[PATCH 2/2] cfg80211: fix CFG80211_EXTRA_REGDB_KEYDIR typo

2017-10-13 Thread Arnd Bergmann
The missing CONFIG_ prefix means this macro is never defined, leading to a possible Kbuild warning: net/wireless/reg.c:666:20: error: 'load_keys_from_buffer' defined but not used [-Werror=unused-function] static void __init load_keys_from_buffer(const u8 *p, unsigned int buflen) When we use the

Re: [PATCH 1/4] ARM: dts: qcom: msm8974: Add Sony Xperia Z2 Tablet

2017-10-13 Thread Linus Walleij
On Wed, Oct 4, 2017 at 8:58 PM, Bjorn Andersson wrote: > From: Bjorn Andersson > > This adds a basic DTS file for the Sony Xperia Z2 Tablet, containing > definitions for regulators, eMMC/SD-card, USB, WiFi, Touchscreen, > charger, backlight, coincell and buttons. > > Signed-off-by: Bjorn Anderss

Re: [PATCH V8 00/14] mmc: Add Command Queue support

2017-10-13 Thread Adrian Hunter
On 11/10/17 16:58, Ulf Hansson wrote: > On 11 October 2017 at 14:58, Adrian Hunter wrote: >> On 11/10/17 15:13, Ulf Hansson wrote: >>> On 10 October 2017 at 15:31, Adrian Hunter wrote: On 10/10/17 16:08, Ulf Hansson wrote: > [...] > > > I have also run some test on my

[PATCH] xfs: move two more RT specific functions into CONFIG_XFS_RT

2017-10-13 Thread Arnd Bergmann
The last cleanup introduced two harmless warnings: fs/xfs/xfs_fsmap.c:480:1: warning: '__xfs_getfsmap_rtdev' defined but not used fs/xfs/xfs_fsmap.c:372:1: warning: 'xfs_getfsmap_rtdev_rtbitmap_helper' defined but not used This moves those two functions as well. Fixes: bb9c2e543325 ("xfs: move

Re: [PATCH 2/2] mm, page_alloc: fail has_unmovable_pages when seeing reserved pages

2017-10-13 Thread Michal Hocko
On Fri 13-10-17 14:04:08, Vlastimil Babka wrote: > On 10/13/2017 02:00 PM, Michal Hocko wrote: > > From: Michal Hocko > > > > Reserved pages should be completely ignored by the core mm because they > > have a special meaning for their owners. has_unmovable_pages doesn't > > check those so we rely

Re: [PATCH] btrfs: tree-checker: use %zu format string for size_t

2017-10-13 Thread David Sterba
On Fri, Oct 13, 2017 at 11:27:35AM +0200, Arnd Bergmann wrote: > We now get a harmless compile-time on 32-bit architectures: > > fs/btrfs/tree-checker.c: In function 'check_extent_data_item': > fs/btrfs/tree-checker.c:189:70: error: format '%lu' expects argument of type > 'long unsigned int', but

Re: [PATCH] btrfs: Clean up unused variables in free-space-tree.c

2017-10-13 Thread David Sterba
On Thu, Oct 12, 2017 at 02:43:27PM -0700, Omar Sandoval wrote: > On Thu, Oct 12, 2017 at 10:40:42PM +0100, Christos Gkekas wrote: > > Remove variables 'start' and 'end', which are set but never used. > > Oops. > > Reviewed-by: Omar Sandoval Thanks, added to the queue.

Re: [PATCH 2/2] cfg80211: fix CFG80211_EXTRA_REGDB_KEYDIR typo

2017-10-13 Thread Johannes Berg
Thanks, both applied. johannes

[PATCH 1/2] [v2] regmap: avoid -Wint-in-bool-context warning

2017-10-13 Thread Arnd Bergmann
When we pass the result of a multiplication as the timeout or the delay, we can get a warning from gcc-7: drivers/mmc/host/bcm2835.c:596:149: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context] drivers/mfd/arizona-core.c:247:195: error: '*' in boolean context, sugges

[PATCHv2, RFC] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2017-10-13 Thread Kirill A. Shutemov
This patch addresses shortcoming in current boot process on machines that supports 5-level paging. If bootloader enables 64-bit mode with 4-level paging, we need to switch over to 5-level paging. The switching requires disabling paging. It works fine if kernel itself is loaded below 4G. If bootlo

Re: [f2fs-dev] [PATCH] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-13 Thread Chao Yu
On 2017/10/13 19:20, Yunlong Song wrote: > Yep, both are OK, since I do not care it is foreground or background. Here it > just needs to do gc. But you only set need_gc as true for foreground GC case. Thanks, > > On 2017/10/13 19:09, Chao Yu wrote: >> On 2017/10/11 21:51, Yunlong Song wrote: >

Re: [PATCH] ath10k: spectral: Simplify error checking

2017-10-13 Thread Kalle Valo
Christos Gkekas writes: > Variable val is unsigned so checking whether it is less than zero is > redundant. > > Signed-off-by: Christos Gkekas > --- > drivers/net/wireless/ath/ath10k/spectral.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/net/wireless/ath

[GIT PULL] Please pull powerpc/linux.git powerpc-4.14-5 tag

2017-10-13 Thread Michael Ellerman
Hi Linus, Please pull a few more powerpc fixes for 4.14: The following changes since commit 53ecde0b9126ff140abe3aefd7f0ec64d6fa36b0: powerpc/powernv: Increase memory block size to 1GB on radix (2017-10-06 15:50:45 +1100) are available in the git repository at: git://git.kernel.org/pub/sc

Re: powerpc/perf: Add ___GFP_NOWARN flag to alloc_pages_node()

2017-10-13 Thread Michael Ellerman
On Wed, 2017-10-11 at 12:57:39 UTC, Anju T Sudhakar wrote: > Stack trace output during a stress test: > [4.310049] Freeing initrd memory: 22592K > [4.310646] rtas_flash: no firmware flash support > [4.313341] cpuhp/64: page allocation failure: order:0, > mode:0x14480c0(GFP_KERNEL|__GF

Re: powerpc/perf: Fix for core/nest imc call trace on cpuhotplug

2017-10-13 Thread Michael Ellerman
On Wed, 2017-10-04 at 06:50:52 UTC, Anju T Sudhakar wrote: > Nest/core pmu units are enabled only when it is used. A reference count is > > maintained for the events which uses the nest/core pmu units. Currently in > > *_imc_counters_release function a WARN() is used for notification

Re: [V2] powerpc/perf: Fix IMC initialization crash

2017-10-13 Thread Michael Ellerman
On Fri, 2017-10-13 at 05:59:41 UTC, Anju T Sudhakar wrote: > Call trace observed with latest firmware, and upstream kernel. > > [ 14.499938] NIP [c00f318c] init_imc_pmu+0x8c/0xcf0 > [ 14.499973] LR [c00f33f8] init_imc_pmu+0x2f8/0xcf0 > [ 14.57] Call Trace: > [ 14.500027

Re: [PATCHv3 1/1] mmc: core: export emmc revision

2017-10-13 Thread Linus Walleij
On Thu, Oct 12, 2017 at 7:46 PM, Jin Qian wrote: > From: Jin Qian > > Expose emmc revision as part of device attributes. > > Signed-off-by: Jin Qian (...) > +MMC_DEV_ATTR(rev, "0x%x\n", card->ext_csd.rev); This will be 0x on ordinary MMC cards right? Have you tested it? Yours, Linus Wal

Re: [PATCH 4.13 0/2] 4.13.7-stable review

2017-10-13 Thread Guenter Roeck
On 10/12/2017 02:26 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.13.7 release. There are 2 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be mad

Re: [PATCH v2 1/5] bitops: Introduce assign_bit()

2017-10-13 Thread Linus Walleij
On Thu, Oct 12, 2017 at 12:40 PM, Lukas Wunner wrote: > A common idiom is to assign a value to a bit with: > > if (value) > set_bit(nr, addr); > else > clear_bit(nr, addr); > > Likewise common is the one-line expression variant: > > value ? set_bit(nr, addr) : clear_bi

[GIT PULL 00/58] LightNVM updates for 4.15

2017-10-13 Thread Matias Bjørling
Hi Jens, A couple of patches for 4.15. Javier has improved garbage collection, statistics, memory pool usage, and added support for single LUN configurations. He also made a lot of bug fixes and cleanup patches. Rakesh have been fixing up a lot of subsystem bugs with respect to loading and unloa

[GIT PULL 07/58] lightnvm: pblk: protect line bitmap while submitting meta io

2017-10-13 Thread Matias Bjørling
From: Rakesh Pandit It seems pblk_dealloc_page would race against pblk_alloc_pages for line bitmap for sector allocation.The chances are very low but might as well protect the bitmap properly. Signed-off-by: Rakesh Pandit Reviewed-by: Javier González Signed-off-by: Matias Bjørling --- driver

[GIT PULL 23/58] lightnvm: pblk: normalize ppa namings

2017-10-13 Thread Matias Bjørling
From: Javier González Normalize the way we name ppa variables to improve code readability. Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/lightnvm/pblk-core.c | 48 +++- 1 file changed, 25 insertions(+), 23 deletions(-) diff

[GIT PULL 26/58] lightnvm: pblk: refactor read path on GC

2017-10-13 Thread Matias Bjørling
From: Javier González Simplify the part of the garbage collector where data is read from the line being recycled and moved into an internal queue before being copied to the memory buffer. This allows to get rid of a dedicated function, which introduces an unnecessary dependency on the code. Sign

[GIT PULL 57/58] lightnvm: fail fast on passthrough commands

2017-10-13 Thread Matias Bjørling
From: Javier González Make LightNVM passhtrough commands fail fast. User space will then take care of re-submitting. Fixes: 84d4add793c6 ('lightnvm: add ioctls for vector I/Os') Signed-off-by: Javier González Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 2 -- 1 file chang

[GIT PULL 56/58] lightnvm: pblk: avoid being reported as hung on rated GC

2017-10-13 Thread Matias Bjørling
From: Javier González The amount of GC I/O on the write buffer is managed by the rate-limiter, which is calculated as a function of the number of available free blocks. When reaching the stable point, we risk having scheduled more I/Os for GC than are allowed on the write buffer. This would resul

[GIT PULL 58/58] lightnvm: implement generic path for sync I/O

2017-10-13 Thread Matias Bjørling
From: Javier González Implement a generic path for sending sync I/O on LightNVM. This allows to reuse the standard synchronous path trough blk_execute_rq(), instead of implementing a wait_for_completion on the target side (e.g., pblk). Signed-off-by: Javier González Signed-off-by: Matias Bjørli

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