Re: [PATCH 2/3] libnvdimm, pfn, dax: show supported dax/pfn region alignments in sysfs

2017-08-15 Thread kbuild test robot
-export-supported-page-size-alignments/20170815-105258 base: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git libnvdimm-for-next config: powerpc-allmodconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https

Re: [PATCH v2] ALSA: seq: 2nd attempt at fixing race creating a q

2017-08-15 Thread Takashi Iwai
On Mon, 14 Aug 2017 23:46:01 +0200, Daniel Mentz wrote: > > commit 4842e98f26dd80be3623c4714a244ba52ea096a8 ("ALSA: seq: Fix race at > creating a queue") attempted to fix a race reported by syzkaller. That > fix has been described as follows: > > " > When a sequencer queue is created in

Re: Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-15 Thread Jarkko Sakkinen
On Mon, Aug 14, 2017 at 08:03:05AM -0400, Mimi Zohar wrote: > On Mon, 2017-08-14 at 13:56 +0300, Jarkko Sakkinen wrote: > > > > > > I would like to see tpm_msleep() wrapper to replace current msleep() > > > > > usage across the subsystem before considering this. I.e. wrapper that > > > > >

Re: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-15 Thread Zhang Rui
On Wed, 2017-08-09 at 15:02 -0700, Markus Mayer wrote: > From: Brian Norris > > The AVS TMON core provides temperature readings, a pair of > configurable > high- and low-temperature threshold interrupts, and an emergency > over-temperature chip reset. The driver utilizes the first two to >

Re: Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-15 Thread Jarkko Sakkinen
On Mon, Aug 14, 2017 at 08:12:53AM -0400, Mimi Zohar wrote: > On Mon, 2017-08-14 at 13:56 +0300, Jarkko Sakkinen wrote: > > > > > Since the main concern about this change is breaking old systems that > > > > might potentially have other peripherals hanging off the LPC bus, can > > > > we define a

Re: [PATCH v2] msleep() delays - replace with usleep_range() in TPM 1.2/2.0 generic drivers

2017-08-15 Thread Jarkko Sakkinen
On Mon, Aug 14, 2017 at 07:09:16PM +0100, Hamza Attak wrote: > The patch simply replaces all msleep function calls with usleep_range calls > in the generic drivers. > > Tested with an Infineon TPM 1.2, using the generic tpm-tis module, for a > thousand PCR extends, we see results going from 1m57s

Re: [PATCH] tpm_tis: fix stall after iowrite*()s

2017-08-15 Thread Alexander Stein
On Monday 14 August 2017 17:53:47, Haris Okanovic wrote: > --- a/drivers/char/tpm/tpm_tis.c > +++ b/drivers/char/tpm/tpm_tis.c > @@ -52,6 +52,22 @@ static inline struct tpm_tis_tcg_phy > *to_tpm_tis_tcg_phy(struct tpm_tis_data *da return container_of(data, > struct tpm_tis_tcg_phy, priv); > } >

[PATCH v4 0/3] MAP_DIRECT and block-map sealed files

2017-08-15 Thread Dan Williams
Changes since v3 [1]: * Move from an fallocate(2) interface to a new mmap(2) flag and rename 'immutable' to 'sealed'. * Do not record the sealed state in permanent metadata it is now purely a temporary state for as long as a MAP_DIRECT vma is referencing the inode (Christoph) * Drop the

[PATCH v4 1/3] fs, xfs: introduce S_IOMAP_SEALED

2017-08-15 Thread Dan Williams
When a filesystem sees this flag set it will not allow changes to the file-offset to physical-block-offset relationship of any extent in the file. The extent of the extents covered by the global S_IOMAP_SEALED is filesystem specific. In other words it is similar to the inode-wide

[PATCH v4 3/3] fs, xfs: introduce MAP_DIRECT for creating block-map-sealed file ranges

2017-08-15 Thread Dan Williams
MAP_DIRECT is an mmap(2) flag with the following semantics: MAP_DIRECT In addition to this mapping having MAP_SHARED semantics, successful faults in this range may assume that the block map (logical-file-offset to physical memory address) is pinned for the lifetime of the mapping.

[PATCH v4 2/3] mm: introduce MAP_VALIDATE a mechanism for adding new mmap flags

2017-08-15 Thread Dan Williams
The mmap syscall suffers from the ABI anti-pattern of not validating unknown flags. However, proposals like MAP_SYNC and MAP_DIRECT need a mechanism to define new behavior that is known to fail on older kernels without the feature. Use the fact that specifying MAP_SHARED and MAP_PRIVATE at the

Re: [PATCH] Fix Alps Touchpad two finger scroll does not work on right side

