[PATCH v3 00/10] arm64: dts: hi3660: add more device nodes

2017-08-14 Thread Guodong Xu
This patchset adds more device nodes for hi3660 and hikey960, including: - cpu idle states - L2 cache - PMU - OP-TEE - reboot - pstore - DMA - watchdog Patch 7 fixes an issue in mmc nodes, by adding 'reset' Patch 8 change bluetooth uart max-speed to 3Mbps HiKey960 is one of 96boards. For

[PATCH v3 02/10] arm64: dts: hi3660: add L2 cache topology

2017-08-14 Thread Guodong Xu
From: Leo Yan This patch adds the L2 cache topology on 96boards Hikey960. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660

[PATCH v3 03/10] arm64: dts: hi3660: add pmu dt node for hi3660

2017-08-14 Thread Guodong Xu
From: YiPing Xu Add pmu dt node for hi3660 Signed-off-by: YiPing Xu Signed-off-by: Zhong Kaihua Signed-off-by: Leo Yan Tested-by: Jumana Mundichipparakkal --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/

[PATCH v3 01/10] arm64: dts: hi3660: enable idle states

2017-08-14 Thread Guodong Xu
From: Leo Yan There are two clusters on the Hi3660, the first one is Cortex-A53 based and the other one is Cortex-A73 based. These two clusters have different idle states. Thanks to Daniel Lezcano's recent changes, the generic ARM cpuidle driver can now support several clusters with different id

[PATCH v3 06/10] arm64: dts: hikey960: Add pstore support

2017-08-14 Thread Guodong Xu
This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey960. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/b

[PATCH v3 07/10] arm64: dts: hi3660: Reset the mmc hosts

2017-08-14 Thread Guodong Xu
Add reset-names = "reset" into mmc nodes. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 5fd5686..41841f7 100644 --- a/arch/

[PATCH v3 04/10] arm64: dts: hikey960: Add optee node

2017-08-14 Thread Guodong Xu
From: Victor Chong This patch adds op-tee node for hikey960 Signed-off-by: Victor Chong --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hik

[PATCH v3 05/10] arm64: dts: hikey960: Add support for syscon-reboot-mode

2017-08-14 Thread Guodong Xu
Add support to hikey960 dts for the syscon-reboot-mode driver. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot

[PATCH v3 09/10] arm64: dts: hi3660: add bindings for DMA

2017-08-14 Thread Guodong Xu
From: Wang Ruyi Add bindings for DMA. Signed-off-by: Wang Ruyi Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi inde

[PATCH v3 10/10] arm64: dts: hi3660: enable watchdog

2017-08-14 Thread Guodong Xu
From: Leo Yan This patch is to add watchdog binding for Hi3660 on Hikey960 board. Cc: Guodong Xu Cc: Zhong Kaihua Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dt

[PATCH v3 08/10] arm64: dts: hikey960: change bluetooth uart max-speed to 3mbps

2017-08-14 Thread Guodong Xu
Update bluetooth UART max-speed to 3Mbps Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts inde

Re: [PATCH v2] Do not disable driver and bus shutdown hook when class shutdown hook is set.

2017-08-14 Thread Jarkko Sakkinen
On Fri, Aug 11, 2017 at 03:44:43PM +0200, Michal Suchanek wrote: > As seen from the implementation of the single class shutdown hook this > is not very sound design. > > Rename the class shutdown hook to shutdown_pre to make it clear it runs > before the driver shutdown hook. > > Signed-off-by: M

[tip:x86/cache] x86/intel_rdt/cqm: Clear the default RMID during hotcpu

2017-08-14 Thread tip-bot for Vikas Shivappa
Commit-ID: eda61c265f3656be8345fdf0334b3a77829437fc Gitweb: http://git.kernel.org/tip/eda61c265f3656be8345fdf0334b3a77829437fc Author: Vikas Shivappa AuthorDate: Wed, 9 Aug 2017 11:46:33 -0700 Committer: Thomas Gleixner CommitDate: Mon, 14 Aug 2017 11:47:46 +0200 x86/intel_rdt/cqm: Cle

