Re: possible deadlock in static_key_slow_dec

2019-08-16 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:17da61ae Add linux-next specific files for 20190814 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=158810ac60 kernel config:

Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

2019-08-16 Thread Greg KH
On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote: > ACRN hypervisor service module is the important middle layer that allows > the Linux kernel to communicate with the ACRN hypervisor. It includes > the management of virtualized CPU/memory/device/interrupt for other ACRN > guest. The

Re: [PATCH] csky: Fixup ioremap function losing

2019-08-16 Thread Christoph Hellwig
On Thu, Aug 15, 2019 at 07:28:57PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > Implement the following apis to meet usage in different scenarios. > > - ioremap (NonCache + StrongOrder) > - ioremap_nocache (NonCache + StrongOrder) > - ioremap_wc (NonCache + WeakOrder

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-16 Thread Greg KH
On Fri, Aug 16, 2019 at 08:39:25AM +0200, Borislav Petkov wrote: > On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: > > The first three patches are the changes under x86/acrn, which adds the > > required APIs for the driver and reports the X2APIC caps. > > The remaining patches add the

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-16 Thread Thomas Gleixner
On Thu, 15 Aug 2019, Luck, Tony wrote: > >From 093bf8cd02f4c7a3fa256c2cf7302014190e2840 Mon Sep 17 00:00:00 2001 > From: Tony Luck > Date: Thu, 15 Aug 2019 11:16:24 -0700 > Subject: [PATCH] x86/cpu: Explain Intel model naming convention > > Dave Hansen spelled out the rules in an e-mail: > >

Re: [PATCH] clocksource/drivers/sp804: make CONFIG_ARM_TIMER_SP804 selectable again

2019-08-16 Thread Thomas Gleixner
Helmut, On Fri, 16 Aug 2019, Helmut Grohne wrote: > I also note that there are likely more instances for this pattern. > Should they be fixed in a similar way? You can find a lot using the > following incantation: > > $ git describe --tags > v5.3-rc4 > $ git ls-files -- "*/Kconfig" |

[PATCH] dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()

2019-08-16 Thread Wenwen Wang
If devm_request_irq() fails to disable all interrupts, no cleanup is performed before retuning the error. To fix this issue, invoke omap_dma_free() to do the cleanup. Signed-off-by: Wenwen Wang --- drivers/dma/ti/omap-dma.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 1/3] dt-bindings: i2c: mv64xxx: Add compatible for the H6 i2c node.

2019-08-16 Thread Bhushan Shah
Allwinner H6 have a mv64xxx i2c interface available to be used. Signed-off-by: Bhushan Shah --- Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/marvell,mv64xxx-i2c.yaml

linux-next: manual merge of the gpio-brgl tree with the gpio tree

2019-08-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the gpio-brgl tree got a conflict in: include/linux/gpio/driver.h between commit: fdd61a013a24 ("gpio: Add support for hierarchical IRQ domains") from the gpio tree and commit: 9091373ab7ea ("gpio: remove less important #ifdef around declarations")

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-08-16 Thread Feng Tang
Hi Thomas, On Tue, Aug 13, 2019 at 05:36:16PM +0800, Feng Tang wrote: > Hi Thomas, > > On Mon, Aug 12, 2019 at 03:25:45PM +0800, Feng Tang wrote: > > Hi Thomas, > > > > On Fri, Aug 09, 2019 at 04:12:29PM +0800, Rong Chen wrote: > > > Hi, > > > > > > >>Actually we run the benchmark as a

[PATCH v2 3/3] arm64: allwinner: h6: add i2c0 node in PineH64

2019-08-16 Thread Bhushan Shah
i2c0 bus is exposed by PI-2 BUS in the PineH64, model B. Signed-off-by: Bhushan Shah --- Changes in v2: - Don't enable the i2c0 node in PineH64 by default arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v2 0/3] Enable the I2C nodes for Allwinner H6 CPU

2019-08-16 Thread Bhushan Shah
This patch series adds device-tree nodes for i2c nodes in the H6 dtsi, and enables it for the Pine H64. Changes in v2: - Add the SoC specific compatible string instead of re-using a31 one. - Don't enable the i2c0 node in PineH64 by default Bhushan Shah (3): dt-bindings: i2c: mv64xxx: Add

