Re: linux-next: Fixes tag needs some work in the nand tree

2019-07-25 Thread Miquel Raynal
Hi Stephen, Stephen Rothwell wrote on Thu, 25 Jul 2019 21:07:24 +1000: > Hi all, > > In commit > > 0ade3f0f5877 ("mtd: rawnand: stm32_fmc2: avoid warnings when building with > W=1 option") > > Fixes tag > > Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash > >

Re: [PATCH -next] mfd: rk808: Mark rk8xx_resume and rk8xx_suspend as __maybe_unused

2019-07-25 Thread Lee Jones
On Thu, 11 Jul 2019, YueHaibing wrote: > Fix build warning: > > drivers/mfd/rk808.c:752:12: warning: 'rk8xx_resume' defined but not used > [-Wunused-function] > drivers/mfd/rk808.c:732:12: warning: 'rk8xx_suspend' defined but not used > [-Wunused-function] > > The function is declared

[PATCH] test_meminit: use GFP_ATOMIC in RCU critical section

2019-07-25 Thread Alexander Potapenko
kmalloc() shouldn't sleep while in RCU critical section, therefore use GFP_ATOMIC instead of GFP_KERNEL. The bug has been spotted by the 0day kernel testing robot. Fixes: 7e659650cbda ("lib: introduce test_meminit module") Signed-off-by: Alexander Potapenko Cc: Kees Cook Cc: Andrew Morton Cc:

Re: [PATCH] mfd: max77620: Add of_node_put() before return

2019-07-25 Thread Lee Jones
On Tue, 09 Jul 2019, Nishka Dasgupta wrote: > Each iteration of for_each_child_of_node puts the previous node, but in > the case of a return from the middle of the loop, there is no put, thus > causing a memory leak. Hence add an of_node_put before the return. > Issue found with Coccinelle. > >

[PATCH v2 1/2] dt-bindings: arm: imx: add imx8mq nitrogen support