2017-08-15 Thread Takashi Iwai
On Mon, 31 Jul 2017 14:10:29 +0200, Takashi Iwai wrote: > > On Fri, 21 Jul 2017 08:53:05 +0200, > Takashi Iwai wrote: > > > > On Fri, 21 Jul 2017 02:27:30 +0200, > > Masaki Ota wrote: > > > > > > From: Masaki Ota > > > > > > Fixed the issue that two finger scroll does not work correctly > > >

Re: [PATCH] sound: emu8000: constify emu8000_ops

2017-08-15 Thread Takashi Iwai
On Mon, 14 Aug 2017 19:13:26 +0200, Julia Lawall wrote: > > The structure emu8000_ops is only copied into another structure, so > it can be const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Applied, thanks. Takashi

Re: [PATCH] ALSA: rme9652: Use common error handling code in two functions

2017-08-15 Thread Takashi Iwai
On Mon, 14 Aug 2017 22:10:10 +0200, SF Markus Elfring wrote: > > From: Markus Elfring > Date: Mon, 14 Aug 2017 22:00:40 +0200 > > Add a jump target so that a bit of exception handling can be better reused > in these functions. > > This issue was detected by using the Coccinelle software. > >

[PATCH v3 00/22] staging: ccree: fixes and simplifications

2017-08-15 Thread Gilad Ben-Yossef
The series includes various bug fixes, code simplification and style cleanups. Changer from v2: - Drop M32R as supported architecture, which resolve the kbuild bot warnings on Joe Perches patch. - Bug fix that properly saves last bytes of ciphertext for CTS in skcipher - Even more coding

[PATCH v3 03/22] staging: ccree: Replace kzalloc with devm_kzalloc

2017-08-15 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_kzalloc, which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace kzalloc with devm_kzalloc. (b) drop kfree(), because memory allocated with devm_kzalloc() is automatically freed on driver

[PATCH v3 02/22] staging: ccree: kmalloc by sizeof var not type

2017-08-15 Thread Gilad Ben-Yossef
Change places where we alloc memory by sizeof type to sizeof var. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 4 ++-- drivers/staging/ccree/ssi_cipher.c | 4 ++-- drivers/staging/ccree/ssi_driver.c | 2 +- drivers/staging/ccree/ssi_hash.c| 4

[PATCH v3 04/22] staging: ccree: Convert to devm_ioremap_resource for map, unmap

