Re: [PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece

2018-06-28 Thread Matthew Wilcox
On Fri, Jun 29, 2018 at 09:17:16AM +0800, Huang, Ying wrote: > Matthew Wilcox writes: > > I'll take a look. Honestly, my biggest problem with this patch set is > > overuse of tagging: > > > > 59832 Jun 22 Huang, Ying ( 131) [PATCH -mm -v4 00/21] mm, THP, > > swap: Swa > > There's

Re: [PATCH 11/11] proc/sched: remove unused sched_time_avg_ms

2018-06-28 Thread Vincent Guittot
On Thu, 28 Jun 2018 at 21:03, Luis R. Rodriguez wrote: > > On Thu, Jun 28, 2018 at 05:45:14PM +0200, Vincent Guittot wrote: > > /proc/sys/kernel/sched_time_avg_ms entry is not used anywhere. > > Remove it > > > > Cc: Ingo Molnar > > Cc: Peter Zijlstra > > Cc: Kees Cook > > Cc: "Luis R.

BUG: unable to handle kernel NULL pointer dereference in ep_item_poll

2018-06-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:90368a37fbbe Merge tag 'printk-for-4.18-rc3' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14e0dd1440 kernel config: https://syzkaller.appspot.com/x/.config?x=a63be0c83e84d370

Re: [PATCH v3 1/2] iio: dac: Add AD5758 support

2018-06-28 Thread Himanshu Jha
On Fri, Jun 29, 2018 at 03:18:18AM +0530, Himanshu Jha wrote: > On Thu, Jun 28, 2018 at 03:13:32PM +0300, Stefan Popa wrote: > > The AD5758 is a single channel DAC with 16-bit precision which uses the > > SPI interface that operates at clock rates up to 50MHz. > > > > The output can be configured

BUG: unable to handle kernel NULL pointer dereference in do_select

2018-06-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:90368a37fbbe Merge tag 'printk-for-4.18-rc3' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1759737f80 kernel config: https://syzkaller.appspot.com/x/.config?x=a63be0c83e84d370

BUG: unable to handle kernel NULL pointer dereference in do_sys_poll

2018-06-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:90368a37fbbe Merge tag 'printk-for-4.18-rc3' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=109168df80 kernel config: https://syzkaller.appspot.com/x/.config?x=a63be0c83e84d370

Re: linux-next: manual merge of the akpm-current tree with the scsi tree

2018-06-28 Thread Stephen Rothwell
Hi all, On Wed, 20 Jun 2018 13:54:58 +1000 Stephen Rothwell wrote: > > Today's linux-next merge of the akpm-current tree got a conflict in: > > lib/percpu_ida.c > > between commit: > > acf3ff616ee2 ("scsi: Remove percpu_ida") > > from the scsi tree and commit: > > 0c4d6e08c775

Re: [PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Peter Rosin
On June 29, 2018 6:44:39 AM GMT+02:00, Manivannan Sadhasivam wrote: >Hi Peter, > >On Fri, Jun 29, 2018 at 06:13:31AM +0200, Peter Rosin wrote: >> Hi! >> >> I don't know for sure, but over here the arch/arm64/boot/dts/actions >folder has no pinctrl nodes at all (v4.18-rc2). So, what is this

Re: [PATCH] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler

2018-06-28 Thread Lars-Peter Clausen
On 06/29/2018 01:55 AM, Karim Eshapa wrote: > Use GFP_ATOMIC rather GFP_KERNEL in interrupt handler, > as GFP_KERNEL may sleep according to slab allocator. This is a threaded interrupt. Sleeping is OK. > > Signed-off-by: Karim Eshapa > --- > drivers/staging/iio/adc/ad7280a.c | 2 +- > 1 file

[PATCH v3 2/2] leds: sc27xx: Add pattern_set/get/clear interfaces for LED controller

2018-06-28 Thread Baolin Wang
This patch implements the 'pattern_set', 'pattern_get' and 'pattern_clear' interfaces to support SC27XX LED breathing mode. Signed-off-by: Baolin Wang --- Changes from v2: - No updates. Changes from v1: - No updates. --- drivers/leds/leds-sc27xx-bltc.c | 160

[PATCH v3 1/2] leds: core: Introduce generic pattern interface

2018-06-28 Thread Baolin Wang
From: Bjorn Andersson Some LED controllers have support for autonomously controlling brightness over time, according to some preprogrammed pattern or function. This adds a new optional operator that LED class drivers can implement if they support such functionality as well as a new device

linux-next: manual merge of the usb tree with the usb.current tree

2018-06-28 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in: drivers/staging/typec/Kconfig between commit: e16711c32bca ("staging/typec: fix tcpci_rt1711h build errors") from the usb.current tree and commit: 990da41530b3 ("staging: typec: tcpci: move tcpci drivers out of

Re: [PATCH v2 5/6] i2c: Add Actions Semi OWL family S900 I2C driver

2018-06-28 Thread Peter Rosin
On June 28, 2018 8:10:41 PM GMT+02:00, Manivannan Sadhasivam wrote: >Add Actions Semi OWL family S900 I2C driver. > >Signed-off-by: Manivannan Sadhasivam >--- > drivers/i2c/busses/Kconfig | 7 + > drivers/i2c/busses/Makefile | 1 + > drivers/i2c/busses/i2c-owl.c | 471

Re: [PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Manivannan Sadhasivam
Hi Peter, On Fri, Jun 29, 2018 at 06:13:31AM +0200, Peter Rosin wrote: > On June 28, 2018 8:10:36 PM GMT+02:00, Manivannan Sadhasivam > wrote: > >This patchset adds I2C controller support for Actions Semi S900 SoC. > >This driver has been structured in a way such that there will be only > >one

Re: config files and how to have persistent Linux kernel Driver/File System configuration info saved

2018-06-28 Thread Dave Chinner
On Thu, Jun 28, 2018 at 06:24:59PM -0500, Steve French wrote: > On Thu, Jun 28, 2018 at 6:21 PM ronnie sahlberg > wrote: > > > > On Fri, Jun 29, 2018 at 8:58 AM, Theodore Y. Ts'o via samba-technical > > wrote: > > > On Thu, Jun 28, 2018 at 05:37:15PM -0500, Steve French wrote: > > >> Ronnie

Re: [PATCH tip/core/rcu 13/22] rcu: Fix grace-period hangs due to race with CPU offline

2018-06-28 Thread Paul E. McKenney
On Thu, Jun 28, 2018 at 03:06:46PM +0200, Peter Zijlstra wrote: > On Thu, Jun 28, 2018 at 05:38:33AM -0700, Paul E. McKenney wrote: > > Please let me try again. > > > > The approach you are suggesting, clever though it is, disables a check > > >

Re: [patch 1/2] posix-timers: Make forward callback return s64

2018-06-28 Thread John Stultz
On Tue, Jun 26, 2018 at 6:21 AM, Thomas Gleixner wrote: > The posix timer ti_overrun handling is broken because the forwarding > functions can return a huge number of overruns which does not fit in an > int. As a consequence timer_getoverrun(2) and siginfo::si_overrun can turn > into random

Re: [patch 2/2] posix-timers: Sanitize overrun handling

2018-06-28 Thread John Stultz
On Tue, Jun 26, 2018 at 6:21 AM, Thomas Gleixner wrote: > The posix timer overrun handling is broken because the forwarding functions > can return a huge number of overruns which does not fit in an int. As a > consequence timer_getoverrun(2) and siginfo::si_overrun can turn into > random number

RE: [[LINUX PATCH v10] 4/4] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-06-28 Thread Naga Sureshkumar Relli
Hi Linus, > -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: Thursday, June 28, 2018 11:44 PM > To: Naga Sureshkumar Relli > Cc: Boris Brezillon ; Richard Weinberger > ; > David Woodhouse ; Brian Norris > ; Mark Vasut ; Florian > Fainelli > ; Markus

Re: [PATCH] nubus: Set default dma mask for nubus_board devices

2018-06-28 Thread Finn Thain
On Thu, 28 Jun 2018, Christoph Hellwig wrote: > On Mon, Jun 25, 2018 at 09:46:11PM +1000, Finn Thain wrote: > > A 32-bit mask is used by default because a NuBus slot has 32 > > address/data lines and a NuBus board is free to use all of them. > > Looks good: Thanks for looking it over. But did

Re: [PATCH v2 0/6] Add Actions Semi S900 I2C support

2018-06-28 Thread Peter Rosin
On June 28, 2018 8:10:36 PM GMT+02:00, Manivannan Sadhasivam wrote: >This patchset adds I2C controller support for Actions Semi S900 SoC. >This driver has been structured in a way such that there will be only >one controller driver for the whole OWL family series (S500, S700 and >S900 SoCs). >

Re: [PATCH] lib/string.c: fix a typo in comment: 'iff' -->'if'

2018-06-28 Thread YueHaibing
On 2018/6/29 11:35, Randy Dunlap wrote: > On 06/28/2018 08:33 PM, YueHaibing wrote: >> Signed-off-by: YueHaibing >> --- >> lib/string.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Hi, > > This isn't a typo. "iff" means "if and only if". ok, my poor english, thank you. >

Re: [PATCH] lib/string.c: fix a typo in comment: 'iff' -->'if'

2018-06-28 Thread Randy Dunlap
On 06/28/2018 08:33 PM, YueHaibing wrote: > Signed-off-by: YueHaibing > --- > lib/string.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi, This isn't a typo. "iff" means "if and only if". > diff --git a/lib/string.c b/lib/string.c > index 2c0900a..23ed944 100644 > ---

[PATCH] bindings: add clocks optional binding for imx gpio

2018-06-28 Thread Anson Huang
Some i.MX SoCs have GPIO clock gate in CCM, accessing GPIO registers needs to enable GPIO clock gate first, i.MX GPIO driver will enable clock gate if there is clock property in GPIO node of dtb, add optional property to i.MX GPIO binding doc. Signed-off-by: Anson Huang ---

[PATCH] lib/string.c: fix a typo in comment: 'iff' -->'if'

2018-06-28 Thread YueHaibing
Signed-off-by: YueHaibing --- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string.c b/lib/string.c index 2c0900a..23ed944 100644 --- a/lib/string.c +++ b/lib/string.c @@ -609,7 +609,7 @@ EXPORT_SYMBOL(strsep); * @s1: one string * @s2: another string

[PATCH 2/2] drivers: core: Remove glue dirs from sysfs earlier

2018-06-28 Thread Benjamin Herrenschmidt
For devices with a class, we create a "glue" directory between the parent device and the new device with the class name. This directory is never "explicitely" removed when empty however, this is left to the implicit sysfs removal done by kobjects when they are released on the last kobject_put().

Re: [PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Paul E. McKenney
On Fri, Jun 29, 2018 at 07:22:22AM +0900, Akira Yokosawa wrote: > On 2018/06/28 08:21:40 -0700, Paul E. McKenney wrote: > [...] > > > > While I am at it, here is the current scorecard: > > > > e9ff68680cd4 tools/memory-model: Add litmus test for full multicopy > > atomicity > > c21fcc6594f1

Re: [PATCH v4 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-06-28 Thread Guenter Roeck
On 06/28/2018 04:50 PM, Ray Jui wrote: Hi Guenter/Florian, On 6/27/2018 11:55 AM, Guenter Roeck wrote: On Wed, Jun 27, 2018 at 11:47:21AM -0700, Ray Jui wrote: On 6/27/2018 11:42 AM, Guenter Roeck wrote: On Wed, Jun 27, 2018 at 11:38:48AM -0700, Ray Jui wrote: On 6/27/2018 11:33 AM,

Re: [v4, 2/6] Documentation: DT: Add optional 'timeout-sec' property for sp805

2018-06-28 Thread Guenter Roeck
On Mon, May 28, 2018 at 11:01:33AM -0700, Ray Jui wrote: > Update the SP805 binding document to add optional 'timeout-sec' > devicetree property > > Signed-off-by: Ray Jui > Reviewed-by: Rob Herring Reviewed-by: Guenter Roeck > --- > Documentation/devicetree/bindings/watchdog/arm,sp805.txt

Re: [v4,1/6] Documentation: DT: Consolidate SP805 binding docs

2018-06-28 Thread Guenter Roeck
On Mon, May 28, 2018 at 11:01:32AM -0700, Ray Jui wrote: > Consolidate two SP805 binding documents "arm,sp805.txt" and > "sp805-wdt.txt" into "arm,sp805.txt" that matches the naming of the > desired compatible string to be used > > Signed-off-by: Ray Jui > Reviewed-by: Rob Herring For the

Re: [PATCH v5] drivers/staging: Gasket driver framework + Apex driver

2018-06-28 Thread Joe Perches
iled against -next. This currently does not compile correctly against next-20180628 --- $ make drivers/staging/gasket/ CALLscripts/checksyscalls.sh DESCEND objtool CC drivers/staging/gasket/gasket_core.o drivers/staging/gasket/gasket_core.c: In function ‘gasket_mm_unmap_region’: driv

[PATCH v9 6/6] mm: page_alloc: reduce unnecessary binary search in early_pfn_valid()

2018-06-28 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), if pfn and pfn+1 are in the same memblock region, we can record the last returned memblock

[PATCH v9 3/6] arm: arm64: page_alloc: reduce unnecessary binary search in memblock_next_valid_pfn()

2018-06-28 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. if pfn and pfn+1 are in the same memblock region, we can simply pfn++ instead of doing the binary search in

[PATCH v9 2/6] mm: page_alloc: remain memblock_next_valid_pfn() on arm/arm64

2018-06-28 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But it causes possible panic bug. So Daniel Vacek reverted it later. But as suggested by Daniel Vacek, it is fine to using memblock to skip gaps and finding next

[PATCH v9 5/6] arm: arm64: introduce pfn_valid_region()

2018-06-28 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") optimized the loop in memmap_init_zone(). But there is still some room for improvement. E.g. in early_pfn_valid(), we can record the last returned memblock region. If current pfn and last pfn are in the same

[PATCH v9 4/6] mm/memblock: introduce memblock_search_pfn_regions()

2018-06-28 Thread Jia He
This helper is to find the memory region index of input pfn. Signed-off-by: Jia He --- include/linux/memblock.h | 2 ++ mm/memblock.c| 9 + 2 files changed, 11 insertions(+) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index ca59883..b0f0307 100644 ---

[PATCH v9 1/6] arm: arm64: introduce CONFIG_HAVE_MEMBLOCK_PFN_VALID

2018-06-28 Thread Jia He
Make CONFIG_HAVE_MEMBLOCK_PFN_VALID a new config option so it can move memblock_next_valid_pfn to generic code file. All the latter optimizations are based on this config. The memblock initialization time on arm/arm64 can benefit from this. Signed-off-by: Jia He --- arch/arm/Kconfig | 4

[PATCH v9 0/6] optimize memblock_next_valid_pfn and early_pfn_valid on arm and arm64

2018-06-28 Thread Jia He
Commit b92df1de5d28 ("mm: page_alloc: skip over regions of invalid pfns where possible") tried to optimize the loop in memmap_init_zone(). But there is still some room for improvement. Patch 1 introduce new config to make codes more generic Patch 2 remain the memblock_next_valid_pfn on arm and

[PATCH 1/2] drivers: core: Don't try to use a dead glue_dir

2018-06-28 Thread Benjamin Herrenschmidt
Under some circumstances (such as when using kobject debugging) a gluedir whose kref is 0 might remain in the class kset for a long time. The reason is that we don't actively remove glue dirs when they become empty, but instead rely on the implicit removal done by kobject_release(), which can

答复: 答复: 答复: [PATCH] ext4: e2fsprogs: fix inode bitmap num not integer,incompatible for ancient android devices

2018-06-28 Thread Gaoming (ming, consumer BG)
We use usual inode size, it is 256 bytes. Yes, this commit is in my repository. But there is a bug in this patch. Let me show you, Here is the bug: " return ALIGN(inodes, (info.block_size / info.inode_size));" In my reproduce, info.block_size = 1024, (it is legal) info.inode_size =256, the

Re: [PATCH v2 0/3] printk: Deadlock in NMI regression

2018-06-28 Thread Sergey Senozhatsky
On (06/28/18 12:54), Petr Mladek wrote: > > On Thu 2018-06-28 11:39:02, Sergey Senozhatsky wrote: > > On (06/27/18 16:08), Petr Mladek wrote: > > > > > > kernel/printk/printk.c | 57 > > > +++- > > > kernel/printk/printk_safe.c | 58 > > >

Re: [PATCH v2 3/3] printk/nmi: Prevent deadlock when accessing the main log buffer in NMI

2018-06-28 Thread Sergey Senozhatsky
On (06/28/18 11:41), Petr Mladek wrote: > > > > A side note: This nesting also handles recursive printk-s for us. > > > > NMI: > > printk_nmi_enter > > ftrace_dump > > printk_nmi_direct_enter > > vprintk_func > >spin_lock(logbuf_lock) > > vprintk_store > >

[PATCH] mmc: core: cd_label must be last entry of mmc_gpio struct

2018-06-28 Thread Anson Huang
commit bfd694d5e21c ("mmc: core: Add tunable delay before detecting card after card is inserted") adds "u32 cd_debounce_delay_ms" to the last of mmc_gpio struct and cause "char cd_label[0]" NOT work as string pointer of card detect label, when "cat /proc/interrupts", the devname for card detect

Re: [PATCH -mm -v4 00/21] mm, THP, swap: Swapout/swapin THP in one piece

2018-06-28 Thread Huang, Ying
Matthew Wilcox writes: > On Wed, Jun 27, 2018 at 11:18:39PM -0700, Andrew Morton wrote: >> On Thu, 28 Jun 2018 13:35:15 +0800 "Huang\, Ying" >> wrote: >> > No problem. I will rebase the patchset on your latest -mm tree, or the >> > next version to be released? >> >> We need to figure that

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-28 Thread Andy Lutomirski
> On Jun 28, 2018, at 5:18 PM, Linus Torvalds > wrote: > >> On Thu, Jun 28, 2018 at 4:30 PM Andy Lutomirski wrote: >> >> The idea is that, if someone screws up and sticks a number like >> 0xbaadf00d00045678 into their rseq abort_ip in a 32-bit x86 program >> (when they actually mean

Re: [RFC v2 PATCH 2/2] mm: mmap: zap pages with read mmap_sem for large mapping

2018-06-28 Thread Yang Shi
On 6/28/18 12:10 PM, Yang Shi wrote: On 6/28/18 4:51 AM, Michal Hocko wrote: On Wed 27-06-18 10:23:39, Yang Shi wrote: On 6/27/18 12:24 AM, Michal Hocko wrote: On Tue 26-06-18 18:03:34, Yang Shi wrote: On 6/26/18 12:43 AM, Peter Zijlstra wrote: On Mon, Jun 25, 2018 at 05:06:23PM

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-28 Thread Mathieu Desnoyers
- On Jun 28, 2018, at 8:18 PM, Linus Torvalds torva...@linux-foundation.org wrote: > On Thu, Jun 28, 2018 at 4:30 PM Andy Lutomirski wrote: >> >> The idea is that, if someone screws up and sticks a number like >> 0xbaadf00d00045678 into their rseq abort_ip in a 32-bit x86 program >> (when

Re: [PATCH 1/2] ARM: dts: imx51-babbage: Fix reg for usbh1phy

2018-06-28 Thread Andrey Smirnov
On Thu, Jun 28, 2018 at 6:35 AM Fabio Estevam wrote: > > Hi Andrey, > > On Thu, Jun 28, 2018 at 1:37 AM, Andrey Smirnov > wrote: > > There's already a USB PHY with reg of zero on that bus - usbphy0, used > > by usbotg (included from imx51.dtsi). Move usbh1phy to @1 avoid > > address collision. >

Re: Memory zeroed when made available to user process

2018-06-28 Thread Jefferson Carpenter
On 6/27/2018 1:18 PM, Richard Weinberger wrote: Am Mittwoch, 27. Juni 2018, 15:12:48 CEST schrieb Michal Hocko: On Wed 27-06-18 13:29:05, Richard Weinberger wrote: On Wed, Jun 27, 2018 at 11:34 AM, Jefferson Carpenter wrote: Is there a way for a user process to mark memory as 'sensitive' or

Re: [RESEND PATCH v3 2/2] thermal: core: introduce thermal zone device mode control

2018-06-28 Thread Matthias Kaehlcke
Hi, I stumbled across this patch since I'm currently poking around with early thermal bringup on a platform and this patch has been integrated in our development tree. I'm seeing some unexpected behaviors, which could entirely due to wrong expectation from my side. I only have some basic working

[PATCH v4 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
Convert the driver to use the timer_of helpers. This allows to remove custom proprietary structure, factors out and simplifies the code. Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 205 +- 1 file changed, 80 insertions(+), 125

[PATCH v4 3/5] clocksource/drivers/timer-mediatek: Use specific prefix for GPT

2018-06-28 Thread Stanley Chu
Use specific prefix to specify the name of supported timer hardware: "General Purpose Timer (GPT)". Signed-off-by: Stanley Chu --- drivers/clocksource/timer-mediatek.c | 157 +- 1 file changed, 80 insertions(+), 77 deletions(-) diff --git

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-28 Thread Linus Torvalds
On Thu, Jun 28, 2018 at 4:30 PM Andy Lutomirski wrote: > > The idea is that, if someone screws up and sticks a number like > 0xbaadf00d00045678 into their rseq abort_ip in a 32-bit x86 program > (when they actually mean 0x00045678), we want to something consistent. I think the "something

[PATCH v4 2/5] clocksource/drivers/timer-mediatek: Rename mtk_timer to timer-mediatek

2018-06-28 Thread Stanley Chu
Rename mtk_timer to timer-mediatek to apply new naming convention in clocksource folder. Signed-off-by: Stanley Chu --- drivers/clocksource/Makefile |2 +- drivers/clocksource/mtk_timer.c | 268 -- drivers/clocksource/timer-mediatek.c | 268

[PATCH v4 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-06-28 Thread Stanley Chu
This patch fixes bindings of existed "General Purpose Timer", and then add bindings of new "System Timer" on Mediatek SoCs. Signed-off-by: Stanley Chu --- .../bindings/timer/mediatek,mtk-timer.txt | 38 1 file changed, 32 insertions(+), 6 deletions(-) diff --git

[PATCH v4 0/5] Add system timer driver for Mediatek SoCs

2018-06-28 Thread Stanley Chu
This patch adds a new driver for system timer on the Mediatek SoCs. Changes since v3: - Use the same binding style for both GPT and System Timer. - Use timer_of.of_clk->period instead of private structure. - Arrange patches to contain system timer changes in patch 5/5 only. Changes since v2: -

[PATCH v4 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-06-28 Thread Stanley Chu
This patch adds a new "System Timer" on the Mediatek SoCs. The System Timer is introduced as an always-on timer being clockevent device for tick-broadcasting. For clock, it is driven by 13 MHz system clock. The implementation uses the system clock with no clock source divider. For interrupt,

Re: [PATCH v3 5/5] clocksource/drivers/timer-mediatek: Add support for system timer

2018-06-28 Thread Stanley Chu
On Thu, 2018-06-28 at 16:08 +0200, Daniel Lezcano wrote: > On 28/06/2018 12:45, Stanley Chu wrote: > > This patch adds a new "System Timer" on the Mediatek SoCs. > > > > The System Timer is introduced as an always-on timer being > > clockevent device for tick-broadcasting. > > > > For clock, it

Re: [PATCH v3 1/5] clocksource/drivers/timer-mediatek: Add system timer bindings

2018-06-28 Thread Stanley Chu
On Thu, 2018-06-28 at 16:08 +0200, Daniel Lezcano wrote: > > +** System Timer (SYST) > > + > > +Required properties: > > +- compatible: Should contain > > + * "mediatek,mt6765-systimer" for MT6765 compatible timers > > +- reg: Should contain the location and length for system timer registers. >

Re: [PATCH v3 4/5] clocksource/drivers/timer-mediatek: Convert the driver to timer-of

2018-06-28 Thread Stanley Chu
On Thu, 2018-06-28 at 16:03 +0200, Daniel Lezcano wrote: > > > > -struct mtk_clock_event_device { > > - void __iomem *gpt_base; > > - u32 ticks_per_jiffy; > > - struct clock_event_device dev; > > +struct mtk_timer_private { > > + unsigned long ticks_per_jiffy; > > }; > > This private

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

2018-06-28 Thread Stephen Rothwell
Hi David, On Thu, 28 Jun 2018 18:11:03 +0200 David Sterba wrote: > > On Wed, Jun 27, 2018 at 08:59:36AM +1000, Stephen Rothwell wrote: > > After merging the btrfs-kdave tree, today's linux-next build (powerpc > > ppc64_defconfig) failed like this: > > > > fs/btrfs/print-tree.c: In function

[PATCH] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler

2018-06-28 Thread Karim Eshapa
Use GFP_ATOMIC rather GFP_KERNEL in interrupt handler, as GFP_KERNEL may sleep according to slab allocator. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7280a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7280a.c

[PATCH] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler

2018-06-28 Thread Karim Eshapa
Use GFP_ATOMIC rather GFP_KERNEL in interrupt handler, as GFP_KERNEL may sleep according to slab allocator. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7280a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7280a.c

Re: [PATCH v4 1/6] Documentation: DT: Consolidate SP805 binding docs

2018-06-28 Thread Ray Jui
Hi Guenter/Florian, On 6/27/2018 11:55 AM, Guenter Roeck wrote: On Wed, Jun 27, 2018 at 11:47:21AM -0700, Ray Jui wrote: On 6/27/2018 11:42 AM, Guenter Roeck wrote: On Wed, Jun 27, 2018 at 11:38:48AM -0700, Ray Jui wrote: On 6/27/2018 11:33 AM, Guenter Roeck wrote: On Wed, Jun 20, 2018

[PATCH 4/4] staging:iio:adc:ad7280a: Use GFP_ATOMIC in interrupt handler

2018-06-28 Thread Karim Eshapa
Use GFP_ATOMIC rather GFP_KERNEL in interrupt handler, as GFP_KERNEL may sleep according to slab allocator. Signed-off-by: Karim Eshapa --- drivers/staging/iio/adc/ad7280a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/adc/ad7280a.c

linux-next: manual merge of the mips tree with the mips-fixes tree

2018-06-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mips tree got a conflict in: arch/mips/kernel/process.c between commit: b63e132b6433 ("MIPS: Use async IPIs for arch_trigger_cpumask_backtrace()") from the mips-fixes tree and commit: 8c8d953c2800 ("MIPS: Schedule on CPUs we need to lose FPU for

Re: [PATCH 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-06-28 Thread Kevin Hilman
Hi Miquel, Miquel Raynal writes: > On Wed, 27 Jun 2018 16:33:43 -0700, Kevin Hilman > wrote: > >> Hi Boris, >> >> Boris Brezillon writes: >> >> > Hi Yixun, >> > >> > On Wed, 13 Jun 2018 16:13:14 + >> > Yixun Lan wrote: >> > >> >> From: Liang Yang >> >> >> >> Add initial support for

[PATCH v4] kconfig: check for pkg-config on make {menu,n,g,x}config

2018-06-28 Thread Randy Dunlap
' since there are fallbacks for those two targets. Documentation/process/changes.rst |8 scripts/kconfig/Makefile |1 + scripts/kconfig/check-pkgconfig.sh |8 3 files changed, 17 insertions(+) --- linux-next-20180628.orig/scripts/kconfig/Makefile +++ linux

Re: [PATCH v22 4/4] soc: mediatek: Add Mediatek CMDQ helper

2018-06-28 Thread houlong wei
On Thu, 2018-06-28 at 18:41 +0800, CK Hu wrote: > Hi, Houlong: > > Some inline comment. > > On Wed, 2018-06-27 at 19:16 +0800, Houlong Wei wrote: > > Add Mediatek CMDQ helper to create CMDQ packet and assemble GCE op code. > > > > Signed-off-by: Houlong Wei > > Signed-off-by: HS Liao > > ---

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-28 Thread Andy Lutomirski
On Thu, Jun 28, 2018 at 2:22 PM, Linus Torvalds wrote: > On Thu, Jun 28, 2018 at 1:23 PM Andy Lutomirski wrote: >> >> This is okay with me for a fix outside the merge window. Can you do a >> followup for the next merge window that fixes it better, though? In >> particular, TASK_SIZE is

Re: config files and how to have persistent Linux kernel Driver/File System configuration info saved

2018-06-28 Thread Steve French
On Thu, Jun 28, 2018 at 6:21 PM ronnie sahlberg wrote: > > On Fri, Jun 29, 2018 at 8:58 AM, Theodore Y. Ts'o via samba-technical > wrote: > > On Thu, Jun 28, 2018 at 05:37:15PM -0500, Steve French wrote: > >> Ronnie brought up an interesting point about the problems consistently > >> configuring

Re: [rcu:dev 110/110] softirq.c:undefined reference to `rcu_softirq_qs'

2018-06-28 Thread Paul E. McKenney
On Fri, Jun 29, 2018 at 06:46:25AM +0800, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > dev > head: 0028a1e4fdbb4263539595da08979d59954d4873 > commit: 0028a1e4fdbb4263539595da08979d59954d4873 [110/110] rcu: Apply RCU-bh > QSes to

Re: config files and how to have persistent Linux kernel Driver/File System configuration info saved

2018-06-28 Thread ronnie sahlberg
On Fri, Jun 29, 2018 at 8:58 AM, Theodore Y. Ts'o via samba-technical wrote: > On Thu, Jun 28, 2018 at 05:37:15PM -0500, Steve French wrote: >> Ronnie brought up an interesting point about the problems consistently >> configuring file systems (or any Linux module for that matter) so that >>

Re: [PATCH] memcg, oom: move out_of_memory back to the charge path

2018-06-28 Thread Greg Thelen
Michal Hocko wrote: > From: Michal Hocko > > 3812c8c8f395 ("mm: memcg: do not trap chargers with full callstack on OOM") > has changed the ENOMEM semantic of memcg charges. Rather than invoking > the oom killer from the charging context it delays the oom killer to the > page fault path

[PATCH] clk: aspeed: Support HPLL strapping on ast2400

2018-06-28 Thread Joel Stanley
The HPLL can be configured through a register (SCU24), however some platforms chose to configure it through the strapping settings and do not use the register. This was not noticed as the logic for bit 18 in SCU24 was confused: set means programmed, but the driver read it as set means strapped.

[rcu:dev 110/110] kernel/softirq.c:298: undefined reference to `rcu_softirq_qs'

2018-06-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev head: 0028a1e4fdbb4263539595da08979d59954d4873 commit: 0028a1e4fdbb4263539595da08979d59954d4873 [110/110] rcu: Apply RCU-bh QSes to RCU-sched and RCU-preempt when safe config: x86_64-randconfig-i0-201825

[PATCH v1] ARM: dts: imx51-zii-rdu1: correct touchscreen axis inversion

2018-06-28 Thread Nick Dyer
The RMI4 touchscreen driver applied inversion and axis swap in the wrong order, violating the DT binding for those properties. This was fixed in 645a397, so correct the RDU1 DT to apply the inversion to the correct axis. Tested on Zii RDU1 00-5105-30 rev B Signed-off-by: Nick Dyer ---

Re: [PATCH 3/3] arm64: dts: qcom: pm8998: Add thermal zone

2018-06-28 Thread Doug Anderson
Hi, On Thu, Jun 28, 2018 at 2:09 PM, Matthias Kaehlcke wrote: > Add pm8998 thermal zone based on the examples in the spmi-temp-alarm > bindings. > > Note: devices with the pm8998 need to have a 'thermal-zones' node (which > may be empty) with a label 'thermal_zones'. > > Signed-off-by: Matthias

Re: config files and how to have persistent Linux kernel Driver/File System configuration info saved

2018-06-28 Thread Theodore Y. Ts'o
On Thu, Jun 28, 2018 at 05:37:15PM -0500, Steve French wrote: > Ronnie brought up an interesting point about the problems consistently > configuring file systems (or any Linux module for that matter) so that > reboot doesn't wipe away security or performance tuning changes. In general it's

Re: [PATCH 1/3] arm64: dts: qcom: sdm845: Add thermal-zones node

2018-06-28 Thread Doug Anderson
Hi, On Thu, Jun 28, 2018 at 2:09 PM, Matthias Kaehlcke wrote: > The node is empty for now. It is needed to allow other DT snippets > to add thermal zone entries. > > Signed-off-by: Matthias Kaehlcke > --- > Sorry if you received this twice, lists were missing in cc in the first > attempt ... >

[rcu:dev 110/110] softirq.c:undefined reference to `rcu_softirq_qs'

2018-06-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev head: 0028a1e4fdbb4263539595da08979d59954d4873 commit: 0028a1e4fdbb4263539595da08979d59954d4873 [110/110] rcu: Apply RCU-bh QSes to RCU-sched and RCU-preempt when safe config: i386-alldefconfig (attached as

[RESEND RFC/RFT V2 PATCH 0/5] Improve scheduler scalability for fast path

2018-06-28 Thread subhra mazumdar
Current select_idle_sibling first tries to find a fully idle core using select_idle_core which can potentially search all cores and if it fails it finds any idle cpu using select_idle_cpu. select_idle_cpu can potentially search all cpus in the llc domain. This doesn't scale for large llc domains

[PATCH 2/5] sched: introduce per-cpu var next_cpu to track search limit

2018-06-28 Thread subhra mazumdar
Introduce a per-cpu variable to track the limit upto which idle cpu search was done in select_idle_cpu(). This will help to start the search next time from there. This is necessary for rotating the search window over entire LLC domain. Signed-off-by: subhra mazumdar --- kernel/sched/core.c | 2

[PATCH 1/5] sched: limit cpu search in select_idle_cpu

2018-06-28 Thread subhra mazumdar
Put upper and lower limit on cpu search of select_idle_cpu. The lower limit is amount of cpus in a core while upper limit is twice that. This ensures for any architecture we will usually search beyond a core. The upper limit also helps in keeping the search cost low and constant. Signed-off-by:

[PATCH 3/5] sched: rotate the cpu search window for better spread

2018-06-28 Thread subhra mazumdar
Rotate the cpu search window for better spread of threads. This will ensure an idle cpu will quickly be found if one exists. Signed-off-by: subhra mazumdar --- kernel/sched/fair.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/sched/fair.c

[PATCH 4/5] sched: add sched feature to disable idle core search

2018-06-28 Thread subhra mazumdar
Add a new sched feature SIS_CORE to have an option to disable idle core search (select_idle_core). Signed-off-by: subhra mazumdar --- kernel/sched/features.h | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/features.h b/kernel/sched/features.h index 85ae848..de15733 100644 ---

[PATCH 5/5] sched: SIS_CORE to disable idle core search

2018-06-28 Thread subhra mazumdar
Use SIS_CORE to disable idle core search. For some workloads select_idle_core becomes a scalability bottleneck, removing it improves throughput. Also there are workloads where disabling it can hurt latency, so need to have an option. Signed-off-by: subhra mazumdar --- kernel/sched/fair.c | 8

config files and how to have persistent Linux kernel Driver/File System configuration info saved

2018-06-28 Thread Steve French
Ronnie brought up an interesting point about the problems consistently configuring file systems (or any Linux module for that matter) so that reboot doesn't wipe away security or performance tuning changes. Linux file systems typically allow configuration via various ways (I may have left some

Re: [RFC PATCH for 4.18 1/2] rseq: validate rseq_cs fields are < TASK_SIZE

2018-06-28 Thread Mathieu Desnoyers
- On Jun 28, 2018, at 5:22 PM, Linus Torvalds torva...@linux-foundation.org wrote: > On Thu, Jun 28, 2018 at 1:23 PM Andy Lutomirski wrote: >> >> This is okay with me for a fix outside the merge window. Can you do a >> followup for the next merge window that fixes it better, though? In >>

Re: [PATCH] kbd: complete dead keys definitions

2018-06-28 Thread Samuel Thibault
Hello, Ping? Samuel Samuel Thibault, le dim. 03 juin 2018 20:18:58 +0200, a ecrit: > This completes dead keys definitions for internationalization > completeness on the console. The representatives have been chosen > coherently with libx11 compose sequences, which avoid symetry conflicts >

Re: [PATCH 0/2] tools/memory-model: remove ACCESS_ONCE()

2018-06-28 Thread Akira Yokosawa
On 2018/06/28 08:21:40 -0700, Paul E. McKenney wrote: [...] > > While I am at it, here is the current scorecard: > > e9ff68680cd4 tools/memory-model: Add litmus test for full multicopy atomicity > c21fcc6594f1 tools/memory-model: Fix ISA2+pooncelock+pooncelock+pombonce name > aa838e0b70e1

Re: [PATCH] mm: hugetlb: yield when prepping struct pages

2018-06-28 Thread Cannon Matthews
Thanks for the quick turnaround. Good to know about the how the 2M code path differs, I have been trying to trace through some of this and it's easy to get lost between which applies to which size. Thanks! On Thu, Jun 28, 2018 at 12:03 PM Michal Hocko wrote: > > On Wed 27-06-18 14:44:47, Cannon

RE: small dmesg regression in kernel 4.17.3

2018-06-28 Thread Schmauss, Erik
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Wednesday, June 27, 2018 10:29 AM > To: Toralf Förster ; Schmauss, Erik > > Cc: ACPI Devel Maling List ; Linux Kernel ker...@vger.kernel.org> > Subject: Re: small dmesg regression in kernel 4.17.3 >

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

2018-06-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net tree got a conflict in: net/smc/af_smc.c between commit: a11e1d432b51 ("Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL") from Linus' tree and commit: 24ac3a08e658 ("net/smc: rebuild nonblocking connect") from the net tree.

[PATCHv2 3/4] nvme: trace controller name

2018-06-28 Thread Keith Busch
This appends the controller instance to the trace buffer for nvme commands to distinguish what controller is dispatching and completing a command. Signed-off-by: Keith Busch --- drivers/nvme/host/trace.h | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCHv2 1/4] nvme: trace nvme queue identifiers

2018-06-28 Thread Keith Busch
We can not match a command to its completion based on the command id alone. We need the submitting queue identifier to pair the completion, so this patch adds that to the trace buffer. This patch is also collapsing the admin and io submission traces into a single one since we don't need to

[PATCHv2 2/4] nvme: cache struct nvme_ctrl reference to struct nvme_request

2018-06-28 Thread Keith Busch
From: Sagi Grimberg We will need to reference the controller in the setup and completion time for tracing and future traffic based keep alive support. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/fc.c | 1 + drivers/nvme/host/nvme.h | 1 + drivers/nvme/host/pci.c| 2 ++

[PATCHv2 4/4] nvme: add disk name to tracepoints

2018-06-28 Thread Keith Busch
This will print the disk name to the nvme trace for disk based requests so a user can better distinguish traffic to different disks. This allows disk based filters. For example, to see only nvme0n2 traffic: echo "disk == nvme0n2" > /sys/kernel/debug/tracing/events/nvme/filter Signed-off-by:

[PATCHv2 0/4] nvme trace updates

2018-06-28 Thread Keith Busch
This patch series based on/inspired by Johannes Thumshirn that improves the nvme trace events. The one from Sagi is saving the nvme_ctrl in the driver request data so we can reference it in other places, both for this series and future developments. The others are adding and simplifying the nvme

Re: [PATCH v3 1/2] iio: dac: Add AD5758 support

2018-06-28 Thread Himanshu Jha
On Thu, Jun 28, 2018 at 03:13:32PM +0300, Stefan Popa wrote: > The AD5758 is a single channel DAC with 16-bit precision which uses the > SPI interface that operates at clock rates up to 50MHz. > > The output can be configured as voltage or current and is available on a > single terminal. > >

  1   2   3   4   5   6   >