2019-07-25 Thread Dafna Hirschfeld
From: Gary Bisson i.MX 8Quad is a quad (4x) Cortex-A53 processor with powerful graphic and multimedia features. This patch adds Nitrogen8M board support. Signed-off-by: Gary Bisson Signed-off-by: Troy Kisky [Dafna: porting vendor's code to mainline] Signed-off-by: Dafna Hirschfeld ---

[PATCH] infiniband: hw: cxgb3: Fix a possible null-pointer dereference in connect_reply_upcall()

2019-07-25 Thread Jia-Ju Bai
In connect_reply_upcall(), there is an if statement on line 730 to check whether ep->com.cm_id is NULL: if (ep->com.cm_id) When ep->com.cm_id is NULL, it is used on line 736: ep->com.cm_id->rem_ref(ep->com.cm_id); Thus, a possible null-pointer dereference may occur. To fix this bug,

[PATCH v2 2/2] arm64: dts: imx: Add i.mx8mq nitrogen8m basic dts support

2019-07-25 Thread Dafna Hirschfeld
From: Gary Bisson Add basic dts support for i.MX8MQ NITROGEN8M. Signed-off-by: Gary Bisson Signed-off-by: Troy Kisky [Dafna: porting vendor's code to mainline] Signed-off-by: Dafna Hirschfeld --- arch/arm64/boot/dts/freescale/Makefile| 1 +

Re: [PATCH 1/2 v9] serial: mctrl_gpio: Check if GPIO property exisits before requesting it

2019-07-25 Thread Uwe Kleine-König
Hello, On Thu, Jun 20, 2019 at 08:24:19AM +0200, Stefan Roese wrote: > This patch adds a check for the GPIOs property existence, before the > GPIO is requested. This fixes an issue seen when the 8250 mctrl_gpio > support is added (2nd patch in this patch series) on x86 platforms using > ACPI. >

[PATCH] Bluetooth: hci_uart: check for missing tty operations in protocol handlers

2019-07-25 Thread Vladis Dronov
Certain ttys operations (pty_unix98_ops) lack tiocmget() and tiocmset() functions which are called by the certain HCI UART protocols (hci_ath, hci_bcm, hci_intel, hci_mrvl, hci_qca) via hci_uart_set_flow_control() or directly. This leads to an execution at NULL and can be triggered by an

Re: [PATCH v2 0/5] mm / virtio: Provide support for page hinting

2019-07-25 Thread Nitesh Narayan Lal
On 7/24/19 5:00 PM, Alexander Duyck wrote: > On Wed, 2019-07-24 at 16:38 -0400, Nitesh Narayan Lal wrote: >> On 7/24/19 4:27 PM, Alexander Duyck wrote: >>> On Wed, 2019-07-24 at 14:40 -0400, Nitesh Narayan Lal wrote: On 7/24/19 12:54 PM, Alexander Duyck wrote: > This series provides an

Re: [PATCH] mfd: intel-lpss: Remove D3cold delay

2019-07-25 Thread Lee Jones
On Tue, 09 Jul 2019, Andy Shevchenko wrote: > On Fri, Jul 05, 2019 at 12:55:03PM +0800, Kai-Heng Feng wrote: > > Goodix touchpad may drop its first couple input events when > > i2c-designware-platdrv and intel-lpss it connects to took too long to > > runtime resume from runtime suspended state. >

[PATCH stable-5.2 3/3] Revert "kvm: x86: Use task structs fpu field for user"

2019-07-25 Thread Vitaly Kuznetsov
From: Paolo Bonzini [ Upstream commit ec269475cba7bcdd1eb8fdf8e87f4c6c81a376fe ] This reverts commit 240c35a3783ab9b3a0afaba0dde7291295680a6b ("kvm: x86: Use task structs fpu field for user", 2018-11-06). The commit is broken and causes QEMU's FPU state to be destroyed when KVM_RUN is

[PATCH stable-5.2 0/3] KVM: x86: FPU and nested VMX guest reset fixes

2019-07-25 Thread Vitaly Kuznetsov
Few patches were recently marked for stable@ but commits are not backportable as-is and require a few tweaks. Here is 5.2 stable backport. [PATCHes 2/3 of the series apply as-is, I have them here for completeness] Jan Kiszka (1): KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving

[PATCH stable-5.2 1/3] KVM: nVMX: do not use dangling shadow VMCS after guest reset

2019-07-25 Thread Vitaly Kuznetsov
From: Paolo Bonzini [ Upstream commit 88dddc11a8d6b09201b4db9d255b3394d9bc9e57 ] If a KVM guest is reset while running a nested guest, free_nested will disable the shadow VMCS execution control in the vmcs01. However, on the next KVM_RUN vmx_vcpu_run would nevertheless try to sync the VMCS12

[PATCH stable-5.2 2/3] KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested

2019-07-25 Thread Vitaly Kuznetsov
From: Jan Kiszka [ Upstream commit cf64527bb33f6cec2ed50f89182fc4688d0056b6 ] Letting this pend may cause nested_get_vmcs12_pages to run against an invalid state, corrupting the effective vmcs of L1. This was triggerable in QEMU after a guest corruption in L2, followed by a L1 reset.

Re: [PATCH] mfd: rk808: mark pm functions __maybe_unused

2019-07-25 Thread Lee Jones
On Mon, 08 Jul 2019, Arnd Bergmann wrote: > The newly added suspend/resume functions are only used if CONFIG_PM > is enabled: > > drivers/mfd/rk808.c:752:12: error: 'rk8xx_resume' defined but not used > [-Werror=unused-function] > drivers/mfd/rk808.c:732:12: error: 'rk8xx_suspend' defined but

Re: [PATCH v2 QEMU] virtio-balloon: Provide a interface for "bubble hinting"

2019-07-25 Thread Nitesh Narayan Lal
On 7/24/19 4:18 PM, Alexander Duyck wrote: > On Wed, 2019-07-24 at 15:02 -0400, Michael S. Tsirkin wrote: >> On Wed, Jul 24, 2019 at 10:12:10AM -0700, Alexander Duyck wrote: >>> From: Alexander Duyck >>> >>> Add support for what I am referring to as "bubble hinting". Basically the >>> idea is

Re: [PATCH v2 4/5] mm: Introduce Hinted pages

2019-07-25 Thread David Hildenbrand
On 25.07.19 13:46, Nitesh Narayan Lal wrote: > > On 7/25/19 4:53 AM, David Hildenbrand wrote: >> On 24.07.19 19:03, Alexander Duyck wrote: >>> From: Alexander Duyck >>> >>> In order to pave the way for free page hinting in virtualized environments >>> we will need a way to get pages out of the

Re: [PATCH] ext4: Fix deadlock on page reclaim

2019-07-25 Thread Christoph Hellwig
On Thu, Jul 25, 2019 at 06:33:58PM +0900, Damien Le Moal wrote: > + gfp_t gfp_mask; > + > switch (ext4_inode_journal_mode(inode)) { > case EXT4_INODE_ORDERED_DATA_MODE: > case EXT4_INODE_WRITEBACK_DATA_MODE: > @@ -4019,6 +4019,14 @@ void ext4_set_aops(struct inode *inode) >

Re: [PATCH 1/1] locks: Fix procfs output for file leases

2019-07-25 Thread Jeff Layton
On Wed, 2019-07-24 at 20:16 +0300, Pavel Begunkov (Silence) wrote: > From: Pavel Begunkov > > Since commit 778fc546f749c588aa2f ("locks: fix tracking of inprogress > lease breaks"), leases break don't change @fl_type but modifies > @fl_flags. However, procfs's part haven't been updated. > >

Re: [PATCH 4/5] pidfd: add CLONE_WAIT_PID

2019-07-25 Thread Christian Brauner
On Thu, Jul 25, 2019 at 01:25:03PM +0200, Oleg Nesterov wrote: > On 07/25, Christian Brauner wrote: > > > > On Thu, Jul 25, 2019 at 12:35:44PM +0200, Oleg Nesterov wrote: > > > > > > I have to admit this feature looks a bit exotic to me... > > > > It might look like it from the kernels perspective

Re: [PATCH 14/14] PCI/P2PDMA: Introduce pci_p2pdma_[un]map_resource()

2019-07-25 Thread Christoph Hellwig
On Wed, Jul 24, 2019 at 10:06:22AM -0600, Logan Gunthorpe wrote: > Yes. This is the downside of dealing only with a phys_addr_t: we have to > look up against it. Unfortunately, I believe it's possible for different > BARs on a device to be in different windows, so something like this is >

Re: [PATCH] staging: media: hantro: Remove call to memset after dma_alloc_coherent

2019-07-25 Thread Boris Brezillon
On Thu, 25 Jul 2019 08:36:02 +0530 Hariprasad Kelam wrote: > fix below issue reported by coccicheck > /drivers/staging/media/hantro/hantro_vp8.c:149:16-34: WARNING: > dma_alloc_coherent use in aux_buf -> cpu already zeroes out memory, so > memset is not needed > > Signed-off-by: Hariprasad

[PATCH stable-5.1 1/3] KVM: nVMX: do not use dangling shadow VMCS after guest reset

2019-07-25 Thread Vitaly Kuznetsov
From: Paolo Bonzini [ Upstream commit 88dddc11a8d6b09201b4db9d255b3394d9bc9e57 ] If a KVM guest is reset while running a nested guest, free_nested will disable the shadow VMCS execution control in the vmcs01. However, on the next KVM_RUN vmx_vcpu_run would nevertheless try to sync the VMCS12

[PATCH stable-5.1 0/3] KVM: x86: FPU and nested VMX guest reset fixes

2019-07-25 Thread Vitaly Kuznetsov
Few patches were recently marked for stable@ but commits are not backportable as-is and require a few tweaks. Here is 5.1 stable backport. [PATCH2 of the series applies as-is, I have it here for completeness] Jan Kiszka (1): KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested

[PATCH stable-5.1 2/3] KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested

2019-07-25 Thread Vitaly Kuznetsov
From: Jan Kiszka [ Upstream commit cf64527bb33f6cec2ed50f89182fc4688d0056b6 ] Letting this pend may cause nested_get_vmcs12_pages to run against an invalid state, corrupting the effective vmcs of L1. This was triggerable in QEMU after a guest corruption in L2, followed by a L1 reset.

[PATCH stable-5.1 3/3] Revert "kvm: x86: Use task structs fpu field for user"

2019-07-25 Thread Vitaly Kuznetsov
From: Paolo Bonzini [ Upstream commit ec269475cba7bcdd1eb8fdf8e87f4c6c81a376fe ] This reverts commit 240c35a3783ab9b3a0afaba0dde7291295680a6b ("kvm: x86: Use task structs fpu field for user", 2018-11-06). The commit is broken and causes QEMU's FPU state to be destroyed when KVM_RUN is

Re: [PATCH v3 5/7] mfd: ioc3: Add driver for SGI IOC3 chip

2019-07-25 Thread Lee Jones
On Thu, 13 Jun 2019, Thomas Bogendoerfer wrote: > SGI IOC3 chip has integrated ethernet, keyboard and mouse interface. > It also supports connecting a SuperIO chip for serial and parallel > interfaces. IOC3 is used inside various SGI systemboards and add-on > cards with different equipped

Re: [PATCH v2 4/5] mm: Introduce Hinted pages

2019-07-25 Thread Nitesh Narayan Lal
On 7/25/19 4:53 AM, David Hildenbrand wrote: > On 24.07.19 19:03, Alexander Duyck wrote: >> From: Alexander Duyck >> >> In order to pave the way for free page hinting in virtualized environments >> we will need a way to get pages out of the free lists and identify those >> pages after they have

Re: [PATCH 4/5] pidfd: add CLONE_WAIT_PID

2019-07-25 Thread Oleg Nesterov
Or. We can change wait_consider_task() to not clear ->notask_error if WXXX and the child is PF_WAIT_PID. This way you can "safely" use wait() without WNOHANG, it won't block if all the children which can report an even are PF_WAIT_PID. But I do not understand your use-cases, I have no idea if

Re: [PATCH v2 1/2] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-07-25 Thread Tudor.Ambarus
On 07/25/2019 02:19 PM, tudor.amba...@microchip.com wrote: > static int spi_nor_spimem_xfer_reg(struct spi_nor *nor, struct spi_mem_op *op) > { > if (!op || (op->data.nbytes && !nor->cmd_buf)) !nor->cmd_buf can't be NULL, we can get rid of this check too, and use spi_mem_exec_op()

Re: kernel BUG at mm/swap_state.c:170!

2019-07-25 Thread Matthew Wilcox
On Tue, Jul 23, 2019 at 01:08:42PM +0800, Huang, Ying wrote: > @@ -2489,6 +2491,14 @@ static void __split_huge_page(struct page *page, > struct list_head *list, > /* complete memcg works before add pages to LRU */ > mem_cgroup_split_huge_fixup(head); > > + if (PageAnon(head) &&

Re: [PATCH v5 02/10] iommu/vt-d: Use per-device dma_ops

2019-07-25 Thread Christoph Hellwig
On Thu, Jul 25, 2019 at 03:18:03PM +0800, Lu Baolu wrote: >> Don't we need to keep this bit so that we still allow the IOMMU >> to act if the device has a too small DMA mask to address all memory in >> the system, even if if it should otherwise be identity mapped? >> > > This checking happens only

Re: [PATCH v12 3/6] sched/core: uclamp: Propagate system defaults to root group

2019-07-25 Thread Michal Koutný
On Thu, Jul 18, 2019 at 07:17:45PM +0100, Patrick Bellasi wrote: > The clamp values are not tunable at the level of the root task group. > That's for two main reasons: > > - the root group represents "system resources" which are always >entirely available from the cgroup standpoint. > >

Re: [PATCH v12 1/6] sched/core: uclamp: Extend CPU's cgroup controller

2019-07-25 Thread Michal Koutný
On Thu, Jul 18, 2019 at 07:17:43PM +0100, Patrick Bellasi wrote: > +static ssize_t cpu_uclamp_min_write(struct kernfs_open_file *of, > + char *buf, size_t nbytes, > + loff_t off) > +{ > [...] > +static ssize_t

Re: [PATCH v3 3/3] media: stm32-dcmi: add support of several sub-devices

2019-07-25 Thread Hans Verkuil
On 7/2/19 5:52 PM, Hugues Fruchet wrote: > Add support of several sub-devices within pipeline instead > of a single one. > This allows to support a CSI-2 camera sensor connected > through a CSI-2 to parallel bridge. > > Signed-off-by: Hugues Fruchet > --- >

Re: [PATCH net-next 3/3] net: stmmac: Introducing support for Page Pool

2019-07-25 Thread Ilias Apalodimas
Hi Jon, Jose, On Thu, Jul 25, 2019 at 10:45:46AM +0100, Jon Hunter wrote: > > On 25/07/2019 08:44, Jose Abreu wrote: > > ... > > > OK. Can you please test what Ilias mentioned ? > > > > Basically you can hard-code the order to 0 in > > alloc_dma_rx_desc_resources(): > > - pp_params.order =

[PATCH 1/2] ARM: dts: stm32: remove OV5640 pinctrl definition on stm32mp157c-ev1

2019-07-25 Thread Amelie Delaunay
From: Alexandre Torgue "push-pull" configuration is now fully handled by the gpiolib and the STMFX pinctrl driver. There is no longer need to declare a pinctrl group to only configure "push-pull" setting for the line. It is done directly by the gpiolib. Signed-off-by: Alexandre Torgue

[PATCH 0/2] STMFX GPIO consumers update

2019-07-25 Thread Amelie Delaunay
This series depends on a STMFX pinctrl driver update (https://lkml.org/lkml/2019/7/25/536). Now, STMFX GPIO consumers can use standard GPIO bindings. Alexandre Torgue (2): ARM: dts: stm32: remove OV5640 pinctrl definition on stm32mp157c-ev1 ARM: dts: stm32: change pinctrl definition for

[PATCH 2/2] ARM: dts: stm32: change pinctrl definition for joystick pins on stm32mp157c-ev1

2019-07-25 Thread Amelie Delaunay
From: Alexandre Torgue Pins used for joystick are all configured as input. "Push-pull" is not a valid setting for an input. Signed-off-by: Alexandre Torgue Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32mp157c-ev1.dts | 1 - 1 file changed, 1 deletion(-) diff --git

Re: [PATCH v2 QEMU] virtio-balloon: Provide a interface for "bubble hinting"

2019-07-25 Thread Nitesh Narayan Lal
On 7/24/19 6:03 PM, Alexander Duyck wrote: > On Wed, 2019-07-24 at 17:38 -0400, Michael S. Tsirkin wrote: >> On Wed, Jul 24, 2019 at 10:12:10AM -0700, Alexander Duyck wrote: >>> From: Alexander Duyck >>> >>> Add support for what I am referring to as "bubble hinting". Basically the >>> idea is

Re: [PATCH 5.2 000/413] 5.2.3-stable review

2019-07-25 Thread Greg Kroah-Hartman
On Thu, Jul 25, 2019 at 01:16:19PM +0200, Anders Roxell wrote: > On Wed, 24 Jul 2019 at 21:25, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.2.3 release. > > There are 413 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-07-25 Thread Julia Lawall
On Thu, 25 Jul 2019, Markus Elfring wrote: > > New version. I check for non-use of the return value of strlcpy and > > address some issues that affected the matching of the case where the first > > argument involves a pointer dereference. > > I suggest to take another look at corresponding

[RFC PATCH] rtc: add a schedule point in 'rtc_timer_do_work'

2019-07-25 Thread Xiongfeng Wang
When I ran the syzkaller testsuite, it prints out the following calltrace. [ 138.350029] rcu: INFO: rcu_sched self-detected stall on CPU [ 138.354703] rcu: 2-: (104998 ticks this GP) idle=ece/1/0x4002 softirq=2825/2825 fqs=26250 [ 138.357771] (t=105005 jiffies g=8033 q=1)

Re: [PATCH v4 7/8] dt-bindings: arm: sunxi: add binding for Lichee Zero Plus core board

2019-07-25 Thread Maxime Ripard
On Wed, Jul 24, 2019 at 09:09:01PM +0800, Icenowy Zheng wrote: > 在 2019-07-23 03:29,Maxime Ripard 写道: > > On Sat, Jul 20, 2019 at 07:39:08PM +0800, Icenowy Zheng wrote: > > > > > > > > > 于 2019年7月20日 GMT+08:00 下午6:13:18, Maxime Ripard > > > 写到: > > > >On Sat, Jul 13, 2019 at 11:46:33AM +0800,

Re: [PATCH] counter/ftm-quaddec: Use device-managed registration API

2019-07-25 Thread Patrick Havelange
Hello, Comments inline On Thu, Jul 25, 2019 at 10:55 AM Chuhong Yuan wrote: > > Make use of devm_counter_register. > Then we can remove redundant unregistration API > usage to make code simpler. > > Signed-off-by: Chuhong Yuan > --- > drivers/counter/ftm-quaddec.c | 4 +--- > 1 file changed,

Re: [BUG] n_gsm: possible recursive locking detected

2019-07-25 Thread Greg Kroah-Hartman
On Wed, Jul 17, 2019 at 11:40:02AM +0200, Martin Hundebøll wrote: > Hi, > > The GSM0710 line discipline driver triggers a lockdep warning when disabling > the ldisc while holding a multiplexed virtual tty open: > > > WARNING: possible recursive

[PATCH][next] can: kvaser_pciefd: remove redundant negative check on trigger

2019-07-25 Thread Colin King
From: Colin Ian King The check to see if trigger is less than zero is always false, trigger is always in the range 0..255. Hence the check is redundant and can be removed. Addresses-Coverity: ("Logically dead code") Signed-off-by: Colin Ian King --- drivers/net/can/kvaser_pciefd.c | 3 --- 1

Re: [PATCH 4/5] pidfd: add CLONE_WAIT_PID

2019-07-25 Thread Oleg Nesterov
On 07/25, Christian Brauner wrote: > > On Thu, Jul 25, 2019 at 12:35:44PM +0200, Oleg Nesterov wrote: > > > > I have to admit this feature looks a bit exotic to me... > > It might look like it from the kernels perspective but from the feedback > on this when presenting on this userspace has real

Re: [PATCH stable-4.19 0/2] KVM: nVMX: guest reset fixes

2019-07-25 Thread Paolo Bonzini
On 25/07/19 12:46, Vitaly Kuznetsov wrote: > Few patches were recently marked for stable@ but commits are not > backportable as-is and require a few tweaks. Here is 4.19 stable backport. > > Jan Kiszka (1): > KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested > > Paolo

Re: [PATCH 1/2] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-07-25 Thread Ulf Hansson
On Thu, 25 Jul 2019 at 13:15, Michael K. Johnson wrote: > > (Working around Ben's SMTP server noise, responding on his behalf...) > > On Wed, Jul 24, 2019 at 09:19:30AM +0200, Ulf Hansson wrote: > > This looks like it could be changed to an usleep_range(), perhaps an > > additional change on top?

[PATCH net-next v2 4/4] arm64: dts: fsl: ls1028a: Enable eth port1 on the ls1028a QDS board

2019-07-25 Thread Claudiu Manoil
LS1028a has one Ethernet management interface. On the QDS board, the MDIO signals are multiplexed to either on-board AR8035 PHY device or to 4 PCIe slots allowing for SGMII cards. To enable the Ethernet ENETC Port 1, which can only be connected to a RGMII PHY, the multiplexer needs to be

[PATCH net-next v2 1/4] enetc: Clean up local mdio bus allocation

2019-07-25 Thread Claudiu Manoil
What's needed is basically a pointer to the mdio registers. This is one way to store it inside bus->priv allocated space, without upsetting sparse. Reworked accessor design as requested by Andrew Lunn in the process. Used devm_* variant to further clean up the init error / remove paths. Fixes

[PATCH net-next v2 2/4] enetc: Add mdio bus driver for the PCIe MDIO endpoint

2019-07-25 Thread Claudiu Manoil
ENETC ports can manage the MDIO bus via local register interface. However there's also a centralized way to manage the MDIO bus, via the MDIO PCIe endpoint device integrated by the same root complex that also integrates the ENETC ports (eth controllers). Depending on board design and use case,

[PATCH net-next v2 3/4] dt-bindings: net: fsl: enetc: Add bindings for the central MDIO PCIe endpoint

2019-07-25 Thread Claudiu Manoil
The on-chip PCIe root complex that integrates the ENETC ethernet controllers also integrates a PCIe enpoint for the MDIO controller provinding for cetralized control of the ENETC mdio bus. Add bindings for this "central" MDIO Integrated PCIe Endpoit. Signed-off-by: Claudiu Manoil --- v1 - none

[PATCH net-next v2 0/4] enetc: Add mdio bus driver for the PCIe MDIO endpoint

2019-07-25 Thread Claudiu Manoil
Second patch just registers the PCIe endpoint device containing the MDIO registers as a standalone MDIO bus driver, to allow an alternative way to control the MDIO bus. The same code used by the ENETC ports (eth controllers) to manage MDIO via local registers applies and is reused. Bindings are

Re: [PATCH v2 1/2] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-07-25 Thread Tudor.Ambarus
All, I want this in 5.4, please review/test the soonest. On 07/20/2019 11:00 AM, Vignesh Raghavendra wrote: > diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c > index 03cc788511d5..f428a6d4022b 100644 > --- a/drivers/mtd/spi-nor/spi-nor.c > +++

Re: [PATCH v4] staging: kpc2000: Convert put_page to put_user_page*()

2019-07-25 Thread Bharath Vedartham
On Thu, Jul 25, 2019 at 09:46:34AM +0200, Greg KH wrote: > On Sat, Jul 20, 2019 at 11:02:14PM +0530, Bharath Vedartham wrote: > > For pages that were retained via get_user_pages*(), release those pages > > via the new put_user_page*() routines, instead of via put_page(). > > > > This is part a

Re: [PATCH] kbuild: detect missing "WITH Linux-syscall-note" for uapi headers

2019-07-25 Thread Masahiro Yamada
On Thu, Jul 25, 2019 at 8:13 PM Greg KH wrote: > > On Thu, Jul 25, 2019 at 05:05:13PM +0900, Masahiro Yamada wrote: > > UAPI headers licensed under GPL are supposed to have exception > > "WITH Linux-syscall-note" so that they can be included into non-GPL > > user space application code. > > > >

linux-next: stats (Was: Linux 5.3-rc1)

2019-07-25 Thread Stephen Rothwell
Hi all, As usual, the executive friendly graph is at http://neuling.org/linux-next-size.html :-) (No merge commits counted, next-20190709 was the first linux-next after the merge window opened.) Commits in v5.3-rc1 (relative to v5.2):12608 Commits in next-20190709:

[PATCH] pinctrl: stmfx: update pinconf settings

2019-07-25 Thread Amelie Delaunay
From: Alexandre Torgue According to the following tab (coming from STMFX datasheet), updates have to done in stmfx_pinconf_set function: -"type" has to be set when "bias" is configured as "pull-up or pull-down" -PIN_CONFIG_DRIVE_PUSH_PULL should only be used when gpio is configured as output.

Re: [PATCH 5.2 000/413] 5.2.3-stable review

2019-07-25 Thread Anders Roxell
On Wed, 24 Jul 2019 at 21:25, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.3 release. > There are 413 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. > >

Re: [PATCH v3 0/4] backlight: Expose brightness curve type through sysfs

2019-07-25 Thread Lee Jones
On Mon, 22 Jul 2019, Matthias Kaehlcke wrote: > On Tue, Jul 09, 2019 at 12:00:03PM -0700, Matthias Kaehlcke wrote: > > Backlight brightness curves can have different shapes. The two main > > types are linear and non-linear curves. The human eye doesn't > > perceive linearly increasing/decreasing

Re: [PATCH v2 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-07-25 Thread Dmitry Osipenko
25.07.2019 12:36, Peter De Schrijver пишет: > On Tue, Jul 23, 2019 at 05:35:10AM +0300, Dmitry Osipenko wrote: >> The PCLK clock is running off SCLK, which is a critical clock that is >> very unlikely to randomly change its rate. It's also a bit clumsy (and >> apparently incorrect) to query the

Re: [PATCH 1/2] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-07-25 Thread Michael K. Johnson
(Working around Ben's SMTP server noise, responding on his behalf...) On Wed, Jul 24, 2019 at 09:19:30AM +0200, Ulf Hansson wrote: > This looks like it could be changed to an usleep_range(), perhaps an > additional change on top? ... > Ditto. In both cases yes, changed. > > + mdelay(1); >

Re: [PATCH] qlge: Fix build error without CONFIG_ETHERNET

2019-07-25 Thread Greg KH
On Wed, Jul 24, 2019 at 02:12:28PM -0700, David Miller wrote: > From: David Miller > Date: Wed, 24 Jul 2019 14:12:02 -0700 (PDT) > > > From: YueHaibing > > Date: Wed, 24 Jul 2019 21:01:26 +0800 > > > >> Now if CONFIG_ETHERNET is not set, QLGE driver > >> building fails: > >> > >>

Re: [PATCH] kbuild: detect missing "WITH Linux-syscall-note" for uapi headers

2019-07-25 Thread Greg KH
On Thu, Jul 25, 2019 at 05:05:13PM +0900, Masahiro Yamada wrote: > UAPI headers licensed under GPL are supposed to have exception > "WITH Linux-syscall-note" so that they can be included into non-GPL > user space application code. > > Unfortunately, people often miss to add it. Break 'make

Re: [PATCH 2/2] dt-bindings: leds: document new "power-supply" property

2019-07-25 Thread Jean-Jacques Hiblot
Hi Rob, On 24/07/2019 18:47, Rob Herring wrote: On Mon, Jul 08, 2019 at 12:35:47PM +0200, Jean-Jacques Hiblot wrote: Most of the LEDs are powered by a voltage/current regulator. describing in the device-tree makes it possible for the LED core to enable/disable it when needed. Signed-off-by:

[PATCH 3/5] ARM: dts: mmp2: rename the USB PHY node

2019-07-25 Thread Lubomir Rintel
This device is not an OTG phy, it's a regular USB HS phy. Follow the generic node name recommendation, and rename it to "usb-phy". Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi

[PATCH 2/5] ARM: dts: mmp2: fix the SPI nodes

2019-07-25 Thread Lubomir Rintel
The SPI bus has a single address cell and not size cells. Also, dtc thinks the SPI nodes are preferrably called "spi" and it is right to think so. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[PATCH 4/5] ARM: dts: mmp2: add camera interfaces

2019-07-25 Thread Lubomir Rintel
Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index 21432cb9143f7..68b5470773232 100644 --- a/arch/arm/boot/dts/mmp2.dtsi +++

[PATCH 5/5] ARM: dts: mmp2: specify reg-shift for the UARTs

2019-07-25 Thread Lubomir Rintel
This makes the 8250_of driver happy. There are two more drivers in the tree that bind to mrvl,mmp-uart compatibles: pxa and 8250_pxa and neither of them requires the reg-shift property, assuming it's always 2. Signed-off-by: Lubomir Rintel --- Changes since v1: - Updated the subject to fit the

[PATCH 1/5] ARM: dts: mmp2: trivial whitespace fix

2019-07-25 Thread Lubomir Rintel
A missing space before a curly brace. Signed-off-by: Lubomir Rintel --- arch/arm/boot/dts/mmp2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mmp2.dtsi b/arch/arm/boot/dts/mmp2.dtsi index b6f40743e07b0..50b6c38b39cc3 100644 ---

[PATCH RESEND 0/5] ARM: dts: mmp2: devicetree updates

2019-07-25 Thread Lubomir Rintel
Hi, Here's a couple of updates for the MMP2 SoC devicetree files. They're pretty much independent of each other, can be applied in any order. Hopefully I'm sending them the right way. Lubo

linux-next: Fixes tag needs some work in the nand tree

2019-07-25 Thread Stephen Rothwell
Hi all, In commit 0ade3f0f5877 ("mtd: rawnand: stm32_fmc2: avoid warnings when building with W=1 option") Fixes tag Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading

Re: [RFC 00/79] perf tools: Initial libperf separation

2019-07-25 Thread Arnaldo Carvalho de Melo
Em Sun, Jul 21, 2019 at 01:23:47PM +0200, Jiri Olsa escreveu: > hi, > we have long term goal to separate some of the perf functionality > into library. This patchset is initial effort on separating some > of the interface. > > Currently only the basic counting interface is exported, it allows >

Re: [PATCH V6 01/21] irqchip: tegra: Do not disable COP IRQ during suspend

2019-07-25 Thread Dmitry Osipenko
25.07.2019 13:38, Peter De Schrijver пишет: > On Thu, Jul 25, 2019 at 01:33:48PM +0300, Peter De Schrijver wrote: >> On Thu, Jul 25, 2019 at 01:05:13PM +0300, Dmitry Osipenko wrote: >>> 25.07.2019 12:55, Peter De Schrijver пишет: On Mon, Jul 22, 2019 at 12:54:51PM +0300, Dmitry Osipenko

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-07-25 Thread John Covici
the cursor_time option (I think) controls a cursor delay when you do the arrow keys.I think the delimiters are what delimit a word fr speakup, I changed it to space only, so it would work better for me. On Wed, 24 Jul 2019 23:53:52 -0400, Gregory Nowak wrote: > > On Fri, Jul 12, 2019 at

[tip:x86/urgent] x86/speculation/mds: Apply more accurate check on hypervisor platform

2019-07-25 Thread tip-bot for Zhenzhong Duan
Commit-ID: 517c3ba00916383af6411aec99442c307c23f684 Gitweb: https://git.kernel.org/tip/517c3ba00916383af6411aec99442c307c23f684 Author: Zhenzhong Duan AuthorDate: Thu, 25 Jul 2019 10:39:09 +0800 Committer: Thomas Gleixner CommitDate: Thu, 25 Jul 2019 12:51:55 +0200

Re: [HELP REQUESTED from the community] Was: Staging status of speakup

2019-07-25 Thread John Covici
I think the program is genmap, I have it in my init sequence, but I am not sure it does anything at this point. On Thu, 25 Jul 2019 00:04:07 -0400, Chris Brannon wrote: > > Gregory Nowak writes: > > > keymap > > I believe this is the currently active kernel keymap. I'm not sure of > > the

Re: [PATCH v2 23/28] drivers: Introduce driver_find_device_by_of_node() helper

2019-07-25 Thread Lee Jones
On Fri, 14 Jun 2019, Suzuki K Poulose wrote: > Add a wrapper to driver_find_device() to search for a device > by the of_node pointer, reusing the generic match function. > Also convert the existing users to make use of the new helper. > > Cc: Lee Jones > Cc: Thor Thayer > Cc: Greg

Re: [PATCH v2 02/28] mfd: Remove unused helper syscon_regmap_lookup_by_pdevname

2019-07-25 Thread Lee Jones
On Fri, 14 Jun 2019, Suzuki K Poulose wrote: > Nobody uses the exported helper syscon_regmap_lookup_by_pdevname, > to lookup a device by name. Let us remove it. > > Suggested-by: Arnd Bergman > Cc: Arnd Bergman > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Signed-off-by: Suzuki K

[PATCH stable-4.19 0/2] KVM: nVMX: guest reset fixes

2019-07-25 Thread Vitaly Kuznetsov
Few patches were recently marked for stable@ but commits are not backportable as-is and require a few tweaks. Here is 4.19 stable backport. Jan Kiszka (1): KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested Paolo Bonzini (1): KVM: nVMX: do not use dangling shadow VMCS

[PATCH stable-4.19 2/2] KVM: nVMX: Clear pending KVM_REQ_GET_VMCS12_PAGES when leaving nested

2019-07-25 Thread Vitaly Kuznetsov
From: Jan Kiszka [ Upstream commit cf64527bb33f6cec2ed50f89182fc4688d0056b6 ] Letting this pend may cause nested_get_vmcs12_pages to run against an invalid state, corrupting the effective vmcs of L1. This was triggerable in QEMU after a guest corruption in L2, followed by a L1 reset.

[PATCH stable-4.19 1/2] KVM: nVMX: do not use dangling shadow VMCS after guest reset

2019-07-25 Thread Vitaly Kuznetsov
From: Paolo Bonzini [ Upstream commit 88dddc11a8d6b09201b4db9d255b3394d9bc9e57 ] If a KVM guest is reset while running a nested guest, free_nested will disable the shadow VMCS execution control in the vmcs01. However, on the next KVM_RUN vmx_vcpu_run would nevertheless try to sync the VMCS12

Re: [PATCH 1/2] media: ir-kbd-i2c: prevent potential NULL pointer access

2019-07-25 Thread Sean Young
Hi Wolfram, On Thu, Jul 25, 2019 at 09:55:38AM +0200, Wolfram Sang wrote: > Hi Sean, > > thanks for the review! > > On Thu, Jul 25, 2019 at 06:12:02AM +0100, Sean Young wrote: > > On Mon, Jul 22, 2019 at 07:26:31PM +0200, Wolfram Sang wrote: > > > i2c_new_dummy() can fail returning a NULL

[PATCH v2 13/14] arm64: defconfig: enable CONFIG_QCOM_CPR

2019-07-25 Thread Niklas Cassel
Enable CONFIG_QCOM_CPR. Signed-off-by: Niklas Cassel --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 04b7fb26a942..3e7618818250 100644 --- a/arch/arm64/configs/defconfig +++

[PATCH v2 12/14] arm64: dts: qcom: qcs404: Add CPR and populate OPP table

2019-07-25 Thread Niklas Cassel
Add CPR and populate OPP table. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel --- Changes since V1: -Removed opp-hz from CPR OPP table. arch/arm64/boot/dts/qcom/qcs404.dtsi | 142 +-- 1 file changed, 134

[PATCH v2 09/14] dt-bindings: opp: Add qcom-opp bindings with properties needed for CPR

2019-07-25 Thread Niklas Cassel
Add qcom-opp bindings with properties needed for Core Power Reduction (CPR). CPR is included in a great variety of Qualcomm SoCs, e.g. msm8916 and msm8996. CPR was first introduced in msm8974. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel

[PATCH v2 10/14] dt-bindings: power: avs: Add support for CPR (Core Power Reduction)

2019-07-25 Thread Niklas Cassel
Add DT bindings to describe the CPR HW found on certain Qualcomm SoCs. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge Ramirez-Ortiz Signed-off-by: Niklas Cassel Reviewed-by: Rob Herring --- Changes since V1: -Picked up tags. .../bindings/power/avs/qcom,cpr.txt | 193

[PATCH v2 14/14] arm64: defconfig: enable CONFIG_ARM_QCOM_CPUFREQ_NVMEM

2019-07-25 Thread Niklas Cassel
Enable CONFIG_ARM_QCOM_CPUFREQ_NVMEM. Signed-off-by: Niklas Cassel --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 3e7618818250..9b0cc49f5fe8 100644 --- a/arch/arm64/configs/defconfig +++

[PATCH v2 08/14] cpufreq: Add qcs404 to cpufreq-dt-platdev blacklist

2019-07-25 Thread Niklas Cassel
From: Jorge Ramirez-Ortiz Add qcs404 to cpufreq-dt-platdev blacklist. Signed-off-by: Jorge Ramirez-Ortiz Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 11/14] power: avs: Add support for CPR (Core Power Reduction)

2019-07-25 Thread Niklas Cassel
CPR (Core Power Reduction) is a technology that reduces core power on a CPU or other device. It reads voltage settings in efuse from product test process as initial settings. Each OPP corresponds to a "corner" that has a range of valid voltages for a particular frequency. While the device is

[PATCH v2 07/14] cpufreq: qcom: Add support for qcs404 on nvmem driver

2019-07-25 Thread Niklas Cassel
Add support for qcs404 on nvmem driver. The qcs404 SoC has support for Core Power Reduction (CPR), which is implemented as a power domain provider, therefore add optional support in this driver to attach to a genpd power domain. Co-developed-by: Jorge Ramirez-Ortiz Signed-off-by: Jorge

[PATCH v2 06/14] dt-bindings: cpufreq: qcom-nvmem: Support pstates provided by a power domain

2019-07-25 Thread Niklas Cassel
Some Qualcomm SoCs have support for Core Power Reduction (CPR). On these platforms, we need to attach to the power domain provider providing the performance states, so that the leaky device (the CPU) can configure the performance states (which represent different CPU clock frequencies).

[PATCH v2 05/14] cpufreq: qcom: Refactor the driver to make it easier to extend

2019-07-25 Thread Niklas Cassel
Refactor the driver to make it easier to extend in a later commit. Create a driver struct to collect all common resources, in order to make it easier to free up all common resources. Create a driver match_data struct to make it easier to extend the driver with support for new features that might

[PATCH v2 04/14] dt-bindings: cpufreq: qcom-nvmem: Make speedbin related properties optional

2019-07-25 Thread Niklas Cassel
Not all Qualcomm platforms need to care about the speedbin efuse, nor the value blown into the speedbin efuse. Therefore, make the nvmem-cells and opp-supported-hw properties optional. Signed-off-by: Niklas Cassel Reviewed-by: Ilia Lin Reviewed-by: Rob Herring --- Changes since V1: -Picked up

Re: AMD Drivers

2019-07-25 Thread Gilberto Nunes
Hi there > What about other versions (eg. v4.19) ? > Which is the last working version ? The only series that works properly is 4.15.x > Could you also try 5.3 ? I will, ASAP! >> Oh! By the way, the network card r8169 are work wonderful! >Didn't you say (above) that it does not work ? >Or is

[PATCH v2 03/14] cpufreq: qcom: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2019-07-25 Thread Niklas Cassel
From: Sricharan R The kryo cpufreq driver reads the nvmem cell and uses that data to populate the opps. There are other qcom cpufreq socs like krait which does similar thing. Except for the interpretation of the read data, rest of the driver is same for both the cases. So pull the common things

[PATCH v2 02/14] dt-bindings: cpufreq: Re-organise kryo cpufreq to use it for other nvmem based qcom socs

2019-07-25 Thread Niklas Cassel
From: Sricharan R The kryo cpufreq driver reads the nvmem cell and uses that data to populate the opps. There are other qcom cpufreq socs like krait which does similar thing. Except for the interpretation of the read data, rest of the driver is same for both the cases. So pull the common things

<    4   5   6   7   8   9   10   11   12   >