[PATCH v3 4/5] dt: lm3532: Add property for full scale current.

2019-08-20 Thread Dan Murphy
Add a property for each control bank to configure the full scale current setting for the device. Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- v3 - No changes - https://lore.kernel.org/patchwork/patch/1114540/ Documentation/devicetree/bindings/leds/leds-lm3532.txt | 4 1 file

[PATCH v3 2/5] leds: lm3532: Change the define for the fs current register

2019-08-20 Thread Dan Murphy
Change the define name of the full scale current registers. Signed-off-by: Dan Murphy --- v3 - New patch - https://lore.kernel.org/patchwork/patch/1114542/ drivers/leds/leds-lm3532.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/leds/leds-lm3532.c

Re: [PATCH] media: saa7134: keep demod i2c gate open on Medion 7134

2019-08-20 Thread Matthias Schwarzott
Hi Maciej, some comment about wording in commit message and code-comment. As far as I know the terms are defined like this: * gate open = i2c-clients behind gate can be reached * gate closed = i2c-clients behind gate are not reachable Regards Matthias Am 19.08.19 um 00:55 schrieb Maciej S.

Re: [PATCH v3 4/8] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-08-20 Thread Andrew Murray
On Tue, Aug 20, 2019 at 05:06:22PM +, Chocron, Jonathan wrote: > On Tue, 2019-08-20 at 16:25 +0100, Andrew Murray wrote: > > On Tue, Aug 20, 2019 at 02:52:30PM +, Chocron, Jonathan wrote: > > > On Mon, 2019-08-19 at 19:23 +0100, Andrew Murray wrote: > > > > On Tue, Jul 23, 2019 at

[PATCH v3 5/5] leds: lm3532: Add full scale current configuration

2019-08-20 Thread Dan Murphy
Allow the full scale current to be configured at init. Valid rangles are 5mA->29.8mA. Signed-off-by: Dan Murphy --- v3 - Fixed variable movement change and updated the fs current register calculation - https://lore.kernel.org/patchwork/patch/1114544/ drivers/leds/leds-lm3532.c | 25

[PATCH v3 3/5] leds: lm3532: Fixes for the driver for stability

2019-08-20 Thread Dan Murphy
Fixed misspelled words, added error check during probe on the init of the registers, and fixed ALS/I2C control mode. Fixes: e37a7f8d77e1 ("leds: lm3532: Introduce the lm3532 LED driver") Reported-by: Pavel Machek Acked-by: Pavel Machek Signed-off-by: Dan Murphy --- v3 - No changes -

[PATCH v3 1/5] leds: lm3532: Fix brightness control for i2c mode

2019-08-20 Thread Dan Murphy
Fix the brightness control for I2C mode. Instead of changing the full scale current register update the ALS target register for the appropriate banks. In addition clean up some code errors and random misspellings found during coding. Tested on Droid4 as well as LM3532 EVM connected to a

Re: [PATCH v6 07/13] rtc: mt6397: improvements of rtc driver

2019-08-20 Thread Alexandre Belloni
On 18/08/2019 15:56:05+0200, Frank Wunderlich wrote: > From: Josef Friedl > > - use regmap_read_poll_timeout to drop while-loop > - use devm-api to drop remove-callback > > Suggested-by: Alexandre Belloni > Signed-off-by: Josef Friedl > Signed-off-by: Frank Wunderlich Acked-by: Alexandre

Re: [PATCH v6 09/13] rtc: mt6397: add compatible for mt6323

2019-08-20 Thread Alexandre Belloni
On 18/08/2019 15:56:07+0200, Frank Wunderlich wrote: > From: Josef Friedl > > use mt6397 rtc driver also for mt6323 but with different > base/size see "mfd: mt6323: add mt6323 rtc+pwrc" > > Signed-off-by: Josef Friedl > Signed-off-by: Frank Wunderlich Acked-by: Alexandre Belloni > --- >

Re: [PATCH v6 05/13] rtc: mt6397: move some common definitions into rtc.h

2019-08-20 Thread Alexandre Belloni
On 18/08/2019 15:56:03+0200, Frank Wunderlich wrote: > From: Josef Friedl > > move code to separate header-file to reuse definitions later > in poweroff-driver (drivers/power/reset/mt6323-poweroff.c) > > Suggested-by: Frank Wunderlich > Signed-off-by: Josef Friedl > Signed-off-by: Frank

