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

2017-08-14 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] platform/chrome: chromeos_laptop: make chromeos_laptop const

2017-08-14 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 v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-14 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 is

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

2017-08-14 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 dat

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

2017-08-14 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)

[PATCH] netfilter: fix indent on in statements

2017-08-14 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 a/net/bridge

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

2017-08-14 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 > > > +++ b/drive

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

2017-08-14 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 filenam

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

2017-08-14 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 fi

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

2017-08-14 Thread Oliver
On Tue, Aug 15, 2017 at 4:02 PM, kbuild test robot wrote: > Hi Oliver, > > [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] > [also build test ERROR on v4.13-rc5 next-20170811] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url

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

2017-08-14 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 +- >

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

2017-08-14 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 include/d

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

2017-08-14 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 no

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

2017-08-14 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 include/dt-bindings/po

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

2017-08-14 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-14 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 a/drivers/soc/mediatek/mtk-scpsy

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

2017-08-14 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 5

Re: early x86 unseeded randomness

2017-08-14 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 entrop

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

2017-08-14 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-14 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 + .../bindings/arm/

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

2017-08-14 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 [PATC

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

2017-08-14 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 6338a1f..3

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

2017-08-14 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     Support

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

2017-08-14 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 t

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

2017-08-14 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 achieved

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

2017-08-14 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 shutd

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

2017-08-14 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 a

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

2017-08-14 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 ++--- drivers/staging/ccree/s

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

2017-08-14 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 in

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

2017-08-14 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 t

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

2017-08-14 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 +- drivers/

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

2017-08-14 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 --- arch/arm/boot/dts/at91-sama5d2_

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

2017-08-14 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 e2dc5d8

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

2017-08-14 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 b/drivers/staging/ccree/ssi_

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

2017-08-14 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 a/dri

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

2017-08-14 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(-) dif

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

2017-08-14 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 22/22] staging: ccree: remove BUG macro usage

2017-08-14 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 | 3

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

2017-08-14 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-14 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 09/22] staging: ccree: Fix format/argument mismatches

2017-08-14 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 Signed-

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

2017-08-14 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 +- drivers/staging/ccree/ssi

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

2017-08-14 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 100

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

2017-08-14 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 b

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

2017-08-14 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 changed,

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

2017-08-14 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 a

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

2017-08-14 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 devm_request_irq(

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

2017-08-14 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 --- drivers/s

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

2017-08-14 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 struct

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

2017-08-14 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-14 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 00/22] staging: ccree: fixes and simplifications

2017-08-14 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 styl

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

2017-08-14 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. > > S

Re: [PATCH] sound: emu8000: constify emu8000_ops

2017-08-14 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] Fix Alps Touchpad two finger scroll does not work on right side

2017-08-14 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 > > >

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

2017-08-14 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 same

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

2017-08-14 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. Succes

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

2017-08-14 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 CAP

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

2017-08-14 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 XFS_DIFLAG2_REFLIN

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

2017-08-14 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); > } > >

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

2017-08-14 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: Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-14 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 v4 2/4] thermal: add brcmstb AVS TMON driver

2017-08-14 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 > provid

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

2017-08-14 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 > > > > > interna

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

2017-08-14 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 snd_seq_q

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

2017-08-14 Thread kbuild test robot
Hi Oliver, [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] [also build test ERROR on v4.13-rc5 next-20170811] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Dan-Williams/libnvdimm-exp

[PATCH v2 0/3] PCI hotplug feature

2017-08-14 Thread Oza Pawandeep
These patches bring in PCI hotplug support for iproc family chipsets. It includes DT binding documentation update and, implementation in iproc pcie RC driver. These patch set is made on top of following patches. [PATCH v6 2/2] PCI: iproc: add device shutdown for PCI RC [PATCH v6 1/2] PCI: iproc:

[PATCH v2 3/3] PCI: iproc: Implement optional property prsnt-gpios

2017-08-14 Thread Oza Pawandeep
Add description for optional device tree property 'prsnt-gpios' for PCI hotplug feature. Signed-off-by: Oza Pawandeep Reviewed-by: Ray Jui diff --git a/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt b/Documentation/devicetree/bindings/pci/brcm,iproc-pcie.txt index b8e48b4..0c5f631 1

