[patch 41/55] x86/uv: Use default_cpu_mask_to_apicid_and()

2017-06-19 Thread Thomas Gleixner
Same functionality except the extra bits ored on the apicid. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/x2apic_uv_x.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++

[patch 36/55] genirq: Remove pointless gfp argument

2017-06-19 Thread Thomas Gleixner
All callers hand in GPF_KERNEL. No point to have an extra argument for that. Signed-off-by: Thomas Gleixner --- kernel/irq/irqdesc.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -54,14

[patch 35/55] genirq: Remove pointless arg from show_irq_affinity

2017-06-19 Thread Thomas Gleixner
The third argument of the internal helper function is unused. Remove it. Signed-off-by: Thomas Gleixner --- kernel/irq/proc.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -37,7 +37,7 @@ static struct

[patch 32/55] x86/irq: Restructure fixup_irqs()

2017-06-19 Thread Thomas Gleixner
Reorder fixup_irqs() so it matches the flow in the generic migration code. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/irq.c | 46 -- 1 file changed, 20 insertions(+), 26 deletions(-) --- a/arch/x86/kernel/irq.c +++

[patch 44/55] x86/apic: Add irq_data argument to apic->cpu_mask_to_apicid()

2017-06-19 Thread Thomas Gleixner
The decision to which CPUs an interrupt is effectively routed happens in the various apic->cpu_mask_to_apicid() implementations To support effective affinity masks this information needs to be updated in irq_data. Add a pointer to irq_data to the callbacks and feed it through the call chain.

[patch 37/55] genirq/proc: Replace ever repeating type cast

2017-06-19 Thread Thomas Gleixner
The proc file setup repeats the same ugly type cast for the irq number over and over. Do it once and hand in the local void pointer. Signed-off-by: Thomas Gleixner --- kernel/irq/proc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) ---

[patch 34/55] genirq: Move irq_fixup_move_pending() to core

2017-06-19 Thread Thomas Gleixner
Now that x86 uses the generic code, the function declaration and inline stub can move to the core internal header. Signed-off-by: Thomas Gleixner --- include/linux/irq.h|5 - kernel/irq/internals.h |5 + 2 files changed, 5 insertions(+), 5 deletions(-)

[patch 21/55] genirq: Remove mask argument from setup_affinity()

2017-06-19 Thread Thomas Gleixner
No point to have this alloc/free dance of cpumasks. Provide a static mask for setup_affinity() and protect it proper. Signed-off-by: Thomas Gleixner --- kernel/irq/internals.h |2 - kernel/irq/manage.c| 53 +

Re: [PATCHv2] clk: socfpga: Fix the smplsel on Arria10 and Stratix10

