Re: [PATCH v3 1/5] tpm: change the end marker of the active_banks array to zero

2018-11-05 Thread Roberto Sassu
On 11/1/2018 3:42 PM, Mimi Zohar wrote: On Wed, 2018-10-31 at 10:43 -0400, Mimi Zohar wrote: On Tue, 2018-10-30 at 16:47 +0100, Roberto Sassu wrote: This patch changes the end marker of the active_banks array from TPM2_ALG_ERROR to zero. The patch description is a bit off. TPM2_ALG_ERROR is

Re: [PATCH v2 09/10] irqchip: ti-sci-inta: Add support for Interrupt Aggregator driver

2018-11-05 Thread Lokesh Vutla
Hi Marc, On Monday 29 October 2018 06:34 PM, Lokesh Vutla wrote: Hi Marc, On Sunday 28 October 2018 07:01 PM, Marc Zyngier wrote: Hi Lokesh, On Fri, 26 Oct 2018 21:19:41 +0100, Lokesh Vutla wrote: Hi Marc, [..snip..] [...] +/** + * ti_sci_inta_register_event() - Register a event to an

Re: [PATCH v4 2/3] mm: introduce put_user_page*(), placeholder versions

2018-11-05 Thread Jan Kara
On Sun 04-11-18 23:17:58, John Hubbard wrote: > On 10/22/18 12:43 PM, Jason Gunthorpe wrote: > > On Thu, Oct 11, 2018 at 06:23:24PM -0700, John Hubbard wrote: > >> On 10/11/18 6:20 AM, Jason Gunthorpe wrote: > >>> On Thu, Oct 11, 2018 at 10:49:29AM +0200, Jan Kara wrote: > >>> > > This is a

[PATCH v2 06/12] tracing/kprobes: Use dyn_event framework for kprobe events

2018-11-05 Thread Masami Hiramatsu
Use dyn_event framework for kprobe events. This shows kprobe events on "tracing/dynamic_events" file. User can also define new events via tracing/dynamic_events. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Use dyn_events_release_all() for clearing events. - Use nolock event_call

[PATCH v2 05/12] tracing: Add unified dynamic event framework

2018-11-05 Thread Masami Hiramatsu
Add unified dynamic event framework for ftrace kprobes, uprobes and synthetic events. Those dynamic events can be co-exist on same file because those syntax doesn't over-wrapped. This introduces a framework part which provides a unified tracefs interface and operations. Signed-off-by: Masami

Re: [PATCH] crypto: mark cts(cbc(aes)) as FIPS allowed

2018-11-05 Thread Stephan Mueller
Am Sonntag, 4. November 2018, 11:05:24 CET schrieb Gilad Ben-Yossef: Hi Gilad, > As per Sp800-38A addendum from Oct 2010[1], cts(cbc(aes)) is > allowed as a FIPS mode algorithm. Mark it as such. > > [1] https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final There are several types

[PATCH v2 08/12] tracing: Use dyn_event framework for synthetic events

2018-11-05 Thread Masami Hiramatsu
Use dyn_event framework for synthetic events. This shows synthetic events on "tracing/dynamic_events" file in addition to tracing/synthetic_events interface. User can also define new events via tracing/dynamic_events with "s:" prefix. So, the new syntax is below; s:[synthetic/]EVENT_NAME TYPE

[PATCH v2 07/12] tracing/uprobes: Use dyn_event framework for uprobe events

2018-11-05 Thread Masami Hiramatsu
Use dyn_event framework for uprobe events. This shows uprobe events on "dynamic_events" file. User can also define new uprobe events via dynamic_events. Signed-off-by: Masami Hiramatsu --- Changes in v2: - Use dyn_events_release_all() for clearing events. - Use nolock event_call

Re: [PATCH] mm: Create the new vm_fault_t type

2018-11-05 Thread Mike Rapoport
On Mon, Nov 05, 2018 at 11:14:17AM +0530, Souptick Joarder wrote: > Hi Matthew, > > On Sun, Nov 4, 2018 at 2:06 PM Mike Rapoport wrote: > > > > On Sat, Nov 03, 2018 at 05:02:36AM -0700, Matthew Wilcox wrote: > > > On Sat, Nov 03, 2018 at 10:35:04AM +0530, Souptick Joarder wrote: > > > > Page

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-05 Thread Martin Kaiser
Hi, Thus wrote Shawn Guo (shawn...@kernel.org): > On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: > > The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer) > > function blocks. Add their ipg and per clocks to the device tree. > > Signed-off-by: Martin Kaiser > Are

[PATCH 2/4] ACPI: property: Introduce acpi_fwnode_name()

2018-11-05 Thread Heikki Krogerus
ACPI data nodes have a name, so let's return that when fwnode_name() is called. Signed-off-by: Heikki Krogerus --- drivers/acpi/property.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 8c7c4583b52d..75854e07ed64 100644 ---

[PATCH 3/4] of/property: Introduce of_fwnode_name()

2018-11-05 Thread Heikki Krogerus
Instead of always being forced to read the "name" property in fwnode_name() with of_nodes, implementing the fwnode operation meant for getting the node name. Signed-off-by: Heikki Krogerus Cc: Rob Herring --- drivers/of/property.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 1/4] device property: Introduce fwnode_name()

2018-11-05 Thread Heikki Krogerus
This helper returns the name of the node. The name is primarily expected to be returned from a new fwnode operation meant for this purpose, but when no name is returned, the helper will also attempt to read a device property "name". Signed-off-by: Heikki Krogerus --- drivers/base/property.c |

[PATCH 4/4] device property: Drop get_named_child_node callback

2018-11-05 Thread Heikki Krogerus
By using fwnode_name() in fwnode_get_named_child_node(), get_named_child_node implementations become boilerplate. Removing all of them. Signed-off-by: Heikki Krogerus --- drivers/acpi/property.c | 20 +--- drivers/base/property.c | 10 +- drivers/of/property.c | 15

[PATCH 0/4] device property: Add fwnode_name() helper

2018-11-05 Thread Heikki Krogerus
Hi, I prepared fwnode_name() for something I'm working on, but then I realized that it makes it possible to also implement a generic fwnode_get_named_child_node(). So in practice I'm proposing that we replace get_named_child_node fwnode op with that new "name" fwnode op in this series. thanks,

Re: [PATCH 07/11] [media] marvell-ccic: drop unused stuff

2018-11-05 Thread Pavel Machek
On Mon 2018-11-05 08:30:50, Lubomir Rintel wrote: > Remove structure members and headers that are not actually used. Saves > us from some noise in subsequent cleanup commits. > > Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky,

Re: [PATCH] kbuild: rpm-pkg: fix two build breaks when O= is used

2018-11-05 Thread Zhenzhong Duan
On 2018/11/5 15:55, Masahiro Yamada wrote: Hi Zhenzhong, On Fri, Nov 2, 2018 at 8:26 PM Zhenzhong Duan wrote: Running 'make O=/build/kernel binrpm-pkg' failed with below two errors. Makefile:600: include/config/auto.conf: No such file or directory + cp make -C /mnt/root/kernel

[PATCH] m68k/defconfig: Update defconfigs for v4.20-rc1

2018-11-05 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- arch/m68k/configs/amiga_defconfig| 4 arch/m68k/configs/apollo_defconfig | 4 arch/m68k/configs/atari_defconfig| 4 arch/m68k/configs/bvme6000_defconfig | 4 arch/m68k/configs/hp300_defconfig| 4

Re: [tip:core/urgent] resource/docs: Fix new kernel-doc warnings

2018-11-05 Thread Borislav Petkov
On Sun, Nov 04, 2018 at 10:09:50PM -0800, tip-bot for Randy Dunlap wrote: > Commit-ID: f75d651587f719a813ebbbfeee570e6570731d55 > Gitweb: > https://git.kernel.org/tip/f75d651587f719a813ebbbfeee570e6570731d55 > Author: Randy Dunlap > AuthorDate: Sun, 4 Nov 2018 18:40:14 -0800 >

[PATCH v1 1/4] thermal: tegra: continue if sensor register fails

2018-11-05 Thread Wei Ni
Don't bail when a sensor fails to register with the thermal zone and allow other sensors to register. This allows other sensors to register with thermal framework even if one sensor fails registration. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 -- 1 file changed, 4

[PATCH v1 0/4] Fixes for Tegra soctherm

2018-11-05 Thread Wei Ni
This series fixed some issues for Tegra soctherm Wei Ni (4): thermal: tegra: continue if sensor register fails thermal: tegra: remove unnecessary warnings thermal: tegra: fix memory allocation thermal: tegra: fix coverity defect drivers/thermal/tegra/soctherm.c | 18 +++---

[PATCH v1 3/4] thermal: tegra: fix memory allocation

2018-11-05 Thread Wei Ni
Fix memory allocation to store the pointers to thermal_zone_device. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 39a8bda07ac4..3042837364e8

[PATCH v1 4/4] thermal: tegra: fix coverity defect

2018-11-05 Thread Wei Ni
Fix dereference dev before null check. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c index 3042837364e8..96527df91f2a 100644 ---

Re: [PATCH v1 1/8] perf/x86: add support to mask counters from host

2018-11-05 Thread Peter Zijlstra
On Fri, Nov 02, 2018 at 05:08:31PM +0800, Wei Wang wrote: > On 11/01/2018 10:52 PM, Peter Zijlstra wrote: > > > @@ -723,6 +724,9 @@ static void perf_sched_init(struct perf_sched *sched, > > > struct event_constraint ** > > > sched->max_weight = wmax; > > > sched->max_gp

Re: [RFC PATCH 0/7] runtime format string checking

2018-11-05 Thread Rasmus Villemoes
On 2018-11-01 23:57, Kees Cook wrote: >> Yes, gcc should be able to infer the constness of drv from the fact that >> it's never assigned to elsewhere in the function... I think I saw that >> on some gcc todo list at some point. > > If you find that bug, I'll add it to my gcc bug tracking list.

Re: [PATCH v2] kconfig: merge_config: avoid false positive matches from comment lines

2018-11-05 Thread Arnout Vandecappelle
On 05/11/18 09:19, Masahiro Yamada wrote: > The current SED_CONFIG_EXP could match to comment lines in config > fragment files, especially when CONFIG_PREFIX_ is empty. For example, > Buildroot uses empty prefixing; starting symbols with BR2_ is just > convention. > > Make the sed expression

[PATCH v1 2/4] thermal: tegra: remove unnecessary warnings

2018-11-05 Thread Wei Ni
Convert warnings to info as not all platforms may have all the thresholds and sensors enabled. Signed-off-by: Wei Ni --- drivers/thermal/tegra/soctherm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c

Re: [PATCH v5 2/2] sched/fair: update scale invariance of PELT

2018-11-05 Thread Vincent Guittot
On Thu, 1 Nov 2018 at 10:38, Dietmar Eggemann wrote: > > On 10/31/18 10:18 AM, Vincent Guittot wrote: > > Hi Dietmar, > > > > On Wed, 31 Oct 2018 at 08:20, Dietmar Eggemann > > wrote: > >> > >> On 10/26/18 6:11 PM, Vincent Guittot wrote: > >> > >> [...] > >> > >>>static int

Re: [PATCH v2] mtd: sa1100: avoid VLA in sa1100_setup_mtd

2018-11-05 Thread Boris Brezillon
On Mon, 5 Nov 2018 08:58:35 +0100 Boris Brezillon wrote: > Enabling -Wvla found another variable-length array with randconfig > testing: > > drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_setup_mtd': > drivers/mtd/maps/sa1100-flash.c:224:10: error: ISO C90 forbids variable > length

Re: [PATCH] scripts/kconfig/merge_config: don't redefine 'y' to 'm'

2018-11-05 Thread Masahiro Yamada
Hi Anders, On Fri, Nov 2, 2018 at 8:41 PM Anders Roxell wrote: > > In today's merge_config.sh the order of the config fragment files dictates > the output of a config option. With this approach we will get different > .config files depending on the order of the config fragment files. > Adding a

[PATCH 2/2] dt-bindings: arm: mediatek: document clk bindings for MT7629

2018-11-05 Thread Ryder Lee
This patch adds the binding documentation for apmixedsys, infracfg, pciesys, pericfg, topckgen, ethsys, sgmiisys and ssusbsys for MT7629. Signed-off-by: Ryder Lee --- Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH 1/2] pinctrl: mediatek: add pinctrl support for MT7629 SoC

2018-11-05 Thread Ryder Lee
This adds MT7629 pinctrl driver based on MediaTek pinctrl-moore core. Cc: Sean Wang Signed-off-by: Ryder Lee --- drivers/pinctrl/mediatek/Kconfig | 6 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt7629.c | 512 ++

[PATCH 2/2] dt-bindings: pinctrl: update bindings for MT7629 SoC

2018-11-05 Thread Ryder Lee
This updates bindings for MT7629 pinctrl driver. Cc: Sean Wang Signed-off-by: Ryder Lee --- .../devicetree/bindings/pinctrl/pinctrl-mt7622.txt | 128 + 1 file changed, 128 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt7622.txt

[PATCH 1/2] clk: mediatek: add clock support for MT7629 SoC

2018-11-05 Thread Ryder Lee
Add all supported clocks exported from every susbystem found on MT7629 SoC. Signed-off-by: Wenzhen Yu Signed-off-by: Ryder Lee --- drivers/clk/mediatek/Kconfig | 23 ++ drivers/clk/mediatek/Makefile | 3 + drivers/clk/mediatek/clk-mt7629-eth.c | 159

Re: [PATCHv2] ARM: dts: sun8i-h3: Add dts for the Mapleboard MP130

2018-11-05 Thread Maxime Ripard
On Tue, Oct 30, 2018 at 10:14:30PM +, Jonathan McDowell wrote: > + r_gpio_keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + > + power { > + label = "mp130:power"; That was my mistake, but it was correct in your

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Michal Hocko
On Mon 05-11-18 08:20:09, Baoquan He wrote: > Hi Michal, > > On 11/02/18 at 04:55pm, Michal Hocko wrote: > > From: Michal Hocko > > > > Baoquan He has noticed that 15c30bc09085 ("mm, memory_hotplug: make > > has_unmovable_pages more robust") is causing memory offlining failures > > on a

Re: Will the recent memory leak fixes be backported to longterm kernels?

2018-11-05 Thread Michal Hocko
On Fri 02-11-18 19:38:35, Roman Gushchin wrote: > On Fri, Nov 02, 2018 at 06:48:23PM +0100, Michal Hocko wrote: > > On Fri 02-11-18 17:25:58, Roman Gushchin wrote: > > > On Fri, Nov 02, 2018 at 05:51:47PM +0100, Michal Hocko wrote: > > > > On Fri 02-11-18 16:22:41, Roman Gushchin wrote: > > [...]

[PATCH 0/2] soc: fsl: dpio: cleanup on the remove path

2018-11-05 Thread Ioana Ciornei
This patch series cleans up the remove path in the dpio driver so that successive bind/unbind commands behave properly. Ioana Ciornei (2): soc: fsl: dpio: cleanup the cpu array on dpaa2_io_down soc: fsl: dpio: use a cpumask to identify which cpus are unused

[PATCH 2/2] soc: fsl: dpio: use a cpumask to identify which cpus are unused

2018-11-05 Thread Ioana Ciornei
The current implementation of the dpio driver uses a static next_cpu variable to keep track of the index of the next cpu available. This approach does not handle well unbinding and binding dpio devices in a random order. For example, unbinding a dpio and then binding it again with the driver, will

[PATCH 1/2] soc: fsl: dpio: cleanup the cpu array on dpaa2_io_down

2018-11-05 Thread Ioana Ciornei
The dpio_by_cpu array should not contain a reference to a freed dpaa2_io object. This patch adds the necessary cleanup in dpaa2_io_down. Signed-off-by: Ioana Ciornei --- drivers/soc/fsl/dpio/dpio-service.c | 5 + 1 file changed, 5 insertions(+) diff --git

Re: [LINUX PATCH v12] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-11-05 Thread Helmut Grohne
On Tue, Aug 07, 2018 at 11:10:14AM +0530, Naga Sureshkumar Relli wrote: > Add driver for arm pl353 static memory controller nand interface with > HW ECC support. This controller is used in Xilinx Zynq SoC for > interfacing the NAND flash memory. > > Signed-off-by: Naga Sureshkumar Relli > --- >

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Arnd Bergmann
On 11/5/18, Christoph Hellwig wrote: > On Mon, Nov 05, 2018 at 02:58:07PM +0800, Vincent Chen wrote: >> Many thanks for kinds of comments. I quickly synthesize the comments and >> list them as below. >> 1. The kernel image shall include all vendor-specific code. > > I fundamentally disagree with

[PATCH v2 02/12] tracing: Lock event_mutex before synth_event_mutex

2018-11-05 Thread Masami Hiramatsu
synthetic event is using synth_event_mutex for protecting synth_event_list, and event_trigger_write() path acquires locks as below order. event_trigger_write(event_mutex) ->trigger_process_regex(trigger_cmd_mutex) ->event_hist_trigger_func(synth_event_mutex) On the other hand, synthetic

[PATCH v2 04/12] tracing: Integrate similar probe argument parsers

2018-11-05 Thread Masami Hiramatsu
Integrate similar argument parsers for kprobes and uprobes events into traceprobe_parse_probe_arg(). Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 48 ++- kernel/trace/trace_probe.c | 47 +++---

Re: [PATCH 0/5] Use common cordic algorithm for b43

2018-11-05 Thread Kalle Valo
Arend van Spriel writes: > On 11/5/2018 9:02 AM, Kalle Valo wrote: >> Also I don't see MAINTAINERS entry for cordic.[c|h], that would be good >> to have as well. > > We added the cordic library functions during brcm80211 staging > cleanup. We can add it to MAINTAINERS file. Great, thanks. --

Re: [PATCH] mm: fix uninitialized variable warnings

2018-11-05 Thread Jan Kara
On Fri 02-11-18 16:31:06, Arnd Bergmann wrote: > In a rare randconfig build, I got a warning about possibly uninitialized > variables: > > mm/page-writeback.c: In function 'balance_dirty_pages': > mm/page-writeback.c:1623:16: error: 'writeback' may be used uninitialized in > this function

[PATCH v2 03/12] tracing: Simplify creation and deletion of synthetic event

2018-11-05 Thread Masami Hiramatsu
Simplify creation and deletion code of synthetic event. Since the event_mutex and synth_event_mutex ordering issue is gone, we can skip existing event check when adding or deleting event, and some redundant code in error path. This changes release_all_synth_events() to abort the process when it

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Baoquan He
On 11/05/18 at 10:14am, Michal Hocko wrote: > On Mon 05-11-18 08:20:09, Baoquan He wrote: > > Hi Michal, > > > > On 11/02/18 at 04:55pm, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > Baoquan He has noticed that 15c30bc09085 ("mm, memory_hotplug: make > > > has_unmovable_pages more

[PATCH] x86/vsmp: Remove dependency on pv_irq_ops

2018-11-05 Thread Eial Czerwacki
vsmp dependency on pv_irq_ops removed some years ago, so now let's clean it up from vsmp_64.c. In short, "cap & ctl & (1 << 4)" was always returning 0, as such we can remove all the PARAVIRT/PARAVIRT_XXL code handling that. However, the rest of the code depends on CONFIG_PCI, so fix it

Re: [PATCH v3 1/5] tpm: change the end marker of the active_banks array to zero

2018-11-05 Thread Roberto Sassu
On 10/31/2018 3:43 PM, Mimi Zohar wrote: On Tue, 2018-10-30 at 16:47 +0100, Roberto Sassu wrote: This patch changes the end marker of the active_banks array from TPM2_ALG_ERROR to zero. The patch description is a bit off. TPM2_ALG_ERROR is defined as zero.  Since tpm_chip_alloc() calls

[PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread He, Bo
skl->dais is allocated with devm_kcalloc, can't free with the krealloc. Memory allocated with devm API is automatically freed on driver detach, Like all other devres resources. Refer to drivers/base/devres.c devm_kmalloc for more details. Signed-off-by: he, bo ---

Re: [PATCH v1 3/7] vfio: ap: AP Queue Interrupt structures definitions

2018-11-05 Thread Pierre Morel
On 02/11/2018 16:14, Tony Krowiak wrote: On 10/31/18 2:12 PM, Pierre Morel wrote: We define all the structures we need to let GISA handle the AP Queues Interrupt. ... +struct aqic_gisa { +    uint8_t  rzone; +    uint8_t  izone; +    unsigned    ir:1; +    unsigned    reserved1:4; +   

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-05 Thread Vladimir Zapolskiy
Adding Clément. On 11/04/2018 04:46 PM, Shawn Guo wrote: > On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: >> The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer) >> function blocks. Add their ipg and per clocks to the device tree. >> >> Signed-off-by: Martin Kaiser >

[PATCH v2 01/12] tracing/uprobes: Add busy check when cleanup all uprobes

2018-11-05 Thread Masami Hiramatsu
Add a busy check loop in cleanup_all_probes() before trying to remove all events in uprobe_events as same as kprobe_events does. Without this change, writing null to uprobe_events will try to remove events but if one of them is enabled, it stopped there but some of events are already cleared.

[PATCH v2 00/12] tracing: Unifying dynamic event interface

2018-11-05 Thread Masami Hiramatsu
Hi, This is v2 series of unifying dynamic event interface on ftrace. Currently ftrace has 3 dynamic event interfaces, kprobes, uprobes and synthetic. This series unifies those dynamic event interfaces to "dynamic_events" so that we can add other dynamic events easily on same interface, e.g.

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Michal Hocko
On Mon 05-11-18 10:14:07, Michal Hocko wrote: > Maybe we can add a retry for movable zone pages. Or something like this. Ugly as hell, no question about that. I also have to think about this some more to convince myself this will not result in an endless loop under some situations. diff --git

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Michal Hocko
On Mon 05-11-18 17:26:18, Baoquan He wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index a919ba5..021e39d 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -7824,7 +7824,8 @@ bool has_unmovable_pages(struct zone *zone, struct page > *page, int count, >

Re: [PATCH] arm: kernel: add support for detecting armv8 cpu cache information

2018-11-05 Thread tengfei
Hi Russell, our team team was trying to check L1, L2 cache size with adb commands help on 32bit ARMv8 platform, so we submit this patch. Thanks, Tengfei Fan On 2018-10-18 16:56, Russell King - ARM Linux wrote: On Thu, Oct 18, 2018 at 02:16:47PM +0800, Teng Fei Fan wrote: This patch

[PATCH v2] kconfig: merge_config: avoid false positive matches from comment lines

2018-11-05 Thread Masahiro Yamada
The current SED_CONFIG_EXP could match to comment lines in config fragment files, especially when CONFIG_PREFIX_ is empty. For example, Buildroot uses empty prefixing; starting symbols with BR2_ is just convention. Make the sed expression more robust against false positives from comment lines.

Re: [PATCH] mtd: nand: drop kernel-doc notation for a deleted function parameter

2018-11-05 Thread Miquel Raynal
Hi Randy, Subject prefix should be "mtd: rawnand:". Randy Dunlap wrote on Sun, 4 Nov 2018 18:38:35 -0800: > From: Randy Dunlap > > Remove kernel-doc notation for a deleted function parameter to prevent > a kernel-doc warning: > > ../drivers/mtd/nand/raw/nand_base.c:603: warning: Excess

Re: perf script doesn't dump a normal call trace

2018-11-05 Thread Jiri Olsa
On Mon, Nov 05, 2018 at 03:20:15PM +0900, Xin Long wrote: SNIP > > > > [root@ibm-x3650m4-02 perf]# ./perf probe 'consume_skb' > > > > [root@ibm-x3650m4-02 perf]# ./perf record -g -e probe:consume_skb* -aR > > > > ^C > > > > > > > Thanks Jiri, > > > > > > My debugging script is using tracepoint

[PATCH v2 12/12] selftests/ftrace: Add testcases for dynamic event

2018-11-05 Thread Masami Hiramatsu
Add common testcases for dynamic_events interface. - Add/remove kprobe events via dynamic_events - Add/remove synthetic events via dynamic_events - Selective clear events (clear events other interfaces) - Genelic clear events ("!LINE" syntax) Signed-off-by: Masami Hiramatsu ---

[PATCH v2 09/12] tracing: Remove unneeded synth_event_mutex

2018-11-05 Thread Masami Hiramatsu
Rmove unneeded synth_event_mutex. This mutex protects the reference count in synth_event, however, those operational points are already protected by event_mutex. 1. In __create_synth_event() and create_or_delete_synth_event(), those synth_event_mutex clearly obtained right after event_mutex. 2.

[PATCH v2 11/12] tracing: Add generic event-name based remove event method

2018-11-05 Thread Masami Hiramatsu
Add a generic method to remove event from dynamic event list. This is same as other system under ftrace. You just need to pass the event name with '!', e.g. # echo p:new_grp/new_event _do_fork > dynamic_events This creates an event, and # echo '!p:new_grp/new_event _do_fork' >

[PATCH v2 10/12] tracing: Remove orphaned trace_add/remove_event_call functions

2018-11-05 Thread Masami Hiramatsu
Remove trace_add_event_call() and trace_remove_event_call() functions since those are not used anymore. Signed-off-by: Masami Hiramatsu --- include/linux/trace_events.h |2 -- kernel/trace/trace_events.c | 26 ++ 2 files changed, 2 insertions(+), 26 deletions(-)

Re: [PATCH v5 2/2] sched/fair: update scale invariance of PELT

2018-11-05 Thread Vincent Guittot
On Fri, 2 Nov 2018 at 16:36, Dietmar Eggemann wrote: > > On 10/26/18 6:11 PM, Vincent Guittot wrote: > > The current implementation of load tracking invariance scales the > > contribution with current frequency and uarch performance (only for > > utilization) of the CPU. One main result of this

Re: [PATCH 5/5] b43: Drop internal cordic algorithm implementation

2018-11-05 Thread Kalle Valo
Priit Laes writes: > Signed-off-by: Priit Laes No empty commit logs, please. And IMHO you could fold patch 5 into patch 4. -- Kalle Valo

Re: [PATCH] kbuild: consolidate Clang compiler flags

2018-11-05 Thread Stefan Agner
On 05.11.2018 03:48, Masahiro Yamada wrote: > Add basic options for Clang such as --target, --prefix, --gcc-toolchain, > -no-integrated-as to a single variable CLANG_FLAGS. > > Signed-off-by: Masahiro Yamada > --- > > Makefile | 13 ++--- > 1 file changed, 6 insertions(+), 7

Re: [RFC 0/2] RISC-V: A proposal to add vendor-specific code

2018-11-05 Thread Christoph Hellwig
On Mon, Nov 05, 2018 at 09:52:52AM +0100, Arnd Bergmann wrote: > > I fundamentally disagree with this… and think it should be the contrary. > > > > 1. The kernel shall support no vendor specific instructions whatsoever, > > period. > > I think what was meant above is > > 1. If a vendor extension

Re: [PATCH] kbuild: consolidate Clang compiler flags

2018-11-05 Thread Masahiro Yamada
On Mon, Nov 5, 2018 at 6:10 PM Stefan Agner wrote: > > On 05.11.2018 03:48, Masahiro Yamada wrote: > > Add basic options for Clang such as --target, --prefix, --gcc-toolchain, > > -no-integrated-as to a single variable CLANG_FLAGS. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > Makefile

Re: [PATCH] ACPI / battery: Fix reporting "Not charging" when capacity is 100%

2018-11-05 Thread Pavel Machek
On Fri 2018-11-02 23:57:32, João Paulo Rechi Vita wrote: > Commit 19fffc8450d4378580a8f019b195c4617083176f fixed reporting > "Discharging" on some machines when AC was connected but the battery was > not charging. But now on these machines the battery status is reported > as "Not charging" even

Re: [PATCH 1/2] dt-bindings: himax,hx8837: add HiMax HX8837 bindings

2018-11-05 Thread Pavel Machek
On Mon 2018-10-08 22:23:20, Lubomir Rintel wrote: > HiMax HX8837 is a display controller used on OLPC platforms. > It controlls backlight and is able to capture and freeze a frame when > the LCD controller (and the rest of the plaform) is powered off. > > What is missing here is the description

Re: sama5d: using the ebi interface from another driver

2018-11-05 Thread Ludovic Desroches
Hi Jean-Michel, On Fri, Nov 02, 2018 at 02:35:26PM +0100, Jean-Michel Hautbois wrote: > Hi all, > > I have a custom board based on a sama5d3 chip. The SoC is connected to > 2 pef24628 SHDSL transceivers, the first one on ebi@4000 and the > second one on ebi@5000. > I tried to write a

Re: [PATCH 05/14] ARM: ttc_dkb: add an instance of pxa-usb-phy

2018-11-05 Thread Pavel Machek
On Wed 2018-08-22 22:42:58, Lubomir Rintel wrote: > This will replace the ttc_usb_pdata.phy_{de,}init()> ">" -> "."? > Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek > arch/arm/mach-mmp/ttc_dkb.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/mach-mmp/ttc_dkb.c

[PATCH] ubifs: CONFIG_UBIFS_FS_AUTHENTICATION should depend on UBIFS_FS

2018-11-05 Thread Geert Uytterhoeven
Instead of adding yet another dependency on UBIFS_FS, wrap the whole block of ubifs config options in a single "if UBIFS_FS". Fixes: d8a22773a12c6d78 ("ubifs: Enable authentication support") Signed-off-by: Geert Uytterhoeven --- fs/ubifs/Kconfig | 15 +++ 1 file changed, 7

Re: [LINUX PATCH v12] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-11-05 Thread Miquel Raynal
Hi Helmut, Helmut Grohne wrote on Mon, 5 Nov 2018 09:40:43 +0100: > On Tue, Aug 07, 2018 at 11:10:14AM +0530, Naga Sureshkumar Relli wrote: > > Add driver for arm pl353 static memory controller nand interface with > > HW ECC support. This controller is used in Xilinx Zynq SoC for > >

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Baoquan He
On 11/05/18 at 10:28am, Michal Hocko wrote: > On Mon 05-11-18 10:14:07, Michal Hocko wrote: > > Maybe we can add a retry for movable zone pages. > > Or something like this. Ugly as hell, no question about that. I also > have to think about this some more to convince myself this will not > result

Re: [PATCH] mailmap: Update email for Punit Agrawal

2018-11-05 Thread Catalin Marinas
On Fri, Nov 02, 2018 at 04:57:52PM +, Punit Agrawal wrote: > As I'll no longer be working with Arm, add a mailmap entry so any mail > directed towards me reaches the appropriate mailbox. > > Signed-off-by: Punit Agrawal I'll pick this up for 4.20-rc2 (unless Linus applies it directly).

Gooday To You,

2018-11-05 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2018-11-05 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2018-11-05 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2018-11-05 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Gooday To You,

2018-11-05 Thread Ali Hamadu
Gooday To You, Please i need your kind Assistance. I will be very glad if you can assist me to receive this sum of ( $22. Million US dollars.) into your bank account for the benefit of our both families, reply me if you are ready to receive this fund.

Re: [PATCH] mm, slab: remove unnecessary unlikely()

2018-11-05 Thread Vlastimil Babka
+CC Dmitry On 11/4/18 1:50 PM, Yangtao Li wrote: > WARN_ON() already contains an unlikely(), so it's not necessary to use > unlikely. > > Signed-off-by: Yangtao Li Acked-by: Vlastimil Babka Maybe also change it back to WARN_ON_ONCE? I already considered it while reviewing Dmitry's patch and

Re: [PATCH v3] scripts/gdb: fix lx-version

2018-11-05 Thread Jan Kiszka
On 25.10.18 10:54, Kieran Bingham wrote: Hi Du, Thank you for the updated patch, On 17/10/2018 15:24, Du Changbin wrote: For current gdb version (has tested with 7.3 and 8.1), 'lx-version' only prints one character. (gdb) lx-version L(gdb) This can be fixed by casting 'linux_banner' as (char

Re: [PATCH] mm, memory_hotplug: teach has_unmovable_pages about of LRU migrateable pages

2018-11-05 Thread Baoquan He
Hi Michal, On 11/05/18 at 10:28am, Michal Hocko wrote: > > Or something like this. Ugly as hell, no question about that. I also > have to think about this some more to convince myself this will not > result in an endless loop under some situations. It failed. Paste the log and patch diff here,

Re: [PATCH] Revert "kbuild: add --include-dir flag only for out-of-tree build"

2018-11-05 Thread Ard Biesheuvel
On 5 November 2018 at 08:57, Masahiro Yamada wrote: > Hi Ard, > > > On Sun, Nov 4, 2018 at 5:15 AM Ard Biesheuvel > wrote: >> >> This reverts commit 80463f1b7bf9f822fd3495139bcf3ef254fdca10, because >> it breaks the bindeb-pkg build target in the following way: >> >> ... >> LD [M]

Re: [PATCH 2/2] mm: avoid unnecessary swap_info_struct allocation

2018-11-05 Thread Vasily Averin
I was wrong, openVz blocks sys_swapon/swapoff syscalls inside containers. Our kernel just emulates /proc/swaps output inside containers, it is enough for 'swapon' userspace to do not fail and show required info. So I do not have any special arguments for proposed patch. On 11/5/18 8:19 AM,

[PATCH] ceph: quota: fix null pointer dereference in quota check

2018-11-05 Thread Luis Henriques
This patch fixes a possible null pointer dereference in check_quota_exceeded, detected by the static checker smatch, with the following warning: fs/ceph/quota.c:240 check_quota_exceeded() error: we previously assumed 'realm' could be null (see line 188) Reported-by: Dan Carpenter Link:

[PATCH 3/4] power: reset: at91-poweroff: check shdwc data structure at the beginning of probe

2018-11-05 Thread Claudiu.Beznea
Check at91_shdwc before continuing with probe since we want only one instance of this driver. Inspired from commit 9f1e44774be5 ("power: reset: at91-poweroff: do not procede if at91_shdwc is allocated"). Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 3 +++ 1 file

[PATCH v4] mm, drm/i915: mark pinned shmemfs pages as unevictable

2018-11-05 Thread Kuo-Hsin Yang
The i915 driver uses shmemfs to allocate backing storage for gem objects. These shmemfs pages can be pinned (increased ref count) by shmem_read_mapping_page_gfp(). When a lot of pages are pinned, vmscan wastes a lot of time scanning these pinned pages. In some extreme case, all pages in the

[PATCH 2/4] power: reset: at91-poweroff: move shdwc related data to one structure

2018-11-05 Thread Claudiu.Beznea
Move SHDWC realted data to only one structure to have them grouped. Inspired from commit 9be74f0d39c1 ("power: reset: at91-poweroff: make mpddrc_base part of struct shdwc"). Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 60 +++-- 1 file

[PATCH 1/4] power: reset: at91-poweroff: use one poweroff function for at91-poweroff

2018-11-05 Thread Claudiu.Beznea
Use only one poweroff function and adapt it to work for both scenarios (with LPDDR or not). The assignement of pm_power_off was moved at the end of probe after all initializations are OK. This patch adapt the idea from commit 4e018c1e9b05 ("power: reset: at91-poweroff: use only one poweroff

[PATCH 0/4] power: reset: at91-poweroff: cleanups

2018-11-05 Thread Claudiu.Beznea
Hi, This series includes cleanups for at91-poweroff.c similar to the one did for SAMA5D2 Xplained SHDWC on series at [1]. Changes were tested on SAMA5D3 Xplained, SAMA5D4 Xplained and AT91SAM9G35-EK boards. Thank you, Claudiu Beznea [1] https://www.spinics.net/lists/arm-kernel/msg673559.html

Re: [PATCH v1 1/8] perf/x86: add support to mask counters from host

2018-11-05 Thread Wei Wang
On 11/05/2018 05:34 PM, Peter Zijlstra wrote: On Fri, Nov 02, 2018 at 05:08:31PM +0800, Wei Wang wrote: On 11/01/2018 10:52 PM, Peter Zijlstra wrote: @@ -723,6 +724,9 @@ static void perf_sched_init(struct perf_sched *sched, struct event_constraint ** sched->max_weight= wmax;

[PATCH 4/4] power: reset: at91-poweroff: remove at91_ramc_of_match

2018-11-05 Thread Claudiu.Beznea
Remove at91_ramc_of_match[] since it is not used anywhere in this code. Signed-off-by: Claudiu Beznea --- drivers/power/reset/at91-poweroff.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c index

[tip:irq/core] genirq/affinity: Add support for allocating interrupt sets

2018-11-05 Thread tip-bot for Jens Axboe
Commit-ID: 6da4b3ab9a6e9b1b5f90322ab3fa3a7dd18edb19 Gitweb: https://git.kernel.org/tip/6da4b3ab9a6e9b1b5f90322ab3fa3a7dd18edb19 Author: Jens Axboe AuthorDate: Fri, 2 Nov 2018 22:59:51 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 12:16:27 +0100 genirq/affinity: Add

[tip:irq/core] genirq/affinity: Pass first vector to __irq_build_affinity_masks()

2018-11-05 Thread tip-bot for Ming Lei
Commit-ID: 060746d9e394084b7401e7532f2de528ecbfb521 Gitweb: https://git.kernel.org/tip/060746d9e394084b7401e7532f2de528ecbfb521 Author: Ming Lei AuthorDate: Fri, 2 Nov 2018 22:59:50 +0800 Committer: Thomas Gleixner CommitDate: Mon, 5 Nov 2018 12:16:26 +0100 genirq/affinity: Pass first

Re: [PATCH 01/20] ath6kl: Mark expected switch fall-through

2018-11-05 Thread Kalle Valo
"Gustavo A. R. Silva" wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 201383 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > Acked-by: Steve deRosier > Signed-off-by: Kalle

Re: [PATCH] mfd: tps6586x: Handle interrupts on suspend

2018-11-05 Thread Jon Hunter
Hi Lee, On 19/10/2018 14:22, Jon Hunter wrote: > From: Jonathan Hunter > > The tps6586x driver creates an irqchip that is used by its various child > devices for managing interrupts. The tps6586x-rtc device is one of its > children that uses the tps6586x irqchip. When using the tps6586x-rtc as

  1   2   3   4   5   6   7   8   9   10   >