Re: [PATCH] wlcore/wl18xx: Add invert-irq OF property for physically inverted IRQ

2019-06-10 Thread Kalle Valo
Eugeniu Rosca writes: > The wl1837mod datasheet [1] says about the WL_IRQ pin: > > ---8<--- > SDIO available, interrupt out. Active high. [..] > Set to rising edge (active high) on powerup. > ---8<--- > > That's the reason of seeing the interrupt configured as: > - IRQ_TYPE_EDGE_RISING on HiKe

[RFC PATCH v1 3/3] LSM/x86/sgx: Call new LSM hooks from SGX subsystem

2019-06-10 Thread Cedric Xing
There are three places LSM hooks are called from within the SGX subsystem. The first place is to invoke security_file_mprotect() in sgx_mmap() to validate requested protection. Given the architecture of SGX subsystem, all enclaves look like file mappings of /dev/sgx/enclave device file, meaning th

[RFC PATCH v1 0/3] security/x86/sgx: SGX specific LSM hooks

2019-06-10 Thread Cedric Xing
This series intends to make the new SGX subsystem and the existing LSM architecture work together smoothly so that, say, SGX cannot be abused to work around restrictions set forth by LSM. This series applies on top of Jarkko Sakkinen's SGX series v20 (https://lkml.org/lkml/2019/4/17/344), where abu

[RFC PATCH v1 2/3] LSM/x86/sgx: Implement SGX specific hooks in SELinux

2019-06-10 Thread Cedric Xing
In this patch, SELinux maintains two bits per enclave page, namely SGX__EXECUTE and SGX__EXECMOD. SGX__EXECUTE is set initially (by selinux_enclave_load) for every enclave page that was loaded from a potentially executable source page. SGX__EXECMOD is set for every page that was loaded from a file

[RFC PATCH v1 1/3] LSM/x86/sgx: Add SGX specific LSM hooks

2019-06-10 Thread Cedric Xing
This patch has made two changes to LSM hooks. The first change is the addition of two new SGX specific LSM hooks. security_enclave_load() - is called whenever new EPC pages are added to an enclave, so that an LSM module could initialize internal states for those pages. An LSM module may track pro

Re: [PATCH] hwmon: pmbus: protect read-modify-write with lock

2019-06-10 Thread Wolfram Sang
Hi Krzysztof, > patch and send it to the wrong list of people. You can ignore this > patchset, it was resent to the proper mailing list instead. Thanks for the heads up. Regards, Wolfram signature.asc Description: PGP signature

Re: [PATCH] arm: dts: dra72x: Disable usb4_tm target module

2019-06-10 Thread Tony Lindgren
* Keerthy [190603 23:13]: > usb4_tm is unsed on dra72 and accessing the module > with ti,sysc is causing a boot crash hence disable its target > module. Thanks for testing and fixing this, applying into fixes. Tony

Re: [PATCH v3] vt: Fix a missing-check bug in con_init()

2019-06-10 Thread Jiri Slaby
On 09. 06. 19, 2:15, Nicolas Pitre wrote: +fail1: + while (currcons > 0) { + currcons--; + kfree(vc_cons[currcons].d->vc_screenbuf); +fail2: + kfree(vc_cons[currcons].d); + vc_cons[currcons].d = NULL; + } >> >> Wait, will

Re: [PATCH] mt76: mt7615: add support for per-chain signal strength reporting

2019-06-10 Thread Ryder Lee
On Mon, 2019-06-10 at 06:47 +0200, Sebastian Gottschall wrote: > okay. curious is, that my variant works with sane results too. > i will test your variant and check the results > > Sebastian Please don't top post as it's hard to track the thread. More specifically, IBRSSI is obtained from packet

Re: [PATCH] staging: rtl8723bs: core: rtw_mlme_ext.c: Remove unused variables

2019-06-10 Thread Nishka Dasgupta
On 10/06/19 11:19 AM, Greg KH wrote: On Mon, Jun 10, 2019 at 10:08:21AM +0530, Nishka Dasgupta wrote: On 09/06/19 4:32 PM, Greg KH wrote: On Fri, Jun 07, 2019 at 12:41:23PM +0530, Nishka Dasgupta wrote: Remove variables that are declared and assigned values but not otherwise used. Issue found

Re: [PATCH 08/14] ASoC: Intel: Skylake: Properly cleanup on component removal

2019-06-10 Thread Cezary Rojewski
On 2019-06-05 15:45, Amadeusz Sławiński wrote: When we remove component we need to reverse things which were done on init, this consists of topology cleanup, lists cleanup and releasing firmware. Currently cleanup handlers are put in wrong places or otherwise missing. So add proper component cle

Re: [PATCH 4/7] staging: kpc2000: use __func__ in debug messages in core.c

2019-06-10 Thread Simon Sandström
On 06/06, Greg KH wrote: > On Tue, Jun 04, 2019 at 12:29:13AM +0200, Simon Sandström wrote: > > > > - dev_dbg(&pdev->dev, "kp2000_pcie_probe(pdev = [%p], id = [%p])\n", > > - pdev, id); > > + dev_dbg(&pdev->dev, "%s(pdev = [%p], id = [%p])\n", > > + __func__, pdev, id); >

