[PATCH v5 0/13] Add mt7629 and fix mt7628 pwm

2019-08-21 Thread Sam Shih
Changes since v5: - Follow reviewer's comments: 1. the license stuff is a separate change 2. split fix mt7628 pwm into a single patch 3. to ensure to not use mtk_pwm_clk_name[10] (After dynamic allocate clock array patch, this is no need to check) 4. Use clock-frequency propert

[PATCH v2] mm: consolidate pgtable_cache_init() and pgd_cache_init()

2019-08-21 Thread Mike Rapoport
Both pgtable_cache_init() and pgd_cache_init() are used to initialize kmem cache for page table allocations on several architectures that do not use PAGE_SIZE tables for one or more levels of the page table hierarchy. Most architectures do not implement these functions and use __weak default NOP i

Regression in 5.3-rc1 and later

2019-08-21 Thread Chris Clayton
Hi everyone, Firstly, apologies to anyone on the long cc list that turns out not to be particularly interested in the following, but you were all marked as cc'd in the commit message below. I've found a problem that isn't present in 5.2 series or 4.19 series kernels, and seems to have arrived i

Re: [PATCH 3/3] media: imx214: Add new control with V4L2_CID_PIXEL_SIZE

2019-08-21 Thread Jacopo Mondi
Hi Ricardo, On Wed, Aug 21, 2019 at 06:31:05PM +0200, Ricardo Ribalda Delgado wrote: > Hi Jacopo > > > On Wed, Aug 21, 2019 at 6:14 PM Jacopo Mondi wrote: > > > > Hi Ricardo, > > > > On Mon, Aug 19, 2019 at 02:17:20PM +0200, Ricardo Ribalda Delgado wrote: > > > According to the product brief, the

Re: [PATCH v2] tomoyo: Don't check open/getattr permission on sockets.

2019-08-21 Thread Tetsuo Handa
Eric Biggers wrote: > What happened to this patch? I have to learn how to manage a git tree for sending pull requests, but I can't find time to try. > > Also, isn't the same bug in other places too?: > > - tomoyo_path_chmod() > - tomoyo_path_chown() > - smack_inode_getsecurity

Adding depends-on DT binding to break cyclic dependencies

2019-08-21 Thread Saravana Kannan
Hi Rob, Frank, Greg and I got together during ELC and had an extensive and very productive discussion about my "postboot supplier state cleanup" patch series [1]. The three of us are on the same page now -- the series as it stands is the direction we want to go in, with some minor refactoring, doc

