[PATCH] mfd: fix a potential NULL pointer dereference

2019-03-09 Thread Kangjie Lu
In case devm_kzalloc fails, the fix does NULL check and returns -ENOMEM upon failure so as to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/mfd/sm501.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index

Re: [PATCH v2 01/15] ARM: actions: fix a leaked reference by adding missing of_node_put

2019-03-09 Thread Russell King - ARM Linux admin
On Sat, Mar 09, 2019 at 07:47:42AM +0530, Manivannan Sadhasivam wrote: > Hi Russel, > > On Tue, Mar 05, 2019 at 11:40:48AM +, Russell King - ARM Linux admin > wrote: > > On Tue, Mar 05, 2019 at 07:33:52PM +0800, Wen Yang wrote: > > > The call to of_get_next_child returns a node pointer with

Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs

2019-03-09 Thread Aaron Ma
Hi, On 3/9/19 7:13 AM, Christopher Heiny wrote: > I'm not sure this is a safe action, due to a race condition with the > actual IRQ handler (rmi_process_interrupt_requests from rmi_driver.c). > Remember that reading the IRQ status register clears all the IRQ bits. > So you're faced with this

[PATCH] iommu/amd: Fix NULL dereference bug in match_hid_uid

2019-03-09 Thread Aaron Ma
Add a non-NULL check to fix potential NULL pointer dereference Cleanup code to call function once. Signed-off-by: Aaron Ma --- drivers/iommu/amd_iommu.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c index

[PATCH] x86/resctrl: remove unused variable

2019-03-09 Thread Peng Hao
Variable "struct rdt_resource *r" is set but not used. So remove it. Signed-off-by: Peng Hao --- arch/x86/kernel/cpu/resctrl/monitor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c index f33f11f..1573a0a

Re: [PATCH 0/9] docs: Fix various build warnings/errors

2019-03-09 Thread Markus Heiser
Am 08.03.19 um 21:16 schrieb Tobin C. Harding: Hi Tobin, the problem was a missing empty line (see my comment on this patch). The reST primer from sphinx-doc is always a good reference for the daily work http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives

Re: [PATCH v6 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-09 Thread Alex Ghiti
On 3/8/19 2:05 PM, Mike Kravetz wrote: On 3/7/19 5:20 AM, Alexandre Ghiti wrote: On systems without CONTIG_ALLOC activated but that support gigantic pages, boottime reserved gigantic pages can not be freed at all. This patch simply enables the possibility to hand back those pages to memory

Re: r8169 only works in promisc mode

2019-03-09 Thread Heiner Kallweit
On 09.03.2019 03:16, Alex Xu (Hello71) wrote: > After suspending, my r8169 (not actually 8169, just that driver) only > receives packets when in promiscuous mode. I have tried disabling all > offload features except highdma [fixed], and it doesn't fix the issue. > > I am using torvalds/linux,

Re: [PATCH] gpu: i915: fix a missing check of get_free_page

2019-03-09 Thread Chris Wilson
Quoting Kangjie Lu (2019-03-09 04:24:50) > If the allocation fails, return false to avoid potential > NULL pointer dereference No. If we fail to allocate c->tmp, we do uncached reads instead. -Chris

Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-03-09 Thread Wolfram Sang
On Fri, Feb 15, 2019 at 05:02:02PM +0800, Hsin-Yi Wang wrote: > i2c_get_dma_safe_msg_buf() allocates space based on msg->len. If threshold is > 0 and msg->len is also 0, function makes zero-length allocation, which returns > a special ZERO_SIZE_PTR instead of a NULL pointer, and this will cause

Re: [PATCH v2] i2c: cadence: try reset when master receive arbitration lost

2019-03-09 Thread Wolfram Sang
On Sat, Feb 23, 2019 at 10:48:43AM +0100, Wolfram Sang wrote: > On Tue, Feb 19, 2019 at 09:24:47AM +0800, Shikai Wang wrote: > > When the adapter receive arbitration lost error interrupts, > > cdns_i2c_master_xfer return to the caller directly instead of resetting > > the adapter which resulted in

Re: [PATCH v2] i2c: cadence: try reset when master receive arbitration lost

2019-03-09 Thread Wolfram Sang
On Sat, Mar 09, 2019 at 10:44:52AM +0100, Wolfram Sang wrote: > On Sat, Feb 23, 2019 at 10:48:43AM +0100, Wolfram Sang wrote: > > On Tue, Feb 19, 2019 at 09:24:47AM +0800, Shikai Wang wrote: > > > When the adapter receive arbitration lost error interrupts, > > > cdns_i2c_master_xfer return to the

Re: [PATCH] i2c: sis630: correct format strings

2019-03-09 Thread Wolfram Sang
On Sat, Mar 02, 2019 at 02:18:36PM +, Louis Taylor wrote: > When compiling with -Wformat, clang warns: > > drivers/i2c/busses/i2c-sis630.c:482:4: warning: format specifies type > 'unsigned short' but the argument has type 'int' [-Wformat] > smbus_base + SMB_STS,

Re: [PATCH] media: renesas-ceu: fix a potential NULL pointer dereference

2019-03-09 Thread Jacopo Mondi
Hi Kangjie, thanks for the patch. On Sat, Mar 09, 2019 at 01:14:24AM -0600, Kangjie Lu wrote: > In case of_match_device cannot find a match, the check returns > -EINVAL to avoid a potential NULL pointer dereference > > Signed-off-by: Kangjie Lu > --- > drivers/media/platform/renesas-ceu.c |

[PATCH 1/2] staging, mt7621-eth: fix api for linkmode bitmap

2019-03-09 Thread Maxim Zhukov
Start using new api for linkmode bitmap Fixed build after 3c1bcc8614db ("net: ethernet: Convert phydev advertize and supported from u32 to link mode") Signed-off-by: Maxim Zhukov --- drivers/staging/mt7621-eth/mdio.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff

[PATCH 0/2] staging, mt7621: fix build

2019-03-09 Thread Maxim Zhukov
Build fixes for mt7621 Maxim Zhukov (2): staging, mt7621-eth: fix api for linkmode bitmap staging, mt7621-pci: fix build without pci support drivers/staging/mt7621-eth/mdio.c | 12 +--- drivers/staging/mt7621-pci/Kconfig | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) --

