[PATCH v1 4/7] extcon: cht-wc: Fix definition names according to spec

2018-08-27 Thread Andy Shevchenko
There is no suffix MASK in the spec and other small spelling fixes. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-intel-cht-wc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht

[PATCH v1 2/7] extcon: Switch to use kasprintf() instead of open coded

2018-08-27 Thread Andy Shevchenko
Switch to use kasprintf() instead of open coded variant. No functional change intended. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c index c21650a926

[PATCH v1 1/7] extcon: Make static analyzer happy about union assignment

2018-08-27 Thread Andy Shevchenko
When assign unions we need to supply non-scalar value, otherwise static analyzer is not happy: CHECK drivers/extcon/extcon.c drivers/extcon/extcon.c:631:22: warning: cast to non-scalar Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

[PATCH v1 6/7] extcon: cht-wc: Convert to use SPDX identifier

2018-08-27 Thread Andy Shevchenko
Convert driver to use SPDX identifier. Signed-off-by: Andy Shevchenko --- drivers/extcon/extcon-intel-cht-wc.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/extcon/extcon-intel-cht-wc.c b/drivers/extcon/extcon-intel-cht-wc.c index ad1fd70e4023..5ef2152971

[PATCH v1 3/7] extcon: cht-wc: Return from default case to avoid warnings

2018-08-27 Thread Andy Shevchenko
When we have first case to fall through it's not enough to put single comment there to satisfy compiler. Instead of doing that, return fall back value directly from default case. This to avoid following warnings: drivers/extcon/extcon-intel-cht-wc.c: In function ‘cht_wc_extcon_get_charger’: inclu

Re: [PATCH v2 2/3] xfs: Prevent multiple wakeups of the same log space waiter

2018-08-27 Thread Waiman Long
On 08/26/2018 08:21 PM, Dave Chinner wrote: > On Sun, Aug 26, 2018 at 04:53:14PM -0400, Waiman Long wrote: >> The current log space reservation code allows multiple wakeups of the >> same sleeping waiter to happen. This is a just a waste of cpu time as >> well as increasing spin lock hold time. So

