[PATCH v7 5/7] ARM: tegra: Don't apply CPU erratas in insecure mode

2019-02-28 Thread Dmitry Osipenko
CPU isn't allowed to touch secure registers while running under secure monitor. Hence skip applying of CPU erratas in the reset handler if Trusted Foundations firmware presents. Partially based on work done by Michał Mirosław [1]. [1] https://www.spinics.net/lists/arm-kernel/msg594768.html Teste

[PATCH v7 6/7] ARM: tegra: Always boot CPU in ARM-mode

2019-02-28 Thread Dmitry Osipenko
CPU always jumps into reset handler in ARM-mode from the Trusted Foundations firmware, hence let's make CPU to always jump into kernel in ARM-mode regardless of the firmware presence. This is required to make Thumb-2 kernel working with the Trusted Foundations firmware on Tegra30. Tested-by: Rober

[PATCH v7 7/7] ARM: tegra: Add firmware calls required for suspend-resume on Tegra30

2019-02-28 Thread Dmitry Osipenko
In order to suspend-resume CPU with Trusted Foundations firmware being present on Tegra30, the LP1/LP2 boot vectors and CPU caches need to be set up using the firmware calls and then suspend code shall avoid re-disabling parts that were disabled by the firmware. Tested-by: Robert Yang Tested-by:

[PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Dmitry Osipenko
Implement L2 cache initialization firmware callback that should be invoked early during boot in order to set up the required outer cache driver's callbacks and add the callback required for L2X0 maintenance. Partially based on work done by Michał Mirosław [1]. [1] https://www.spinics.net/lists/ar

[PATCH v7 4/7] ARM: tegra: Set up L2 cache using Trusted Foundations firmware

2019-02-28 Thread Dmitry Osipenko
On Tegra30 L2 cache should be initialized using firmware call if CPU is running in insecure mode. Set up the required outer-cache write_sec() callback early during boot using the firmware API, it is always a NO-OP on T114+ and is NO-OP on T20/30 if Trusted Foundations firmware node isn't present in

[PATCH v7 0/7] Support Trusted Foundations firmware on Tegra30

2019-02-28 Thread Dmitry Osipenko
Hello, This patchset adds support for the Trusted Foundations firmware on NVIDIA Tegra30. Pretty much all of Tegra30 consumer devices have that firmware and upstream kernel can't boot on those devices without the firmware support. This series was tested on Nexus 7, TF300T and Ouya Tegra30 devices.

[PATCH 1/5] ASoC: stm32: sai: fix iec958 controls indexation

2019-02-28 Thread Olivier Moysan
Allow indexation of sai iec958 controls according to device id. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index f9297228c41c..506360b7bc0

[PATCH v7 2/7] ARM: trusted_foundations: Make prepare_idle call to take mode argument

2019-02-28 Thread Dmitry Osipenko
The Trusted Foundations firmware call varies depending on the required suspend-mode. Make the firmware API to take the mode argument in order to expose all of the modes to firmware user. Tested-by: Robert Yang Tested-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trus

[PATCH v7 3/7] ARM: trusted_foundations: Provide information about whether firmware is registered

2019-02-28 Thread Dmitry Osipenko
Add a helper that provides information about whether Trusted Foundations firmware operations have been registered. Tested-by: Robert Yang Tested-by: Michał Mirosław Signed-off-by: Dmitry Osipenko --- arch/arm/firmware/trusted_foundations.c| 5 + arch/arm/include/asm/trusted_foundations

[PATCH 3/5] ASoC: stm32: sai: fix race condition in irq handler

2019-02-28 Thread Olivier Moysan
When snd_pcm_stop_xrun() is called in interrupt routine, substream context may have already been released. Add protection on substream context. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sound/

[PATCH 0/5] ASoC: stm32: sai: miscellaneous fixes

2019-02-28 Thread Olivier Moysan
This patch-set is a collection of fixes for STM32 SAI driver. Olivier Moysan (5): ASoC: stm32: sai: fix iec958 controls indexation ASoC: stm32: sai: fix exposed capabilities in spdif mode ASoC: stm32: sai: fix race condition in irq handler ASoC: stm32: sai: fix oversampling mode ASoC: st

[PATCH 2/5] ASoC: stm32: sai: fix exposed capabilities in spdif mode

2019-02-28 Thread Olivier Moysan
Change capabilities exposed in SAI S/PDIF mode, to match actually supported formats. In S/PDIF mode only 32 bits stereo is supported. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/

[PATCH 5/5] ASoC: stm32: sai: fix set_sync service

2019-02-28 Thread Olivier Moysan
Add error check on set_sync function return. Add of_node_put() as of_get_parent() takes a reference which has to be released. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.c | 8 +--- sound/soc/stm/stm32_sai_sub.c | 8 +--- 2 files changed, 10 insertions(+), 6 deletions(-

[PATCH 4/5] ASoC: stm32: sai: fix oversampling mode

2019-02-28 Thread Olivier Moysan
Set OSR bit if mclk/fs ratio is 512. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index cad415e03b5e..cb658463ccd1 100644 --- a/sound/

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Pierre Morel
On 28/02/2019 10:42, Christian Borntraeger wrote: On 27.02.2019 19:00, Tony Krowiak wrote: On 2/27/19 3:09 AM, Pierre Morel wrote: On 26/02/2019 16:47, Tony Krowiak wrote: On 2/26/19 6:47 AM, Pierre Morel wrote: On 25/02/2019 19:36, Tony Krowiak wrote: On 2/22/19 10:29 AM, Pierre Morel wro

[PATCH net-next 05/15] net: mvpp2: reconfiguring the port interface is PPv2.2 specific

2019-02-28 Thread Antoine Tenart
This patch adds a check on the PPv2 version in-use not to reconfigure the port mode when an interface is updated when using PPv2.1 as the functions called are PPv2.2 specific. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 14 ++ 1 file changed, 6

[PATCH net-next 15/15] net: mvpp2: set the GMAC, XLG MAC, XPCS and MPCS in reset when a port is down

2019-02-28 Thread Antoine Tenart
This patch adds calls in the stop() helper to ensure both MACs and both PCS blocks are set in reset when the user manually sets a port down. This is done so that we have the exact same block reset states at boot time and when a port is set down. Signed-off-by: Antoine Tenart --- drivers/net/ethe

[PATCH net-next 04/15] net: mvpp2: a port can be disabled even if we use the link IRQ

2019-02-28 Thread Antoine Tenart
We had a check in the mvpp2_mac_link_down() function (called by phylink) to avoid disabling the port when link interrupts are used. It turned out the interrupt can still be used with the port disabled. We can thus remove this check. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/

[PATCH net-next 09/15] net: mvpp2: always disable both MACs when disabling a port

2019-02-28 Thread Antoine Tenart
This patch modifies the port_disable() helper to always disable both the GMAC and the XLG MAC when called. At boot time we do not know of a port was enabled in the firmware/bootloader, and if so what mode was used (hence which of the two MACs was used). This also help in implementing a logic where

[PATCH net-next 08/15] net: mvpp2: some AN fields require the link to be down when updated

2019-02-28 Thread Antoine Tenart
The GMAC configuration helper modifies values in the auto-negotiation register. Some of its values require the port to be forced down when modifying their values. This patches fixes the check made on the bit to be updated in this register, so that the port is forced down when needed. This fix cases

[PATCH net-next 02/15] net: mvpp2: update the port documentation regarding the GoP

2019-02-28 Thread Antoine Tenart
The Marvell PPv2 port structure stores the GoP id of a given port. This information is specific to PPv2.2, but cannot be used by PPv2.1. Update its comment to denote this specificity. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 2 +- 1 file changed, 1 insertion

[PATCH net-next 01/15] net: mvpp2: fix a typo in the header

2019-02-28 Thread Antoine Tenart
This cosmetic patch fixes a typo made in a comment in the Marvell PPv2 Ethernet driver header. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/ne

[PATCH net-next 13/15] net: mvpp2: reset the MACs when reconfiguring a port

2019-02-28 Thread Antoine Tenart
This patch makes sure both PPv2 MACs (GMAC + XLG MAC) are set in reset while a port is reconfigured. This is done so that we make sure a MAC is in a reset state when not used, as only one of the two will be set out of reset after the port is configured properly. Signed-off-by: Antoine Tenart ---

Re: [PATCH 2/2] seccomp.2: document userspace notification

2019-02-28 Thread Michael Kerrisk (man-pages)
> 7. The monitoring process can use the information in the >'struct seccomp_notif' to make a determination about the >system call being made by the target process. This >structure includes a 'data' field that is the same >'struct seccomp_data' that is passed to a BPF filter. > >

[PATCH net-next 14/15] net: mvpp2: set the XPCS and MPCS in reset when not used

2019-02-28 Thread Antoine Tenart
This patch sets both the XPCS and MPCS blocks in reset when they aren't used. This is done both at boot time and when reconfiguring a port mode. The advantage now is that only the PCS used is set out of reset when the port is configured (10GKR uses the MCPS while RXAUI uses the XPCS). Signed-off-b

[PATCH net-next 11/15] net: mvpp2: force the XLG MAC link up or down when not using in-band

2019-02-28 Thread Antoine Tenart
This patch force the XLG MAC link state in the phylink link_up() and link_down() helpers when not using in-band auto-negotiation. This mimics what's already done for the GMAC and follows what's advised in the phylink documentation. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/m

[PATCH 0/2] spi: dw: Add support for an optional interface clock

2019-02-28 Thread Gareth Williams
The Synopsys SSI Controller has an interface clock that must be explicitly enabled in order to access the registers. This patch series adds support for the interface clock and adds the associated bindings documentation. Phil Edworthy (2): dt: snps,dw-apb-ssi: Add clock bindings documentation

[PATCH net-next 10/15] net: mvpp2: only update the XLG configuration when needed

2019-02-28 Thread Antoine Tenart
This patch improves the XLG configuration function, to only update the XLG configuration register when a change is needed. This helps not writing over and over the same XLG configuration each time phylink request the MAC to be configured. This mimics the GMAC configuration function. Signed-off-by:

[PATCH net-next 12/15] net: mvpp2: rework the XLG MAC reset handling

2019-02-28 Thread Antoine Tenart
This patch reworks the way the XLG MAC is set in reset: the XLG MAC is set in reset at probe time and taken out of this state only when used. The idea is to move forward a situation where only the blocks used are taken out of reset. This also has the effect to handle the GMAC and the XLG MAC in a s

[PATCH net-next 06/15] net: mvpp2: fix validate for PPv2.1

2019-02-28 Thread Antoine Tenart
The Phylink validate function is the Marvell PPv2 driver makes a check on the GoP id. This is valid an has to be done when using PPv2.2 engines but makes no sense when using PPv2.1. The check done when using an RGMII interface makes sure the GoP id is not 0, but this breaks PPv2.1. Fixes it. Fixes

[PATCH net-next 00/15] net: mvpp2: fixes and improvements

2019-02-28 Thread Antoine Tenart
Hello, This series aims to improve the Marvell PPv2 driver and to fix various issues we encountered while testing the ports in many different configurations. The series is based on top of Russell PPv2 phylink rework and improvement. I'm not sending a v2 of the previous fixes series as half the pa

[PATCH 1/2] dt: snps,dw-apb-ssi: Add clock bindings documentation

2019-02-28 Thread Gareth Williams
From: Phil Edworthy The driver requires a clock property, so detail it in the docs. Fix a typo, 'pis' to 'pins'. Add documentation for a separate, optional, interface clock. Signed-off-by: Phil Edworthy Signed-off-by: Gareth Williams --- Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.t

[PATCH net-next 03/15] net: mvpp2: fix alignment of MVPP2_GMAC_CONFIG_MII_SPEED definition

2019-02-28 Thread Antoine Tenart
Cosmetic patch fix the alignment of the MVPP2_GMAC_CONFIG_MII_SPEED macro definition. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2.h b/drivers/net/etherne

Re: [PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Russell King - ARM Linux admin
On Thu, Feb 28, 2019 at 04:17:01PM +0300, Dmitry Osipenko wrote: > +#ifdef CONFIG_CACHE_L2X0 > +static void tf_cache_write_sec(unsigned long val, unsigned int reg) > +{ > + u32 l2x0_way_mask = 0xff; > + > + switch (reg) { > + case L2X0_CTRL: > + if (l2x0_saved_regs.aux_ctrl

[PATCH 2/2] spi: dw: Add support for an optional interface clock

2019-02-28 Thread Gareth Williams
From: Phil Edworthy The Synopsys SSI Controller has an interface clock, but most SoCs hide this away. However, on some SoCs you need to explicity enable the interface clock in order to access the registers. Therefore, add support for an optional interface clock. Signed-off-by: Phil Edworthy

[PATCH v5 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-28 Thread Pankaj Bansal
Generic register bitfield-based multiplexer that controls the multiplexer producer defined under a parent node. The driver corresponding to parent node provides register read/write capabilities. Signed-off-by: Pankaj Bansal --- Notes: V5: - No Change V4: - As per Peter's suggesti

Re: [PATCH v7 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-02-28 Thread Dmitry Osipenko
28.02.2019 16:27, Russell King - ARM Linux admin пишет: > On Thu, Feb 28, 2019 at 04:17:01PM +0300, Dmitry Osipenko wrote: >> +#ifdef CONFIG_CACHE_L2X0 >> +static void tf_cache_write_sec(unsigned long val, unsigned int reg) >> +{ >> +u32 l2x0_way_mask = 0xff; >> + >> +switch (reg) { >> +

Re: [PATCH] regulator: wm8400: Fix trivial typo

2019-02-28 Thread Charles Keepax
On Wed, Feb 27, 2019 at 01:54:21PM +0800, Axel Lin wrote: > Use WM8400_DC2_ENA_MASK for DCDC2 enable_mask. > The define is the same as WM8400_DC1_ENA_MASK, just a cleanup. > > Signed-off-by: Axel Lin > --- Acked-by: Charles Keepax Thanks, Charles

[PATCH v2] net: e1000e: add MAC address kernel cmd line parameter

2019-02-28 Thread Flavio Suligoi
Sometimes, in some embedded systems boards (i.e. ARM boards), the NVM eeprom is not mounted, to save cost and space. In this case it is necessary to bypass the NVM management and directly force the MAC address using a kernel command-line parameter (macaddr). Signed-off-by: Flavio Suligoi v2: -

Re: [PATCH] regulator: wm8400: Get rid of wm8400_block_read/wm8400_set_bits functions

2019-02-28 Thread Charles Keepax
On Wed, Feb 27, 2019 at 09:30:53AM +0800, Axel Lin wrote: > The only user of wm8400_block_read/wm8400_set_bits functions is the > wm8400 regulator driver. At the context of all the callers, we can > use regmap_bulk_read/regmap_update_bits directly. > Thus remove wm8400_block_read/wm8400_set_bits fu

Re: MT76x2U crashes XHCI driver on AMD Ryzen system

2019-02-28 Thread Joerg Roedel
On Thu, Feb 28, 2019 at 01:19:48PM +0100, Stanislaw Gruszka wrote: > Nevermind, the patch is wrong, s->dma_address is initalized in sg_num_pages(). Yes, it is. In sg_num_pages() the offset into the IOMMU mapping is stored in s->dma_address, taking also the segment boundary mask into account. map_s

[PATCH 00/11] regulator: Add set/get_current_limit helpers and use it

2019-02-28 Thread Axel Lin
This serial adds regulator_set/get_current_limit_regmap helpers for regmap users and convert drivers to use these helpers. patch 1 is a comment fix for existing csel_reg/csel_mask fields. patch 2 adds n_current_limits and *curr_table fields to struct regulator_desc and then adds re

Re: [RFC PATCH] mm,memory_hotplug: Unlock 1GB-hugetlb on x86_64

2019-02-28 Thread Oscar Salvador
On Thu, Feb 28, 2019 at 01:11:15PM +0100, Michal Hocko wrote: > On Thu 28-02-19 11:19:52, Oscar Salvador wrote: > > On Thu, Feb 28, 2019 at 10:55:35AM +0100, Michal Hocko wrote: > > > You seemed to miss my point or I am wrong here. If scan_movable_pages > > > skips over a hugetlb page then there is

[PATCH 01/11] regulator: Fix comment for csel_reg and csel_mask

2019-02-28 Thread Axel Lin
The csel_reg and csel_mask fields in struct regulator_desc needs to be generic for drivers. Not just for TPS65218. Signed-off-by: Axel Lin --- include/linux/regulator/driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/regulator/driver.h b/include/linux

[PATCH 05/11] regulator: lp872x: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp872x.c | 70 ++ 1 file changed, 10 insertions(+), 60 deletions(-) diff --git a/drivers/regulator/lp872x.c b/drivers/regulator/lp872x.c index

[PATCH 02/11] regulator: core: Add set/get_current_limit helpers for regmap users

2019-02-28 Thread Axel Lin
By setting curr_table, n_current_limits, csel_reg and csel_mask, the regmap users can use regulator_set_current_limit_regmap and regulator_get_current_limit_regmap for set/get_current_limit callbacks. Signed-off-by: Axel Lin --- drivers/regulator/helpers.c | 86 +

[PATCH 06/11] regulator: lp873x: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/lp873x-regulator.c | 45 1 file changed, 6 insertions(+), 39 deletions(-) diff --git a/drivers/regulator/lp873x-regulator.c b/drivers/regulator/lp873

[PATCH 10/11] regulator: pv88090: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88090-regulator.c | 53 --- 1 file changed, 8 insertions(+), 45 deletions(-) diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator/pv88

[PATCH 03/11] regulator: da9055: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/da9055-regulator.c | 45 ++-- 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/da9055-regulator.c b/drivers/regulator/da905

[PATCH 08/11] regulator: pv88060: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88060-regulator.c | 51 --- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/drivers/regulator/pv88060-regulator.c b/drivers/regulator/pv88

[PATCH 07/11] regulator: max77650: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/max77650-regulator.c | 74 +- 1 file changed, 25 insertions(+), 49 deletions(-) diff --git a/drivers/regulator/max77650-regulator.c b/drivers/regulator/ma

[PATCH 04/11] regulator: da9210: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/da9210-regulator.c | 53 1 file changed, 7 insertions(+), 46 deletions(-) diff --git a/drivers/regulator/da9210-regulator.c b/drivers/regulator/da921

[PATCH 09/11] regulator: pv88080: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/pv88080-regulator.c | 55 --- 1 file changed, 8 insertions(+), 47 deletions(-) diff --git a/drivers/regulator/pv88080-regulator.c b/drivers/regulator/pv88

[PATCH 11/11] regulator: wm831x-dcdc: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Axel Lin
Use regulator_set/get_current_limit_regmap helpers to save some code. Signed-off-by: Axel Lin --- drivers/regulator/wm831x-dcdc.c | 42 + 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc

Re: [PATCH 2/3] scripts/ima: define a set of common functions

2019-02-28 Thread Dave Young
Hi Mimi, Sorry for jumping in late, just noticed this kexec selftests, I think we also need a kexec load test not only for ima, but for general kexec On 01/31/19 at 01:55pm, Mimi Zohar wrote: > Define and move get_secureboot_mode() to a common file for use by other > tests. > > Signed-off-by: M

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Christian Borntraeger
On 28.02.2019 14:23, Pierre Morel wrote: > On 28/02/2019 10:42, Christian Borntraeger wrote: >> >> >> On 27.02.2019 19:00, Tony Krowiak wrote: >>> On 2/27/19 3:09 AM, Pierre Morel wrote: On 26/02/2019 16:47, Tony Krowiak wrote: > On 2/26/19 6:47 AM, Pierre Morel wrote: >> On 25/02/2

Re: [PATCH v2 -next] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-28 Thread YueHaibing
Pls igore this, will resend a new serials with another patch. On 2019/2/28 9:31, Yue Haibing wrote: > From: YueHaibing > > Use remove_proc_subtree to remove the whole subtree > on cleanup.Also do some cleanup. > > Signed-off-by: YueHaibing > --- > net/appletalk/atalk_proc.c | 56 > ++

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Pierre Morel
On 28/02/2019 14:44, Christian Borntraeger wrote: On 28.02.2019 14:23, Pierre Morel wrote: On 28/02/2019 10:42, Christian Borntraeger wrote: On 27.02.2019 19:00, Tony Krowiak wrote: On 2/27/19 3:09 AM, Pierre Morel wrote: On 26/02/2019 16:47, Tony Krowiak wrote: On 2/26/19 6:47 AM, Pierr

Re: [PATCH v2] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-28 Thread YueHaibing
On 2019/2/28 20:38, kbuild test robot wrote: > Hi YueHaibing, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on net-next/master] > [also build test WARNING on v5.0-rc8 next-20190228] > [if your patch is applied to the wrong git t

[PATCH net-next 2/3] net: phy: marvell10g: add the suspend/resume callbacks for the 88x2210

2019-02-28 Thread Antoine Tenart
When the 88x2110 PHY support was added, the suspend and resume callbacks were forgotten. This patch adds them to the 88x2110 PHY callback definition. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/phy/marvell10g.c

[PATCH net-next 3/3] net: phy: marvell10g: set the PHY in low power by default

2019-02-28 Thread Antoine Tenart
When the Marvell 10G PHYs are set out of reset, the LPOWER bit is set depending on an hardware configuration choice. We also do not know what is the PHY state at boot time. Hence, set the PHY in low power by default when this driver probes. Signed-off-by: Antoine Tenart --- drivers/net/phy/marve

[PATCH net-next 0/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-02-28 Thread Antoine Tenart
Hello, This series implements the suspend/resume callbacks in the marvell10g PHY driver: - When the PHY isn't used, it is set in low power mode. - At boot time we might now know the PHY status (as it's depending on the hardware configuration, or on what the previous stages configured), it is

[PATCH net-next 1/3] net: phy: marvell10g: implement suspend/resume callbacks

2019-02-28 Thread Antoine Tenart
This patch adds the suspend/resume callbacks for Marvell 10G PHYs. The three PCS (base-t, base-r and 1000base-x) are set in low power (the PCS are powered down) when the PHY isn't used. Signed-off-by: Antoine Tenart --- drivers/net/phy/marvell10g.c | 24 1 file changed,

[PATCH net-next 07/15] net: mvpp2: fix the computation of the RXQs

2019-02-28 Thread Antoine Tenart
The patch fixes the computation of RXQs being used by the PPv2 driver, which is set depending on the PPv2 engine version and the queue mode used. There are three cases: - PPv2.1: 1 RXQ per CPU. - PPV2.2 with MVPP2_QDIST_MULTI_MODE: 1 RXQ per CPU. - PPv2.2 with MVPP2_QDIST_SINGLE_MODE: 1 RXQ is sha

[PATCH v3] net: e1000e: add MAC address kernel cmd line parameter

2019-02-28 Thread Flavio Suligoi
Sometimes, in some embedded systems boards (i.e. ARM boards), the NVM eeprom is not mounted, to save cost and space. In this case it is necessary to bypass the NVM management and directly force the MAC address using a kernel command-line parameter (macaddr). Signed-off-by: Flavio Suligoi --- v3

Re: [PATCH] sched/cputime: Remove unnecessary assignment statement

2019-02-28 Thread Jon Hunter
On 28/02/2019 12:31, Peter Zijlstra wrote: > > Clearly, because reading comprehension isn't your strong point: > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? S

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Cornelia Huck
On Thu, 28 Feb 2019 14:16:09 +0100 Pierre Morel wrote: > On 28/02/2019 12:22, Cornelia Huck wrote: > > So, to summarize, the function should do: > > - Is userspace supposed to emulate everything (!ECA_APIE)? Return > >-EOPNOTSUPP to hand control to it. > > - We are now interpreting the instr

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-28 Thread Qais Yousef
Hi Joel On 02/27/19 14:37, Joel Fernandes (Google) wrote: > Introduce in-kernel headers and other artifacts which are made available > as an archive through proc (/proc/kheaders.tar.xz file). This archive makes > it possible to build kernel modules, run eBPF programs, and other > tracing programs

Re: [PATCH] sctp: chunk.c: correct format string for size_t in printk

2019-02-28 Thread Marcelo Ricardo Leitner
On Thu, Feb 28, 2019 at 11:36:52AM +, Matthias Maennich wrote: > According to Documentation/core-api/printk-formats.rst, size_t should be > printed with %zu, rather than %Zu. > > In addition, using %Zu triggers a warning on clang (-Wformat-extra-args): > > net/sctp/chunk.c:196:25: warning: da

[RFC/RFT] HID: primax: Fix wireless keyboards descriptor

2019-02-28 Thread Nicolas Saenz Julienne
A whole set of Primax manufactured wireless keyboards won't work out of the box as they provide wrong HID descriptors. In this case the offense being defining the "Usage Maximum/Minimum" local items before the "Usage Page". This will make the parser use the previous "Usage Page" on those local item

Re: [RFC v4 08/17] kunit: test: add support for test abort

2019-02-28 Thread Dan Carpenter
On Thu, Feb 28, 2019 at 01:03:24AM -0800, Brendan Higgins wrote: > you could do: > > if (IS_ERR_OR_NULL(ptr)) { > KUNIT_FAIL(test, "ptr is an errno or null: %ld", ptr); > return; > } It's best to not mix error pointers and NULL but when we do mix them, it means that NULL is a spec

[PATCH 0/2] appletalk: A cleanup and bugfix

2019-02-28 Thread Yue Haibing
From: YueHaibing YueHaibing (2): appletalk: use remove_proc_subtree to simplify procfs code appletalk: Fix use-after-free in atalk_proc_exit include/linux/atalk.h| 2 +- net/appletalk/atalk_proc.c | 58 +--- net/appletalk/ddp.c

[PATCH v2] device.h: reorganize struct device

2019-02-28 Thread Greg Kroah-Hartman
struct device is big, around 760 bytes on x86_64. It's not a critical structure, but it is embedded everywhere, so making it smaller is always a good thing. With a recent patch that moved a field from struct device to the private structure, some benchmarks showed a very odd regression, despite th

[PATCH 1/2] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-28 Thread Yue Haibing
From: YueHaibing Use remove_proc_subtree to remove the whole subtree on cleanup.Also do some cleanup. Signed-off-by: YueHaibing --- net/appletalk/atalk_proc.c | 56 ++ 1 file changed, 17 insertions(+), 39 deletions(-) diff --git a/net/appletalk/atal

Re: [net: PATCH] net: mvpp2: disable link IRQ waiting for IDLE frames

2019-02-28 Thread Marcin Wojtas
Hi Russell, czw., 28 lut 2019 o 10:36 Russell King - ARM Linux admin napisał(a): > > On Wed, Feb 27, 2019 at 06:47:32PM +0100, Marcin Wojtas wrote: > > Current version of the driver was configuring XLG MAC > > in a way to wait 3 IDLE frames before allowing for the > > link-up interrupt to be trig

[PATCH 0/7] drivers: firmware: psci: Some cleanup and refactoring

2019-02-28 Thread Ulf Hansson
All of these patches have been sent earlier, but part of a bigger series [1]. Instead of waiting for that series to get reviewed and accepted, I have split it up, such that these trivial independent cleanups can go in as a first step. The only intentional function change, should be the last patch,

[PATCH 4/7] ARM/ARM64: cpuidle: Let back-end init ops take the driver as input

2019-02-28 Thread Ulf Hansson
To allow arch back-end init ops to operate on the cpuidle driver for the corresponding CPU, let's pass along a pointer to the struct cpuidle_driver* and forward it the relevant layers of callbacks for ARM/ARM64. Following changes for the PSCI firmware driver starts making use of this. Cc: Lina Iy

[PATCH 2/2] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-28 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: use-after-free in pde_subdir_find+0x12d/0x150 fs/proc/generic.c:71 Read of size 8 at addr 8881f41fe5b0 by task syz-executor.0/2806 CPU: 0 PID: 2806 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX,

Re: [PATCH] firmware: xilinx: fix debugfs write handler

2019-02-28 Thread Michal Simek
On 18. 02. 19 22:43, Jann Horn wrote: > - Userspace wants to write a string with `len` bytes, not counting the >terminating NULL, so we should allocate `len+1` bytes. It looks like the >current code relied on having a nullbyte directly behind `kern_buff`, >which happens to work reliabl

[PATCH 7/7] drivers: firmware: psci: Announce support for OS initiated suspend mode

2019-02-28 Thread Ulf Hansson
PSCI firmware v1.0+, supports two different modes for CPU_SUSPEND. The Platform Coordinated mode, which is the default and mandatory mode, while support for the OS initiated (OSI) mode is optional. In some cases it's interesting for the user/developer to know if the OSI mode is supported by the PS

[PATCH 6/7] drivers: firmware: psci: Simplify error path of psci_dt_init()

2019-02-28 Thread Ulf Hansson
Instead of having each psci init function taking care of the of_node_put(), let's deal with that from psci_dt_init(), as this enables a bit simpler error path for each psci init function. Cc: Lina Iyer Co-developed-by: Lina Iyer Acked-by: Mark Rutland Reviewed-by: Daniel Lezcano Signed-off-by:

[PATCH 3/7] drivers: firmware: psci: Split psci_dt_cpu_init_idle()

2019-02-28 Thread Ulf Hansson
Let's split the psci_dt_cpu_init_idle() function into two functions. This makes the code clearer and provides better re-usability. Cc: Lina Iyer Co-developed-by: Lina Iyer Signed-off-by: Ulf Hansson --- drivers/firmware/psci/psci.c | 42 1 file changed, 23

[PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-02-28 Thread Ulf Hansson
Instead of iterating through all the state nodes in DT, to find out how many states that needs to be allocated, let's use the number already known by the cpuidle driver. In this way we can drop the iteration altogether. Signed-off-by: Ulf Hansson --- drivers/firmware/psci/psci.c | 25 +++

[PATCH 2/7] MAINTAINERS: Update files for PSCI

2019-02-28 Thread Ulf Hansson
The files for the PSCI firmware driver were moved to a sub-directory, let's update MAINTAINERS to reflect that. Suggested-by: Mark Rutland Signed-off-by: Ulf Hansson --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 32b76cb95f57.

[PATCH 1/7] drivers: firmware: psci: Move psci to separate directory

2019-02-28 Thread Ulf Hansson
Some following changes extends the PSCI driver with some additional new files. Let's avoid to continue cluttering the toplevel firmware directory and first move the PSCI files into a PSCI sub-directory. Suggested-by: Mark Rutland Signed-off-by: Ulf Hansson --- drivers/firmware/Kconfig

Re: [PATCH 5/8] at12: use pci_zalloc instead of pci_alloc

2019-02-28 Thread Christoph Hellwig
On Tue, Feb 26, 2019 at 10:09:52PM -0800, Robert Eshleman wrote: > This patch replaces a pci_alloc and memset(,0) call > with a single call to pci_zalloc. Please don't move from one deprecated API to another one. If you feel like cleaning up DMA API calls please move to dma_alloc_coherent, and do

[PATCH v5 0/2] i2c: designware: Add support for a bus clock

2019-02-28 Thread Gareth Williams
The Synopsys I2C Controller has an interface clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v5: - Code comments and commit messages updated to reference "interface clock" instead of "peripheral clock". v4:

[PATCH v5 2/2] i2c: designware: Add support for an interface clock

2019-02-28 Thread Gareth Williams
From: Phil Edworthy The Synopsys I2C Controller has an interface clock, but most SoCs hide this away. However, on some SoCs you need to explicitly enable the interface clock in order to access the registers. Therefore, add support for an optional interface clock. Signed-off-by: Phil Edworthy S

RE: [PATCH 04/11] regulator: da9210: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Steve Twiss
On 28 February 2019 13:40, Axel Lin wrote: > Subject: [PATCH 04/11] regulator: da9210: Convert to use > regulator_set/get_current_limit_regmap [...] > @@ -52,8 +48,8 @@ static const struct regulator_ops da9210_buck_ops = { > .set_voltage_sel = regulator_set_voltage_sel_regmap, > .get

[RFC PATCH] perf: Paper over the hw.target problems

2019-02-28 Thread Alexander Shishkin
First, we have a race between perf_event_release_kernel() and perf_free_event(), which happens when parent's event is released while the child's fork fails (because of a fatal signal, for example), that looks like this: cpu Xcpu Y --

Re: [PATCH] drm/vkms: Solve bug on kms_crc_cursor tests

2019-02-28 Thread Ville Syrjälä
On Thu, Feb 28, 2019 at 11:11:07AM +0100, Daniel Vetter wrote: > On Mon, Feb 25, 2019 at 11:26:06AM -0300, Shayenne Moura wrote: > > vkms_crc_work_handle needs the value of the actual frame to > > schedule the workqueue that calls periodically the vblank > > handler and the destroy state functions.

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Halil Pasic
On Thu, 28 Feb 2019 14:47:35 +0100 Pierre Morel wrote: > On 28/02/2019 14:44, Christian Borntraeger wrote: > > > > > > On 28.02.2019 14:23, Pierre Morel wrote: > >> On 28/02/2019 10:42, Christian Borntraeger wrote: > >>> > >>> > >>> On 27.02.2019 19:00, Tony Krowiak wrote: > On 2/27/19 3:0

[PATCH v6 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-28 Thread Pankaj Bansal
Generic register bitfield-based multiplexer that controls the multiplexer producer defined under a parent node. The driver corresponding to parent node provides register read/write capabilities. Signed-off-by: Pankaj Bansal --- Notes: V6: - No Change V5: - No Change V4: -

Re: [PATCH 1/1] iommu: Bind process address spaces to devices

2019-02-28 Thread Joerg Roedel
Hi Jacob, On Wed, Feb 27, 2019 at 01:41:29PM -0800, Jacob Pan wrote: > On Tue, 26 Feb 2019 12:17:43 +0100 > Joerg Roedel wrote: > Just trying to understand how to use this API. > So if we bind the same mm to two different devices, we should get two > different iommu_sva handle, right? > I think

Re: [RFC PATCH] mm,memory_hotplug: Unlock 1GB-hugetlb on x86_64

2019-02-28 Thread Michal Hocko
On Thu 28-02-19 14:40:54, Oscar Salvador wrote: > On Thu, Feb 28, 2019 at 01:11:15PM +0100, Michal Hocko wrote: > > On Thu 28-02-19 11:19:52, Oscar Salvador wrote: > > > On Thu, Feb 28, 2019 at 10:55:35AM +0100, Michal Hocko wrote: > > > > You seemed to miss my point or I am wrong here. If scan_mov

Re: [PATCHv11 3/3] ARM:drm ivip Intel FPGA Video and Image Processing Suite

2019-02-28 Thread Daniel Vetter
On Mon, Feb 11, 2019 at 10:11:10AM +0800, Hean-Loong, Ong wrote: > From: Ong, Hean Loong > > Signed-off-by: Ong, Hean Loong Per-patch changelog is missing here, would be good to include that to help reviewers. I've done a very quick scroll through, looks like a nice&clean driver. Acked-by: Dan

Re: [PATCH 07/11] regulator: max77650: Convert to use regulator_set/get_current_limit_regmap

2019-02-28 Thread Bartosz Golaszewski
czw., 28 lut 2019 o 14:41 Axel Lin napisał(a): > > Use regulator_set/get_current_limit_regmap helpers to save some code. > > Signed-off-by: Axel Lin > --- > drivers/regulator/max77650-regulator.c | 74 +- > 1 file changed, 25 insertions(+), 49 deletions(-) > > diff --git

kernel panic: MAC Initialization failed. (3)

2019-02-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:42fd8df9d1d9 Add linux-next specific files for 20190228 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=179e9b6cc0 kernel config: https://syzkaller.appspot.com/x/.config?x=c0f38652d28b522f

[PATCH] xen-netback: don't populate the hash cache on XenBus disconnect

2019-02-28 Thread Igor Druzhinin
Occasionally, during the disconnection procedure on XenBus which includes hash cache deinitialization there might be some packets still in-flight on other processors. Handling of these packets includes hashing and hash cache population that finally results in hash cache data structure corruption.

Re: [PATCH v4 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-02-28 Thread Pierre Morel
On 28/02/2019 13:39, Halil Pasic wrote: On Thu, 28 Feb 2019 10:42:23 +0100 Christian Borntraeger wrote: On 27.02.2019 19:00, Tony Krowiak wrote: On 2/27/19 3:09 AM, Pierre Morel wrote: On 26/02/2019 16:47, Tony Krowiak wrote: On 2/26/19 6:47 AM, Pierre Morel wrote: On 25/02/2019 19:36, T

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