[PATCH 2/2] staging, mt7621-pci: fix build without pci support

2019-03-09 Thread Maxim Zhukov
Add depends on PCI for PCI_MT7621 Signed-off-by: Maxim Zhukov --- drivers/staging/mt7621-pci/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/mt7621-pci/Kconfig b/drivers/staging/mt7621-pci/Kconfig index d33533872a16..c8fa17cfa807 100644 ---

reply

2019-03-09 Thread Maki T.
-- Dear Friend. My name is:Maki Tangza, a banker in one of the banks in my country Burkina Faso in African.I Hoped that you will not expose or betray this trust and confident that I am about to repose on you for the mutual benefit of our both families.I need your urgent assistance in

Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

2019-03-09 Thread Wolfram Sang
On Wed, Mar 06, 2019 at 03:12:16PM +, Bich HEMON wrote: > From: Nicolas Le Bayon > > It conforms with Reference Manual I2C timing section. > > Signed-off-by: Nicolas Le Bayon > Signed-off-by: Bich Hemon Applied to for-current, thanks! signature.asc Description: PGP signature

Re: [PATCH v2] iio: proximity: as3935: fix use-after-free on device remove

2019-03-09 Thread Tomasz Duszynski
On Fri, Mar 08, 2019 at 05:46:24PM -0500, Sven Van Asbroeck wrote: > On Fri, Mar 8, 2019 at 5:33 PM Tomasz Duszynski wrote: > > > > > > So perhaps that change deserves a separate patch because it smells like > > a code cleanup. > > Not really. This patch fixes the order in which resources are

Re: [PATCH] arm64: bcm2835: Add missing dependency on MFD_CORE.

2019-03-09 Thread Stefan Wahren
> Eric Anholt hat am 8. März 2019 um 22:07 geschrieben: > > > When adding the MFD dependency for power domains and WDT in bcm2835, I > added it only on the arm32 side and missed it for arm64. > > Fixes: 5e6acc3e678e ("bcm2835-pm: Move bcm2835-watchdog's DT probe to an > MFD.") >

Re: [PATCH] i2c: i2c-stm32f7: Fix SDADEL minimum formula

2019-03-09 Thread Wolfram Sang
On Sat, Mar 09, 2019 at 11:13:40AM +0100, Wolfram Sang wrote: > On Wed, Mar 06, 2019 at 03:12:16PM +, Bich HEMON wrote: > > From: Nicolas Le Bayon > > > > It conforms with Reference Manual I2C timing section. > > > > Signed-off-by: Nicolas Le Bayon > > Signed-off-by: Bich Hemon > >

Re: [PATCH 1/2] amba: Take device out of reset before reading pid and cid values

2019-03-09 Thread Linus Walleij
On Sat, Mar 9, 2019 at 2:59 AM Manivannan Sadhasivam wrote: > For the AMBA Primecell devices having the reset lines wired, it is > necessary to take them out of reset before reading the pid and cid values. > Earlier we were dependent on the bootloader to do this but a more cleaner > approach

Re: [PATCH] media: rcar-vin: fix a potential NULL pointer dereference

2019-03-09 Thread Niklas Söderlund
Hi Kangjie, Thanks for your patch. On 2019-03-09 01:05:27 -0600, Kangjie Lu wrote: > In case of_match_node cannot find a match, the fix returns > -EINVAL to avoid NULL pointer dereference. > > Signed-off-by: Kangjie Lu > --- > drivers/media/platform/rcar-vin/rcar-core.c | 2 ++ > 1 file

[PATCH] arm64: zynqmp: dt: Add TI PHY quirk

2019-03-09 Thread Harini Katakam
Add TI PHY strap ctrl quirk for all the HW where applicable. Signed-off-by: Harini Katakam --- arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 + arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revB.dts | 1 +

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-09 Thread Geert Uytterhoeven
Hi Greg, On Sat, Mar 9, 2019 at 8:16 AM Greg KH wrote: > On Fri, Mar 08, 2019 at 06:59:23PM +0100, Geert Uytterhoeven wrote: > > On Fri, Mar 8, 2019 at 6:05 PM Greg KH wrote: > > > On Fri, Mar 08, 2019 at 05:42:32AM -0800, Joel Fernandes wrote: > > > > On Fri, Mar 8, 2019, 3:53 AM Geert

Re: [PATCH 4/4] iommu/vt-d: Remove lazy allocation of domains

2019-03-09 Thread James Sewart
Hey Lu, > On 9 Mar 2019, at 01:53, Lu Baolu wrote: > > Hi James, > > On 3/9/19 12:57 AM, James Sewart wrote: >> Hey Lu, >>> On 8 Mar 2019, at 03:09, Lu Baolu wrote: > > Do you mind if I work on top of your patches for further cleanups and > sign off a v2 together with you?