Re: Linux 4.19 and GCC 9

2019-06-10 Thread Ivan Babrou
Looks like 4.19.49 received some patches for GCC 9+, but unfortunately perf still doesn't want to compile: [07:15:32]In file included from /usr/include/string.h:635, [07:15:32] from util/debug.h:7, [07:15:32] from builtin-help.c:15: [07:15:32]In function 'strncpy', [07:15:32] inlined from 'add_man

[PATCH] spi: qup: fix PIO/DMA transfers.

2019-06-10 Thread Jorge Ramirez-Ortiz
- DMA/PIO: If an error IRQ occurred during PIO or DMA mode make sure to log it so on completion the transfer can be marked as an error. - PIO: Do not complete a transaction until all data has been transferred or an error IRQ was flagged. 1) If there was no error IRQ, ignore the done flag IRQ

Re: [PATCH] staging: rtl8723bs: core: rtw_mlme_ext.c: Remove unused variables

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 12:44:05PM +0530, Nishka Dasgupta wrote: > On 10/06/19 11:19 AM, Greg KH wrote: > > On Mon, Jun 10, 2019 at 10:08:21AM +0530, Nishka Dasgupta wrote: > > > On 09/06/19 4:32 PM, Greg KH wrote: > > > > On Fri, Jun 07, 2019 at 12:41:23PM +0530, Nishka Dasgupta wrote: > > > > > R

Re: [PATCH] mm: align up min_free_kbytes to multipy of 4

2019-06-10 Thread Michal Hocko
On Sun 09-06-19 17:10:28, ChenGang wrote: > Usually the value of min_free_kbytes is multiply of 4, > and in this case ,the right shift is ok. > But if it's not, the right-shifting operation will lose the low 2 bits, > and this cause kernel don't reserve enough memory. > So it's necessary to align t

Re: [PATCH] kernel/isolation: Asset that a housekeeping CPU comes up at boot time

2019-06-10 Thread Nicholas Piggin
Nicholas Piggin's on June 1, 2019 9:39 pm: > With the change to allow the boot CPU0 to be isolated, it is possible > to specify command line options that result in no housekeeping CPU > online at boot. > > An 8 CPU system booted with "nohz_full=0-6 maxcpus=4", for example. > > It is not easily po

Re: [PATCH 4.14 00/35] 4.14.125-stable review

2019-06-10 Thread Naresh Kamboju
On Sun, 9 Jun 2019 at 22:20, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.125 release. > There are 35 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

[PATCH 00/11] perf intel-pt: Prepare for PEBS via PT

2019-06-10 Thread Adrian Hunter
Hi PEBS via PT is a new feature that encodes PEBS events into the Intel PT trace. This patch series is preparation. Alex has posted his kernel support: https://lkml.org/lkml/2019/5/2/323 This patch set adds the packet definitions and a new packet decoder test, followed by patches that enabl

Re: [PATCH v2] kasan: add memory corruption identification for software tag-based mode