2017-06-19 Thread Stephen Boyd
On 06/08, Dinh Nguyen wrote: > The smplsel bits for the SDMMC clock on Arria10 and Stratix10 platforms are > offset by 1 additional bit. > > Add a new macro SYSMGR_SDMMC_CTRL_SET_AS10 for usage on the Arria10 and > Stratix10 platforms. > > Fixes: 5611a5ba8e54 ("clk: socfpga: update clk.h so for

Re: [PATCH v2 2/3] rtmutex: update rt-mutex

2017-06-19 Thread Alex Shi
Any more comments or concern on this? Thanks! On 05/25/2017 01:26 PM, Alex Shi wrote: > The rtmutex remove a pending owner bit in in rt_mutex::owner, in > commit 8161239a8bcc ("rtmutex: Simplify PI algorithm and make highest prio > task get lock") > But the document was changed accordingly.

Re: [PATCH 3/3] rtmutex: remove unnecessary adjust prio

2017-06-19 Thread Alex Shi
CC fengguang. This patch survived in Fengguang's 0day testing on https://github.com/alexshi/power-scheduling.git rtmutex-doc :) Regards Alex On 05/25/2017 01:26 PM, Alex Shi wrote: > We don't need to adjust prio before new pi_waiter adding. The prio > only need update after pi_waiter change or

Re: linux-next: build failure after merge of the block tree

2017-06-19 Thread Stephen Rothwell
Hi Sebastian, On Mon, 19 Jun 2017 11:00:23 +0200 (CEST) Sebastian Ott wrote: > > Ok, we should also adjust the return code to fix this: > > drivers/s390/block/scm_blk.c:426:2: warning: initialization from incompatible > pointer type [enabled by default] >

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-19 Thread AKASHI Takahiro
On Mon, Jun 19, 2017 at 05:51:08PM -0500, Li, Yi wrote: > Hi Greg, > > On 6/17/2017 2:38 PM, Greg KH wrote: > >On Tue, Jun 13, 2017 at 09:40:11PM +0200, Luis R. Rodriguez wrote: > >>On Tue, Jun 13, 2017 at 11:05:48AM +0200, Greg KH wrote: > >>>On Mon, Jun 05, 2017 at 02:39:33PM -0700, Luis R.

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-19 Thread Kai-Heng Feng
On Tue, Jun 20, 2017 at 2:32 AM, Alan Stern wrote: > > It's possible that the test was invalid. Kai-Heng did not say whether > /sys/.../power/wakeup was set to "enabled" for both the EHCI controller > and the USB root hub beneath it, before the test was started. If >

[patch 49/55] genirq: Add force argument to irq_startup()

2017-06-19 Thread Thomas Gleixner
In order to handle managed interrupts gracefully on irq_startup() so they won't lose their assigned affinity, it's necessary to allow startups which keep the interrupts in managed shutdown state, if none of the assigend CPUs is online. This allows drivers to request interrupts w/o the CPUs being

[patch 17/55] genirq/debugfs: Add proper debugfs interface

2017-06-19 Thread Thomas Gleixner
Debugging (hierarchical) interupt domains is tedious as there is no information about the hierarchy and no information about states of interrupts in the various domain levels. Add a debugfs directory 'irq' and subdirectories 'domains' and 'irqs'. The domains directory contains the domain files.

[patch 27/55] genirq/cpuhotplug: Reorder check logic

2017-06-19 Thread Thomas Gleixner
Move the checks for a valid irq chip and the irq_set_affinity() callback right in front of the whole migration logic. No point in doing a gazillion of other things when the interrupt cannot be migrated at all. Signed-off-by: Thomas Gleixner --- kernel/irq/cpuhotplug.c | 36

[patch 15/55] PCI: vmd: Create named irq domain

2017-06-19 Thread Thomas Gleixner
Use the fwnode to create a named domain so diagnosis works. Signed-off-by: Thomas Gleixner Cc: Keith Busch Cc: Bjorn Helgaas Cc: linux-...@vger.kernel.org --- drivers/pci/host/vmd.c |8 +++- 1 file changed, 7

[patch 22/55] genirq: Rename setup_affinity() to irq_setup_affinity()

2017-06-19 Thread Thomas Gleixner
Rename it with a proper irq_ prefix and make it available for other files in the core code. Preparatory patch for moving the irq affinity setup around. Signed-off-by: Thomas Gleixner --- kernel/irq/internals.h |6 ++ kernel/irq/manage.c|7 +-- 2 files

[patch 23/55] genirq: Move initial affinity setup to irq_startup()

2017-06-19 Thread Thomas Gleixner
The startup vs. setaffinity ordering of interrupts depends on the IRQF_NOAUTOEN flag. Chained interrupts are not getting any affinity assignment at all. A regular interrupt is started up and then the affinity is set. A IRQF_NOAUTOEN marked interrupt is not started up, but the affinity is set

Re: [PATCH v3 1/3] rtmutex: update rt-mutex-design

2017-06-19 Thread Alex Shi
On 05/25/2017 01:26 PM, Alex Shi wrote: > > Author: Steven Rostedt > +Updated: Alex Shi - 5/20/2017 > > Reviewers: Ingo Molnar, Thomas Gleixner, Thomas Duetsch, and Randy Dunlap > > @@ -779,3 +554,4 @@ Updates > --- > > This

Re: [PATCH 3/6] clk: mediatek: export cpu multiplexer clock for MT8173 SoCs

2017-06-19 Thread Stephen Boyd
On 05/05, sean.w...@mediatek.com wrote: > From: Sean Wang > > The patch enables CPU multiplexer clock on MT8173 SoC which fixes up > cpufreq driver fails at acquiring intermediate clock source when driver > probe is called. > > Signed-off-by: Pi-Cheng Chen

Re: [PATCH 1/6] clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work

2017-06-19 Thread Stephen Boyd
On 05/05, sean.w...@mediatek.com wrote: > From: Sean Wang > > This patch adds CPU multiplexer clocks which are essential for Mediatek > cpufreq driver. It would use the CPU clock multiplexer to switch to the > intermediate clock source temporarily and then wait for the

linux-next: manual merge of the block tree with the btrfs_kdave tree

2017-06-19 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in: fs/btrfs/disk-io.c between commit: c6100a4b4e3d ("Btrfs: replace tree->mapping with tree->private_data") e4f56903863c ("btrfs: btrfs_io_bio_alloc never fails, skip error handling") c5e4c3d75034 ("btrfs: sink gfp

Re: [GIT PULL] tpmdd fixes for 4.13

2017-06-19 Thread James Morris
On Mon, 19 Jun 2017, Jarkko Sakkinen wrote: > Hi > > Here are thpdates for 4.13. > > Major changes: > > - Releasing and relinquishing of locality in tpm_vtpm_proxy for each >   command/response sequence. > - Consolidating platform and ACPI driver in tpm_tis. > - Sanitize endian conversions for

[PATCH v3 2/4] sparc64: Support huge PUD case in get_user_pages

2017-06-19 Thread Nitin Gupta
get_user_pages() is used to do direct IO. It already handles the case where the address range is backed by PMD huge pages. This patch now adds the case where the range could be backed by PUD huge pages. Signed-off-by: Nitin Gupta --- arch/sparc/include/asm/pgtable_64.h

[PATCH v3 1/4] sparc64: Add 16GB hugepage support

2017-06-19 Thread Nitin Gupta
Adds support for 16GB hugepage size. To use this page size use kernel parameters as: default_hugepagesz=16G hugepagesz=16G hugepages=10 Testing: Tested with the stream benchmark which allocates 48G of arrays backed by 16G hugepages and does RW operation on them in parallel. Orabug: 25362942

Re: [PATCH v2 3/3] perf report: Implement visual marker for macro fusion in annotate

2017-06-19 Thread Jin, Yao
Reference for macro fusion is the optimization guide, http://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-optimization-manual.html 2.3.2.1 — In Intel microarchitecture code name Nehalem: CMP, TEST. — In Intel microarchitecture code name Sandy Bridge: CMP,

[PATCH v3 4/4] sparc64: Cleanup hugepage table walk functions

2017-06-19 Thread Nitin Gupta
Flatten out nested code structure in huge_pte_offset() and huge_pte_alloc(). Signed-off-by: Nitin Gupta --- arch/sparc/mm/hugetlbpage.c | 54 + 1 file changed, 20 insertions(+), 34 deletions(-) diff --git

Re: Linux 4.12-rc6

2017-06-19 Thread Linus Torvalds
On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > Hugh Dickins (1): > > mm: larger stack guard gap, between vmas > > This seems to be buggered. > > 002331 0396712307 0 2 kernel BUG at mm/mmap.c:1963! > 002332 0396712414 0 4 invalid opcode: [#1]

Re: [PATCH v2 06/12] Input: wm97xx: add new AC97 bus support

2017-06-19 Thread Dmitry Torokhov
On Mon, Jun 19, 2017 at 09:27:03AM +0200, Robert Jarzmik wrote: > This adds support for the new AC97 bus code, which discovers the devices > rather than uses platform data. > > As part of this discovery, it enables a multi-function device wm97xx, > which supports touchscreen, battery, ADC and an

Re: [PATCH v2 04/12] Input: wm97xx: split out touchscreen registering

2017-06-19 Thread Dmitry Torokhov
On Mon, Jun 19, 2017 at 09:27:01AM +0200, Robert Jarzmik wrote: > wm97xx-core does several things in it initialization : > - touchscreen input device setup > - battery device creation > > As the wm97xx is actually a multi-function device handling an audio > codec, a touchscreen, a gpio block

[PATCH] drm: sti: sti_hqvdp: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 15845 640 0 164854065

Re: [RFC v2 00/12] powerpc: Memory Protection Keys

2017-06-19 Thread Balbir Singh
On Fri, 2017-06-16 at 20:52 -0700, Ram Pai wrote: > Memory protection keys enable applications to protect its > address space from inadvertent access or corruption from > itself. I presume by itself you mean protection between threads? > > The overall idea: > > A process allocates a key

[PATCH] ARM: dts: am437x-gp-evm: Add support for buzzer

2017-06-19 Thread Faiz Abbas
Add support for onboard gpio buzzer. It works using the gpio-beeper driver. Pinmux entries for GPIO controlling the buzzer are also added. Signed-off-by: Faiz Abbas --- arch/arm/boot/dts/am437x-gp-evm.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 06/11] Fix ERROR: space prohibited before that close parenthesis ')'

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited before that close parenthesis ')'". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff

[PATCH 05/11] Fix ERROR: space prohibited after that open parenthesis '('

2017-06-19 Thread Jhih-Ming Huang
From: Jhih-Ming Hunag Fixed "ERROR: space prohibited after that open parenthesis '('". Signed-off-by: Jhih-Ming Hunag --- drivers/staging/ccree/ssi_aead.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH] staging: rtl8723bs: hal: Use (true/false) in assignment to bool

2017-06-19 Thread simran singhal
This patch assigns (true/false) to boolean EDCCA_State instead of (1/0). And, there is no need of comparing EDCCA_State explicitly with constant 1. Signed-off-by: simran singhal --- drivers/staging/rtl8723bs/hal/odm_DIG.c | 8 1 file changed, 4 insertions(+),

[patch 31/55] genirq/cpuhotplug: Set force affinity flag on hotplug migration

2017-06-19 Thread Thomas Gleixner
Set the force migration flag when migrating interrupts away from an outgoing CPU. Signed-off-by: Thomas Gleixner --- kernel/irq/cpuhotplug.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/irq/cpuhotplug.c +++ b/kernel/irq/cpuhotplug.c @@ -79,7 +79,7

[patch 54/55] x86/apic: Mark single target interrupts

2017-06-19 Thread Thomas Gleixner
If the interrupt destination mode of the APIC is physical then the effective affinity is restricted to a single CPU. Mark the interrupt accordingly in the domain allocation code, so the core code can avoid pointless affinity setting attempts. Signed-off-by: Thomas Gleixner

[patch 50/55] genirq: Handle managed irqs gracefully in irq_startup()

2017-06-19 Thread Thomas Gleixner
Affinity managed interrupts should keep their assigned affinity accross CPU hotplug. To avoid magic hackery in device drivers, the core code shall manage them transparently and set these interrupts into a managed shutdown state when the last CPU of the assigned affinity mask goes offline. The

[patch 47/55] genirq: Introduce IRQD_MANAGED_SHUTDOWN

2017-06-19 Thread Thomas Gleixner
Affinity managed interrupts should keep their assigned affinity accross CPU hotplug. To avoid magic hackery in device drivers, the core code shall manage them transparently. This will set these interrupts into a managed shutdown state when the last CPU of the assigned affinity mask goes offline.

[patch 55/55] genirq/affinity: Assign vectors to all present CPUs

2017-06-19 Thread Thomas Gleixner
From: Christoph Hellwig Currently the irq vector spread algorithm is restricted to online CPUs, which ties the IRQ mapping to the currently online devices and doesn't deal nicely with the fact that CPUs could come and go rapidly due to e.g. power management. Instead assign vectors

[patch 48/55] genirq: Split out irq_startup() code

2017-06-19 Thread Thomas Gleixner
Split out the inner workings of irq_startup() so it can be reused to handle managed interrupts gracefully. Signed-off-by: Thomas Gleixner --- kernel/irq/chip.c | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) --- a/kernel/irq/chip.c