Re: [PATCH v3 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-21 Thread Ramuthevar, Vadivel MuruganX
Hi Andy, On 21/8/2019 8:01 PM, Andy Shevchenko wrote: On Wed, Aug 21, 2019 at 06:11:18PM +0800, Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add support for eMMC PHY on Intel's Lightning Mountain SoC. --- /dev/null +++ b/drivers/phy/intel/Kconfig @@ -0,0 +1,8 @@ Missed

[RT PATCH] kernel/irq: make irq_set_affinity_notifier() work on old_notify consistently

2019-08-21 Thread Juri Lelli
The second half of irq_set_affinity_notifier() flushes an old notifier, but (for RT) it is currently working on 'notify', which is the new one (or can be NULL - in fact a NULL pointer dereference has been observed). Fix this by making the second half of irq_set_affinity_notifier() use old_notify c

[PATCH -next] ASoC: sun4i-i2s: Use PTR_ERR_OR_ZERO in sun4i_i2s_init_regmap_fields()

2019-08-21 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing --- sound/soc/sunxi/sun4i-i2s.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c index 9e691baee1e8..2071c54265f3 100644 --- a/soun

[PATCH net-next] net/mlx5e: Use PTR_ERR_OR_ZERO in mlx5e_tc_add_nic_flow()

2019-08-21 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/co

[PATCH 1/2] mmc: mediatek: fix controller busy when plug out SD

2019-08-21 Thread Chaotian Jing
when plug out SD card, may get data CRC error, the MMC core will issue CMD13 to get card status, then CMD13 timeout(due to card plug out) will trigger CMD19 tuning, first CMD19 timeout has not call msdc_reset_hw() and cause the next CMD19 gets controller busy. Signed-off-by: Chaotian Jing --- dr

fix controller busy issue and add 24bits segment support

2019-08-21 Thread Chaotian Jing
the below 2 patches fix controller busy issue when plug out SD card and add 24bits segment size support. Chaotian Jing (2): mmc: mediatek: fix controller busy when plug out SD mmc: mediatek: support 24bits segment size drivers/mmc/host/mtk-sd.c | 24 ++-- 1 file changed,

[PATCH 2/2] mmc: mediatek: support 24bits segment size

2019-08-21 Thread Chaotian Jing
MSDC IP which support 64G DRAM will support 24bits BDMA buffer length, so add support it. Signed-off-by: Chaotian Jing --- drivers/mmc/host/mtk-sd.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 5

Re: [PATCH] arm: skip nomap memblocks while finding the lowmem/highmem boundary

2019-08-21 Thread Ard Biesheuvel
On Thu, 22 Aug 2019 at 09:44, Mike Rapoport wrote: > > On Thu, Aug 22, 2019 at 03:59:42AM +, Chester Lin wrote: > > On Thu, Aug 22, 2019 at 11:45:34AM +0800, Chester Lin wrote: > > > adjust_lowmem_bounds() checks every memblocks in order to find the > > > boundary > > > between lowmem and hig

Re: [PATCH] arm: skip nomap memblocks while finding the lowmem/highmem boundary

2019-08-21 Thread Mike Rapoport
On Thu, Aug 22, 2019 at 03:59:42AM +, Chester Lin wrote: > On Thu, Aug 22, 2019 at 11:45:34AM +0800, Chester Lin wrote: > > adjust_lowmem_bounds() checks every memblocks in order to find the boundary > > between lowmem and highmem. However some memblocks could be marked as NOMAP > > so they are

Re: [PATCH] arm: skip nomap memblocks while finding the lowmem/highmem boundary

2019-08-21 Thread Mike Rapoport
On Thu, Aug 22, 2019 at 03:45:34AM +, Chester Lin wrote: > adjust_lowmem_bounds() checks every memblocks in order to find the boundary > between lowmem and highmem. However some memblocks could be marked as NOMAP > so they are not used by kernel, which should be skipped while calculating > the

Re: [PATCH 1/4] dt-bindings: reset: aoss: Add AOSS reset binding for SC7180 SoCs

2019-08-21 Thread Sibi Sankar
Hey Philipp, Thanks for the review! On 2019-08-21 16:02, Philipp Zabel wrote: On Wed, 2019-08-21 at 15:24 +0530, Sibi Sankar wrote: Add SC7180 AOSS reset to the list of possible bindings. Signed-off-by: Sibi Sankar --- Documentation/devicetree/bindings/reset/qcom,aoss-reset.txt | 3 ++- 1 fi

RE: [EXT] Re: [Patch v4 1/3] dt-bindings: spi: spi-fsl-qspi: Add ls2080a compatibility string to bindings

2019-08-21 Thread Ashish Kumar
> -Original Message- > From: devicetree-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Ashish Kumar > Sent: Wednesday, August 21, 2019 7:49 PM > To: Mark Brown ; shawn...@kernel.org > Cc: linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; > devicet...@vger.kernel.org; r

[PATCH] ext4: remove unreachable statement inside __es_insert_extent()

2019-08-21 Thread Austin Kim
__es_insert_extent() never returns -EINVAL after BUG is executed. So remove unreachable code. --- fs/ext4/extents_status.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c index a959adc..7f97360 100644 --- a/fs/ext4/extents_status.c +++ b/fs/ex

Re: [PATCH] VMCI: Release resource if the work is already queued

2019-08-21 Thread Vishnu Dasa
On 8/20/19, 8:48 PM, "Nadav Amit" wrote: > Francois reported that VMware balloon gets stuck after a balloon reset, > when the VMCI doorbell is removed. A similar error can occur when the > balloon driver is removed with the following splat: > > [ 1088.622000] INFO: task modprobe:3565 blocked for

[PATCH -next] phy: tegra: Use PTR_ERR_OR_ZERO in tegra_p2u_probe()

2019-08-21 Thread YueHaibing
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Signed-off-by: YueHaibing --- drivers/phy/tegra/phy-tegra194-p2u.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/phy/tegra/phy-tegra194-p2u.c b/drivers/phy/tegra/phy-tegra194-p2u.c index 7042bed9feaa..42

Re: [PATCH v2] tomoyo: Don't check open/getattr permission on sockets.

2019-08-21 Thread Eric Biggers
Hi Tetsuo, On Sat, Jun 22, 2019 at 01:45:30PM +0900, Tetsuo Handa wrote: > On 2019/06/19 5:49, Al Viro wrote: > > On Sun, Jun 16, 2019 at 03:49:00PM +0900, Tetsuo Handa wrote: > >> Hello, Al. > >> > >> Q1: Do you agree that we should fix TOMOYO side rather than SOCKET_I()->sk > >> management.

[PATCH -next] net: mediatek: remove set but not used variable 'status'

2019-08-21 Thread Mao Wenan
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function mtk_handle_irq: drivers/net/ethernet/mediatek/mtk_eth_soc.c:1951:6: warning: variable status set but not used [-Wunused-but-set-variable] It is not used since commit 296c9120752b ("net: etherne

Re: linux-next: build warning after merge of the soundwire tree

2019-08-21 Thread Vinod Koul
On 22-08-19, 16:04, Stephen Rothwell wrote: > Hi all, > > After merging the soundwire tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/soundwire/intel.c: In function 'sdw_master_read_intel_prop': > drivers/soundwire/intel.c:829:12: warning: unused variable

Re: [PATCH v1 41/63] Input: touchscreen: Atmel: Enable IRQ_DISABLE_UNLAZY flag for interrupt

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:26, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:35:36PM +0900, Jiada Wang wrote: From: Bhuvanesh Surachari The de-/serializer driver has defined only irq_mask "ds90ub927_irq_mask" and irq_unmask "ds90ub927_irq_unmask" callback functions. And de-/serializer driv

[PATCH] xfs: Use BUG_ON rather than BUG() to remove unreachable code

2019-08-21 Thread Austin Kim
Code after BUG is unreachable since system would be crashed after the call to BUG is made. So change BUG_ON instead of BUG() to remove unreachable code. --- fs/xfs/xfs_mount.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index 3

[PATCH] mm/memcg: return value of the function mem_cgroup_from_css() is not checked

2019-08-21 Thread Yizhuo
Inside function mem_cgroup_wb_domain(), the pointer memcg could be NULL via mem_cgroup_from_css(). However, this pointer is not checked and directly dereferenced in the if statement, which is potentially unsafe. Signed-off-by: Yizhuo --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] ASoC: sun4i-i2s: incorrect regmap for A83t

2019-08-21 Thread Maxime Ripard
Hi Markus, On Wed, Aug 21, 2019 at 06:23:20PM +0200, codekip...@gmail.com wrote: > From: Marcus Cooper > > Fixes: 21faaea1343f ("ASoC: sun4i-i2s: Add support for A83T") > Signed-off-by: Marcus Cooper The patch is ok, but you should have a commit log here. Maxime -- Maxime Ripard, Bootlin Embe

Re: [PATCH 1/2] clocksource/drivers/timer-of: Do not warn on deferred probe

2019-08-21 Thread Daniel Lezcano
On 21/08/2019 17:02, Jon Hunter wrote: > Deferred probe is an expected return value for clk_get() on many > platforms. The driver deals with it properly, so there's no need > to output a warning that may potentially confuse users. > > Signed-off-by: Jon Hunter > --- Applied, thanks! > drivers/

[PATCH v2 1/1] iio: core: Fix fractional format generation

2019-08-21 Thread Alexander Stein
In case the result is -0.3252 tmp0 is 0 after the div_s64_rem, so tmp0 is non-negative which results in an output of 0.3252. Fix this by explicitly handling the negative sign ourselves. Signed-off-by: Alexander Stein --- Changes in v2: * Support vals[0] >= and vals[1] < 0 in IIO_VAL_FRACTIONAL *

[PATCH] arm64: defconfig: Enable SM8150 GCC and pinctrl driver

2019-08-21 Thread Vinod Koul
Enable GCC config CONFIG_SM_GCC_8150 and pinctrl config CONFIG_PINCTRL_SM8150 to make it possible to boot the SM8150 MTP. Signed-off-by: Vinod Koul --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig i

linux-next: build warning after merge of the soundwire tree

2019-08-21 Thread Stephen Rothwell
Hi all, After merging the soundwire tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/soundwire/intel.c: In function 'sdw_master_read_intel_prop': drivers/soundwire/intel.c:829:12: warning: unused variable 'i' [-Wunused-variable] int nval, i; ^ dri

Re: [PATCH v2 0/7] renesas, cmt: DT Binding Documentation and Minor Driver Updates V2

2019-08-21 Thread Daniel Lezcano
On 20/08/2019 14:34, Magnus Damm wrote: > renesas, cmt: DT Binding Documentation and Minor Driver Updates V2 > > [PATCH v2 1/7] dt-bindings: timer: renesas, cmt: Add CMT0234 to sh73a0 and > r8a7740 > [PATCH v2 2/7] dt-bindings: timer: renesas, cmt: Update CMT1 on sh73a0 and > r8a7740 > [PATCH v2

[PATCH v7 4/4] ARM: dts: imx6ul-kontron-n6310: Add Kontron i.MX6UL N6310 SoM and boards

2019-08-21 Thread Krzysztof Kozlowski
Add support for i.MX6UL modules from Kontron Electronics GmbH (before acquisition: Exceet Electronics) and evalkit boards based on it: 1. N6310 SOM: i.MX6 UL System-on-Module, a 25x25 mm solderable module (LGA pads and pin castellations) with 256 MB RAM, 1 MB NOR-Flash, 256 MB NAND and other

[PATCH v7 2/4] dt-bindings: eeprom: at25: Add Anvo ANV32E61W

2019-08-21 Thread Krzysztof Kozlowski
Document the compatible for ANV32E61W 64kb Serial SPI non-volatile SRAM. Although it is a SRAM device, it can be accessed through EEPROM interface. At least until there is no proper SRAM driver support for it. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Fabio Estevam --- Changes since v5:

[PATCH v7 1/4] dt-bindings: vendor-prefixes: Add Anvo-Systems

2019-08-21 Thread Krzysztof Kozlowski
Add vendor prefix for Anvo-Systems Dresden GmbH. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v4: None Changes since v3: 1. Add Rob's tag, 2. Remove Admatec (not needed anymore). Changes since v2: 1. Use admatecde vendor prefix. 2. Add Anvo-Systems Dresden Gm

[PATCH v7 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-21 Thread Krzysztof Kozlowski
Add the compatibles for Kontron i.MX6UL N6310 SoM and boards. Signed-off-by: Krzysztof Kozlowski --- Changes since v6: 1. Split entries to pass the dtbs_check. Changes since v5: New patch --- Documentation/devicetree/bindings/arm/fsl.yaml | 14 ++ 1 file changed, 14 insertions(+)

Re: [PATCH -next] cpufreq: qcom-hw: remove set but not used variable 'prev_cc'

2019-08-21 Thread Viresh Kumar
On 22-08-19, 10:25, Sibi Sankar wrote: > @YueHaibing thanks for the patch. > > On 2019-08-22 08:10, Viresh Kumar wrote: > > On 21-08-19, 20:14, YueHaibing wrote: > > > drivers/cpufreq/qcom-cpufreq-hw.c: In function > > > qcom_cpufreq_hw_read_lut: > > > drivers/cpufreq/qcom-cpufreq-hw.c:89:38: warn

Re: [linux-next][PPC][bisected c7d8b7][gcc 6.4.1] build error at drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471

2019-08-21 Thread Stephen Rothwell
rm/amd/amdgpu/amdgpu_drv.o] Error 1 > make[3]: *** [drivers/gpu/drm/amd/amdgpu] Error 2 > > It was introduced with commit c7d8b7 (hmm: use mmu_notifier_get/put for > 'struct hmm') This should have been fixed in next-20190821. -- Cheers, Stephen Rothwell pgpdSfWDHzSJc.pgp Description: OpenPGP digital signature

[PATCH RESEND] i2c: mediatek: disable zero-length transfers for mt8183

2019-08-21 Thread Hsin-Yi Wang
When doing i2cdetect quick write mode, we would get transfer error ENOMEM, and i2cdetect shows there's no device at the address. Quoting from mt8183 datasheet, the number of transfers to be transferred in one transaction should be set to bigger than 1, so we should forbid zero-length transfer and u

Re: [PATCH] mm: consolidate pgtable_cache_init() and pgd_cache_init()

2019-08-21 Thread Mike Rapoport
On Wed, Aug 21, 2019 at 06:17:12PM +0200, Marc Gonzalez wrote: > On 21/08/2019 17:06, Mike Rapoport wrote: > > > Both pgtable_cache_init() and pgd_cache_init() are used to initialize kmem > > cache for page table allocations on several architectures that do not use > > PAGE_SIZE tables for one or

[linux-next][PPC][bisected c7d8b7][gcc 6.4.1] build error at drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471

2019-08-21 Thread Abdul Haleem
Greeting's Today's linux-next kernel 5.3.0-rc5-next-20190820 failed to build on my powerpc machine Build errors: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c: In function amdgpu_exit: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471:2: error: implicit declaration of function mmu_notifier_synchronize [-Wer

Re: [PATCH v1 06/63] Input: atmel_mxt_ts - output status from T42 Touch Suppression

2019-08-21 Thread Jiada Wang
Hi On 2019/08/17 2:34, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:30:33PM +0900, Jiada Wang wrote: From: Nick Dyer Signed-off-by: Nick Dyer Acked-by: Benson Leung Acked-by: Yufeng Shen (cherry picked from ndyer/linux/for-upstream commit ab95b5a30d2c098daaa9f88d9fcfae7eb516) Sig

RE: [RFC PATCH] powerpc: Convert ____flush_dcache_icache_phys() to C

2019-08-21 Thread Alastair D'Silva
On Thu, 2019-08-22 at 07:06 +0200, Christophe Leroy wrote: > > Le 22/08/2019 à 02:27, Alastair D'Silva a écrit : > > On Wed, 2019-08-21 at 22:27 +0200, Christophe Leroy wrote: > > > Le 20/08/2019 à 06:36, Alastair D'Silva a écrit : > > > > On Fri, 2019-08-16 at 15:52 +, Christophe Leroy wrote:

[linux-next][PPC][bisected c7d8b7][gcc 6.4.1] build error at drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471

2019-08-21 Thread Abdul Haleem
Greeting's Today's linux-next kernel 5.3.0-rc5-next-20190820 failed to build on my powerpc machine Build errors: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c: In function amdgpu_exit: drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c:1471:2: error: implicit declaration of function mmu_notifier_synchronize [-Wer

Re: [PATCH v3 1/2] dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY

2019-08-21 Thread Ramuthevar, Vadivel MuruganX
Hi Rob, On 21/8/2019 9:35 PM, Rob Herring wrote: On Wed, Aug 21, 2019 at 5:11 AM Ramuthevar,Vadivel MuruganX wrote: From: Ramuthevar Vadivel Murugan Add a YAML schema to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Mur

Re: [PATCH v3 1/3] RISC-V: Issue a local tlbflush if possible.

2019-08-21 Thread Atish Patra
On Thu, 2019-08-22 at 06:27 +0200, h...@lst.de wrote: > On Thu, Aug 22, 2019 at 04:01:24AM +, Atish Patra wrote: > > The downside of this is that for every !cmask case in true SMP > > (more > > common probably) it will execute 2 extra cpumask instructions. As > > tlbflush path is in performance

[PATCH] x86/Hyper-V: Fix build error with CONFIG_HYPERV_TSCPAGE=N

2019-08-21 Thread lantianyu1986
From: Tianyu Lan Both Hyper-V tsc page and Hyper-V tsc MSR code use variable hv_sched_clock_offset for their sched clock callback and so define the variable regardless of CONFIG_HYPERV_TSCPAGE setting. Signed-off-by: Tianyu Lan --- This patch is based on the top of "git.kernel.org/pub/scm/linu

Re: [PATCH v2] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-08-21 Thread Al Viro
On Wed, Aug 21, 2019 at 09:22:49PM -0700, Eric Biggers wrote: > > > diff --git a/fs/fs_parser.c b/fs/fs_parser.c > > > index 83b66c9e9a24..7498a44f18c0 100644 > > > --- a/fs/fs_parser.c > > > +++ b/fs/fs_parser.c > > > @@ -206,6 +206,9 @@ int fs_parse(struct fs_context *fc, > > > case fs_param_is

Re: [PATCH v1 04/63] Input: atmel_mxt_ts - split large i2c transfers into blocks

2019-08-21 Thread Jiada Wang
Hi Dmitry On 2019/08/17 2:18, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:28:53PM +0900, Jiada Wang wrote: From: Nick Dyer On some firmware variants, the size of the info block exceeds what can be read in a single transfer. Signed-off-by: Nick Dyer (cherry picked from ndyer/linux/for-

[PATCH net-next,v4, 4/6] net/mlx5: Add HV VHCA infrastructure

2019-08-21 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA is a layer which provides PF to VF communication channel based on HyperV PCI config channel. It implements Mellanox's Inter VHCA control communication protocol. The protocol contains control block in order to pass messages between the PF and VF drivers, and data bloc

[PATCH net-next,v4, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-21 Thread Haiyang Zhang
From: Eran Ben Elisha Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy

[PATCH net-next,v4, 2/6] PCI: hv: Add a Hyper-V PCI interface driver for software backchannel interface

2019-08-21 Thread Haiyang Zhang
This interface driver is a helper driver allows other drivers to have a common interface with the Hyper-V PCI frontend driver. Signed-off-by: Haiyang Zhang Signed-off-by: Saeed Mahameed --- MAINTAINERS | 1 + drivers/pci/Kconfig | 1 + drivers

[PATCH net-next,v4, 6/6] net/mlx5e: Add mlx5e HV VHCA stats agent

2019-08-21 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA stats agent is responsible on running a preiodic rx/tx packets/bytes stats update. Currently the supported format is version MLX5_HV_VHCA_STATS_VERSION. Block ID 1 is dedicated for statistics data transfer from the VF to the PF. The reporter fetch the statistics dat

Re: [RFC PATCH] powerpc: Convert ____flush_dcache_icache_phys() to C

2019-08-21 Thread Christophe Leroy
Le 22/08/2019 à 02:27, Alastair D'Silva a écrit : On Wed, 2019-08-21 at 22:27 +0200, Christophe Leroy wrote: Le 20/08/2019 à 06:36, Alastair D'Silva a écrit : On Fri, 2019-08-16 at 15:52 +, Christophe Leroy wrote: [...] Thanks Christophe, I'm trying a somewhat different approach t

[PATCH net-next,v4, 1/6] PCI: hv: Add a paravirtual backchannel in software

2019-08-21 Thread Haiyang Zhang
From: Dexuan Cui Windows SR-IOV provides a backchannel mechanism in software for communication between a VF driver and a PF driver. These "configuration blocks" are similar in concept to PCI configuration space, but instead of doing reads and writes in 32-bit chunks through a very slow path, pac

[PATCH net-next,v4, 3/6] net/mlx5: Add wrappers for HyperV PCIe operations

2019-08-21 Thread Haiyang Zhang
From: Eran Ben Elisha Add wrapper functions for HyperV PCIe read / write / block_invalidate_register operations. This will be used as an infrastructure in the downstream patch for software communication. This will be enabled by default if CONFIG_PCI_HYPERV_INTERFACE is set. Signed-off-by: Eran

[PATCH net-next,v4, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-21 Thread Haiyang Zhang
This patch set adds paravirtual backchannel in software in pci_hyperv, which is required by the mlx5e driver HV VHCA stats agent. The stats agent is responsible on running a periodic rx/tx packets/bytes stats update. Dexuan Cui (1): PCI: hv: Add a paravirtual backchannel in software Eran Ben E

Re: [PATCH -next] cpufreq: qcom-hw: remove set but not used variable 'prev_cc'

2019-08-21 Thread Sibi Sankar
@YueHaibing thanks for the patch. On 2019-08-22 08:10, Viresh Kumar wrote: On 21-08-19, 20:14, YueHaibing wrote: drivers/cpufreq/qcom-cpufreq-hw.c: In function qcom_cpufreq_hw_read_lut: drivers/cpufreq/qcom-cpufreq-hw.c:89:38: warning: variable prev_cc set but not used [-Wunused-but-set-varia

Re: [PATCH 1/3] x86,mm/pat: Use generic interval trees

2019-08-21 Thread Davidlohr Bueso
On Wed, 21 Aug 2019, Michel Lespinasse wrote: On Tue, Aug 13, 2019 at 03:46:18PM -0700, Davidlohr Bueso wrote: o The border cases for overlapping differ -- interval trees are closed, while memtype intervals are open. We need to maintain semantics such that conflict detection and getting the low

[PATCH 1/6] kbuild: remove 'Using ... as source for kernel' message

2019-08-21 Thread Masahiro Yamada
You already know the location of the source tree without this message. Signed-off-by: Masahiro Yamada --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index 7e54a821b4b0..a77102e4ee90 100644 --- a/Makefile +++ b/Makefile @@ -1118,7 +1118,6 @@ PHONY += prepare

[PATCH 3/6] kbuild: clarify where to run make mrproper when out-of-tree fails

2019-08-21 Thread Masahiro Yamada
If you try out-of-tree build with an unclean source tree, Kbuild suggests to run make mrproper. The path to the source tree may be shown with a relative path, for example, "make O=foo" emits the following: .. is not clean, please run 'make mrproper' in the '..' directory. This is somewhat con

[PATCH 5/6] kbuild: remove prepare3 target

2019-08-21 Thread Masahiro Yamada
Now prepare3 does nothing but depends on include/config/kernel.release Signed-off-by: Masahiro Yamada --- Makefile | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ca6851f5ebc9..960df4d35b15 100644 --- a/Makefile +++ b/Makefile @@ -1121,11

[PATCH 4/6] kbuild: move the clean srctree check to the outputmakefile target

2019-08-21 Thread Masahiro Yamada
With this commit, the error report is shown earlier, even before running kconfig. Signed-off-by: Masahiro Yamada --- Makefile | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 901fcb8fffbe..ca6851f5ebc9 100644 --- a/Makefile

[PATCH 6/6] kbuild: check clean srctree even earlier

2019-08-21 Thread Masahiro Yamada
Move the outputmakefile target to the leftmost in the prerequisite list so that this is checked first. There is no guarantee that Make runs the prerequisites from left to right, but at least the released versions of GNU Make work like that when the parallel build option is not given. Of course, wh

[PATCH 2/6] kbuild: Inform user to pass ARCH= for make mrproper only when necessary

2019-08-21 Thread Masahiro Yamada
Since commit 3a475b2166fd ("kbuild: Inform user to pass ARCH= for make mrproper"), if you try out-of-tree build with an unclean source tree, it suggests to run 'make ARCH= mrproper'. This looks odd when you are not cross-compiling the kernel. Show the 'ARCH=' part only when ARCH= was given from th

Re: [PATCH v3 1/3] RISC-V: Issue a local tlbflush if possible.

2019-08-21 Thread h...@lst.de
On Thu, Aug 22, 2019 at 04:01:24AM +, Atish Patra wrote: > The downside of this is that for every !cmask case in true SMP (more > common probably) it will execute 2 extra cpumask instructions. As > tlbflush path is in performance critical path, I think we should favor > more common case (SMP wi

Re: [PATCH v3 3/3] RISC-V: Do not invoke SBI call if cpumask is empty

2019-08-21 Thread Atish Patra
On Thu, 2019-08-22 at 03:51 +0200, Christoph Hellwig wrote: > On Wed, Aug 21, 2019 at 05:46:44PM -0700, Atish Patra wrote: > > SBI calls are expensive. If cpumask is empty, there is no need to > > trap via SBI as no remote tlb flushing is required. > > > > Signed-off-by: Atish Patra > > --- > >

Re: [PATCH v2] fs: fs_parser: avoid NULL param->string to kstrtouint

2019-08-21 Thread Eric Biggers
[trimmed Cc list a bit] On Thu, Aug 15, 2019 at 07:46:56PM -0700, Eric Biggers wrote: > On Sat, Jul 20, 2019 at 07:29:49AM +0800, Yin Fengwei wrote: > > syzbot reported general protection fault in kstrtouint: > > https://lkml.org/lkml/2019/7/18/328 > > > > From the log, if the mount option is som

RE: [PATCH net-next,v3, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-21 Thread Haiyang Zhang
> -Original Message- > From: linux-hyperv-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of David Miller > Sent: Wednesday, August 21, 2019 9:09 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.co

Re: [PATCH net-next,v3, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-21 Thread David Miller
From: Haiyang Zhang Date: Wed, 21 Aug 2019 00:23:19 + > This patch set adds paravirtual backchannel in software in pci_hyperv, > which is required by the mlx5e driver HV VHCA stats agent. > > The stats agent is responsible on running a periodic rx/tx packets/bytes > stats update. These patc

Re: [PATCH] arm: skip nomap memblocks while finding the lowmem/highmem boundary

2019-08-21 Thread Chester Lin
On Thu, Aug 22, 2019 at 11:45:34AM +0800, Chester Lin wrote: > adjust_lowmem_bounds() checks every memblocks in order to find the boundary > between lowmem and highmem. However some memblocks could be marked as NOMAP > so they are not used by kernel, which should be skipped while calculating > the

Re: [PATCH] selftests: net: add missing NFT_FWD_NETDEV to config

2019-08-21 Thread David Miller
From: Anders Roxell Date: Tue, 20 Aug 2019 15:41:02 +0200 > When running xfrm_policy.sh we see the following > > # sysctl cannot stat /proc/sys/net/ipv4/conf/eth1/forwarding No such file or > directory > cannot: stat_/proc/sys/net/ipv4/conf/eth1/forwarding # I don't understand how a netfilte

Re: [PATCH v3 2/3] RISC-V: Issue a tlb page flush if possible

2019-08-21 Thread Atish Patra
On Thu, 2019-08-22 at 03:50 +0200, Christoph Hellwig wrote: > On Wed, Aug 21, 2019 at 05:46:43PM -0700, Atish Patra wrote: > > + if (size <= PAGE_SIZE && size != -1) > > + local_flush_tlb_page(start); > > + else > > + local_flush_tlb_all(); >

Re: [PATCH v3 1/3] RISC-V: Issue a local tlbflush if possible.

2019-08-21 Thread Atish Patra
On Thu, 2019-08-22 at 03:46 +0200, Christoph Hellwig wrote: > On Wed, Aug 21, 2019 at 05:46:42PM -0700, Atish Patra wrote: > > In RISC-V, tlb flush happens via SBI which is expensive. If the > > local > > cpu is the only cpu in cpumask, there is no need to invoke a SBI > > call. > > > > Just do a

[PATCH] kbuild: get rid of $(realpath ...) from scripts/mkmakefile

2019-08-21 Thread Masahiro Yamada
Both relative path and absolute path have pros and cons. For example, we can move the source and objtree around together by using the relative path to the source tree. Do not force the absolute path to the source tree. If you prefer the absolute path, you can specify KBUILD_ABS_SRCTREE=1. Signed-

Re: [PATCH net-next v3 0/4] Improve phc2sys precision for mv88e6xxx switch in combination with imx6-fec

2019-08-21 Thread David Miller
From: Hubert Feurstein Date: Tue, 20 Aug 2019 10:48:29 +0200 > From: Hubert Feurstein > > Changelog: > v3: mv88e6xxx_smi_indirect_write: forward ptp_sts only on the last write > Copied Miroslav Lichvar because of PTP offset compensation patch > v2: Added patch for PTP offset compensation

Re: [PATCH] rcu: don't include in rcutiny.h

2019-08-21 Thread Christoph Hellwig
On Wed, Aug 21, 2019 at 08:02:00PM -0700, Paul E. McKenney wrote: > On Thu, Aug 22, 2019 at 10:53:43AM +0900, Christoph Hellwig wrote: > > The kbuild reported a built failure due to a header loop when RCUTINY is > > enabled with my pending riscv-nommu port. Switch rcutiny.h to only > > include the

[PATCH] arm: skip nomap memblocks while finding the lowmem/highmem boundary

2019-08-21 Thread Chester Lin
adjust_lowmem_bounds() checks every memblocks in order to find the boundary between lowmem and highmem. However some memblocks could be marked as NOMAP so they are not used by kernel, which should be skipped while calculating the boundary. Signed-off-by: Chester Lin --- arch/arm/mm/mmu.c | 3 +++

Re: [PATCH] x86/apic: Update virtual irq base for DT/OF based system as well

2019-08-21 Thread Tanwar, Rahul
Hi Thomas, On 22/8/2019 12:47 AM, Andy Shevchenko wrote: For DT we can actually avoid that completely. See below. For ACPI not unfortunately as the stupid GSI mapping is hard coded. The below works better for my case, so, if you are going with that Tested-by: Andy Shevchenko 8<---

Re: [PATCH 2/4] memremap: remove the dev field in struct dev_pagemap

2019-08-21 Thread Dan Williams
On Wed, Aug 21, 2019 at 4:51 PM Jason Gunthorpe wrote: > > On Wed, Aug 21, 2019 at 01:24:20PM -0300, Jason Gunthorpe wrote: > > On Tue, Aug 20, 2019 at 07:58:22PM -0700, Dan Williams wrote: > > > On Tue, Aug 20, 2019 at 6:27 AM Jason Gunthorpe wrote: > > > > > > > > On Mon, Aug 19, 2019 at 06:44:

Re: [PATCH v1 03/63] Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when necessary

2019-08-21 Thread Jiada Wang
Hi On 2019/08/22 2:54, Dmitry Torokhov wrote: On Wed, Aug 21, 2019 at 10:26:31PM +0900, Jiada Wang wrote: Hi Dmitry On 2019/08/17 2:16, Dmitry Torokhov wrote: On Fri, Aug 16, 2019 at 05:28:52PM +0900, Jiada Wang wrote: From: Nick Dyer The workaround of reading all messages until an invalid

Re: [PATCH v3 2/3] drivers: hv: vmbus: add test attributes to debugfs

2019-08-21 Thread Branden Bonaby
> > +What: /sys/kernel/debug/hyperv//fuzz_test_state > > +Date: August 2019 > > +KernelVersion: 5.3 > > +Contact:Branden Bonaby > > +Description:Fuzz testing status of a vmbus device, whether its in an ON > > +state or a OFF state > > Document what

Re: [PATCH v4 06/10] modpost: Add modinfo flag to livepatch modules

2019-08-21 Thread Masahiro Yamada
Hi Joe, On Tue, Aug 20, 2019 at 1:02 AM Joe Lawrence wrote: > > On 8/19/19 3:31 AM, Miroslav Benes wrote: > > On Mon, 19 Aug 2019, Masahiro Yamada wrote: > > > >> > >> I can review this series from the build system point of view, > >> but I am not familiar enough with live-patching itself. > >> >

[PATCH v3] vfio_pci: Restore original state on release

2019-08-21 Thread hexin
vfio_pci_enable() saves the device's initial configuration information with the intent that it is restored in vfio_pci_disable(). However, the commit referenced in Fixes: below replaced the call to __pci_reset_function_locked(), which is not wrapped in a state save and restore, with pci_try_reset_

Re: [PATCH net] net: dsa: bcm_sf2: Do not configure PHYLINK on CPU port

2019-08-21 Thread David Miller
From: Florian Fainelli Date: Wed, 21 Aug 2019 17:07:46 -0700 > The SF2 binding does not specify that the CPU port should have > properties mandatory for successfully instantiating a PHYLINK object. As > such, there will be missing properties (including fixed-link) and when > attempting to validat

Re: KMSAN: uninit-value in rtm_new_nexthop

2019-08-21 Thread David Ahern
On 8/21/19 6:38 PM, syzbot wrote: > == > BUG: KMSAN: uninit-value in rtm_to_nh_config net/ipv4/nexthop.c:1317 > [inline] > BUG: KMSAN: uninit-value in rtm_new_nexthop+0x447/0x98e0 > net/ipv4/nexthop.c:1474 I believed this is fixed in

Re: [PATCH v2] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-21 Thread Nick Desaulniers
On Wed, Aug 21, 2019 at 10:46 AM Nathan Huckleberry wrote: > > The stackframe setup when compiled with clang is different. > Since the stack unwinder expects the gcc stackframe setup it > fails to print backtraces. This patch adds support for the > clang stackframe setup. > > Link: https://github.

[PATCH] gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h

2019-08-21 Thread YueHaibing
If CONFIG_GPIOLIB is not, gpiochip_lock/unlock_as_irq will conflict as this: In file included from sound/soc/codecs/wm5100.c:18:0: ./include/linux/gpio.h:224:19: error: static declaration of gpiochip_lock_as_irq follows non-static declaration static inline int gpiochip_lock_as_irq(struct gpio_ch

Re: [PATCH v3 3/3] tools: hv: add vmbus testing tool

2019-08-21 Thread Branden Bonaby
On Thu, Aug 22, 2019 at 01:36:09AM +, Harry Zhang wrote: > Tool function issues: Please validate args errors for '-p' and '--path', > in or following validate_args_path(). > > Comments of functionality: > - it's confusing when fuzz_testing are all OFF, then user run ' python3 > /hom

RE: [tip:timers/core 34/34] drivers//clocksource/hyperv_timer.c:264:35: error: 'hv_sched_clock_offset' undeclared; did you mean 'sched_clock_register'?

2019-08-21 Thread Tianyu Lan
Thanks for reporting. I will send out fix patch. -Original Message- From: kbuild test robot Sent: Thursday, August 22, 2019 10:25 AM To: Tianyu Lan Cc: kbuild-...@01.org; linux-kernel@vger.kernel.org; tipbu...@zytor.com; Thomas Gleixner ; Michael Kelley Subject: [tip:timers/core 34/34

Re: [PATCH V6 2/2] genirq/affinity: Spread vectors on node according to nr_cpu ratio

2019-08-21 Thread Ming Lei
On Mon, Aug 19, 2019 at 04:02:21PM +0200, Thomas Gleixner wrote: > On Mon, 19 Aug 2019, Ming Lei wrote: > > On Mon, Aug 19, 2019 at 03:13:58PM +0200, Thomas Gleixner wrote: > > > On Mon, 19 Aug 2019, Ming Lei wrote: > > > > > > > Cc: Jon Derrick > > > > Cc: Jens Axboe > > > > Reported-by: Jon De

Re: BUG: MAX_STACK_TRACE_ENTRIES too low in tipc_topsrv_exit_net

2019-08-21 Thread Eric Biggers
On Mon, Aug 19, 2019 at 05:22:07AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:5181b473 net: phy: realtek: add NBase-T PHY auto-detection > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=156b731c60 > kernel c

[PATCH V2] csky: Fixup 610 vipt cache flush mechanism

2019-08-21 Thread guoren
From: Guo Ren 610 has vipt aliasing issue, so we need to finish the cache flush apis mentioned in cachetlb.rst to avoid data corruption. Here is the list of modified apis in the patch: - flush_kernel_dcache_page (new add) - flush_dcache_mmap_lock(new add) - flush_dcache_mmap_unl

Re: [PATCH] rcu: don't include in rcutiny.h

2019-08-21 Thread Paul E. McKenney
On Thu, Aug 22, 2019 at 10:53:43AM +0900, Christoph Hellwig wrote: > The kbuild reported a built failure due to a header loop when RCUTINY is > enabled with my pending riscv-nommu port. Switch rcutiny.h to only > include the minimal required header to get HZ instead. > > Signed-off-by: Christoph

[PATCH V4 1/4] dt-bindings: watchdog: Add i.MX7ULP bindings

2019-08-21 Thread Anson Huang
Add the watchdog bindings for Freescale i.MX7ULP. Signed-off-by: Anson Huang --- No changes. --- .../bindings/watchdog/fsl-imx7ulp-wdt.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/watchdog/fsl-imx7ulp-wdt.txt d

[PATCH V4 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-21 Thread Anson Huang
The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer that is available for system use. It provides a safety feature to ensure that software is executing as planned and that the CPU is not stuck in an infinite loop or executing unintended code. If the WDOG module is not serviced (refres

[PATCH V4 4/4] ARM: dts: imx7ulp: Add wdog1 node

2019-08-21 Thread Anson Huang
Add wdog1 node to support watchdog driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index 6859a3a..1fdb5a35 100644 --- a/arch/arm/b

[PATCH V4 3/4] ARM: imx_v6_v7_defconfig: Enable CONFIG_IMX7ULP_WDT by default

2019-08-21 Thread Anson Huang
Select CONFIG_IMX7ULP_WDT by default to support i.MX7ULP watchdog. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 9bfffbe..b

RE: [PATCH V3 2/4] watchdog: Add i.MX7ULP watchdog support

2019-08-21 Thread Anson Huang
Hi, Guenter > On Tue, Aug 20, 2019 at 10:07:56PM -0400, Anson Huang wrote: > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > that > > is available for system use. > > It provides a safety feature to ensure that software is executing as > > planned and that the CPU is not stuc

  1   2   3   4   5   6   7   8   9   10   >