Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Code Kipper
On 29 January 2018 at 08:38, Chen-Yu Tsai wrote: > On Mon, Jan 29, 2018 at 3:34 PM, Code Kipper wrote: >> On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: >>> On Wed, Jan 24, 2018 at 10:10 PM, wrote: From: Marcus Cooper Some codecs require a different amount of a bit clocks per

Re: [f2fs-dev] [PATCH 1/3] f2fs: support passing down write hints given by users to block layer

2018-01-28 Thread Chao Yu
On 2018/1/29 9:49, Hyunchul Lee wrote: > > On 01/26/2018 11:10 AM, Chao Yu wrote: >> On 2018/1/26 7:46, Hyunchul Lee wrote: >>> On 01/25/2018 05:01 PM, Chao Yu wrote: Hi Hyunchul, On 2018/1/25 10:47, Hyunchul Lee wrote: > Hi Chao, > > On 01/25/2018 12:32 AM, Chao Yu wrot

Re: [PATCH 3/3] Revert "e1000e: Do not read ICR in Other interrupt"

2018-01-28 Thread Benjamin Poirier
On 2018/01/26 13:01, Alexander Duyck wrote: > On Fri, Jan 26, 2018 at 1:12 AM, Benjamin Poirier wrote: > > This reverts commit 16ecba59bc333d6282ee057fb02339f77a880beb. > > > > It was reported that emulated e1000e devices in vmware esxi 6.5 Build > > 7526125 do not link up after commit 4aea7a5c5e9

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Chen-Yu Tsai
On Mon, Jan 29, 2018 at 3:34 PM, Code Kipper wrote: > On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: >> On Wed, Jan 24, 2018 at 10:10 PM, wrote: >>> From: Marcus Cooper >>> >>> Some codecs require a different amount of a bit clocks per frame than >>> what is calculated by the sample width. U

Re: [PATCH v2] of: use hash based search in of_find_node_by_phandle

2018-01-28 Thread Chintan Pandya
I was curious, so I implemented it. It ends up being similar to Rasmus's 1st suggestion. The difference is we don't try to store all entries, but rather implement a hash table that doesn't handle collisions. Relying on the fact that phandles are just linearly allocated from 0, we just mask the h

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-28 Thread Code Kipper
On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: > On Wed, Jan 24, 2018 at 10:10 PM, wrote: >> From: Marcus Cooper >> >> Some codecs require a different amount of a bit clocks per frame than >> what is calculated by the sample width. Use the tdm slot bindings to >> provide this mechanism. >> >>

