Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-08-03 Thread Masahiro Yamada
On Sun, Aug 4, 2019 at 3:36 AM Rikard Falkeborn wrote: > > On Sat, Aug 03, 2019 at 12:12:46PM +0900, Masahiro Yamada wrote: > > On Sat, Aug 3, 2019 at 12:03 PM Masahiro Yamada > > wrote: > > > > > > > > BTW, v2 is already inconsistent. > > > If you wanted GENMASK_INPUT_CHECK() to return 'unsigned

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-03 Thread Tao Ren
Hi Vladimir, On 8/3/19 6:49 AM, Vladimir Oltean wrote: > Hi Tao, > > On Sat, 3 Aug 2019 at 00:56, Tao Ren wrote: >> >> genphy_read_status() cannot report correct link speed when BCM54616S PHY >> is configured in RGMII->1000Base-KX mode (for example, on Facebook CMM >> BMC platform), and it is be

Re: [PATCH v2] kconfig: Clear "written" flag to avoid data loss

2019-08-03 Thread Masahiro Yamada
On Sat, Aug 3, 2019 at 7:02 PM M. Vefa Bicakci wrote: > > Prior to this commit, starting nconfig, xconfig or gconfig, and saving > the .config file more than once caused data loss, where a .config file > that contained only comments would be written to disk starting from the > second save operatio

[PATCH] staging: rtl8192u: Add NULL check post kzalloc

2019-08-03 Thread Hariprasad Kelam
Collect returns status of kzalloc. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8192u/r8192U_core.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index fe1f279..3240442

Re: [PATCH] kconfig: ignore auto-generated file

2019-08-03 Thread Masahiro Yamada
On Sun, Aug 4, 2019 at 1:30 AM Matteo Croce wrote: > > On Sun, Jul 28, 2019 at 8:23 PM Matteo Croce wrote: > > > > scripts/kconfig/zconf.hash.c is autogenerated during the build, > > let's add it to the directory .gitignore. > > > > Signed-off-by: Matteo Croce > > > > Sorry, forgot to CC the mai

Re: [PATCH] kernel: ignore auto-generated file

2019-08-03 Thread Masahiro Yamada
On Sun, Aug 4, 2019 at 1:33 AM Matteo Croce wrote: > > On Sun, Jul 28, 2019 at 8:20 PM Matteo Croce wrote: > > > > kernel/config_data.h is autogenerated during the build, let's add it to > > the directory .gitignore. > > > > Signed-off-by: Matteo Croce > > > > CCing people as `scripts/get_mainta

Re: [PATCH v2 1/2] media: ir-kbd-i2c: convert to i2c_new_dummy_device()

2019-08-03 Thread Sean Young
On Sat, Aug 03, 2019 at 01:17:49PM -0300, Mauro Carvalho Chehab wrote: > Em Tue, 30 Jul 2019 19:55:54 +0200 > Wolfram Sang escreveu: > > > Convert this driver to use the new i2c_new_dummy_device() call and bail > > out if the dummy device cannot be registered to make failure more > > visible to t

[Patch v2] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
As kmemdup API does kmalloc + memcpy . We can make use of it instead of calling kmalloc and memcpy independetly. Signed-off-by: Hariprasad Kelam --- v2 - remove the netdev_info() uses for allocation failures drivers/staging/rtl8192e/rtllib_softmac.c | 24 +++- 1 file changed