Re: [PATCH v2 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
2017-08-12 13:43 GMT+02:00 Jonathan Cameron : > On Tue, 1 Aug 2017 16:50:26 +0200 > Bartosz Golaszewski wrote: > >> Implement a simple, irq_work-based framework for simulating >> interrupts. Currently the API exposes routines for initializing and >> deinitializing the simulator object, enqueueing

[tip:x86/cache] x86/intel_rdt: Modify the intel_pqr_state for better performance

2017-08-14 Thread tip-bot for Vikas Shivappa
Commit-ID: a9110b552d44fedbd1221eb0e5bde81da32d9350 Gitweb: http://git.kernel.org/tip/a9110b552d44fedbd1221eb0e5bde81da32d9350 Author: Vikas Shivappa AuthorDate: Wed, 9 Aug 2017 11:46:34 -0700 Committer: Thomas Gleixner CommitDate: Mon, 14 Aug 2017 11:47:47 +0200 x86/intel_rdt: Modify

Build regressions/improvements in v4.13-rc5

2017-08-14 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.13-rc5[1] compared to v4.12[2]. Summarized: - build errors: +/- - build warnings: +1518/-1205 JFYI, when comparing v4.13-rc5[1] to v4.13-rc4[3], the summaries are: - build errors: +/-1 - build warnings: +739/-768 Hap

Re: [PATCH] uapi/linux/quota.h: Do not include linux/errno.h

2017-08-14 Thread Jan Kara
On Fri 11-08-17 16:24:15, Florian Weimer wrote: > linux/errno.h is very sensitive to coordination with libc headers. > Nothing in linux/quota.h needs it, so this change allows using > this header in more contexts. > > Signed-off-by: Florian Weimer Thanks! Added to my tree.

Re: New assembler warnings with binutils 2.29

2017-08-14 Thread Ramana Radhakrishnan
On Mon, Aug 14, 2017 at 09:59:02AM +0100, Catalin Marinas wrote: On Fri, Aug 11, 2017 at 10:26:06AM +0100, Ard Biesheuvel wrote: > On 11 August 2017 at 10:22, Catalin Marinas wrote: > > On Thu, Aug 10, 2017 at 01:13:22PM -0700, Laura Abbott wrote: > >> Fedora rawhide recently upgraded to binutil

[PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-14 Thread Hui Zhu
After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not return -EBUSY if zspage is not inuse") zs_page_migrate can handle the ZS_EMPTY zspage. But I got some false in zs_page_isolate: if (get_zspage_inuse(zspage) == 0) { spin_unlock(&class->loc

Re: Build regressions/improvements in v4.13-rc5

2017-08-14 Thread Geert Uytterhoeven
On Mon, Aug 14, 2017 at 11:54 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.13-rc5[1] to v4.13-rc4[3], the summaries are: > - build errors: +/-1 Hence nothing to report. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- g

Re: [PATCH v3 1/2] Input: axp20x-pek: use driver_data of platform_device_id instead of extended attributes

2017-08-14 Thread Chen-Yu Tsai
On Wed, Aug 9, 2017 at 5:45 PM, Quentin Schulz wrote: > To prepare an upcoming patch adding support for another PMIC that has > different startup and shutdown time, use driver_data of > platform_device_id instead of a fixed extended device attribute. > > By doing so, we also remove a lot of nested

Re: [PATCH v2 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Jonathan Cameron
On 14 August 2017 17:54:22 GMT+08:00, Bartosz Golaszewski wrote: >2017-08-12 13:43 GMT+02:00 Jonathan Cameron : >> On Tue, 1 Aug 2017 16:50:26 +0200 >> Bartosz Golaszewski wrote: >> >>> Implement a simple, irq_work-based framework for simulating >>> interrupts. Currently the API exposes routin

Re: [PATCH 1/2] dt-bindings: i2c: Add MediaTek MT7622 i2c binding

2017-08-14 Thread Jun Gao
On Mon, 2017-08-14 at 11:36 +0200, Matthias Brugger wrote: > > On 08/09/2017 09:43 AM, Jun Gao wrote: > > From: Jun Gao > > > > Add MT7622 i2c binding to binding file. Compare to MT8173 i2c > > controller, MT7622 limit message size to 255, and not support > > 4GB DMA mode. > > > > Signed-off-by

Re: [PATCH v2] tpm/tpm_crb: Access locality for only CRB_START method

2017-08-14 Thread Jarkko Sakkinen
On Sat, Aug 12, 2017 at 08:22:49PM -0500, Jiandi An wrote: > For ARM64, the locality is handled by Trust Zone in FW. > The layout does not have crb_regs_head. It is hitting > the following line. > dev_warn(dev, FW_BUG "Bad ACPI memory layout"); > > Current code excludes CRB_FL_ACPI_START and when

Re: [PATCH] arm64: allwinner: a64: pine64: Use dcdc1 regulator for mmc0

2017-08-14 Thread Chen-Yu Tsai
Hi, On Sat, Aug 12, 2017 at 1:40 PM, Jagan Teki wrote: > From: Jagan Teki > > Since current tree support AXP803 regulators, replace > fixed regulator with AXP803 dcdc1 regulator. > > Tested on pine64. > > Signed-off-by: Jagan Teki There was a lot of (heated) discussion [1] around this change.

Re: [PATCH] genirq: remove redundant ->handle_irq assignment

2017-08-14 Thread Thomas Gleixner
On Thu, 10 Aug 2017, Masahiro Yamada wrote: > This function has "desc->handle_irq = handle;" a few lines above. > The second assignment is redundant. It's not as redundant as you might think. You missed to read the comment above that. See also commit 1e12c4a9393b7. Thanks, tglx

Re: Do we really need d_weak_revalidate???

2017-08-14 Thread Jeff Layton
On Mon, 2017-08-14 at 09:36 +1000, NeilBrown wrote: > On Fri, Aug 11 2017, Jeff Layton wrote: > > > On Fri, 2017-08-11 at 05:55 +, Trond Myklebust wrote: > > > On Fri, 2017-08-11 at 14:31 +1000, NeilBrown wrote: > > > > Funny story. 4.5 years ago we discarded the FS_REVAL_DOT superblock > > >

Re: [PATCH] genirq: fix for_each_action_of_desc() macro

2017-08-14 Thread Daniel Lezcano
On 09/08/2017 08:32, Masahiro Yamada wrote: > struct irq_desc does not have a member named "act". The correct > name is "action". > > Currently, all users of this macro use an iterator named "action". > If a different name is used, it will cause a build error. > > Fixes: f944b5a7aff0 ("genirq: U

[tip:irq/core] genirq: Fix for_each_action_of_desc() macro

2017-08-14 Thread tip-bot for Masahiro Yamada
Commit-ID: 163616cf2f6ab7a8e37452ec00320039ab65bd45 Gitweb: http://git.kernel.org/tip/163616cf2f6ab7a8e37452ec00320039ab65bd45 Author: Masahiro Yamada AuthorDate: Wed, 9 Aug 2017 15:32:21 +0900 Committer: Thomas Gleixner CommitDate: Mon, 14 Aug 2017 12:10:37 +0200 genirq: Fix for_each_

[PATCH 2/2] tracing: Fix kmemleak in set_trigger_filter

2017-08-14 Thread Chunyu Hu
Found this kmemleak in error path when setting event trigger filter. The steps is as below. cd /sys/kernel/debug/tracing/events/irq/irq_handler_entry echo 'enable_event:kmem:kmalloc:3 if nr_rq > 1' > trigger echo 'enable_event:kmem:kmalloc:3 if irq > 31' > trigger echo 'enable_event:kmem:kmalloc:3

[PATCH 1/2] tracing: Fix kmemleak in tracing_map_array_free

2017-08-14 Thread Chunyu Hu
kmemleak reported the below leak when I was doing clear of the hist trigger. With this patch, the kmeamleak is gone. unreferenced object 0x94322b63d760 (size 32): comm "bash", pid 1522, jiffies 4403687962 (age 2442.311s) hex dump (first 32 bytes): 00 01 00 00 04 00 00 00 08 00 00 00 ff

Re: [PATCH RESEND] blackfin: merge the two TWI header files

2017-08-14 Thread Wolfram Sang
On Sun, Aug 13, 2017 at 04:21:17PM +0200, Wolfram Sang wrote: > There seems to be no need for separate ones since all users include both > files anyhow. Merge them because include/linux/i2c is to be deprecated. > > Signed-off-by: Wolfram Sang > --- > > Reseding, rebased on v4.13-rc4. Now subscri

Re: [[PATCH v1] 08/37] [CIFS] SMBD: Define packet format for SMBD data transfer message

2017-08-14 Thread Jeff Layton
On Sun, 2017-08-13 at 03:15 -0700, Christoph Hellwig wrote: > > +// SMBD data transfer packet with payload [MS-SMBD] 2.2.3 > > +struct smbd_data_transfer { > > + __le16 credits_requested; > > + __le16 credits_granted; > > + __le16 flags; > > + __le16 reserved; > > + __le32 remaining_data_

Re: [PATCH v7 2/5] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers.

2017-08-14 Thread Thomas Gleixner
On Wed, 9 Aug 2017, David Daney wrote: > #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY Can we please make them conditional in order not to bloat all kernels with it? Like we do for handle_edge_eoi_irq() ? > /** > + * handle_fasteoi_edge_irq - irq handler for edge hierarchy > + * stacked on trans

[PATCH v2] clk: msm8996-gcc: add missing smmu clks

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds missing LPASS smmu clks which are required by the audio driver. Signed-off-by: Srinivas Kandagatla --- Changes since v1: - Added halt_check flag as suggested by Stephen Boyd drivers/clk/qcom/gcc-msm8996.c | 28 +++

Re: perf bpf: Reworked fix endianness problem when loading parameters in prologue

2017-08-14 Thread Wangnan (F)
Hi Thomas, Your patch looks good to me. I've tested in my environment and it works. Please resend it to lkml and let Arnaldo to collect it. Thank you. On 2017/8/14 17:47, Thomas Richter wrote: Perf BPF prologue generator unconditionally fetches 8 bytes for function parameters, which causes pro

Re: New assembler warnings with binutils 2.29

2017-08-14 Thread Catalin Marinas
On Mon, Aug 14, 2017 at 10:55:48AM +0100, Ramana Radhakrishnan wrote: > On Mon, Aug 14, 2017 at 09:59:02AM +0100, Catalin Marinas wrote: > > On Fri, Aug 11, 2017 at 10:26:06AM +0100, Ard Biesheuvel wrote: > > > On 11 August 2017 at 10:22, Catalin Marinas > > > wrote: > > > > On Thu, Aug 10, 2017

Re: [PATCH v2 1/4] mmc: sdhci: enable/disable the clock in sdhci_pltfm_suspend/resume

2017-08-14 Thread Adrian Hunter
On 03/08/17 04:44, Masahiro Yamada wrote: > This commit provides similar cleanups as commit 83eacdfa2529 ("mmc: > sdhci: disable the clock in sdhci_pltfm_unregister()") did for > unregister hooks. > > Some drivers duplicate code to handle pltfm_host->clk in their own > hooks. The clock can be han

Re: [PATCH v2 1/4] mmc: sdhci: enable/disable the clock in sdhci_pltfm_suspend/resume

2017-08-14 Thread Adrian Hunter
On 03/08/17 04:44, Masahiro Yamada wrote: > This commit provides similar cleanups as commit 83eacdfa2529 ("mmc: > sdhci: disable the clock in sdhci_pltfm_unregister()") did for > unregister hooks. > > Some drivers duplicate code to handle pltfm_host->clk in their own > hooks. The clock can be han

Re: [PATCH v2 2/4] mmc: sdhci: remove #indef CONFIG_PM around function declarations

2017-08-14 Thread Adrian Hunter
On 03/08/17 04:44, Masahiro Yamada wrote: > We need not surround declarations with #ifdef. Besides, drivers may > want to call these from PM callbacks marked with __maybe_unused. No, we use #ifdef not __maybe_unused, and removing the #ifdef is misleading. > > Signed-off-by: Masahiro Yamada > -

[PATCH v6] arm64: allwinner: a64: Add initial NanoPi A64 support

2017-08-14 Thread Jagan Teki
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, 64-bit Quad-core Cortex-A53@648MHz to 1.152GHz, DVFS - 1GB DDR3 RAM - MicroSD - Gigabit Ethernet (RTL8211E) - Wi-Fi 802.11b/g/

Re: [PATCH v2 1/5] iio: srf08: add device tree binding for srf02 and srf10

2017-08-14 Thread Andreas Klinger
Wolfram Sang schrieb am Mon, 14. Aug 11:11: > On Mon, Aug 14, 2017 at 10:59:41AM +0200, Andreas Klinger wrote: > > add trivial device tree binding "devantech,srf02" and "devantech,srf10" > > > > Signed-off-by: Andreas Klinger > > Acked-by: Jonathan Cameron > > --- > > Documentation/devicetree/

Re: [PATCH v4 5/9] perf annotate stdio: Support --show-nr-samples option

2017-08-14 Thread Taeung Song
Hi Arnaldo, On 08/01/2017 03:24 PM, Taeung Song wrote: On 07/29/2017 01:26 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Jul 28, 2017 at 01:16:16AM +0900, Taeung Song escreveu: Add --show-nr-samples option to perf-annotate so that it corresponds with perf-report. So this is not that intuitiv

Re: [PATCH v6 17/17] powerpc/vas: Document FTW API/usage

2017-08-14 Thread Michael Neuling
On Tue, 2017-08-08 at 16:07 -0700, Sukadev Bhattiprolu wrote: > Document the usage of the VAS Fast thread-wakeup API. > > Thanks for input/comments from Benjamin Herrenschmidt, Michael Neuling, > Michael Ellerman, Robert Blackmore, Ian Munsie, Haren Myneni, Paul Mackerras. > > Cc:Ian Munsie > Cc

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

2017-08-14 Thread Jagan Teki
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 - Debug TTL UART - HDMI - LCD - IR receiver - 5V DC power supply Signed-

[PATCH -next 2/2] zram: fix typo in comment

2017-08-14 Thread Yisheng Xie
ZRAM_SAME means page consists the same element not the entirely zero page. Signed-off-by: Yisheng Xie --- drivers/block/zram/zram_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/zram/zram_drv.h b/drivers/block/zram/zram_drv.h index 5573dc2..31762db 100644

[PATCH -next 1/2] zram: fix compr_data_size stat

2017-08-14 Thread Yisheng Xie
The compr_data_size is a stat for compressed size of pages stored, which should be updated when we compresse a page. Meanwhile fix a typo in comment: * read_from_bdev_async() return 1 to avoid call page_endio() in zram_rw_page() Signed-off-by: Yisheng Xie --- Hi Minchan, It this ok for you to fo

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

2017-08-14 Thread Jarkko Sakkinen
On Fri, Aug 11, 2017 at 11:30:19AM -0400, Mimi Zohar wrote: > On Fri, 2017-08-11 at 14:14 +0300, Jarkko Sakkinen wrote: > > On Wed, Aug 09, 2017 at 11:00:36PM +0200, Peter Huewe wrote: > > > Hi Ken, > > > (again speaking only on my behalf, not my employer) > > > > > > > Does anyone know of platfor

[PATCH 0/5] add support for relative references in special sections

2017-08-14 Thread Ard Biesheuvel
This adds support for emitting special sections such as initcall arrays, PCI fixups and tracepoints as relative references rather than absolute references. This reduces the size by 50% on 64-bit architectures, but more importantly, it removes the need for carrying relocation metadata for these sect

[PATCH 1/5] arch: enable relative relocations for arm64, power, x86, s390 and x86

2017-08-14 Thread Ard Biesheuvel
Before updating certain subsystems to use place relative 32-bit relocations in special sections, to save space and reduce the number of absolute relocations that need to be processed at runtime by relocatable kernels, introduce a new Kconfig symbol and define it for some architectures that should

[PATCH 2/5] module: use relative references for __ksymtab entries

2017-08-14 Thread Ard Biesheuvel
An ordinary arm64 defconfig build has ~64 KB worth of __ksymtab entries, each consisting of two 64-bit fields containing absolute references, to the symbol itself and to a char array containing its name, respectively. When we build the same configuration with KASLR enabled, we end up with an addit

[PATCH 4/5] drivers: pci: add support for relative addressing in quirk tables

2017-08-14 Thread Ard Biesheuvel
Allow the PCI quirk tables to be emitted in a way that avoids absolute references to the hook functions. This reduces the size of the entries, and, more importantly, makes them invariant under runtime relocation (e.g., for KASLR) Cc: Bjorn Helgaas Signed-off-by: Ard Biesheuvel --- drivers/pci/q

[PATCH 3/5] init: allow initcall tables to be emitted using relative references

2017-08-14 Thread Ard Biesheuvel
Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels. Cc: Petr Mladek Cc: Sergey Senozhatsky Cc: Steven Rostedt Cc: James Morris Cc: "Serge E. Hallyn" Signed-off-by: Ard

[PATCH 5/5] kernel: tracepoints: add support for relative references

2017-08-14 Thread Ard Biesheuvel
To avoid the need for relocating absolute references to tracepoint structures at boot time when running relocatable kernels (which may take a disproportionate amount of space), add the option to emit these tables as relative references instead. Cc: Steven Rostedt Cc: Ingo Molnar Signed-off-by: A

Re: [PATCH -next] zram: fix compr_data_size stat

2017-08-14 Thread Yisheng Xie
On 2017/8/14 17:34, Minchan Kim wrote: > On Mon, Aug 14, 2017 at 05:24:16PM +0800, Yisheng Xie wrote: >> Hi, Minchan >> >> Thanks for your comment! >> On 2017/8/14 16:08, Minchan Kim wrote: >>> Hi Yisheng, >>> >>> Thanks for the all fixup! >>> A minor nitpick below: >>> >>> On Fri, Aug 11, 2017 a

[tip:x86/platform] MAINTAINERS: Add missed file for Hyper-V

2017-08-14 Thread tip-bot for Andy Shevchenko
Commit-ID: db46e14f8a3c2657b8f777d422d7dfc7e61e52e9 Gitweb: http://git.kernel.org/tip/db46e14f8a3c2657b8f777d422d7dfc7e61e52e9 Author: Andy Shevchenko AuthorDate: Sun, 13 Aug 2017 16:34:44 +0300 Committer: Ingo Molnar CommitDate: Mon, 14 Aug 2017 12:45:39 +0200 MAINTAINERS: Add missed

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 01:51:30PM +0300, Jarkko Sakkinen wrote: > On Fri, Aug 11, 2017 at 11:30:19AM -0400, Mimi Zohar wrote: > > On Fri, 2017-08-11 at 14:14 +0300, Jarkko Sakkinen wrote: > > > On Wed, Aug 09, 2017 at 11:00:36PM +0200, Peter Huewe wrote: > > > > Hi Ken, > > > > (again speaking onl

Re: perf: multiple mmap of fd behavior on x86/ARM

2017-08-14 Thread Will Deacon
On Fri, Aug 11, 2017 at 04:53:30PM +0200, Peter Zijlstra wrote: > On Fri, Aug 11, 2017 at 12:06:39PM +0100, Mark Rutland wrote: > > On Fri, Aug 11, 2017 at 12:52:52PM +0200, Peter Zijlstra wrote: > > > On Fri, Aug 11, 2017 at 11:01:27AM +0100, Mark Rutland wrote: > > > > On Thu, Aug 10, 2017 at 02:

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-14 Thread Ingo Molnar
* Byungchul Park wrote: > On Thu, Aug 10, 2017 at 01:10:19PM +0200, Ingo Molnar wrote: > > > > * Byungchul Park wrote: > > > > > Change from v7 > > > - rebase on latest tip/sched/core (Jul 26 2017) > > > - apply peterz's suggestions > > > - simplify code of crossrelease_{hist/soft/hard}

Re: perf bpf: Reworked fix endianness problem when loading parameters in prologue

2017-08-14 Thread Thomas-Mich Richter
On 08/14/2017 12:30 PM, Wangnan (F) wrote: > Hi Thomas, > > Your patch looks good to me. I've tested in my environment and it works. > Please resend it to lkml and let Arnaldo to collect it. > > Thank you. > Will do, I take this as an Acked-by and Tested-by, ok? Thanks -- Thomas Richter, Dept

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

2017-08-14 Thread Adrian Hunter
On 03/08/17 04:44, Masahiro Yamada wrote: > Currently, the probe function initializes the PHY, but PHY settings > are lost during the sleep state. Restore the PHY registers when > resuming. > > To facilitate this, split sdhci_cdns_phy_init() into the DT parse > part and PHY update part so that th

Re: [PATCH 4/4] selinux: Adjust five checks for null pointers

2017-08-14 Thread Yanhao Mo
On Sun, Aug 13, 2017 at 04:50:07PM +0200, SF Markus Elfring wrote: > > Comparison to NULL could be written … > > Thus fix affected source code places. I think this is just a matter of personal preference. signature.asc Description: PGP signature

[PATCH] [media] media: imx: depends on V4L2 sub-device userspace API

2017-08-14 Thread Cihangir Akturk
This driver uses various v4l2_subdev_get_try_*() functions provided by V4L2 sub-device userspace API. Current configuration of Kconfig file allows us to enable VIDEO_IMX_MEDIA without enabling this API. This breaks the build of driver. Depend on VIDEO_V4L2_SUBDEV_API to fix this issue. Signed-off

Re: [PATCH v6 01/17] powerpc/vas: Define macros, register fields and structures

2017-08-14 Thread Michael Ellerman
Nicholas Piggin writes: > On Mon, 14 Aug 2017 15:21:48 +1000 > Michael Ellerman wrote: > >> Sukadev Bhattiprolu writes: > >> > arch/powerpc/include/asm/vas.h | 35 >> > arch/powerpc/include/uapi/asm/vas.h | 25 +++ >> >> I thought we weren't exposing VAS to userspace yet? >> >

Re: perf bpf: Reworked fix endianness problem when loading parameters in prologue

2017-08-14 Thread Wangnan (F)
OK. On 2017/8/14 18:58, Thomas-Mich Richter wrote: On 08/14/2017 12:30 PM, Wangnan (F) wrote: Hi Thomas, Your patch looks good to me. I've tested in my environment and it works. Please resend it to lkml and let Arnaldo to collect it. Thank you. Will do, I take this as an Acked-by and Teste

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

2017-08-14 Thread Wadim Egorov
Hi Sandy, I am not familiar with the rockchip drm driver, but don't you have to add the rockchip_lvds_driver as a sub driver in rockchip_drm_init()? Otherwise it will be not bound by component_bind_all(). Regards, Wadim Am 14.08.2017 um 09:04 schrieb Sandy Huang: > This adds support for Rockchip

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-14 Thread Byungchul Park
On Mon, Aug 14, 2017 at 12:57:48PM +0200, Ingo Molnar wrote: > > * Byungchul Park wrote: > > > On Thu, Aug 10, 2017 at 01:10:19PM +0200, Ingo Molnar wrote: > > > > > > * Byungchul Park wrote: > > > > > > > Change from v7 > > > > - rebase on latest tip/sched/core (Jul 26 2017) > > > >

Re: [PATCH 1/2] kmemleak: Delete an error message for a failed memory allocation in two functions

2017-08-14 Thread Catalin Marinas
On Mon, Aug 14, 2017 at 11:35:02AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 14 Aug 2017 10:50:22 +0200 > > Omit an extra message for a memory allocation failure in these functions. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus

[PATCH 0/2] zpool: Adjustments for zpool_create_pool()

2017-08-14 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 14 Aug 2017 13:12:34 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Use common error handling code mm/zpool.c | 10 -- 1 file changed,

[PATCH 1/2] zpool: Delete an error message for a failed memory allocation in zpool_create_pool()

2017-08-14 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 14 Aug 2017 12:57:16 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- mm/zpool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/zpool

[PATCH 2/2] zpool: Use common error handling code in zpool_create_pool()

2017-08-14 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 14 Aug 2017 13:04:33 +0200 Add a jump target so that a bit of exception handling can be better reused in this function. Signed-off-by: Markus Elfring --- mm/zpool.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mm/zpool.c b/mm/zpoo

Re: [PATCH v6 14/17] powerpc: Add support for setting SPRN_TIDR

2017-08-14 Thread Michael Ellerman
Sukadev Bhattiprolu writes: > We need the SPRN_TIDR to bet set for use with fast thread-wakeup > (core-to-core wakeup). Each thread in a process needs to have a > unique id within the process but as explained below, for now, we > assign globally unique thread ids to all threads in the system. E

Re: [PATCH] dt-bindings: watchdog: mediatek: add support for MediaTek MT7623 and MT7622 SoC

2017-08-14 Thread Matthias Brugger
On 08/11/2017 04:36 AM, Sean Wang wrote: On Thu, 2017-08-10 at 12:43 -0500, Rob Herring wrote: On Fri, Aug 04, 2017 at 03:14:07PM +0800, sean.w...@mediatek.com wrote: From: Sean Wang This updates dt-binding documentation for MediaTek MT7622 and MT7623 SoC. For the both SoCs supported all re

[PATCH v3 2/3] irq/irq_sim: add a devres variant of irq_sim_init()

2017-08-14 Thread Bartosz Golaszewski
Add a resource managed version of irq_sim_init(). This can be conveniently used in device drivers. Signed-off-by: Bartosz Golaszewski Acked-by: Jonathan Cameron --- Documentation/driver-model/devres.txt | 1 + include/linux/irq_sim.h | 4 kernel/irq_sim.c

Re: [PATCH 3/4] dt-bindings: mt8173-mtu3: add generic compatible and rename file

2017-08-14 Thread Matthias Brugger
On 08/11/2017 09:00 AM, Chunfeng Yun wrote: On Thu, 2017-08-10 at 21:54 -0500, Rob Herring wrote: On Tue, Aug 08, 2017 at 01:42:51PM +0800, Chunfeng Yun wrote: The mt8173-mtu3.txt actually holds the bindings for all mediatek SoCs with usb3 DRD IP, so add a generic compatible and change the na

[PATCH v3 3/3] gpio: mockup: use irq_sim

2017-08-14 Thread Bartosz Golaszewski
Shrink the driver by removing the code dealing with dummy interrupts and replacing it with calls to the irq_sim API. Signed-off-by: Bartosz Golaszewski Acked-by: Jonathan Cameron Reviewed-by: Linus Walleij --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-mockup.c | 77 +---

[PATCH v3 0/3] simulated interrupts

2017-08-14 Thread Bartosz Golaszewski
Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated interrupts that can be 'fired' from process context when needed and requested just like normal interrupts. This is useful for testing and development purposes. Currently this code is reimplemented by every user. This series pr

[iscsi] Deadlock occurred when network is in error

2017-08-14 Thread Tangchen (UVP)
Hi, I found two hangup problems between iscsid service and iscsi module. And I can reproduce one of them in the latest kernel always. So I think the problems really exist. It really took me a long time to find out why due to my lack of knowledge of iscsi. But I cannot find a good way to solve

[PATCH v3 1/3] irq/irq_sim: add a simple interrupt simulator framework

2017-08-14 Thread Bartosz Golaszewski
Implement a simple, irq_work-based framework for simulating interrupts. Currently the API exposes routines for initializing and deinitializing the simulator object, enqueueing the interrupts and retrieving the allocated interrupt numbers based on the offset of the dummy interrupt in the simulator s

Re: [v6 04/15] mm: discard memblock data later

2017-08-14 Thread Michal Hocko
On Fri 11-08-17 15:00:47, Pasha Tatashin wrote: > Hi Michal, > > This suggestion won't work, because there are arches without memblock > support: tile, sh... > > So, I would still need to have: > > #ifdef CONFIG_MEMBLOCK in page_alloc, or define memblock_discard() stubs in > nobootmem headfile.

[PATCH 3/3] arm64: dts: apq8096-db820c: always enable regulator LS expansion

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla 1.8v regulator on LS expansion should be left as always to comply with 96boards spec. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.

[PATCH 2/3] arm64: dts: apq8096-db820c: Enable on board 3 pcie root complex

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds enables 3 instances of root complexes which are exposed on DB820c board. 3 Instances are terminted as below PCIE0 => QCA6174 PCIE1 => MINI PCIE CARD PCIE2 => GBE ETHERNET Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8096-db820c.dt

[PATCH 1/3] arm64: dts: qcom: msm8996: add support to pcie

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to 3 pcie root complexes found on MSM8996. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 195 + arch/arm64/boot/dts/qcom/msm8996.dtsi | 166 2 files

Re: [v6 04/15] mm: discard memblock data later

2017-08-14 Thread Michal Hocko
On Fri 11-08-17 12:22:52, Pasha Tatashin wrote: > >>I will address your comment, and send out a new patch. Should I send it out > >>separately from the series or should I keep it inside? > > > >I would post it separatelly. It doesn't depend on the rest. > > OK, I will post it separately. No it doe

[RESEND PATCH 3/3] arm64: dts: apq8096-db820c: never disable regulator on LS expansion

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla 1.8v regulator on LS expansion should not be disabled anytime to comply with 96boards spec. So make this explicit with always-on flag. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff

[RESEND PATCH 1/3] arm64: dts: qcom: msm8996: add support to pcie

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds support to 3 pcie root complexes found on MSM8996. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 195 + arch/arm64/boot/dts/qcom/msm8996.dtsi | 166 2 files

[RESEND PATCH 2/3] arm64: dts: apq8096-db820c: Enable on board 3 pcie root complex

2017-08-14 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch adds enables 3 instances of root complexes which are exposed on DB820c board. 3 Instances are terminted as below PCIE0 => QCA6174 PCIE1 => MINI PCIE CARD PCIE2 => GBE ETHERNET Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/apq8096-db820c.dt

[PATCH 00/11] ASoC: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make snd_soc_platform_driver const. Bhumika Goyal (11): ASoC: codecs: make snd_soc_platform_driver const ASoC: Intel: make snd_soc_platform_driver const ASoC: fsl: make snd_soc_platform_driver const ASoC: nuc900: make snd_soc_platform_driver const ASoC: omap: make snd_soc_platform_driver

[PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make these const as they are only passed as the 2nd argument to the function snd_soc_register_platform, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/fsl/imx-pcm-fiq.c | 2 +- sound/soc/fsl/mpc5200_dma.c | 2 +- 2 files changed, 2 insertions(+), 2 dele

[PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make these const as they are either passed as the 2nd argument to the function devm_snd_soc_register_platform or snd_soc_register_platform, and the arguments are of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/codecs/cs47l24.c| 2 +- sound/soc/codecs/rt5514-s

[PATCH 02/11] ASoC: Intel: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make these const as they are only passed as the 2nd argument to the function snd_soc_register_platform, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- sound/

[PATCH 04/11] ASoC: nuc900: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
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/nuc900/nuc900-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/nuc9

Re: [PATCH 1/2] kmemleak: Delete an error message for a failed memory allocation in two functions

2017-08-14 Thread SF Markus Elfring
>> +++ b/mm/kmemleak.c >> @@ -555,7 +555,6 @@ static struct kmemleak_object *create_object(unsigned >> long ptr, size_t size, >> >> object = kmem_cache_alloc(object_cache, gfp_kmemleak_mask(gfp)); >> if (!object) { >> -pr_warn("Cannot allocate a kmemleak_object structure\n"

[PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make these const as they are 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/pxa/mmp-pcm.c| 2 +- sound/soc/pxa/pxa2xx-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 d

[PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
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/samsung/idma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/samsung/

Re: [v6 01/15] x86/mm: reserve only exiting low pages

2017-08-14 Thread Michal Hocko
On Fri 11-08-17 11:24:55, Pasha Tatashin wrote: [...] > >>In this patchset we will stop zeroing struct page memory during allocation. > >>Therefore, this bug must be fixed in order to avoid random assert failures > >>caused by CONFIG_DEBUG_VM_PGFLAGS triggers. > >> > >>The fix is to reserve memory

[PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
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/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/q

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

2017-08-14 Thread Bhumika Goyal
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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/omap/om

[PATCH 09/11] ASoC: sh: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
Make these const as they are either passed as the 2nd argument to the function devm_snd_soc_register_platform or snd_soc_register_platform, and the arguments are of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c| 2

[PATCH 10/11] ASoC: txx9: make snd_soc_platform_driver const

2017-08-14 Thread Bhumika Goyal
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/txx9/txx9aclc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/txx9/tx

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