Re: [PATCH V40 11/29] PCI: Lock down BAR access when the kernel is locked down

2019-08-20 Thread Bjorn Helgaas
On Mon, Aug 19, 2019 at 05:17:47PM -0700, Matthew Garrett wrote: > From: Matthew Garrett > > Any hardware that can potentially generate DMA has to be locked down in > order to avoid it being possible for an attacker to modify kernel code, > allowing them to circumvent disabled module loading or

Re: [PATCH] vsock: Fix a lockdep warning in __vsock_release()

2019-08-20 Thread David Miller
From: Dexuan Cui Date: Tue, 20 Aug 2019 03:14:22 + > +static void __vsock_release2(struct sock *sk) Do not duplicate an entire function just to adjust some aspect of the lock debugging, please find a cleaner and more minimal way to implement this fix.

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

2019-08-20 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 20, 2019 at 09:39:53PM +0200, Ingo Molnar escreveu: > Pulled, thanks a lot Arnaldo! Wow, that was fast, thanks! > This one's very nice: > > > Arnaldo Carvalho de Melo (10): > > perf top: Show info message while collecting samples > > :-) Yeah, we need to polish these kind

[PATCH] ARM: UNWINDER_FRAME_POINTER implementation for Clang

2019-08-20 Thread Nathan Huckleberry
The stackframe setup when compiled with clang is different. Since the stack unwinder expects the gcc stackframe setup it fails to print backtraces. This patch adds support for the clang stackframe setup. Link: https://github.com/ClangBuiltLinux/linux/issues/35 Cc:

Re: [PATCH v2] net/ncsi: Ensure 32-bit boundary for data cksum

2019-08-20 Thread David Miller
From: "Terry S. Duncan" Date: Mon, 19 Aug 2019 17:24:02 -0700 > The NCSI spec indicates that if the data does not end on a 32 bit > boundary, one to three padding bytes equal to 0x00 shall be present to > align the checksum field to a 32-bit boundary. > > Signed-off-by: Terry S. Duncan

Re: [PATCH v3 6/7] ARM: dts: at91: at91sam9x5: switch to new clock bindings

2019-08-20 Thread Alexandre Belloni
Hi, On 28/07/2019 22:56:15+0200, Uwe Kleine-König wrote: > Hello, > > [added tglx to Cc because Alexandre said in irc: 4 or 5 years ago, there > was some discussion (with tglx) to make the driver not sleep when early > in the boot process I'll try to dig that up] > This is the discussion I was

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

2019-08-20 Thread Ingo Molnar
3b01: > > Merge tag 'perf-core-for-mingo-5.4-20190816' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2019-08-16 22:43:42 +0200) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.

Re: [PATCH V1]Perf: Return error code for perf_session__new function on failure

2019-08-20 Thread Mukesh Ojha
On 8/20/2019 4:51 PM, Mamatha Inamdar wrote: This Patch is to return error code of perf_new_session function on failure instead of NULL -- Test Results: Before Fix: $ perf c2c report -input failed to open nput: No such file or directory $ echo $?

Re: [PATCH v3 2/9] soc: samsung: Convert exynos-chipid driver to use the regmap API

2019-08-20 Thread Krzysztof Kozlowski
On Tue, 20 Aug 2019 at 21:24, Jon Hunter wrote: > > > On 13/08/2019 16:08, Sylwester Nawrocki wrote: > > Convert the driver to use regmap API in order to allow other > > drivers, like ASV, to access the CHIPID registers. > > > > This patch adds definition of selected CHIPID register offsets > >

Re: [PATCH AUTOSEL 4.19 07/27] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Sasha Levin
On Tue, Aug 20, 2019 at 06:47:53AM -0700, Joe Perches wrote: On Tue, 2019-08-20 at 09:41 -0400, Sasha Levin wrote: From: Nishad Kamdar [ Upstream commit fac7b714c514fcc41e1d6450c694b0a5f8d3 ] This patch corrects the SPDX License Identifier style in header files related to Drivers for

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

