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

2019-08-20 Thread Anson Huang
Hi, Guenter > On Tue, Aug 20, 2019 at 08:31:55AM -0700, Guenter Roeck wrote: > > On Mon, Aug 12, 2019 at 04:53:19PM +0800, anson.hu...@nxp.com > wrote: > > > From: Anson Huang > > > > > > The i.MX7ULP Watchdog Timer (WDOG) module is an independent timer > > > that is available for system use. >

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

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

Re: [PATCH 5/7] mmc: Add Actions Semi Owl SoCs SD/MMC driver

2019-08-20 Thread Manivannan Sadhasivam
Hi Ulf, Sorry for the delay! On Mon, Jul 22, 2019 at 03:41:59PM +0200, Ulf Hansson wrote: > On Sat, 8 Jun 2019 at 21:54, Manivannan Sadhasivam > wrote: > > > > Add SD/MMC driver for Actions Semi Owl SoCs. This driver currently > > supports standard, high speed, SDR12, SDR25 and SDR50. DDR50

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

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

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

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

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

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

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-20 Thread Saravana Kannan
On Tue, Aug 20, 2019 at 6:07 PM Frank Rowand wrote: > > On 8/20/19 3:10 PM, Saravana Kannan wrote: > > On Mon, Aug 19, 2019 at 9:25 PM Frank Rowand wrote: > >> > >> On 8/19/19 5:00 PM, Saravana Kannan wrote: > >>> On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand > >>> wrote: > > On

Re: [PATCH 3/3] csky: Support kernel non-aligned access

2019-08-20 Thread Christoph Hellwig
On Tue, Aug 20, 2019 at 08:34:29PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > We prohibit non-aligned access in kernel mode, but some special NIC > driver needs to support kernel-state unaligned access. For example, > when the bus does not support unaligned access, IP header parsing >

Re: [PATCH 1/3] csky: Fixup arch_get_unmapped_area() implementation