[PATCH v2 2/3] Documentation/devicetree: Add PCIe hotplug property

2017-08-14 Thread Oza Pawandeep
Host drivers have the requirement of implementing PCI hotplug based on the how their SOC supports PCI hotplug. Couple of properties have been added. the one to enable the hotplug feature itself, and the other caters to the PCI hotplug implementation with the use of gpios. Signed-off-by: Oza Pawan

[PATCH v2 1/3] PCI: iproc: Implement PCI hotplug support

2017-08-14 Thread Oza Pawandeep
This patch implements PCI hotplug support for iproc family chipsets. iproc based SOC (e.g. Stingray) does not have hotplug controller integrated. Hence, standard PCI hotplug framework hooks can-not be used. e.g. controlled power up/down of slot. The mechanism, for e.g. Stingray has adopted for PC

[PATCH v5] clk: sunxi-ng: support R40 SoC

2017-08-14 Thread Icenowy Zheng
Allwinner R40 SoC have a clock controller module in the style of the SoCs beyond sun6i, however, it's more rich and complex. Add support for it. Signed-off-by: Icenowy Zheng --- Changes in v5: - Added TODO's for PLL constraints. - Forced OHCI12M mux to 0. - Changed "adda" clock to "codec" to be

Re: [patch] mm, oom: remove unused mmput_async

2017-08-14 Thread Michal Hocko
On Mon 14-08-17 17:34:32, David Rientjes wrote: > After "mm: oom: let oom_reap_task and exit_mmap to run concurrently", > mmput_async() is no longer used. Remove it. > > Cc: Andrea Arcangeli > Signed-off-by: David Rientjes Acked-by: Michal Hocko Thanks! > --- > include/linux/sched/mm.h |

Re: [PATCH] swap: choose swap device according to numa node

2017-08-14 Thread Aaron Lu
On Mon, Aug 14, 2017 at 04:33:37PM -0700, Andrew Morton wrote: > On Mon, 14 Aug 2017 13:31:30 +0800 Aaron Lu wrote: > > > --- /dev/null > > +++ b/Documentation/vm/swap_numa.txt > > @@ -0,0 +1,18 @@ > > +If the system has more than one swap device and swap device has the node > > +information, we

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-14 Thread Benjamin Herrenschmidt
On Mon, 2017-08-14 at 14:12 +0100, Robin Murphy wrote: > On the other hand, if the check is not so much to mitigate malicious > guests attacking the system as to prevent dumb guests breaking > themselves (e.g. if some or all of the MSI-X capability is actually > emulated), then allowing things to s

Re: [PATCH 07/10] cpufreq: dt: Add support for some new Allwinner SoCs

2017-08-14 Thread Chen-Yu Tsai
On Mon, Jul 24, 2017 at 7:46 PM, Rafael J. Wysocki wrote: > On Monday, July 24, 2017 02:23:49 PM Viresh Kumar wrote: >> On 23-07-17, 18:27, Icenowy Zheng wrote: >> > Some new Allwinner SoCs get supported in the kernel after the >> > compatibles are added to cpufreq-dt-platdev driver. >> > >> > Add

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-14 Thread Benjamin Herrenschmidt
On Tue, 2017-08-15 at 09:47 +0800, Jike Song wrote: > On 08/15/2017 09:33 AM, Benjamin Herrenschmidt wrote: > > On Tue, 2017-08-15 at 09:16 +0800, Jike Song wrote: > > > > Taking a step back, though, why does vfio-pci perform this check in the > > > > first place? If a malicious guest already has c

[PATCH] x86/xen/64: Fix the reported SS and CS in SYSCALL

2017-08-14 Thread Andy Lutomirski
When I cleaned up the Xen SYSCALL entries, I inadvertently changed the reported segment registers. Before my patch, regs->ss was __USER(32)_DS and regs->cs was __USER(32)_CS. After the patch, they are FLAT_USER_CS/DS(32). This had a couple unfortunate effects. It confused the opportunistic fast

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

2017-08-14 Thread Bernat, Yehezkel
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 (without a new key being uploaded to the device) the current implementation

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

2017-08-14 Thread Bernat, Yehezkel
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 --- drivers/thunderbolt/switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/swi

[PATCH 1/3] thunderbolt: Remove superfluous check