2019-08-20 Thread David Miller
From: Haiyang Zhang Date: Mon, 19 Aug 2019 19:30:47 + > +static void __exit exit_hv_pci_intf(void) > +{ > + pr_info("unloaded\n"); > +} > + > +static int __init init_hv_pci_intf(void) > +{ > + pr_info("loaded\n"); > + Clogging up the logs with useless messages like this is

[PATCH 09/17] perf report: Dump LBR callstack data by -D jointly with thread stack

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Make perf report -D command print captured LBR callstack chain when it is collected together with raw thread stack data: 2752673087247083 0x5d10 [0x548]: PERF_RECORD_SAMPLE(IP, 0x4002): 5841/5841: 0x40121f period: 1543862 addr: 0 ... FP chain: nr:0 ... branch

[PATCH 15/17] perf top: Show info message while collecting samples

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Give visual cue about what is happening while initially collecting the minimal set of samples to collect/sort/display. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-xcui60p1v6ozijfam2o89...@git.kernel.org Signed-off-by:

[PATCH 16/17] tools headers: Fixup bitsperlong per arch includes

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We were getting the file by luck, from one of the paths in -I, fix it to get it from the proper place: $ cd tools/include/uapi/asm/ [acme@quaco asm]$ grep include bitsperlong.h #include "../../arch/x86/include/uapi/asm/bitsperlong.h" #include

[PATCH 17/17] libperf: Fix arch include paths

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Guenter Roeck reported problem with compilation when the ARCH is specified: $ make ARCH=x86_64 In file included from tools/include/asm/atomic.h:6:0, from include/linux/atomic.h:5, from tools/include/linux/refcount.h:41,

[PATCH 11/17] perf cs-etm: Support sample flags 'insn' and 'insnlen'

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Leo Yan The synthetic branch and instruction samples are missed to set instruction related info, thus the perf tool fails to display samples with flags '-F,+insn,+insnlen'. The CoreSight trace decoder provides sufficient information to decide the instruction size based on the ISA type:

[PATCH 12/17] perf ui: Make 'exit_msg' optional in ui__question_window()

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We will not need it when refactoring this function to be non-interactive, so make it optional. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-pnx1dn17bsz7lqt9ty95n...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo

[PATCH 13/17] perf ui: Introduce non-interactive ui__info_window() function

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Sometimes we want just to print a message on the center of the screen, like in 'perf top' while we wait for the minimum amount of samples to be collected before sorting and showing them. Also expose __ui__info_window() as an optimization for cases where such

[PATCH 14/17] perf ui browser: Allow specifying message to show when no samples are available to display

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The 'perf top' tool will use that to avoid having a initial blank screen while collecting the minimum number of samples to sort and display. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 10/17] perf report: Prefer DWARF callstacks to LBR ones when captured both

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Display DWARF based callchains when the perf.data file contains raw thread stack data as LBR callstack data. Commiter testing: This changes the output from the branch stack based one, i.e. without this patch, for the same file as in the previous csets: # perf report

[PATCH 08/17] perf record: Enable LBR callstack capture jointly with thread stack

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Alexey Budankov Enable '-j stack' applicability together with '--call-graph dwarf' option so thread stack data and LBR call stack could be captured jointly: $ perf record -g --call-graph dwarf,1024 -j stack,u -- stack_test Collected LBR call stack can be used to augment DWARF call

[PATCH 07/17] tools lib traceevent: Fix "robust" test of do_generate_dynamic_list_file

