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

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 > Signed-off-by: Anup Patel > Reviewed-by: Ray Jui > Reviewed-by: Scott

[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 "gpios". drivers/i2c/busses/i2c-pca-p

[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 100644 --- a/drivers/i2c/busses/i2c-p

[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(+), 50 deletions(-) diff --git a/drive

[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 b/drivers/i2c/busses/i2c-pca-platform.c index 87ca2f02f607..3a9845b

[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 Documentation/devicetree/bindings/i2c/i

[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: pca-pl

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 unch

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-19 Thread Dave Chinner
On Mon, Jun 19, 2017 at 08:22:10AM -0700, Andy Lutomirski wrote: > On Mon, Jun 19, 2017 at 6:21 AM, Dave Chinner wrote: > > On Sat, Jun 17, 2017 at 10:05:45PM -0700, Andy Lutomirski wrote: > >> On Sat, Jun 17, 2017 at 8:15 PM, Dan Williams > >> wrote: > >> > On Sat, Jun 17, 2017 at 4:50 PM, Andy

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

2017-06-19 Thread Rafael J. Wysocki
On Tue, Jun 20, 2017 at 2:07 AM, Linus Torvalds wrote: > 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 hack

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 > Signed-off-by: Sean Wang > -

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 > Signed-off-by: Sean Wang > --- App

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 primary clock > changing ge

Re: [PATCH v6 1/3] clk: imx7d: create clocks behind rawnand clock gate

2017-06-19 Thread Stephen Boyd
On 06/08, Stefan Agner wrote: > The rawnand clock gate gates two clocks, NAND_USDHC_BUS_CLK_ROOT > and NAND_CLK_ROOT. However, the gate has been in the chain of the > latter only. This does not allow to use the NAND_USDHC_BUS_CLK_ROOT > only, e.g. as required by APBH-Bridge-DMA. > > Add new clocks

Re: [PATCH v2 3/3] clk: hi3660: Set PPLL2 to 2880M

2017-06-19 Thread Stephen Boyd
On 05/26, Guodong Xu wrote: > From: Zhong Kaihua > > Set PPLL2 to 2880M. With this patch, we saw better compatibility > on various 1080p HDMI monitors. > > Signed-off-by: Zhong Kaihua > Signed-off-by: Zheng Shaobo > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of

Re: [PATCH v2 2/3] clk: hi3660: add clocks for video encoder, decoder and ISP

2017-06-19 Thread Stephen Boyd
On 05/26, Guodong Xu wrote: > From: Chen Jun > > This patch adds more clocks for hi3660, including: > - video encoder and decoder > - ISP (Image Signal Processing) > > Signed-off-by: Chen Jun > Signed-off-by: Zhong Kaihua > Signed-off-by: Guodong Xu > Reviewed-by: Zhangfei Gao > --- Appli

Re: [PATCH v2 1/3] clk: hi3660: fix wrong parent name of clk_mux_sysbus

2017-06-19 Thread Stephen Boyd
On 05/26, Guodong Xu wrote: > From: Chen Jun > > Parent name of clk_mux_sysbus is not correct. This patch fixes it. > > Signed-off-by: Chen Jun > Signed-off-by: John Stultz > Signed-off-by: Guodong Xu > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora

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 4.11 00/78] 4.11.7-stable review

2017-06-19 Thread Greg Kroah-Hartman
On Mon, Jun 19, 2017 at 03:48:46PM -0700, Guenter Roeck wrote: > On Mon, Jun 19, 2017 at 11:15:00PM +0800, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.11.7 release. > > There are 78 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-19 Thread Brian Norris
Hi Mark, Forgot to follow up here: On Tue, Jun 13, 2017 at 07:22:25PM +0100, Mark Brown wrote: > On Tue, Jun 13, 2017 at 10:50:44AM -0700, Brian Norris wrote: > > On Tue, Jun 13, 2017 at 01:25:43PM +0800, Jeffy Chen wrote: > > > The cros_ec requires CS line to be active after last message. But th

Re: [PATCH] clk: gcc-msm8996: Add missing lpass smmu clks

2017-06-19 Thread Stephen Boyd
On 06/12, Srinivas Kandagatla wrote: > This patch adds missing LPASS smmu clks which are required by the audio > driver. > > Signed-off-by: Srinivas Kandagatla > --- > drivers/clk/qcom/gcc-msm8996.c | 26 ++ > include/dt-bindings/clock/qcom,gcc-msm8996.h |

Re: [PATCH] clk: gcc-msm8916: add support to 9.6MHz codec clk

2017-06-19 Thread Stephen Boyd
On 06/12, Srinivas Kandagatla wrote: > MCLK for internal audio codec is expected to be at 9.6MHz by default. > This patch adds support to 9.6MHz to make the default case possible. > > Signed-off-by: Srinivas Kandagatla > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member o

Re: [PATCH v6 3/6] clk: qcom: Add DT bindings for ipq8074 gcc clock controller

2017-06-19 Thread Stephen Boyd
On 06/09, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > Add the compatible strings and the include file for ipq8074 gcc > clock controller. > > Acked-by: Rob Herring (bindings) > Signed-off-by: Varadarajan Narayanan > Signed-off-by: Abhishek Sahu > --- Applied to clk-next -- Qualc

Re: [PATCH v6 4/6] clk: qcom: Add ipq8074 Global Clock Controller support

2017-06-19 Thread Stephen Boyd
On 06/09, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > This patch adds support for the global clock controller found on > the ipq8074 based devices. This includes UART, I2C, SPI etc. > > Signed-off-by: Abhishek Sahu > Signed-off-by: Varadarajan Narayanan > --- Applied to clk-next -

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 t

Re: [PATCH v6 00/11] Broadcom Stingray SOC Initial Support

2017-06-19 Thread Florian Fainelli
On 06/06/2017 03:30 PM, Stephen Boyd wrote: > On 06/05, Florian Fainelli wrote: >> >> >> On 06/05/2017 09:51 AM, Florian Fainelli wrote: >>> On 06/01/2017 11:34 PM, Anup Patel wrote: This patchset adds initial support of Broadcom Stingray SOC by reusing existing Broadcom iProc device driv

Re: Linux 4.12-rc6

2017-06-19 Thread Dave Jones
On Mon, Jun 19, 2017 at 11:04:15PM +0800, Linus Torvalds wrote: > And things look fairly normal. Two thirds drivers (rdma stands out, > but there's also networking drivers, gpu, hid etc), with the rest > being the usual mixture of architecture updates (s390, mips, powerpc, > arm, xtemsa) and

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. Upda

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 document was originally written for 2.6.17-rc3-

Re: [PATCH v5 6/6] ARM: dts: imx6: RIoTboard provide standby on power off option

2017-06-19 Thread Stephen Boyd
On 06/19, Oleksij Rempel wrote: > This board, as well as some other boards with i.MX6 and a PMIC, uses a > "MPIC_STBY_REQ" line to notify the PMIC about a state change. PMIC_STBY_REQ? > The PMIC is programmed for a specific state change before triggering the > line. > In this case, PMIC_STBY_REQ

Re: [GIT PULL] Improve cp110 clk support on Marvell Armada 7K/8K

2017-06-19 Thread Stephen Boyd
On 06/19, Gregory CLEMENT wrote: > > Hi Mike, Stephen, > > This time I turned the series in a pull request so I removed the > device tree binding part which will be in an other series for Rob > Herring and I also removed the dt part that I will take care of once > you will have pulled this one. >

[patch 02/55] iommu/amd: Add name to irq chip

2017-06-19 Thread Thomas Gleixner
Add the missing name, so debugging will work proper. Signed-off-by: Thomas Gleixner Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org --- drivers/iommu/amd_iommu.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iomm

[patch 04/55] genirq/msi: Prevent overwriting domain name

2017-06-19 Thread Thomas Gleixner
Prevent overwriting an already assigned domain name. Remove the extra check for chip->name, because if domain->name is NULL overwriting it with NULL is not a problem. Signed-off-by: Thomas Gleixner --- kernel/irq/msi.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/kernel/irq/

[patch 05/55] genirq: Allow fwnode to carry name information only

2017-06-19 Thread Thomas Gleixner
In order to provide proper debug interface it's required to have domain names available when the domain is added. Non fwnode based architectures like x86 have no way to do so. It's not possible to use domain ops or host data for this as domain ops might be the same for several instances, but the n

[patch 03/55] iommu/vt-d: Add name to irq chip

2017-06-19 Thread Thomas Gleixner
Add the missing name, so debugging will work proper. Signed-off-by: Thomas Gleixner Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org --- drivers/iommu/intel_irq_remapping.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) --- a/drivers/iommu/intel_irq_remapping.c +++ b/dr

[patch 06/55] x86/vector: 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 --- arch/x86/kernel/apic/vector.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -429,11 +429,16 @@ static voi

[patch 01/55] x86/apic: Add name to irq chip

2017-06-19 Thread Thomas Gleixner
Add the missing name, so debugging will work proper. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/vector.c |1 + 1 file changed, 1 insertion(+) --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -534,6 +534,7 @@ static int apic_set_affinity(struct irq_ }

[patch 00/55] genirq: Debuggability, consolidation and managed affinities

2017-06-19 Thread Thomas Gleixner
This started out with 5 patches from Christoph who wanted to add a mechanism for interrupts with managed affinities to spread them over all present CPUs and instead of migrating them, shut them down into managed shutdown state when the last CPU in the affinity set goes offline and then resume them

[patch 07/55] x86/ioapic: Create named irq domain

2017-06-19 Thread Thomas Gleixner
Use the fwnode to create a named domain so diagnosis works, but only when the the ioapic is not device tree based. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/io_apic.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) --- a/arch/x86/kernel/apic/io_apic

[GIT PULL] clk fixes for v4.12-rc6

2017-06-19 Thread Stephen Boyd
The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git tags/clk-fixes-for-linus for you to fetch changes up to 949bdfed4b0f74

Re: [PATCH 4.4 00/30] 4.4.74-stable review

2017-06-19 Thread Guenter Roeck
On 06/19/2017 08:20 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.74 release. There are 30 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[patch 11/55] iommu/vt-d: Use named irq domain interface

2017-06-19 Thread Thomas Gleixner
Signed-off-by: Thomas Gleixner Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org --- drivers/iommu/intel_irq_remapping.c | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c @@ -50

[patch 14/55] x86/msi: Create named irq domains

2017-06-19 Thread Thomas Gleixner
Use the fwnode to create named irq domains so diagnosis works. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/msi.c | 42 +- 1 file changed, 33 insertions(+), 9 deletions(-) --- a/arch/x86/kernel/apic/msi.c +++ b/arch/x86/kernel/apic/msi.c @@ -

[patch 10/55] x86/msi: Provide new iommu irqdomain interface

2017-06-19 Thread Thomas Gleixner
Provide a new interface for creating the iommu remapping domains, so that the caller can supply a name and a id in order to create named irqdomains. Signed-off-by: Thomas Gleixner Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org --- arch/x86/include/asm/irq_remapping.h |2 ++ arch/x86/

[patch 19/55] genirq: Provide irq_fixup_move_pending()

2017-06-19 Thread Thomas Gleixner
If an CPU goes offline, the interrupts are migrated away, but a eventually pending interrupt move, which has not yet been made effective is kept pending even if the outgoing CPU is the sole target of the pending affinity mask. What's worse is, that the pending affinity mask is discarded even if it

[patch 18/55] genirq: Add missing comment for IRQD_STARTED

2017-06-19 Thread Thomas Gleixner
Signed-off-by: Thomas Gleixner --- include/linux/irq.h |1 + 1 file changed, 1 insertion(+) --- a/include/linux/irq.h +++ b/include/linux/irq.h @@ -199,6 +199,7 @@ struct irq_data { * IRQD_WAKEUP_ARMED - Wakeup mode armed * IRQD_FORWARDED_TO_VCPU - The interrupt is forward

[patch 12/55] iommu/amd: Use named irq domain interface

2017-06-19 Thread Thomas Gleixner
Signed-off-by: Thomas Gleixner Cc: Joerg Roedel Cc: io...@lists.linux-foundation.org --- drivers/iommu/amd_iommu.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) --- a/drivers/iommu/amd_iommu.c +++ b/drivers/iommu/amd_iommu.c @@ -4395,13 +4395,20 @@ static struct irq_chi

[patch 16/55] genirq/irqdomain: Add map counter

2017-06-19 Thread Thomas Gleixner
Add a map counter instead of counting radix tree entries for diagnosis. That also gives correct information for linear domains. Signed-off-by: Thomas Gleixner --- include/linux/irqdomain.h |2 ++ kernel/irq/irqdomain.c|4 2 files changed, 6 insertions(+) --- a/include/linux/irq

Re: [PATCH 4.9 00/60] 4.9.34-stable review

2017-06-19 Thread Guenter Roeck
On 06/19/2017 08:16 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.34 release. There are 60 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

[patch 20/55] x86/irq: Cleanup pending irq move in fixup_irqs()

2017-06-19 Thread Thomas Gleixner
If an CPU goes offline, the interrupts are migrated away, but a eventually pending interrupt move, which has not yet been made effective is kept pending even if the outgoing CPU is the sole target of the pending affinity mask. What's worse is, that the pending affinity mask is discarded even if it

Re: Reply Urgent

2017-06-19 Thread INFO
Hello, How are you doing? I have been sent to inform you that, We have an inheritance of a deceased client with your surname. Contact Mr Andrew Bailey Reply Email To: myinf...@gmail.com with your "Full Names" for more info. Thanks for your understanding. Reply ASAP thank you. Melissa. -

Re: [PATCH v3 1/2] clk: Hi3660: register fixed_rate_clks with CLK_OF_DECLARE_DRIVER

2017-06-19 Thread Leo Yan
On Mon, Jun 19, 2017 at 04:36:55PM -0700, Stephen Boyd wrote: > On 05/22, Leo Yan wrote: > > The timer will register into system at very early phase at kernel boot; > > if timer needs to use clock, the clock should be get ready in function > > of_clk_init() so later the timer driver probe can retri

[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 changed, 7 insertions(+)

[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. T

[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 insertions(+), 1 deletion(-) --- a/drivers/pci/host/vmd.c +++ b/drivers/pci/

[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 never

[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 insertions(+), 3 del

[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 --- kernel/irq/cpuhotplug.c | 11

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 acpi_ec_suspend() smarter whi

[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: Thom

[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 2 files changed, 38 insertio

[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 +++ b/kernel/irq/cpuhotplug.c @@ -59,1

[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 +- 2 files change

[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 --- arch/x86/include/asm/irq.h |1 - i

[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(-) --- a/include/linux/ir

[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 + kernel/irq/proc.c |8

[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 proc_dir_entry *root_irq_d

[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 +++ b/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. Sign

[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(-) --- a/kernel/irq/proc.c +++ b/kernel/irq/p

[patch 39/55] genirq/cpuhotplug: Use effective affinity mask

2017-06-19 Thread Thomas Gleixner
If the architecture supports the effective affinity mask, migrating interrupts away which are not targeted by the effective mask is pointless. They can stay in the user or system supplied affinity mask, but won't be targetted at any given point as the affinity setter functions need to validate aga

[patch 42/55] x86/apic: Move online masking to core code

2017-06-19 Thread Thomas Gleixner
All implementations of apic->cpu_mask_to_apicid_and() mask out the offline cpus. The callsite already has a mask available, which has the offline CPUs removed. Use that and remove the extra bits. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/apic.c | 27 +---

[patch 40/55] x86/apic: Move flat_cpu_mask_to_apicid_and() into C source

2017-06-19 Thread Thomas Gleixner
No point in having inlines assigned to function pointers at multiple places. Just bloats the text. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/apic.h | 28 ++-- arch/x86/kernel/apic/apic.c | 16 2 files changed, 22 insertions(+), 22 deleti

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 A

[patch 38/55] genirq: Introduce effective affinity mask

2017-06-19 Thread Thomas Gleixner
There is currently no way to evaluate the effective affinity mask of a given interrupt. Many irq chips allow only a single target CPU or a subset of CPUs in the affinity mask. Updating the mask at the time of setting the affinity to the subset would be counterproductive because information for cpu

[patch 43/55] x86/apic: Move cpumask and to core code

2017-06-19 Thread Thomas Gleixner
All implementations of apic->cpu_mask_to_apicid_and() and the two incoming cpumasks to search for the target. Move that operation to the call site and rename it to cpu_mask_to_apicid() Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/apic.h | 15 ++- arch/x86/kern

[patch 51/55] genirq/cpuhotplug: Handle managed IRQs on CPU hotplug

2017-06-19 Thread Thomas Gleixner
If a CPU goes offline, interrupts affine to the CPU are moved away. If the outgoing CPU is the last CPU in the affinity mask the migration code breaks the affinity and sets it it all online cpus. This is a problem for affinity managed interrupts as CPU hotplug is often used for power management pu

[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 +++ b/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 ---

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 ("Unsigned compared against 0") >

[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 +++ b/drivers/xen/events/events_base.

[patch 46/55] x86/apic: Implement effective irq mask update

2017-06-19 Thread Thomas Gleixner
Add the effective irq mask update to the apic implementations and enable effective irq masks for x86. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig |1 + arch/x86/kernel/apic/apic.c |3 +++ arch/x86/kernel/apic/x2apic_cluster.c |4 3 files ch

[patch 53/55] genirq/cpuhotplug: Avoid irq affinity setting for single targets

2017-06-19 Thread Thomas Gleixner
Avoid trying to add a newly online CPU to the effective affinity mask of an started up interrupt. That interrupt will either stay on the already online CPU or move around for no value. Signed-off-by: Thomas Gleixner --- kernel/irq/cpuhotplug.c | 12 ++-- 1 file changed, 10 insertions(+

[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 on

[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 --- arch/x86/kernel/a

[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 inter

[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. Th

[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 to all present

[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 @@ static bool migrate

[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 +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -5

[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 +54,14 @@ static void __in

[patch 13/55] x86/msi: Remove unused remap irq domain interface

2017-06-19 Thread Thomas Gleixner
Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/irq_remapping.h |1 - arch/x86/kernel/apic/msi.c |6 -- 2 files changed, 7 deletions(-) --- a/arch/x86/include/asm/irq_remapping.h +++ b/arch/x86/include/asm/irq_remapping.h @@ -55,7 +55,6 @@ extern struct irq_domain *

[patch 08/55] x86/htirq: Create named domain

2017-06-19 Thread Thomas Gleixner
Use the fwnode to create a named domain so diagnosis works. Mark the init function __init while at it. Signed-off-by: Thomas Gleixner --- arch/x86/kernel/apic/htirq.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) --- a/arch/x86/kernel/apic/htirq.c +++ b/arch/x8

[patch 09/55] x86/uv: 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 --- arch/x86/platform/uv/uv_irq.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) --- a/arch/x86/platform/uv/uv_irq.c +++ b/arch/x86/platform/uv/uv_irq.c @@ -160,13 +160,21 @@

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

2017-06-19 Thread Rafael J. Wysocki
On Tue, Jun 20, 2017 at 1:37 AM, Zheng, Lv wrote: > Hi, Rafael > >> From: linux-acpi-ow...@vger.kernel.org >> [mailto:linux-acpi-ow...@vger.kernel.org] On Behalf Of Rafael J. >> Wysocki >> Subject: [PATCH v2 3/3] ACPI / sleep: EC-based wakeup from suspend-to-idle >> on recent Dell systems >> >>

[PATCH 19/23] xfs: define usercopy region in xfs_inode slab cache

2017-06-19 Thread Kees Cook
From: David Windsor XFS inline inode data, stored in struct xfs_inode_t.i_df.if_u2.if_inline_data and therefore contained in the xfs_inode slab cache, needs to be copied to/from userspace. In support of usercopy hardening, this patch defines a region in the xfs_inode slab cache in which userspac

[PATCH 20/23] usercopy: convert kmalloc caches to usercopy caches

2017-06-19 Thread Kees Cook
From: David Windsor Mark the kmalloc slab caches as entirely whitelisted. These caches are frequently used to fulfill kernel allocations that contain data to be copied to/from userspace. It is impossible to know at build time what objects will be contained in these caches, so the entire cache i

[PATCH 18/23] scsi: define usercopy region in scsi_sense_cache slab cache

2017-06-19 Thread Kees Cook
From: David Windsor SCSI sense buffers, stored in struct scsi_cmnd.sense and therefore contained in the scsi_sense_cache slab cache, need to be copied to/from userspace. In support of usercopy hardening, this patch defines a region in the scsi_sense_cache slab cache in which userspace copy opera

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