2019-08-20 Thread Christoph Hellwig
> +/* > + * We need to ensure that shared mappings are correctly aligned to > + * avoid aliasing issues with VIPT caches. We need to ensure that > + * a specific page of an object is always mapped at a multiple of > + * SHMLBA bytes. > + * > + * We unconditionally provide this function for all

Re: [PATCH 1/3] ftrace: introdue ftrace_call_init

2019-08-20 Thread Jisheng Zhang
Hi, On Tue, 20 Aug 2019 11:27:38 +0200 (CEST) Miroslav Benes wrote: > > > Hi, > > On Mon, 19 Aug 2019, Jisheng Zhang wrote: > > > On some arch, the FTRACE_WITH_REGS is implemented with gcc's > > -fpatchable-function-entry (=2), gcc adds 2 NOPs at the beginning > > of each function, so this

Re: [PATCH 4/4] iio: adc: ina2xx: Use label proper for device identification

2019-08-20 Thread Phil Reid
On 20/08/2019 22:11, Michal Simek wrote: Add support for using label property for easier device identification via iio framework. Signed-off-by: Michal Simek --- drivers/iio/adc/ina2xx-adc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/ina2xx-adc.c

Re: [PATCH 2/4] iio: adc: ina2xx: Setup better name then simple ina2xx

2019-08-20 Thread Phil Reid
On 20/08/2019 22:11, Michal Simek wrote: On systems with multiple ina2xx chips it is impossible to find out which iio device is which one based on probe order. That's why it is necessary to setup better name based on possition. The patch is reusing dev_name which is setup by core with

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-20 Thread Saravana Kannan
On Tue, Aug 20, 2019 at 6:56 PM Greg Kroah-Hartman wrote: > > On Tue, Aug 20, 2019 at 06:06:55PM -0700, Frank Rowand wrote: > > On 8/20/19 3:10 PM, Saravana Kannan wrote: > > > On Mon, Aug 19, 2019 at 9:25 PM Frank Rowand > > > wrote: > > >> > > >> On 8/19/19 5:00 PM, Saravana Kannan wrote: > >

Re: [PATCH 00/14] per memcg lru_lock

2019-08-20 Thread Alex Shi
在 2019/8/21 上午2:24, Hugh Dickins 写道: > I'll set aside what I'm doing, and switch to rebasing ours to v5.3-rc > and/or mmotm. Then compare with what Alex has, to see if there's any > good reason to prefer one to the other: if no good reason to prefer ours, > I doubt we shall bother to repost,

Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list

2019-08-20 Thread Matthew Wilcox
On Wed, Aug 21, 2019 at 09:22:44AM +0800, Wei Yang wrote: > On Tue, Aug 20, 2019 at 05:54:17PM -0700, Matthew Wilcox wrote: > >On Wed, Aug 21, 2019 at 08:52:34AM +0800, Wei Yang wrote: > >> On Tue, Aug 20, 2019 at 10:26:29AM -0700, Matthew Wilcox wrote: > >> >On Wed, Aug 14, 2019 at 11:19:37AM

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 06:06:55PM -0700, Frank Rowand wrote: > On 8/20/19 3:10 PM, Saravana Kannan wrote: > > On Mon, Aug 19, 2019 at 9:25 PM Frank Rowand wrote: > >> > >> On 8/19/19 5:00 PM, Saravana Kannan wrote: > >>> On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand > >>> wrote: > >

Re: [PATCH 1/4] iio: adc: ina2xx: Define *device_node only once

2019-08-20 Thread Phil Reid
On 20/08/2019 22:11, Michal Simek wrote: There is no reason to c full client->dev.of_node link when simple variable can keep it. One comment Signed-off-by: Michal Simek --- drivers/iio/adc/ina2xx-adc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] 9p: avoid attaching writeback_fid on mmap with type PRIVATE

2019-08-20 Thread cgxu...@zoho.com.cn
On Tue, 2019-08-20 at 13:49 +0200, Dominique Martinet wrote: > Chengguang Xu wrote on Tue, Aug 20, 2019: > > Currently on mmap cache policy, we always attach writeback_fid > > whether mmap type is SHARED or PRIVATE. However, in the use case > > of kata-container which combines 9p(Guest OS) with

RE: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with local_lock

2019-08-20 Thread Li, Philip
> Subject: Re: [RT PATCH v2] net/xfrm/xfrm_ipcomp: Protect scratch buffer with > local_lock > > Hi, > > On 20/08/19 13:35, kbuild test robot wrote: > > Hi Juri, > > > > Thank you for the patch! Yet something to improve: > > > > [auto build test ERROR on linus/master] > > [cannot apply to

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread h...@infradead.org
On Wed, Aug 21, 2019 at 09:29:22AM +0800, Alan Kao wrote: > IMHO, this approach should be avoided because CLINT is compatible to but > not mandatory in the privileged spec. In other words, it is possible that > a Linux-capable RISC-V platform does not contain a CLINT component but > rely on some

[PATCH v2] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100 kHz

2019-08-20 Thread Andrey Smirnov
Fiber-optic modules attached to the bus are only rated to work at 100 kHz, so decrease the bus frequency to accommodate that. Signed-off-by: Andrey Smirnov Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- Changes

kernel panic in 5.3-rc5, nfsd_reply_cache_stats_show+0x11

2019-08-20 Thread jane . chu
mode [ 3564.638440] #PF: error_code(0x) - not-present page [ 3564.644174] PGD acd7b47067 P4D acd7b47067 PUD acd7aba067 PMD 0 [ 3564.650784] Oops: [#1] SMP NOPTI [ 3564.654869] CPU: 58 PID: 15026 Comm: sosreport Tainted: G M 5.3.0-rc5.master.20190820.ol7.x86_64 #1 [ 3564.666420

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-20 Thread Andrey Smirnov
On Tue, Aug 20, 2019 at 8:29 AM Andrew Lunn wrote: > > On Mon, Aug 19, 2019 at 08:08:04PM -0700, Andrey Smirnov wrote: > > Fiber-optic module attached to the bus is only rated to work at > > 100kHz, so drop the bus frequncy to accomodate that. > > Hi Andrey > > Did you review all the other ZII

Re: [v2 PATCH] RISC-V: Optimize tlb flush path.

2019-08-20 Thread Alan Kao
On Tue, Aug 20, 2019 at 08:28:36PM +, Atish Patra wrote: > On Tue, 2019-08-20 at 02:22 -0700, h...@infradead.org wrote: > > On Tue, Aug 20, 2019 at 08:42:19AM +, Atish Patra wrote: > > > cmask NULL is pretty common case and we would be unnecessarily > > > executing bunch of instructions

Re: [PATCH] ARM: dts: vf610-zii-cfu1: Slow I2C0 down to 100kHz

2019-08-20 Thread Andrey Smirnov
On Tue, Aug 20, 2019 at 7:41 AM Marc Gonzalez wrote: > > On 20/08/2019 05:08, Andrey Smirnov wrote: > > > Fiber-optic module attached to the bus is only rated to work at > > 100kHz, so drop the bus frequncy to accomodate that. > > s/100kHz/100 kHz > s/frequncy/frequency > s/accomodate/accommodate

[RESEND PATCH v6 08/12] thermal: qoriq: Convert driver to use regmap API

2019-08-20 Thread Andrey Smirnov
Convert driver to use regmap API, drop custom LE/BE IO helpers and simplify bit manipulation using regmap_update_bits(). This also allows us to convert some register initialization to use loops and adds convenient debug access to TMU registers via debugfs. Signed-off-by: Andrey Smirnov

[RESEND PATCH v6 05/12] thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly

2019-08-20 Thread Andrey Smirnov
Pass all necessary data to qoriq_tmu_register_tmu_zone() directly instead of passing a paltform device and then deriving it. This is done as a first step to simplify resource deallocation code. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc:

[RESEND PATCH v6 02/12] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-08-20 Thread Andrey Smirnov
Struct thermal_zone_device reference stored as sensor's private data isn't really used anywhere in the code. Drop it. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie

[RESEND PATCH v6 01/12] thermal: qoriq: Add local struct device pointer

2019-08-20 Thread Andrey Smirnov
Use a local "struct device *dev" for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[RESEND PATCH v6 03/12] thermal: qoriq: Add local struct qoriq_sensor pointer

2019-08-20 Thread Andrey Smirnov
Add local struct qoriq_sensor pointer in qoriq_tmu_register_tmu_zone() for brevity. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

[RESEND PATCH v6 11/12] thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()

2019-08-20 Thread Andrey Smirnov
Add devres wrapper for thermal_add_hwmon_sysfs() to simplify driver code. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[RESEND PATCH v6 00/12] QorIQ TMU multi-sensor and HWMON support

2019-08-20 Thread Andrey Smirnov
Everyone: This series contains patches adding support for HWMON integration, bug fixes and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v5] - Rebased on recent linux-next, dropped

[RESEND PATCH v6 12/12] thermal: qoriq: Add hwmon support

2019-08-20 Thread Andrey Smirnov
Expose thermal readings as a HWMON device, so that it could be accessed using lm-sensors. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc:

[RESEND PATCH v6 10/12] thermal: qoriq: Do not report invalid temperature reading

2019-08-20 Thread Andrey Smirnov
Before returning measured temperature data to upper layer we need to make sure that the reading was marked as "valid" to avoid reporting bogus data. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc:

[RESEND PATCH v6 04/12] thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data

2019-08-20 Thread Andrey Smirnov
Embed per-sensor data into struct qoriq_tmu_data so we can drop the code allocating it. This also allows us to get rid of per-sensor back reference to struct qoriq_tmu_data since now its address can be caluclated using container_of(). Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas

[RESEND PATCH v6 07/12] thermal: qoriq: Convert driver to use devm_ioremap()

2019-08-20 Thread Andrey Smirnov
Convert driver to use devm_ioremap() to simplify memory deallocation and error handling code. No functional change intended. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus

[RESEND PATCH v6 09/12] thermal: qoriq: Enable all sensors before registering them

2019-08-20 Thread Andrey Smirnov
Tmu_get_temp will get called as a part of sensor registration via devm_thermal_zone_of_sensor_register(). To prevent it from retruning bogus data we need to enable sensor monitoring before that. Looking at the datasheet (i.MX8MQ RM) there doesn't seem to be any harm in enabling them all, so, for

[RESEND PATCH v6 06/12] thermal: qoriq: Pass data to qoriq_tmu_calibration() directly

2019-08-20 Thread Andrey Smirnov
We can simplify error cleanup code if instead of passing a "struct platform_device *" to qoriq_tmu_calibration() and deriving a bunch of pointers from it, we pass those pointers directly. This way we won't be force to call platform_set_drvdata() as early in qoriq_tmu_probe() and consequently would

Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list

2019-08-20 Thread Wei Yang
On Tue, Aug 20, 2019 at 05:54:17PM -0700, Matthew Wilcox wrote: >On Wed, Aug 21, 2019 at 08:52:34AM +0800, Wei Yang wrote: >> On Tue, Aug 20, 2019 at 10:26:29AM -0700, Matthew Wilcox wrote: >> >On Wed, Aug 14, 2019 at 11:19:37AM +0200, Vlastimil Babka wrote: >> >> On 8/14/19 8:57 AM, Wei Yang

Re: [PATCH 00/14] per memcg lru_lock

2019-08-20 Thread Alex Shi
> > Thanks for the Cc Michal. As Shakeel says, Google prodkernel has been > using our per-memcg lru locks for 7 years or so. Yes, we did not come > up with supporting performance data at the time of posting, nor since: > I see Alex has done much better on that (though I haven't even glanced

Re: [PATCH net] ixgbe: fix double clean of tx descriptors with xdp

2019-08-20 Thread Alexander Duyck
On Tue, Aug 20, 2019 at 8:58 AM Ilya Maximets wrote: > > On 20.08.2019 18:35, Alexander Duyck wrote: > > On Tue, Aug 20, 2019 at 8:18 AM Ilya Maximets > > wrote: > >> > >> Tx code doesn't clear the descriptor status after cleaning. > >> So, if the budget is larger than number of used elems in a

Re: [PATCH 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-08-20 Thread Steven Rostedt
On Tue, 20 Aug 2019 12:58:49 +0200 Christophe Leroy wrote: > >> index 1077366f496b..6c22e8a6f9de 100644 > >> --- a/lib/bug.c > >> +++ b/lib/bug.c > >> @@ -181,6 +181,15 @@ enum bug_trap_type report_bug(unsigned long bugaddr, > >> struct pt_regs *regs) > >>} > >>} > >> > >> +

Re: [PATCH v7 1/7] driver core: Add support for linking devices during device addition

2019-08-20 Thread Frank Rowand
On 8/20/19 3:10 PM, Saravana Kannan wrote: > On Mon, Aug 19, 2019 at 9:25 PM Frank Rowand wrote: >> >> On 8/19/19 5:00 PM, Saravana Kannan wrote: >>> On Sun, Aug 18, 2019 at 8:38 PM Frank Rowand wrote: On 8/15/19 6:50 PM, Saravana Kannan wrote: > On Wed, Aug 7, 2019 at 7:04 PM

stracpy

2019-08-20 Thread Joe Perches
On Tue, 2019-08-20 at 17:43 -0700, Linus Torvalds wrote: > On Tue, Aug 20, 2019 at 5:20 PM Joe Perches wrote: > > Umm, btw: have you actually looked at stracpy? > > Yes, Joe, I have. > > What part of "there are now so many of them that no human being can > keep track of them" didn't you see as

Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list

2019-08-20 Thread Matthew Wilcox
On Wed, Aug 21, 2019 at 08:52:34AM +0800, Wei Yang wrote: > On Tue, Aug 20, 2019 at 10:26:29AM -0700, Matthew Wilcox wrote: > >On Wed, Aug 14, 2019 at 11:19:37AM +0200, Vlastimil Babka wrote: > >> On 8/14/19 8:57 AM, Wei Yang wrote: > >> > On Tue, Aug 13, 2019 at 10:16:11PM -0700, Christoph

Re: [PATCH 3/3] mm/mmap.c: extract __vma_unlink_list as counter part for __vma_link_list

2019-08-20 Thread Wei Yang
On Tue, Aug 20, 2019 at 10:26:29AM -0700, Matthew Wilcox wrote: >On Wed, Aug 14, 2019 at 11:19:37AM +0200, Vlastimil Babka wrote: >> On 8/14/19 8:57 AM, Wei Yang wrote: >> > On Tue, Aug 13, 2019 at 10:16:11PM -0700, Christoph Hellwig wrote: >> >>Btw, is there any good reason we don't use a

Re: [PATCH] userfaultfd_release: always remove uffd flags and clear vm_userfaultfd_ctx

2019-08-20 Thread Kefeng Wang
On 2019/8/21 0:02, Oleg Nesterov wrote: > userfaultfd_release() should clear vm_flags/vm_userfaultfd_ctx even > if mm->core_state != NULL. > > Otherwise a page fault can see userfaultfd_missing() == T and use an > already freed userfaultfd_ctx. > > Reported-by: Kefeng Wang > Fixes: 04f5866e41fb

Re: [PATCH v4 2/2] rcuperf: Add kfree_rcu() performance Tests

2019-08-20 Thread Joel Fernandes
On Tue, Aug 20, 2019 at 05:44:36PM -0700, Paul E. McKenney wrote: > On Tue, Aug 20, 2019 at 08:31:32PM -0400, Joel Fernandes wrote: > > On Tue, Aug 20, 2019 at 08:27:05PM -0400, Joel Fernandes wrote: > > [snip] > > > > > > Or is the idea to time the kfree_rcu() loop separately? (I don't > > > >

Re: [PATCH 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-08-20 Thread Steven Rostedt
On Tue, 20 Aug 2019 09:33:24 -0700 Kees Cook wrote: > > > > diff --git a/lib/bug.c b/lib/bug.c > > > > index 1077366f496b..6c22e8a6f9de 100644 > > > > --- a/lib/bug.c > > > > +++ b/lib/bug.c > > > > @@ -181,6 +181,15 @@ enum bug_trap_type report_bug(unsigned long > > > > bugaddr, struct pt_regs

Re: [PATCH v4 2/2] rcuperf: Add kfree_rcu() performance Tests

2019-08-20 Thread Paul E. McKenney
On Tue, Aug 20, 2019 at 08:31:32PM -0400, Joel Fernandes wrote: > On Tue, Aug 20, 2019 at 08:27:05PM -0400, Joel Fernandes wrote: > [snip] > > > > > Or is the idea to time the kfree_rcu() loop separately? (I don't see > > > > > any such separate timing, though.) > > > > > > > > The kmalloc()

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Linus Torvalds
On Tue, Aug 20, 2019 at 5:20 PM Joe Perches wrote: > > Umm, btw: have you actually looked at stracpy? Yes, Joe, I have. What part of "there are now so many of them that no human being can keep track of them" didn't you see as a problem? How many broken string functions are we going to do,

Re: [PATCH v2 05/12] powerpc/mm: rework io-workaround invocation.

2019-08-20 Thread Benjamin Herrenschmidt
On Wed, 2019-08-21 at 00:28 +0200, Christoph Hellwig wrote: > On Tue, Aug 20, 2019 at 02:07:13PM +, Christophe Leroy wrote: > > ppc_md.ioremap() is only used for I/O workaround on CELL platform, > > so indirect function call can be avoided. > > > > This patch reworks the io-workaround and

Re: [PATCH 08/15] riscv: provide native clint access for M-mode

2019-08-20 Thread h...@lst.de
On Wed, Aug 21, 2019 at 12:24:31AM +, Atish Patra wrote: > > +static inline void clint_set_timer(unsigned long delta) > > +{ > > + writeq_relaxed(clint_read_timer() + delta, > > + clint_time_cmp + > > cpuid_to_hartid_map(smp_processor_id()));' > > This is not compatible with 32

[PATCH v2] sock: fix potential memory leak in proto_register()

2019-08-20 Thread zhanglin
If protocols registered exceeded PROTO_INUSE_NR, prot will be added to proto_list, but no available bit left for prot in proto_inuse_idx. Signed-off-by: zhanglin --- net/core/sock.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/net/core/sock.c

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Linus Torvalds
On Tue, Aug 20, 2019 at 4:37 PM Joe Perches wrote: > > > So I'm putting my foot down on yet another broken string copy > > interface from people who do not understand this fundamental issue. > > I think you are mistaken about the stracpy limits as > the only limit is not the source size but the

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Stephen Rothwell
Hi Joe, On Mon, 19 Aug 2019 17:08:00 -0700 Joe Perches wrote: > > A few examples: > > 1: a patch just to MAINTAINERS done via bash script: > > https://lore.kernel.org/lkml/904551f1f198ffac9a0f9c3c99aa966b0a7c76c1.ca...@perches.com/ > > $ git grep -h "^[FX]:" MAINTAINERS | \ > cut -f2- |

Re: linux-next: Signed-off-by missing for commit in the security tree

2019-08-20 Thread Stephen Rothwell
Hi Matthew, On Tue, 20 Aug 2019 15:39:33 -0700 Matthew Garrett wrote: > > On Tue, Aug 20, 2019 at 3:32 PM Stephen Rothwell > wrote: > > > > Hi all, > > > > Commit > > > > 9d1f8be5cf42 ("bpf: Restrict bpf when kernel lockdown is in > > confidentiality mode") > > > > is missing a

Re: [PATCH v4 2/2] rcuperf: Add kfree_rcu() performance Tests

2019-08-20 Thread Joel Fernandes
On Tue, Aug 20, 2019 at 08:27:05PM -0400, Joel Fernandes wrote: [snip] > > > > Or is the idea to time the kfree_rcu() loop separately? (I don't see > > > > any such separate timing, though.) > > > > > > The kmalloc() times are included within the kfree loop. The timing of > > > kfree_rcu() is

Re: [PATCH v4 2/2] rcuperf: Add kfree_rcu() performance Tests

2019-08-20 Thread Joel Fernandes
On Mon, Aug 19, 2019 at 07:50:56PM -0700, Paul E. McKenney wrote: > > > > > > + do { > > > > > > + for (i = 0; i < kfree_alloc_num; i++) { > > > > > > + alloc_ptrs[i] = kmalloc(sizeof(struct > > > > > > kfree_obj), GFP_KERNEL); > > > > > > + if

Re: [PATCH] phy: qcom-qmp: Correct ready status, again

2019-08-20 Thread Kishon Vijay Abraham I
Hi Sasha, On 06/08/19 9:20 PM, Sasha Levin wrote: > Hi, > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: 885bd765963b phy: qcom-qmp: Correct READY_STATUS poll break > condition. > > The bot has tested the following trees:

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

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

Re: [PATCH 08/15] riscv: provide native clint access for M-mode

2019-08-20 Thread Atish Patra
On Tue, 2019-08-13 at 17:47 +0200, Christoph Hellwig wrote: > RISC-V has the concept of a cpu level interrupt controller. Part of > it > is expose as bits in the status registers, and 2 new CSRs per //is expose/is to expose/ > privilege > level in the instruction set, but the machanisms to

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

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

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

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

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

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

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

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

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

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

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

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

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Joe Perches
On Tue, 2019-08-20 at 16:28 -0700, Linus Torvalds wrote: > On Mon, Aug 19, 2019 at 5:08 PM Joe Perches wrote: > > 2: would be Julia Lawall's stracpy change done > > with coccinelle: (attached) > > I'm not actually convinced about stracpy() and friends. > > It seems to be yet another badly

[PATCH v2] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB

2019-08-20 Thread Alastair D'Silva
From: Alastair D'Silva The upstream commit: 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") has a similar effect, but since it is a rewrite of the assembler to C, is too invasive for stable. This patch is a minimal fix to address the issue in assembler. This patch

[PATCH] mm/oom: Add oom_score_adj value to oom Killed process message

2019-08-20 Thread Edward Chron
For an OOM event: print oom_score_adj value for the OOM Killed process to document what the oom score adjust value was at the time the process was OOM Killed. The adjustment value can be set by user code and it affects the resulting oom_score so it is used to influence kill process selection.

Re: [PATCH] /dev/mem: Bail out upon SIGKILL when reading memory.

2019-08-20 Thread Tetsuo Handa
Greg Kroah-Hartman wrote: > Oh, nice! This shouldn't break anything that is assuming that the read > will complete before a signal is delivered, right? > > I know userspace handling of "short" reads is almost always not there... Since this check will give up upon SIGKILL, userspace won't be able

Re: [PATCH v8 19/20] pstore: fs superblock limits

2019-08-20 Thread Deepa Dinamani
On Tue, Aug 20, 2019 at 12:20 AM Kees Cook wrote: > > On Sun, Aug 18, 2019 at 09:58:16AM -0700, Deepa Dinamani wrote: > > Leaving granularity at 1ns because it is dependent on the specific > > attached backing pstore module. ramoops has microsecond resolution. > > > > Fix the readback of ramoops

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-20 Thread Andrew Lunn
> If you look at IPsec offloading, the networking stack builds up the > ESP header, and passes the unencrypted data down to the driver. I'm > wondering if the same would be possible with MACsec offloading: the > macsec virtual interface adds the header (and maybe a dummy ICV), and > then the HW

Re: [PATCH v8 08/20] adfs: Fill in max and min timestamps in sb

2019-08-20 Thread Deepa Dinamani
On Tue, Aug 20, 2019 at 9:28 AM Matthew Wilcox wrote: > > On Sun, Aug 18, 2019 at 09:58:05AM -0700, Deepa Dinamani wrote: > > Note that the min timestamp is assumed to be > > 01 Jan 1970 00:00:00 (Unix epoch). This is consistent > > with the way we convert timestamps in adfs_adfs2unix_time(). > >

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

2019-08-20 Thread Branden Bonaby
This is a userspace tool to drive the testing. Currently it supports introducing user specified delay in the host to guest communication path on a per-channel basis. Signed-off-by: Branden Bonaby --- Changes in v3: - Align python tool to match Linux coding style. Changes in v2: - Move testing

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

2019-08-20 Thread Branden Bonaby
Expose the test parameters as part of the debugfs channel attributes. We will control the testing state via these attributes. Signed-off-by: Branden Bonaby --- Changes in v3: - Change call to IS_ERR_OR_NULL, to IS_ERR. Changes in v2: - Move test attributes to debugfs. - Wrap test code under

[PATCH v3 1/3] drivers: hv: vmbus: Introduce latency testing

2019-08-20 Thread Branden Bonaby
Introduce user specified latency in the packet reception path. Signed-off-by: Branden Bonaby --- Changes in v2: - Add #ifdef in Kconfig file so test code will not interfere with non-test code. - Move test code functions for delay to hyperv_vmbus header file. - Wrap test code under

[PATCH v3 0/3] hv: vmbus: add fuzz testing to hv device

2019-08-20 Thread Branden Bonaby
This patchset introduces a testing framework for Hyper-V drivers. This framework allows us to introduce delays in the packet receive path on a per-device basis. While the current code only supports introducing arbitrary delays in the host/guest communication path, we intend to expand this to

Re: PROBLEM: 5.3.0-rc* causes iwlwifi failure

2019-08-20 Thread Stuart Little
On Tue, Aug 20, 2019 at 01:45:37PM +0300, Luciano Coelho wrote: > I'll have to look into all NIC/FW-version combinations that we have and > update the iwl_mvm_sar_geo_support() function accordingly, which is, > BTW, the easier place for you to change if you want to workaround the > issue. Thanks!

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Joe Perches
On Tue, 2019-08-20 at 16:28 -0700, Linus Torvalds wrote: > On Mon, Aug 19, 2019 at 5:08 PM Joe Perches wrote: > > 2: would be Julia Lawall's stracpy change done > > with coccinelle: (attached) > > I'm not actually convinced about stracpy() and friends. > > It seems to be yet another badly

A donation of 800,000.00 USD has been made in your favor

2019-08-20 Thread Mr. Johnson
A donation of 800,000.00 USD has been made in your favor, Kindly contact the donor Mr. Johnson via email (davidjson...@aol.com ) for more details on your donation funds.

[PATCH v2] powerpc: Don't add -mabi= flags when building with Clang

2019-08-20 Thread Nathan Chancellor
When building pseries_defconfig, building vdso32 errors out: error: unknown target ABI 'elfv1' This happens because -m32 in clang changes the target to 32-bit, which does not allow the ABI to be changed, as the setABI virtual function is not overridden:

Re: rfc: treewide scripted patch mechanism? (was: Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang)QUILT

2019-08-20 Thread Linus Torvalds
On Mon, Aug 19, 2019 at 5:08 PM Joe Perches wrote: > > 2: would be Julia Lawall's stracpy change done > with coccinelle: (attached) I'm not actually convinced about stracpy() and friends. It seems to be yet another badly thought out string interface, and there are now so many of them that no

[PATCH] vmw_balloon: Fix offline page marking with compaction

2019-08-20 Thread Nadav Amit
The compaction code already marks pages as offline when it enqueues pages in the ballooned page list, and removes the mapping when the pages are removed from the list. VMware balloon also updates the flags, instead of letting the balloon-compaction logic handle it, which causes the assertion

[PATCH v14 11/18] kunit: test: add the concept of assertions

2019-08-20 Thread Brendan Higgins
Add support for assertions which are like expectations except the test terminates if the assertion is not satisfied. The idea with assertions is that you use them to state all the preconditions for your test. Logically speaking, these are the premises of the test case, so if a premise isn't true,

[PATCH v14 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-08-20 Thread Brendan Higgins
Fix the following warning seen on GCC 7.3: kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls through to next function kunit_test_catch() kunit_try_catch_throw is a function added in the following patch in this series; it allows KUnit, a unit testing framework for the

[PATCH v14 14/18] kunit: defconfig: add defconfigs for building KUnit tests

2019-08-20 Thread Brendan Higgins
Add defconfig for UML and a fragment that can be used to configure other architectures for building KUnit tests. Add option to kunit_tool to use a defconfig to create the kunitconfig. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by:

Re: [PATCH v6 08/19] PM / devfreq: tegra30: Ensure that target freq won't overflow

2019-08-20 Thread Dmitry Osipenko
Hello Chanwoo, 20.08.2019 3:23, Chanwoo Choi пишет: > On 19. 8. 12. 오전 6:23, Dmitry Osipenko wrote: >> We already had few integer overflow bugs, let's limit the freq for >> consistency. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/devfreq/tegra30-devfreq.c | 2 +- >> 1 file changed, 1

Re: [PATCH 1/3] staging: rtl8192u: fix OPEN_BRACE errors in ieee80211

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 04:11:54PM -0700, Stephen Brennan wrote: > Signed-off-by: Stephen Brennan > --- Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to

Re: [PATCH] bonding: force enable lacp port after link state recovery for 802.3ad

2019-08-20 Thread Jay Vosburgh
wrote: >From: Sha Zhang > >After the commit 334031219a84 ("bonding/802.3ad: fix slave link >initialization transition states") merged, >the slave's link status will be changed to BOND_LINK_FAIL >from BOND_LINK_DOWN in the following scenario: >- Driver reports loss of carrier and > bonding

[PATCH 3/3] staging: rtl8192u: fix spacing in ieee80211

2019-08-20 Thread Stephen Brennan
Signed-off-by: Stephen Brennan --- drivers/staging/rtl8192u/ieee80211/dot11d.c | 10 ++-- .../staging/rtl8192u/ieee80211/ieee80211.h| 4 +- .../rtl8192u/ieee80211/ieee80211_crypt.c | 2 +- .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 22

[PATCH 2/3] staging: rtl8192u: fix macro alignment in ieee80211

2019-08-20 Thread Stephen Brennan
Signed-off-by: Stephen Brennan --- .../staging/rtl8192u/ieee80211/ieee80211.h| 35 ++- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 8 ++--- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h

[PATCH 0/3] staging: rtl8192u: coding style fixes in ieee80211

2019-08-20 Thread Stephen Brennan
Addressed some spacing, brace placement, and macro alignment in this driver. I do not have the relevent hardware, but I verified that the drivers/staging/rtl8192u module built between each patch. Stephen Brennan (3): staging: rtl8192u: fix OPEN_BRACE errors in ieee80211 staging: rtl8192u: fix

[PATCH 1/3] staging: rtl8192u: fix OPEN_BRACE errors in ieee80211

2019-08-20 Thread Stephen Brennan
Signed-off-by: Stephen Brennan --- .../staging/rtl8192u/ieee80211/ieee80211.h| 3 +- .../staging/rtl8192u/ieee80211/ieee80211_rx.c | 116 ++ .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 81 +--- .../staging/rtl8192u/ieee80211/ieee80211_wx.c | 3 +-

Re: [PATCH 0/6] arm64: Add support for Amlogic SM1 SoC Family

2019-08-20 Thread Kevin Hilman
Kevin Hilman writes: > Neil Armstrong writes: > >> The new Amlogic SM1 SoC Family is a derivative of the Amlogic G12A >> SoC Family, with the following changes : >> - Cortex-A55 cores instead of A53 >> - more power domains, including USB & PCIe >> - a neural network co-processor (NNA) >> - a

[PATCH v5 19/25] drm: kirin: Add register connect helper functions in drm init

2019-08-20 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch adds a flag to the device specific driver data so that we can conditionally register the connectors at init. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter

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

2019-08-20 Thread Haiyang Zhang
> -Original Message- > From: David Miller > Sent: Tuesday, August 20, 2019 3:29 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.com; bhelg...@google.com; > linux-...@vger.kernel.org;

WARNING: refcount bug in cdev_get

2019-08-20 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:2d63ba3e Merge tag 'pm-5.3-rc5' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=165d330260 kernel config: https://syzkaller.appspot.com/x/.config?x=3ff364e429585cf2

Re: [patch 04/44] posix-cpu-timers: Fixup stale comment

2019-08-20 Thread Frederic Weisbecker
On Tue, Aug 20, 2019 at 11:43:26PM +0200, Thomas Gleixner wrote: > On Tue, 20 Aug 2019, Frederic Weisbecker wrote: > No it can't do that throughout posix_cpu_timer_del() because exit_itimers() > can only look at current->signal->posix_timers which does not contain the > posix timers owned by a

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