2017-08-14 Thread Bernat, Yehezkel
The key size is tested by hex2bin() already (as '\0' isn't an hex digit) Suggested-by: Andy Shevchenko Signed-off-by: Yehezkel Bernat --- drivers/thunderbolt/switch.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index e9391bb.

Re: [PATCH v11 0/5] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-08-14 Thread David Miller
From: Ding Tianhong Date: Tue, 15 Aug 2017 11:23:22 +0800 > Some devices have problems with Transaction Layer Packets with the Relaxed > Ordering Attribute set. This patch set adds a new PCIe Device Flag, > PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known > devices with

Re: [PATCH v5 18/19] crypto: mediatek: move to generic async completion

2017-08-14 Thread Ryder Lee
On Mon, 2017-08-14 at 18:21 +0300, Gilad Ben-Yossef wrote: > The mediatek driver starts several async crypto ops and waits for their > completions. Move it over to generic code doing the same. > > Signed-off-by: Gilad Ben-Yossef > --- Acked-by: Ryder Lee > drivers/crypto/mediatek/mtk-aes.c |

Re: [PATCH] Input: ati_remote2: constify usb_device_id

2017-08-14 Thread Dmitry Torokhov
On Tue, Aug 08, 2017 at 10:24:12PM +0530, Arvind Yadav wrote: > usb_device_id are not supposed to change at runtime. All functions > working with usb_device_id provided by work with > const usb_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav Applied, thank you

Re: [PATCH 6/9 v2] Input: sun4i-ts - constify thermal_zone_of_device_ops structures

2017-08-14 Thread Dmitry Torokhov
On Tue, Aug 08, 2017 at 05:09:00PM +0200, Julia Lawall wrote: > The thermal_zone_of_device_ops structure is only passed as the fourth > argument to devm_thermal_zone_of_sensor_register, which is declared > as const. Thus the thermal_zone_of_device_ops structure itself can > be const. > > Done wit

Re: [PATCH net-next V2 3/3] tap: XDP support

2017-08-14 Thread Jason Wang
On 2017年08月15日 00:01, Michael S. Tsirkin wrote: On Sat, Aug 12, 2017 at 10:48:49AM +0800, Jason Wang wrote: On 2017年08月12日 07:12, Jakub Kicinski wrote: On Fri, 11 Aug 2017 19:41:18 +0800, Jason Wang wrote: This patch tries to implement XDP for tun. The implementation was split into two part

Re: [PATCH v7 7/9] mm: Add address parameter to arch_validate_prot()

2017-08-14 Thread Michael Ellerman
Khalid Aziz writes: > On 08/10/2017 07:20 AM, Michael Ellerman wrote: >> Khalid Aziz writes: >> >>> A protection flag may not be valid across entire address space and >>> hence arch_validate_prot() might need the address a protection bit is >>> being set on to ensure it is a valid protection fl

[PATCH v2] gpio: add gpio_add_lookup_tables() to add several tables at once

2017-08-14 Thread Dmitry Torokhov
When converting legacy board to use gpiod API() there might be several lookup tables in board file, let's provide a way to register them all at once. Reviewed-by: Andy Shevchenko Reviewed-by: Mika Westerberg Signed-off-by: Dmitry Torokhov --- V2: - added the !CONFIG_GPIOLIB stub (Andy) - chang

Re: [PATCH net-next V2 3/3] tap: XDP support

2017-08-14 Thread Jason Wang
On 2017年08月14日 16:43, Daniel Borkmann wrote: On 08/11/2017 01:41 PM, Jason Wang wrote: This patch tries to implement XDP for tun. The implementation was split into two parts: [...] @@ -1402,6 +1521,22 @@ static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, skb_r

Re: [PATCH] Input: elan_i2c - add ELAN0608 to the ACPI table

2017-08-14 Thread Dmitry Torokhov
On Thu, Aug 10, 2017 at 04:53:52PM +0800, Kai-Heng Feng wrote: > Similar to commit 722c5ac708b4f ("Input: elan_i2c - add ELAN0605 to the > ACPI table"), ELAN0608 should be handled by elan_i2c. > > This touchpad can be found in Lenovo ideapad 320-14IKB. > > BugLink: https://bugs.launchpad.net/bugs

Re: [PATCH v2] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Guenter Roeck
On 08/14/2017 07:45 PM, Huibin Hong wrote: If top is 15, (1 << (16 + top)) may be negative. Signed-off-by: Huibin Hong --- Changes in v2: - Rebase mainline Linux 4.13-rc5 drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/

RE: [PATCH 0/5] cramfs refresh for embedded usage

2017-08-14 Thread Nicolas Pitre
On Mon, 14 Aug 2017, Chris Brandt wrote: > On Monday, August 14, 2017, Nicolas Pitre wrote: > > > However, now with your mkcramfs tool, I can no longer mount my cramfs > > > image as the rootfs on boot. I was able to do that before (ie, 30 > > minutes > > > ago) when using the community mkcramfs (

Re: [linux-sunxi] [PATCH v6] arm64: allwinner: a64: Add initial NanoPi A64 support

2017-08-14 Thread Chen-Yu Tsai
On Tue, Aug 15, 2017 at 11:51 AM, Jagan Teki wrote: > On Tue, Aug 15, 2017 at 9:14 AM, Chen-Yu Tsai wrote: >> On Mon, Aug 14, 2017 at 6:36 PM, Jagan Teki wrote: [...] >>> +/* i2c1 connected with gpio headers like pine64, bananapi */ >>> +&i2c1 { >>> + pinctrl-names = "default"; >>> +

Re: [PATCH v2] f2fs: introduce cur_reserved_blocks in sysfs

2017-08-14 Thread Yunlong Song
ping... On 2017/8/11 19:43, Yunlong Song wrote: In this patch, we add a new sysfs interface, we can use it to gradually achieve the reserved_blocks finally, even when reserved_blocks is initially set over user_block_count - total_valid_block_count. This is very useful, especially when we upgrade

Re: [PATCH v3] arm64: allwinner: a64: Add A64-OLinuXino initial support

2017-08-14 Thread Chen-Yu Tsai
On Mon, Aug 14, 2017 at 6:46 PM, Jagan Teki wrote: > From: Jagan Teki > > OLimex A64-OLinuXino is an open-source hardware board > using the Allwinner A64 SOC. > > OLimex A64-OLinuXino has > - A64 Quad-core Cortex-A53 64bit > - 1GB or 2GB RAM DDR3L @ 672Mhz > - microSD slot and 4/8/16GB eMMC > - D

Re: [linux-sunxi] [PATCH v6] arm64: allwinner: a64: Add initial NanoPi A64 support

2017-08-14 Thread Jagan Teki
On Tue, Aug 15, 2017 at 9:14 AM, Chen-Yu Tsai wrote: > On Mon, Aug 14, 2017 at 6:36 PM, Jagan Teki wrote: >> From: Jagan Teki >> >> NanoPi A64 is a new board of high performance with low cost >> designed by FriendlyElec., using the Allwinner A64 SOC. >> >> Nanopi A64 features >> - Allwinner A64,

Re: [PATCH v5 02/10] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-08-14 Thread Tycho Andersen
On Mon, Aug 14, 2017 at 09:47:18PM -0600, Tycho Andersen wrote: > I'll do that for the next version Actually looking closer, I think we just need to mirror the debug_pagealloc_enabled() checks in set_kpte() from split_large_page(), diff --git a/arch/x86/mm/xpfo.c b/arch/x86/mm/xpfo.c index a1344f

[PATCH v5 2/3] ARM: dts: Add LVDS info for rk3288

2017-08-14 Thread Sandy Huang
add LVDS info in rk3288.dtsi for LVDS driver This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- arch/arm/boot/dts/rk3288.dtsi | 52 +++ 1 file changed, 52 inser

Re: [PATCH v4 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
Hi mark, Thanks for you review. 在 2017/8/15 9:53, Mark yao 写道: Hi Sandy On 2017年08月15日 08:56, Sandy Huang wrote: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by

[PATCH v5 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --- Changes according to Mark Yao reviews. .../bindings/display/rockchip/rockchip-lvds.txt| 10

[PATCH v5 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-14 Thread Sandy Huang
This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/Kconfig| 9 + drivers/gpu/drm/rockchip/Makefile |

  1   2   3   4   5   6   7   8   9   10   >