2019-06-10 Thread Walter Wu
On Fri, 2019-06-07 at 21:18 +0800, Dmitry Vyukov wrote: > > diff --git a/include/linux/kasan.h b/include/linux/kasan.h > > index b40ea104dd36..be0667225b58 100644 > > --- a/include/linux/kasan.h > > +++ b/include/linux/kasan.h > > @@ -164,7 +164,11 @@ void kasan_cache_shutdown(struct kmem_cache *ca

[PATCH 01/11] perf intel-pt: Add new packets for PEBS via PT

2019-06-10 Thread Adrian Hunter
Add 3 new packets to supports PEBS via PT, namely Block Begin Packet (BBP), Block Item Packet (BIP) and Block End Packet (BEP). PEBS data is encoded into multiple BIP packets that come between BBP and BEP. The BEP packet might be associated with a FUP packet. That is indicated by using a separate p

[PATCH 07/11] perf intel-pt: Add gp registers to synthesized PEBS sample

2019-06-10 Thread Adrian Hunter
Add general purpose register information from PEBS data in the Intel PT trace to the synthesized PEBS sample. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 69 ++ 1 file changed, 69 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools

[PATCH 10/11] perf intel-pt: Add memory information to synthesized PEBS sample

2019-06-10 Thread Adrian Hunter
Add memory information from PEBS data in the Intel PT trace to the synthesized PEBS sample. This provides sample types PERF_SAMPLE_ADDR, PERF_SAMPLE_WEIGHT, and PERF_SAMPLE_TRANSACTION, but not PERF_SAMPLE_DATA_SRC. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 27 +++

[PATCH 08/11] perf intel-pt: Add xmm registers to synthesized PEBS sample

2019-06-10 Thread Adrian Hunter
Add xmm register information from PEBS data in the Intel PT trace to the synthesized PEBS sample. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf

[PATCH 06/11] perf intel-pt: Synthesize PEBS sample basic information

2019-06-10 Thread Adrian Hunter
Synthesize a PEBS sample using basic information (ip, timestamp) only. Other PEBS information will be added in later patches. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 52 -- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/to

[PATCH 04/11] perf intel-pt: Prepare to synthesize PEBS samples

2019-06-10 Thread Adrian Hunter
Add infrastructure to prepare for synthesizing PEBS samples but leave the actual synthesis to later patches. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c

[PATCH 05/11] perf intel-pt: Factor out common sample preparation for re-use

2019-06-10 Thread Adrian Hunter
Factor out common sample preparation for re-use when synthesizing PEBS samples. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c index 3

[PATCH 09/11] perf intel-pt: Add lbr information to synthesized PEBS sample

2019-06-10 Thread Adrian Hunter
Add lbr information from PEBS data in the Intel PT trace to the synthesized PEBS sample. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 72 ++ 1 file changed, 72 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/intel-pt.c

[PATCH 02/11] perf intel-pt: Add Intel PT packet decoder test

2019-06-10 Thread Adrian Hunter
Add Intel PT packet decoder test. This test feeds byte sequences to the Intel PT packet decoder and checks the results. Changes to the packet context are also checked. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/include/arch-tests.h | 1 + tools/perf/arch/x86/tests/Build

[PATCH 03/11] perf intel-pt: Add decoder support for PEBS via PT

2019-06-10 Thread Adrian Hunter
PEBS data is encoded in Block Item Packets (BIP). Populate a new structure intel_pt_blk_items with the values and, upon a Block End Packet (BEP), report them as a new Intel PT sample type INTEL_PT_BLK_ITEMS. Signed-off-by: Adrian Hunter --- .../util/intel-pt-decoder/intel-pt-decoder.c | 78 +++

[PATCH 11/11] perf intel-pt: Add callchain to synthesized PEBS sample

2019-06-10 Thread Adrian Hunter
Like other synthesized events, if there is also an Intel PT branch trace, then a call stack can also be synthesized. Add that. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt.c | 8 1 file changed, 8 insertions(+) diff --git a/tools/perf/util/intel-pt.c b/tools/perf/util/int

Re: [PATCH 5.1 56/85] doc: Cope with the deprecation of AutoReporter

2019-06-10 Thread Greg Kroah-Hartman
On Mon, Jun 10, 2019 at 08:27:30AM +0200, Jiri Slaby wrote: > On 07. 06. 19, 17:39, Greg Kroah-Hartman wrote: > > From: Jonathan Corbet > > > > commit 2404dad1f67f8917e30fc22a85e0dbcc85b99955 upstream. > > > > AutoReporter is going away; recent versions of sphinx emit a warning like: > > > >

Re: [PATCH] staging: rtl8723bs: core: rtw_mlme_ext.c: Remove unused variables

2019-06-10 Thread Nishka Dasgupta
On 10/06/19 12:55 PM, Greg KH wrote: On Mon, Jun 10, 2019 at 12:44:05PM +0530, Nishka Dasgupta wrote: On 10/06/19 11:19 AM, Greg KH wrote: On Mon, Jun 10, 2019 at 10:08:21AM +0530, Nishka Dasgupta wrote: On 09/06/19 4:32 PM, Greg KH wrote: On Fri, Jun 07, 2019 at 12:41:23PM +0530, Nishka Dasg

Re: [PATCH 5.1 56/85] doc: Cope with the deprecation of AutoReporter

2019-06-10 Thread Jiri Slaby
On 10. 06. 19, 9:31, Greg Kroah-Hartman wrote: > On Mon, Jun 10, 2019 at 08:27:30AM +0200, Jiri Slaby wrote: >> On 07. 06. 19, 17:39, Greg Kroah-Hartman wrote: >>> From: Jonathan Corbet >>> >>> commit 2404dad1f67f8917e30fc22a85e0dbcc85b99955 upstream. >>> >>> AutoReporter is going away; recent ver

[PATCH v4 2/2] media: atmel: atmel-sama5d2-isc: fixed checkpatch warnings

2019-06-10 Thread Eugen.Hristev
From: Eugen Hristev Checkpatch complaining that locks do not have comments, unaligned code and macro reuse of same argument in to_isc_clk. Fixed them by renaming, realigning and adding struct comments Signed-off-by: Eugen Hristev --- Changes in v4: - s/sync/serialize as requested by Sakari Cha

[PATCH] tty: serial: msm_serial: avoid system lockup condition

2019-06-10 Thread Jorge Ramirez-Ortiz
The function msm_wait_for_xmitr can be taken with interrupts disabled. In order to avoid a potential system lockup - demonstrated under stress testing conditions on SoC QCS404/5 - make sure we wait for a bounded amount of time. Tested on SoC QCS404. Signed-off-by: Jorge Ramirez-Ortiz --- driver

Re: [PATCH v2 1/4] perf trace: Exit when build eBPF program failure

2019-06-10 Thread Leo Yan
On Thu, Jun 06, 2019 at 10:34:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 06, 2019 at 10:30:19AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Thu, Jun 06, 2019 at 05:48:42PM +0800, Leo Yan escreveu: > > > +++ b/tools/perf/builtin-trace.c > > > @@ -3664,6 +3664,14 @@ static int tra

Re: Linux 4.19 and GCC 9

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 12:21:51AM -0700, Ivan Babrou wrote: > Looks like 4.19.49 received some patches for GCC 9+, but unfortunately > perf still doesn't want to compile: > > [07:15:32]In file included from /usr/include/string.h:635, > [07:15:32] from util/debug.h:7, > [07:15:32] from builtin-hel

Re: [PATCH] perf record: Add support to collect callchains from kernel or user space only.

2019-06-10 Thread 禹舟键
Hi Arnaldo, Jirka > perf_event_attr.exclude_callchain_kernel to 0 I don't think we should set 0 for the desired callchins, because we will set exclude_callchain_user to 1 if perf_evsel is function event. void perf_evsel__config(struct perf_evsel *evsel, struct record_opts *opts, struct callcha

[PATCH stable 4.4 v2] coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping

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

[PATCH] vsprintf: fix data type of variable in string_nocheck()

2019-06-10 Thread 남영민
This patch fixes data type of precision with int. The precision is declared as signed int in struct printf_spec. Signed-off-by: Youngmin Nam --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 63937044c57d..cd0cd9279b12 100

[PATCH v2] staging: kpc2000: kpc_i2c: remove the macros inb_p and outb_p

2019-06-10 Thread Hao Xu
remove inb_p and outb_p to call readq/writeq directly. Signed-off-by: Hao Xu --- Changes in v2: - remove the macros inb_p/outb_p and use readq/writeq directly, per https://lkml.kernel.org/lkml/20190608134505.ga...@arch-01.home/ --- drivers/staging/kpc2000/kpc2000_i2c.c | 112 ---

Re: [PATCH 5.1 56/85] doc: Cope with the deprecation of AutoReporter

2019-06-10 Thread Greg Kroah-Hartman
On Mon, Jun 10, 2019 at 09:34:10AM +0200, Jiri Slaby wrote: > On 10. 06. 19, 9:31, Greg Kroah-Hartman wrote: > > On Mon, Jun 10, 2019 at 08:27:30AM +0200, Jiri Slaby wrote: > >> On 07. 06. 19, 17:39, Greg Kroah-Hartman wrote: > >>> From: Jonathan Corbet > >>> > >>> commit 2404dad1f67f8917e30fc22a8

Re: [PATCH] drivers/ata: print trim features at device initialization

2019-06-10 Thread Konstantin Khlebnikov
On 10.06.2019 0:37, James Bottomley wrote: On Sat, 2019-06-08 at 17:13 +0300, Konstantin Khlebnikov wrote: On 08.06.2019 11:25, Christoph Hellwig wrote:> On Fri, Jun 07, 2019 at 10:34:39AM +0300, Konstantin Khlebnikov wrote: > > Do we really need to spam dmesg with even more ATA crap? What

Re: [PATCH v3 5/8] arm64: Fix incorrect irqflag restore for priority masking

2019-06-10 Thread Julien Thierry
On 07/06/2019 17:29, Marc Zyngier wrote: > On 06/06/2019 10:31, Julien Thierry wrote: >> When using IRQ priority masking to disable interrupts, in order to deal >> with the PSR.I state, local_irq_save() would convert the I bit into a >> PMR value (GIC_PRIO_IRQOFF). This resulted in local_irq_res

Re: [PATCH 4/7] staging: kpc2000: use __func__ in debug messages in core.c

2019-06-10 Thread Greg KH
On Mon, Jun 10, 2019 at 09:20:09AM +0200, Simon Sandström wrote: > On 06/06, Greg KH wrote: > > On Tue, Jun 04, 2019 at 12:29:13AM +0200, Simon Sandström wrote: > > > > > > - dev_dbg(&pdev->dev, "kp2000_pcie_probe(pdev = [%p], id = [%p])\n", > > > - pdev, id); > > > + dev_dbg(&pdev->dev,

Re: [PATCH v3 6/8] arm64: irqflags: Introduce explicit debugging for IRQ priorities

2019-06-10 Thread Julien Thierry
On 07/06/2019 17:31, Marc Zyngier wrote: > On 06/06/2019 10:31, Julien Thierry wrote: >> Using IRQ priority masking to enable/disable interrupts is a bit >> sensitive as it requires to deal with both ICC_PMR_EL1 and PSR.I. >> >> Introduce some validity checks to both highlight the states in whic

Re: [PATCH trivial] dmaengine: Grammar s/the its/its/, s/need/needs/

2019-06-10 Thread Vinod Koul
On 07-06-19, 13:30, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven Applied, thanks -- ~Vinod

[PATCH v2] tty: serial: msm_serial: avoid system lockup condition

2019-06-10 Thread Jorge Ramirez-Ortiz
The function msm_wait_for_xmitr can be taken with interrupts disabled. In order to avoid a potential system lockup - demonstrated under stress testing conditions on SoC QCS404/5 - make sure we wait for a bounded amount of time. Tested on SoC QCS404. Signed-off-by: Jorge Ramirez-Ortiz --- driver

Re: [PATCH 5.1 56/85] doc: Cope with the deprecation of AutoReporter

2019-06-10 Thread Jiri Slaby
On 10. 06. 19, 9:48, Greg Kroah-Hartman wrote: >> [ 103s] Running Sphinx v1.8.5 > > Hm, 2.1 here: > Running Sphinx v2.1.0 > perhaps Tumbleweed needs to update? :) Heh, it was submitted 3 days ago :): https://build.opensuse.org/request/show/708276 (And is blocked by a failing sphinx-test