Re: [PATCH 3/4] iommu/vt-d: Allow IOMMU_DOMAIN_DMA and IOMMU_DOMAIN_IDENTITY to be allocated

2019-03-09 Thread James Sewart
Hey Dmitry, > On 8 Mar 2019, at 01:20, Dmitry Safonov wrote: > > On 3/4/19 3:46 PM, James Sewart wrote: >> +static inline int domain_is_initialised(struct dmar_domain *domain) >> +{ >> +return domain->flags & DOMAIN_FLAG_INITIALISED; >> +} > > Maybe check it in intel_iommu_domain_free(),

Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read

2019-03-09 Thread Harini Katakam
Hi Andrew, On Thu, Feb 28, 2019 at 1:03 PM Harini Katakam wrote: > > Hi, > On Wed, Feb 27, 2019 at 2:35 PM Harini Katakam wrote: > > > > Hi Andrew, Paul, > > > > On Wed, Feb 27, 2019 at 2:15 PM Michal Simek > > wrote: > > > > > > On 21. 02. 19 12:03, Michal Simek wrote: > > > > On 21. 02. 19

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-09 Thread Greg KH
On Sat, Mar 09, 2019 at 12:40:01PM +0100, Geert Uytterhoeven wrote: > > Signing keys should be kept secure, or better yet, just deleted entirely > > after creating and signing with them. That's what I do for my kernels > > and I'm pretty sure that some distros also do this. That way there's no >

Re: [PATCH] proc/sysctl: Fix NULL pointer dereference in put_links

2019-03-09 Thread YueHaibing
On 2019/3/9 11:58, Luis Chamberlain wrote: > I so excited about the report, thanks this is awesome work!! However it > seemed possibly like a paper-over a different issue. I'm not convinced yet. > > If prefer a bit more investigation until we can be 100% sure. At this point > my position would

Un appel a la candidature pour 400 bourses d'études Canadienne au titre de l'année académique 2019

2019-03-09 Thread Université Laval Canada
-- NB: Veuillez partager cette annonce dans les universités, écoles ainsi qu'à vos proches. Par l'intermédiaire de la direction régional des bourses étrangères canadienne, le secrétariat d'état a l'étude et a la recherche de l’Université Laval lance un appel a la candidature pour 400 bourses

Re: [PATCH v2] iio: proximity: as3935: fix use-after-free on device remove

2019-03-09 Thread Sven Van Asbroeck
On Sat, Mar 9, 2019 at 5:24 AM Tomasz Duszynski wrote: > > What I meant is that delayed work initialization could stay where it was. > The reason you moved it is readability improvement so to me it is more > of a cleanup hence I suggested a separate patch. Up to you. Ah, I see what you mean now.

Re: [PATCH 7/7] powerpc/book3s32: Implement Kernel Userspace Access Protection

2019-03-09 Thread christophe leroy
Hi Russel, As you can see in patchwork, snowpatch report 3477 new sparse warning(s) with this series. Half of them are because of a cast of __user pointer to u32. I'll fix it by adding __force to the cast. The other half comes from the use of min() macro. The induced warning is "warning:

Re: [PATCH] scripts/kconfig/Makefile: use KCONFIG_CONFIG if set

2019-03-09 Thread Arseny Maslennikov
On Fri, Feb 22, 2019 at 12:58:58AM +0300, Arseny Maslennikov wrote: > In a kernel source tree: > > % make mrproper > % make KCONFIG_CONFIG=.myconfig kvmconfig > HOSTCC scripts/basic/fixdep > HOSTCC scripts/kconfig/conf.o > HOSTCC scripts/kconfig/confdata.o > HOSTCC

[PATCH] scripts/kconfig/Makefile: kvmconfig: use KCONFIG_CONFIG if set

2019-03-09 Thread Arseny Maslennikov
In a kernel source tree: % make mrproper % make KCONFIG_CONFIG=.myconfig kvmconfig HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/preprocess.o LEX

[PATCH] clocksource: cadence_ttc: fix memory leak in ttc_setup_clockevent

2019-03-09 Thread Yue Haibing
From: YueHaibing Add the missing kfree() in ttc_setup_clockevent() to free the mem before error return. Fixes: 70504f311d4b ("clocksource/drivers/cadence_ttc: Convert init function to return error") Signed-off-by: YueHaibing --- drivers/clocksource/timer-cadence-ttc.c | 1 + 1 file changed,

Re: [PATCH] iio: hmc: fix a potential NULL pointer dereference

2019-03-09 Thread Tomasz Duszynski
On Fri, Mar 08, 2019 at 11:15:32PM -0600, Kangjie Lu wrote: > devm_regmap_init_i2c may fail and return NULL. The fix returns > the error when it fails. > > Signed-off-by: Kangjie Lu > --- > drivers/iio/magnetometer/hmc5843_i2c.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >

[PATCH] net: can: Increase tx queue length

2019-03-09 Thread Appana Durga Kedareswara rao
While stress testing the CAN interface on xilinx axi can in loopback mode getting message "write: no buffer space available" Increasing device tx queue length resolved the above mentioned issue. Signed-off-by: Appana Durga Kedareswara rao --- --> Network devices default tx_queue_len is 1000 but

Re: Raid 5 painfully slow with linux 5.0.0