[PATCH v2 2/3] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Bhushan Shah
Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl nodes. Suggested-by: Icenowy Zheng Signed-off-by: Bhushan Shah --- Changes in v2: - Add the SoC specific compatible string instead of re-using a31 one. arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 56

[PATCH 1/4] resource: add a not device managed request_free_mem_region variant

2019-08-16 Thread Christoph Hellwig
Just add a simple macro that passes a NULL dev argument to dev_request_free_mem_region, and call request_mem_region in the function for that particular case. Signed-off-by: Christoph Hellwig --- include/linux/ioport.h | 2 ++ kernel/resource.c | 45

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

2019-08-16 Thread Christoph Hellwig
The dev field in struct dev_pagemap is only used to print dev_name in two places, which are at best nice to have. Just remove the field and thus the name in those two messages. Signed-off-by: Christoph Hellwig --- include/linux/memremap.h | 1 - mm/memremap.c| 6 +-

[PATCH 4/4] memremap: provide a not device managed memremap_pages

2019-08-16 Thread Christoph Hellwig
The kvmppc ultravisor code wants a device private memory pool that is system wide and not attached to a device. Instead of faking up one provide a low-level memremap_pages for it. Note that this function is not exported, and doesn't have a cleanup routine associated with it to discourage use

add a not device managed memremap_pages v2

2019-08-16 Thread Christoph Hellwig
Hi Dan and Jason, Bharata has been working on secure page management for kvmppc guests, and one I thing I noticed is that he had to fake up a struct device just so that it could be passed to the devm_memremap_pages instrastructure for device private memory. This series adds non-device managed

[PATCH 3/4] memremap: don't use a separate devm action for devmap_managed_enable_get

2019-08-16 Thread Christoph Hellwig
Just clean up for early failures and then piggy back on devm_memremap_pages_release. This helps with a pending not device managed version of devm_memremap_pages. Signed-off-by: Christoph Hellwig --- mm/memremap.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff

Re: [PATCH v2] dmaengine: ti: dma-crossbar: Fix a memory leak bug

2019-08-16 Thread Peter Ujfalusi
On 16/08/2019 9.48, Wenwen Wang wrote: > In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then > of_property_read_u32_array() is invoked to search for the property. > However, if this process fails, 'rsv_events' is not deallocated, leading to > a memory leak bug. To fix

[PATCH] clocksource/drivers/sp804: make CONFIG_ARM_TIMER_SP804 selectable again

2019-08-16 Thread Helmut Grohne
Adding a dependency on CONFIG_COMPILE_TEST makes the relevant item unselectable for practical purposes. The correct solution is to add a dependency alternative on the relevant architecture. Fixes: dfc82faad72520 ("clocksource/drivers/sp804: Add COMPILE_TEST to CONFIG_ARM_TIMER_SP804") Link:

Re: [PATCH 4.19 00/91] 4.19.67-stable review

2019-08-16 Thread Jinpu Wang
Greg Kroah-Hartman 于2019年8月14日周三 下午7:10写道: > > This is the start of the stable review cycle for the 4.19.67 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[PATCH v2] dmaengine: ti: dma-crossbar: Fix a memory leak bug

2019-08-16 Thread Wenwen Wang
In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then of_property_read_u32_array() is invoked to search for the property. However, if this process fails, 'rsv_events' is not deallocated, leading to a memory leak bug. To fix this issue, free 'rsv_events' before returning the

Re: [PATCH 2/2] vfs: don't allow writes to swap files

2019-08-16 Thread Darrick J. Wong
On Thu, Aug 15, 2019 at 11:41:21PM -0700, Christoph Hellwig wrote: > The new checks look fine to me, but where does the inode_drain_writes() > function come from, I can't find that in my tree anywhere. Doh. Forgot to include that patch in the series. :( /* * Flush file data before changing

Re: [PATCH RFC v1] clk: Fix potential NULL dereference in clk_fetch_parent_index()

2019-08-16 Thread Martin Blumenstingl
Hi Stephen, On Fri, Aug 16, 2019 at 1:29 AM Stephen Boyd wrote: > > Quoting Martin Blumenstingl (2019-08-15 15:31:55) > > Don't compare the parent clock name with a NULL name in the > > clk_parent_map. This prevents a kernel crash when passing NULL > > core->parents[i].name to strcmp(). > > > >