[patch 52/55] genirq: Introduce IRQD_SINGLE_TARGET flag

2017-06-19 Thread Thomas Gleixner
Many interrupt chips allow only a single CPU as interrupt target. The core code has no knowledge about that. That's unfortunate as it could avoid trying to readd a newly online CPU to the effective affinity mask. Add the status flag and the necessary accessors. Signed-off-by: Thomas Gleixner

[patch 45/55] xen/events: Add support for effective affinity mask

2017-06-19 Thread Thomas Gleixner
Update the effective affinity mask when an interrupt was successfully targeted to a CPU. Signed-off-by: Thomas Gleixner --- drivers/xen/events/events_base.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/xen/events/events_base.c +++

Re: [PATCH][next] ASoC: rsnd: make main_rate signed to check for -ve error return codes

2017-06-19 Thread Kuninori Morimoto
Hi Colin > From: Colin Ian King > > The comparison of main_rate < 0 has no effect because main_rate is > an unsigned int. Make it signed so that any -ve error returns from the > call to rsnd_clk_query can be detected. > > Detected by CoverityScan, CID#1446152

Re: [PATCH 2/6] clk: mediatek: export cpu multiplexer clock for MT2701/MT7623 SoCs

2017-06-19 Thread Stephen Boyd
On 05/05, sean.w...@mediatek.com wrote: > From: Sean Wang > > The patch enables CPU multiplexer clock on MT2701/MT7623 SoC which fixes > up cpufreq driver fails at acquiring intermediate clock source when driver > probe is called. > > Signed-off-by: Pi-Cheng Chen