Re: [PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
On Sat, Aug 03, 2019 at 10:52:04AM -0700, Joe Perches wrote: > On Sat, 2019-08-03 at 23:10 +0530, Hariprasad Kelam wrote: > > As kmemdup API does kmalloc + memcpy . We can make use of it instead of > > calling kmalloc and memcpy independetly. > [] > > diff --git a/drivers/staging/rtl8192e/rtllib_so

Re: [PULL 0/1] xtensa fixes for v5.3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 3 Aug 2019 17:33:17 -0700: > git://github.com/jcmvbkbc/linux-xtensa.git tags/xtensa-20190803 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d8778f13b73f1cde08be0ece18571dee495b92f1 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-03 Thread Mimi Zohar
On Sat, 2019-08-03 at 17:44 +0300, Jarkko Sakkinen wrote: > On Fri, 2019-08-02 at 15:23 -0500, Tyler Hicks wrote: > > That wasn't the conclusion that I came to. I prefer Robert's proposed > > change to trusted.ko. > > > > How do you propose that this be fixed in eCryptfs? > > > > Removing encrypt

Re: [PATCH] arm64: dts: rockchip: Add dts for Leez RK3399 P710 SBC

2019-08-03 Thread Heiko Stuebner
Hi Andy, Am Samstag, 3. August 2019, 13:46:12 CEST schrieb Andy Yan: > Leez P710 is a RK3399 based SBC, designed by Leez team > from lenovo [0]. > > Specification > - Rockchip RK3399 > - 4/2GB LPDDR4 > - TF sd scard slot > - eMMC > - M.2 B-Key for 4G LTE > - AP6256 for WiFi + BT > - Gigabit ether

[PULL 0/1] xtensa fixes for v5.3

2019-08-03 Thread Max Filippov
-20190803 for you to fetch changes up to e3cacb73e626d885b8cf24103fed0ae26518e3c4: xtensa: fix build for cores with coprocessors (2019-07-24 17:44:42 -0700) Xtensa fixes for v5.3: - fix build for xtensa cores with coprocessors that was

[PATCH 1/2] Fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe

2019-08-03 Thread Hui Peng
The `ar_usb` field of `ath6kl_usb_pipe_usb_pipe` objects are initialized to point to the containing `ath6kl_usb` object according to endpoint descriptors read from the device side, as shown below in `ath6kl_usb_setup_pipe_resources`: for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { e

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-03 Thread Jason Gunthorpe
On Sat, Aug 03, 2019 at 05:36:13PM -0400, Michael S. Tsirkin wrote: > On Fri, Aug 02, 2019 at 02:24:18PM -0300, Jason Gunthorpe wrote: > > On Fri, Aug 02, 2019 at 10:27:21AM -0400, Michael S. Tsirkin wrote: > > > On Fri, Aug 02, 2019 at 09:46:13AM -0300, Jason Gunthorpe wrote: > > > > On Fri, Aug 0

Re: [PATCH v7 07/20] clk: tegra: clk-periph: Add save and restore support

2019-08-03 Thread Sowjanya Komatineni
On 8/3/19 10:01 AM, Sowjanya Komatineni wrote: On 8/3/19 3:33 AM, Dmitry Osipenko wrote: 03.08.2019 2:51, Sowjanya Komatineni пишет: On 8/2/19 2:15 PM, Dmitry Osipenko wrote: 02.08.2019 23:32, Sowjanya Komatineni пишет: On 8/2/19 1:17 PM, Dmitry Osipenko wrote: 02.08.2019 23:13, Dmitry Os

Re: [PATCH v6] PM / wakeup: show wakeup sources stats in sysfs

2019-08-03 Thread Tri Vo
On Thu, Aug 1, 2019 at 3:10 PM Rafael J. Wysocki wrote: > > On Thu, Aug 1, 2019 at 11:45 PM Tri Vo wrote: > > > > On Thu, Aug 1, 2019 at 1:23 PM Stephen Boyd wrote: > > > > > > Quoting Tri Vo (2019-08-01 12:50:25) > > > > On Wed, Jul 31, 2019 at 4:45 PM Stephen Boyd > > > > wrote: > > > > > >

Re: [PATCH v3 2/2] mm,thp: Add experimental config option RO_EXEC_FILEMAP_HUGE_FAULT_THP

2019-08-03 Thread William Kucharski
On 8/1/19 6:36 AM, Kirill A. Shutemov wrote: #ifdef CONFIG_TRANSPARENT_HUGEPAGE -#define HPAGE_PMD_SHIFT PMD_SHIFT -#define HPAGE_PMD_SIZE ((1UL) << HPAGE_PMD_SHIFT) -#define HPAGE_PMD_MASK (~(HPAGE_PMD_SIZE - 1)) - -#define HPAGE_PUD_SHIFT PUD_SHIFT -#define HPAGE_PUD_SIZE ((1UL) << HPAGE_

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-03 Thread Michael S. Tsirkin
On Thu, Aug 01, 2019 at 04:06:13AM -0400, Jason Wang wrote: > On 2019/8/1 上午2:29, Michael S. Tsirkin wrote: > > On Wed, Jul 31, 2019 at 04:46:53AM -0400, Jason Wang wrote: > >> We used to use RCU to synchronize MMU notifier with worker. This leads > >> calling synchronize_rcu() in invalidate_range_

Re: [PATCH 4.19 21/32] vhost_net: fix possible infinite loop

2019-08-03 Thread Pavel Machek
Hi! > This makes it possible to trigger a infinite while..continue loop > through the co-opreation of two VMs like: > > 1) Malicious VM1 allocate 1 byte rx buffer and try to slow down the >vhost process as much as possible e.g using indirect descriptors or >other. > 2) Malicious VM2 gener

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-08-03 Thread Michael S. Tsirkin
On Fri, Aug 02, 2019 at 02:24:18PM -0300, Jason Gunthorpe wrote: > On Fri, Aug 02, 2019 at 10:27:21AM -0400, Michael S. Tsirkin wrote: > > On Fri, Aug 02, 2019 at 09:46:13AM -0300, Jason Gunthorpe wrote: > > > On Fri, Aug 02, 2019 at 05:40:07PM +0800, Jason Wang wrote: > > > > > This must be a prop

[PATCH] Fix lines greater than 80 characters

2019-08-03 Thread z3phyr
Fix checkpatch error for "line over 80 characters" Signed-off-by: z3phyr --- drivers/staging/pi433/pi433_if.h | 23 +++ 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 9feb95c431cb..74b6e

Re: [PATCH 4.19 17/32] iommu/vt-d: Dont queue_iova() if there is no flush queue

