[PATCH v4 04/17] mfd: madera: Register map tables for Cirrus Logic CS47L35

2017-07-28 Thread Richard Fitzgerald
Regmap configuration tables for Cirrus Logic CS47L35 codecs. Signed-off-by: Piotr Stankiewicz Signed-off-by: Richard Fitzgerald Signed-off-by: Charles Keepax --- Changes since V3: - fixed missing FLL1_EFS2 register - converted EQ registers to a case range because registers.h has been stripped

[PATCH v4 00/17] Add support for Cirrus Logic CS47L35/L85/L90/L91 codecs

2017-07-28 Thread Richard Fitzgerald
The Cirrus Logic CS47L35, CS47L85, CS47L90/91 codecs are complex audio SoC devices. In addition to the core audio capability they have onboard GPIO, regulators, DSPs and interrupt controller and a large register map space accessed over SPI or I2C. This family of codecs is based around common IP blo

[PATCH v4 12/17] gpio: madera: Support Cirrus Logic Madera class codecs

2017-07-28 Thread Richard Fitzgerald
This adds support for the GPIOs on Cirrus Logic Madera class codecs. Any pins not used for special functions (see the pinctrl driver) can be used as general single-bit input or output lines. The number of available GPIOs varies between codecs. Signed-off-by: Nariman Poushin Signed-off-by: Richard

Re: [RFC PATCH] treewide: remove GFP_TEMPORARY allocation flag

2017-07-28 Thread Mel Gorman
On Fri, Jul 28, 2017 at 11:19:04AM +0200, Michal Hocko wrote: > From: Michal Hocko > > GFP_TEMPORARY has been introduced by e12ba74d8ff3 ("Group short-lived > and reclaimable kernel allocations") along with __GFP_RECLAIMABLE. It's > primary motivation was to allow users to tell that an allocation

[PATCH v4 11/17] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2017-07-28 Thread Richard Fitzgerald
These codecs have a variable number of I/O lines each of which is individually selectable to a wide range of possible functions. The functionality is slightly different from the traditional muxed GPIO since most of the functions can be mapped to any pin (and even the same function to multiple pins

[PATCH v2 2/4] clk: meson: gxbb-aoclk: Switch to regmap for register access

2017-07-28 Thread Neil Armstrong
Switch the aoclk driver to use the new bindings and switch all the registers access to regmap only. Signed-off-by: Neil Armstrong --- drivers/clk/meson/Makefile| 2 +- drivers/clk/meson/gxbb-aoclk-regmap.c | 46 +++ drivers/clk/meson/gxbb-aoclk.c

[PATCH v2 3/4] dt-bindings: clock: gxbb-aoclk: Add CEC 32k clock

2017-07-28 Thread Neil Armstrong
This patchadds the clock binding entry for the CEC 32K AO Clock. Signed-off-by: Neil Armstrong --- include/dt-bindings/clock/gxbb-aoclkc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/gxbb-aoclkc.h b/include/dt-bindings/clock/gxbb-aoclkc.h index 3175148..9d15e22

[PATCH v2 0/4] clk: meson: gxbb-aoclk: Add CEC 32k clock

2017-07-28 Thread Neil Armstrong
In order to support the standalone CEC Controller on the Amlogic SoCs, a specific CEC 32K clock must be handled in the AO domain. The CEC 32K AO Clock is a dual divider with dual counter to provide a more precise 32768Hz clock for the CEC subsystem from the external xtal. The AO clocks management

[PATCH v4 09/17] irqchip: Add driver for Cirrus Logic Madera codecs

2017-07-28 Thread Richard Fitzgerald
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840) are highly complex devices containing up to 7 programmable DSPs and many other internal sources of interrupts plus a number of GPIOs that can be used as interrupt inputs. The large number (>150) of internal interrupt sources

[PATCH v2 4/4] clk: meson: gxbb-aoclk: Add CEC 32k clock

2017-07-28 Thread Neil Armstrong
The CEC 32K AO Clock is a dual divider with dual counter to provide a more precise 32768Hz clock for the CEC subsystem from the external xtal. Signed-off-by: Neil Armstrong --- drivers/clk/meson/Makefile | 2 +- drivers/clk/meson/gxbb-aoclk-32k.c | 180 +

[PATCH v2 1/4] dt-bindings: clock: amlogic,gxbb-aoclkc: Update bindings

2017-07-28 Thread Neil Armstrong
On the first revision of the bindings, only the gates + resets were known in the AO Clock HW, but more registers used to configures AO clock are known to be spread among the AO register space. This patch adds a parent node for the entire system control zone for the AO domain then moves the clock co

Re: [PATCH 0/3] net-next: stmmac: support future possible different internal phy mode

2017-07-28 Thread Chen-Yu Tsai
On Fri, Jul 28, 2017 at 5:28 PM, Corentin Labbe wrote: > Hello > > The current way to find if the phy is internal is to compare DT phy-mode > and emac_variant/internal_phy. > But it will negate a possible future SoC where an external PHY use the > same phy mode than the internal one. > > This patc

Re: [PATCH 3/3] net-next: stmmac: dwmac-sun8i: choose internal PHY via compatible