Re: [PATCH v7 1/1] clk: bcm: Add clocks for Stingray SOC

2017-06-19 Thread Stephen Boyd
On 06/06, Anup Patel wrote: > From: Sandeep Tripathy > > This patch adds support for Stingray clocks in iproc > ccf. The Stingray SOC has various plls based on iproc > pll architecture. > > Signed-off-by: Sandeep Tripathy >

[PATCH v2 5/5] i2c: pca-platform: use dev_warn/dev_info instead of printk

2017-06-19 Thread Chris Packham
Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index 12ab0cafa7c9..27175d681548

[PATCH v2 3/5] i2c: pca-platform: use gpio_is_valid

2017-06-19 Thread Chris Packham
Use gpio_is_valid() instead of gpio > -1. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-pca-platform.c

[PATCH v2 2/5] i2c: pca-platform: add devicetree awareness

2017-06-19 Thread Chris Packham
Allow devices that use this driver to be registered via a devicetree. Signed-off-by: Chris Packham --- Changes in v2: - Set i2c->adap.dev.of_node so that child nodes are automatically probed - Split dt-binding to separate patch, use "reset-gpios" instead of

[PATCH v2 4/5] i2c: pca-platform: use device managed allocations

2017-06-19 Thread Chris Packham
Switch to using the devm_ APIs and remove the now unnecessary error handling and most of the device removal code. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-pca-platform.c | 61 +++ 1 file changed, 11 insertions(+),