Re: [PATCH v2 0/7] AMD64 EDAC fixes

2019-08-16 Thread Borislav Petkov
On Thu, Aug 15, 2019 at 08:08:39PM +, Ghannam, Yazen wrote: > Yes, I agree. I was planning to do a fix in a separate set. Is that > okay? Or should I add it here? If you have it, send it on, sure. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim

Re: [PATCH] dmaengine: ti: Fix a memory leak bug

2019-08-16 Thread Wenwen Wang
On Fri, Aug 16, 2019 at 2:42 AM Peter Ujfalusi wrote: > > > > On 16/08/2019 9.23, Wenwen Wang wrote: > > In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then > > of_property_read_u32_array() is invoked to search for the property. > > However, if this process fails,

Re: [PATCH] MAINTAINERS, x86/CPU: Tony Luck will maintain asm/intel-family.h

2019-08-16 Thread Borislav Petkov
On Thu, Aug 15, 2019 at 03:47:05PM -0700, Luck, Tony wrote: > On Thu, Aug 15, 2019 at 10:22:07PM +0200, Thomas Gleixner wrote: > > On Thu, 15 Aug 2019, Luck, Tony wrote: > > > On Thu, Aug 15, 2019 at 07:54:55PM +0200, Borislav Petkov wrote: > > So we should document the list of valid and usable

Re: [PATCH v3 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-16 Thread Uwe Kleine-König
Hello Baolin, On Fri, Aug 16, 2019 at 10:44:41AM +0800, Baolin Wang wrote: > On Thu, 15 Aug 2019 at 20:25, Uwe Kleine-König > wrote: > > > > On Thu, Aug 15, 2019 at 07:05:53PM +0800, Baolin Wang wrote: > > > On Thu, 15 Aug 2019 at 18:11, Uwe Kleine-König > > > wrote: > > > > > > > > Hello, > >

Re: [PATCH v4 21/21] ARM: dts: imx6qdl-colibri.dtsi: UHS-I support for v1.1a hw

2019-08-16 Thread Philippe Schenker
On Mon, 2019-08-12 at 14:21 +, Philippe Schenker wrote: > From: Igor Opaniuk > > Provide proper configuration for VGEN3, to make sure it's is always > powered > which allows that rail to be automatically switched to 1.8 volts > for proper UHS-I operation. By default it's disabled. > > With

Re: [PATCH v4 20/21] ARM: dts: imx7-colibri: Add UHS support to eval board

2019-08-16 Thread Philippe Schenker
On Mon, 2019-08-12 at 14:21 +, Philippe Schenker wrote: > This commit adds UHS capability to Toradex Eval Boards > > Signed-off-by: Philippe Schenker Please ignore this patch. There was a misunderstanding and this one shouldn't go into mainline. Sorry for that! > > --- > > Changes in v4:

Re: [PATCH] dmaengine: ti: Fix a memory leak bug

2019-08-16 Thread Peter Ujfalusi
On 16/08/2019 9.23, Wenwen Wang wrote: > In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then > of_property_read_u32_array() is invoked to search for the property. > However, if this process fails, 'rsv_events' is not deallocated, leading to > a memory leak bug. To fix

Re: [PATCH net-next v2 4/5] r8152: support skb_add_rx_frag

2019-08-16 Thread Eric Dumazet
On 8/13/19 5:42 AM, Hayes Wang wrote: > Use skb_add_rx_frag() to reduce the memory copy for rx data. > > Use a new list of rx_used to store the rx buffer which couldn't be > reused yet. > > Besides, the total number of rx buffer may be increased or decreased > dynamically. And it is limited

Re: [PATCH 2/3] x86: cpu: Add new Intel Atom CPU type

2019-08-16 Thread Borislav Petkov
On Fri, Aug 16, 2019 at 11:22:16AM +0800, Tanwar, Rahul wrote: > > Hi Boris, > > Well noted, will have Tony in loop from now on. Thanks. Ok. Now to another question: you see how I put my reply to the previous mail *below* the quoted text. Why is yours ontop? Why not put it after mine since

Re: [PATCH 2/2] vfs: don't allow writes to swap files

2019-08-16 Thread Christoph Hellwig
The new checks look fine to me, but where does the inode_drain_writes() function come from, I can't find that in my tree anywhere. Also what does inode_drain_writes do about existing shared writable mapping? Do we even care about that corner case?

linux-next: manual merge of the scsi tree with the scsi-fixes tree

2019-08-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the scsi tree got a conflict in: drivers/scsi/qla2xxx/qla_os.c between commit: 26fa656e9a0c ("scsi: qla2xxx: Fix gnl.l memory leak on adapter init failure") from the scsi-fixes tree and commit: 26a77799195f ("scsi: qla2xxx: Correct error handling

Re: [PATCH net-next] r8152: divide the tx and rx bottom functions

2019-08-16 Thread Eric Dumazet
On 8/14/19 10:30 AM, Hayes Wang wrote: > Move the tx bottom function from NAPI to a new tasklet. Then, for > multi-cores, the bottom functions of tx and rx may be run at same > time with different cores. This is used to improve performance. > > tasklet and NAPI are scheduled on the same

Re: [PATCH 5.2 000/144] 5.2.9-stable review

2019-08-16 Thread Kelsey Skunberg
On Wed, Aug 14, 2019 at 06:59:16PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.9 release. > There are 144 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCH 1/2] mm: set S_SWAPFILE on blockdev swap devices

2019-08-16 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 4.19 00/91] 4.19.67-stable review