2017-07-28 Thread Corentin Labbe
On Fri, Jul 28, 2017 at 05:49:55PM +0800, Chen-Yu Tsai wrote: > On Fri, Jul 28, 2017 at 5:28 PM, Corentin Labbe > wrote: > > The current way to find if the phy is internal is to compare DT phy-mode > > and emac_variant/internal_phy. > > But it will negate a possible future SoC where an external PH

[PATCH v4 02/17] mfd: madera: Add DT bindings for Cirrus Logic Madera codecs

2017-07-28 Thread Richard Fitzgerald
Specification of the bindings for the parent MFD driver component of the Cirrus Logic Madera codec drivers. Note that although the interrupt controller and GPIO are child drivers their required bindings are trivial, mandatory, and exist within the parent MFD node so are documented here. Signed-of

Re: [PATCH v6 RESEND] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-28 Thread Ingo Molnar
* Matt Fleming wrote: > On Fri, 21 Jul, at 09:19:56PM, Baoquan He wrote: > > > > There are places where the efi map is getting and used like this. E.g > > in efi_high_alloc() of drivers/firmware/efi/libstub/efi-stub-helper.c. > > EFI developers worry the size of efi_memory_desc_t could not be th

[PATCH v4 07/17] regulator: arizona-micsupp: Add support for Cirrus Logic Madera codecs

2017-07-28 Thread Richard Fitzgerald
This adds a new driver identity "madera-micsupp" and probe function so that this driver can be used to control the micsupp regulator on Cirrus Logic Madera codecs. Signed-off-by: Richard Fitzgerald Acked-by: Rob Herring --- No changes since V3 .../bindings/regulator/arizona-regulator.txt

Re: [PATCH 1/3] memory: mtk-smi: add larbid init routine

2017-07-28 Thread Robin Murphy
On 28/07/17 02:15, Honghui Zhang wrote: > On Thu, 2017-07-27 at 17:42 +0200, Matthias Brugger wrote: >> >> On 07/27/2017 04:01 AM, honghui.zh...@mediatek.com wrote: >>> From: Honghui Zhang >>> >>> In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"), >>> the larb->larbid was adde

[PATCH v1 3/5] [media] stm32-dcmi: cleanup variable/fields namings

2017-07-28 Thread Hugues Fruchet
Uniformize "pixfmt" variables to "pix". Change "current_fmt" & "dcmi_fmt" variables to variables with "sd_" prefix to explicitly refer to subdev format. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 103 -- 1 file changed, 54 insertions

[PATCH v1 1/5] [media] stm32-dcmi: catch dma submission error

2017-07-28 Thread Hugues Fruchet
Test cookie return by dmaengine_submit() and return error if any. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index 24ef8

[PATCH v1 5/5] [media] stm32-dcmi: g_/s_selection crop support

2017-07-28 Thread Hugues Fruchet
Implements g_/s_selection crop support by using DCMI crop hardware feature. User can first get the maximum supported resolution of the sensor by calling g_selection(V4L2_SEL_TGT_CROP_BOUNDS). Then user call to s_selection(V4L2_SEL_TGT_CROP) will reset sensor to its maximum resolution and crop reque

[PATCH v1 2/5] [media] stm32-dcmi: revisit control register handling

2017-07-28 Thread Hugues Fruchet
Simplify bits handling of DCMI_CR register. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index

[PATCH v1 4/5] [media] stm32-dcmi: set default format at open()

2017-07-28 Thread Hugues Fruchet
Ensure that we start with default pixel format and resolution when opening a new instance. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 49 ++- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/drivers/media/platform/stm3

Re: [PATCH 0/2] clk: meson: fix protection against undefined clks

2017-07-28 Thread Neil Armstrong
On 07/27/2017 06:17 PM, Jerome Brunet wrote: > If the last clkids defined have no hw pointer associated with them in > the hw_onecell_data array, the initialization is going to crash badly > because the array is not big enough. > > The patchset makes sure the array is big enough, and that each clk

[PATCH v1 0/5] STM32 DCMI camera interface crop support

2017-07-28 Thread Hugues Fruchet
This patchset implements crop feature of Digital Camera Memory Interface (DCMI) of STMicroelectronics STM32 SoC series, allowing user to crop at pixel level inside sensor captured frame. This patchset follows discussions initiated from a first submission of DCMI crop support, see [1]. First part

Re: [PATCH v2 0/3] ASoC: fix unbalanced of_node_get()/of_node_put()

2017-07-28 Thread Mark Brown
On Fri, Jul 28, 2017 at 01:26:09AM +0200, Antonio Borneo wrote: > From: Antonio Borneo > > On Hikey target board, enabling CONFIG_OF_DYNAMIC triggers several > errors at kernel boot, like > OF: ERROR: Bad of_node_put() on /soc/i2s@f7118000/ports/port@0 > OF: ERROR: Bad of_node_put() on /soc/i2s@f

[PATCH] drivers:staging:wlan-ng Correct multiple line dereference

2017-07-28 Thread janani-sankarababu
This patch fixes multiple line dereference Warning reported by checkpath script. This has been made to simplify the code and make it more readable. Signed-off-by: Janani S --- drivers/staging/wlan-ng/hfa384x_usb.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/