Re: [PATCH V1 8/9] clk: sprd: add clocks support for SC9860

2017-06-19 Thread Stephen Boyd
On 06/18, Chunyan Zhang wrote: > diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile > index c593a93..0d90b40 100644 > --- a/drivers/clk/sprd/Makefile > +++ b/drivers/clk/sprd/Makefile > @@ -1,3 +1,4 @@ > ifneq ($(CONFIG_OF),) > obj-y+= ccu_common.o ccu_gate.o ccu_mux.o

Re: [PATCH v6 00/22] hisi_sas: hip08 support

2017-06-19 Thread Martin K. Petersen
John, > This patchset adds support for the HiSilicon SAS controller in the > hip08 chipset. Applied to 4.13/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

um: PTRACE_SETREGSET failure with XSTATE on Kabylake CPU

2017-06-19 Thread Thomas Meyer
Hi, I finally did figure out where in the host kernel the ptrace syscall fails with -EFAULT. In arch/x86/kernel/fpu/regset.c:130: 114 int xstateregs_set(struct task_struct *target, const struct user_regset *regset, 115 unsigned int pos, unsigned int count, 116

[GIT PULL 00/23] perf/core improvements and fixes

2017-06-19 Thread Arnaldo Carvalho de Melo
Hi Ingo, I merged tip/perf/urgent into tip/perf/core before rebasing with these patches, please consider pulling, - Arnaldo Test results at the end of this message, as usual. The following changes since commit 8052bd8243e823a0954bcbafda8f91072598f13d: Merge remote-tracking branch

[PATCH v3 3/4] sparc64: Fix gup_huge_pmd

2017-06-19 Thread Nitin Gupta
The function assumes that each PMD points to head of a huge page. This is not correct as a PMD can point to start of any 8M region with a, say 256M, hugepage. The fix ensures that it points to the correct head of any PMD huge page. Signed-off-by: Nitin Gupta ---

Re: [PATCH 3/9] clk: fractional-divider: add CLK_FRAC_DIVIDER_ZERO_BASED flag support

2017-06-19 Thread Stephen Boyd
On 05/15, Dong Aisheng wrote: > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index a6efbb9..4466cae 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -557,6 +557,11 @@ void clk_hw_unregister_fixed_factor(struct clk_hw *hw); > *

[PATCH 01/23] perf report: Remove unnecessary check in annotate_browser_write()

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Jin Yao In annotate_browser_write(), if (dl->offset != -1 && percent_max != 0.0) { if (percent_max != 0.0) { ... } ... } The second check of (percent_max != 0.0) is not

Re: [PATCH v15 2/7] power: add power sequence library

2017-06-19 Thread Peter Chen
On Mon, Jun 19, 2017 at 11:48:05AM +0200, Ulf Hansson wrote: > [...] > > >> > > >> > Unlike the MMC design, there is no dts entry to indicate whether this > >> > device needs pwrseq or not at this design, it will only carry out power > >> > on sequence after matching. So, return -EPROBE_DEFER may

Re: [PATCHv2 3/3] mm: Use updated pmdp_invalidate() inteface to track dirty/accessed bits

2017-06-19 Thread Minchan Kim
Hello Kirill, On Mon, Jun 19, 2017 at 05:03:23PM +0300, Kirill A. Shutemov wrote: > On Fri, Jun 16, 2017 at 11:53:33PM +0900, Minchan Kim wrote: > > Hi Andrea, > > > > On Fri, Jun 16, 2017 at 04:27:20PM +0200, Andrea Arcangeli wrote: > > > Hello Minchan, > > > > > > On Fri, Jun 16, 2017 at

[PATCH] mm: Add SLUB free list pointer obfuscation

2017-06-19 Thread Kees Cook
This SLUB free list pointer obfuscation code is modified from Brad Spengler/PaX Team's code in the last public patch of grsecurity/PaX based on my understanding of the code. Changes or omissions from the original code are mine and don't reflect the original grsecurity/PaX code. This adds a

Re: [PATCH] x86/mm: Don't reenter flush_tlb_func_common()

2017-06-19 Thread zhong jiang
On 2017/6/19 23:05, Andy Lutomirski wrote: > On Mon, Jun 19, 2017 at 6:33 AM, zhong jiang wrote: >> On 2017/6/19 12:48, Andy Lutomirski wrote: >>> It was historically possible to have two concurrent TLB flushes >>> targeting the same CPU: one initiated locally and one

Re: Linux 4.12-rc6

2017-06-19 Thread Hugh Dickins
On Tue, 20 Jun 2017, Linus Torvalds wrote: > On Tue, Jun 20, 2017 at 8:26 AM, Dave Jones wrote: > > > Hugh Dickins (1): > > > mm: larger stack guard gap, between vmas > > > > This seems to be buggered. > > > > 002331 0396712307 0 2 kernel BUG at

Re: [PATCH 1/7] drm/bridge: Support hotplugging panel-bridge.

2017-06-19 Thread Archit Taneja
On 06/16/2017 08:13 PM, Eric Anholt wrote: Archit Taneja writes: On 06/16/2017 02:11 AM, Eric Anholt wrote: If the panel-bridge is being set up after the drm_mode_config_reset(), then the connector's state would never get initialized, and we'd dereference the NULL

[PATCH] drm: sti: sti_dvo: make of_device_ids const.

2017-06-19 Thread Arvind Yadav
of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: textdata bss dec hex filename 4222 664 048861316

Re: [PATCH v5 3/6] kernel/reboot.c: export pm_power_off_prepare

2017-06-19 Thread Oleksij Rempel
On 19.06.2017 13:35, Leonard Crestez wrote: On Mon, 2017-06-19 at 07:02 +0200, Oleksij Rempel wrote: Export pm_power_off_prepare. It is needed to implement power off on Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). Signed-off-by: Oleksij Rempel

