[PATCH v2] media: imx7-mipi-csis: Add a check for devm_regulator_get

2019-10-15 Thread Chuhong Yuan
devm_regulator_get may return an error but mipi_csis_phy_init misses a check for it. This may lead to problems when regulator_set_voltage uses the unchecked pointer. This patch adds a check for devm_regulator_get to avoid potential risk. Signed-off-by: Chuhong Yuan --- Changes in v2: - Add a ch

Re: [PATCH] hugetlb: Add nohugepages parameter to prevent hugepages creation

2019-10-15 Thread Guilherme G. Piccoli
On 10/15/19 9:18 AM, Michal Hocko wrote: I do agree with Qian Cai here. Kdump kernel requires a very tailored environment considering it is running in a very restricted configuration. The hugetlb pre-allocation sounds like a tooling problem and should be fixed at that layer. Hi Michal, thanks

Waiting to chat with you

2019-10-15 Thread Natcha Thitadat
Good day, How are you?I am Ms.Natcha and will like to have a little discussion with you if you don't mind. Thanks and have a lovely day, Ms.Natcha.

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-15 Thread Peter Zijlstra
On Tue, Oct 15, 2019 at 03:07:40PM +0200, Jessica Yu wrote: > I'm having trouble visualizing what changes you're planning on making. I want all the text poking (jump_label, ftrace, klp whatever) to happen _before_ we do the protection changes. I also want to avoid flipping the protection state ar

Re: [PATCH] mm/memcontrol: update lruvec counters in mem_cgroup_move_account

2019-10-15 Thread Johannes Weiner
On Tue, Oct 15, 2019 at 11:09:59AM +0300, Konstantin Khlebnikov wrote: > Mapped, dirty and writeback pages are also counted in per-lruvec stats. > These counters needs update when page is moved between cgroups. > > Fixes: 00f3ca2c2d66 ("mm: memcontrol: per-lruvec stats infrastructure") > Signed-of

Re: [PATCH v2 2/2] iio: (bma400) add driver for the BMA400