Applied "ASoC: samsung: Add proper error paths to s3c24xx I2S driver" to the asoc tree

2017-07-28 Thread Mark Brown
The patch ASoC: samsung: Add proper error paths to s3c24xx I2S driver has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [PATCH v6 RESEND] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-28 Thread Baoquan He
On 07/28/17 at 11:55am, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > On Fri, 21 Jul, at 09:19:56PM, Baoquan He wrote: > > > > > > There are places where the efi map is getting and used like this. E.g > > > in efi_high_alloc() of drivers/firmware/efi/libstub/efi-stub-helper.c. > > > EFI dev

Applied "ASoC: samsung: Fix possible double iounmap on s3c24xx driver probe failure" to the asoc tree

2017-07-28 Thread Mark Brown
The patch ASoC: samsung: Fix possible double iounmap on s3c24xx driver probe failure has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "spi: bcm-qspi: Remove hardcoded settings and spi-nor.h dependency" to the spi tree

2017-07-28 Thread Mark Brown
The patch spi: bcm-qspi: Remove hardcoded settings and spi-nor.h dependency has been applied to the spi tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hou

Re: [PATCH v2 6/7] mailbox: bcm-flexrm-mailbox: Set msg_queue_len for each channel

2017-07-28 Thread Jassi Brar
On Fri, Jul 28, 2017 at 3:18 PM, Anup Patel wrote: > On Fri, Jul 28, 2017 at 2:34 PM, Jassi Brar wrote: >> On Fri, Jul 28, 2017 at 2:19 PM, Anup Patel wrote: >>> On Thu, Jul 27, 2017 at 5:23 PM, Jassi Brar >>> wrote: On Thu, Jul 27, 2017 at 11:20 AM, Anup Patel wrote: > On Thu,

[PATCH v2 2/3] xen: split up xen_hvm_init_shared_info()

2017-07-28 Thread Juergen Gross
Instead of calling xen_hvm_init_shared_info() on boot and resume split it up into a boot time function searching for the pfn to use and a mapping function doing the hypervisor mapping call. Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_hvm.c | 45 +++

[PATCH v2 0/3] fix xen hvm guest with kaslr enabled

2017-07-28 Thread Juergen Gross
This patch series fixes a regression introduced in 4.13-rc1: A Xen HVM guest with KASLR enabled wouldn't boot any longer due to the usage of __va() before kernel_randomize_memory() was called. Changes in V2: - patch 1: test for x86_hyper being not NULL Juergen Gross (3): x86: provide an init_me

[PATCH v2 1/3] x86: provide an init_mem_mapping hypervisor hook

2017-07-28 Thread Juergen Gross
Provide a hook in hypervisor_x86 called after setting up initial memory mapping. This is needed e.g. by Xen HVM guests to map the hypervisor shared info page. Signed-off-by: Juergen Gross --- arch/x86/include/asm/hypervisor.h | 10 ++ arch/x86/mm/init.c| 3 +++ 2 files

[PATCH v2 3/3] xen: fix hvm guest with kaslr enabled

2017-07-28 Thread Juergen Gross
A Xen HVM guest running with KASLR enabled will die rather soon today due to the shared info page mapping is using va() too early. This was introduced by commit a5d5f328b0e2baa5ee7c119fd66324eb79eeeb66 ("xen: allocate page for shared info page from low memory"). In order to fix this use early_memr

Re: [RFC PATCH] treewide: remove GFP_TEMPORARY allocation flag

2017-07-28 Thread Michal Hocko
On Fri 28-07-17 10:52:49, Mel Gorman wrote: > On Fri, Jul 28, 2017 at 11:19:04AM +0200, Michal Hocko wrote: > > From: Michal Hocko > > > > GFP_TEMPORARY has been introduced by e12ba74d8ff3 ("Group short-lived > > and reclaimable kernel allocations") along with __GFP_RECLAIMABLE. It's > > primary

Re: [PATCH] drivers:staging:wlan-ng Correct multiple line dereference

2017-07-28 Thread Dan Carpenter
Fix your email From header to match your Signed-off-by line. The subject should be: [PATCH] staging: wlan-ng: Correct multiple line dereference On Fri, Jul 28, 2017 at 03:33:27PM +0530, janani-sankarababu wrote: > This patch fixes multiple line dereference Warning reported by checkpath > script

[PATCH] MAINTAINERS: Add myself to S390 ZFCP DRIVER as a co-maintainer

2017-07-28 Thread Benjamin Block
I have been working with Steffen on zFCP for quite a while now and we decided adding me as a co-maintainer might be a good thing. Acked-by: Steffen Maier Signed-off-by: Benjamin Block --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index f6ec1be4860

Re: [PATCH v2 4/4] clk: meson: gxbb-aoclk: Add CEC 32k clock

2017-07-28 Thread Martin Blumenstingl
Hi Neil, thanks for these patches, CEC support is another good step! On Fri, Jul 28, 2017 at 11:53 AM, Neil Armstrong wrote: > The CEC 32K AO Clock is a dual divider with dual counter to provide a more > precise 32768Hz clock for the CEC subsystem from the external xtal. > > Signed-off-by: Neil

