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

2018-06-28 Thread Christoph Hellwig
On Fri, Jun 29, 2018 at 02:15:21PM +1000, Finn Thain wrote: > 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 us

Re: [PATCH/RFC] mm: do not drop unused pages when userfaultd is running

2018-06-28 Thread Christian Borntraeger
On 06/28/2018 02:39 PM, Christian Borntraeger wrote: > KVM guests on s390 can notify the host of unused pages. This can result > in pte_unused callbacks to be true for KVM guest memory. > > If a page is unused (checked with pte_unused) we might drop this page > instead of paging it. This can ha

Re: [PATCH] leds: ledtrig-morse: send out morse code

2018-06-28 Thread Andreas Klinger
Hi, Pavel Machek schrieb am Thu, 28. Jun 22:45: > On Thu 2018-06-28 22:29:57, Andreas Klinger wrote: > > Hi Pavel, > > > > Pavel Machek schrieb am Thu, 28. Jun 20:56: > > > Hi! > > > > > > > Send out a morse code by using LEDs. > > > > > > > > This is useful especially on embedded systems wit

Re: [PATCH v2 1/2] dt-bindings: phy: Add binding doc for Stingray PCIe PHY

2018-06-28 Thread Kishon Vijay Abraham I
+Rob and device tree list On Thursday 21 June 2018 05:48 AM, Ray Jui wrote: > Add binding document for Stingray PCIe PHYs for both PAXB and PAXC based > root complex > > Signed-off-by: Ray Jui > Reviewed-by: Scott Branden > --- > .../devicetree/bindings/phy/brcm,sr-pcie-phy.txt | 39 > +

Re: [PATCH] siox: don't create a thread without starting it

2018-06-28 Thread Schenk, Gavin
On Thu, 2018-06-28 at 09:57 +0200, Uwe Kleine-König wrote: > When a siox master device is registered a kthread is created that is > only started when triggered by userspace. So this thread might be in > TASK_UNINTERRUPTIBLE state for long and trigger a warning > > [ 241.130465] INFO: task s

[PATCH 02/10] OPP: Identify and mark genpd OPP tables

2018-06-28 Thread Viresh Kumar
We need to handle genpd OPP tables differently, this is already the case at one location and will be extended going forward. Add another field to the OPP table to check if the table belongs to a genpd or not. Signed-off-by: Viresh Kumar --- drivers/opp/of.c | 6 -- drivers/opp/opp.h | 2 ++

Re: [PATCH -mm -v4 08/21] mm, THP, swap: Support to read a huge swap cluster for swapin a THP