Re: [PATCH v3 1/2] perf stat: Add support to print counts for fixed times

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 10:06:56AM +0100, ufo19890607 wrote: SNIP > @@ -1891,6 +1902,8 @@ static const struct option stat_options[] = { > "command to run after to the measured command"), > OPT_UINTEGER('I', "interval-print", &stat_config.interval, > "

Re: [PATCH 1/3] Partial revert "e1000e: Avoid receiver overrun interrupt bursts"

2018-01-28 Thread Benjamin Poirier
On 2018/01/26 08:50, Alexander Duyck wrote: > On Fri, Jan 26, 2018 at 1:12 AM, Benjamin Poirier wrote: > > This reverts commit 4aea7a5c5e940c1723add439f4088844cd26196d. > > > > We keep the fix for the first part of the problem (1) described in the log > > of that commit however we use the implemen

Re: [PATCH v3 1/2] perf stat: Add support to print counts for fixed times

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 10:06:56AM +0100, ufo19890607 wrote: SNIP > --- a/tools/perf/builtin-stat.c > +++ b/tools/perf/builtin-stat.c > @@ -168,6 +168,7 @@ static struct timespecref_time; > static struct cpu_map*aggr_map; > static aggr_get_id_t aggr_get_id; >

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Mike Galbraith
On Mon, 2018-01-29 at 14:33 +0800, Lai Jiangshan wrote: > On Mon, Jan 29, 2018 at 12:41 PM, Mike Galbraith wrote: > > On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote: > >> I think adding priority boost to workqueue(flush_work()) is the best > >> way to fix the problem. > > > > I disagree, p

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-28 Thread Florian Westphal
Tetsuo Handa wrote: > syzbot wrote: > > syzbot hit the following crash on net-next commit > > 6bb46bc57c8e9ce947cc605e555b7204b44d2b10 (Fri Jan 26 16:00:23 2018 +) > > Merge branch 'cxgb4-fix-dump-collection-when-firmware-crashed' > > > > C reproducer is attached. > > syzkaller reproducer is

RE: [PATCH] USB TYPEC: RT1711H Type-C Chip Driver

2018-01-28 Thread 李書帆
Hi Guenter, We try to use the TCPCI driver on RT1711H and here are some questions. Q1. Is current TCPCI driver written according to TypeC Port Controller Interface Specification Revision 1.0 & Version 1.2? Q2. Because 0x80~0xFF are vendor defined registers. Some of them are needed to be i

Re: [PATCH v3 char-misc 1/1] Drivers: hv: vmbus: Implement Direct Mode for stimer0

2018-01-28 Thread Greg KH
On Sun, Jan 28, 2018 at 09:06:48PM +, Michael Kelley (EOSG) wrote: > From: Michael Kelley > > The 2016 version of Hyper-V offers the option to operate the guest VM > per-vcpu stimer's in Direct Mode, which means the timer interupts on its > own vector rather than queueing a VMbus message. Dir

Re: [PATCH 1/2] tools lib symbol: Use strtoul instead of hex2u64 in kallsyms__parse

2018-01-28 Thread Jiri Olsa
On Fri, Jan 26, 2018 at 07:27:06PM +0200, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 7:22 PM, Andy Shevchenko > wrote: > > On Fri, Jan 19, 2018 at 6:11 PM, Jiri Olsa wrote: > >> Current kallsyms__parse uses hex2u64, which gives > >> no indication of error. Using strtoul to checkup > >> on f

Re: [PATCH net-next 00/12] ptr_ring fixes

2018-01-28 Thread Jason Wang
On 2018年01月26日 07:36, Michael S. Tsirkin wrote: This fixes a bunch of issues around ptr_ring use in net core. One of these: "tap: fix use-after-free" is also needed on net, but can't be backported cleanly. I will post a net patch separately. Lightly tested - Jason, could you pls confirm this

Re: [PATCH net-next 05/12] ptr_ring: disallow lockless __ptr_ring_full

2018-01-28 Thread Jason Wang
On 2018年01月29日 12:41, Michael S. Tsirkin wrote: On Mon, Jan 29, 2018 at 11:36:09AM +0800, Jason Wang wrote: On 2018年01月26日 10:46, Michael S. Tsirkin wrote: On 2018年01月26日 07:36, Michael S. Tsirkin wrote: Similar to bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can overrun array

Re: [GIT PULL tools] Linux kernel memory model

2018-01-28 Thread Ingo Molnar
hi Paul, * Paul E. McKenney wrote: > Hello, Ingo, > > This pull request contains a single commit that adds a memory model to > the tools directory. This memory model can (roughly speaking) be thought > of as an automated version of memory-barriers.txt. It is written in the > "cat" language,

Re: [PATCH] auxdisplay: charlcd: delete mdelay in long_sleep

2018-01-28 Thread Willy Tarreau
Hi, On Fri, Jan 26, 2018 at 11:19:15PM +0800, Jia-Ju Bai wrote: > The function long_sleep() calls mdelay() when in an interrupt handler. > But only charlcd_clear_display() and charlcd_init_display calls > long_sleep(), and my tool finds that the two functions > are never called in an interrupt h

[PATCH v2] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-28 Thread Yang Shunyong
The type of arg passed to dmatest_callback is struct dmatest_done. It refers to test_done in struct dmatest_thread, not done_wait. Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...") Signed-off-by: Yang Shunyong Signed-off-by: Vinod Koul --- v2: change arg to done in container_of

Re: [PATCH v1] mm: hwpoison: disable memory error handling on 1GB hugepage

2018-01-28 Thread Naoya Horiguchi
My apology, I forgot to CC to the mailing lists. On Mon, Jan 29, 2018 at 03:28:03PM +0900, Naoya Horiguchi wrote: > Recently the following BUG was reported: > > Injecting memory failure for pfn 0x3c at process virtual address > 0x7fe3 > Memory failure: 0x3c: recovery acti

Re: [RFC 04/10] x86/mm: Only flush indirect branches when switching into non dumpable process

2018-01-28 Thread Jon Masters
Hi Peter, David, all, First a quick note on David's earlier comment, about this optimization being still up for debate. The problem with this optimization as-is is that it doesn't protect userspace-to-userspace unless applications are rebuilt and we get the infrastructure to handle that (ELF, what

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Lai Jiangshan
On Mon, Jan 29, 2018 at 12:41 PM, Mike Galbraith wrote: > On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote: >> I think adding priority boost to workqueue(flush_work()) is the best >> way to fix the problem. > > I disagree, priority boosting is needlessly invasive, takes control out > of user

Re: 答复: Re: [RFC PATCH V5 5/5] workqueue: introduce a way to setworkqueue's scheduler

2018-01-28 Thread Mike Galbraith
On Mon, 2018-01-29 at 13:50 +0800, wen.yan...@zte.com.cn wrote: > > > What happens when a new kworker needs to be spawned? > create_worker -> worker_attach_to_pool, in the function > worker_attach_to_pool,  we add this chunk: > > --- a/kernel/workqueue.c > +++ b/kernel/workqueue.c > @@ -1699,6 +1

Re: [PATCH v3 4/5] powerpc/mm: Allow up to 64 low slices

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > While the implementation of the "slices" address space allows > a significant amount of high slices, it limits the number of > low slices to 16 due to the use of a single u64 low_slices_psize > element in struct mm_context_t > > On the 8xx, the minimum slice size is the

Re: Re: [PATCH 1/2] dmaengine: dmatest: change symbolic permissions to octal values

2018-01-28 Thread Yang, Shunyong
Hi, Vinod On Mon, 2018-01-29 at 10:18 +0530, Vinod Koul wrote: > On Mon, Jan 22, 2018 at 06:44:40PM +0800, Yang Shunyong wrote: > > > > Current coding style prefers octal permissions values. This patch > > changes symbolic permissions to octal values. > Is this preference documented anywhere? >

Re: [PATCH 3/3] syscalls: Add a bit of documentation to __SYSCALL_DEFINE

2018-01-28 Thread Al Viro
On Sun, Jan 28, 2018 at 10:50:31PM +, Al Viro wrote: > On Sun, Jan 28, 2018 at 12:42:24PM -0800, Linus Torvalds wrote: > > > The 64-bit argument for 32-bit case would end up having to have a few > > more of those architecture-specific oddities. So not just > > "argument1(ptregs)", but "argumen

Re: [PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-28 Thread Yang, Shunyong
Hi, Vinod, On Mon, 2018-01-29 at 10:15 +0530, Vinod Koul wrote: > On Mon, Jan 22, 2018 at 03:28:28PM +0800, Yang Shunyong wrote: > > > > The type of arg passed to dmatest_callback is struct dmatest_done. > > It refers to test_done in struct dmatest_thread, not done_wait. > > > > Fixes: 6f6a23a21

Re: [PATCH v3 1/5] powerpc/mm: Remove intermediate bitmap copy in 'slices'

2018-01-28 Thread Aneesh Kumar K.V
Christophe Leroy writes: > bitmap_or() and bitmap_andnot() can work properly with dst identical > to src1 or src2. There is no need of an intermediate result bitmap > that is copied back to dst in a second step. > Reviewed-by: Aneesh Kumar K.V > Signed-off-by: Christophe Leroy > --- > v2: New

[PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-28 Thread Kai-Heng Feng
The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out of box. The touchpad relies on its _INI method to update its _HID value from to SYNA2393. Also, the _STA relies on value of I2CN to report correct status. Set acpi_gbl_parse_table_as_term_list so the value of I2CN can

linux-next: manual merge of the nvdimm tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: arch/powerpc/sysdev/axonram.c between commit: 1d65b1c886be ("powerpc/cell: Remove axonram driver") from the powerpc tree and commit: 785a3fab4adb ("mm, dax: introduce pfn_t_special()") from the nvdimm tree. I fixed

linux-next: manual merge of the nvdimm tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Dan, Today's linux-next merge of the nvdimm tree got a conflict in: arch/powerpc/platforms/Kconfig between commit: 1d65b1c886be ("powerpc/cell: Remove axonram driver") from the powerpc tree and commit: 569d0365f571 ("dax: require 'struct page' by default for filesystem dax") from th

Re: [2/3] i2c: piix4: fix number of ports on Family 16h Model 30h

2018-01-28 Thread Guenter Roeck
On Mon, Jan 29, 2018 at 01:54:19PM +1000, Andrew Cooks wrote: > Prevent bus timeouts and resets on Family 16h Model 30h), by not > probing reserved Ports 3 and 4. > > According to the AMD BIOS and Kernel Developer's Guides (BKDG), Port 3 > and Port 4 are reserved on the following devices: > - Fam

[PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK

2018-01-28 Thread Kai-Heng Feng
Same issue as other Asus laptops, ACPI incorrectly reports discharging when battery is full and AC is plugged. Use the same battery quirk can workaround the issue. BugLink: https://bugs.launchpad.net/bugs/1661876 BugLink: https://bugs.launchpad.net/bugs/1745032 Signed-off-by: Kai-Heng Feng ---

[PATCH] ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute

2018-01-28 Thread Kirill Marinushkin
The layout of the UAC2 Control request and response varies depending on the request type. With the current implementation, only the Layout 2 Parameter Block (with the 2-byte sized RANGE attribute) is handled properly. For the Control requests with the 1-byte sized RANGE attribute (Bass Control, Mid

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-01-28 Thread Anshuman Khandual
On 01/29/2018 08:17 AM, Anshuman Khandual wrote: > On 01/26/2018 07:34 PM, Michal Hocko wrote: >> On Fri 26-01-18 18:04:27, Anshuman Khandual wrote: >> [...] >>> I tried to instrument mmap_region() for a single instance of 'sed' >>> binary and traced all it's VMA creation. But there is no trace whe

Re: [patch V2 1/2] sysfs/cpu: Add vulnerability folder

2018-01-28 Thread Jon Masters
On 01/07/2018 04:48 PM, Thomas Gleixner wrote: > +#ifdef CONFIG_GENERIC_CPU_VULNERABILITIES > + > +ssize_t __weak cpu_show_meltdown(struct device *dev, > + struct device_attribute *attr, char *buf) > +{ > + return sprintf(buf, "Not affected\n"); > +} > + > +ssize_t

Re: KASAN: use-after-free Write in irq_bypass_register_consumer

2018-01-28 Thread Tianyu Lan
On 1/27/2018 7:27 AM, Eric Biggers wrote: On Sat, Dec 16, 2017 at 04:37:02PM +0800, Lan, Tianyu wrote: The root cause is that kvm_irqfd_assign() and kvm_irqfd_deassign() can't be run in parallel. Some data structure(e.g, irqfd->consumer) will be crashed because irqfd may be freed in deassign p

[PATCH 02/15] ARM: dts: ipq4019: Add a few peripheral nodes

2018-01-28 Thread Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 1 file changed, 134 insertions(+

Re: [PATCH] mm/swap.c: fix kernel-doc functions and parameters

2018-01-28 Thread Matthew Wilcox
On Sun, Jan 28, 2018 at 08:01:08PM -0800, Randy Dunlap wrote: > @@ -400,6 +400,10 @@ void mark_page_accessed(struct page *pag > } > EXPORT_SYMBOL(mark_page_accessed); > > +/** > + * __lru_cache_add: add a page to the page lists > + * @page: the page to add > + */ > static void __lru_cache_add(

[PATCH 01/15] firmware: qcom: scm: Add ipq4019 soc compatible

2018-01-28 Thread Sricharan R
Add the compatible for ipq4019. This does not need clocks to do scm calls. Signed-off-by: Sricharan R --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 3 ++- drivers/firmware/qcom_scm.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH 08/15] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c5 board file

2018-01-28 Thread Sricharan R
dk04.1-c5 has a spinand connected to spi bus0 chipselect 1. Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c5.dts | 23 +++ 2 files changed, 24 insertions(+) create mode 100644 arch/arm/boot/dts

[PATCH 05/15] ARM: dts: ipq4019: Add ipq4019-ap-dk01-c2 board file

2018-01-28 Thread Sricharan R
The board has a spi-nand interface on spi0 bus chipselect1. Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1-c2.dts | 25 + 2 files changed, 26 insertions(+) create mode 100644 arch/arm/boot/d

[PATCH 13/15] ARM: dts: ipq8074: Add peripheral nodes

2018-01-28 Thread Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes. Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 103 ++ 1 file changed, 103 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index 2b

[PATCH 10/15] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-01-28 Thread Sricharan R
Add the common data for all dk07 based boards. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 128 ++ 1 file changed, 128 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi diff --git a/arch/arm/boot/dts/qcom-i

[PATCH 12/15] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-01-28 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 78 + 2 files changed, 79 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts diff --git a/arch/arm/boot/

[PATCH 09/15] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-01-28 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 14 ++ 2 files changed, 15 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts diff --git a/arch/arm/boot/dts/Makefil

[PATCH 11/15] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-01-28 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 60 + 2 files changed, 61 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts diff --git a/arch/arm/boot/

[PATCH 07/15] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-01-28 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 8 2 files changed, 9 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/

[PATCH 14/15] ARM: dts: ipq8074: Add pcie nodes

2018-01-28 Thread Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT. Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 155 +- 1 file changed, 154 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b

[PATCH 15/15] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-01-28 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 99 +++ 1 file changed, 99 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts index 6a838b5..69a1b0c 100644 --- a/arch/arm64/boot/

[PATCH 06/15] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-01-28 Thread Sricharan R
Add the common parts for the dk04 boards. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 147 ++ 1 file changed, 147 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi diff --git a/arch/arm/boot/dts/qcom-ipq401

[PATCH 04/15] ARM: dts: ipq4019: Update ipq4019-dk01.1 board data

2018-01-28 Thread Sricharan R
Adds missing memory and reserved-memory node. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 28 +++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dt

[PATCH 03/15] ARM: dts: ipq4019: Change the max opp frequency

2018-01-28 Thread Sricharan R
The max opp frequency is 716MHZ. So update that. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index e38fffa..2ee71c2 100644 --- a/a

[PATCH 00/15] ARM: dts: ipq: updates to enable a few peripherals

2018-01-28 Thread Sricharan R
The driver support for ipq based platform's spi, i2c, nand, spi-nor, pcie is available now. So update the dts to enable those peripherals. Sricharan R (15): firmware: qcom: scm: Add ipq soc compatibles ARM: dts: ipq4019: Add a few peripheral nodes ARM: dts: ipq4019: Change the max opp freque

[PATCH] leaking_addresses: add 32-bit support

2018-01-28 Thread Tobin C. Harding
Currently script only supports x86_64 and ppc64. It would be nice to be able to scan 32-bit machines also. We can add support for 32-bit architectures by modifying how we check for false positives, taking advantage of the page offset used by the kernel, and using the correct regular expression.

Re: [PATCH 1/2] dmaengine: dmatest: change symbolic permissions to octal values

2018-01-28 Thread Vinod Koul
On Mon, Jan 22, 2018 at 06:44:40PM +0800, Yang Shunyong wrote: > Current coding style prefers octal permissions values. This patch > changes symbolic permissions to octal values. Is this preference documented anywhere? -- ~Vinod

Re: linux-next: build failure after merge of the pci tree

2018-01-28 Thread Michael Ellerman
Rob Herring writes: > On Wed, Jan 24, 2018 at 11:49 PM, Stephen Rothwell > wrote: >> Hi Bjorn, >> >> After merging the pci tree, today's linux-next build (powerpc >> ppc64_defconfig) failed like this: >> >> arch/powerpc/kernel/pci-common.c: In function 'pcibios_setup >> _device': >> arch/powerp

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Mike Galbraith
On Mon, 2018-01-29 at 12:15 +0800, Lai Jiangshan wrote: > I think adding priority boost to workqueue(flush_work()) is the best > way to fix the problem. I disagree, priority boosting is needlessly invasive, takes control out of user hands. The kernel wanting to run a workqueue does not justify pe

Re: [PATCH net-next 05/12] ptr_ring: disallow lockless __ptr_ring_full

2018-01-28 Thread Michael S. Tsirkin
On Mon, Jan 29, 2018 at 11:36:09AM +0800, Jason Wang wrote: > > > On 2018年01月26日 10:46, Michael S. Tsirkin wrote: > > > On 2018年01月26日 07:36, Michael S. Tsirkin wrote: > > > > Similar to bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can > > > > overrun array bounds") a lockless use of

Re: [PATCH] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-28 Thread Vinod Koul
On Mon, Jan 22, 2018 at 03:28:28PM +0800, Yang Shunyong wrote: > The type of arg passed to dmatest_callback is struct dmatest_done. > It refers to test_done in struct dmatest_thread, not done_wait. > > Fixes: 6f6a23a213be ("dmaengine: dmatest: move callback wait ...") > Signed-off-by: Yang Shunyon

[PATCH 1/1] scsi: ufs: fix exception event handling

2018-01-28 Thread Asutosh Das
From: Maya Erez The device can set the exception event bit in one of the response UPIU, for example to notify the need for urgent BKOPs operation. In such a case the host driver calls ufshcd_exception_event_handler to handle this notification. When trying to check the exception event status (for

Re: [PATCH] staging: rtlwifi: remove redundant initialization of 'cfg_cmd'

2018-01-28 Thread Pkshih
On Fri, 2018-01-26 at 13:52 +, Colin King wrote: > From: Colin Ian King >  > The initialization of cfg_cmd is redundant as the value is never read > and it is being re-assigned to cfg_cmd = pwrcfgcmd[ary_idx] inside a > loop, hence it can be removed. >  > Cleans up clang warning: > drivers/sta

Re: [RFC PATCH V5 5/5] workqueue: introduce a way to set workqueue's scheduler

2018-01-28 Thread Lai Jiangshan
I think adding priority boost to workqueue(flush_work()) is the best way to fix the problem. On Sat, Jan 27, 2018 at 1:15 PM, Wen Yang wrote: > When pinning RT threads to specific cores using CPU affinity, the > kworkers on the same CPU would starve, which may lead to some kind > of priority inve

Re: [1/1] : powerpc: block interrupts when updating TIDR

2018-01-28 Thread Michael Ellerman
On Fri, 2017-12-01 at 21:31:40 UTC, Sukadev Bhattiprolu wrote: > From: Sukadev Bhattiprolu > Date: Tue, 28 Nov 2017 13:39:43 -0600 > Subject: [PATCH 1/1]: powerpc: block interrupts when updating TIDR > > clear_thread_tidr() is called in interrupt context as a part of delayed > put of the task str

Re: [PATCH] drm/bridge/synopsys: dsi: use adjusted_mode in mode_set

2018-01-28 Thread Archit Taneja
On 01/26/2018 03:24 PM, Philippe CORNU wrote: Hi Brian, And a big thanks for your Tested-by On 01/25/2018 11:47 PM, Brian Norris wrote: On Thu, Jan 25, 2018 at 7:55 AM, Philippe Cornu wrote: The "adjusted_mode" clock value (ie the real pixel clock) is more accurate than "mode" clock value (

Re: macintosh: change some data types from int to bool

2018-01-28 Thread Michael Ellerman
On Wed, 2018-01-24 at 01:42:28 UTC, "Gustavo A. R. Silva" wrote: > Change the data type of the following variables from int to bool > across all macintosh drivers: > > started > slots_started > pm121_started > wf_smu_started > > Some of these issues were detected with the help of Coccinelle. > >

Re: powerpc/mm/nohash: do not flush the entire mm when range is a single page

2018-01-28 Thread Michael Ellerman
On Tue, 2018-01-23 at 13:22:50 UTC, Christophe Leroy wrote: > Most of the time, flush_tlb_range() is called on single pages. > At the time being, flush_tlb_range() inconditionnaly calls > flush_tlb_mm() which flushes at least the entire PID pages and on > older CPUs like 4xx or 8xx it flushes the e

Re: macintosh/ams-input: Use true and false for boolean values

2018-01-28 Thread Michael Ellerman
On Wed, 2018-01-24 at 01:48:46 UTC, "Gustavo A. R. Silva" wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle > > Signed-off-by: Gustavo A. R. Silva > Reviewed-by: Michael Hanselmann Applied to powerpc next, th

Re: [v2, 01/13] powerpc/powernv: Introduce new PHB type for opencapi links

2018-01-28 Thread Michael Ellerman
On Tue, 2018-01-23 at 11:31:36 UTC, Frederic Barrat wrote: > The NPU was already abstracted by opal as a virtual PHB for nvlink, > but it helps to be able to differentiate between a nvlink or opencapi > PHB, as it's not completely transparent to linux. In particular, PE > assignment differs and we'

Re: [v2,3/9] powerpc: mpc52xx_gpt: make use of raw_spinlock variants

2018-01-28 Thread Michael Ellerman
On Tue, 2017-03-21 at 22:43:03 UTC, Julia Cartwright wrote: > The mpc52xx_gpt code currently implements an irq_chip for handling > interrupts; due to how irq_chip handling is done, it's necessary for the > irq_chip methods to be invoked from hardirq context, even on a a > real-time kernel. Because

Re: [PATCH] gpio-pca953x: fall back to byte-at-a-time for 24-bit io

2018-01-28 Thread Andrew Cooks
Hi Andy On 29/12/17 19:44, Andy Shevchenko wrote: > On Tue, Dec 5, 2017 at 4:17 AM, Andrew Cooks > wrote: >> Using TCA6424A with i2c-piix4 bus driver requires byte-at-a-time IO, >> because the i2c-piix4 driver (and probably some SMBus controllers) don't >> support I2C_SMBUS_I2C_BLOCK_DATA. > >

Re: [PATCH 2/2] drm: adv7511: Add support for i2c_new_secondary_device

2018-01-28 Thread Archit Taneja
Hi, On 01/22/2018 06:20 PM, Kieran Bingham wrote: The ADV7511 has four 256-byte maps that can be accessed via the main I²C ports. Each map has it own I²C address and acts as a standard slave device on the I²C bus. Allow a device tree node to override the default addresses so that address confli

Re: linux-next: manual merge of the kvm tree with Linus' tree

2018-01-28 Thread Stephen Rothwell
Hi all, On Wed, 17 Jan 2018 13:53:26 +0100 (CET) Thomas Gleixner wrote: > > On Wed, 17 Jan 2018, Stephen Rothwell wrote: > > On Wed, 17 Jan 2018 13:23:17 +0100 (CET) Thomas Gleixner > > wrote: > > > No. Keep it and lets next time coordinate the relevant bits and pieces > > > better. I reserv

[PATCH] mm/swap.c: fix kernel-doc functions and parameters

2018-01-28 Thread Randy Dunlap
From: Randy Dunlap Fix some basic kernel-doc notation in mm/swap.c: - make function names in kernel-doc notation match the functions - make function parameter names in kernel-doc match the actual parameters Fix function kernel-doc to match the change in commit 67fd707f4681: - drop the kernel-doc

[PATCH 2/3] i2c: piix4: fix number of ports on Family 16h Model 30h

2018-01-28 Thread Andrew Cooks
Prevent bus timeouts and resets on Family 16h Model 30h), by not probing reserved Ports 3 and 4. According to the AMD BIOS and Kernel Developer's Guides (BKDG), Port 3 and Port 4 are reserved on the following devices: - Family 15h Model 60h-6Fh, - Family 15h Model 70h-7Fh, - Family 16h Models 3

[PATCH 3/3] i2c: add ACPI support for i2c-piix4

2018-01-28 Thread Andrew Cooks
This enables the i2c-piix4 SMBus controller driver to enumerate I2C slave devices using ACPI. It builds on the related I2C mux device work in commit 8eb5c87a92c0 ("i2c: add ACPI support for I2C mux ports") In the i2c-piix4 driver the adapters are enumerated as: Main SMBus adapter Port 0, Port 2,

[PATCH 1/3] i2c: piix4: Fix port selection for AMD Family 16h Model 30h

2018-01-28 Thread Andrew Cooks
Family 16h Model 30h SMBus controller has the same port selection register as described and fixed in commit 0fe16195f89173652cf111d7b384941b00c5aabd ("i2c: piix4: Fix SMBus port selection for AMD Family 17h chips") commit 6befa3fde65fe437f588da490c07a114393ce229 ("i2c: piix4: Support alternative p

[PATCH v3 0/3] Enable ACPI-defined peripherals on i2c-piix4 SMBus

2018-01-28 Thread Andrew Cooks
These patches fix a couple of issues with the i2c-piix4 driver on AMD Family 16h Model 30h SoCs and add ACPI-based enumeration to the i2c-piix4 driver. Some I2C peripherals, eg. PCA953x IO expander, are not discovered by the probe or detect mechanisms when attached to an SMBus controller that uses

Re: [PATCH 1/6] MAINTAINERS: Remove ANDROID ION pattern

2018-01-28 Thread Sumit Semwal
On 28 January 2018 at 19:35, Laura Abbott wrote: > On 01/28/2018 05:56 AM, Joe Perches wrote: >> >> File drivers/staging/android/uapi/ion_test.h was removed by >> commit 9828282e33a0 ("staging: android: ion: Remove old platform support") >> >> Remove the pattern. >> > > Acked-by: Laura Abbott > A

Re: [PATCH 0/2] RDMA/bnxt_re: Adjustments for bnxt_qplib_alloc_dpi_tbl()

2018-01-28 Thread Devesh Sharma
On Sun, Jan 28, 2018 at 1:45 AM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sat, 27 Jan 2018 21:10:12 +0100 > > Two update suggestions were taken into account > from static source code analysis. You don't need 2 patches when changing same lines of code. Could you squash both and sen

linux-next: manual merge of the tip tree with the i2c tree

2018-01-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: MAINTAINERS between commit: e38c85644e11 ("i2c: mv64xxx: Add myself as maintainer for this driver") from the i2c tree and commit: 8a95b74d5082 ("x86: Mark hpa as a "Designated Reviewer" for the time being") from the ti

[PATCH] f2fs: fix heap mode to reset it back

2018-01-28 Thread Yunlong Song
Commit 7a20b8a61eff81bdb7097a578752a74860e9d142 ("f2fs: allocate node and hot data in the beginning of partition") introduces another mount option, heap, to reset it back. But it does not do anything for heap mode, so fix it. Signed-off-by: Yunlong Song --- fs/f2fs/gc.c | 5 +++-- fs/f2fs/s

Re: [PATCH RESEND] perf/core: Fix installing cgroup event into cpu

2018-01-28 Thread Lin Xiulei
2018-01-26 10:02 GMT+08:00 kbuild test robot : > Hi leilei.lin, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on tip/perf/core] > [also build test ERROR on v4.15-rc9 next-20180119] > [if your patch is applied to the wrong git tree, please drop us a note to > hel

Re: [PATCH net-next 05/12] ptr_ring: disallow lockless __ptr_ring_full

2018-01-28 Thread Jason Wang
On 2018年01月26日 10:46, Michael S. Tsirkin wrote: On 2018年01月26日 07:36, Michael S. Tsirkin wrote: Similar to bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can overrun array bounds") a lockless use of __ptr_ring_full might cause an out of bounds access. We can fix this, but it's easi

Re: [PATCH 1/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread Masahiro Yamada
Hi Frank, 2018-01-29 11:53 GMT+09:00 : > From: Frank Rowand > diff --git a/drivers/of/unittest-data/Makefile > b/drivers/of/unittest-data/Makefile > index df697976740a..2b7ee68c908e 100644 > --- a/drivers/of/unittest-data/Makefile > +++ b/drivers/of/unittest-data/Makefile > @@ -3,6 +3,21 @@ DTC

Re: [Patch v1 3/8] ACPI / LPIT: Export lpit_read_residency_count_address()

2018-01-28 Thread Rafael J. Wysocki
On Fri, Jan 26, 2018 at 10:48 AM, Andy Shevchenko wrote: > On Fri, Jan 19, 2018 at 10:58 AM, Rajneesh Bhardwaj > wrote: >> From: Srinivas Pandruvada >> >> Export lpit_read_residency_count_address(), so that it can be used from >> drivers built as module. With the recent changes, the builtin_pci

[PATCH] nvme-pci: use NOWAIT flag for nvme_set_host_mem

2018-01-28 Thread Jianchao Wang
nvme_set_host_mem will invoke nvme_alloc_request without NOWAIT flag, it is unsafe for nvme_dev_disable. The adminq driver tags may have been used up when the previous outstanding adminq requests cannot be completed due to some hardware error. We have to depend on the timeout path to complete the p

Re: [PATCH v8 0/5] x86/KASLR: Add parameter kaslr_mem=nn[KMG]@ss[KMG]

2018-01-28 Thread Chao Fan
Hi Kees, Since no reply for one week, any suggestions for this version? Thanks, Chao Fan On Tue, Jan 23, 2018 at 04:35:41PM +0800, Chao Fan wrote: >This is v8 resend. There's no code change. Just improve code comments >and document accordingly. So add Baoquan's Acked-by and Luiz's >Tested-by. >

[PATCH] perf report: Fix wrong jump arrow

2018-01-28 Thread Jin Yao
When we use perf report interactive annotate view, we can see the position of jump arrow is not correct. For example, 1. perf record -b ... 2. perf report 3. In interactive mode, select Annotate 'function' Percent│ IPC Cycle │if (flag) 1.37 │0.4┌── 1

Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address

2018-01-28 Thread Rafael J. Wysocki
On Sun, Jan 28, 2018 at 4:04 PM, Andy Shevchenko wrote: > On Fri, Jan 26, 2018 at 8:21 PM, Juergen Gross wrote: >> On 26/01/18 19:08, Andy Shevchenko wrote: >>> On Thu, Jan 25, 2018 at 4:36 PM, Juergen Gross wrote: Add a function to get the address of the RSDP table. Per default use a

linux-next: manual merge of the mfd tree with the powerpc tree

2018-01-28 Thread Stephen Rothwell
Hi Lee, Today's linux-next merge of the mfd tree got conflicts in: drivers/misc/Kconfig drivers/misc/Makefile between commit: b97f02246e0d ("ocxl: Add Makefile and Kconfig") from the powerpc tree and commit: e455b69ddf9b ("misc: rtsx: Move Realtek Card Reader Driver to misc") from th

Re: [PATCH v2 1/2] x86/acpi: add retrieval function for rsdp address

2018-01-28 Thread Rafael J. Wysocki
On Fri, Jan 26, 2018 at 7:08 PM, Andy Shevchenko wrote: > On Thu, Jan 25, 2018 at 4:36 PM, Juergen Gross wrote: >> Add a function to get the address of the RSDP table. Per default use a >> __weak annotated function being a nop. > > The problem with weak functions that we can't have more than one

Re: pull-request: wireless-drivers-next 2018-01-26

2018-01-28 Thread David Miller
From: Kalle Valo Date: Fri, 26 Jan 2018 19:04:29 +0200 > this is a pull request to net-next for 4.16, more info in the signed > tag below. Please let me know if you have any problems. Pulled, thanks Kalle.

Re: [PATCH net-next] sfc: mark some unexported symbols as static

2018-01-28 Thread David Miller
From: Edward Cree Date: Fri, 26 Jan 2018 17:00:39 + > From: kbuild test robot > > efx_default_channel_want_txqs() is only used in efx.c, while > efx_ptp_want_txqs() and efx_ptp_channel_type (a struct) are only used > in ptp.c. In all cases these symbols should be static. > > Fixes: 2935

[PATCH 0/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH 1/2] of: change overlay apply input data from EDT to FDT

2018-01-28 Thread frowand . list
From: Frank Rowand Move duplicating and unflattening of an overlay flattened devicetree (FDT) into the overlay application code. To accomplish this, of_overlay_apply() is replaced by of_overlay_fdt_apply(). The copy of the FDT (aka "duplicate FDT") now belongs to devicetree code, which is thus

[PATCH 2/2] of: convert unittest overlay devicetree source to sugar syntax

2018-01-28 Thread frowand . list
From: Frank Rowand The unittest-data overlays have been pulled into proper overlay devicetree source files without changing their format. The next step is to convert them to use sugar syntax instead of hand coding overlay fragments structure. A few of the overlays can not be converted because t

Re: ppc elf_map breakage with MAP_FIXED_NOREPLACE

2018-01-28 Thread Anshuman Khandual
On 01/26/2018 07:34 PM, Michal Hocko wrote: > On Fri 26-01-18 18:04:27, Anshuman Khandual wrote: > [...] >> I tried to instrument mmap_region() for a single instance of 'sed' >> binary and traced all it's VMA creation. But there is no trace when >> that 'anon' VMA got created which suddenly shows u

Re: [4.15-rc9] fs_reclaim lockdep trace

2018-01-28 Thread Dave Jones
On Sun, Jan 28, 2018 at 02:55:28PM +0900, Tetsuo Handa wrote: > Dave, would you try below patch? > > >From cae2cbf389ae3cdef1b492622722b4aeb07eb284 Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Sun, 28 Jan 2018 14:17:14 +0900 > Subject: [PATCH] lockdep: Fix fs_reclaim warning. See

Re: [RFC][PATCH] printk: do not flush printk_safe from irq_work

2018-01-28 Thread Sergey Senozhatsky
On (01/26/18 16:26), Petr Mladek wrote: [..] > First, this delays showing eventually valuable information until > the preemption is enabled. It might never happen if the system > is in big troubles. In each case, it might be much longer delay > than it was before. If the system is in "big troubles

  1   2   3   4   5   6   >