[PATCH] w1: constify attribute_group structures.

2017-07-28 Thread Arvind Yadav
attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/w1/w1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [RFC Part1 PATCH v3 08/17] x86/efi: Access EFI data as encrypted when SEV is active

2017-07-28 Thread Borislav Petkov
On Mon, Jul 24, 2017 at 02:07:48PM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > EFI data is encrypted when the kernel is run under SEV. Update the > page table references to be sure the EFI memory areas are accessed > encrypted. > > Signed-off-by: Tom Lendacky > Signed-off-by: Brijesh S

Re: [PATCH] drivers:staging:wlan-ng Correct multiple line dereference

2017-07-28 Thread Joe Perches
On Fri, 2017-07-28 at 15:33 +0530, janani-sankarababu wrote: > This patch fixes multiple line dereference Warning reported by checkpath > script. This has been made to simplify the code and make it more readable. Please wrap your commit messages to 75 characters per line. And run your suggested

Re: [PATCH 1/3] memory: mtk-smi: add larbid init routine

2017-07-28 Thread Honghui Zhang
On Fri, 2017-07-28 at 10:59 +0100, Robin Murphy wrote: > On 28/07/17 02:15, Honghui Zhang wrote: > > On Thu, 2017-07-27 at 17:42 +0200, Matthias Brugger wrote: > >> > >> On 07/27/2017 04:01 AM, honghui.zh...@mediatek.com wrote: > >>> From: Honghui Zhang > >>> > >>> In the commit 3c8f4ad85c4b ("mem

Re: [PATCH v6 RESEND] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-28 Thread Baoquan He
On 07/28/17 at 06:18pm, Baoquan He wrote: > On 07/28/17 at 11:55am, Ingo Molnar wrote: > > > > * Matt Fleming wrote: > > > > > On Fri, 21 Jul, at 09:19:56PM, Baoquan He wrote: > > > > > > > > There are places where the efi map is getting and used like this. E.g > > > > in efi_high_alloc() of dri

Re: [PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks

2017-07-28 Thread Andy Shevchenko
On Fri, 2017-07-28 at 01:16 +0900, Masahiro Yamada wrote: > Several drivers call to_platform_device() to get platform_device > and pass it to platform_get_drvdata().  In platform_get_drvdata(), > the platform_device is converted back to struct device again. > > Use dev_get_drvdata() to avoid platf

[PATCH v2] staging:wlan-ng Correct multiple line dereference

2017-07-28 Thread janani-sankarababu
This patch fixes the multiple line dereference Warning reported by checkpath script. This has been made to simplify the code and make it more readable. Signed-off-by: Janani Sankara Babu --- drivers/staging/wlan-ng/hfa384x_usb.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-)

[PATCH] mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Haswell/Broadwell

2017-07-28 Thread Mika Westerberg
At least on Lenovo Thinkpad Yoga, the BIOS seems to monitor the SPI-NOR write protection bit and if it is flipped to read/write it assumes the BIOS configuration was changed on next reboot. It then, for unknown reasons, resets the BIOS settings back to default. We can prevent this by just leaving

Re: [RFC PATCH 6/8] EDAC, mce_amd: Convert to seq_buf

2017-07-28 Thread Borislav Petkov
On Fri, Jul 28, 2017 at 09:09:33AM +0200, Borislav Petkov wrote: > On Thu, Jul 27, 2017 at 09:47:08PM -0400, Steven Rostedt wrote: > > What happens if two CPUs have mce's at the same time? Wouldn't one > > corrupt the other buffer. 128 isn't too big to put on the stack is it? > > Yeah, putting it

Re: [Intel-gfx] [PATCH 2/4] lib/scatterlist: Avoid potential scatterlist entry overflow

2017-07-28 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-07-27 10:05:02) > From: Tvrtko Ursulin > > Since the scatterlist length field is an unsigned int, make > sure that sg_alloc_table_from_pages does not overflow it while > coallescing pages to a single entry. > > v2: Drop reference to future use. Use UINT_MAX. > v3: ma

[PATCH v2 0/3] Add larbid init routine for mediatek's gen1 smi larb driver

2017-07-28 Thread honghui.zhang
From: Honghui Zhang Mediatek's gen1 smi need the hardware larbid to identify the offset for the register which controls whether enable iommu for this larb. In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"), the larbid was used without properly initialized. This patchset fixed

[PATCH v2 3/3] arm: dts: mediatek: add larbid property for larb

2017-07-28 Thread honghui.zhang
From: Honghui Zhang Add mediatek's hardware id information for smi larb. Signed-off-by: Honghui Zhang --- arch/arm/boot/dts/mt2701.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index f1efdc6..2cddbec 100644 --- a/arch/

[PATCH v2 2/3] dt-bindings: mediatek: add descriptions for larbid

2017-07-28 Thread honghui.zhang
From: Honghui Zhang This patch add larbid descritptions for mediatek's gen1 smi larb hardware. Signed-off-by: Honghui Zhang --- .../bindings/memory-controllers/mediatek,smi-larb.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/memo

[PATCH v2 1/3] memory: mtk-smi: add larbid handle routine