2018-06-28 Thread Matthew Wilcox
On Fri, Jun 22, 2018 at 11:51:38AM +0800, Huang, Ying wrote: > +++ b/mm/swap_state.c > @@ -426,33 +447,37 @@ struct page *__read_swap_cache_async(swp_entry_t entry, > gfp_t gfp_mask, > /* >* call radix_tree_preload() while we can wait. >*/ > -

[PATCH 05/10] OPP: Populate OPPs from "required-opps" property

2018-06-28 Thread Viresh Kumar
An earlier commit populated the OPP tables from the "required-opps" property, this commit populates the individual OPPs. This is repeated for each OPP in the OPP table and these populated OPPs will be used by later commits. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 1 + drivers/opp/o

[PATCH 06/10] OPP: Add dev_pm_opp_{set|put}_required_device() helper

2018-06-28 Thread Viresh Kumar
Multiple generic power domains for a device are supported with the help of virtual devices, which are created for each device-genpd pair. These are the device structures which are attached to the power domain and are required by the OPP core to set the performance state of the genpd. The helpers a

[PATCH 07/10] PM / Domains: Add genpd_opp_to_performance_state()

2018-06-28 Thread Viresh Kumar
The OPP core currently stores the performance state in the end device's OPP structures, but that is going to change now and these values will be set directly in the genpd's OPP structures. For that we need to get the performance state genpd's device structure instead of the end user's device struc

[PATCH 09/10] OPP: Rename and relocate of_genpd_opp_to_performance_state()

2018-06-28 Thread Viresh Kumar
The OPP core already has the performance state values for each of the genpd's OPPs and there is no need to call the genpd callback again to get the performance state for the case where the end device doesn't have an OPP table and has the "required-opps" property directly in its node. This commit r

[PATCH 08/10] OPP: Configure all required OPPs

2018-06-28 Thread Viresh Kumar
Now that all the infrastructure is in place to support multiple required OPPs, lets switch over to using it. A new internal routine _set_required_opps() takes care of updating performance state for all the required OPPs. With this the performance state updates are supported even when the end devic

[PATCH 10/10] OPP: Remove of_dev_pm_opp_find_required_opp()

2018-06-28 Thread Viresh Kumar
This isn't used anymore, remove it. Signed-off-by: Viresh Kumar --- drivers/opp/of.c | 54 -- include/linux/pm_opp.h | 5 2 files changed, 59 deletions(-) diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 80fdeab4364a..722b3142f4c6 100644

[PATCH 03/10] OPP: Separate out custom OPP handler specific code

2018-06-28 Thread Viresh Kumar
Create a separate routine to take care of custom set_opp() handler specific stuff. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 67 +++--- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index

[PATCH 01/10] OPP: Parse OPP table's DT properties from _of_init_opp_table()

2018-06-28 Thread Viresh Kumar
Parse the DT properties present in the OPP table from _of_init_opp_table(), which is a dedicated routine of DT parsing. Minor relocation of helpers was required for this. Signed-off-by: Viresh Kumar --- drivers/opp/of.c | 77 +--- 1 file changed, 47 i

[PATCH 04/10] OPP: Populate required opp tables from "required-opps" property

2018-06-28 Thread Viresh Kumar
The current implementation works only for the case where a single phandle is present in the "required-opps" property, while DT allows multiple phandles to be present there. This patch adds new infrastructure to parse all the phandles present in "required-opps" property and save pointers of the req

[PATCH 00/10] OPP: Support multiple power-domains per device

2018-06-28 Thread Viresh Kumar
Hi, This series improves the OPP core (and a bit of genpd core as well) to support multiple phandles in the "required-opps" property, which are only used for multiple power-domains per device for now. We still don't propagate the changes to master domains for the sub-domains, but this patchset is

Re: xfs: Deadlock between fs_reclaim and sb_internal

2018-06-28 Thread Chandan Rajendra
On Thursday, June 28, 2018 9:31:32 AM IST Ravi Bangoria wrote: > Hello Darrick, > > Lockdep is reporting a deadlock with following trace. Saw this on my > powerpc vm with 4GB of ram, running Linus/master kernel. Though, I > don't have exact testcase to reproduce it. Is this something known? I am

Re: Memory zeroed when made available to user process

2018-06-28 Thread Richard Weinberger
Am Freitag, 29. Juni 2018, 02:52:16 CEST schrieb 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 Carp

linux-next: build failure after merge of the random tree

2018-06-28 Thread Stephen Rothwell
Hi Theodore, After merging the random tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from include/linux/mmzone.h:10:0, from include/linux/gfp.h:6, from include/linux/umh.h:4, from include/linux/kmod.h:2

Re: [PATCH -mm -v4 03/21] mm, THP, swap: Support PMD swap mapping in swap_duplicate()

2018-06-28 Thread Matthew Wilcox
On Fri, Jun 22, 2018 at 11:51:33AM +0800, Huang, Ying wrote: > +++ b/mm/swap_state.c > @@ -433,7 +433,7 @@ struct page *__read_swap_cache_async(swp_entry_t entry, > gfp_t gfp_mask, > /* >* Swap entry may have been freed since our caller observed it. >*

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 literal

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. Rodrigue

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 da

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_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 da

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 da

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 ("lib/p

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 seri

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 c

[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 attrib

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 staging

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 c

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 broug

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 > > > https://lkml.kernel.org/r/20180627094633.gg2...@

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 number

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 ge

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 May

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 y

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). > >T

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 > --- a/lib/string

[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 --- Documentation/devicet

[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 tool

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, Guen

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 recor

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

2018-06-28 Thread Joe Perches
ed 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’:

[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 regi

[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 memblock_

[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 valid

[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 me

[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 --- a/

[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 arm

[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 happe

答复: 答复: 答复: [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 code

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 gpi

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 out

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 0x00045

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 -0700,

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 th

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 deletions(

[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 a/drivers/clocksource/t

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 consiste

[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: - Re

[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, the

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 i

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 st

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 'prin

[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 b/drivers/staging/i

[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 b/drivers/staging/i

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 a

[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 b/drivers/staging/i

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 a

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
sing 'make {menu,n}config' 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

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 generall

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 RCU-

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 >> reboot

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 (pagefaul

[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. Th

[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 (attached

[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 --- arch/arm/

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 K

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 conside

  1   2   3   4   5   6   >