2019-03-09 Thread Michael Leun
Hello, Am 08.03.19 um 20:53 schrieb linux-raid-20190...@newton.leun.net: since Linux 5.0 my md raid5 is painfully slow, ~100 kb/s, bisected that, bisect blames 5d2ee7122c73be6a3b6bfe90d237e8aed737cfaa is the first bad commit commit 5d2ee7122c73be6a3b6bfe90d237e8aed737cfaa Author: Jens Axboe

Re: [PATCH] net: can: Increase tx queue length

2019-03-09 Thread Andre Naujoks
On 3/9/19 3:07 PM, Appana Durga Kedareswara rao wrote: > While stress testing the CAN interface on xilinx axi can > in loopback mode getting message "write: no buffer space available" > Increasing device tx queue length resolved the above mentioned issue. No need to patch the kernel: $ ip link

Re: [PATCH] clocksource: cadence_ttc: fix memory leak in ttc_setup_clockevent

2019-03-09 Thread Daniel Lezcano
Hi Yue, I appreciate the fix but usually we add a rollback for all the operations done in the init function. Please, migrate the init function to the timer-of API, so the rollback will be automatically handled. Example here:

[tip:sched/urgent] sched/core: Fix buffer overflow in cgroup2 property cpu.max

2019-03-09 Thread tip-bot for Konstantin Khlebnikov
Commit-ID: 5105fa52df1f249f996308188dd1e85c3ae62de5 Gitweb: https://git.kernel.org/tip/5105fa52df1f249f996308188dd1e85c3ae62de5 Author: Konstantin Khlebnikov AuthorDate: Wed, 6 Mar 2019 20:11:42 +0300 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:03:51 +0100 sched/core: Fix

[tip:sched/urgent] sched/cpufreq: Fix 32-bit math overflow

2019-03-09 Thread tip-bot for Peter Zijlstra
Commit-ID: f1212844e9dc3a31d41f99713c5522acf92ff291 Gitweb: https://git.kernel.org/tip/f1212844e9dc3a31d41f99713c5522acf92ff291 Author: Peter Zijlstra AuthorDate: Tue, 5 Mar 2019 09:32:02 +0100 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:03:51 +0100 sched/cpufreq: Fix 32-bit

[tip:sched/urgent] sched/fair: Tune down misfit NOHZ kicks

2019-03-09 Thread tip-bot for Valentin Schneider
Commit-ID: 88a2f7ffd19245a75143a8180f75c0972cff0350 Gitweb: https://git.kernel.org/tip/88a2f7ffd19245a75143a8180f75c0972cff0350 Author: Valentin Schneider AuthorDate: Mon, 11 Feb 2019 17:59:45 + Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:03:53 +0100 sched/fair: Tune

[tip:sched/urgent] sched/fair: Comment some nohz_balancer_kick() kick conditions

2019-03-09 Thread tip-bot for Valentin Schneider
Commit-ID: 66856ff8e727e7da7da44a634f314b236510f419 Gitweb: https://git.kernel.org/tip/66856ff8e727e7da7da44a634f314b236510f419 Author: Valentin Schneider AuthorDate: Mon, 11 Feb 2019 17:59:44 + Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:03:52 +0100 sched/fair: Comment

[tip:sched/urgent] sched/fair: Skip LLC NOHZ logic for asymmetric systems

2019-03-09 Thread tip-bot for Valentin Schneider
Commit-ID: ce28d2e53cda890771360d32259495dd6a9c4253 Gitweb: https://git.kernel.org/tip/ce28d2e53cda890771360d32259495dd6a9c4253 Author: Valentin Schneider AuthorDate: Mon, 11 Feb 2019 17:59:46 + Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:03:53 +0100 sched/fair: Skip LLC

[tip:perf/urgent] perf/ring_buffer: Use high order allocations for AUX buffers optimistically

2019-03-09 Thread tip-bot for Alexander Shishkin
Commit-ID: 5768402fd9c6e872252b5268ad85e3fbae4fe26b Gitweb: https://git.kernel.org/tip/5768402fd9c6e872252b5268ad85e3fbae4fe26b Author: Alexander Shishkin AuthorDate: Fri, 15 Feb 2019 13:47:27 +0200 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:10:30 +0100 perf/ring_buffer:

[tip:perf/urgent] perf/x86/intel/uncore: Fix client IMC events return huge result

2019-03-09 Thread tip-bot for Kan Liang
Commit-ID: 8041ffd36f42d8521d66dd1e236feb58cecd68bc Gitweb: https://git.kernel.org/tip/8041ffd36f42d8521d66dd1e236feb58cecd68bc Author: Kan Liang AuthorDate: Wed, 27 Feb 2019 08:57:29 -0800 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:10:31 +0100 perf/x86/intel/uncore: Fix

RE: [PATCH] net: can: Increase tx queue length

2019-03-09 Thread Appana Durga Kedareswara Rao
Hi Andre, > > On 3/9/19 3:07 PM, Appana Durga Kedareswara rao wrote: > > While stress testing the CAN interface on xilinx axi can in loopback > > mode getting message "write: no buffer space available" > > Increasing device tx queue length resolved the above mentioned issue. > > No need to

[tip:perf/urgent] perf/core: Mark expected switch fall-through

2019-03-09 Thread tip-bot for Gustavo A. R. Silva
Commit-ID: 43aa378b41700650e4ddbd068650f9fe4ab496df Gitweb: https://git.kernel.org/tip/43aa378b41700650e4ddbd068650f9fe4ab496df Author: Gustavo A. R. Silva AuthorDate: Tue, 12 Feb 2019 14:54:30 -0600 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:10:32 +0100 perf/core: Mark