2017-08-15 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_ioremap_resource(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace request_mem_region(), ioremap() and corresponding error handling with devm_ioremap_resource(). (b) remove

[PATCH v3 06/22] staging: ccree: simplify resource release on error

2017-08-15 Thread Gilad Ben-Yossef
The resource release on probe/init error was being handled in an awkward manner and possibly leaking memory on certain (unlikely) error path. Fix it by simplifying the error resource release and making it easier to track. Reported-by: Dan Carpenter Signed-off-by: Gilad Ben-Yossef ---

[PATCH v3 11/22] staging: ccree: fix line indentation and breaks

2017-08-15 Thread Gilad Ben-Yossef
Fix wrong indentation and line breaks, including missing tabs, breaking lines longer then 80 char or wrongly broken. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.c | 107 +++-- 1 file changed, 67 insertions(+), 40 deletions(-) diff --git

[PATCH v3 05/22] staging: ccree: Use platform_get_irq and devm_request_irq

2017-08-15 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_request_irq(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace platform_get_resource(), request_irq() and corresponding error handling with platform_get_irq() and

[PATCH v3 16/22] staging: ccree: fix spelling mistakes

2017-08-15 Thread Gilad Ben-Yossef
Fix various spelling mistakes in comments. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 2 +- drivers/staging/ccree/ssi_hash.c| 2 +- drivers/staging/ccree/ssi_hash.h| 2 +- drivers/staging/ccree/ssi_ivgen.c | 2 +-

[PATCH v3 12/22] staging: ccree: align box comment correctly

2017-08-15 Thread Gilad Ben-Yossef
Fix indentation in first comment. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index b7d6586..b95c3ce

[PATCH v3 13/22] staging: ccree: fix line indentation and breaks

2017-08-15 Thread Gilad Ben-Yossef
Fix source line indentation and breaks Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 494 ++- 1 file changed, 284 insertions(+), 210 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index

[PATCH v3 08/22] staging: ccree: remove m32r as supported platform

2017-08-15 Thread Gilad Ben-Yossef
M32R requires special handling due due to how it has implemented ioread32. It is also an orphaned arch on Linux and doesn't seem to be worth the trouble. So until we have a real user, remove support for it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/Kconfig | 2 +- 1 file

[PATCH v3 09/22] staging: ccree: Fix format/argument mismatches

2017-08-15 Thread Gilad Ben-Yossef
From: Joe Perches By default, debug logging is disabled by CC_DEBUG not being defined. Convert SSI_LOG_DEBUG to use no_printk instead of an empty define to validate formats and arguments. Fix fallout. Miscellanea: o One of the conversions now uses %pR instead of multiple uses of %pad

[PATCH v3 20/22] staging: ccree: replace noop macro with inline

2017-08-15 Thread Gilad Ben-Yossef
Replace noop macro with a noop inline function Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 0b9c7e6..063a1cc 100644

[PATCH v3 17/22] staging: ccree: clean up comments

2017-08-15 Thread Gilad Ben-Yossef
Clean up comments: fix style, trim long lines and remove useless ones. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 40 + drivers/staging/ccree/ssi_aead.h| 47 ++--- drivers/staging/ccree/ssi_buffer_mgr.c

[PATCH v3 22/22] staging: ccree: remove BUG macro usage

2017-08-15 Thread Gilad Ben-Yossef
Replace BUG() macro usage that crash the kernel with alternatives that signal error and/or try to recover. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 14 ++ drivers/staging/ccree/ssi_cipher.c | 1 - drivers/staging/ccree/ssi_pm.c |

[PATCH v3 21/22] staging: ccree: save ciphertext for CTS IV

2017-08-15 Thread Gilad Ben-Yossef
The crypto API requires saving the last blocks of ciphertext in req->info for use as IV for CTS mode. The ccree driver was not doing it and so failing tcrypt tests in some situations. This patch fixes the issue. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 31

[PATCH v3 19/22] staging: ccree: fix code indent

2017-08-15 Thread Gilad Ben-Yossef
Fix multiple code indentation issues. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 23 --- drivers/staging/ccree/ssi_cipher.c | 2 +- drivers/staging/ccree/ssi_sysfs.c | 4 +++- 3 files changed, 16 insertions(+), 13 deletions(-)

[PATCH v3 18/22] staging: ccree: move over to BIT macro for bit defines

2017-08-15 Thread Gilad Ben-Yossef
Use BIT macro for bit definitions where needed. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.h | 10 +- drivers/staging/ccree/ssi_driver.c | 3 ++- drivers/staging/ccree/ssi_driver.h | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git

[PATCH v3 15/22] staging: ccree: fix line indentation and breaks

2017-08-15 Thread Gilad Ben-Yossef
Fix source line indentation and breaks in ssi_aead.c Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 1024 -- 1 file changed, 532 insertions(+), 492 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c

[PATCH v3 14/22] staging: ccree: fix struct init braces

2017-08-15 Thread Gilad Ben-Yossef
Put struct init braces on line of it's own. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 32 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index

[PATCH] ARM: dts: at91: sama5d2_xplained: Add charger node

2017-08-15 Thread Wenyou Yang
From: Wenyou Yang Add the charger device node as a sub-device of act8945a mfd, move the charger's properties in the node, and replace the "active-semi,irq_gpios" with the "interrupts" property to denote the act8945a charger's irq. Signed-off-by: Wenyou Yang ---

[PATCH v3 10/22] staging: ccree: rewrite GET_DMA_BUFFER_TYPE as func

2017-08-15 Thread Gilad Ben-Yossef
The GET_DMA_BUFFER_TYPE macro was triggering a macro argument reuse warning from checkpatch. Rewrite the macro as inline function instead to avoid risk of unintended side effects. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 26 +-

[PATCH v3 07/22] staging: ccree: remove unused completion

2017-08-15 Thread Gilad Ben-Yossef
icache_setup_completion is no longer used. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.c | 2 -- drivers/staging/ccree/ssi_driver.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c

Re: [PATCH v2 3/8] mfd: cros_ec: Stop the debugfs work when suspended

2017-08-15 Thread Benson Leung
On Fri, Aug 11, 2017 at 04:23:00PM +0200, Thierry Escande wrote: > From: Douglas Anderson > > This patch stops the debugfs worker thread when the device is suspended. > This change avoids messages like: > > cros-ec-spi spi5.0: spi transfer failed: -108 > cros-ec-spi spi5.0: cs-deassert spi

[PATCH v3 01/22] staging: ccree: fix split strings

2017-08-15 Thread Gilad Ben-Yossef
Fix strings in log messages being split across lines and the resulting alignment issues when being fixed. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 9 ++-- drivers/staging/ccree/ssi_buffer_mgr.c | 86 ++---

[PATCH v4] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-15 Thread Srinivas Pandruvada
For SoC to achieve its lowest power platform idle state a set of hardware preconditions must be met. These preconditions or constraints can be obtained by issuing a device specific method (_DSM) with function "1". Refer to the document provided in the link below. Here during initialization (from

Re: [PATCH v2 4/8] platform/chrome: cros_ec: register shutdown function for debugfs

2017-08-15 Thread Benson Leung
Hi Thierry, On Fri, Aug 11, 2017 at 04:23:01PM +0200, Thierry Escande wrote: > From: Daniel Hung-yu Wu > > Reboot or shutdown during delayed works could corrupt communication with > EC and certain I2C controller may not be able to recover from the error > state. > > This patch registers a

Re: [PATCH v5 0/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-08-15 Thread Peter Rosin
On 2017-07-26 19:13, Eddie James wrote: > From: "Edward A. James" > > This series adds an algorithm for an I2C master physically located on an FSI > slave device. The I2C master has multiple ports, each of which may be > connected > to an I2C slave. Access to the I2C master registers is

Re: [PATCHv2] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-15 Thread Thomas-Mich Richter
On 08/14/2017 06:39 PM, Arnaldo Carvalho de Melo wrote: > Em Mon, Aug 14, 2017 at 01:46:44PM +0200, Thomas Richter escreveu: >> Perf BPF prologue generator unconditionally fetches 8 bytes for function >> parameters, which causes problem on big endian machine. Thomas gives a >> detail analysis for

Re: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-15 Thread Rafał Miłecki
On 2017-08-15 08:08, Zhang Rui wrote: diff --git a/drivers/thermal/broadcom/Kconfig b/drivers/thermal/broadcom/Kconfig index 42c098e..c106a15 100644 --- a/drivers/thermal/broadcom/Kconfig +++ b/drivers/thermal/broadcom/Kconfig @@ -6,6 +6,13 @@ config BCM2835_THERMAL   help     

[PATCH v1 9/9] arm: dts: Add power controller device node of MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add power controller node for MT2712 Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index

[PATCH v1 0/9] Mediatek MT2712 clock and scpsys support

2017-08-15 Thread weiyi.lu
This patch set is composed of clock control (PATCH 1-4) and scpsys control (PATCH 5-9) Weiyi Lu (9): [PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712 [PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks [PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

Re: [PATCH v3 11/22] staging: ccree: fix line indentation and breaks

2017-08-15 Thread Joe Perches
On Tue, 2017-08-15 at 09:26 +0300, Gilad Ben-Yossef wrote: > Fix wrong indentation and line breaks, including missing tabs, > breaking lines longer then 80 char or wrongly broken. [] > diff --git a/drivers/staging/ccree/ssi_driver.c > b/drivers/staging/ccree/ssi_driver.c [] > -

[PATCH v1 1/9] dt-bindings: ARM: Mediatek: Document bindings for MT2712

2017-08-15 Thread weiyi.lu
From: Weiyi Lu This patch adds the binding documentation for apmixedsys, bdpsys, imgsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, pericfg, topckgen, vdecsys and vencsys for Mediatek MT2712. Signed-off-by: Weiyi Lu --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH v1 8/9] soc: mediatek: add MT2712 scpsys support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu add scpsys driver for MT2712 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 118 -- 1 file changed, 113 insertions(+), 5 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index

Re: early x86 unseeded randomness

2017-08-15 Thread Willy Tarreau
Hi Ted, On Mon, Aug 14, 2017 at 09:31:24PM -0400, Theodore Ts'o wrote: > The real fix is to do what OpenBSD does, which is to teach the > bootloader (e.g., grub) to read from some file such as > /var/lib/urandom/random-seed, and then to have the init scripts > overwrite it with a new set of

[PATCH v1 3/9] clk: mediatek: Add MT2712 clock support

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock support, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 50 ++ drivers/clk/mediatek/Makefile|8 + drivers/clk/mediatek/clk-mt2712-bdp.c|

[PATCH v1 7/9] soc: mediatek: add dependent clock jpgdec/audio for scpsys

2017-08-15 Thread weiyi.lu
From: Weiyi Lu There are dependent clock jpgdec/audio in scpsys on MT2712, and will exist three dependent clocks on MT2712 VDEC. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH v1 5/9] dt-bindings: soc: add MT2712 power dt-bindings

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add power dt-bindings for MT2712. Signed-off-by: Weiyi Lu --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt2712-power.h | 26 ++ 2 files changed, 29 insertions(+) create mode 100644

[PATCH v1 2/9] clk: mediatek: Add dt-bindings for MT2712 clocks

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add MT2712 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- include/dt-bindings/clock/mt2712-clk.h | 428 + 1 file changed, 428 insertions(+) create mode 100644

[PATCH v1 6/9] soc: mediatek: add bus protection extend API

2017-08-15 Thread weiyi.lu
From: Weiyi Lu MT2712 add "set/clear" bus control register to each control register set instead of providing only one "enable" control register, we could avoid the read-modify-write racing by using extend API with such new design. Also there exists the second bus control register set, we could

Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const

2017-08-15 Thread Jarkko Nikula
On Mon, Aug 14, 2017 at 05:08:44PM +0530, Bhumika Goyal wrote: > Make this const as it is only passed as the 2nd argument to the > function devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal > --- > sound/soc/omap/omap-pcm.c | 2 +-

Re: [PATCH 2/3] libnvdimm, pfn, dax: show supported dax/pfn region alignments in sysfs

2017-08-15 Thread Oliver
improve the system] > > url: > https://github.com/0day-ci/linux/commits/Dan-Williams/libnvdimm-export-supported-page-size-alignments/20170815-105258 > base: https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git > libnvdimm-for-next > config: powerpc-allmodconfig (attach

[PATCH v1 4/9] arm: dts: mt2712: Add clock controller device nodes

2017-08-15 Thread weiyi.lu
From: Weiyi Lu Add clock controller nodes for MT2712, include topckgen, infracfg, pericfg, mcucfg and apmixedsys. This patch also add six oscillators that provide clocks for MT2712. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 115 ++ 1

Re: [PATCH] platform/chrome: cros_ec_dev - Use devm_mfd_add_devices

2017-08-15 Thread Benson Leung
Hi Jeffy, On Mon, Aug 07, 2017 at 07:18:54PM +0800, Jeffy Chen wrote: > Currently we are calling mfd_add_devices to add devices without matched > mfd_remove_devices to remove them. > > That would cause warning when re-binding cros_ec_dev: > > [ 123.536192] sysfs: cannot create duplicate

Re: [PATCH v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-15 Thread Zhang Rui
On Tue, 2017-08-15 at 08:42 +0200, Rafał Miłecki wrote: > On 2017-08-15 08:08, Zhang Rui wrote: > > > > > > > > diff --git a/drivers/thermal/broadcom/Kconfig > > > b/drivers/thermal/broadcom/Kconfig > > > index 42c098e..c106a15 100644 > > > --- a/drivers/thermal/broadcom/Kconfig > > > +++

[PATCH] netfilter: fix indent on in statements

2017-08-15 Thread Colin King
From: Colin Ian King The returns on some if statements are not indented correctly, add in the missing tab. Signed-off-by: Colin Ian King --- net/bridge/netfilter/ebt_ip.c | 4 ++-- net/bridge/netfilter/ebt_ip6.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 4/4] mmc: sdhci-cadence: add suspend / resume support

2017-08-15 Thread Adrian Hunter
On 14/08/17 18:28, Masahiro Yamada wrote: > Hi Adrian, > > > 2017-08-14 19:53 GMT+09:00 Adrian Hunter : > >>> @@ -353,6 +390,28 @@ static int sdhci_cdns_probe(struct platform_device >>> *pdev) >>> return ret; >>> } >>> >>> +static int __maybe_unused sdhci_cdns_resume(struct device *dev)

Re: Re: [PATCH 2/2] mm, oom: fix potential data corruption when oom_reaper races with writer

2017-08-15 Thread Michal Hocko
On Tue 15-08-17 07:51:02, Tetsuo Handa wrote: > Michal Hocko wrote: [...] > > Were you able to reproduce with other filesystems? > > Yes, I can reproduce this problem using both xfs and ext4 on > 4.11.11-200.fc25.x86_64 > on Oracle VM VirtualBox on Windows. > > I believe that this is not old

Re: [PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-15 Thread Lee Jones
On Mon, 14 Aug 2017, Andrea Adami wrote: > With the introduction of sharpslpart partition parser we can now read the > offsets from NAND: we specify the list of the parsers as platform data, with > cmdlinepart and ofpart parsers first allowing to override the part. table > written in NAND. This

Re: [PATCH] platform/chrome: chromeos_laptop: make chromeos_laptop const

2017-08-15 Thread Benson Leung
Hi Bhumika, On Sat, Aug 05, 2017 at 01:50:42PM +0530, Bhumika Goyal wrote: > Declare chromeos_laptop structures as const as they are only used during > a copy operation. As their value is never modified during runtime, they > can be made const. > > Signed-off-by: Bhumika Goyal Applied. Thanks

Re: [PATCH resend] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-08-15 Thread Lee Jones
On Mon, 14 Aug 2017, Hans de Goede wrote: > The PMIC provides ACPI OpRegions which must be available for other > drivers' PS0 / PS3 methods early-on as such it must be builtin as the > Kconfig help text already states. > > Somehow its Kconfig option ended up being a tristate though, this fixes >

Re: [PATCH 0/2] i2c: mux: pinctrl: remove platform_data and cleanup

2017-08-15 Thread Peter Rosin
On 2017-08-02 09:27, Peter Rosin wrote: > Hi! > > As previously discussed [1], the platform_data interface of the i2c mux > pinctrl driver has never been used (upstream at least). Deleting code > is always nice, so here are two patches that gets rid of some lines... Both patches applied (with

Re: [PATCH v2 1/3] mfd: dm355evm_msp: move header file out of I2C realm

2017-08-15 Thread Lee Jones
On Mon, 14 Aug 2017, Wolfram Sang wrote: > include/linux/i2c is not for client devices. Move the header file to a > more appropriate location. > > Signed-off-by: Wolfram Sang > Acked-by: Alexandre Belloni > Acked-by: Dmitry Torokhov > --- > > Change since V1: > > * rebased to v4.13-rc5, no

Re: [PATCH 1/3] thunderbolt: Remove superfluous check

2017-08-15 Thread Mika Westerberg
On Tue, Aug 15, 2017 at 08:19:01AM +0300, Bernat, Yehezkel wrote: > The key size is tested by hex2bin() already (as '\0' isn't an hex digit) > > Suggested-by: Andy Shevchenko > Signed-off-by: Yehezkel Bernat Acked-by: Mika Westerberg

Re: [PATCH 2/3] thunderbolt: Make key root-only accessible

2017-08-15 Thread Mika Westerberg
On Tue, Aug 15, 2017 at 08:19:12AM +0300, Bernat, Yehezkel wrote: > Non-root user may read the key back after root wrote it there. > This removes read access to everyone but root. > > Signed-off-by: Yehezkel Bernat Acked-by: Mika Westerberg

Re: [PATCH 3/3] thunderbolt: Allow clearing the key

2017-08-15 Thread Mika Westerberg
On Tue, Aug 15, 2017 at 08:19:20AM +0300, Bernat, Yehezkel wrote: > If secure authentication of a devices fails, either because the device > already has another key uploaded, or there is some other error sending > challenge to the device, and the user only wants to approve the device > just once

[GIT PULL] Immutable branch between MFD, Input and RTC due for the v3.14 merge window

2017-08-15 Thread Lee Jones
Enjoy! The following changes since commit 5771a8c08880cdca3bfb4a3fc6d309d6bba20877: Linux v4.13-rc1 (2017-07-15 15:22:10 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-input-rtc-v4.14 for you to fetch changes up to

[PATCH v2] f2fs: free_user_blocks should use reserved_segments instead

2017-08-15 Thread Yunlong Song
The part (overprovision_segments - reserved_segments) can still be used for LFS in some case, e.g., there are lots of invalid block from dirty segments, then the part (overprovision_segments - reserved_segments) can be safely used. So free_use_blocks should use reserved_segments instead, rather

Re: [PATCH v1 0/9] Mediatek MT2712 clock and scpsys support

2017-08-15 Thread Sean Wang
Hi, Weiyi for patch 5 to 9, you should re-base to the latest the Matthias tree which has some changes around scpsys since Linux v4.13-rc1 Sean On Tue, 2017-08-15 at 14:42 +0800, weiyi...@mediatek.com wrote: > This patch set is composed of clock control (PATCH 1-4) and scpsys control

Re: [PATCH] f2fs: free_user_blocks should use reserved_segments instead

2017-08-15 Thread Yunlong Song
Consider this, I have sent another patch v2, please review. The part (overprovision_segments - reserved_segments) can still be used for LFS in some case, e.g., there are lots of invalid block from dirty segments, then the part (overprovision_segments - reserved_segments) can be safely used. So

[PATCH v2 0/3] STM32 CRYP crypto driver

2017-08-15 Thread Fabien Dessenne
This set of patches adds a new crypto driver for STMicroelectronics stm32 HW. This drivers uses the crypto API and provides with HW-enabled AEAD and block cipher algorithms. It makes use of the crypto engine which is upgraded in order to support AEAD requests. This driver was successfully tested

[PATCH v2 2/3] dt-bindings: Document STM32 CRYP bindings

2017-08-15 Thread Fabien Dessenne
Document device tree bindings for the STM32 CRYP. Signed-off-by: Fabien Dessenne --- .../devicetree/bindings/crypto/st,stm32-cryp.txt | 20 1 file changed, 20 insertions(+) create mode 100644 Documentation/devicetree/bindings/crypto/st,stm32-cryp.txt diff --git

[PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-15 Thread Andrew Jeffery
In addition to the base, low and high clock configuration, the AC timing register #1 on the AST2400 houses fields controlling: 1. tBUF: Minimum delay between Stop and Start conditions 2. tHDSTA: Hold time for the Start condition 3. tACST: Setup time for Start and Stop conditions, and hold time

[PATCH v2 3/3] crypto: stm32 - Support for STM32 CRYP crypto module

2017-08-15 Thread Fabien Dessenne
This module registers block and AEAD cipher algorithms that make use of the STMicroelectronics STM32 crypto "CRYP1" hardware. The following algorithms are supported: - aes: ecb, cbc, ctr, gcm, ccm - des: ecb, cbc - tdes: ecb, cbc Signed-off-by: Fabien Dessenne --- drivers/crypto/stm32/Kconfig

[PATCH v2 1/3] crypto: engine - permit to enqueue aead_request

2017-08-15 Thread Fabien Dessenne
The current crypto engine allows ablkcipher_request and ahash_request to be enqueued. Extend this to aead_request. Signed-off-by: Fabien Dessenne --- crypto/crypto_engine.c | 101 include/crypto/engine.h | 16 2 files changed, 117

Re: [linux-sunxi] [PATCH v3 11/11] ASoC: sun4i-i2s: Add support for H3

2017-08-15 Thread Code Kipper
On 12 August 2017 at 14:27, Chen-Yu Tsai wrote: > On Sat, Aug 12, 2017 at 7:00 PM, wrote: >> From: Marcus Cooper >> >> The sun8i-h3 introduces a lot of changes to the i2s block such >> as different register locations, extended clock division and >> more operational modes. As we have to

Re: [PATCH V3 2/2] It makes the code clearer and less error prone.

2017-08-15 Thread Federico Vaga
On Monday, August 14, 2017 7:33:41 PM CEST Steven Rostedt wrote: > On Thu, 3 Aug 2017 00:15:58 +0200 > Federico Vaga wrote: > > Why did you change the subject? The previous patch had a much better > one: "trace-cmd: Use asprintf when possible" > > Or was it the tool you used to send the patches

Re: [PATCH] netfilter: fix indent on in statements

2017-08-15 Thread walter harms
Am 15.08.2017 08:50, schrieb Colin King: > From: Colin Ian King > > The returns on some if statements are not indented correctly, > add in the missing tab. > > Signed-off-by: Colin Ian King > --- > net/bridge/netfilter/ebt_ip.c | 4 ++-- > net/bridge/netfilter/ebt_ip6.c | 2 +- > 2 files

Re: [RFC PATCH 1/7] mmc: sdhci: Add quirk to indicate no CRC stripping in MMC_RSP_136

2017-08-15 Thread Adrian Hunter
On 07/08/17 19:01, Kishon Vijay Abraham I wrote: > TI's implementation of sdhci controller used in DRA7 SoC's doesn't > strip CRC in responses with length 136 bits. Add quirk to indicate > the controller does not strip CRC in MMC_RSP_136. If this quirk is > set sdhci library shouldn't shift the

linux-next: Tree for Aug 15

2017-08-15 Thread Stephen Rothwell
Hi all, Changes since 20170811: The net-next tree gained a conflict against the rockchip tree and a build failure for which I reverted a commit. The rcu tree interaction with the tip has been fixed up. The staging tree lost its overnight build failures. The complex conflict between the

[PATCH] usb: gadget: dummy: fix infinite loop because of missing loop decrement

2017-08-15 Thread Colin King
From: Colin Ian King The while loop never terminates because the loop counter i is never decremented. Fix this by decrementing i. Detected by CoverityScan, CID#751073 ("Infinite Loop") Signed-off-by: Colin Ian King --- drivers/usb/gadget/udc/dummy_hcd.c | 2 +- 1 file changed, 1

Re: [RFC PATCH 2/7] mmc: sdhci: Add quirk to indicate controller supports ADMA2

2017-08-15 Thread Adrian Hunter
On 07/08/17 19:01, Kishon Vijay Abraham I wrote: > TI's implementation of sdhci controller used in DRA7 SoC's doesn't > have SDHCI_CAN_DO_ADMA2 set in CAPA register though it supports > ADMA2. Add quirk to support using ADMA2 even if the controller reports > incorrect capability in CAPA. A quirk

[PATCH v2] f2fs-tools: fix the usage message of overprovision option

2017-08-15 Thread Yunlong Song
The usage message shows a wrong message for ovp option, so fix it. Signed-off-by: Yunlong Song --- mkfs/f2fs_format_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c index a3652a9..3279829 100644 ---

Re: early x86 unseeded randomness

2017-08-15 Thread Ingo Molnar
* Willy Tarreau wrote: > Nowadays we could use similar methods using RDTSC providing more accurate > counting. This doesn't provide a lot of entropy of course, given that a > 2 GHz machine will at most count 31 bits there. But I tend to think that > what matters during early boot is to

Re: [RFC PATCH 3/7] mmc: sdhci: Add callback to set bus mode

2017-08-15 Thread Adrian Hunter
On 07/08/17 19:01, Kishon Vijay Abraham I wrote: > Add callback to set bus mode in sdhci library so that the > controller driver can perform any bus mode specific configurations > in the callback function. A quirk isn't needed. Just hook ->set_ios() e.g. host->mmc_host_ops.set_ios =

Re: [RFC PATCH 4/7] mmc: sdhci: Add quirk to indicate broken POWER_CONTROL

2017-08-15 Thread Adrian Hunter
On 07/08/17 19:01, Kishon Vijay Abraham I wrote: > TI's implementation of sdhci controller used in DRA7 SoC's uses > POWER_CONTROL register for configuring IO voltage and not > for core voltage (vdd) which is it's intended use. Add a quirk > to indicate broken POWER_CONTROL register. A quirk

[PATCH] crypto: rockchip: Don't dequeue the request when device is busy

2017-08-15 Thread zain wang
The device can only process one request at a time. So if multiple requests came at the same time, we can enqueue them first, and dequeue them one by one when the device is idle. Signed-off-by: zain wang --- drivers/crypto/rockchip/rk3288_crypto.c| 46 ++-

RE: [PATCH V2] kernel/watchdog: fix spurious hard lockups

2017-08-15 Thread Thomas Gleixner
On Tue, 15 Aug 2017, Liang, Kan wrote: > This patch which speed up the hrtimer (https://lkml.org/lkml/2017/6/26/685) > is decent to fix the spurious hard lockups. > Tested-by: Kan Liang > > Please consider to merge it into both mainline and stable tree. Well, it 'fixes' the problem, but at the

[PATCH] btrfs: remove redundant check on ret being non-zero

2017-08-15 Thread Colin King
From: Colin Ian King The error return variable ret is initialized to zero and then is checked to see if it is non-zero in the if-block that follows it. It is therefore impossible for ret to be non-zero after the if-block hence the check is redundant and can be removed. Detected by CoverityScan,

RE: [PATCH 2/3] crypto: engine - find request type with cra_type

2017-08-15 Thread Fabien DESSENNE
Hi Corentin, Since I have just sent a patch to add the support of "aead_request" to crypto engine, I am wondering if your proposed change (checking cra_type instead of crypto_tfm_alg_type) and mine are compatible. It looks like they are (assuming we export crypto_aead_type): can you confirm? BR

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-15 Thread Nadav Amit
Peter Zijlstra wrote: > On Mon, Aug 14, 2017 at 05:07:19AM +, Nadav Amit wrote: So I'm not entirely clear about this yet. How about: CPU0CPU1 tlb_gather_mmu()

Re: early x86 unseeded randomness

2017-08-15 Thread Willy Tarreau
On Tue, Aug 15, 2017 at 09:42:54AM +0200, Ingo Molnar wrote: > > * Willy Tarreau wrote: > > > Nowadays we could use similar methods using RDTSC providing more accurate > > counting. This doesn't provide a lot of entropy of course, given that a > > 2 GHz machine will at most count 31 bits there.

Re: early x86 unseeded randomness

2017-08-15 Thread Ingo Molnar
* Willy Tarreau wrote: > On Tue, Aug 15, 2017 at 09:42:54AM +0200, Ingo Molnar wrote: > > > > * Willy Tarreau wrote: > > > > > Nowadays we could use similar methods using RDTSC providing more accurate > > > counting. This doesn't provide a lot of entropy of course, given that a > > > 2 GHz

[PATCH] ASoC: mediatek: Correct the interrupt property

2017-08-15 Thread Ryder Lee
This patch update interrupt property since we only use ASYS IRQ in the driver, and this may confuse people. Signed-off-by: Ryder Lee CC: Garlic Tseng --- Documentation/devicetree/bindings/sound/mt2701-afe-pcm.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v5 0/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-08-15 Thread Joel Stanley
On Tue, Aug 15, 2017 at 4:06 PM, Peter Rosin wrote: > On 2017-07-26 19:13, Eddie James wrote: >> From: "Edward A. James" >> >> This series adds an algorithm for an I2C master physically located on an FSI >> slave device. The I2C master has multiple ports, each of which may be >> connected >> to

  1   2   3   4   5   6   7   8   9   10   >