Re: [PATCH v2 3/9] vfio: New external user group/file match

2017-06-19 Thread kbuild test robot
Hi Alex, [auto build test ERROR on vfio/next] [also build test ERROR on v4.12-rc6 next-20170619] [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/Alex-Williamson/vfio-Fix-release-ordering-races

Re: [PATCH v4] Introduce v3 namespaced file capabilities

2017-06-19 Thread Amir Goldstein
On Tue, Jun 20, 2017 at 12:34 AM, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > >> Quoting Stefan Berger (stef...@linux.vnet.ibm.com): >>> On 06/14/2017 11:05 PM, Serge E. Hallyn wrote: >>> >On Wed, Jun 14, 2017 at 08:27:40AM -0400, Stefan Berger

Re: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent Dell systems

2017-06-19 Thread Linus Torvalds
On Tue, Jun 20, 2017 at 5:53 AM, Rafael J. Wysocki wrote: > > -> v2: Added acpi_sleep=no_ec_wakeup to prevent EC events from waking up > the system from s2idle on systems where they do that by default. This seems a big hacky. Is there no way to simply make

[patch 33/55] x86/irq: Use irq_migrate_all_off_this_cpu()

2017-06-19 Thread Thomas Gleixner
The generic migration code supports all the required features already. Remove the x86 specific implementation and use the generic one. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig |1 arch/x86/kernel/irq.c | 89

[patch 29/55] genirq/cpuhotplug: Add support for cleaning up move in progress

2017-06-19 Thread Thomas Gleixner
In order to move x86 to the generic hotplug migration code, add support for cleaning up move in progress bits. On architectures which have this x86 specific (mis)feature not enabled, this is optimized out by the compiler. Signed-off-by: Thomas Gleixner ---

[patch 26/55] genirq/cpuhotplug: Dont claim success on error

2017-06-19 Thread Thomas Gleixner
In case the affinity of an interrupt was broken, a printk is emitted. But if the affinity cannot be set at all due to a missing irq_set_affinity() callback or due to a failing callback, the message is still printed preceeded by a warning/error. That makes no sense whatsoever. Signed-off-by:

[patch 24/55] genirq: Move pending helpers to internal.h

2017-06-19 Thread Thomas Gleixner
From: Christoph Hellwig So that the affinity code can reuse them. Signed-off-by: Christoph Hellwig Signed-off-by: Thomas Gleixner --- kernel/irq/internals.h | 38 ++ kernel/irq/manage.c| 28

[patch 25/55] genirq/cpuhotplug: Remove irq disabling logic

2017-06-19 Thread Thomas Gleixner
This is called from stop_machine() with interrupts disabled. No point in disabling them some more. Signed-off-by: Thomas Gleixner --- kernel/irq/cpuhotplug.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) --- a/kernel/irq/cpuhotplug.c +++