[tip:locking/urgent] locking/lockdep: Only call init_rcu_head() after RCU has been initialized

2019-03-09 Thread tip-bot for Bart Van Assche
Commit-ID: 0126574fca2ce0f0d5beb9dade6efb823ff7407b Gitweb: https://git.kernel.org/tip/0126574fca2ce0f0d5beb9dade6efb823ff7407b Author: Bart Van Assche AuthorDate: Sun, 3 Mar 2019 10:19:01 -0800 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:15:51 +0100 locking/lockdep: Only

[tip:locking/urgent] workqueue, lockdep: Fix an alloc_workqueue() error path

2019-03-09 Thread tip-bot for Bart Van Assche
Commit-ID: 009bb421b6ceb7916ce627023d0eb7ced04c8910 Gitweb: https://git.kernel.org/tip/009bb421b6ceb7916ce627023d0eb7ced04c8910 Author: Bart Van Assche AuthorDate: Sun, 3 Mar 2019 14:00:46 -0800 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:15:52 +0100 workqueue, lockdep: Fix

[tip:locking/urgent] workqueue, lockdep: Fix a memory leak in wq->lock_name

2019-03-09 Thread tip-bot for Qian Cai
Commit-ID: 69a106c00e8554a7e6b3f4bb2967332670f89337 Gitweb: https://git.kernel.org/tip/69a106c00e8554a7e6b3f4bb2967332670f89337 Author: Qian Cai AuthorDate: Wed, 6 Mar 2019 19:27:31 -0500 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:15:52 +0100 workqueue, lockdep: Fix a

[tip:locking/urgent] locking/lockdep: Avoid a Clang warning

2019-03-09 Thread tip-bot for Arnd Bergmann
Commit-ID: 3fe7522fb766f6ee76bf7bc2837f1e3cc52c4e27 Gitweb: https://git.kernel.org/tip/3fe7522fb766f6ee76bf7bc2837f1e3cc52c4e27 Author: Arnd Bergmann AuthorDate: Thu, 7 Mar 2019 08:52:12 +0100 Committer: Ingo Molnar CommitDate: Sat, 9 Mar 2019 14:15:51 +0100 locking/lockdep: Avoid a

Re: [PATCH] net: can: Increase tx queue length

2019-03-09 Thread Andre Naujoks
On 3/9/19 3:40 PM, Appana Durga Kedareswara Rao wrote: > Hi Andre, > > >> >> On 3/9/19 3:07 PM, Appana Durga Kedareswara rao wrote: >>> While stress testing the CAN interface on xilinx axi can in loopback >>> mode getting message "write: no buffer space available" >>> Increasing device tx queue

[PATCH 3/3] ARM: dts: exynos: Extend the eMMC node on Arndale Octa