Re: [PATCH 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list

2019-06-10 Thread Lee Jones
On Fri, 07 Jun 2019, Bjorn Andersson wrote: > On Fri 07 Jun 16:02 PDT 2019, Linus Walleij wrote: > > > On Wed, Jun 5, 2019 at 1:43 PM Lee Jones wrote: > > > > > When booting MSM based platforms with Device Tree or some ACPI > > > implementations, it is possible to provide a list of reserved pin

Re: [PATCH/RFC] dmaengine: Create symlinks from DMA channels to slaves

2019-06-10 Thread Vinod Koul
On 07-06-19, 13:38, Geert Uytterhoeven wrote: > Currently it is not easy to find out which DMA channels are in use, and > by which slave devices. > > Fix this by creating in sysfs a "slave" symlink from the DMA channel to > the actual slave device when a channel is requested, and removing it > aga

Re: [RFC PATCH 1/6] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-06-10 Thread Srinivas Kandagatla
On 10/06/2019 05:34, Vinod Koul wrote: On 07-06-19, 09:56, Srinivas Kandagatla wrote: On platforms which have smart speaker amplifiers connected via soundwire and modeled as aux devices in ASoC, in such usecases machine driver should be able to get sdw master stream from dai so that it can us

[PATCH v2] arm64: dts: rockchip: Add support for Khadas Edge/Edge-V/Captain boards

2019-06-10 Thread xieqinick
From: Nick Xie Add devicetree support for Khadas Edge/Edge-V/Captain boards. Khadas Edge is an expandable Rockchip RK3399 board with goldfinger. Khadas Captain is the carrier board for Khadas Edge. Khadas Edge-V is a Khadas VIM form factor Rockchip RK3399 board. Signed-off-by: Nick Xie --- Chan

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-10 Thread Jon Hunter
On 07/06/2019 14:35, Peter Ujfalusi wrote: > > > On 07/06/2019 15.58, Jon Hunter wrote: >>> Imho if you can explain it without using 'HACK' in the sentences it >>> might be OK, but it does not feel right. >> >> I don't perceive this as a hack. Although from looking at the >> description of the

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-10 Thread Jon Hunter
On 07/06/2019 21:53, Dmitry Osipenko wrote: > 07.06.2019 16:35, Peter Ujfalusi пишет: >> >> >> On 07/06/2019 15.58, Jon Hunter wrote: Imho if you can explain it without using 'HACK' in the sentences it might be OK, but it does not feel right. >>> >>> I don't perceive this as a hack. Alt

Re: [PATCH 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list

2019-06-10 Thread Lee Jones
On Fri, 07 Jun 2019, Bjorn Andersson wrote: > On Wed 05 Jun 04:42 PDT 2019, Lee Jones wrote: > > > When booting MSM based platforms with Device Tree or some ACPI > > implementations, it is possible to provide a list of reserved pins > > via the 'gpio-reserved-ranges' and 'gpios' properties respec

Re: [PATCH bpf v2] xdp: fix hang while unregistering device bound to xdp socket

2019-06-10 Thread Ilya Maximets
On 08.06.2019 2:31, Jakub Kicinski wrote: > On Fri, 7 Jun 2019 20:31:43 +0300, Ilya Maximets wrote: >> +static int xsk_notifier(struct notifier_block *this, >> +unsigned long msg, void *ptr) >> +{ >> +struct sock *sk; >> +struct net_device *dev = netdev_notifier_info_to

Re: [PATCH v2] intel_th: msu: Fix unused variable warning on arm64 platform

2019-06-10 Thread Zhangshaokun
Hi Alexander, A gentle ping. On 2019/5/20 19:32, Shaokun Zhang wrote: > drivers/hwtracing/intel_th/msu.c: In function ‘msc_buffer_win_alloc’: > drivers/hwtracing/intel_th/msu.c:783:21: warning: unused variable ‘i’ > [-Wunused-variable] > int ret = -ENOMEM, i; > ^ > drivers

Re: [PATCH 1/2] mfd: core: Support multiple OF child devices of the same type

2019-06-10 Thread Lee Jones
On Thu, 06 Jun 2019, Robert Hancock wrote: > On 2019-06-05 11:27 p.m., Lee Jones wrote: > Without having the .of_full_name support, both MFD cells ended up > wrongly matching against the i2c@c device tree node since we just > picked the first one where of_compatible matched. > >

Re: [PATCH 4.19 00/51] 4.19.50-stable review

2019-06-10 Thread Naresh Kamboju
On Sun, 9 Jun 2019 at 22:17, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.50 release. > There are 51 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Resp

Re: [PATCH v1 1/3] clocksource/drivers/tegra: Remove duplicated use of per_cpu_ptr

2019-06-10 Thread Daniel Lezcano
Hi Dmitry, On 09/06/2019 21:27, Dmitry Osipenko wrote: > It was left unnoticed by accident, which means that the code could be > cleaned up a tad more. > > Signed-off-by: Dmitry Osipenko > --- > drivers/clocksource/timer-tegra.c | 40 +++ > 1 file changed, 25 inse

I NEED YOUR PARTNERSHIP.

2019-06-10 Thread DR. OMAR KALIFA
-- Hello, Compliment of the season. My name is Dr. Omar Kalifa. i work with one of the reputable banks here in West Africa.I have a lucrative and profitable business to discuse with you. Reply if you are intersted for more details. Regards, Dr. Omar Kalifa

Re: [RFC PATCH 5/6] dt-bindings: soundwire: add bindings for Qcom controller

2019-06-10 Thread Srinivas Kandagatla
On 10/06/2019 05:51, Vinod Koul wrote: On 07-06-19, 09:56, Srinivas Kandagatla wrote: This patch adds bindings for Qualcomm soundwire controller. Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC

[PATCH v5 02/15] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"

2019-06-10 Thread yibin . gong
From: Robin Gong There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app

[PATCH v5 06/15] spi: imx: fix ERR009165

2019-06-10 Thread yibin . gong
From: Robin Gong Change to XCH mode even in dma mode, please refer to the below errata: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf Signed-off-by: Robin Gong Acked-by: Mark Brown --- drivers/spi/spi-imx.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --gi

[PATCH v5 12/15] ARM: dts: imx6ul: add dma support on ecspi

2019-06-10 Thread yibin . gong
From: Robin Gong Add dma support on ecspi. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6ul.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index fc388b8..4a34316 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++

[PATCH v5 04/15] dmaengine: imx-sdma: remove dupilicated sdma_load_context

2019-06-10 Thread yibin . gong
From: Robin Gong Since sdma_transfer_init() will do sdma_load_context before any sdma transfer, no need once more in sdma_config_channel(). Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers

[PATCH v5 00/15] add ecspi ERR009165 for i.mx6/7 soc family

2019-06-10 Thread yibin . gong
From: Robin Gong There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO transfer to be send twice in DMA mode. Please get more information from: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding new sdma ram script which works in XCH mode as PIO inside sdma in

[PATCH v5 10/15] dma: imx-sdma: add i.mx6ul/6sx compatible name

2019-06-10 Thread yibin . gong
From: Robin Gong Add i.mx6ul and i.mx6sx compatible name in binding doc. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt b/Documentation/devicetree

[PATCH v5 11/15] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2019-06-10 Thread yibin . gong
From: Robin Gong Because the number of ecspi1 rx event on i.mx8mm is 0, the condition check ignore such special case without dma channel enabled, which caused ecspi1 rx works failed. Actually, no need to check event_id0/event_id1 and replace checking 'event_id1' with 'DMA_DEV_TO_DEV', so that con

[PATCH v5 13/15] ARM: dts: imx6sll: correct sdma compatible

2019-06-10 Thread yibin . gong
From: Robin Gong Correct sdma compatible since ecspi errata ERR009165 has been fixed on i.mx6sll as i.mx6ul. Signed-off-by: Robin Gong --- arch/arm/boot/dts/imx6sll.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/imx6s

I BRING CALVARY GREETNG FROM MRS.SUZAN BONI.

2019-06-10 Thread suzanboni
-- Dear friend. I got your details after an extensive on-line search Via (Network Power Charitable Trust) for a reliable person, I'm Mrs.Suzan Boni, a 57years old dying woman who was diagnosed for cancer about 4 years ago, I have decided to donate my fund ($2,000,000.00) to you for charitable goa

Re: [PATCH] vsprintf: fix data type of variable in string_nocheck()

2019-06-10 Thread Sergey Senozhatsky
On (06/10/19 16:47), 남영민 wrote: > This patch fixes data type of precision with int. > The precision is declared as signed int in struct printf_spec. > > Signed-off-by: Youngmin Nam Looks OK to me. FWIW Reviewed-by: Sergey Senozhatsky -ss

[PATCH v5 09/15] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul

2019-06-10 Thread yibin . gong
From: Robin Gong ECSPI issue fixed from i.mx6ul at hardware level, no need ERR009165 anymore on those chips such as i.mx8mq. Add i.mx6sx from where i.mx6ul source. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 51 +-

[PATCH v5 08/15] spi: imx: add new i.mx6ul compatible name in binding doc

2019-06-10 Thread yibin . gong
From: Robin Gong ERR009165 fixed from i.mx6ul, add its compatible name in binding doc. Signed-off-by: Robin Gong Acked-by: Mark Brown --- Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/fsl-imx-cs

[PATCH v5 07/15] spi: imx: remove ERR009165 workaround on i.mx6ul

2019-06-10 Thread yibin . gong
From: Robin Gong ERR009165 fixed on i.mx6ul/6ull/6sll. All other i.mx6/7 and i.mx8m/8mm still need this errata. Please refer to nxp official errata document from https://www.nxp.com/ . For removing workaround on those chips. Add new i.mx6ul type. Signed-off-by: Robin Gong Acked-by: Mark Brown

[PATCH v5 01/15] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"

2019-06-10 Thread yibin . gong
From: Robin Gong There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app

[PATCH v5 05/15] dmaengine: imx-sdma: add mcu_2_ecspi script

2019-06-10 Thread yibin . gong
From: Robin Gong Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 3 +++ include/linux/platform_data/dma-imx-sdma.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/dma/imx-sdma.c

[PATCH v5 03/15] Revert "dmaengine: imx-sdma: refine to load context only once"

2019-06-10 Thread yibin . gong
From: Robin Gong This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because in spi-imx case, burst length may be changed dynamically. Signed-off-by: Robin Gong --- drivers/dma/imx-sdma.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/i

[PATCH v5 14/15] arm64: defconfig: Enable SDMA on i.mx8mq/8mm

2019-06-10 Thread yibin . gong
From: Robin Gong Enable SDMA support on i.mx8mq/8mm chips, including enabling CONFIG_FW_LOADER_USER_HELPER/CONFIG_FW_LOADER_USER_HELPER_FALLBACK for firmware loaded by udev. Signed-off-by: Robin Gong --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/a

[PATCH v5 15/15] dmaengine: imx-sdma: add uart rom script

2019-06-10 Thread yibin . gong
From: Robin Gong For the compatibility of NXP internal legacy kernel before 4.19 which is based on uart ram script and upstreaming kernel based on uart rom script, add both uart ram/rom script in latest sdma firmware. By default uart rom script used. Besides, add two multi-fifo scripts for SAI/PD

[PATCH v2 00/02] fix return value issue of soft offlining hugepages

2019-06-10 Thread Naoya Horiguchi
Hi everyone, This is an update of the fix of return value issue of hugepage soft-offlining (v1: https://patchwork.kernel.org/patch/10962135/). The code itself has no change since v1 but I updated the description. Jerry helped testing and finally confirmed that the patch is OK. In previous discus

[PATCH v2 1/2] mm: soft-offline: return -EBUSY if set_hwpoison_free_buddy_page() fails

2019-06-10 Thread Naoya Horiguchi
The pass/fail of soft offline should be judged by checking whether the raw error page was finally contained or not (i.e. the result of set_hwpoison_free_buddy_page()), but current code do not work like that. So this patch is suggesting to fix it. Signed-off-by: Naoya Horiguchi Fixes: 6bc9b56433b7

[PATCH v2 2/2] mm: hugetlb: soft-offline: dissolve_free_huge_page() return zero on !PageHuge

2019-06-10 Thread Naoya Horiguchi
madvise(MADV_SOFT_OFFLINE) often returns -EBUSY when calling soft offline for hugepages with overcommitting enabled. That was caused by the suboptimal code in current soft-offline code. See the following part: ret = migrate_pages(&pagelist, new_page, NULL, MPOL_MF_MOVE_ALL,

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-10 Thread Christoph Hellwig
On Sat, Jun 08, 2019 at 04:52:24PM -0500, Larry Finger wrote: > On 6/7/19 12:29 PM, Christoph Hellwig wrote: >> I don't think we should work around this in the driver, we need to fix >> it in the core. I'm curious why my previous patch didn't work. Can >> you throw in a few printks what failed?

Re: [alsa-devel] [PATCH 08/14] ASoC: Intel: Skylake: Properly cleanup on component removal

2019-06-10 Thread Amadeusz Sławiński
On Mon, 10 Jun 2019 09:17:21 +0200 Cezary Rojewski wrote: > On 2019-06-05 15:45, Amadeusz Sławiński wrote: > > When we remove component we need to reverse things which were done > > on init, this consists of topology cleanup, lists cleanup and > > releasing firmware. > > > > Currently cleanup ha

[GIT PULL] Immutable branch between MFD and Cros due for the v5.3 merge window

2019-06-10 Thread Lee Jones
As requested. Enjoy! The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git ib-mfd-cros-v5.3 for you to fetch changes up to 3aa

Re: [PATCH 1/1] irqchip/gic: Add support for Amazon Graviton variant of GICv3+GICv2m

2019-06-10 Thread Marc Zyngier
Hi Zeev, On 07/06/2019 00:17, Zeev Zilberman wrote: > The patch adds support for Amazon Graviton custom variant of GICv2m, where > hw irq is encoded using the MSI message address, as opposed to standard > GICv2m, where hw irq is encoded in the MSI message data. > In addition, the Graviton flavor o

Re: [PATCH 4.19 01/51] ethtool: fix potential userspace buffer overflow

2019-06-10 Thread Pavel Machek
Hi! > From: Vivien Didelot > > [ Upstream commit 0ee4e76937d69128a6a66861ba393ebdc2ffc8a2 ] > > ethtool_get_regs() allocates a buffer of size ops->get_regs_len(), > and pass it to the kernel driver via ops->get_regs() for filling. > > There is no restriction about what the kernel drivers can o

Re: [PATCH 2/4] mm: thp: make deferred split shrinker memcg aware

2019-06-10 Thread Kirill Tkhai
Hi, Yang, On 07.06.2019 09:07, Yang Shi wrote: > Currently THP deferred split shrinker is not memcg aware, this may cause > premature OOM with some configuration. For example the below test would > run into premature OOM easily: > > $ cgcreate -g memory:thp > $ echo 4G > /sys/fs/cgroup/memory/thp

Re: [PATCH 1/3] mm: thp: make deferred split shrinker memcg aware

2019-06-10 Thread Kirill Tkhai
On 29.05.2019 14:25, Yang Shi wrote: > > > On 5/29/19 4:14 PM, Kirill Tkhai wrote: >> On 29.05.2019 05:43, Yang Shi wrote: >>> >>> On 5/28/19 10:42 PM, Kirill Tkhai wrote: Hi, Yang, On 28.05.2019 15:44, Yang Shi wrote: > Currently THP deferred split shrinker is not memcg aware,

Re: [RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-10 Thread Srinivas Kandagatla
Thanks for taking time to review! On 10/06/2019 07:40, Vinod Koul wrote: On 07-06-19, 09:56, Srinivas Kandagatla wrote: Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. This patchset adds sup

Re: [PATCH] wlcore/wl18xx: Add invert-irq OF property for physically inverted IRQ

2019-06-10 Thread Tony Lindgren
Hi, * Kalle Valo [190610 07:01]: > Eugeniu Rosca writes: > > > The wl1837mod datasheet [1] says about the WL_IRQ pin: > > > > ---8<--- > > SDIO available, interrupt out. Active high. [..] > > Set to rising edge (active high) on powerup. > > ---8<--- > > > > That's the reason of seeing the int

[PATCH v4 1/2] dt-bindings: interrupt-controller: Amazon's Annapurna Labs FIC

2019-06-10 Thread Talel Shenhar
Document Amazon's Annapurna Labs Fabric Interrupt Controller SoC binding. Signed-off-by: Talel Shenhar --- .../interrupt-controller/amazon,al-fic.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/

[PATCH v4 0/2] Amazon's Annapurna Labs Fabric Interrupt Controller

2019-06-10 Thread Talel Shenhar
This series introduces support for Amazon's Annapurna Labs Fabric Interrupt Controller. The Amazon's Annapurna Labs FIC (Fabric Interrupt Controller) has 32 inputs/sources. This FIC may be cascaded into another FIC or connected directly to the main CPU Interrupt Controller (e.g. GIC). Changes sin

[PATCH v4 2/2] irqchip: al-fic: Introduce Amazon's Annapurna Labs Fabric Interrupt Controller Driver

2019-06-10 Thread Talel Shenhar
The Amazon's Annapurna Labs Fabric Interrupt Controller has 32 inputs. A FIC (Fabric Interrupt Controller) may be cascaded into another FIC or directly to the main CPU Interrupt Controller (e.g. GIC). Signed-off-by: Talel Shenhar --- MAINTAINERS | 6 + drivers/irqchip/Kconfig

[PATCH v3 7/8] usb: dwc3: qcom: Start USB in 'host mode' on the SDM845

2019-06-10 Thread Lee Jones
When booting with Device Tree, the current default boot configuration table option, the request to boot via 'host mode' comes from the 'dr_mode' property. A property of the same name can be used inside ACPI tables too. However it is missing from the SDM845's ACPI tables so we have to supply this

[PATCH v3 2/8] i2c: i2c-qcom-geni: Signify successful driver probe

2019-06-10 Thread Lee Jones
The Qualcomm Geni I2C driver currently probes silently which can be confusing when debugging potential issues. Add a low level (INFO) print when each I2C controller is successfully initially set-up. Signed-off-by: Lee Jones Acked-by: Ard Biesheuvel --- drivers/i2c/busses/i2c-qcom-geni.c | 2 ++

Re: [PATCH 4.19 01/51] ethtool: fix potential userspace buffer overflow

2019-06-10 Thread Michal Kubecek
On Mon, Jun 10, 2019 at 10:21:12AM +0200, Pavel Machek wrote: > Hi! > > > From: Vivien Didelot > > > > [ Upstream commit 0ee4e76937d69128a6a66861ba393ebdc2ffc8a2 ] > > > > ethtool_get_regs() allocates a buffer of size ops->get_regs_len(), > > and pass it to the kernel driver via ops->get_regs()

  1   2   3   4   5   6   7   8   9   >