2017-07-28 Thread honghui.zhang
From: Honghui Zhang In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"), the larb->larbid was added but not initialized. Mediatek's gen1 smi need this hardware larbid information to get the register offset which controls whether enable iommu for this larb. This patch add the in

[PATCH] ceph: check negative offsets on ceph_llseek()

2017-07-28 Thread Luis Henriques
When a user requests SEEK_HOLE or SEEK_DATA with a negative offset ceph_llseek should return -ENXIO. Currently -EINVAL is being returned for SEEK_DATA and 0 for SEEK_HOLE. Signed-off-by: Luis Henriques --- fs/ceph/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs

Re: [PATCH net] net: phy: Run state machine to completion

2017-07-28 Thread Marc Gonzalez
On 26/07/2017 21:24, Florian Fainelli wrote: > Marc reported that he was not getting the PHY library adjust_link() > callback function to run when calling phy_stop() + phy_disconnect() > which does not indeed happen because we don't make sure we flush the > PHYLIB delayed work and let it run to co

Re: [RFC PATCH] treewide: remove GFP_TEMPORARY allocation flag

2017-07-28 Thread Mel Gorman
On Fri, Jul 28, 2017 at 12:27:43PM +0200, Michal Hocko wrote: > On Fri 28-07-17 10:52:49, Mel Gorman wrote: > > On Fri, Jul 28, 2017 at 11:19:04AM +0200, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > GFP_TEMPORARY has been introduced by e12ba74d8ff3 ("Group short-lived > > > and reclai

Re: [PATCH V8 1/6] PM / Domains: Add support to select performance-state of domains

2017-07-28 Thread Viresh Kumar
On 21-07-17, 10:35, Ulf Hansson wrote: > >> > +/* > >> > + * Returns true if anyone in genpd's parent hierarchy has > >> > + * set_performance_state() set. > >> > + */ > >> > +static bool genpd_has_set_performance_state(struct generic_pm_domain > >> > *genpd) > >> > +{ > >> > >> So this function w

Re: [PATCH v2] staging:wlan-ng Correct multiple line dereference

2017-07-28 Thread Dan Carpenter
>From header. Subject. Doesn't apply (read Documentation/process/email-clients.rst). On Fri, Jul 28, 2017 at 04:14:29PM +0530, janani-sankarababu wrote: > This patch fixes the multiple line dereference Warning reported by > checkpath script. This has been made to simplify the code and make > it

Re: [PATCH 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations

2017-07-28 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-07-27 10:05:04) > From: Tvrtko Ursulin > > With the addition of __sg_alloc_table_from_pages we can control > the maximum coallescing size and eliminate a separate path for > allocating backing store here. > > Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto

Re: [PATCH 3/4] lib/scatterlist: Introduce and export __sg_alloc_table_from_pages

2017-07-28 Thread Chris Wilson
Quoting Tvrtko Ursulin (2017-07-27 10:05:03) > From: Tvrtko Ursulin > > Drivers like i915 benefit from being able to control the maxium > size of the sg coallesced segment while building the scatter- > gather list. > > Introduce and export the __sg_alloc_table_from_pages function > which will al

Re: [PATCH net-next v2 01/10] net: dsa: lan9303: Fixed MDIO interface

2017-07-28 Thread Egil Hjelmeland
On 26. juli 2017 18:55, Andrew Lunn wrote: On Tue, Jul 25, 2017 at 06:15:44PM +0200, Egil Hjelmeland wrote: It is better to use mdiobus_read/write or if you are nesting mdio busses, mdiobus_read_nested/mdiobus_write_nested. Please test this code with lockdep enabled. I have CONFIG_DEBUG_SPINLO

Re: [PATCH 09/15] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE v6

2017-07-28 Thread Michal Hocko
I haven't seen a newer version posted but the same comment applies on your hmm-v25-4.9 git version from git://people.freedesktop.org/~glisse/linux On Wed 28-06-17 14:00:41, Jérôme Glisse wrote: > This introduce a simple struct and associated helpers for device driver > to use when hotpluging un-ad

Re: [RFC PATCH v2] membarrier: expedited private command

2017-07-28 Thread Peter Zijlstra
On Fri, Jul 28, 2017 at 10:55:32AM +0200, Peter Zijlstra wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index e9785f7aed75..33f34a201255 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2641,8 +2641,18 @@ static struct rq *finish_task_switch(struct > task_str

Re: [PATCH v8 10/13] iommu/amd: Allocate memory below 4G for dev table if translation pre-enabled

2017-07-28 Thread Joerg Roedel
On Fri, Jul 28, 2017 at 05:06:19PM +0800, Baoquan He wrote: > Do you mean the allocation of amd_iommu_dev_table in > early_amd_iommu_init() also need be addressed for 1st kernel? Seems we > don't make sure that for 1st kernel, like adding GFP_DMA32 flag when > allocate amd_iommu_dev_table in amd_io

Re: [PATCH v8 10/13] iommu/amd: Allocate memory below 4G for dev table if translation pre-enabled

2017-07-28 Thread Baoquan He
On 07/28/17 at 01:14pm, Joerg Roedel wrote: > On Fri, Jul 28, 2017 at 05:06:19PM +0800, Baoquan He wrote: > > Do you mean the allocation of amd_iommu_dev_table in > > early_amd_iommu_init() also need be addressed for 1st kernel? Seems we > > don't make sure that for 1st kernel, like adding GFP_DMA3

Re: [PATCH v8 10/13] iommu/amd: Allocate memory below 4G for dev table if translation pre-enabled

2017-07-28 Thread Joerg Roedel
On Fri, Jul 28, 2017 at 07:15:53PM +0800, Baoquan He wrote: > On 07/28/17 at 01:14pm, Joerg Roedel wrote: > > Yes, exactly, the first device table also needs to be allocated with > > GFP_DMA32 so that it ends up below 4GB. > > Got it, will do. Thanks! Oh, and you also need to check in the kdump k

two more objtool warnings: lib/ubsan.o and fs/fs_pin.o

2017-07-28 Thread Arnd Bergmann
Hi Josh, I ran into two more warnings with the two patches you sent me in private, using gcc-7.1.1: lib/ubsan.o: warning: objtool: val_to_string.constprop.7()+0x97: leave instruction with modified stack frame .config: https://pastebin.com/dl/g04Dwdwx fs/fs_pin.o: warning: objtool: pin_kill()+0x1

Re: [PATCH v6 RESEND] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions

2017-07-28 Thread Baoquan He
Hi Matt, On 07/28/17 at 11:55am, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > On Fri, 21 Jul, at 09:19:56PM, Baoquan He wrote: > > > > > > There are places where the efi map is getting and used like this. E.g > > > in efi_high_alloc() of drivers/firmware/efi/libstub/efi-stub-helper.c. > >

Re: [RFC PATCH 3/5] mm, memory_hotplug: allocate memmap from the added memory range for sparse-vmemmap

2017-07-28 Thread Michal Hocko
On Wed 26-07-17 19:20:39, Gerald Schaefer wrote: > On Wed, 26 Jul 2017 14:30:41 +0200 > Michal Hocko wrote: > > > On Wed 26-07-17 13:45:39, Heiko Carstens wrote: > > [...] > > > In general I do like your idea, however if I understand your patches > > > correctly we might have an ordering problem

Re: [PATCH v8 10/13] iommu/amd: Allocate memory below 4G for dev table if translation pre-enabled

2017-07-28 Thread Baoquan He
On 07/28/17 at 01:18pm, Joerg Roedel wrote: > On Fri, Jul 28, 2017 at 07:15:53PM +0800, Baoquan He wrote: > > On 07/28/17 at 01:14pm, Joerg Roedel wrote: > > > Yes, exactly, the first device table also needs to be allocated with > > > GFP_DMA32 so that it ends up below 4GB. > > > > Got it, will do

[PATCH v5 0/2] Add basic support for Mediatek MT2712 SoC

2017-07-28 Thread YT Shen
MT2712 is a SoC based on 64bit ARMv8 architecture. MT2712 share many HW IP with MT8173. This patchset was tested on MT2712 evaluation board, and boot to shell ok. This series contains document bindings, device tree including interrupt and uart. Changes compared to v4: - rebase to 4.13-rc1 - us

[PATCH v5 1/2] dt-bindings: arm: Add bindings for Mediatek MT2712 SoC Platform

2017-07-28 Thread YT Shen
This adds dt-binding documentation for Mediatek MT2712. Only include very basic items: cpu, gic and uart. Signed-off-by: YT Shen Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/mediatek.txt| 4 .../devicetree/bindings/interrupt-controller/mediatek,sysirq

[PATCH v5 2/2] arm64: dts: Add Mediatek SoC MT2712 and evaluation board dts and Makefile

2017-07-28 Thread YT Shen
This adds basic chip support for Mediatek 2712 Signed-off-by: YT Shen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 32 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 178 3 files changed, 211 insertions(

Possible race condition in oom-killer

2017-07-28 Thread Manish Jaggi
was: Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap Hi Michal, On 7/27/2017 2:54 PM, Michal Hocko wrote: On Thu 27-07-17 13:59:09, Manish Jaggi wrote: [...] With 4.11.6 I was getting random kernel panics (Out of memory - No process left to kill), when running LTP oom01 /oom02 l

Re: [PATCH 0/2] KVM: nVMX: fixes to nested virt interrupt injection

2017-07-28 Thread Paolo Bonzini
On 28/07/2017 10:24, Mike Galbraith wrote: > On Fri, 2017-07-28 at 09:03 +0200, Paolo Bonzini wrote: >> With these two patches, KVM does not blindly pass the exit interruption >> info and exit qualification from the vmcs02 and vmcs12 when injecting >> an exception. There were two spots where this

RE: [PATCH V4 net-next 2/8] net: hns3: Add support of the HNAE3 framework

2017-07-28 Thread Salil Mehta
Hi Leon, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Friday, July 28, 2017 5:42 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil...

Re: [PATCH] turbostat: Running on virtual machine is not supported

2017-07-28 Thread Prarit Bhargava
On 07/26/2017 11:09 PM, Len Brown wrote: > Henrique, > > I like your suggestion, thanks! > > BTW. let's discuss (and patch) turbostat on linux-pm, rather than on lkml. > > thanks, > -Len > > > On Tue, Jul 25, 2017 at 11:59 AM, Henrique de Moraes Holschuh > wrote: >> On Tue, 25 Jul 2017, Pra

[PATCH 2/3] ANDROID: binder: add hwbinder,vndbinder to BINDER_DEVICES.

2017-07-28 Thread Martijn Coenen
These will be required going forward. Signed-off-by: Martijn Coenen --- drivers/android/Kconfig| 2 +- kernel/configs/android-base.config | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/android/Kconfig b/drivers/android/Kconfig index 832e885349b1..4d4cdc1

Re: [RFC PATCH v2] membarrier: expedited private command

2017-07-28 Thread Peter Zijlstra
On Fri, Jul 28, 2017 at 10:55:32AM +0200, Peter Zijlstra wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index e9785f7aed75..33f34a201255 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2641,8 +2641,18 @@ static struct rq *finish_task_switch(struct > task_str

[PATCH 0/3] ANDROID: binder: reconcile with android common tree

2017-07-28 Thread Martijn Coenen
When comparing the android common kernel branch with upstream, I found several differences. The "add padding" patch has long been applied in common, and shipping versions of Android userspace depends on this particular alignment; so while it does change UAPI, we have never shipped a userspace that

[PATCH 3/3] ANDROID: binder: fix proc->tsk check.

2017-07-28 Thread Martijn Coenen
Commit c4ea41ba195d ("binder: use group leader instead of open thread")' was incomplete and didn't update a check in binder_mmap(), causing all mmap() calls into the binder driver to fail. Signed-off-by: Martijn Coenen --- drivers/android/binder.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 1/3] ANDROID: binder: add padding to binder_fd_array_object.

2017-07-28 Thread Martijn Coenen
binder_fd_array_object starts with a 4-byte header, followed by a few fields that are 8 bytes when ANDROID_BINDER_IPC_32BIT=N. This can cause alignment issues in a 64-bit kernel with a 32-bit userspace, as on x86_32 an 8-byte primitive may be aligned to a 4-byte address. Pad with a __u32 to fix th

Re: [PATCH 02/37] binder: use group leader instead of open thread

2017-07-28 Thread Martijn Coenen
I took the time to look at what else is different between common and upstream, and just sent 3 patches to LKML to reconcile. One of the 3 fixes this particular problem. On Thu, Jul 27, 2017 at 3:42 PM, Amit Pundir wrote: > On 27 July 2017 at 18:53, Greg Kroah-Hartman > wrote: >> On Thu, Jul 27,

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-28 Thread Michal Hocko
On Wed 26-07-17 10:33:28, Michal Hocko wrote: [...] > There is also one potential drawback, though. If somebody uses memory > hotplug for 1G (gigantic) hugetlb pages then this scheme will not work > for them obviously because each memory section will contain 2MB reserved > area. Actually I am wron

Re: [PATCH 0/2] KVM: nVMX: fixes to nested virt interrupt injection

2017-07-28 Thread Mike Galbraith
On Fri, 2017-07-28 at 13:53 +0200, Paolo Bonzini wrote: > On 28/07/2017 10:24, Mike Galbraith wrote: > > On Fri, 2017-07-28 at 09:03 +0200, Paolo Bonzini wrote: > >> With these two patches, KVM does not blindly pass the exit interruption > >> info and exit qualification from the vmcs02 and vmcs12 w

Re: [PATCH V6] sched/fair: Remove group imbalance from calculate_imbalance()

2017-07-28 Thread Dietmar Eggemann
On 26/07/17 15:54, Peter Zijlstra wrote: > On Tue, Jul 18, 2017 at 08:48:53PM +0100, Dietmar Eggemann wrote: >> Hi Jeffrey, >> >> On 13/07/17 20:55, Jeffrey Hugo wrote: [...] >>> Since the group imbalance path in calculate_imbalance() is at best a NOP >>> but otherwise harmful, remove it. > > Hu

Re: [PATCH tip/core/rcu 07/15] rcu: Add event tracing to ->gp_tasks update at GP start

2017-07-28 Thread Steven Rostedt
On Thu, 27 Jul 2017 20:22:32 -0700 "Paul E. McKenney" wrote: > On Thu, Jul 27, 2017 at 09:38:10PM -0400, Steven Rostedt wrote: > > On Mon, 24 Jul 2017 14:44:36 -0700 > > "Paul E. McKenney" wrote: > > > > > There is currently event tracing to track when a task is preempted > > > within a preem

Re: [RFC PATCH 0/5] mm, memory_hotplug: allocate memmap from hotadded memory

2017-07-28 Thread Michal Hocko
On Thu 27-07-17 08:56:52, Michal Hocko wrote: > On Wed 26-07-17 17:06:59, Jerome Glisse wrote: > [...] > > This does not seems to be an opt-in change ie if i am reading patch 3 > > correctly if an altmap is not provided to __add_pages() you fallback > > to allocating from begining of zone. This wil

[PATCH -tip v6] irq: Make irqentry text section unconditional

2017-07-28 Thread Masami Hiramatsu
Generate irqentry and softirqentry text sections without any configs. This will add above extra sections, but no performace impact. Signed-off-by: Masami Hiramatsu Suggested-by: Ingo Molnar --- arch/arm/include/asm/traps.h |7 --- arch/arm64/include/asm/traps.h|7 --- a

Re: [PATCH] init:main.c: Fixed issues in Block comments and removed braces in single statement if block

2017-07-28 Thread Steven Rostedt
On Fri, 28 Jul 2017 11:37:33 +0530 janani-sankarababu wrote: > Signed-off-by: Janani S > > --- > init/main.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/init/main.c b/init/main.c > index 052481f..f8eb4966 100644 > --- a/init/main.c > +++ b/init/main.c > @@

[PATCH -tip v6 1/2] irq: Make irqentry text section unconditional

2017-07-28 Thread Masami Hiramatsu
Generate irqentry and softirqentry text sections without any configs. This will add above extra sections, but no performace impact. Signed-off-by: Masami Hiramatsu Suggested-by: Ingo Molnar --- arch/arm/include/asm/traps.h |7 --- arch/arm64/include/asm/traps.h|7 --- a

[PATCH -tip v6 2/2] [BUGFIX] kprobes/x86: Do not jump-optimize kprobes on irq entry code

2017-07-28 Thread Masami Hiramatsu
Since the kernel segment registers are not prepared at the entry of irq-entry code, if a kprobe on such code is jump-optimized, accessing per-cpu variables may cause kernel panic. However, if the kprobe is not optimized, it kicks int3 exception and set segment registers correctly. This checks prob

Re: [RESEND PATCH] ARM: dts: stm32: Add DMA support for STM32F746 SoC

2017-07-28 Thread Alexandre Torgue
Hi Pierre-Yves, On 07/11/2017 08:54 AM, Pierre-Yves MORDRET wrote: This patch adds DMA support for STM32F746 SoC. Signed-off-by: Pierre-Yves MORDRET --- arch/arm/boot/dts/stm32f746.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/st

Re: [PATCH 2/2] init/main.c: Fixes quoted string split across lines & missing blank line after declaration

2017-07-28 Thread Steven Rostedt
On Fri, 28 Jul 2017 11:56:46 +0530 janani-sankarababu wrote: > Signed-off-by: Janani S > --- > init/main.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/init/main.c b/init/main.c > index f8eb4966..920b829 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -176,6

Re: [PATCH -tip v6] irq: Make irqentry text section unconditional

2017-07-28 Thread Masami Hiramatsu
Sorry, please ignore this patch. I missed to send 2nd patch... On Fri, 28 Jul 2017 21:20:22 +0900 Masami Hiramatsu wrote: > Generate irqentry and softirqentry text sections without > any configs. This will add above extra sections, but > no performace impact. > > Signed-off-by: Masami Hiramatsu

Re: [RESEND PATCH] ARM: dts: stm32: Add DMA support for STM32H743 SoC

2017-07-28 Thread Alexandre Torgue
Hi, On 07/11/2017 08:56 AM, Pierre-Yves MORDRET wrote: This patch adds DMA support for STM32H743 SoC. Signed-off-by: Pierre-Yves MORDRET --- arch/arm/boot/dts/stm32h743.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32h743.dts

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-28 Thread Tomi Sarvela
On 28/07/17 00:08, Thomas Gleixner wrote: On Thu, 27 Jul 2017, Thomas Gleixner wrote: On Thu, 27 Jul 2017, Thomas Gleixner wrote: On Thu, 27 Jul 2017, Tomi Sarvela wrote: On 27/07/17 10:42, Thomas Gleixner wrote: On Thu, 27 Jul 2017, Tomi Sarvela wrote: On 26/07/17 17:26, Thomas Gleixner wro

Re: Possible race condition in oom-killer

2017-07-28 Thread Michal Hocko
[CC linux-mm] On Fri 28-07-17 17:22:25, Manish Jaggi wrote: > was: Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap > > Hi Michal, > On 7/27/2017 2:54 PM, Michal Hocko wrote: > >On Thu 27-07-17 13:59:09, Manish Jaggi wrote: > >[...] > >>With 4.11.6 I was getting random kernel panics (

[PATCH] fuse: convert to errseq_t based error tracking for fsync

2017-07-28 Thread Jeff Layton
From: Jeff Layton Change to file_write_and_wait_range and file_check_and_advance_wb_err. Signed-off-by: Jeff Layton --- fs/fuse/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) This patch is untested, mostly because I have no idea how to test it. Based on my experience with

Re: Suspend-resume failure on Intel Eagle Lake Core2Duo

2017-07-28 Thread Martin Peres
On 27/07/17 10:36, Tomi Sarvela wrote: On 26/07/17 17:26, Thomas Gleixner wrote: On Wed, 26 Jul 2017, Martin Peres wrote: On 25/07/17 10:01, Tomi Sarvela wrote: On 24/07/17 19:37, Martin Peres wrote: On 24/07/17 19:35, Thomas Gleixner wrote: On Mon, 24 Jul 2017, Martin Peres wrote: On 24/07

  1   2   3   4   5   6   7   8   >