drivers/net/wireless/mediatek/mt76/mac80211.c:119: undefined reference to `devm_of_led_classdev_register'

2018-08-27 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5b394b2ddf0347bef56e50c69a58773c94343ff3 commit: ee676cd5017c5f71b8aac1f2d1016ba0f6e4f348 mt76: add driver code for MT76x2u based devices date: 4 weeks ago config: i386-randconfig-c0-08272052 (attached as

Re: [PATCH 2/3] x86: Convert vdso to use vm_fault_t

2018-08-27 Thread Souptick Joarder
On Fri, Aug 3, 2018 at 6:44 PM Thomas Gleixner wrote: > > On Fri, 3 Aug 2018, Souptick Joarder wrote: > > On Mon, Jul 16, 2018 at 2:47 PM, Thomas Gleixner wrote: > > > On Tue, 3 Jul 2018, Matthew Wilcox wrote: > > > > > >> Return vm_fault_t codes directly from the appropriate mm routines instead

Re: [PATCH v2 2/6] HID: generic: create one input report per application type

2018-08-27 Thread Benjamin Tissoires
On Fri, Aug 24, 2018 at 5:45 PM Dmitry Torokhov wrote: > > Hi Benjamin, Jiri, > > On Tue, Apr 24, 2018 at 1:04 AM Benjamin Tissoires > wrote: > > > > It is not a good idea to try to fit all types of applications in the > > same input report. There are a lot of devices that are needing > > the qui

[PATCH v1] driver core: convert printk(KERN_ ...) to pr_

2018-08-27 Thread Andy Shevchenko
Convert printk:s to pr_* format. Note, printk(KERN_DEBUG ...) is left untouched due to side effects of pr_debug(). Signed-off-by: Andy Shevchenko --- drivers/base/dd.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c i

Re: [PATCHv2] perf tools: Add struct ordered_events_buffer layer

2018-08-27 Thread Stephane Eranian
Jiri, On Mon, Aug 27, 2018 at 2:28 AM Jiri Olsa wrote: > > On Wed, Aug 15, 2018 at 10:48:25AM +0200, Jiri Olsa wrote: > > On Tue, Aug 14, 2018 at 12:14:19AM -0700, Stephane Eranian wrote: > > > > SNIP > > > > > > @@ -104,11 +110,12 @@ static struct ordered_event *alloc_event(struct > > > > orde

Re: [PATCH] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-27 Thread Boris Brezillon
On Mon, 27 Aug 2018 23:02:29 +0800 (CST) liuxiang wrote: > Fixes:e46ecda764dc37f9fc6279d95ea2c007daef1a71("mtd: spi-nor: Add Freescale > QuadSPI driver") 12 digits should be enough for the commit-id. > Cc: sta...@vger.kernel.org > > Should I send a V2 patch that adds these above? Yes please

Re: [PATCH] arm: pm: call put_device instead of of_node_put in at91_pm_config_ws

2018-08-27 Thread Alexandre Belloni
On 16/08/2018 18:26:22+0800, zhong jiang wrote: > of_find_device_by_node takes a reference to the struct device when it > finds a match via get_device. but it fails to put_device in > at91_pm_config_ws, for_each_matching_node_and_match will get and put > the node properly, there is no need to call

Re: [PATCH v7 2/8] dt-bindings: Introduce interconnect provider bindings

2018-08-27 Thread Maxime Ripard
On Fri, Aug 24, 2018 at 10:35:23AM -0500, Rob Herring wrote: > On Fri, Aug 24, 2018 at 9:51 AM Georgi Djakov > wrote: > > > > Hi Maxime, > > > > On 08/20/2018 06:32 PM, Maxime Ripard wrote: > > > Hi Georgi, > > > > > > On Tue, Aug 07, 2018 at 05:54:38PM +0300, Georgi Djakov wrote: > > >>> There i

Re: [PATCH] ARM: at91: pm: remove pm_bu initialization in at91_pm_backup_init()

2018-08-27 Thread Alexandre Belloni
On 08/08/2018 10:47:40+0300, Claudiu Beznea wrote: > There is no need to initialize pm_bu since it is used only if backup > mode is selected. In case backup mode initialization fails (which means > pm_bu is invalid) the ULP0 mode will be selected. > > Signed-off-by: Claudiu Beznea > --- > arch/a

Re: [PATCH v7 2/8] dt-bindings: Introduce interconnect provider bindings

2018-08-27 Thread Maxime Ripard
Hi! On Fri, Aug 24, 2018 at 05:51:37PM +0300, Georgi Djakov wrote: > Hi Maxime, > > On 08/20/2018 06:32 PM, Maxime Ripard wrote: > > Hi Georgi, > > > > On Tue, Aug 07, 2018 at 05:54:38PM +0300, Georgi Djakov wrote: > >>> There is also a patch series from Maxime Ripard that's addressing the > >>>

Re:Re: [PATCH] mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB

2018-08-27 Thread liuxiang
Fixes:e46ecda764dc37f9fc6279d95ea2c007daef1a71("mtd: spi-nor: Add Freescale QuadSPI driver") Cc: sta...@vger.kernel.org Should I send a V2 patch that adds these above? At 2018-08-27 16:06:13, "Boris Brezillon" wrote: >On Sat, 18 Aug 2018 17:14:23 +0800 >Liu Xiang wrote: > >> If the size o

Re: [PATCH] AMD perf PMU events for AMD Family 17h.

2018-08-27 Thread Martin Liška
On 08/23/2018 06:16 PM, William Cohen wrote: > On 08/23/2018 10:31 AM, Arnaldo Carvalho de Melo wrote: >> Em Thu, Aug 23, 2018 at 01:21:45PM +0200, Martin Liška escreveu: >>> May I please ping this. >> I was waiting for someone to give some ack, perhaps Will Cohen can take >> a brief look and provi

Re: [PATCH] x86/microcode: allow non-root reading of microcode version and processor flags

2018-08-27 Thread Borislav Petkov
On Mon, Aug 27, 2018 at 04:05:35PM +0800, Jacek Tomaka wrote: > On Mon, Aug 27, 2018 at 3:52 PM, Borislav Petkov wrote: > > > Your From: is Jacek Tomaka and your SOB is different. > > Which one should I use? > Please use my SOB: Jacek Tomaka > > > (Having a single email address for both is eas

[PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-27 Thread jun qian
Before the program enters the uart ISR, the local interrupt has been disabled by the system, so it's not appropriate to use spin_lock_irqsave interface in the ISR. Signed-off-by: jun qian --- drivers/tty/serial/imx.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) d

Re: [PATCH v2 4/9] mmc: meson-mx-sdio: fix OF child-node lookup

2018-08-27 Thread Ulf Hansson
On 27 August 2018 at 10:21, Johan Hovold wrote: > Use the new of_get_compatible_child() helper to lookup the slot child > node instead of using of_find_compatible_node(), which searches the > entire tree from a given start node and thus can return an unrelated > (i.e. non-child) node. > > This als

Re: [PATCH v7 0/3] ARM: dts: at91: sama5d2: Add nodes for I2S

2018-08-27 Thread Alexandre Belloni
On 06/08/2018 14:19:45+0300, Codrin Ciubotariu wrote: > These are the remaining dts patches from the series: > [PATCH v5 0/5] ASoC: add driver for Atmel I2S controller > > v6 -> v7 > - addressed some comments regarding pin conflicts; > > v5 -> v6 > - removed unnecessary phandles to audio PLL cl

Re: [PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Alexandre Belloni
On 27/08/2018 16:57:12+0300, Eugen Hristev wrote: > Preparing the ADC device to connect channel consumer drivers > > Signed-off-by: Eugen Hristev > --- > Resending after merge window that includes the bindings was closed. > Rebased on 4.19-rc1 : no changes > > arch/arm/boot/dts/sama5d2.dtsi | 2

[PATCH RESEND 0/6] arm64: add support for generic cpu vulnerabilities

2018-08-27 Thread Mian Yousaf Kaukab
GENERIC_CPU_VULNERABILITIES provide a common way to figure out if a system is affected by vulnerabilities like meltdown and other variants of spectre. This small series adds support for it in arm64. Thank you, Best regards, Yousaf Mian Yousaf Kaukab (6): arm64: kpti: move check for non-vulnera

[PATCH RESEND 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-08-27 Thread Mian Yousaf Kaukab
Return status based no ssbd_state. Return string "Unknown" in case CONFIG_ARM64_SSBD is disabled or arch workaround2 is not available in the firmware. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 20 1 file changed, 20 insertions(+) diff --git a/ar

[PATCH RESEND 2/6] arm64: add sysfs vulnerability show for meltdown

2018-08-27 Thread Mian Yousaf Kaukab
Checking CSV3 support directly in case CONFIG_UNMAP_KERNEL_AT_EL0 is not enabled. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c ind

[PATCH RESEND 1/6] arm64: kpti: move check for non-vulnerable CPUs to a function

2018-08-27 Thread Mian Yousaf Kaukab
Prepare to call it in generic cpu vulnerabilities support. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/include/asm/cpufeature.h | 16 arch/arm64/kernel/cpufeature.c | 9 + 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/arch/arm64/include/asm/c

[PATCH RESEND 3/6] arm64: add sysfs vulnerability show for spectre v1

2018-08-27 Thread Mian Yousaf Kaukab
Hard-coded since patches are merged and there are no configuration options. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c index 996edb4e18ad..92616431a

[PATCH RESEND 4/6] arm64: add sysfs vulnerability show for spectre v2

2018-08-27 Thread Mian Yousaf Kaukab
Only report mitigation present if hardening callback has been successfully installed. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/kernel/cpu_errata.c | 34 +- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/

[PATCH RESEND 6/6] arm64: enable generic CPU vulnerabilites support

2018-08-27 Thread Mian Yousaf Kaukab
Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, meltdown and store-bypass. Signed-off-by: Mian Yousaf Kaukab --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 0dec01a0c81c..ffd97bc0f5d5 100644 --- a/arch/ar

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Nicholas Piggin
On Mon, 27 Aug 2018 09:36:50 -0400 Rik van Riel wrote: > On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > > > It could do that. It requires a tlbie that matches the page size, > > so it means 3 sizes. I think possibly even that would be better > > than current code, but we could do be

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 12:33 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 10:21:00AM +0200, Bartosz Golaszewski wrote: >> Provide a resource managed version of kstrdup_const(). This variant >> internally calls devm_kstrdup() on pointers that are outside of >> .rodata section. Also provide a correspondin

Re: [PATCH] MAINTAINERS: libata pata: fix Jens Axboe's email address

2018-08-27 Thread Jens Axboe
On 8/26/18 10:29 PM, Baruch Siach wrote: > Commit 7634ccd2da (libata: maintainership update) added an invalid email > address. Fix that. Hah, what a mess. Outside of that, the git trees should also be updated. Something like the below. I'll send in an update. diff --git a/MAINTAINERS b/MAINTAINER

Re: [PATCH] Properly interpret indirect call in perf annotate.

2018-08-27 Thread Martin Liška
On 08/27/2018 12:37 PM, Namhyung Kim wrote: > Hello, > > On Thu, Aug 23, 2018 at 02:29:34PM +0200, Martin Liška wrote: >> The patch changes interpretation of: >> callq *0x8(%rbx) >> >> from: >> 0.26 │ → callq *8 >> to: >> 0.26 │ → callq *0x8(%rbx) >> >> in this can an address is fol

Re: [RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch

2018-08-27 Thread Fenghua Yu
On Fri, Aug 24, 2018 at 11:44:59AM +0100, James Morse wrote: > Hi folks, > > ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl > is the defacto ABI for this sort of thing, but it lives under arch/x86. > > To get existing software working, we need to make resctrl work with

[PATCH] ASoC: meson: axg-tdm: restrict formats depending on slot width

2018-08-27 Thread Jerome Brunet
Restrict the formats possible on the TDM interface depending on the width of the TDM slot and let dpcm merging do the rest. Fixes: d60e4f1e4be5 ("ASoC: meson: add tdm interface driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-tdm-interface.c | 50 + 1 fil

[PATCH] ASoC: meson: axg-fifo: report interrupt request failure

2018-08-27 Thread Jerome Brunet
Return value of request_irq() was irgnored. Fix this and report the failure if any Fixes: 6dc4fa179fb8 ("ASoC: meson: add axg fifo base driver") Signed-off-by: Jerome Brunet --- sound/soc/meson/axg-fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/meson/axg-fifo.c b/sound/so

[PATCH] regulator: isl9305: Add missing .owner field in regulator_desc

2018-08-27 Thread Axel Lin
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: Axel Lin --- drivers/regulator/isl9305.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/isl9305.c b/drivers/regulator/isl9305.c index 257c1943e753..9c2607e912cf 100644 --- a/drive

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Marcel Ziswiler
On Fri, 2018-08-10 at 21:08 +0300, Aapo Vienamo wrote: > Hi all, > > This series implements support for faster signaling modes on Tegra > SDHCI controllers. This series consist of several parts: changes > requried for 1.8 V signaling and pad control, pad calibration, and > tuning. Following earlie

[PATCH v7 RESEND 2/2] ARM: dts: at91: sama5d2: Add resistive touch device

2018-08-27 Thread Eugen Hristev
Add generic resistive touch device which is connected to ADC block inside the SAMA5D2 SoC Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 10 ++ 1 file changed, 10 inse

Re: [PATCHv3] Fix range checks in kernfs_get_target_path

2018-08-27 Thread Tejun Heo
On Sun, Aug 26, 2018 at 10:55:24AM +, Bernd Edlinger wrote: > Ping... > Sorry, I had actually completely forgotten about this one. > > On 07/07/18 19:52, Bernd Edlinger wrote: > > The terminating NUL byte is only there because the buffer is > > allocated with kzalloc(PAGE_SIZE, GFP_KERNEL), bu

[PATCH v7 RESEND 1/2] ARM: dts: at91: sama5d2: add channel cells for ADC device

2018-08-27 Thread Eugen Hristev
Preparing the ADC device to connect channel consumer drivers Signed-off-by: Eugen Hristev --- Resending after merge window that includes the bindings was closed. Rebased on 4.19-rc1 : no changes arch/arm/boot/dts/sama5d2.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/d

Re: [PULL REQUEST] i2c for 4.19

2018-08-27 Thread Jean Delvare
On Fri, 2018-08-24 at 17:37 +0200, Wolfram Sang wrote: > Linus, > > as promised, here is my 2nd pull request for I2C, containing: > > * removal of the attach_adapter callback, converting its last user > * removal of any __deprecated usage within I2C > * one email address update > * some SPDX conv

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Cornelia Huck
On Mon, 27 Aug 2018 09:47:58 -0400 Tony Krowiak wrote: > On 08/27/2018 04:33 AM, Cornelia Huck wrote: > > On Thu, 23 Aug 2018 10:16:59 -0400 > > Tony Krowiak wrote: > > > >> On 08/23/2018 06:25 AM, Cornelia Huck wrote: > >>> On Wed, 22 Aug 2018 15:16:19 -0400 > >>> Tony Krowiak wrote: > >>>

[PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry().

2018-08-27 Thread Michal Hocko
From: Michal Hocko Tetsuo Handa has reported that it is possible to bypass the short sleep for PF_WQ_WORKER threads which was introduced by commit 373ccbe5927034b5 ("mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress") and lock up the system if OOM. The primary

[PATCH v2] mfd: madera: Don't use regmap_read_poll_timeout to poll for BOOT_DONE

2018-08-27 Thread Richard Fitzgerald
While polling for BOOT_DONE the chip could NAK a read because it is still booting, which would terminate the regmap_read_poll_timeout() with an error. Instead implement a polling loop that ignores read errors so we always poll until the chip signals boot or the loop times out. Signed-off-by: Rich

Re: [PATCH v9 12/22] s390: vfio-ap: sysfs interfaces to configure control domains

2018-08-27 Thread Tony Krowiak
On 08/27/2018 04:33 AM, Cornelia Huck wrote: On Thu, 23 Aug 2018 10:16:59 -0400 Tony Krowiak wrote: On 08/23/2018 06:25 AM, Cornelia Huck wrote: On Wed, 22 Aug 2018 15:16:19 -0400 Tony Krowiak wrote: One of the things I suggested in a private conversation with Christian earlier today was

Re: [PATCH v6 1/2] mm: migration: fix migration of huge PMD shared pages

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 09:46:45AM +0200, Michal Hocko wrote: > On Fri 24-08-18 11:08:24, Mike Kravetz wrote: > > On 08/24/2018 01:41 AM, Michal Hocko wrote: > > > On Thu 23-08-18 13:59:16, Mike Kravetz wrote: > > > > > > Acked-by: Michal Hocko > > > > > > One nit below. > > > > > > [...] > > >

Re: Linux 4.19-rc1

2018-08-27 Thread Guenter Roeck
On Sun, Aug 26, 2018 at 02:49:14PM -0700, Linus Torvalds wrote: > So two weeks have passed, and the merge window for 4.19 is over. > [ ... ] > > Anyway, go forth and test, > Build results: total: 132 pass: 129 fail: 3 Failed builds: riscv:defconfig riscv:allnoconfig

[PATCH v2] drivers/thermal/tegra: Fix a double free on the device node

2018-08-27 Thread zhong jiang
The function 'for_each_child_of_node' iterates over the node list by dropping the of_node reference of the previous node. Calling of_node_put() on the iterator is pointless and leads to an inconsistent refcounting in addition to a double free. Remove it. Acked-by: Jon Hunter Signed-off-by: zhong

Re: [PATCH 2/3] mm, mmu_notifier: be explicit about range invalition non-blocking mode

2018-08-27 Thread Jerome Glisse
On Mon, Aug 27, 2018 at 01:26:22PM +0200, Michal Hocko wrote: > From: Michal Hocko > > If invalidate_range_start is called for !blocking mode then all > callbacks have to guarantee they will no block/sleep. The same obviously > applies to invalidate_range_end because this operation pairs with the

[PATCH] m68k/defconfig: Update defconfigs for v4.19-rc1

2018-08-27 Thread Geert Uytterhoeven
Actual changes: -CONFIG_BATMAN_ADV_DAT=y -CONFIG_NF_CONNTRACK_IPV4=m -CONFIG_NF_CONNTRACK_IPV6=m +CONFIG_CRC64=m +CONFIG_NFT_OSF=m +CONFIG_NFT_TPROXY=m +CONFIG_NFT_TUNNEL=m +CONFIG_TEST_BITFIELD=m +CONFIG_TEST_IDA=m Signed-off-by: Geert Uytterhoeven --- arch/m

Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Rik van Riel
On Mon, 2018-08-27 at 18:04 +1000, Nicholas Piggin wrote: > It could do that. It requires a tlbie that matches the page size, > so it means 3 sizes. I think possibly even that would be better > than current code, but we could do better if we had a few specific > fields in there. Would it cause a

Re: KASAN: null-ptr-deref Write in binder_update_page_range

2018-08-27 Thread Martijn Coenen
Thanks Minchan! On Thu, Aug 23, 2018 at 7:29 AM, Minchan Kim wrote: > Signed-off-by: Todd Kjos > Signed-off-by: Minchan Kim Reviewed-by: Martijn Coenen > --- > drivers/android/binder_alloc.c | 43 +++--- > 1 file changed, 35 insertions(+), 8 deletions(-) > > diff

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-27 Thread Pasha Tatashin
On Mon, Aug 27, 2018 at 8:31 AM Masayoshi Mizuma wrote: > > Hi Pavel, > > I would appreciate if you could send the feedback for the patch. I will study it today. Pavel > > Thanks! > Masa > > On 08/24/2018 04:29 AM, Michal Hocko wrote: > > On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: > >> (C

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread dbasehore .
On Mon, Aug 27, 2018 at 4:52 AM Andi Shyti wrote: > > Hi Derek, > > next time, could you please avoid using html mails when replying > to the mailing list? They are not clear. Sorry, my plain text setting was reset for some reason. > > On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore . wrote:

Re: [PATCH] clk: meson-axg: pcie: drop the mpll3 clock parent

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 12:16 +, Yixun Lan wrote: > We found the PCIe driver doesn't really work with > the mpll3 clock which is actually reserved for debug, > So drop it from the mux list. > > Fixes: 33b89db68236 ("clk: meson-axg: add clocks required by pcie driver") > Tested-by: Jianxin Qin >

Re: [PATCH v1 1/1] Bluetooth: hci_qca: Add poweroff support during hci down for wcn3990

2018-08-27 Thread Balakrishna Godavarthi
Hi Marcel, On 2018-08-25 00:20, Marcel Holtmann wrote: Hi Balakrishna, This patch enables power off support for hci down and power on support for hci up. As wcn3990 power sources are ignited by regulators, we will turn off them during hci down, i.e. an complete power off of wcn3990. So while

Re: [PATCH 2/2] clk: meson-g12a: Add AO Clock controller driver

2018-08-27 Thread Jerome Brunet
On Fri, 2018-08-24 at 21:34 +0800, Jian Hu wrote: > > > > I am confued about aoclk81's parent clocks. > > I can not get the example of axg audio clock driver, Could you provide > the link? Had it merged into clk-meson.git? Yes and mainline as well : drivers/clk/meson/axg-audio.c Basically thi

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:58:46PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 14:52 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golasze

Re: [PATCH v1 07/10] thermal: tsens: Check if the IP is correctly enabled by firmware

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 5:00 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:39PM +0530, Amit Kucheria wrote: > > The SROT registers are initialised by the secure firmware at boot. We > > don't have write access to the registers. Check if the block is enabled > > before continuing. >

Re: [PATCH] clk: meson: axg: round audio system master clocks down

2018-08-27 Thread Jerome Brunet
On Wed, 2018-08-01 at 16:07 +0200, Jerome Brunet wrote: > Some of the master clocks provided by the axg audio clock controller are > system clock (spdifin and pdm sysclk). They are used to clock an internal > DSP of the related devices. Having them constantly rounded down instead > of closest is pr

Re: [PATCH v2 0/4] clk: meson: clk-pll driver update

2018-08-27 Thread Jerome Brunet
On Sun, 2018-08-12 at 20:26 +0200, Martin Blumenstingl wrote: > Hi Jerome, > > On Wed, Aug 1, 2018 at 4:00 PM Jerome Brunet wrote: > > > > This patchset is yet another round of update to the amlogic pll driver. > > > > 1) Enable bit is added so we don't rely on the bootloader or the init > >

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 14:52 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: >> 2018-08-27 12:39 GMT+02:00 Mike Rapoport : >> > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> >> Use devm_kstrdup_const() in the pmc-atom driver. This mostl

Re: [PATCH v1 01/10] arm/arm64: dts: msm8974/msm8916: thermal: Split address space into two

2018-08-27 Thread Amit Kucheria
On Sat, Aug 25, 2018 at 4:58 AM Eduardo Valentin wrote: > > On Thu, Aug 09, 2018 at 06:02:33PM +0530, Amit Kucheria wrote: > > We've earlier added support to split the register address space into TM > > and SROT regions. > > > > Split up the regmap address space into two for the remaining platform

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Mike Rapoport
On Mon, Aug 27, 2018 at 02:28:45PM +0200, Bartosz Golaszewski wrote: > 2018-08-27 12:39 GMT+02:00 Mike Rapoport : > > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: > >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > >> an example of how to use this n

Re: [PATCH] perf annotate: fix parsing aarch64 branch instructions after objdump update

2018-08-27 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 23, 2018 at 07:10:47PM -0500, Kim Phillips escreveu: > Starting with binutils 2.28, aarch64 objdump adds comments to the > disassembly output to show the alternative names of a condition code [1]. > > It is assumed that commas in objdump comments could occur in other arches > now or in

Re: [PATCH 10/25] ubifs: add helper functions for authentication support

2018-08-27 Thread Richard Weinberger
Am Mittwoch, 4. Juli 2018, 14:41:22 CEST schrieb Sascha Hauer: > This patch adds the various helper functions needed for authentication > support. We need functions to hash nodes, to embed HMACs into a node and > to compare hashes and HMACs. Most functions first check if this > filesystem is authen

Re: [PATCH 07/25] ubifs: Store read superblock node

2018-08-27 Thread Richard Weinberger
Am Mittwoch, 4. Juli 2018, 14:41:19 CEST schrieb Sascha Hauer: > The superblock node is read/modified/written several times throughout > the UBIFS code. Instead of reading it from the device each time just > keep a copy in memory and write back the modified copy when necessary. > This patch helps f

Re: [PATCH 1/2] devres: provide devm_kstrdup_const()

2018-08-27 Thread kbuild test robot
Hi Bartosz, I love your patch! Perhaps something to improve: [auto build test WARNING on clk/clk-next] [also build test WARNING on v4.19-rc1 next-20180827] [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

[PATCH] vfio: fix potential memory leak in vfio_msi_cap_len

2018-08-27 Thread Li Qiang
Free the vdev->msi_perm in error path. Signed-off-by: Li Qiang --- drivers/vfio/pci/vfio_pci_config.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/pci/vfio_pci_config.c b/drivers/vfio/pci/vfio_pci_config.c index 115a36f6f403..62023b4a373b 100644 --- a/driv

Re: [PATCH] include/linux/compiler*.h: Use feature checking instead of version checks for attributes

2018-08-27 Thread Miguel Ojeda
Hi Joe, On Sun, Aug 26, 2018 at 8:50 PM, Joe Perches wrote: > On Sun, 2018-08-26 at 19:57 +0200, Miguel Ojeda wrote: >> Instead of using version checks per-compiler to define (or not) each >> attribute, >> use __has_attribute to test for them, following the cleanup started with >> commit 815f0dd

[PATCH] ARM: imx_v6_v7_defconfig: Make usbnet drivers builtin for boot

2018-08-27 Thread Leonard Crestez
Chips such as imx6sll and imx7ulp have no ethernet support so the common development usecase of nfs boot is supported via usb ethernet dongles. Add drivers for additional usbnet device directly into the kernel image image produced by the imx defconfig. This list is based on the usbnet devices sup

Re: [PATCH 1/2] Revert "x86/e820: put !E820_TYPE_RAM regions into memblock.reserved"

2018-08-27 Thread Masayoshi Mizuma
Hi Pavel, I would appreciate if you could send the feedback for the patch. Thanks! Masa On 08/24/2018 04:29 AM, Michal Hocko wrote: > On Fri 24-08-18 00:03:25, Naoya Horiguchi wrote: >> (CCed related people) > > Fixup Pavel email. > >> >> Hi Mizuma-san, >> >> Thank you for the report. >> The m

Re: [PATCH] HID: i2c-hid: Fix flooded incomplete report after S3 on Rayd touchscreen

2018-08-27 Thread Benjamin Tissoires
On Tue, Aug 21, 2018 at 10:55 AM AceLan Kao wrote: > > The incomplete report flooded after S3 and touchscreen becomes > malfunctioned. > [ 1367.646244] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplete report > (58/18785) > [ 1367.649471] i2c_hid i2c-CUST:00: i2c_hid_get_input: incomplet

Re: [PATCH 2/2] clk: pmc-atom: use devm_kstrdup_const()

2018-08-27 Thread Bartosz Golaszewski
2018-08-27 12:39 GMT+02:00 Mike Rapoport : > On Mon, Aug 27, 2018 at 10:21:01AM +0200, Bartosz Golaszewski wrote: >> Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as >> an example of how to use this new routine to shrink driver code. >> >> While we're at it: replace a call to

Re: [PATCH 1/1] axi-i2s: set period size register

2018-08-27 Thread Lars-Peter Clausen
On 08/24/2018 06:04 PM, Luca Ceresoli wrote: > The default value of the PERIOD_LEN register is 0 and results in > axi-i2s keeping TLAST always asserted in its AXI Stream output. > > When the AXI Stream is sent to a Xilinx AXI-DMA, this results in the > DMA generating an interrupt flood and ALSA pr

Re: [PATCH] HID: add support for Apple Magic Keyboards

2018-08-27 Thread Benjamin Tissoires
Hi Sean, On Thu, Aug 23, 2018 at 6:40 PM Sean O'Brien wrote: > > USB device > Vendor 05ac (Apple) > Device 026c (Magic Keyboard with Numeric Keypad) > > Bluetooth devices > Vendor 004c (Apple) > Device 0267 (Magic Keyboard) > Device 026c (Magic Keyboard wit

Re: [RFC/PATCH] regulator: Support regulators where voltage ranges are selectable

2018-08-27 Thread Matti Vaittinen
On Wed, Aug 22, 2018 at 02:05:07PM +0300, Matti Vaittinen wrote: > For example ROHM BD71837 and ROHM BD71847 Power management ICs have > regulators which provide multiple linear ranges. Ranges can be > selected by individual non contagious bit in vsel register. Add > regmap helper functions for sel

Re: [PATCH v2 30/32] selftests/ftrace: Add ftrace cpumask testcase

2018-08-27 Thread Masami Hiramatsu
On Fri, 24 Aug 2018 22:18:22 -0400 Steven Rostedt wrote: > On Fri, 17 Aug 2018 01:43:20 +0900 > Masami Hiramatsu wrote: > > > Add a testcase for tracing_cpumask with function tracer. > > > > Signed-off-by: Masami Hiramatsu > > --- > > .../selftests/ftrace/test.d/ftrace/func_cpumask.tc | 34

Re: [PATCH] Input: elants_i2c - Fix sw reset delays

2018-08-27 Thread Andi Shyti
Hi Derek, next time, could you please avoid using html mails when replying to the mailing list? They are not clear. On Fri, Aug 24, 2018 at 04:07:41PM -0700, dbasehore . wrote: > > > On Fri, Aug 24, 2018 at 1:49 AM Andi Shyti wrote: > > Hi Derek, > > > > > On Thu, Aug 23, 2018 at 04:

Re: [PATCH v2 0/8] Tegra SDHCI support HS400 on Tegra210 and Tegra186

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:26, Adrian Hunter wrote: > On 27/08/18 13:08, Thierry Reding wrote: >> On Fri, Aug 10, 2018 at 09:13:57PM +0300, Aapo Vienamo wrote: >>> Hi all, >>> This series implements support for HS400 signaling on Tegra210 and >>> Tegra186. This includes programming the DQS trimmer values, impl

Re: [PATCH v4] perf/x86/intel: Add support for MISPREDICT bit on Knights Landing cpus

2018-08-27 Thread Jacek Tomaka
> On 2 Aug 2018, at 6:07 pm, Thomas Gleixner wrote: > > The actiual purpose of sending V4 which is identical to V3 is? > >> >> Signed-off-by: Jacek Tomaka >> --- Yes, thanks. I missed it initially, sorry. > It's good practice to add a > > V3 -> V4: changed foo > V2 -> V3: fixed bla > ...

Re: removig ia64, was: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Jason Duerstock
I cannot speak to how widespread it has been adopted, but the linux (kernel) package for version 4.17.17 has been successfully built and installed for ia64 under Debian ports. There is clearly more work to do to get ia64 rehabilitated, but there are over 10,000 packages currently successfully buil

Re: [PATCH v2 00/40] Tegra SDHCI add support for HS200 and UHS signaling

2018-08-27 Thread Adrian Hunter
On 27/08/18 13:26, Adrian Hunter wrote: > On 27/08/18 13:10, Thierry Reding wrote: >> On Fri, Aug 10, 2018 at 09:08:02PM +0300, Aapo Vienamo wrote: >>> Hi all, >>> >>> This series implements support for faster signaling modes on Tegra >>> SDHCI controllers. This series consist of several parts: cha

[PATCH v5 6/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs

2018-08-27 Thread Niklas Cassel
Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), we unconditionally include the soc/qcom/Makefile. This opens up the possibility to compile test the code even when building for other architectures. Allow COMPILE_TEST for all qcom SoC Kconfigs, except for two Kconfigs that

[PATCH v5 3/6] soc: qcom: smp2p: Add select IRQ_DOMAIN

2018-08-27 Thread Niklas Cassel
Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smp2p.c: In function ‘qcom_smp2p_inbound_entry’: drivers/soc/qcom/smp2p.c:317:18: error: implicit declaration of function ‘irq_domain_ad

[PATCH v5 4/6] soc: qcom: smsm: Add select IRQ_DOMAIN

2018-08-27 Thread Niklas Cassel
Since we are using irq_domain_add_linear(), add a select on IRQ_DOMAIN. This is needed in order to be able to remove the depends on ARCH_QCOM. drivers/soc/qcom/smsm.c: In function ‘smsm_inbound_entry’: drivers/soc/qcom/smsm.c:411:18: error: implicit declaration of function ‘irq_domain_add_linear

[PATCH v5 5/6] soc: qcom: Remove bogus depends on OF from QCOM_SMD_RPM

2018-08-27 Thread Niklas Cassel
QCOM_SMD_RPM builds perfectly fine without CONFIG_OF set. Remove the bogus depends of OF. Signed-off-by: Niklas Cassel Reviewed-by: Vivek Gautam Reviewed-by: Vinod Koul --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/d

[PATCH v5 2/6] soc: qcom: llcc-slice: Add missing include of sizes.h

2018-08-27 Thread Niklas Cassel
Add missing include of sizes.h. drivers/soc/qcom/llcc-slice.c: In function ‘llcc_update_act_ctrl’: drivers/soc/qcom/llcc-slice.c:41:44: error: ‘SZ_4K’ undeclared #define LLCC_TRP_ACT_CTRLn(n) (n * SZ_4K) ^ Signed-off-by: Niklas Cassel Revi

[PATCH v5 0/6] soc: qcom: Allow COMPILE_TEST of qcom SoC Kconfigs

2018-08-27 Thread Niklas Cassel
Since commit cab673583d96 ("soc: Unconditionally include qcom Makefile"), we unconditionally include the soc/qcom/Makefile. This opens up the possibility to compile test the code even when building for other architectures. This patch series prepares and enables all but two Kconfigs to be compile

[PATCH v5 1/6] soc: qcom: smem: Add missing include of sizes.h

2018-08-27 Thread Niklas Cassel
Add missing include of sizes.h. drivers/soc/qcom/smem.c: In function ‘qcom_smem_get_ptable’: drivers/soc/qcom/smem.c:666:64: error: ‘SZ_4K’ undeclared ptable = smem->regions[0].virt_base + smem->regions[0].size - SZ_4K; ^ Signe

regression: broken ppc64le build with CONFIG_KERNEL_XZ=y

2018-08-27 Thread Michal Kubecek
Building 4.19-rc1 kernel with CONFIG_KERNEL_XZ=y fails with this error: BOOTCC arch/powerpc/boot/decompress.o In file included from arch/powerpc/boot/../../../lib/decompress_unxz.c:233, from arch/powerpc/boot/decompress.c:42: arch/powerpc/boot/../../../lib/xz/xz_crc32.c:18:10:

Re: removig ia64, was: Re: [PATCH 3/4] mm/tlb, x86/mm: Support invalidating TLB caches for RCU_TABLE_FREE

2018-08-27 Thread Peter Zijlstra
On Mon, Aug 27, 2018 at 01:57:08AM -0700, Christoph Hellwig wrote: > On Mon, Aug 27, 2018 at 09:47:01AM +0200, Peter Zijlstra wrote: > > sh is trivial, arm seems doable, with a bit of luck we can do 'rm -rf > > arch/ia64' leaving us with s390. > > Is removing ia64 a serious plan? I 'joked' about

[RESEND] PCI: imx: Initial imx7d pm support

2018-08-27 Thread Leonard Crestez
On imx7d the pcie-phy power domain is turned off in suspend and this can make the system hang after resume when attempting any read from PCI. Fix this by adding minimal suspend/resume code from the nxp internal tree. This will prepare for powering down on suspend and reset the block on resume. Co

Re: [PATCH v2 25/40] mmc: sdhci: Add a quirk to disable card clock during tuning

2018-08-27 Thread Adrian Hunter
On 10/08/18 21:08, Aapo Vienamo wrote: > Add a quirk to disable card clock when the tuning command is sent. > > This has to be done to prevent the SDHCI controller from hanging on > Tegra210. Without the quirk enabled there appears to be around 10% > chance that the tuning sequence will fail and t

[PATCH 1/3] xen/gntdev: fix up blockable calls to mn_invl_range_start

2018-08-27 Thread Michal Hocko
From: Michal Hocko 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers") has introduced blockable parameter to all mmu_notifiers and the notifier has to back off when called in !blockable case and it could block down the road. The above commit implemented that for mn_invl_range_

[PATCH 3/3] Revert "mm, mmu_notifier: annotate mmu notifiers with blockable invalidate callbacks"

2018-08-27 Thread Michal Hocko
From: Michal Hocko This reverts commit 5ff7091f5a2ca1b7b642ca0dbdede8f693a56926. MMU_INVALIDATE_DOES_NOT_BLOCK flags was the only one used and it is no longer needed since 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers"). We now have a full support for per range !blocking b

[PATCH 0/3] mmu_notifiers follow ups

2018-08-27 Thread Michal Hocko
Hi Andrew, Tetsuo has noticed some fallouts from 93065ac753e4 ("mm, oom: distinguish blockable mode for mmu notifiers"). One of them has been fixed and picked up by AMD/DRM maintainer [1]. XEN issue is fixed by patch 1. I have also clarified expectations about blockable semantic of invalidate_range

[PATCH 2/3] mm, mmu_notifier: be explicit about range invalition non-blocking mode

2018-08-27 Thread Michal Hocko
From: Michal Hocko If invalidate_range_start is called for !blocking mode then all callbacks have to guarantee they will no block/sleep. The same obviously applies to invalidate_range_end because this operation pairs with the former and they are called from the same context. Make sure this is app

<    1   2   3   4   5   6   7   >