2019-08-16 Thread Kelsey Skunberg
On Wed, Aug 14, 2019 at 07:00:23PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.67 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [RFC PATCH 00/15] acrn: add the ACRN driver module

2019-08-16 Thread Borislav Petkov
On Fri, Aug 16, 2019 at 10:25:41AM +0800, Zhao Yakui wrote: > The first three patches are the changes under x86/acrn, which adds the > required APIs for the driver and reports the X2APIC caps. > The remaining patches add the ACRN driver module, which accepts the ioctl > from user-space and then

Re: [PATCH 4.14 00/69] 4.14.139-stable review

2019-08-16 Thread Kelsey Skunberg
On Wed, Aug 14, 2019 at 07:00:58PM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.139 release. > There are 69 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: [PATCHv6 28/36] posix-clocks: Add align for timens_offsets

2019-08-16 Thread Thomas Gleixner
On Thu, 15 Aug 2019, Thomas Gleixner wrote: > So using struct timespec64 for the offset is wrong. You really need to open > code that offset storage if you don't want to end up with weird workarounds > for BE. > > Something like this: > > struct timens_offs { > time64_t tv_sec; >

Re: [PATCHv6 01/36] ns: Introduce Time Namespace

2019-08-16 Thread Thomas Gleixner
Andrei, On Thu, 15 Aug 2019, Andrei Vagin wrote: > On Thu, Aug 15, 2019 at 07:19:12PM +0200, Thomas Gleixner wrote: > > > +static int timens_install(struct nsproxy *nsproxy, struct ns_common *new) > > > +{ > > > + struct time_namespace *ns = to_time_ns(new); > > > + > > > + if

[PATCH] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Jian-Hong Pan
There is a mass of jobs between spin lock and unlock in the hardware IRQ which will occupy much time originally. To make system work more efficiently, this patch moves the jobs to the soft IRQ (bottom half) to reduce the time in hardware IRQ. Signed-off-by: Jian-Hong Pan ---

Re: cleanup the walk_page_range interface

2019-08-16 Thread Christoph Hellwig
On Thu, Aug 08, 2019 at 10:50:37AM -0700, Linus Torvalds wrote: > On Thu, Aug 8, 2019 at 8:42 AM Christoph Hellwig wrote: > > > > this series is based on a patch from Linus to split the callbacks > > passed to walk_page_range and walk_page_vma into a separate structure > > that can be marked

Re: [PATCH v5 02/15] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2019-08-16 Thread Code Kipper
On Wed, 14 Aug 2019 at 13:08, Maxime Ripard wrote: > > Hi, > > On Wed, Aug 14, 2019 at 08:08:41AM +0200, codekip...@gmail.com wrote: > > From: Marcus Cooper > > > > Codecs without a control connection such as i2s based HDMI audio and > > the Pine64 DAC require a different amount of bit clocks

I need your prompt response

2019-08-16 Thread Godwin Pete
My good friend, I just want to know if you, can help me, to transfer the amount of ($6Million). After the transfer we have to share it, 50% for me, and 50% for you. Please let me know if you can help me for more information regarding the transfer. I hope you can work with me honestly? Thanks.

[PATCH] dmaengine: ti: Fix a memory leak bug

2019-08-16 Thread Wenwen Wang
In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then of_property_read_u32_array() is invoked to search for the property. However, if this process fails, 'rsv_events' is not deallocated, leading to a memory leak bug. To fix this issue, free 'rsv_events' before returning the

Re: [PATCH v5 02/15] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2019-08-16 Thread Code Kipper
On Wed, 14 Aug 2019 at 11:30, Mark Brown wrote: > > On Wed, Aug 14, 2019 at 08:08:41AM +0200, codekip...@gmail.com wrote: > > From: Marcus Cooper > > > > Codecs without a control connection such as i2s based HDMI audio and > > the Pine64 DAC require a different amount of bit clocks per frame

Re: [PATCHv6 30/36] selftest/timens: Add Time Namespace test for supported clocks

2019-08-16 Thread Andrei Vagin
On Thu, Aug 15, 2019 at 05:18:21PM -0600, shuah wrote: > Hi Dmitry, > > Thanks for the patch. > > On 8/15/19 10:38 AM, Dmitry Safonov wrote: > > A test to check that all supported clocks work on host and inside > > a new time namespace. Use both ways to get time: through VDSO and > > by entering

Re: [Intel-gfx] [PATCH 2/5] kernel.h: Add non_block_start/end()

2019-08-16 Thread Daniel Vetter
On Fri, Aug 16, 2019 at 3:00 AM Jason Gunthorpe wrote: > On Thu, Aug 15, 2019 at 10:49:31PM +0200, Daniel Vetter wrote: > > On Thu, Aug 15, 2019 at 10:27 PM Jason Gunthorpe wrote: > > > On Thu, Aug 15, 2019 at 10:16:43PM +0200, Daniel Vetter wrote: > > > > So if someone can explain to me how

Re: [PATCH] iio: dac: ad5380: fix incorrect assignment to val

2019-08-16 Thread Ardelean, Alexandru
On Thu, 2019-08-15 at 12:58 +0100, Colin King wrote: > [External] > Reviewed-by: Alexandru Ardelean > From: Colin Ian King > > Currently the pointer val is being incorrectly incremented > instead of the value pointed to by val. Fix this by adding > in the missing * indirection operator. > >

Re: [PATCHv6 01/36] ns: Introduce Time Namespace

2019-08-16 Thread Andrei Vagin
On Thu, Aug 15, 2019 at 07:19:12PM +0200, Thomas Gleixner wrote: > Dmitry, > > On Thu, 15 Aug 2019, Dmitry Safonov wrote: > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 420567d1519a..97b7737f5aba 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -12898,6 +12898,8 @@ T: git > >

Re: [PATCH v4 11/14] net: phy: adin: implement Energy Detect Powerdown mode

2019-08-16 Thread Ardelean, Alexandru
On Wed, 2019-08-14 at 10:57 -0700, Florian Fainelli wrote: > [External] > > > > On 8/12/2019 4:23 AM, Alexandru Ardelean wrote: > > The ADIN PHYs support Energy Detect Powerdown mode, which puts the PHY into > > a low power mode when there is no signal on the wire (typically cable > >

RE: [PATCH 1/3] bus: fsl-mc: remove explicit device_link_del

2019-08-16 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang > Sent: Friday, August 16, 2019 2:13 AM > To: Ioana Ciornei > Cc: Laurentiu Tudor ; Roy Pledge > ; lkml > Subject: Re: [PATCH 1/3] bus: fsl-mc: remove explicit device_link_del > Importance: High > > On Wed, Jul 3, 2019 at 9:58 AM Ioana

Re: linux-next: manual merge of the net-next tree with the kbuild tree

2019-08-16 Thread Stephen Rothwell
Hi Andrii, On Thu, 15 Aug 2019 22:21:29 -0700 Andrii Nakryiko wrote: > > Thanks, Stephen! Looks good except one minor issue below. Thanks for checking. > > vmlinux_link() > > { > > + info LD ${2} > > This needs to be ${1}. At least its only an information message and doesn't

<    4   5   6   7   8   9