2019-10-15 Thread Andy Shevchenko
On Tue, Oct 15, 2019 at 12:25 AM kbuild test robot wrote: > smatch warnings: > drivers/iio/accel/bma400_core.c:422 bma400_set_accel_oversampling_ratio() > warn: unsigned 'acc_config' is never less than zero. >420 ret = regmap_read(data->regmap, > BMA400_ACC_CONFIG0_REG, >

[PATCH] phy: stm32: fix use of integer as pointer

2019-10-15 Thread Ben Dooks
The calls devm_clk_get() and devm_reset_control_get() take pointers so change the 0 to NULl to fix the following sparse warnings: drivers/phy/st/phy-stm32-usbphyc.c:330:42: warning: Using plain integer as NULL pointer drivers/phy/st/phy-stm32-usbphyc.c:343:52: warning: Using plain integer as NULL

[PATCH] rcu: move rcu_{expedited,normal} definitions into rcupdate.h

2019-10-15 Thread Ben Dooks
Move the rcu_{expedited,normal} definitions into rcupdate.h to make sure they are in sync, and avoid the following warning from sparse: kernel/ksysfs.c:150:5: warning: symbol 'rcu_expedited' was not declared. Should it be static? kernel/ksysfs.c:167:5: warning: symbol 'rcu_normal' was not declare

Re: [RFC] mmc: cqhci: commit descriptors before setting the doorbell

2019-10-15 Thread Adrian Hunter
On 15/10/19 10:55 AM, Faiz Abbas wrote: > Hi, > > On 15/10/19 12:08 AM, Faiz Abbas wrote: >> Add a write memory barrier to make sure that descriptors are actually >> written to memory before ringing the doorbell. >> >> Signed-off-by: Faiz Abbas >> --- >> >> This patch fixes a very infrequent ADMA

Re: [PATCH V7 5/7] cpufreq: Register notifiers with the PM QoS framework

2019-10-15 Thread Dmitry Osipenko
15.10.2019 14:46, Viresh Kumar пишет: > On 22-09-19, 23:12, Dmitry Osipenko wrote: >> Hello Viresh, >> >> This patch causes use-after-free on a cpufreq driver module reload. Please >> take a look, thanks in advance. >> >> >> [ 87.952369] >> ==

RE: [PATCH v4 1/1] printf: add support for printing symbolic error names

2019-10-15 Thread David Laight
From: Petr Mladek > Sent: 14 October 2019 14:03 > On Fri 2019-10-11 15:36:17, Rasmus Villemoes wrote: > > It has been suggested several times to extend vsnprintf() to be able > > to convert the numeric value of ENOSPC to print "ENOSPC". This > > implements that as a %p extension: With %pe, one can

Re: [PATCH 1/2] x86, mce, therm_throt: Optimize logging of thermal throttle messages

2019-10-15 Thread Srinivas Pandruvada
On Tue, 2019-10-15 at 10:52 +0200, Peter Zijlstra wrote: > On Mon, Oct 14, 2019 at 03:27:35PM -0700, Luck, Tony wrote: > > On Mon, Oct 14, 2019 at 11:36:18PM +0200, Borislav Petkov wrote: > > > This description is already *begging* for this delay value to be > > > automatically set by the kernel. P

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-15 Thread Peter Zijlstra
On Tue, Oct 15, 2019 at 09:28:02AM -0400, Steven Rostedt wrote: > On Fri, 11 Oct 2019 14:59:03 +0200 > Peter Zijlstra wrote: > > > On Thu, Oct 10, 2019 at 07:28:19PM +0200, Peter Zijlstra wrote: > > > > > Really the best solution is to move all the poking into > > > ftrace_module_init(), before

Re: [PATCH v2 0/6] arm64: dts: meson-g12: add support for PCIe

2019-10-15 Thread Neil Armstrong
Hi Lorenzo, On 15/10/2019 15:14, Lorenzo Pieralisi wrote: > On Mon, Sep 16, 2019 at 02:50:16PM +0200, Neil Armstrong wrote: >> This patchset : >> - updates the Amlogic PCI bindings for G12A >> - reworks the Amlogic PCIe driver to make use of the >> G12a USB3+PCIe Combo PHY instead of directly writ

Re: [PATCH v3 1/2] dt-bindings: soundwire: add bindings for Qcom controller

2019-10-15 Thread Rob Herring
On Tue, Oct 15, 2019 at 7:22 AM Srinivas Kandagatla wrote: > > > > On 15/10/2019 12:35, Rob Herring wrote: > > On Mon, Oct 14, 2019 at 12:34 PM Srinivas Kandagatla > > wrote: > >> > >> Thanks Rob for taking time to review, > >> > >> On 14/10/2019 18:12, Rob Herring wrote: > >>> On Fri, Oct 11, 20

Re: [PATCH v2] ftrace: Introduce PERMANENT ftrace_ops flag

2019-10-15 Thread Steven Rostedt
On Tue, 15 Oct 2019 12:50:59 +0200 (CEST) Miroslav Benes wrote: > > > > @@ -6752,12 +6764,19 @@ ftrace_enable_sysctl(struct ctl_table *table, > > > > int write, > > > > ftrace_startup_sysctl(); > > > > > > > > } else { > > > > + if (is_permanent_ops_regist

Re: [PATCH 1/2] x86, mce, therm_throt: Optimize logging of thermal throttle messages

2019-10-15 Thread Srinivas Pandruvada
On Tue, 2019-10-15 at 10:48 +0200, Peter Zijlstra wrote: > On Mon, Oct 14, 2019 at 02:21:00PM -0700, Srinivas Pandruvada wrote: > > Some modern systems have very tight thermal tolerances. Because of > > this > > they may cross thermal thresholds when running normal workloads > > (even > > during bo

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-15 Thread Steven Rostedt
On Fri, 11 Oct 2019 14:59:03 +0200 Peter Zijlstra wrote: > On Thu, Oct 10, 2019 at 07:28:19PM +0200, Peter Zijlstra wrote: > > > Really the best solution is to move all the poking into > > ftrace_module_init(), before we mark it RO+X. That's what I'm going to > > do for jump_label and static_cal

Re: [PATCH v2] ftrace: Introduce PERMANENT ftrace_ops flag

2019-10-15 Thread Joe Lawrence
On 10/15/19 7:23 AM, Miroslav Benes wrote: Hi Miroslav, Maybe we should add a test to verify this new behavior? See sample version below (lightly tested). We can add to this one, or patch seperately if you prefer. Thanks a lot, Joe. It looks nice. I'll include it in v3. One question below.

[PATCH] fsnotify: move declaration of fsnotify_mark_connector_cachep to fsnotify.h

2019-10-15 Thread Ben Dooks
Move fsnotify_mark_connector_cachep to fsnotify.h to properly share it with the user in mark.c and avoid the following warning from sparse: fs/notify/mark.c:82:19: warning: symbol 'fsnotify_mark_connector_cachep' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Jan Kara

[tip: x86/urgent] x86/hyperv: Set pv_info.name to "Hyper-V"

2019-10-15 Thread tip-bot2 for Andrea Parri
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 628270ef628af6712ee99771b583feb667a7f1bc Gitweb: https://git.kernel.org/tip/628270ef628af6712ee99771b583feb667a7f1bc Author:Andrea Parri AuthorDate:Tue, 15 Oct 2019 12:35:02 +02:00 Committer

Re: [PATCH] platform/x86: huawei-wmi: make validation stricter in huawei_wmi_battery_set()

2019-10-15 Thread ayman . bagabas
On Tue, 2019-10-15 at 15:46 +0300, Dan Carpenter wrote: > On Tue, Oct 15, 2019 at 08:21:59AM -0400, Ayman Bagabas wrote: > > Hi Dan > > > > On Tue, Oct 15, 2019, 4:39 AM Dan Carpenter < > > dan.carpen...@oracle.com> > > wrote: > > > > > I don't think it makes sense for "end" to be negative or for

[PATCH] userns: do not export uidhash_table

2019-10-15 Thread Ben Dooks
The uidhash_table is not exported from this file, so make it static to avoid the following sparse warning: kernel/user.c:85:19: warning: symbol 'uidhash_table' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: linux-kernel@vger.kernel.org --- kernel/user.c | 2 +- 1 file

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-15 Thread Dan Carpenter
On Tue, Oct 15, 2019 at 01:24:50PM +0200, Alexander Gordeev wrote: > On Thu, Oct 10, 2019 at 02:30:34PM +0300, Dan Carpenter wrote: > > On Thu, Oct 10, 2019 at 10:51:45AM +0200, Alexander Gordeev wrote: > > > On Wed, Oct 09, 2019 at 09:53:23PM +0300, Dan Carpenter wrote: > > > > > > > + u32 *rd_fla

RE: [PATCH v3 3/3] Drivers: hv: vmbus: Add module parameter to cap the VMBus version

2019-10-15 Thread Michael Kelley
From: Andrea Parri Sent: Tuesday, October 15, 2019 4:47 AM > > Currently, Linux guests negotiate the VMBus version with Hyper-V > and use the highest available VMBus version they can connect to. > This has some drawbacks: by using the highest available version, > certain code paths are never exe

Re: [PATCH v2 0/6] arm64: dts: meson-g12: add support for PCIe

2019-10-15 Thread Lorenzo Pieralisi
On Mon, Sep 16, 2019 at 02:50:16PM +0200, Neil Armstrong wrote: > This patchset : > - updates the Amlogic PCI bindings for G12A > - reworks the Amlogic PCIe driver to make use of the > G12a USB3+PCIe Combo PHY instead of directly writing in > the PHY register > - adds the necessary operations to th

RE: [PATCH v3 2/3] Drivers: hv: vmbus: Enable VMBus protocol versions 4.1, 5.1 and 5.2

2019-10-15 Thread Michael Kelley
From: Andrea Parri Sent: Tuesday, October 15, 2019 4:47 AM > > Hyper-V has added VMBus protocol versions 5.1 and 5.2 in recent release > versions. Allow Linux guests to negotiate these new protocol versions > on versions of Hyper-V that support them. While on this, also allow > guests to negot

[PATCH] ARM: OMAP2+: SmartReflex: add omap_sr_pdata definition

2019-10-15 Thread Ben Dooks
The omap_sr_pdata is not declared but is exported, so add a define for it to fix the following warning: arch/arm/mach-omap2/pdata-quirks.c:609:36: warning: symbol 'omap_sr_pdata' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Kevin Hilman Cc: Nishanth Menon Cc: linux.

Re: [PATCH 1/3] arm64: cpufeature: Fix the type of no FP/SIMD capability

2019-10-15 Thread Ard Biesheuvel
On Tue, 15 Oct 2019 at 15:03, Suzuki K Poulose wrote: > > > > On 15/10/2019 11:30, Ard Biesheuvel wrote: > > On Tue, 15 Oct 2019 at 12:25, Dave Martin wrote: > >> > >> On Mon, Oct 14, 2019 at 06:57:30PM +0200, Ard Biesheuvel wrote: > >>> On Mon, 14 Oct 2019 at 17:50, Dave P Martin wrote: >

[PATCH v2] i2c: i2c-stm32f7: remove warning when compiling with W=1

2019-10-15 Thread Alain Volmat
Remove the following warning: drivers/i2c/busses/i2c-stm32f7.c:315: warning: cannot understand function prototype: 'struct stm32f7_i2c_spec i2c_specs[] = Replace a comment starting with /** by simply /* to avoid having it interpreted as a kernel-doc comment. Fixes: aeb068c57214 ("i2c: i2c-stm32f

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-15 Thread Alexander Gordeev
On Tue, Oct 15, 2019 at 04:03:21PM +0530, Vinod Koul wrote: > what kind of device is this? I dont think we want these and the ones > coming below as part of kernel kconfig! Yes, I have already been pointed out on this and will put those as kernel module parameters in the next version. The device i

RE: [PATCH v3 1/3] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-15 Thread Michael Kelley
From: Andrea Parri Sent: Tuesday, October 15, 2019 4:47 AM > > The technique used to get the next VMBus version seems increasisly > clumsy as the number of VMBus versions increases. Performance is > not a concern since this is only done once during system boot; it's > just that we'll end up wit

Re: [PATCH v3 5/6] x86/ftrace: Use text_poke()

2019-10-15 Thread Jessica Yu
+++ Peter Zijlstra [11/10/19 14:59 +0200]: On Thu, Oct 10, 2019 at 07:28:19PM +0200, Peter Zijlstra wrote: Really the best solution is to move all the poking into ftrace_module_init(), before we mark it RO+X. That's what I'm going to do for jump_label and static_call as well, I just need to add

Re: [PATCH V4 1/3] cpuidle: play_idle: Make play_idle more flexible

2019-10-15 Thread Ulf Hansson
On Fri, 4 Oct 2019 at 10:32, Daniel Lezcano wrote: > > The play_idle function has two users, the intel powerclamp and the > idle_injection. > > The idle injection cooling device uses the function via the > idle_injection powercap's APIs. Unfortunately, play_idle is currently > limited by the idle

RE: [PATCH v2] x86/hyperv: Set pv_info.name to "Hyper-V"

2019-10-15 Thread Michael Kelley
From: Andrea Parri Sent: Tuesday, October 15, 2019 3:35 AM > > Michael reported that the x86/hyperv initialization code printed the > following dmesg when running in a VM on Hyper-V: > > [0.000738] Booting paravirtualized kernel on bare hardware > > Let the x86/hyperv initialization code

Re: [PATCH] ftrace: fix function type mismatches

2019-10-15 Thread Steven Rostedt
On Tue, 15 Oct 2019 09:00:55 -0400 Steven Rostedt wrote: > +++ b/include/asm-generic/vmlinux.lds.h > @@ -111,15 +111,22 @@ > > #ifdef CONFIG_FTRACE_MCOUNT_RECORD > #ifdef CC_USING_PATCHABLE_FUNCTION_ENTRY > +/* > + * Need to also make ftrace_graph_stub point to ftrace_stub > + * so that the s

Re: [PATCH v2 1/3] net: phylink: switch to using fwnode_gpiod_get_index()

2019-10-15 Thread kbuild test robot
pecify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Dmitry-Torokhov/net-phy-switch-to-using-fwnode_gpiod_get_index/20191015-020204 config: x86_64-randconfig-a002-201941 (attached as .config) compiler: gcc-5 (Ub

[PATCH] i2c: i2c-stm32f7: rework slave_id allocation

2019-10-15 Thread Alain Volmat
The IP can handle two slave addresses. One address can either be 7 bits or 10 bits while the other can only be 7 bits. In order to ensure that a 10 bits address can always be allocated (assuming there is only one 7 bits address already allocated), pick up the 7-bits only address slot in priority wh

Re: [PATCH 1/3] arm64: cpufeature: Fix the type of no FP/SIMD capability

2019-10-15 Thread Suzuki K Poulose
On 15/10/2019 11:30, Ard Biesheuvel wrote: On Tue, 15 Oct 2019 at 12:25, Dave Martin wrote: On Mon, Oct 14, 2019 at 06:57:30PM +0200, Ard Biesheuvel wrote: On Mon, 14 Oct 2019 at 17:50, Dave P Martin wrote: On Mon, Oct 14, 2019 at 04:45:40PM +0100, Suzuki K Poulose wrote: On 14/10/20

Re: [PATCH] ftrace: fix function type mismatches

2019-10-15 Thread Steven Rostedt
On Mon, 14 Oct 2019 13:00:09 -0700 Sami Tolvanen wrote: > On Fri, Oct 11, 2019 at 11:26 AM Steven Rostedt wrote: > > Unfortunately, this breaks function graph tracing. > > Thank you for pointing this out. I should have realized this solution > wouldn't work. > > > Is there a way to do an ali

Re: [PATCH v2] sched/topology: Allow sched_asym_cpucapacity to be disabled

2019-10-15 Thread Valentin Schneider
On 15/10/2019 12:56, Quentin Perret wrote: > Hmm, a problem here is that static_branch*() can block (it uses a > mutex) while you're in the rcu section, I think. > > I suppose you could just move this above rcu_read_lock() and use > rcu_access_pointer() instead ? > Right, I got confused again, t

Re: [PATCH] sched/topology: Disable sched_asym_cpucapacity on domain destruction

2019-10-15 Thread Dietmar Eggemann
On 15/10/2019 13:07, Quentin Perret wrote: > On Tuesday 15 Oct 2019 at 11:22:12 (+0200), Dietmar Eggemann wrote: >> I still don't understand the benefit of the counter approach here. >> sched_smt_present counts the number of cores with SMT. So in case you >> have 2 SMT cores with 2 HW threads and y

Re: [PATCH v2 2/3] net: phy: fixed_phy: fix use-after-free when checking link GPIO

2019-10-15 Thread Andrew Lunn
On Mon, Oct 14, 2019 at 10:40:21AM -0700, Dmitry Torokhov wrote: > If we fail to locate GPIO for any reason other than deferral or > not-found-GPIO, we try to print device tree node info, however if might > be freed already as we called of_node_put() on it. > > Acked-by: David S. Miller > Signed-

[PATCH -next] clk: mediatek: mt6797: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/clk/mediatek/clk-mt6797.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6797.c b/drivers/clk/mediatek/clk-mt6

[PATCH] tpm: Salt tpm_get_random() result with get_random_bytes()

2019-10-15 Thread Jarkko Sakkinen
Salt the result that comes from the TPM RNG with random bytes from the kernel RNG. This will allow to use tpm_get_random() as a substitute for get_random_bytes(). TPM could have a bug (making results predicatable), backdoor or even an inteposer in the bus. Salting gives protections against these c

Re: [PATCH] platform/x86: huawei-wmi: make validation stricter in huawei_wmi_battery_set()

2019-10-15 Thread Dan Carpenter
On Tue, Oct 15, 2019 at 08:21:59AM -0400, Ayman Bagabas wrote: > Hi Dan > > On Tue, Oct 15, 2019, 4:39 AM Dan Carpenter > wrote: > > > I don't think it makes sense for "end" to be negative or for even for it > > to be less than "start". That also means that "start" can't be more > > than 100 wh

Re: [PATCH] fs/fnctl: fix missing __user in fcntl_rw_hint()

2019-10-15 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH -next] clk: mediatek: mt7629: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/clk/mediatek/clk-mt7629.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk

Re: [PATCH] fs/namespace: add __user to open_tree and move_mount syscalls

2019-10-15 Thread Christoph Hellwig
On Tue, Oct 15, 2019 at 11:35:02AM +0100, Ben Dooks wrote: > -SYSCALL_DEFINE3(open_tree, int, dfd, const char *, filename, unsigned, flags) > +SYSCALL_DEFINE3(open_tree, int, dfd, const char __user *, filename, > unsigned, flags) Please make sure to wrap lines after 80 characters. Otherwise this

[GIT PULL] parisc architecture fixes for kernel v5.4-rc4

2019-10-15 Thread Helge Deller
Hi Linus, please pull some fixes for the parisc architecture for kernel 5.4-rc4 from: git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git parisc-5.4-2 Changes: * Fix a parisc-specific fallout of Christoph's dma_set_mask_and_coherent() patches (Sven) * Fix a vmap memory leak

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-10-15 Thread Ulf Hansson
On Tue, 1 Oct 2019 at 18:35, Matthias Kaehlcke wrote: > > On Fri, Sep 27, 2019 at 04:42:39AM -0400, Steven Rostedt wrote: > > On Thu, 26 Sep 2019 15:04:38 -0700 > > Matthias Kaehlcke wrote: > > > > > Define genpd_power_on/off and genpd_set_performance_state > > > tracepoints and use them. > > > >

[PATCH] ARM: dts: stm32f469: remove useless dma-ranges property

2019-10-15 Thread Benjamin Gaignard
Remove dma-ranges from ltdc node since it is already set on bus node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f469-disco.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index a3ff04940aec..c

[PATCH] ARM: dts: stm32f429: remove useless dma-ranges property

2019-10-15 Thread Benjamin Gaignard
Remove dma-ranges from ltdc node since it is already set on bus node. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32429i-eval.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index ba08624c6237..21bc

Re: [PATCH] memory: mtk-smi: Add PM suspend and resume ops

2019-10-15 Thread Joerg Roedel
On Wed, Oct 09, 2019 at 07:59:33PM +0800, Yong Wu wrote: > In the commit 4f0a1a1ae351 ("memory: mtk-smi: Invoke pm runtime_callback > to enable clocks"), we use pm_runtime callback to enable/disable the smi > larb clocks. It will cause the larb's clock may not be disabled when > suspend. That is be

pull-request: wireless-drivers 2019-10-15

2019-10-15 Thread Kalle Valo
Hi Dave, here's a pull request to net tree for v5.4, more info below. Please let me know if there are any problems. Kalle The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) are available in the git repository at: git://gi

Re: [PATCH v2 1/2] dmaengine: avalon: Intel Avalon-MM DMA Interface for PCIe

2019-10-15 Thread Alexander Gordeev
On Tue, Oct 15, 2019 at 02:41:08PM +0300, Dan Carpenter wrote: > > > > > > > > + spin_lock(lock); > > > > [*] > > [ snip ] > > > I struggle to realize how the spinlock I use (see [*] above) does not > > protect the reader. > > Argh I'm really sorry. I completely didn't see the spinl

Re: [PATCH V6 2/2] mm/debug: Add tests validating architecture page table helpers

2019-10-15 Thread Anshuman Khandual
On 10/15/2019 05:16 PM, Michal Hocko wrote: > On Tue 15-10-19 14:51:42, Anshuman Khandual wrote: >> This adds tests which will validate architecture page table helpers and >> other accessors in their compliance with expected generic MM semantics. >> This will help various architectures in valida

[PATCH] bus: moxtet: declare moxtet_bus_type

2019-10-15 Thread Ben Dooks
The moxtet_bus_type object is exported from the bus driver, but not declared. Add a declaration for use and to silence the following warning: drivers/bus/moxtet.c:105:17: warning: symbol 'moxtet_bus_type' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Marek Behun Cc: l

Re: [PATCH v3 1/2] dt-bindings: soundwire: add bindings for Qcom controller

2019-10-15 Thread Srinivas Kandagatla
On 15/10/2019 12:35, Rob Herring wrote: On Mon, Oct 14, 2019 at 12:34 PM Srinivas Kandagatla wrote: Thanks Rob for taking time to review, On 14/10/2019 18:12, Rob Herring wrote: On Fri, Oct 11, 2019 at 04:44:22PM +0100, Srinivas Kandagatla wrote: This patch adds bindings for Qualcomm sou

Re: [PATCH] i2c: i2c-stm32f7: fix a race in slave mode with arbitration loss irq

2019-10-15 Thread Fabrice Gasnier
On 10/1/19 10:51 AM, Fabrice Gasnier wrote: > When in slave mode, an arbitration loss (ARLO) may be detected before the > slave had a chance to detect the stop condition (STOPF in ISR). > This is seen when two master + slave adapters switch their roles. It > provokes the i2c bus to be stuck, busy a

[PATCH] NFSv4: add declaration of current_stateid

2019-10-15 Thread Ben Dooks
The current_stateid is exported from nfs4state.c but not declared in any of the headers. Add to nfs4_fs.h to remove the following warning: fs/nfs/nfs4state.c:80:20: warning: symbol 'current_stateid' was not declared. Should it be static? Signed-off-by: Ben Dooks --- Cc: Trond Myklebust Cc: Ann

Re: [PATCH v5 11/14] software node: move small properties inline when copying

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:18PM -0700, Dmitry Torokhov wrote: > When copying/duplicating set of properties, move smaller properties that > were stored separately directly inside property entry structures. We can > move: > > - up to 8 bytes from U8 arrays > - up to 4 words > - up to 2 double wor

Re: [PATCH] i2c: i2c-stm32f7: fix first byte to send in slave mode

2019-10-15 Thread Fabrice Gasnier
On 9/30/19 5:28 PM, Fabrice Gasnier wrote: > The slave-interface documentation [1] states "the bus driver should > transmit the first byte" upon I2C_SLAVE_READ_REQUESTED slave event: > - 'val': backend returns first byte to be sent > The driver currently ignores the 1st byte to send on this event.

[PATCH -next] clk: mediatek: mt7622: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/clk/mediatek/clk-mt7622.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk

Re: [PATCH] hugetlb: Add nohugepages parameter to prevent hugepages creation

2019-10-15 Thread Michal Hocko
On Fri 11-10-19 21:41:01, Guilherme Piccoli wrote: > On Fri, Oct 11, 2019 at 8:52 PM Qian Cai wrote: > > > > > > It simply error-prone to reuse the sysctl.conf from the first kernel, as it > > could contains lots of things that will kill kdump kernel. > > Makes sense, I agree with you. But still

Re: [PATCH v4 1/1] printf: add support for printing symbolic error names

2019-10-15 Thread Rasmus Villemoes
On 14/10/2019 15.02, Petr Mladek wrote: > On Fri 2019-10-11 15:36:17, Rasmus Villemoes wrote: >> It has been suggested several times to extend vsnprintf() to be able >> to convert the numeric value of ENOSPC to print "ENOSPC". This >> implements that as a %p extension: With %pe, one can do > > Rev

FR3SH UPDATE: Unlimited SMTP / Admin RDP / Zimbra added

2019-10-15 Thread QualiTools.store
Visit Us Now For Fresh Tools & Unlimited Senders - www.QualiTools.store

[PATCH -next] clk: mediatek: mt8183: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/clk/mediatek/clk-mt8183.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk

[PATCH v7 0/3] Add support for Amazon's Annapurna Labs EDAC for L1/L2

2019-10-15 Thread Hanna Hawa
This series adds L1 cache and L2 cache error detection and correction support for Amazon's Annapurna Labs SoCs. Alpine SoCs supports L1 and L2 single bit correction and two bits detection capability based on ARM implementation. The CPU cores in the SoC are the same and all of them support ECC. C

[PATCH v7 1/3] edac: Add support for Amazon's Annapurna Labs L1 EDAC

2019-10-15 Thread Hanna Hawa
Adds support for Amazon's Annapurna Labs L1 EDAC driver to detect and report L1 errors. Signed-off-by: Hanna Hawa --- MAINTAINERS | 5 + drivers/edac/Kconfig | 8 ++ drivers/edac/Makefile | 1 + drivers/edac/al_l1_edac.c | 190 ++

Re: [PATCH v1] hugetlbfs: don't access uninitialized memmaps in pfn_range_valid_gigantic()

2019-10-15 Thread Michal Hocko
On Tue 15-10-19 14:07:17, David Hildenbrand wrote: > Uninitialized memmaps contain garbage and in the worst case trigger > kernel BUGs, especially with CONFIG_PAGE_POISONING. They should not get > touched. > > Let's make sure that we only consider online memory (managed by the > buddy) that has in

[PATCH v7 2/3] of: EXPORT_SYMBOL_GPL of_find_next_cache_node

2019-10-15 Thread Hanna Hawa
Make of_find_next_cache_node() available for modules. Signed-off-by: Hanna Hawa --- drivers/of/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/base.c b/drivers/of/base.c index 20e0e7ee4edf..fe22c7428958 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -2172,6 +2172

[PATCH v7 3/3] edac: Add support for Amazon's Annapurna Labs L2 EDAC

2019-10-15 Thread Hanna Hawa
Adds support for Amazon's Annapurna Labs L2 EDAC driver to detect and report L2 errors. Signed-off-by: Hanna Hawa --- MAINTAINERS | 5 + drivers/edac/Kconfig | 8 ++ drivers/edac/Makefile | 1 + drivers/edac/al_l2_edac.c | 251 ++

[PATCH -next] clk: mediatek: mt6779: use devm_platform_ioremap_resource() to simplify code

2019-10-15 Thread YueHaibing
Use devm_platform_ioremap_resource() to simplify the code a bit. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/clk/mediatek/clk-mt6779.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6779.c b/drivers/clk/mediatek/clk-mt6

[PATCH] tracing: make internal data static

2019-10-15 Thread Ben Dooks
The event_class_ftrace_##call and event_##call do not seem to be used outside of trace_export.c so make them both static to avoid a number of sparse warnings: kernel/trace/trace_entries.h:59:1: warning: symbol 'event_class_ftrace_function' was not declared. Should it be static? kernel/trace/trace

[PATCH v10 1/6] nvmem: core: add nvmem_device_find

2019-10-15 Thread Thomas Bogendoerfer
nvmem_device_find provides a way to search for nvmem devices with the help of a match function simlair to bus_find_device. Reviewed-by: Srinivas Kandagatla Acked-by: Srinivas Kandagatla Signed-off-by: Thomas Bogendoerfer --- Documentation/driver-api/nvmem.rst | 2 ++ drivers/nvmem/core.c

Re: [PATCH v5 06/14] software node: get rid of property_set_pointer()

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:13PM -0700, Dmitry Torokhov wrote: > Instead of explicitly setting values of integer types when copying > property entries lets just copy entire value union when processing > non-array values. > > For value arrays we no longer use union of pointers, but rather a singl

Re: [PATCH v5 05/14] software node: clean up property_copy_string_array()

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:12PM -0700, Dmitry Torokhov wrote: > Because property_copy_string_array() stores the newly allocated pointer in the > destination property, we have an awkward code in property_entry_copy_data() > where we fetch the new pointer from dst. I don't see a problem in this f

[PATCH v1] hugetlbfs: don't access uninitialized memmaps in pfn_range_valid_gigantic()

2019-10-15 Thread David Hildenbrand
Uninitialized memmaps contain garbage and in the worst case trigger kernel BUGs, especially with CONFIG_PAGE_POISONING. They should not get touched. Let's make sure that we only consider online memory (managed by the buddy) that has initialized memmaps. ZONE_DEVICE is not applicable. page_zone()

Re: [PATCH v5 04/14] software node: mark internal macros with double underscores

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:11PM -0700, Dmitry Torokhov wrote: > Let's mark PROPERTY_ENTRY_* macros that are internal with double leading > underscores so users are not tempted to use them. We may undef them at the end of file, right? > > Signed-off-by: Dmitry Torokhov > --- > include/linux/

Re: [PATCH v5 02/14] software node: introduce PROPERTY_ENTRY_ARRAY_XXX_LEN()

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:09PM -0700, Dmitry Torokhov wrote: > Sometimes we want to initialize property entry array from a regular > pointer, when we can't determine length automatically via ARRAY_SIZE. > Let's introduce PROPERTY_ENTRY_ARRAY_XXX_LEN macros that take explicit > "len" argument.

Re: [PATCH v5 03/14] efi/apple-properties: use PROPERTY_ENTRY_U8_ARRAY_LEN

2019-10-15 Thread Andy Shevchenko
On Fri, Oct 11, 2019 at 04:07:10PM -0700, Dmitry Torokhov wrote: > Let's switch to using PROPERTY_ENTRY_U8_ARRAY_LEN() to initialize > property entries. Also, when dumping data, rely on local variables > instead of poking into the property entry structure directly. > > Signed-off-by: Dmitry Torokh

Re: [PATCH v2] sched/topology: Allow sched_asym_cpucapacity to be disabled

2019-10-15 Thread Quentin Perret
On Tuesday 15 Oct 2019 at 12:49:22 (+0100), Valentin Schneider wrote: > > > On 15/10/2019 11:58, Valentin Schneider wrote: > > On 15/10/2019 11:40, Quentin Perret wrote: > >>> @@ -2124,8 +2124,17 @@ static void detach_destroy_domains(const struct > >>> cpumask *cpu_map) > >>> int i; > >>> >

Re: [PATCH net 0/2] vsock: don't allow half-closed socket in the host transports

2019-10-15 Thread Stefan Hajnoczi
On Sat, Oct 12, 2019 at 06:38:46PM -0400, Michael S. Tsirkin wrote: > On Fri, Oct 11, 2019 at 04:34:57PM +0200, Stefano Garzarella wrote: > > On Fri, Oct 11, 2019 at 10:19:13AM -0400, Michael S. Tsirkin wrote: > > > On Fri, Oct 11, 2019 at 03:07:56PM +0200, Stefano Garzarella wrote: > > > > We are

[PATCH v2 -next] staging: rtl8723bs: remove unnecessary null check

2019-10-15 Thread YueHaibing
Null check before kfree is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing --- v2: remove unnecessary 'hwxmits' --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/

[PATCH -next] clk: ast2600: remove unused variable 'eclk_parent_names'

2019-10-15 Thread YueHaibing
drivers/clk/clk-ast2600.c:119:27: warning: eclk_parent_names defined but not used [-Wunused-const-variable=] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/clk/clk-ast2600.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/clk-ast2600.c b/drivers/clk

Re: [PATCH v2] ocfs2: fix panic due to ocfs2_wq is null

2019-10-15 Thread Joseph Qi
On 19/10/15 19:29, Yi Li wrote: > From: Yi Li > > mount.ocfs2 failed when read ocfs2 filesystem super error. > the func ocfs2_initialize_super will return before allocate ocfs2_wq. > ocfs2_dismount_volume will triggered the following panic. > > Oct 15 16:09:27 cnwarekv-205120 kernel: On-dis

Re: [PATCH] ocfs2: fix panic due to ocfs2_wq is null

2019-10-15 Thread Joseph Qi
Cc ocfs2-devel On 19/10/15 19:03, Joseph Qi wrote: > > > On 19/10/15 17:05, Yi Li wrote: >> mount.ocfs2 failed when read ocfs2 filesystem super error. >> the func ocfs2_initialize_super will return before allocate ocfs2_wq. >> ocfs2_dismount_volume will flush the ocfs2_wq, that triggered the fol

Re: [PATCH v2] sched/topology: Allow sched_asym_cpucapacity to be disabled

2019-10-15 Thread Valentin Schneider
On 15/10/2019 11:58, Valentin Schneider wrote: > On 15/10/2019 11:40, Quentin Perret wrote: >>> @@ -2124,8 +2124,17 @@ static void detach_destroy_domains(const struct >>> cpumask *cpu_map) >>> int i; >>> >>> rcu_read_lock(); >>> + >>> + if (static_key_enabled(&sched_asym_cpucapacity

RE: [PATCH v2] ACPI / processor_idle: use ndelay instead of io port access for wait

2019-10-15 Thread David Laight
From: Yin Fengwei > Sent: 15 October 2019 09:04 > In function acpi_idle_do_entry(), an ioport access is used for dummy > wait to guarantee hardware behavior. But it could trigger unnecessary > vmexit in virtualization environment. > > If we run linux as guest and export all available native C stat

[PATCH net-next] net/rds: Remove unnecessary null check

2019-10-15 Thread YueHaibing
Null check before dma_pool_destroy is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing --- net/rds/ib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/rds/ib.c b/net/rds/ib.c index 62d4ebe..3fd5f40 100644 --- a/net/rds/ib.c +++ b/net/r

[PATCH v3 3/3] Drivers: hv: vmbus: Add module parameter to cap the VMBus version

2019-10-15 Thread Andrea Parri
Currently, Linux guests negotiate the VMBus version with Hyper-V and use the highest available VMBus version they can connect to. This has some drawbacks: by using the highest available version, certain code paths are never executed and can not be tested when the guest runs on the newest host. Add

[PATCH v3 1/3] Drivers: hv: vmbus: Introduce table of VMBus protocol versions

2019-10-15 Thread Andrea Parri
The technique used to get the next VMBus version seems increasisly clumsy as the number of VMBus versions increases. Performance is not a concern since this is only done once during system boot; it's just that we'll end up with more lines of code than is really needed. As an alternative, introduc

Re: [PATCH V7 5/7] cpufreq: Register notifiers with the PM QoS framework

2019-10-15 Thread Viresh Kumar
On 22-09-19, 23:12, Dmitry Osipenko wrote: > Hello Viresh, > > This patch causes use-after-free on a cpufreq driver module reload. Please > take a look, thanks in advance. > > > [ 87.952369] > == > [ 87.953259] BUG: KASAN: use

[PATCH v3 2/3] Drivers: hv: vmbus: Enable VMBus protocol versions 4.1, 5.1 and 5.2

2019-10-15 Thread Andrea Parri
Hyper-V has added VMBus protocol versions 5.1 and 5.2 in recent release versions. Allow Linux guests to negotiate these new protocol versions on versions of Hyper-V that support them. While on this, also allow guests to negotiate the VMBus protocol version 4.1 (which was missing). Signed-off-by:

Re: [PATCH -next] staging: rtl8723bs: remove unnecessary null check

2019-10-15 Thread Dan Carpenter
On Tue, Oct 15, 2019 at 07:40:53PM +0800, YueHaibing wrote: > Null check before kfree is redundant, so remove it. > This is detected by coccinelle. > > Signed-off-by: YueHaibing > --- > drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff

[PATCH v3 0/3] Drivers: hv: vmbus: Miscellaneous improvements

2019-10-15 Thread Andrea Parri
Hi all, The patchset: - refactors the VMBus negotiation code by introducing the table of VMBus protocol versions (patch 1/3), - enables VMBus protocol version 4.1, 5.1 and 5.2 (patch 2/3), - introduces a module parameter to cap the VMBus protocol versions which a guest can negotia

Re: [PATCH 0/2] iommu/vt-d: Select PCI_PRI for INTEL_IOMMU_SVM

2019-10-15 Thread Joerg Roedel
Hey Bjorn, On Wed, Oct 09, 2019 at 05:45:49PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > I think intel-iommu.c depends on CONFIG_AMD_IOMMU in an undesirable way: > > When CONFIG_INTEL_IOMMU_SVM=y, iommu_enable_dev_iotlb() calls PRI > interfaces (pci_reset_pri() and pci_enable_pri()),

Re: [PATCH V6 2/2] mm/debug: Add tests validating architecture page table helpers

2019-10-15 Thread Michal Hocko
On Tue 15-10-19 14:51:42, Anshuman Khandual wrote: > This adds tests which will validate architecture page table helpers and > other accessors in their compliance with expected generic MM semantics. > This will help various architectures in validating changes to existing > page table helpers or add

[PATCH -next] staging: rtl8723bs: remove unnecessary null check

2019-10-15 Thread YueHaibing
Null check before kfree is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs

<    3   4   5   6   7   8   9   10   11   >