2019-08-03 Thread Pavel Machek
Hi! > --- a/drivers/iommu/intel-iommu.c > +++ b/drivers/iommu/intel-iommu.c > @@ -3721,7 +3721,7 @@ static void intel_unmap(struct device *d > > freelist = domain_unmap(domain, start_pfn, last_pfn); > > - if (intel_iommu_strict) { > + if (intel_iommu_strict || !has_iova_flush_que

Re: [GIT PULL] xfs: cleanups for 5.3-rc3

2019-08-03 Thread Darrick J. Wong
On Sat, Aug 03, 2019 at 10:46:38AM -0700, Linus Torvalds wrote: > On Sat, Aug 3, 2019 at 9:33 AM Darrick J. Wong wrote: > > > > Here are a couple more bug fixes that trickled in since -rc1. It's > > survived the usual xfstests runs and merges cleanly with this morning's > > master. Please let me

Re: [PATCH 09/20] ext4: Initialize timestamps limits

2019-08-03 Thread Arnd Bergmann
On Sat, Aug 3, 2019 at 6:03 PM Theodore Y. Ts'o wrote: > > On Sat, Aug 03, 2019 at 11:30:22AM +0200, Arnd Bergmann wrote: > > > > I see in the ext4 code that we always try to expand i_extra_size > > to s_want_extra_isize in ext4_mark_inode_dirty(), and that > > s_want_extra_isize is always at leas

Re: [PATCH] cpuidle-haltpoll: Enable kvm guest polling when dedicated physical CPUs are available

2019-08-03 Thread Marcelo Tosatti
On Thu, Aug 01, 2019 at 06:54:49PM +0200, Paolo Bonzini wrote: > On 01/08/19 18:51, Rafael J. Wysocki wrote: > > On 8/1/2019 9:06 AM, Wanpeng Li wrote: > >> From: Wanpeng Li > >> > >> The downside of guest side polling is that polling is performed even > >> with other runnable tasks in the host. H

Re: [PULL REQUEST] i2c for 5.3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 3 Aug 2019 21:02:06 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git > i2c/for-current-fixed has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cf6c8aef16cc0cd15e91a930befd8e312d5703f5 Thank you! -- Deet-doot-dot, I

[PATCH v6 2/3][v4.9.y] infiniband: fix race condition between infiniband mlx4, mlx5 driver and core dumping

2019-08-03 Thread Ajay Kaher
This patch is the extension of following upstream commit to fix the race condition between get_task_mm() and core dumping for IB->mlx4 and IB->mlx5 drivers: commit 04f5866e41fb ("coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping")' Thanks to Jason for pointing t

[PATCH v6 0/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-08-03 Thread Ajay Kaher
coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping [PATCH v5 1/3]: Backporting of commit 04f5866e41fb70690e28397487d8bd8eea7d712a upstream. [PATCH v5 2/3]: Extension of commit 04f5866e41fb to fix the race condition between get_task_mm() and core dumping for IB->m

[PATCH v6 1/3] [v4.9.y] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

2019-08-03 Thread Ajay Kaher
From: Andrea Arcangeli commit 04f5866e41fb70690e28397487d8bd8eea7d712a upstream. The core dumping code has always run without holding the mmap_sem for writing, despite that is the only way to ensure that the entire vma layout will not change from under it. Only using some signal serialization o

[PATCH v6 3/3] [v4.9.y] coredump: fix race condition between collapse_huge_page() and core dumping

2019-08-03 Thread Ajay Kaher
From: Andrea Arcangeli coredump: fix race condition between collapse_huge_page() and core dumping commit 59ea6d06cfa9247b586a695c21f94afa7183af74 upstream. When fixing the race conditions between the coredump and the mmap_sem holders outside the context of the process, we focused on mmget_not_z

Re: [PATCH tip/core/rcu 03/11] rcu/nocb: Provide separate no-CBs grace-period kthreads

2019-08-03 Thread Paul E. McKenney
On Sat, Aug 03, 2019 at 01:41:27PM -0400, Joel Fernandes wrote: > On Thu, Aug 01, 2019 at 03:50:20PM -0700, Paul E. McKenney wrote: > > Currently, there is one no-CBs rcuo kthread per CPU, and these kthreads > > are divided into groups. The first rcuo kthread to come online in a > > given group is

[PULL REQUEST] i2c for 5.3

2019-08-03 Thread Wolfram Sang
Linus, here is a set of drivers fixes for the I2C subsystem. Please pull. Thanks, Wolfram The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux

Re: [PATCH 6/6] arm64: dts: meson-g12b-khadas-vim3: add initial device-tree

2019-08-03 Thread Martin Blumenstingl
On Wed, Jul 31, 2019 at 2:44 PM Neil Armstrong wrote: [...] > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x0 0x0 0x4000>; nit-pick: we typically use the memory size used in the board size with the lowest amount of RAM - 2GiB in this case. so I wou

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-08-03 Thread Rikard Falkeborn
On Sat, Aug 03, 2019 at 12:12:46PM +0900, Masahiro Yamada wrote: > On Sat, Aug 3, 2019 at 12:03 PM Masahiro Yamada > wrote: > > > > > BTW, v2 is already inconsistent. > > If you wanted GENMASK_INPUT_CHECK() to return 'unsigned long',, > > you would have to cast (low) > (high) as well: > > > >

Re: [PATCH v2 2/4] clk: meson: add g12a cpu dynamic divider driver

2019-08-03 Thread Martin Blumenstingl
On Wed, Jul 31, 2019 at 10:41 AM Neil Armstrong wrote: > > Add a clock driver for the cpu dynamic divider, this divider needs > to have a flag set before setting the divider value then removed > while writing the new value to the register. > > This drivers implements this behavior and will be used

Re: [PATCH v2 4/6] arm64: dts: meson: sei510: Add minimal thermal zone

2019-08-03 Thread Martin Blumenstingl
Hi Guillaume, On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque wrote: > > Add minimal thermal zone for DDR and CPU sensor so high DDR (controller?) temperatures will throttle Mali and high PLL temperatures will throttle the CPU? to get things started I'm fine with this, but I think it should be

Re: [PATCH v2 2/6] thermal: amlogic: Add thermal driver to support G12 SoCs

2019-08-03 Thread Martin Blumenstingl
Hi Guillaume, (I still don't have any experience with the thermal framework, so below are some general comments) On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque wrote: I would add a patch description here: " Amlogic G12A and G12B SoCs integrate two thermal sensors with the same design. One is

Re: [GIT pull] perf/urgent for 5.3-rc3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 03 Aug 2019 16:36:53 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > perf-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8b7fd679427c571c34f61d9eafed3562c52424ae Thank you! -- Deet-doot-dot, I

Re: [GIT pull] timers/urgent for 5.3-rc3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 03 Aug 2019 16:36:53 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/0432a0a066b05361b6d4d26522233c3c76c9e5da Thank you! -- Deet-doot-dot,

Re: [GIT pull] irq/urgent for 5.3-rc3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 03 Aug 2019 16:36:53 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/af42e7450f4b174a0a3f7611791ba73109997171 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] xfs: cleanups for 5.3-rc3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 3 Aug 2019 09:33:12 -0700: > git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/xfs-5.3-fixes-1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e12b243de76dcc24a904a48a2efda94fdc4cdf07 Thank you! -- Deet-doot-dot, I am a bot. htt

Re: Possible mem cgroup bug in kernels between 4.18.0 and 5.3-rc1.

2019-08-03 Thread Masoud Sharbiani
> On Aug 3, 2019, at 10:41 AM, Masoud Sharbiani wrote: > > > >> On Aug 3, 2019, at 8:51 AM, Tetsuo Handa >> wrote: >> >> Masoud, will you try this patch? > > Gladly. > It looks like it is working (and OOMing properly). > > >> >> By the way, is /sys/fs/cgroup/memory/leaker/memory.usage

Re: [PATCH v3] net/socket: fix GCC8+ Wpacked-not-aligned warnings

2019-08-03 Thread David Miller
From: Qian Cai Date: Tue, 30 Jul 2019 11:30:33 -0400 > There are a lot of those warnings with GCC8+ 64-bit, ... > This is because the commit 20c9c825b12f ("[SCTP] Fix SCTP socket options > to work with 32-bit apps on 64-bit kernels.") added "packed, aligned(4)" > GCC attributes to some structure

Re: [PATCH] net: sctp: Rename fallthrough label to unhandled

2019-08-03 Thread Joe Perches
On Fri, 2019-08-02 at 16:19 -0700, David Miller wrote: > From: Joe Perches > Date: Fri, 02 Aug 2019 10:47:34 -0700 > > > On Wed, 2019-07-31 at 08:16 -0400, Neil Horman wrote: > >> On Wed, Jul 31, 2019 at 04:32:43AM -0700, Joe Perches wrote: > >> > On Wed, 2019-07-31 at 07:19 -0400, Neil Horman wr

Re: [PATCH v2 3/6] arm64: dts: amlogic: g12: add temperature sensor

2019-08-03 Thread Martin Blumenstingl
Hi Guillaume, On Wed, Jul 31, 2019 at 5:36 PM Guillaume La Roque wrote: > > Add cpu and ddr temperature sensors for G12 Socs > > Signed-off-by: Guillaume La Roque with the nit-pick below addressed: Reviewed-by: Martin Blumenstingl > --- > .../boot/dts/amlogic/meson-g12-common.dtsi| 22 +++

Re: [PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Joe Perches
On Sat, 2019-08-03 at 23:10 +0530, Hariprasad Kelam wrote: > As kmemdup API does kmalloc + memcpy . We can make use of it instead of > calling kmalloc and memcpy independetly. [] > diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c > b/drivers/staging/rtl8192e/rtllib_softmac.c [] > @@ -1382,10

Re: [GIT PULL] xfs: cleanups for 5.3-rc3

2019-08-03 Thread Linus Torvalds
On Sat, Aug 3, 2019 at 9:33 AM Darrick J. Wong wrote: > > Here are a couple more bug fixes that trickled in since -rc1. It's > survived the usual xfstests runs and merges cleanly with this morning's > master. Please let me know if anything strange happens. Hmm. This was tagged, but not signed l

Re: [GIT PULL] RISC-V updates for v5.3-rc3

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Sat, 3 Aug 2019 07:22:25 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv/for-v5.3-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/616725492ec7519643d5638de02a92a28200d03f Thank you! -- Deet-d

Re: [GIT PULL] SELinux fixes for v5.3 (#2)

2019-08-03 Thread pr-tracker-bot
The pull request you sent on Thu, 1 Aug 2019 19:01:52 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git > tags/selinux-pr-20190801 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f1a6ef1df6f952fc9f22f34d51a6c3d3c4fbe23 Thank you! -- Deet-do

Re: Possible mem cgroup bug in kernels between 4.18.0 and 5.3-rc1.

2019-08-03 Thread Masoud Sharbiani
> On Aug 3, 2019, at 8:51 AM, Tetsuo Handa > wrote: > > Masoud, will you try this patch? Gladly. It looks like it is working (and OOMing properly). > > By the way, is /sys/fs/cgroup/memory/leaker/memory.usage_in_bytes remains > non-zero > despite /sys/fs/cgroup/memory/leaker/tasks became

Re: [PATCH tip/core/rcu 03/11] rcu/nocb: Provide separate no-CBs grace-period kthreads

2019-08-03 Thread Joel Fernandes
On Thu, Aug 01, 2019 at 03:50:20PM -0700, Paul E. McKenney wrote: > Currently, there is one no-CBs rcuo kthread per CPU, and these kthreads > are divided into groups. The first rcuo kthread to come online in a > given group is that group's leader, and the leader both waits for grace > periods and

[PATCH] staging: rtl8192e: Make use kmemdup

2019-08-03 Thread Hariprasad Kelam
As kmemdup API does kmalloc + memcpy . We can make use of it instead of calling kmalloc and memcpy independetly. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8192e/rtllib_softmac.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl819

Re: [PATCH 3/5] MIPS: lantiq: add an irq_domain and irq_chip for EBU

2019-08-03 Thread Martin Blumenstingl
Hi Marc, On Sat, Aug 3, 2019 at 11:12 AM Marc Zyngier wrote: > > Hi Martin, > > On Thu, 01 Aug 2019 18:42:42 +0100, > Martin Blumenstingl wrote: > > [...] > > > > > +static void ltq_ebu_irq_handler(struct irq_desc *desc) > > > > +{ > > > > + struct irq_domain *domain = irq_desc_get_handler_d

Re: [PATCH v7 07/20] clk: tegra: clk-periph: Add save and restore support

2019-08-03 Thread Sowjanya Komatineni
On 8/3/19 3:33 AM, Dmitry Osipenko wrote: 03.08.2019 2:51, Sowjanya Komatineni пишет: On 8/2/19 2:15 PM, Dmitry Osipenko wrote: 02.08.2019 23:32, Sowjanya Komatineni пишет: On 8/2/19 1:17 PM, Dmitry Osipenko wrote: 02.08.2019 23:13, Dmitry Osipenko пишет: 02.08.2019 21:33, Sowjanya Komatin

Re: [PATCH net-next] netfilter: conntrack: use shared sysctl constants

2019-08-03 Thread Pablo Neira Ayuso
On Tue, Jul 23, 2019 at 03:23:03AM +0200, Matteo Croce wrote: > Use shared sysctl variables for zero and one constants, as in commit > eec4844fae7c ("proc/sysctl: add shared variables for range check") Applied, thanks.

[GIT pull] perf/urgent for 5.3-rc3

2019-08-03 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus up to: b3c303be4c35: Merge tag 'perf-urgent-for-mingo-5.3-20190729' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgen

[GIT pull] irq/urgent for 5.3-rc3

2019-08-03 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus up to: a5dbba8f443e: Merge tag 'irqchip-fixes-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent A small bu

[GIT pull] timers/urgent for 5.3-rc3

2019-08-03 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus up to: 33a58980ff3c: arm64: compat: vdso: Use legacy syscalls as fallback A series of commits to deal with the regression caused by the gen

Re: [PATCH net-next] netfilter: conntrack: use shared sysctl constants

2019-08-03 Thread Matteo Croce
On Tue, Jul 23, 2019 at 3:23 AM Matteo Croce wrote: > > Use shared sysctl variables for zero and one constants, as in commit > eec4844fae7c ("proc/sysctl: add shared variables for range check") > > Fixes: 8f14c99c7eda ("netfilter: conntrack: limit sysctl setting for boolean > options") > Signed-o

Re: [PATCH] kernel: ignore auto-generated file

2019-08-03 Thread Matteo Croce
On Sun, Jul 28, 2019 at 8:20 PM Matteo Croce wrote: > > kernel/config_data.h is autogenerated during the build, let's add it to > the directory .gitignore. > > Signed-off-by: Matteo Croce > CCing people as `scripts/get_maintainer.pl kernel/.gitignore` suggests -- Matteo Croce per aspera ad ups

[GIT PULL] xfs: cleanups for 5.3-rc3

2019-08-03 Thread Darrick J. Wong
Hi Linus, Here are a couple more bug fixes that trickled in since -rc1. It's survived the usual xfstests runs and merges cleanly with this morning's master. Please let me know if anything strange happens. --D The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux

Re: [PATCH] kconfig: ignore auto-generated file

2019-08-03 Thread Matteo Croce
On Sun, Jul 28, 2019 at 8:23 PM Matteo Croce wrote: > > scripts/kconfig/zconf.hash.c is autogenerated during the build, > let's add it to the directory .gitignore. > > Signed-off-by: Matteo Croce > Sorry, forgot to CC the maintainer and the relevant mailing list -- Matteo Croce per aspera ad u

Re: [PATCH v2 1/2] media: ir-kbd-i2c: convert to i2c_new_dummy_device()

2019-08-03 Thread Mauro Carvalho Chehab
Em Tue, 30 Jul 2019 19:55:54 +0200 Wolfram Sang escreveu: > Convert this driver to use the new i2c_new_dummy_device() call and bail > out if the dummy device cannot be registered to make failure more > visible to the user. > Please don't do that. At first glance, devm_* sounds a good idea, but

Re: [PATCH 2/4] bdi: Add bdi->id

2019-08-03 Thread Matthew Wilcox
On Sat, Aug 03, 2019 at 08:53:49AM -0700, Tejun Heo wrote: > Hey, Matthew. > > On Sat, Aug 03, 2019 at 08:39:08AM -0700, Matthew Wilcox wrote: > > On Sat, Aug 03, 2019 at 07:01:53AM -0700, Tejun Heo wrote: > > > There currently is no way to universally identify and lookup a bdi > > > without holdi

Re: [PATCH] ARM: imx: Drop imx_anatop_init()

2019-08-03 Thread Shawn Guo
On Wed, Jul 31, 2019 at 11:01:31AM -0700, Andrey Smirnov wrote: > With commit b5bbe2235361 ("usb: phy: mxs: Disable external charger > detect in mxs_phy_hw_init()") in tree all of the necessary charger > setup is done by the USB PHY driver which covers all of the affected > i.MX6 SoCs. > > NOTE: I

Re: [PATCH 09/20] ext4: Initialize timestamps limits

2019-08-03 Thread Theodore Y. Ts'o
On Sat, Aug 03, 2019 at 11:30:22AM +0200, Arnd Bergmann wrote: > > I see in the ext4 code that we always try to expand i_extra_size > to s_want_extra_isize in ext4_mark_inode_dirty(), and that > s_want_extra_isize is always at least s_min_extra_isize, so > we constantly try to expand the inode to

Re: [PATCH 5.2 00/20] 5.2.6-stable review

2019-08-03 Thread Guenter Roeck
On 8/2/19 2:39 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.2.6 release. There are 20 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 should be made by

Re: [PATCH 4.19 00/32] 4.19.64-stable review

2019-08-03 Thread Guenter Roeck
On 8/2/19 2:39 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.64 release. There are 32 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 should be made b

Re: [PATCH 4.14 00/25] 4.14.136-stable review

2019-08-03 Thread Guenter Roeck
On 8/2/19 2:39 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.136 release. There are 25 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 should be made

Re: [PATCH 4.9 000/223] 4.9.187-stable review

2019-08-03 Thread Guenter Roeck
On 8/2/19 2:33 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.187 release. There are 223 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 should be made

Re: [PATCH 4.4 000/158] 4.4.187-stable review

2019-08-03 Thread Guenter Roeck
On 8/2/19 2:27 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.187 release. There are 158 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 should be made

Re: [PATCH 2/4] bdi: Add bdi->id

2019-08-03 Thread Tejun Heo
Hey, Matthew. On Sat, Aug 03, 2019 at 08:39:08AM -0700, Matthew Wilcox wrote: > On Sat, Aug 03, 2019 at 07:01:53AM -0700, Tejun Heo wrote: > > There currently is no way to universally identify and lookup a bdi > > without holding a reference and pointer to it. This patch adds an > > non-recycling

Re: [PATCH v3] ARM: dts: vf610-bk4: Fix qspi node description

2019-08-03 Thread Shawn Guo
On Wed, Jul 31, 2019 at 04:11:51PM +0200, Lukasz Majewski wrote: > Before this change the device tree description of qspi node for > second memory on BK4 board was wrong (applicable to old, removed > fsl-quadspi.c driver). > > As a result this memory was not recognized correctly when used > with t

Re: Possible mem cgroup bug in kernels between 4.18.0 and 5.3-rc1.

2019-08-03 Thread Tetsuo Handa
Masoud, will you try this patch? By the way, is /sys/fs/cgroup/memory/leaker/memory.usage_in_bytes remains non-zero despite /sys/fs/cgroup/memory/leaker/tasks became empty due to memcg OOM killer expected? Deleting big-data-file.bin after memcg OOM killer reduces some, but still remains non-zer

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

2019-08-03 Thread Shawn Guo
On Mon, Jul 29, 2019 at 07:20:07PM +0200, Krzysztof Kozlowski wrote: > 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 a

Re: [PATCH] arm64: defconfig: CONFIG_DRM_ETNAVIV=m

2019-08-03 Thread Shawn Guo
On Fri, Aug 02, 2019 at 02:20:28PM +0200, Christian Gmeiner wrote: > For imx8 we want to enable etnaviv, let's enable it > in defconfig, it will be useful to have it enabled for KernelCI > boot and runtime testing. > > Signed-off-by: Christian Gmeiner Applied, thanks.

Re: Device to write to all (serial) consoles

2019-08-03 Thread Adam Borowski
On Sat, Aug 03, 2019 at 03:55:37PM +0200, Greg Kroah-Hartman wrote: > On Sat, Aug 03, 2019 at 03:23:23PM +0200, Adam Borowski wrote: > > On Fri, Aug 02, 2019 at 09:59:06PM +0200, Paul Menzel wrote: > > > Because the cable is always connected to the port on the back side, and > > > sometimes the por

Re: [PATCH] ARM: dts: imx25-pdk: native-mode is part of display-timings

2019-08-03 Thread Shawn Guo
On Mon, Jul 29, 2019 at 04:23:16PM +0200, Martin Kaiser wrote: > Move the native-mode property inside the display-timings node. > > According to > Documentation/devicetree/bindings/display/panel/display-timing.txt. > native-mode is a property of the display-timings node. > > If it's located outsi

Re: [PATCH v3] clk: imx8mq: Mark AHB clock as critical

2019-08-03 Thread Shawn Guo
On Tue, Jul 30, 2019 at 10:22:55AM +0300, Abel Vesa wrote: > Initially, the TMU_ROOT clock was marked as critical, which automatically > made the AHB clock to stay always on. Since the TMU_ROOT clock is not > marked as critical anymore, following commit: > > 431bdd1df48e ("clk: imx8mq: Remove CLK_

Re: [PATCH][net-next][V2] net/mlx5: remove self-assignment on esw->dev

2019-08-03 Thread Parav Pandit
On Sat, Aug 3, 2019 at 7:54 PM Colin King wrote: > > From: Colin Ian King > > There is a self assignment of esw->dev to itself, clean this up by > removing it. Also make dev a const pointer. > > Addresses-Coverity: ("Self assignment") > Fixes: 6cedde451399 ("net/mlx5: E-Switch, Verify support QoS

RE: [PATCH V3 2/2] cpufreq: intel_pstate: Implement ->resolve_freq()

2019-08-03 Thread Doug Smythies
On 2019.08.02 02:28 Rafael J. Wysocki wrote: > On Friday, August 2, 2019 11:17:55 AM CEST Rafael J. Wysocki wrote: >> On Fri, Aug 2, 2019 at 7:44 AM Viresh Kumar wrote: >>> >>> Intel pstate driver exposes min_perf_pct and max_perf_pct sysfs files, >>> which can be used to force a limit on the min/

Re: [PATCH] arm64: dts: imx8mq-evk: Unbypass audio_pll1

2019-08-03 Thread Shawn Guo
On Sun, Jul 28, 2019 at 05:08:17PM +0300, Daniel Baluta wrote: > Making audio_pll1 parent of audio_pll1_bypass, will allow > setting rates multiple of 8000 for children. > > After unbypass clk hierarchy looks like this: > * osc_25m >* audio_pll1 > * audio_pll1_bypass >* audio_pll

Re: [PATCH] ARM: dts: imx: Cleanup style around assignment operator

2019-08-03 Thread Shawn Guo
On Sat, Jul 27, 2019 at 04:26:40PM +0200, Krzysztof Kozlowski wrote: > Use a space before and after assignment operator to have consistent > style. > > Signed-off-by: Krzysztof Kozlowski Applied, thanks.

Re: please revert "drm/msm: Use the correct dma_sync calls in msm_gem"

2019-08-03 Thread Rob Clark
On Fri, Aug 2, 2019 at 11:19 PM Christoph Hellwig wrote: > > On Fri, Aug 02, 2019 at 03:06:10PM -0700, Rob Clark wrote: > > Sorry, this is just a temporary band-aid for v5.3 to get things > > working again. Yes, I realize it is a complete hack. > > My main problem is here that you badly hack a ar

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-03 Thread Jarkko Sakkinen
On Fri, 2019-08-02 at 15:23 -0500, Tyler Hicks wrote: > That wasn't the conclusion that I came to. I prefer Robert's proposed > change to trusted.ko. > > How do you propose that this be fixed in eCryptfs? > > Removing encrypted_key support from eCryptfs is the only way that I can > see to fix the

[GIT PULL] RISC-V updates for v5.3-rc3

2019-08-03 Thread Paul Walmsley
Linus, The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv/for-v5.3-rc3 for you to fetch changes up to b7edab

Re: memory leak in pty_common_install

2019-08-03 Thread Jiri Slaby
On 02. 08. 19, 8:23, Jiri Slaby wrote: > On 30. 07. 19, 17:08, syzbot wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:    6789f873 Merge tag 'pm-5.3-rc2' of >> git://git.kernel.org/pu.. >> git tree:   upstream >> console output: https://syzkaller.appspot.com/x/log.

Re: [PATCH] platform/x86: silead_dmi: Add touchscreen platform data for the Chuwi Surbook Mini tablet.

2019-08-03 Thread Hans de Goede
Hi, On 03-08-19 16:12, Giang Le wrote: Hmm, could have used a somewhat more verbose commit message above the Signed-off-by line, but I guess there is not that much to write about this patch. Signed-off-by: Giang Le Patch looks good to me: Reviewed-by: Hans de Goede Regards, Hans ---

Re: [PATCH 4/8] thunderbolt: Do not fail adding switch if some port is not implemented

2019-08-03 Thread Lukas Wunner
On Fri, Jul 05, 2019 at 12:57:56PM +0300, Mika Westerberg wrote: > There are two ways to mark a port as unimplemented. Typical way is to > return port type as TB_TYPE_INACTIVE when its config space is read. > Alternatively if the port is not physically present (such as ports 10 > and 11 in ICL) rea

[PATCH] i2c: stm32: Use the correct style for SPDX License Identifier

2019-08-03 Thread Nishad Kamdar
This patch corrects the SPDX License Identifier style in header file related to STM32 Driver for I2C hardware bus support. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes made by using a script p

[PATCH] platform/x86: silead_dmi: Add touchscreen platform data for the Chuwi Surbook Mini tablet.

2019-08-03 Thread Giang Le
Signed-off-by: Giang Le --- drivers/platform/x86/touchscreen_dmi.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/touchscreen_dmi.c index 4370e4add83a..72535b0268eb 100644 --- a/drivers/platform/x86/touc

Re: Device to write to all (serial) consoles

2019-08-03 Thread Greg Kroah-Hartman
On Sat, Aug 03, 2019 at 03:23:23PM +0200, Adam Borowski wrote: > On Fri, Aug 02, 2019 at 09:59:06PM +0200, Paul Menzel wrote: > > On 02.08.19 18:02, Greg Kroah-Hartman wrote: > > > On Fri, Aug 02, 2019 at 03:23:08PM +0200, Paul Menzel wrote: > > > > On a lot of devices, like servers, you have more

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-03 Thread Vladimir Oltean
Hi Tao, On Sat, 3 Aug 2019 at 00:56, Tao Ren wrote: > > genphy_read_status() cannot report correct link speed when BCM54616S PHY > is configured in RGMII->1000Base-KX mode (for example, on Facebook CMM > BMC platform), and it is because speed-related fields in MII registers > are assigned differe

[PATCH] gpiolib: Take MUX usage into account

2019-08-03 Thread Ramon Fried
From: Stefan Wahren The user space like gpioinfo only see the GPIO usage but not the MUX usage (e.g. I2C or SPI usage) of a pin. As a user we want to know which pin is free/safe to use. So take the MUX usage of strict pinmux controllers into account to get a more realistic view for ioctl GPIO_GET

Re: Device to write to all (serial) consoles

2019-08-03 Thread Adam Borowski
On Fri, Aug 02, 2019 at 09:59:06PM +0200, Paul Menzel wrote: > On 02.08.19 18:02, Greg Kroah-Hartman wrote: > > On Fri, Aug 02, 2019 at 03:23:08PM +0200, Paul Menzel wrote: > > > On a lot of devices, like servers, you have more than one serial console, > > > and you do not always know, how they are

Re: [PATCH 1/9] clk: actions: Don't reference clk_init_data after registration

2019-08-03 Thread Manivannan Sadhasivam
On Wed, Jul 31, 2019 at 12:35:09PM -0700, Stephen Boyd wrote: > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc:

[PATCH v1 0/3] net: hisilicon: Fix a few problems with hip04_eth

2019-08-03 Thread Jiangfeng Xiao
During the use of the hip04_eth driver, several problems were found, which solved the hip04_tx_reclaim reentry problem, fixed the problem that hip04_mac_start_xmit never returns NETDEV_TX_BUSY and the dma_map_single failed on the arm64 platform. Jiangfeng Xiao (3): net: hisilicon: make hip04_tx_

[PATCH v1 2/3] net: hisilicon: fix hip04-xmit never return TX_BUSY

2019-08-03 Thread Jiangfeng Xiao
TX_DESC_NUM is 256, in tx_count, the maximum value of mod(TX_DESC_NUM - 1) is 254, the variable "count" in the hip04_mac_start_xmit function is never equal to (TX_DESC_NUM - 1), so hip04_mac_start_xmit never return NETDEV_TX_BUSY. tx_count is modified to mod(TX_DESC_NUM) so that the maximum value

[PATCH v1 3/3] net: hisilicon: Fix dma_map_single failed on arm64

2019-08-03 Thread Jiangfeng Xiao
On the arm64 platform, executing "ifconfig eth0 up" will fail, returning "ifconfig: SIOCSIFFLAGS: Input/output error." ndev->dev is not initialized, dma_map_single->get_dma_ops-> dummy_dma_ops->__dummy_map_page will return DMA_ERROR_CODE directly, so when we use dma_map_single, the first parameter

  1   2   >