[patch 28/55] genirq/cpuhotplug: Do not migrated shutdown irqs

2017-06-19 Thread Thomas Gleixner
Interrupts, which are shut down are tried to be migrated as well. That's pointless because the interrupt cannot fire and the next startup will move it to the proper place anyway. Signed-off-by: Thomas Gleixner --- kernel/irq/cpuhotplug.c | 11 --- 1 file changed, 8

[patch 30/55] genirq/cpuhotplug: Add support for conditional masking

2017-06-19 Thread Thomas Gleixner
Interrupts which cannot be migrated in process context, need to be masked before the affinity is changed forcefully. Add support for that. Will be compiled out for architectures which do not have this x86 specific issue. Signed-off-by: Thomas Gleixner ---

Re: [PATCH v10 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-19 Thread Brendan Higgins
On Mon, Jun 19, 2017 at 7:21 AM, Wolfram Sang wrote: > > And any chance for a MAINTAINERS entry? > We already have one: http://elixir.free-electrons.com/linux/v4.11.5/source/MAINTAINERS#L1090 However, if you would like me to own this driver, I could add an entry for myself.

Re: [PATCH v2] drm/mediatek: separate color module to fixup error memory reallocation

2017-06-19 Thread CK Hu
On Fri, 2017-06-16 at 22:02 +0800, YT Shen wrote: > Previous patch (c5f228ef6c drm/mediatek: add *driver_data for different > hardware settings) calls devm_kfree() and then devm_kzalloc() to > reallocate color module data structure. But this reallocation cannnot > guarantee the new address is

[PATCH v2 0/5] i2c: pca-platform: updates

2017-06-19 Thread Chris Packham
We're using a PCA9564 on an embedded platform to provide an i2c controller. This adds devicetree support and I've included some cleanups for the driver while I was at it. Chris Packham (5): dt-bindings: add bindings for i2c-pca-platform i2c: pca-platform: add devicetree awareness i2c:

[PATCH v2 1/5] dt-bindings: add bindings for i2c-pca-platform

2017-06-19 Thread Chris Packham
Signed-off-by: Chris Packham --- Changes in v2: - Split dt-binding to separate patch, use "reset-gpios" instead of "gpios". .../devicetree/bindings/i2c/i2c-pca-platform.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644

Re: [PATCH V1 3/9] clk: sprd: add gate clock support

2017-06-19 Thread Stephen Boyd
On 06/18, Chunyan Zhang wrote: > diff --git a/drivers/clk/sprd/Makefile b/drivers/clk/sprd/Makefile > index 8f802b2..333e2b2 100644 > --- a/drivers/clk/sprd/Makefile > +++ b/drivers/clk/sprd/Makefile > @@ -1,3 +1,3 @@ > ifneq ($(CONFIG_OF),) > -obj-y+= ccu_common.o > +obj-y+=

[PATCH 09/23] tools: Adopt noinline from kernel sources

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To have a more compact way to ask the compiler not to inline a function and to make tools/ source code look like kernel code. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc:

[PATCH 08/23] perf tools: Use __maybe_unused consistently

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Instead of defining __unused or redefining __maybe_unused. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan

[PATCH 22/23] perf config: Check error cases of {show_spec, set}_config()

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Taeung Song show_spec_config() and set_config() can be called multiple times in the loop in cmd_config(). However, The error cases of them wasn't checked, so fix it. Reported-by: Arnaldo Carvalho de Melo Signed-off-by: Taeung Song

[PATCH 14/23] perf annotate: Return arch from symbol__disassemble() and save it in browser

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Jin Yao In annotate browser, we will add support to check fused instructions. While this is x86-specific feature so we need the annotate browser to know what the arch it runs on. symbol__disassemble() has figured out the arch. This patch just lets the arch return

[PATCH 03/23] perf config: Invert an if statement to reduce nesting in cmd_config()

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Taeung Song Signed-off-by: Taeung Song Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1494241650-32210-1-git-send-email-treeze.tae...@gmail.com Signed-off-by: Arnaldo Carvalho de

[PATCH 05/23] tools: Adopt __noreturn from kernel sources

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To have a more compact way to specify that a function doesn't return, instead of the open coded: __attribute__((noreturn)) And use it instead of the tools/perf/ specific variation, NORETURN. Cc: Adrian Hunter

[PATCH 16/23] perf script: Support -F brstack,dso and brstacksym,dso

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Mark Santaniello Perf script can report the dso for "addr" and "ip" fields. This adds the same support for the "brstack" and "brstacksym" fields. This can be helpful for AutoFDO: we can ignore LBR entries unless the source and target address are both in the target module

[PATCH 10/23] tools: Adopt __packed from kernel sources

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To have a more compact way to ask the compiler to not insert alignment paddings in a struct, making tools/ look more like kernel source code. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa

[PATCH 18/23] perf ftrace: Show error message when fails to set ftrace files

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim It'd be better for debugging to show an error message when it fails to setup ftrace for some reason. Signed-off-by: Namhyung Kim Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Masami Hiramatsu

[PATCH 02/23] perf annotate browser: Display titles in left frame

2017-06-19 Thread Arnaldo Carvalho de Melo
From: Jin Yao The annotate browser is divided into 2 frames. Left frame contains 3 columns (some platforms only have one column). For example: │26 int compute_flag() │27 { 22.80 1.20 │ sub$0x8,%rsp

Re: [PATCH v2 2/9] kvm-vfio: Decouple only when we match a group

2017-06-19 Thread Alex Williamson
On Tue, 20 Jun 2017 12:34:57 +1000 Alexey Kardashevskiy wrote: > On 20/06/17 03:14, Alex Williamson wrote: > > Unset-KVM and decrement-assignment only when we find the group in our > > list. Otherwise we can get out of sync if the user triggers this for > > groups that aren't

Re: [PATCH] PCI: Workaround AMD EHCI controller PME bug

2017-06-19 Thread Kai-Heng Feng
On Tue, Jun 20, 2017 at 2:01 AM, Bjorn Helgaas wrote: > > Applied (patch below) to pci/pm for v4.13, thanks! > > Note that I added parens because bitwise NOT is higher precedence than > bitwise shift right, and I think we want the shift before the NOT. Please > double-check.

Re: [PATCH 3.10 060/268] xen/gntdev: Use VM_MIXEDMAP instead of VM_IO to avoid NUMA balancing

2017-06-19 Thread Hugh Dickins
On Mon, 19 Jun 2017, Willy Tarreau wrote: > From: Boris Ostrovsky > > commit 30faaafdfa0c754c91bac60f216c9f34a2bfdf7e upstream. > > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > NUMA balancing") set VM_IO flag to prevent grant maps from

Re: [PATCH v6 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-06-19 Thread Dmitry Torokhov
On Thu, Jun 08, 2017 at 03:30:27PM +0800, Jianhong Chen wrote: > From: chenjh > > This driver provides a input driver for the power > key on the Rockchip RK805 PMIC. > > Signed-off-by: chenjh > --- > drivers/input/misc/Kconfig| 6 +++ >

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-19 Thread l00371289
hi, Florian On 2017/6/20 5:00, Florian Fainelli wrote: > On 06/16/2017 02:24 AM, Lin Yun Sheng wrote: >> This patch fixes the phy loopback self_test failed issue. when >> Marvell Phy Module is loaded, it will powerdown fiber when doing >> phy loopback self test, which cause phy loopback self_test

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-19 Thread l00371289
Hi, Andrew On 2017/6/20 5:54, Andrew Lunn wrote: > On Mon, Jun 19, 2017 at 02:00:43PM -0700, Florian Fainelli wrote: >> On 06/16/2017 02:24 AM, Lin Yun Sheng wrote: >>> This patch fixes the phy loopback self_test failed issue. when >>> Marvell Phy Module is loaded, it will powerdown fiber when

Re: [PATCH v2] gpio: lp87565: Add support for GPIO

2017-06-19 Thread Keerthy
On Thursday 15 June 2017 12:03 PM, Keerthy wrote: > Add driver for lp87565 PMIC family GPIOs. Three GPIOs are supported > and can be configured in Open-drain output or Push-pull output. > > Signed-off-by: Keerthy > --- > > Latest version of mfd patch: > >

  1   2   3   4   5   6   7   8   9   10   >