2019-03-09 Thread Krzysztof Kozlowski
Describe properly the MMC0 node (with attached embedded MMC memory) on Arndale Node by: 1. Adding the regulator for host interface (although it still has to be "always-on" so the board with Linaro U-Boot will boot; 2. Using "non-removable" instead of "broken-cd" property, because eMMC is

[PATCH 1/3] ARM: dts: exynos: Adjust ldo23 and ldo27 to lower levels on Arndale Octa

2019-03-09 Thread Krzysztof Kozlowski
Although on the schematics of Insignal Arndale Octa board the PVDD_MIFS_1V1 (ldo23) and PVDD_G3DS_1V0 (ldo27) are marked as 1.2 V, the vendor v3.4 Android kernel sets them lower. Also name suggests that they should work on 1.1 V and 1.0 V respectively, not 1.2 V. Signed-off-by: Krzysztof

[PATCH 2/3] ARM: dts: exynos: Add support for UHS-I SD cards on Arndale Octa

2019-03-09 Thread Krzysztof Kozlowski
The Exynos5420's Mobile Storage Host supports SD cards in UHS-I standard (SD specification v3.0), with 1.8 V signaling in SD UHS DDR50. Adjust the regulator and add necessary capability properties. Change the SDR and DDR timings to match values in Insignal v3.4 Android kernel. Tested with SD

Re: [PATCH] arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64

2019-03-09 Thread Tomohiro Mayama
On 2019/03/09 11:52, Katsuhiro Suzuki wrote: > Hello Mayama-san, > > On 2019/03/08 1:18, Tomohiro Mayama wrote: >> This patch makes USB ports functioning again. >> >> Signed-off-by: Tomohiro Mayama >> --- >>   arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 3 +-- >>   1 file changed, 1

Re: [PATCH] iio: max9611: fix a NULL pointer dereference

2019-03-09 Thread Tomasz Duszynski
On Fri, Mar 08, 2019 at 10:51:40PM -0600, Kangjie Lu wrote: > of_match_device may return NULL when it fails, and in this case, > there will be a NULL pointer dereference. The fix returns > EINVAL when of_match_device returns NULL. > > Signed-off-by: Kangjie Lu > --- > drivers/iio/adc/max9611.c |

[PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-09 Thread Sean Fu
Change the allocation of bp->b_pages to use kmem_zalloc instead of kmem_alloc. Remove unnecessary memset for bp->b_pages. This reduces text size by 42 bytes. Before: textdata bss dec hex filename 23335 588 8 239315d7b ./fs/xfs/xfs_buf.o After: textdata

[PATCH v2 2/3] scripts/package/mkdebian: avoid implicit effects

2019-03-09 Thread Arseny Maslennikov
* The man page for dpkg-source(1) notes: > -b, --build directory [format-specific-parameters] > Build a source package (--build since dpkg 1.17.14). > <...> > > dpkg-source will build the source package with the first > format found in this

[PATCH v2 1/3] scripts/package/Makefile: put proper config in source tarball

2019-03-09 Thread Arseny Maslennikov
It is widely known that one can build a kernel without a .config in the source tree by setting KCONFIG_CONFIG equal to the actual configuration file path. When making a *-pkg target, make(1) prepares a source tarball and tries to pack `.config' in there regardless of the value of KCONFIG_CONFIG,

[PATCH v2 3/3] package: {mkdebian,Makefile}: ignore .config in dpkg-source diffs

2019-03-09 Thread Arseny Maslennikov
* We'd like to make dpkg-source ignore certain filepath patterns while producing the .diff.gz as part of a Debian source package. The relationship between dpkg-source's -i and --extend-diff-ignore options is quite complicated[1]. It's thus not very convenient to specify file path patterns

RE: [PATCH] net: can: Increase tx queue length

2019-03-09 Thread Toke Høiland-Jørgensen
Appana Durga Kedareswara Rao writes: > Hi Andre, > > >> >> On 3/9/19 3:07 PM, Appana Durga Kedareswara rao wrote: >> > While stress testing the CAN interface on xilinx axi can in loopback >> > mode getting message "write: no buffer space available" >> > Increasing device tx queue length

Re: [PATCH 1/5] lib/sort: Make swap functions more generic

2019-03-09 Thread lkml
Thnk you for the feedback! Andy Shevchenko wrote: > On Thu, Feb 21, 2019 at 06:30:28AM +, George Spelvin wrote: >> +#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS > > Why #ifdef is better than if (IS_ENABLED()) ? Because CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS is bool and not tristate.

Re: [GIT PULL 00/35] perf/core improvements and fixes

2019-03-09 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit c978b9460fe1d4a1e1effa0abd6bd69b18a098a8: > > Merge tag 'perf-core-for-mingo-5.1-20190225' of >

[PATCH v2] arm64: dts: rockchip: Fix vcc_host1_5v GPIO polarity on rk3328-rock64

2019-03-09 Thread Tomohiro Mayama
This patch makes USB ports functioning again. Suggested-by: Robin Murphy Signed-off-by: Tomohiro Mayama Tested-by: Katsuhiro Suzuki --- v2: * Added Suggested-by and Tested-by tags --- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read

2019-03-09 Thread Andrew Lunn
> Related to this, I have a query on how the DT node for gmii2rgmii should look. > One of the users of gmii2rgmii is Cadence macb driver. In Xilinx tree, we use > this piece of code to register this mdiobus: > + mdio_np = of_get_child_by_name(np, "mdio"); > + if (mdio_np) { > +

Re: [PATCH 1/3] dt-bindings: Add doc for the ingenic-drm driver

2019-03-09 Thread Paul Cercueil
Hi Linus, On Fri, Mar 8, 2019 at 11:23 PM, Linus Walleij wrote: On Fri, Mar 1, 2019 at 11:41 PM Paul Cercueil > wrote: I also have a board with a "smart" panel (ili9331) that needs a special configuration in the IP. There is nothing in the drm_panel interface

Re: [PATCH v5 1/2] iio: adc: ti-ads7950: Fix improper use of mlock

2019-03-09 Thread Tomasz Duszynski
On Fri, Mar 08, 2019 at 02:03:27PM -0800, justinpo...@gmail.com wrote: > From: Justin Chen > > Indio->mlock is used for protecting the different iio device modes. > It is currently not being used in this way. Replace the lock with > an internal lock specifically used for protecting the SPI

Re: [PATCH v2 1/3] scripts/package/Makefile: put proper config in source tarball

2019-03-09 Thread Arseny Maslennikov
On Sat, Mar 09, 2019 at 06:43:05PM +0300, Arseny Maslennikov wrote: > It is widely known that one can build a kernel without a .config in the > source tree by setting KCONFIG_CONFIG equal to the actual configuration > file path. > > When making a *-pkg target, make(1) prepares a source tarball

Re: [PATCH v4 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-09 Thread Karim Yaghmour
On 3/9/19 7:11 AM, Greg KH wrote: There is no licensing issue, see my follow-up comment about that. It's all in ease-of-use here. You want to build a trace function against a running kernel, and now you have the header files for that specific kernel right there in the kernel itself to build

Re: r8169 only works in promisc mode

2019-03-09 Thread Alex Xu
Quoting Heiner Kallweit (2019-03-09 09:33:40) > On 09.03.2019 03:16, Alex Xu (Hello71) wrote: > > After suspending, my r8169 (not actually 8169, just that driver) only > > receives packets when in promiscuous mode. I have tried disabling all > > offload features except highdma [fixed], and it

Re: [PATCH 0/3] mincore() and IOCB_NOWAIT adjustments

2019-03-09 Thread Linus Torvalds
On Wed, Mar 6, 2019 at 3:38 PM Andrew Morton wrote: > > Linus, do you have thoughts on > http://lkml.kernel.org/r/20190130124420.1834-4-vba...@suse.cz ? I think that's fine, and probably the right thing to do, but I also suspect that nobody actually cares ;( Linus

Re: [PATCH v3 2/3] iio: chemical: sgp30: Support Sensirion SGP30/SGPC3 sensors

2019-03-09 Thread Jonathan Cameron
On Thu, 07 Mar 2019 21:34:12 +0100 Andreas Brauchli wrote: > On Sat, 2018-12-22 at 16:56 +, Jonathan Cameron wrote: > > On Tue, 18 Dec 2018 18:44:40 +0100 > > Tomasz Duszynski wrote: > > > > > On Mon, Dec 17, 2018 at 11:59:36AM +, Jonathan Cameron wrote: > > > > On Sun, 16 Dec 2018

Re: [PATCH v3 1/2] iio/chemical/bme680: Report temperature in millidegrees

2019-03-09 Thread Jonathan Cameron
On Wed, 6 Mar 2019 08:31:47 +0100 Mike Looijmans wrote: > The standard unit for temperature is millidegrees Celcius. Adapt the > driver to report in millidegrees instead of degrees. > > Signed-off-by: Mike Looijmans I tweaked the patch title to make it obvious this was a fix (added the word

Re: [PATCH RESEND v5 2/5] namei: O_BENEATH-style path resolution flags

2019-03-09 Thread Linus Torvalds
On Wed, Mar 6, 2019 at 11:14 AM Aleksa Sarai wrote: > > This is a refresh of Al's AT_NO_JUMPS patchset[1] (which was a variation > on David Drysdale's O_BENEATH patchset[2], which in turn was based on > the Capsicum project[3]). Input from Linus and Andy in the AT_NO_JUMPS > thread[4] determined

[PATCH] staging: erofs: add a new line after variable declaration

2019-03-09 Thread Julio Bianco
Add a new line after variable declaration Signed-off-by: Julio Bianco --- drivers/staging/erofs/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/erofs/inode.c b/drivers/staging/erofs/inode.c index 924b8dfc7a8f..1cf1afe2d73a 100644 --- a/drivers/staging/erofs/inode.c

Re: [PATCH 04/11] perf data: Make perf_data__size to work over directory

2019-03-09 Thread Jiri Olsa
On Fri, Mar 08, 2019 at 02:33:05PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 08, 2019 at 02:47:38PM +0100, Jiri Olsa escreveu: > > Making perf_data__size to return proper size > > for directory data. > > > > Link: http://lkml.kernel.org/n/tip-t4dm8cctat2ginmy2bb08...@git.kernel.org > >

Re: [PATCH 07/11] perf session: Add __perf_session__process_dir_events function

2019-03-09 Thread Jiri Olsa
On Fri, Mar 08, 2019 at 03:38:05PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > + /* Read data from the header file.. */ > > + ret = reader__process_events(, session, ); > > + if (ret) > > + goto out_err; > > + > > + /* ... and continue with data files. */ > > + for (i =

Re: [PATCH 05/11] perf header: Add DIR_FORMAT feature to describe directory data

2019-03-09 Thread Jiri Olsa
On Fri, Mar 08, 2019 at 03:24:35PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Mar 08, 2019 at 02:47:39PM +0100, Jiri Olsa escreveu: > > The data files layout is described by HEADER_DIR_FORMAT > > feature. Currently it holds only version number (1): > > > > uint64_t version; > > > >

Re: [PATCH RESEND v5 2/5] namei: O_BENEATH-style path resolution flags

2019-03-09 Thread Christian Brauner
On Sat, Mar 09, 2019 at 09:00:58AM -0800, Linus Torvalds wrote: > On Wed, Mar 6, 2019 at 11:14 AM Aleksa Sarai wrote: > > > > This is a refresh of Al's AT_NO_JUMPS patchset[1] (which was a variation > > on David Drysdale's O_BENEATH patchset[2], which in turn was based on > > the Capsicum

Re: [PATCH v3 2/2] iio/chemical/bme680: Fix SPI read interface

2019-03-09 Thread Jonathan Cameron
On Wed, 6 Mar 2019 08:31:48 +0100 Mike Looijmans wrote: > The SPI interface implementation was completely broken. > > When using the SPI interface, there are only 7 address bits, the upper bit > is controlled by a page select register. The core needs access to both > ranges, so implement

Re: [PATCH v3] io: accel: kxcjk1013: restore the range after resume.

2019-03-09 Thread Jonathan Cameron
On Wed, 6 Mar 2019 09:43:24 +0100 Hans de Goede wrote: > Hi, > > On 06-03-19 03:32, Chen, Hu wrote: > > From: "he, bo" > > > > On some laptops, kxcjk1013 is powered off when system enters S3. We need > > restore the range regiter during resume. Otherwise, the sensor doesn't > > work properly

Re: [PATCH] xfs: Use kmem_zalloc for bp->b_pages.

2019-03-09 Thread Darrick J. Wong
On Sat, Mar 09, 2019 at 11:36:36PM +0800, Sean Fu wrote: > Change the allocation of bp->b_pages to use kmem_zalloc instead of > kmem_alloc. > Remove unnecessary memset for bp->b_pages. > > This reduces text size by 42 bytes. > Before: >text data bss dec hex filename >

Re: [PATCH v2 1/3] iio: light: Add driver for ap3216c

2019-03-09 Thread Jonathan Cameron
On Mon, 4 Mar 2019 11:25:01 -0500 Sven Van Asbroeck wrote: > On Sun, Mar 3, 2019 at 9:38 AM Jonathan Cameron wrote: > > > > Hmm. Just been thinking a bit about the events on here and wondered > > if it is possible to mask them through careful use of the threshold > > values - i.e. can we stop

Re: [PATCH v3 2/3] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-03-09 Thread Jonathan Cameron
On Sun, 3 Mar 2019 15:33:47 + Beniamin Bia wrote: > Thank you for reviewing my patch. > > I'm gonna document the current state of driver in an ABI and than > propose in another patch modifications from current form. What do you > think about this approach? The problem here is that it is

Re: [PATCH v4 4/9] staging:iio:ad7780: add chip ID values and mask

2019-03-09 Thread Jonathan Cameron
On Fri, 8 Mar 2019 21:19:29 -0300 Renato Lui Geh wrote: > On 03/04, Ardelean, Alexandru wrote: > >On Sun, 2019-03-03 at 14:53 +, Jonathan Cameron wrote: > >> [External] > >> > >> > >> On Sun, 3 Mar 2019 11:01:09 -0300 > >> Renato Lui Geh wrote: > >> > >> > On 03/01, Ardelean, Alexandru

[PATCH] powerpc/irq: drop __irq_offset_value

2019-03-09 Thread Christophe Leroy
This patch drops__irq_offset_value which has not been used since commit 9c4cb8251513 ("powerpc: Remove use of CONFIG_PPC_MERGE") This removes a sparse warning. Fixes: 9c4cb8251513 ("powerpc: Remove use of CONFIG_PPC_MERGE") Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/irq.c | 3 ---

[PATCH] staging: gdm724x: Fix alignment in gdm_mux

2019-03-09 Thread Ignacio Losiggio
This patch modifies the alignment and linebreaks in gdm_mux in order to make the code more concise. Signed-off-by: Ignacio Losiggio --- drivers/staging/gdm724x/gdm_mux.c | 35 ++- drivers/staging/gdm724x/gdm_mux.h | 2 +- 2 files changed, 17 insertions(+), 20

Re: [PATCH v2 3/4] staging: iio: ad5933: add ABI documentation

2019-03-09 Thread Jonathan Cameron
On Sun, 3 Mar 2019 16:30:07 -0300 Marcelo Schmitt wrote: > On 03/03, Jonathan Cameron wrote: > > On Thu, 28 Feb 2019 23:53:14 -0300 > > Marcelo Schmitt wrote: > > > > > Add an ABI documentation for the ad5933 driver. > > > > > > Signed-off-by: Marcelo Schmitt > > Hi Marcelo, > > > > The

Re: [PATCH] mailmap: Update email for Sean Nyekjaer

2019-03-09 Thread Jonathan Cameron
On Mon, 4 Mar 2019 11:08:08 +0100 Sean Nyekjaer wrote: > As I'll no longer be working with Prevas, add a mailmap entry so > any mail directed towards me reaches the appropriate mailbox. > > Signed-off-by: Sean Nyekjaer Applied. Thanks, Jonathan > --- > .mailmap | 1 + > 1 file changed, 1

Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support

2019-03-09 Thread Jonathan Cameron
On Tue, 5 Mar 2019 22:01:38 +0100 Martin Blumenstingl wrote: > On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong > wrote: > > > > Update the documentation to expicitly support the Meson-G12A SoC. > typo: explicitly > > > Signed-off-by: Neil Armstrong > apart from that: > Reviewed-by: Martin

Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A

2019-03-09 Thread Jonathan Cameron
On Tue, 5 Mar 2019 22:02:48 +0100 Martin Blumenstingl wrote: > On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong > wrote: > > > > Add the SAR ADC driver for the Amlogic Meson-G12A SoC. > > > > Signed-off-by: Neil Armstrong > Reviewed-by: Martin Blumenstingl > > this new compatible string

Re: [PATCH] iio: adc: fix uninitialized variable warning

2019-03-09 Thread Jonathan Cameron
On Mon, 4 Mar 2019 21:03:07 +0100 Arnd Bergmann wrote: > The pm8xxx_xoadc_probe() function triggers a bogus warning > about an uninitialized variable: > > drivers/iio/adc/qcom-pm8xxx-xoadc.c: In function 'pm8xxx_xoadc_probe': > drivers/iio/adc/qcom-pm8xxx-xoadc.c:633:8: error: 'ch' may be used

Re: [PATCH v2 1/3] dt-bindings: Add vendor prefix for Kionix, Inc.

2019-03-09 Thread Jonathan Cameron
On Mon, 4 Mar 2019 10:19:10 -0500 Robert Yang wrote: > Kionix manufactured MEMs sensors. There are Kionix acceleromoter sensor > drivers which can be used with device tree. > > Signed-off-by: Robert Yang I'll apply these now before I forget them but if a DT person wants to comment I won't be

Re: [PATCH v2 2/3] dt-bindings: iio: accel: kxcjk1013: Add device tree binding documentation

2019-03-09 Thread Jonathan Cameron
On Mon, 4 Mar 2019 10:19:11 -0500 Robert Yang wrote: > Document device tree bindings for Kionix KXCJK-1013 Accelerometer driver. > > Signed-off-by: Robert Yang Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. thanks, Jonathan > --- >

Re: [PATCH RESEND v5 2/5] namei: O_BENEATH-style path resolution flags

2019-03-09 Thread Linus Torvalds
On Sat, Mar 9, 2019 at 9:26 AM Christian Brauner wrote: > > Aside from that I want to point out that it is non-trivial to do this in > user space. Oh, absolutely agreed. It's easy to do it in the kernel, and doing it anywhere else ends up having horrible races that the kernel has to deal with

  1   2   3   >