2019-08-20 Thread Arnaldo Carvalho de Melo
From: "Steven Rostedt (VMware)" The tools/lib/traceevent/Makefile had a test added to it to detect a failure of the "nm" when making the dynamic list file (whatever that is). The problem is that the test sorts the values "U W w" and some versions of sort will place "w" ahead of "W" (even though

[PATCH 04/17] tools headers: Synchronize linux/bits.h with the kernel sources

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes in this cset: 95b980d62d52 ("linux/bits.h: make BIT(), GENMASK(), and friends available in assembly") To address this tools/perf build warning: Warning: Kernel ABI header at 'tools/include/linux/bits.h' differs from latest version at

[PATCH 05/17] tools arch x86: Sync asm/cpufeatures.h with the with the kernel

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To pick up the changes in: f36cf386e3fe ("x86/speculation/swapgs: Exclude ATOMs from speculation through SWAPGS") 18ec54fdd6d1 ("x86/speculation: Prepare entry code for Spectre v1 swapgs mitigations") That don't affect anything in tools/. This silences

[PATCH 06/17] perf evsel: Add comment for 'idx' member in 'struct perf_sample_id

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The 'idx' member was added as preparation for AUX area sampling. Add a comment to describe why. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Link:

[PATCH 03/17] tools headers: Grab copy of linux/const.h, needed by linux/bits.h

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that can update the copy of linux/bits.h that now uses macros defined in const.h and that are not available in older systems. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-c2qfcbl58hxyfb5u5xivp...@git.kernel.org

[GIT PULL] perf/core improvements and fixes

2019-08-20 Thread Arnaldo Carvalho de Melo
/kernel/git/acme/linux into perf/core (2019-08-16 22:43:42 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-5.4-20190820 for you to fetch changes up to b81d39c7a1efb83caa3f4419939a46e96191abb6: libperf: Fix arch

[PATCH 02/17] perf tools: tools/include should come before tools/uapi/include

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The next cset will grap const.h copies from the kernel to keep bits.h in sync as it started to use linux/const.h, that in turn includes uapi/linux/const.h. So now we have a file with the same name in tools/include and tools/uapi/include, and one includes the

[PATCH 01/17] tools headers: Add limits.h to access __WORDSIZE

2019-08-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We need to make sure limits.h is included before checking if we can use __WORDSIZE, do it. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-5yfoed4rnsck2n3cwhm9m...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

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

2019-08-20 Thread Kevin Hilman
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 CSI input and image processor > -

Re: [PATCH v3 2/9] soc: samsung: Convert exynos-chipid driver to use the regmap API

2019-08-20 Thread Jon Hunter
On 13/08/2019 16:08, Sylwester Nawrocki wrote: > Convert the driver to use regmap API in order to allow other > drivers, like ASV, to access the CHIPID registers. > > This patch adds definition of selected CHIPID register offsets > and register bit fields for Exynos5422 SoC. > > Signed-off-by:

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Thomas Hellström (VMware) wrote: > On 8/20/19 3:42 PM, Thomas Gleixner wrote: > > > What confuses me a bit is, if it's clarity we're after, why don't people > > > use > > > > > > #define VMWARE_HYPERCALL \ > > > ALTERNATIVE_2("inl (%%dx)",

Re: [PATCH v2 net-next 0/1] Add BASE-T1 PHY support

2019-08-20 Thread David Miller
From: Christian Herber Date: Mon, 19 Aug 2019 15:19:52 + > v1 patchset can be found here: https://lkml.org/lkml/2019/8/15/626 Please expand and clarify your commit messages as requested by Heiner in his feedback to v1.

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-20 Thread VMware
On 8/20/19 3:42 PM, Thomas Gleixner wrote: On Tue, 20 Aug 2019, Thomas Hellström (VMware) wrote: On 8/20/19 1:32 PM, Peter Zijlstra wrote: On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: +#define VMWARE_HYPERCALL \ + ALTERNATIVE_2(".byte 0xed", \ +

Re: [PATCH net-next v2] r8152: divide the tx and rx bottom functions

2019-08-20 Thread David Miller
From: Hayes Wang Date: Mon, 19 Aug 2019 14:40:36 +0800 > Move the tx bottom function from NAPI to a new tasklet. Then, for > multi-cores, the bottom functions of tx and rx may be run at same > time with different cores. This is used to improve performance. > > On x86, Tx/Rx 943/943 Mbits/sec ->

Re: [RFC 04/11] soc: amlogic: Add support for SM1 power controller

2019-08-20 Thread Kevin Hilman
Neil Armstrong writes: > On 20/08/2019 01:56, Kevin Hilman wrote: >> Neil Armstrong writes: >> >>> Add support for the General Purpose Amlogic SM1 Power controller, >>> dedicated to the PCIe, USB, NNA and GE2D Power Domains. >>> >>> Signed-off-by: Neil Armstrong >> >> I like this driver in

Re: [PATCH] Input: add support for polling to input devices

2019-08-20 Thread Dmitry Torokhov
On Tue, Aug 20, 2019 at 01:56:53PM +0200, Michal Vokáč wrote: > On 13. 08. 19 16:04, Benjamin Tissoires wrote: > > On Mon, Aug 12, 2019 at 7:11 PM Dmitry Torokhov > > wrote: > > > > > > Hi Benjamin, > > > > > > On Mon, Aug 12, 2019 at 06:50:38PM +0200, Benjamin Tissoires wrote: > > > > Hi

Re: New kernel interface for sys_tz and timewarp?

2019-08-20 Thread Alexandre Belloni
On 19/08/2019 13:09:03+0200, Karel Zak wrote: > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote: > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote: > > > On Mi, 14.08.19 10:31, Arnd Bergmann (a...@arndb.de) wrote: > > > > > > > - glibc stops passing the caller timezone

Re: [GIT PULL] HID fixes

2019-08-20 Thread pr-tracker-bot
The pull request you sent on Tue, 20 Aug 2019 14:53:48 +0200 (CEST): > git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/15d90b242290f228166ea79ee1cc2db6b31a2143 Thank you! -- Deet-doot-dot, I am a

Re: [PATCH] NFSv4: Fix a memory leak bug

2019-08-20 Thread Wenwen Wang
On Tue, Aug 20, 2019 at 9:41 AM Schumaker, Anna wrote: > > Hi Wenwen, > > On Tue, 2019-08-20 at 02:54 -0500, Wenwen Wang wrote: > > In nfs4_try_migration(), if nfs4_begin_drain_session() fails, the > > previously allocated 'page' and 'locations' are not deallocated, > > leading to > > memory

Re: New kernel interface for sys_tz and timewarp?

2019-08-20 Thread Alexandre Belloni
On 19/08/2019 15:43:03+0200, Thomas Gleixner wrote: > On Mon, 19 Aug 2019, Karel Zak wrote: > > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote: > > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote: > > > > On Mi, 14.08.19 10:31, Arnd Bergmann (a...@arndb.de) wrote: > > >

Re: New kernel interface for sys_tz and timewarp?

2019-08-20 Thread Alexandre Belloni
On 19/08/2019 15:49:24+0200, Thomas Gleixner wrote: > On Mon, 19 Aug 2019, Thomas Gleixner wrote: > > On Mon, 19 Aug 2019, Karel Zak wrote: > > > On Wed, Aug 14, 2019 at 11:32:08AM +0200, Alexandre Belloni wrote: > > > > On 14/08/2019 11:09:36+0200, Lennart Poettering wrote: > > > > > On Mi,

[PATCH -next v2] sched/fair: fix -Wunused-but-set-variable warnings

2019-08-20 Thread Qian Cai
The linux-next commit "sched/fair: Fix low cpu usage with high throttling by removing expiration of cpu-local slices" [1] introduced a few compilation warnings, kernel/sched/fair.c: In function '__refill_cfs_bandwidth_runtime': kernel/sched/fair.c:4365:6: warning: variable 'now' set but not used

Re: [PATCH v6 3/4] dt-bindings: arm: fsl: Add Kontron i.MX6UL N6310 compatibles

2019-08-20 Thread Krzysztof Kozlowski
On Tue, 20 Aug 2019 at 18:59, Rob Herring wrote: > > On Tue, Aug 20, 2019 at 10:35 AM Krzysztof Kozlowski wrote: > > > > Add the compatibles for Kontron i.MX6UL N6310 SoM and boards. > > > > Signed-off-by: Krzysztof Kozlowski > > > > --- > > > > Changes since v5: > > New patch > > --- > >

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-20 Thread Li Yang
On Tue, Aug 20, 2019 at 1:24 PM Mark Brown wrote: > > On Fri, Aug 16, 2019 at 02:40:47PM -0500, Li Yang wrote: > > On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni > > > > Most of the i2c RTCs do address wrapping which is sometimes the only way > > > to properly set the time. > > > Adding Mark

Re: [PATCH] led: triggers: Fix a memory leak bug

2019-08-20 Thread Jacek Anaszewski
Hi Wenwen, Thank you for the patch. On 8/19/19 10:41 PM, Wenwen Wang wrote: > In led_trigger_set(), 'event' is allocated in kasprintf(). However, it is > not deallocated in the following execution if the label 'err_activate' or > 'err_add_groups' is entered, leading to memory leaks. To fix this

Re: [PATCH] Fix an OOB access bug in technisat_usb2_get_ir

2019-08-20 Thread Hui Peng
The following is the kasan report. This bug was found in v4.20-rc2, but it is present in the latest version. BUG: KASAN: slab-out-of-bounds in technisat_usb2_get_ir drivers/media/usb/dvb-usb/technisat-usb2.c:664 [inline] BUG: KASAN: slab-out-of-bounds in technisat_usb2_rc_query+0x598/0x5f0

Re: [PATCH] mm/kasan: Fix false positive invalid-free reports with CONFIG_KASAN_SW_TAGS=y

2019-08-20 Thread Andrey Konovalov
On Mon, Aug 19, 2019 at 7:26 PM Andrey Ryabinin wrote: > > The code like this: > > ptr = kmalloc(size, GFP_KERNEL); > page = virt_to_page(ptr); > offset = offset_in_page(ptr); > kfree(page_address(page) + offset); > > may produce false-positive invalid-free reports

Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-20 Thread Mark Brown
On Fri, Aug 16, 2019 at 02:40:47PM -0500, Li Yang wrote: > On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni > > Most of the i2c RTCs do address wrapping which is sometimes the only way > > to properly set the time. > Adding Mark and Nandor to the loop. Is there a specific question or

[PATCH] Fix an OOB access bug in technisat_usb2_get_ir

2019-08-20 Thread Hui Peng
In the while loop of technisat_usb2_get_ir, it scans through a fix-sized buffer read from the device side, the termination condition of the loop is `*b == 0xff`. If no `0xff` byte is read from the device side, OOB access happens. This patch fixes the bug by adding an upper bound in the while

Re: [GIT PULL] arm64: Second round of fixes for -rc2

2019-08-20 Thread Linus Torvalds
On Tue, Aug 20, 2019 at 2:37 AM Will Deacon wrote: > > Thanks to the tech comms folks at Arm, this should now be available and > work is ongoing to open up more of the documentation too. Thanks. > For example, the A76 SDEN is here: > > >

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

2019-08-20 Thread Branden Bonaby
On Mon, Aug 19, 2019 at 10:44:48PM -0400, Branden Bonaby wrote: > 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 v2: > - Move test attributes to debugfs. > -

Re: linux-next: Tree for Aug 19 (drivers/net/netdevsim/dev.o)

2019-08-20 Thread Ido Schimmel
On Mon, Aug 19, 2019 at 09:16:13PM -0700, Randy Dunlap wrote: > On 8/19/19 2:18 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190816: > > > > on x86_64: > # CONFIG_INET is not set > > ld: drivers/net/netdevsim/dev.o: in function `nsim_dev_trap_report_work': >

Re: [PATCH] phy-rockchip-inno-hdmi: Fix RK3328_TERM_RESISTOR_CALIB_SPEED_7_0's third value

2019-08-20 Thread Nathan Chancellor
On Wed, Aug 07, 2019 at 12:23:05PM -0700, Nathan Chancellor wrote: > After commit "linux/bits.h: Add compile time sanity check of GENMASK > inputs" [1], arm64 defconfig builds started failing: > > In file included from ../include/linux/bits.h:22, > from

[PATCH rebased] powerpc/fadump: when fadump is supported register the fadump sysfs files.

2019-08-20 Thread Michal Suchanek
Currently it is not possible to distinguish the case when fadump is supported by firmware and disabled in kernel and completely unsupported using the kernel sysfs interface. User can investigate the devicetree but it is more reasonable to provide sysfs files in case we get some fadumpv2 in the

Re: [PATCH v2 net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread Ido Schimmel
On Tue, Aug 20, 2019 at 10:14:46PM +0800, YueHaibing wrote: > If CONFIG_INET is not set, building fails: > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > dev.c:(.text+0x67b): undefined reference to `ip_send_check' > > Use ip_fast_csum instead of ip_send_check to avoid

Re: [PATCH] fs/buffer: Make BH_Uptodate_Lock bit_spin_lock a regular spinlock_t

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Matthew Wilcox wrote: > On Tue, Aug 20, 2019 at 07:08:18PM +0200, Sebastian Siewior wrote: > > Bit spinlocks are problematic if PREEMPT_RT is enabled, because they > > disable preemption, which is undesired for latency reasons and breaks when > > regular spinlocks are taken

Re: [PATCH v4 9/10] dt-bindings: pwm: update bindings for MT7629 SoC

2019-08-20 Thread Rob Herring
On Tue, 20 Aug 2019 09:40:24 +0800, Sam Shih wrote: > From: Ryder Lee > > This updates bindings for MT7629 pwm controller. > > Signed-off-by: Ryder Lee > Signed-off-by: Sam Shih > Reviewed-by: Matthias Brugger > --- > Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + > 1 file

Re: [PATCH v3 bpf-next 1/4] tracing/probe: Add PERF_EVENT_IOC_QUERY_PROBE ioctl

2019-08-20 Thread Daniel Xu
Hi Peter, On Tue Aug 20, 2019 at 4:45 PM Peter Zijlstra wrote: > On Fri, Aug 16, 2019 at 03:31:46PM -0700, Daniel Xu wrote: > > It's useful to know [uk]probe's nmissed and nhit stats. For example with > > tracing tools, it's important to know when events may have been lost. > > debugfs currently

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

2019-08-20 Thread Nathan Chancellor
On Tue, Aug 20, 2019 at 07:40:33AM -0500, Segher Boessenkool wrote: > On Mon, Aug 19, 2019 at 08:15:38PM -0700, Nathan Chancellor wrote: > > On Mon, Aug 19, 2019 at 04:19:31AM -0500, Segher Boessenkool wrote: > > > On Sun, Aug 18, 2019 at 12:13:21PM -0700, Nathan Chancellor wrote: > > > > When

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

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Frederic Weisbecker wrote: > On Mon, Aug 19, 2019 at 04:31:45PM +0200, Thomas Gleixner wrote: > > /* > > - * Clean out CPU timers still ticking when a thread exited. The task > > - * pointer is cleared, and the expiry time is replaced with the residual > > - * time for later

Re: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-20 Thread Cornelia Huck
On Tue, 20 Aug 2019 11:19:04 -0600 Alex Williamson wrote: > What about an alias based on the uuid? For example, we use 160-bit > sha1s daily with git (uuids are only 128-bit), but we generally don't > reference git commits with the full 20 character string. Generally 12 > characters is

Re: [PATCH v2 net-next] netdevsim: Fix build error without CONFIG_INET

2019-08-20 Thread Jakub Kicinski
On Tue, 20 Aug 2019 22:14:46 +0800, YueHaibing wrote: > If CONFIG_INET is not set, building fails: > > drivers/net/netdevsim/dev.o: In function `nsim_dev_trap_report_work': > dev.c:(.text+0x67b): undefined reference to `ip_send_check' > > Use ip_fast_csum instead of ip_send_check to avoid >

Re: [PATCH v2 4/4] leds: lm3532: Add full scale current configuration

2019-08-20 Thread Dan Murphy
Hello On 8/20/19 11:29 AM, Pavel Machek wrote: Hi! No need to move ctrl_brt_pointer... to keep order consistent with docs. OK I will reset the patches and get rid of that change.  I think this got moved when I applied the v1 patch. + fs_current_val = led->full_scale_current

Applied "ASoC: sun4i-i2s: Remove duplicated quirks structure" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Remove duplicated quirks structure has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: sun4i-i2s: Don't use the oversample to calculate BCLK" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Don't use the oversample to calculate BCLK has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "ASoC: mchp-i2s-mcc: Fix simultaneous capture and playback in master mode" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: mchp-i2s-mcc: Fix simultaneous capture and playback in master mode has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually

Applied "ASoC: sun4i-i2s: Fix the LRCK polarity" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix the LRCK polarity has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "ASoC: mchp-i2s-mcc: Fix unprepare of GCLK" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: mchp-i2s-mcc: Fix unprepare of GCLK has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: sun4i-i2s: Pass the channels number as an argument" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Pass the channels number as an argument has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: sun4i-i2s: Fix the LRCK period on A83t" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix the LRCK period on A83t has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "ASoC: sun4i-i2s: Rework MCLK divider calculation" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Rework MCLK divider calculation has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: sun4i-i2s: Support more channels" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Support more channels has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "ASoC: sun4i-i2s: Fix WSS and SR fields for the A83t" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix WSS and SR fields for the A83t has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Applied "ASoC: mchp-i2s-mcc: Wait for RX/TX RDY only if controller is running" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: mchp-i2s-mcc: Wait for RX/TX RDY only if controller is running has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "ASoC: sun4i-i2s: Move the format configuration to a callback" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Move the format configuration to a callback has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "ASoC: sun4i-i2s: Fix LRCK and BCLK polarity offsets on newer SoCs" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix LRCK and BCLK polarity offsets on newer SoCs has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "ASoC: sun4i-i2s: Fix the MCLK and BCLK dividers on newer SoCs" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix the MCLK and BCLK dividers on newer SoCs has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "ASoC: sun4i-i2s: Use module clock as BCLK parent on newer SoCs" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Use module clock as BCLK parent on newer SoCs has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Re: [PATCH -next] sched/fair: fix -Wunused-but-set-variable warnings

2019-08-20 Thread bsegall
Qian Cai writes: > The linux-next commit "sched/fair: Fix low cpu usage with high > throttling by removing expiration of cpu-local slices" [1] introduced a > few compilation warnings, > > kernel/sched/fair.c: In function '__refill_cfs_bandwidth_runtime': > kernel/sched/fair.c:4365:6: warning:

Applied "ASoC: sun4i-i2s: RX and TX counter registers are swapped" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: RX and TX counter registers are swapped has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH v2 01/19] dt-bindings: display: renesas,cmm: Add R-Car CMM documentation

2019-08-20 Thread Laurent Pinchart
Hi Geert, On Tue, Aug 20, 2019 at 09:53:44AM +0200, Geert Uytterhoeven wrote: > On Tue, Aug 20, 2019 at 9:47 AM Jacopo Mondi wrote: > > On Mon, Aug 19, 2019 at 03:45:54PM +0200, Geert Uytterhoeven wrote: > >> On Mon, Jul 8, 2019 at 9:58 AM Geert Uytterhoeven > >> wrote: > >>> On Sat, Jul 6,

Re: [PATCH v2] f2fs: allocate memory in batch in build_sit_info()

2019-08-20 Thread Jaegeuk Kim
On 08/20, Chao Yu wrote: > On 2019/8/20 4:20, Jaegeuk Kim wrote: > > On 07/26, Chao Yu wrote: > >> build_sit_info() allocate all bitmaps for each segment one by one, > >> it's quite low efficiency, this pach changes to allocate large > >> continuous memory at a time, and divide it and assign for

Applied "ASoC: intel: cht_bsw_max98090_ti: Add all Chromebooks that need pmc_plt_clk_0 quirk" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: intel: cht_bsw_max98090_ti: Add all Chromebooks that need pmc_plt_clk_0 quirk has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree

Applied "ASoC: sun4i-i2s: Move the channel configuration to a callback" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Move the channel configuration to a callback has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "ASoC: sun4i-i2s: Register regmap and PCM before our component" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Register regmap and PCM before our component has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "ASoC: sun4i-i2s: Switch to devm for PCM register" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Switch to devm for PCM register has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Applied "ASoC: sun4i-i2s: Replace call to params_channels by local variable" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Replace call to params_channels by local variable has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in

Applied "ASoC: sun4i-i2s: Fix MCLK Enable bit offset on A83t" to the asoc tree

2019-08-20 Thread Mark Brown
The patch ASoC: sun4i-i2s: Fix MCLK Enable bit offset on A83t has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24

Re: [PATCH 11/21] ASoC: sun4i-i2s: Use the actual format width instead of an hardcoded one

2019-08-20 Thread Mark Brown
On Mon, Aug 19, 2019 at 09:25:18PM +0200, Maxime Ripard wrote: > regmap_update_bits(i2s->regmap, SUN4I_I2S_FMT0_REG, > SUN8I_I2S_FMT0_LRCK_PERIOD_MASK, > -SUN8I_I2S_FMT0_LRCK_PERIOD(32)); > +

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