Re: bfq-mq performance comparison to cfq

2017-04-19 Thread Paolo Valente
> Il giorno 19 apr 2017, alle ore 07:01, Bart Van Assche > ha scritto: > > On 04/11/17 00:29, Paolo Valente wrote: >> >>> Il giorno 10 apr 2017, alle ore 17:15, Bart Van Assche >>> ha scritto: >>> >>> On Mon, 2017-04-10 at 11:55 +0200, Paolo Valente wrote: That said, if you do always w

Re: [patch] mm, vmscan: avoid thrashing anon lru when free + file is low

2017-04-19 Thread Michal Hocko
On Tue 18-04-17 14:32:56, David Rientjes wrote: [...] > If the suggestion is checking > NR_ACTIVE_ANON + NR_INACTIVE_ANON > total_high_wmark pages, it would be a > separate heurstic to address a problem that I'm not having :) My issue is > specifically when NR_ACTIVE_FILE + NR_INACTIVE_FILE < to

Re: [patch V2 05/10] timer: Retrieve next expiry of pinned/non-pinned timers seperately

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:07PM +0200, Thomas Gleixner wrote: > --- a/kernel/time/timer.c > +++ b/kernel/time/timer.c > @@ -1472,23 +1472,27 @@ static u64 cmp_next_hrtimer_event(u64 ba > * get_next_timer_interrupt - return the time (clock mono) of the next timer > * @basej: base time jiffi

[PATCH -mm -v9 0/3] THP swap: Delay splitting THP during swapping out

2017-04-19 Thread Huang, Ying
From: Huang Ying This patchset is to optimize the performance of Transparent Huge Page (THP) swap. Recently, the performance of the storage devices improved so fast that we cannot saturate the disk bandwidth with single logical CPU when do page swap out even on a high-end server machine. Becaus

[PATCH -mm -v9 3/3] mm, THP, swap: Enable THP swap optimization only if has compound map

2017-04-19 Thread Huang, Ying
From: Huang Ying If there is no compound map for a THP (Transparent Huge Page), it is possible that the map count of some sub-pages of the THP is 0. So it is better to split the THP before swapping out. In this way, the sub-pages not mapped will be freed, and we can avoid the unnecessary swap ou

[PATCH -mm -v9 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-19 Thread Huang, Ying
From: Huang Ying In this patch, splitting huge page is delayed from almost the first step of swapping out to after allocating the swap space for the THP (Transparent Huge Page) and adding the THP into the swap cache. This will batch the corresponding operation, thus improve THP swap out throughpu

Re: [patch V2 06/10] timer: Restructure internal locking

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:08PM +0200, Thomas Gleixner wrote: > +++ b/kernel/time/timer.c > @@ -1651,17 +1651,14 @@ void update_process_times(int user_tick) > /** > * __run_timers - run all expired timers (if any) on this CPU. > * @base: the timer vector to be processed. > + * > + * Caller

[PATCH -mm -v9 2/3] mm, THP, swap: Check whether THP can be split firstly

2017-04-19 Thread Huang, Ying
From: Huang Ying To swap out THP (Transparent Huage Page), before splitting the THP, the swap cluster will be allocated and the THP will be added into the swap cache. But it is possible that the THP cannot be split, so that we must delete the THP from the swap cache and free the swap cluster. To

Re: [PATCH V3 02/16] block, bfq: add full hierarchical scheduling and cgroups support

2017-04-19 Thread Paolo Valente
> Il giorno 19 apr 2017, alle ore 07:33, Paolo Valente > ha scritto: > >> >> Il giorno 18 apr 2017, alle ore 09:04, Tejun Heo ha >> scritto: >> >> Hello, Paolo. >> >> On Wed, Apr 12, 2017 at 07:22:03AM +0200, Paolo Valente wrote: >>> could you elaborate a bit more on this? I mean, cgroups

[PATCH 0/2] mtd: nand: Add generic helpers check, match, maximize ECC settings

2017-04-19 Thread Masahiro Yamada
This series is based on the discusson: https://patchwork.kernel.org/patch/9653063/ Before sending the whole v4 series for the Denali driver, here is my proposal. 1/2: add generic helpers to the NAND framework 2/2: is an example. Please see how those 3 helper functions are used. Please do not a

[PATCH 2/2] mtd: nand: denali: show how to use generic helpers (do not apply)

2017-04-19 Thread Masahiro Yamada
This patch shows how the previous commit is used in a driver. Please do not apply this. (This is applicable on linux next-20170418) Signed-off-by: Masahiro Yamada --- .../devicetree/bindings/mtd/denali-nand.txt| 17 + drivers/mtd/nand/denali.c | 1693

[PATCH 1/2] mtd: nand: add generic helpers to check, match, maximize ECC settings

2017-04-19 Thread Masahiro Yamada
Each driver has been responsible for: - Check if ECC setting specified (mostly by DT) is valid - Meet the chip's required ECC strength - Maximize the strength when NAND_ECC_MAXIMIZE flag is set The logic can be generalized by factoring out driver-specific parameters. A driver provides: -

Re: [RfC PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-19 Thread Pekka Paalanen
On Wed, 19 Apr 2017 10:01:47 +0900 Michel Dänzer wrote: > On 18/04/17 07:14 PM, Gerd Hoffmann wrote: > > Hi, > > > >>> Quite true that this proves nothing. However one should note that > >>> fbcon -> fbdev works, > >> > >> BTW, this supports Gerd's patch, since the KMS fbdev emulation code

Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Michal Hocko
On Wed 19-04-17 14:41:30, Tetsuo Handa wrote: [...] > Somebody is waiting forever with cpu_hotplug.lock held? Why would that matter for drain_all_pages? It doesn't use get_online_cpus since a459eeb7b852 ("mm, page_alloc: do not depend on cpu hotplug locks inside the allocator") while ce612879ddc7

Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Geert Uytterhoeven
Hi Tetsuo, On Wed, Apr 19, 2017 at 7:41 AM, Tetsuo Handa wrote: > Geert Uytterhoeven wrote: >> 8 locks held by s2ram/1899: >> #0: (sb_writers#7){.+.+.+}, at: [] vfs_write+0xa8/0x15c >> #1: (&of->mutex){+.+.+.}, at: [] >> kernfs_fop_write+0xf0/0x194 >> #2: (s_active#48){.+.+.+}, at: [] >>

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +++ b/kernel/time/timer.c > @@ -185,6 +186,10 @@ EXPORT_SYMBOL(jiffies_64); > #define WHEEL_SIZE (LVL_SIZE * LVL_DEPTH) > > #ifdef CONFIG_NO_HZ_COMMON > +/* > + * If multiple bases need to be locked, use the base ordering for

Re: [PATCH 1/4] block: remove the osdblk driver

2017-04-19 Thread Boaz Harrosh
On 04/12/2017 07:01 PM, Christoph Hellwig wrote: > This was just a proof of concept user for the SCSI OSD library, and > never had any real users. > > Signed-off-by: Christoph Hellwig Yes please remove this driver ACK-by Boaz Harrosh > --- > drivers/block/Kconfig | 16 -- > drivers/block/M

Re: [PATCH v2 00/27] PCI resource mmap cleanup

2017-04-19 Thread David Woodhouse
On Tue, 2017-04-18 at 13:28 -0500, Bjorn Helgaas wrote: > > Applied to pci/resource-mmap for v4.12, thanks! > > This consists of the email patches + the acks/etc so far.  It doesn't > include any updates from your git branch (but it doesn't look like it's > been updated recently). Thanks. Aside

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > @@ -1689,11 +1708,16 @@ static void run_timer_base(int index, bo > */ > static __latent_entropy void run_timer_softirq(struct softirq_action *h) > { > + struct timer_base *base = this_cpu_ptr(&timer_bases[BASE_LOCAL]); Does

Re: Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Tetsuo Handa
> On Wed 19-04-17 14:41:30, Tetsuo Handa wrote: > [...] > > Somebody is waiting forever with cpu_hotplug.lock held? > > Why would that matter for drain_all_pages? It doesn't use > get_online_cpus since a459eeb7b852 ("mm, page_alloc: do not depend on > cpu hotplug locks inside the allocator") while

[PATCH] bus: arm-ccn: Use devm_kcalloc() in arm_ccn_probe()

2017-04-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 19 Apr 2017 09:12:43 +0200 Multiplications for the size determination of memory allocations indicated that array data structures should be processed. Thus use the corresponding function "devm_kcalloc". This issue was detected by using the Coccinelle software. Sig

[PATCH 1/2] clk: rockchip: add SCLK_TESTCLKOUT1 id

2017-04-19 Thread Eddie Cai
we use SCLK_TESTCLKOUT1 for camera, so add this id. Signed-off-by: Eddie Cai --- include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 220a60f..c505a98 100644 --- a/include

Re: [PATCH 5/6] platform/x86: fujitsu-laptop: do not log LED registration failures

2017-04-19 Thread Jonathan Woithe
On Tue, Apr 18, 2017 at 09:01:12AM -0700, Darren Hart wrote: > On Tue, Apr 18, 2017 at 10:10:01AM +0200, Micha?? K??pie?? wrote: > > Jonathan, I hope this response to Darren's message also addresses your > > concerns. Feel free to let me know if it does not. > > > > > On Fri, Apr 07, 2017 at 03:0

[PATCH 0/2] correct id for clk_testout1

2017-04-19 Thread Eddie Cai
the id for clk_testout1 is wrong, it's time to correct it. Eddie Cai (2): clk: rockchip: add SCLK_TESTCLKOUT1 id clk: rockchip: fix the incorrect id for clk_testout1 drivers/clk/rockchip/clk-rk3399.c | 2 +- include/dt-bindings/clock/rk3399-cru.h | 1 + 2 files changed, 2 insertions(+)

[PATCH 2/2] clk: rockchip: fix the incorrect id for clk_testout1

2017-04-19 Thread Eddie Cai
the id for clk_testout1 is wrong, so correct it. Signed-off-by: Eddie Cai --- drivers/clk/rockchip/clk-rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 73121b14..322611d 100644 --- a/drivers/

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +struct tmigr_group { > + raw_spinlock_t lock; > + unsigned intactive; > + unsigned intmigrator; > + struct timerqueue_head events; > + struct tmigr_event groupevt; > +

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +struct tmigr_cpu { > + raw_spinlock_t lock; > + boolonline; > + struct tmigr_event cpuevt; > + struct tmigr_group *tmgroup; > +}; My pet hatred; bool in composite types.

Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Michal Hocko
On Wed 19-04-17 09:16:42, Geert Uytterhoeven wrote: > Hi Tetsuo, > > On Wed, Apr 19, 2017 at 7:41 AM, Tetsuo Handa > wrote: [...] > > Somebody is waiting forever with cpu_hotplug.lock held? > > I think that full dmesg with SysRq-t output is appreciated. > > As SysRq doesn't work with my serial c

Re: Reduce Linux boot time on Large scale system

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 04, 2017 at 04:39:06PM +, Noam Camus wrote: > Hi Peter & Vineet > > I wish to reduce boot time of my platform ARC/plat-eznps (4K CPUs). > My analysis is that most boot time is spent over cpu_up() for all CPUs > Measurements are about 66mS per CPU and Totally over 4 minutes (I got 8

[PATCH v5 3/7] perf record: Create a new option save_type in --branch-filter

2017-04-19 Thread Jin Yao
The option indicates the kernel to save branch type during sampling. One example: perf record -g --branch-filter any,save_type Change log -- v5: Not changed. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-record.txt | 1 + tools/perf/util/parse-branch-options.c | 1 + 2 f

[PATCH v5 1/7] perf/core: Define the common branch type classification

2017-04-19 Thread Jin Yao
It is often useful to know the branch types while analyzing branch data. For example, a call is very different from a conditional branch. Currently we have to look it up in binary while the binary may later not be available and even the binary is available but user has to take some time. It is ver

[PATCH v5 0/7] perf report: Show branch type

2017-04-19 Thread Jin Yao
v5: --- Mainly the v5 patch series are updated according to comments from Jiri Olsa . The kernel part doesn't have functional change. It just solve the merge issue. In userspace, the functions of branch type counting and branch type name resolving are moved to the new files:

[PATCH v5 4/7] perf report: Refactor the branch info printing code

2017-04-19 Thread Jin Yao
The branch info such as predicted/cycles/... are printed at the callchain entries. For example: perf report --branch-history --no-children --stdio --1.07%--main div.c:39 (predicted:52.4% cycles:1 iterations:17) main div.c:44 (predicted:52.4% cycles:1) main div.c:42

[PATCH v5 2/7] perf/x86/intel: Record branch type

2017-04-19 Thread Jin Yao
Perf already has support for disassembling the branch instruction and using the branch type for filtering. The patch just records the branch type in perf_branch_entry. Before recording, the patch converts the x86 branch type to common branch type. Change log -- v5: Just fix the merge err

[PATCH v5 7/7] perf report: Show branch type in callchain entry

2017-04-19 Thread Jin Yao
Show branch type in callchain entry. The branch type is printed with other LBR information (such as cycles/abort/...). For example: perf report --branch-history --stdio --no-children --23.56%--main div.c:42 (RET CROSS_2M cycles:2) compute_flag div.c:28 (cycles:2) compute_flag

[PATCH v5 5/7] perf util: Create branch.c/.h for common branch functions

2017-04-19 Thread Jin Yao
Create new util/branch.c and util/branch.h to contain the common branch functions. Such as: branch_type_count(): Count the numbers of branch types branch_type_name() : Return the name of branch type The branch type is saved in branch_flags. Change log -- v5: It's a new patch in v5 patch

[PATCH v5 6/7] perf report: Show branch type statistics for stdio mode

2017-04-19 Thread Jin Yao
Show the branch type statistics at the end of perf report --stdio. For example: perf report --stdio JCC forward: 27.6% JCC backward: 10.0% CROSS_4K: 0.0% CROSS_2M: 14.3% JCC: 37.6% JMP: 0.0% IND_JMP: 6.5% CALL: 26.6% IND_CALL: 0.0%

Re: RFC: WMI Enhancements

2017-04-19 Thread Pali Rohár
On Tuesday 18 April 2017 15:49:31 Darren Hart wrote: > On Tue, Apr 18, 2017 at 09:28:36PM +0200, Pali Rohár wrote: > > And still, if write audit filters for every one existing wmi driver in > > kernel, there still audit filter can say to userspace that current > > request cannot be accepted and s

Re: Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Michal Hocko
On Wed 19-04-17 16:26:10, Tetsuo Handa wrote: > > On Wed 19-04-17 14:41:30, Tetsuo Handa wrote: > > [...] > > > Somebody is waiting forever with cpu_hotplug.lock held? > > > > Why would that matter for drain_all_pages? It doesn't use > > get_online_cpus since a459eeb7b852 ("mm, page_alloc: do not

[PATCH 1/1] drivers:staging:vt6656: remove usb_device_reset in main_usb.c:

2017-04-19 Thread Chewie Lin
Removed the usb_device_reset(), replace with call to usb_reset_device() directly. Plus it removes the confusing function name and addressed the checkpatch warning. This change also swaps string in the dev_warn() call with __func__ argument to "vt6656_probe" instead of literal string "usb_reset_d

Re: [PATCH V4] x86: call smp vmxoff in smp stop

2017-04-19 Thread Ingo Molnar
* Paolo Bonzini wrote: > Ingo, can you put this in tip? > > Thanks, > > Paolo > > On 18/01/2017 12:32, Xishi Qiu wrote: > > From: Tiantian Feng > > > > We need to disable VMX on all CPUs before stop cpu when OS panic, > > otherwisewe risk hanging up the machine, because the CPU ignore INIT

[PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288

2017-04-19 Thread Guillaume Tucker
The ARM Mali Midgard GPU kernel driver is only available out-of-tree and is not going to be merged in its current form. However, it would be useful to have its device tree bindings merged. In particular, this would enable distributions to create working driver packages (dkms...) without having to

[PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-04-19 Thread Guillaume Tucker
The ARM Mali Midgard GPU family is present in a number of SoCs from many different vendors such as Samsung Exynos and Rockchip. Import the device tree bindings documentation from the r16p0 release of the Mali Midgard GPU kernel driver: https://developer.arm.com/-/media/Files/downloads/mali-dri

RE: [PATCH v2 1/5] kprobes: convert kprobe_lookup_name() to a function

2017-04-19 Thread Naveen N. Rao
Excerpts from David Laight's message of April 18, 2017 18:22: From: Naveen N. Rao Sent: 12 April 2017 11:58 ... +kprobe_opcode_t *kprobe_lookup_name(const char *name) +{ ... + char dot_name[MODULE_NAME_LEN + 1 + KSYM_NAME_LEN]; + const char *modsym; + bool dot_appended = fa

Re: [PATCH 4/4] KVM: x86: enable configurable MAX_VCPU

2017-04-19 Thread Christian Borntraeger
On 04/13/2017 10:19 PM, Radim Krčmář wrote: > The only user of KVM_MAX_VCPU is switched to kvm->max_vcpu. > > The limit could have been INT_MAX as it makes no difference, but there > is no point in making it bigger than KVM_MAX_VCPU_ID. > > Signed-off-by: Radim Krčmář > --- > arch/x86/include/a

Re: Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Geert Uytterhoeven
Hi Michal, Tetsuo, On Wed, Apr 19, 2017 at 9:57 AM, Michal Hocko wrote: > From f3c6e287042259d6ae9916f1ff66392c46ce2a3c Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Wed, 19 Apr 2017 09:52:46 +0200 > Subject: [PATCH] mm: make mm_percpu_wq non freezable > > Geert has reported a freeze dur

[PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

2017-04-19 Thread Guillaume Tucker
Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table. Tested-by: Enric Balletbo i Serra Signed-off-by: Guillaume Tucker --- arch/arm/boot/dts/rk3288.dtsi | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot

[PATCH v3 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som

2017-04-19 Thread Guillaume Tucker
Add reference to the Mali GPU device tree node on the rk3288-rock2-som platform. Tested on a Radxa Rock2 Square board. Signed-off-by: Guillaume Tucker --- arch/arm/boot/dts/rk3288-rock2-som.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-som.dtsi b/

[PATCH v3 4/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly

2017-04-19 Thread Guillaume Tucker
Add reference to the Mali GPU device tree node on rk3288-firefly. Tested on Firefly board. Signed-off-by: Guillaume Tucker --- arch/arm/boot/dts/rk3288-firefly.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.

[PATCH v3 5/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron

2017-04-19 Thread Guillaume Tucker
From: Enric Balletbo i Serra Add reference to the Mali GPU device tree node on rk3288-veyron. Tested on Minnie and Jerry boards. Signed-off-by: Enric Balletbo i Serra Signed-off-by: Guillaume Tucker --- arch/arm/boot/dts/rk3288-veyron.dtsi | 5 + 1 file changed, 5 insertions(+) diff --gi

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > +static struct tmigr_group *tmigr_get_group(unsigned int node, unsigned int > lvl) > +{ > + struct tmigr_group *group; > + > + /* Try to attach to an exisiting group first */ > + list_for_each_entry(group, &tmigr_level_

[tip:x86/urgent] x86/build: convert function graph '-Os' error to warning

2017-04-19 Thread tip-bot for Josh Poimboeuf
Commit-ID: a5859c6d7b6114fc0e52be40f7b0f5451c4aba93 Gitweb: http://git.kernel.org/tip/a5859c6d7b6114fc0e52be40f7b0f5451c4aba93 Author: Josh Poimboeuf AuthorDate: Tue, 18 Apr 2017 16:44:29 -0500 Committer: Ingo Molnar CommitDate: Wed, 19 Apr 2017 09:57:23 +0200 x86/build: convert functi

[tip:x86/asm] x86/unwind: Prepend hex mask value with '0x' in unwind_dump()

2017-04-19 Thread tip-bot for Josh Poimboeuf
Commit-ID: 4ea3d7410c3597910071182a6bc258c015942887 Gitweb: http://git.kernel.org/tip/4ea3d7410c3597910071182a6bc258c015942887 Author: Josh Poimboeuf AuthorDate: Tue, 18 Apr 2017 08:12:57 -0500 Committer: Ingo Molnar CommitDate: Wed, 19 Apr 2017 09:59:47 +0200 x86/unwind: Prepend hex m

[tip:x86/asm] x86/unwind: Properly zero-pad 32-bit values in unwind_dump()

2017-04-19 Thread tip-bot for Josh Poimboeuf
Commit-ID: 9b135b234644c9881eee4f5d5683da0f4524722f Gitweb: http://git.kernel.org/tip/9b135b234644c9881eee4f5d5683da0f4524722f Author: Josh Poimboeuf AuthorDate: Tue, 18 Apr 2017 08:12:56 -0500 Committer: Ingo Molnar CommitDate: Wed, 19 Apr 2017 09:59:47 +0200 x86/unwind: Properly zero

[tip:x86/asm] x86/unwind: Remove unused 'sp' parameter in unwind_dump()

2017-04-19 Thread tip-bot for Josh Poimboeuf
Commit-ID: aa4f853461aab5f526a312bf418091a95626632b Gitweb: http://git.kernel.org/tip/aa4f853461aab5f526a312bf418091a95626632b Author: Josh Poimboeuf AuthorDate: Tue, 18 Apr 2017 08:12:58 -0500 Committer: Ingo Molnar CommitDate: Wed, 19 Apr 2017 09:59:47 +0200 x86/unwind: Remove unused

Re: [PATCH -mm -v3] mm, swap: Sort swap entries before free

2017-04-19 Thread Huang, Ying
Minchan Kim writes: > Hi Huang, > > On Fri, Apr 07, 2017 at 02:49:01PM +0800, Huang, Ying wrote: >> From: Huang Ying >> >> To reduce the lock contention of swap_info_struct->lock when freeing >> swap entry. The freed swap entries will be collected in a per-CPU >> buffer firstly, and be really

Re: Performance of low-cpu utilisation benchmark regressed severely since 4.6

2017-04-19 Thread Mel Gorman
On Fri, Apr 14, 2017 at 04:01:40PM -0700, Doug Smythies wrote: > Hi Mel, > > Thanks for the "how to" information. > This is a very interesting use case. > From trace data, I see a lot of minimal durations with > virtually no load on the CPU, typically more consistent > with some type of light duty

Re: Re: Re: "mm: move pcp and lru-pcp draining into single wq" broke resume from s2ram

2017-04-19 Thread Michal Hocko
On Wed 19-04-17 10:09:12, Geert Uytterhoeven wrote: > Hi Michal, Tetsuo, > > On Wed, Apr 19, 2017 at 9:57 AM, Michal Hocko wrote: > > From f3c6e287042259d6ae9916f1ff66392c46ce2a3c Mon Sep 17 00:00:00 2001 > > From: Michal Hocko > > Date: Wed, 19 Apr 2017 09:52:46 +0200 > > Subject: [PATCH] mm: m

Re: pstore to save vmcoreinfo for hypervisors

2017-04-19 Thread Paolo Bonzini
> It would be interesting to have this information during early kernel boot, > but which mechanism should be used? pstore seems like an option. There > could be a new PSTORE_TYPE_VMCOREINFO with the same content as > /sys/kernel/vmcoreinfo. During boot, the kernel could remove older entries > if a

Re: [PATCH V4] x86: call smp vmxoff in smp stop

2017-04-19 Thread Paolo Bonzini
> > On 18/01/2017 12:32, Xishi Qiu wrote: > > > From: Tiantian Feng > > > > > > We need to disable VMX on all CPUs before stop cpu when OS panic, > > > otherwisewe risk hanging up the machine, because the CPU ignore INIT > > > signals when VMX is enabled. In kernel mainline this issue existence.

[PATCH 0/3] iio: adc: sama5d2_adc hw triggers and buffers

2017-04-19 Thread Eugen Hristev
This patch implements the hardware triggers support and buffer management for sama5d2. The DT modifications ( [PATCH 1/3] ARM: dts: at91: sama5d2_xplained: enable ADTRG pin) are for demonstration purposes of the feature, setting the pinctrl for the ADC hw trigger pin,should go through at91 maintain

[PATCH 3/3] iio: tools: generic_buffer: increase trigger length

2017-04-19 Thread Eugen Hristev
Increased trigger length to 50 in order to cope with trigger names like fc03.adc-dev0-external-rising Signed-off-by: Eugen Hristev --- tools/iio/iio_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/iio/iio_utils.h b/tools/iio/iio_utils.h index 780f201..9d5977

Re: Why mmap(MAP_POPULATE | MAP_NONBLOCK) is needed (Re: [patch] mmap.2: Add link to commit which broke MAP_POPULATE | MAP_NONBLOCK to be noop)

2017-04-19 Thread Kirill Smelkov
Michael, there are no replies, but I still think it is better we apply the following patch to man-pages. Thanks. 8< From: Kirill Smelkov Subject: [patch] mmap.2: Add link to commit which broke MAP_POPULATE | MAP_NONBLOCK to be noop Signed-off-by: Kirill Smelkov --- man2/mmap.2 | 1 +

[PATCH 2/3] iio: adc: at91-sama5d2_adc: add hw trigger and buffer support

2017-04-19 Thread Eugen Hristev
Added support for the external hardware trigger on pin ADTRG, integrated the three possible edge triggers into the subsystem and created buffer management for data retrieval Signed-off-by: Eugen Hristev --- drivers/iio/adc/at91-sama5d2_adc.c | 207 - 1 file ch

Re: [PATCH] bus: arm-ccn: Use devm_kcalloc() in arm_ccn_probe()

2017-04-19 Thread Mark Rutland
On Wed, Apr 19, 2017 at 09:29:24AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 09:12:43 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function

[PATCH 1/3] ARM: dts: at91: sama5d2_xplained: enable ADTRG pin

2017-04-19 Thread Eugen Hristev
Enable pinctrl for ADTRG pin (PD31) for ADC hardware trigger support. Signed-off-by: Eugen Hristev --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts

Re: [PATCH] iio: stm32 trigger: fix sampling_frequency read

2017-04-19 Thread Benjamin Gaignard
2017-04-07 13:53 GMT+02:00 Fabrice Gasnier : > When prescaler (PSC) is 0, it means div factor is 1: counter clock > frequency is equal to input clk / (PSC + 1). > When reload value is 8 for example, counter counts 9 cycles, from 0 to 8. > This is handled in frequency write routine, by writing respe

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > > +static struct tmigr_group *tmigr_get_group(unsigned int node, unsigned int > > lvl) > > +{ > > + struct tmigr_group *group; > > + > > + /* Try to attach to an exisiting group firs

Re: [Linaro-mm-sig] [PATCHv4 05/12] staging: android: ion: Break the ABI in the name of forward progress

2017-04-19 Thread Daniel Vetter
On Tue, Apr 18, 2017 at 11:27:07AM -0700, Laura Abbott wrote: > Several of the Ion ioctls were designed in such a way that they > necessitate compat ioctls. We're breaking a bunch of other ABIs and > cleaning stuff up anyway so let's follow the ioctl guidelines and clean > things up while everyone

Re: [Linaro-mm-sig] [PATCHv4 10/12] staging: android: ion: Remove ion_handle and ion_client

2017-04-19 Thread Daniel Vetter
On Tue, Apr 18, 2017 at 11:27:12AM -0700, Laura Abbott wrote: > ion_handle was introduced as an abstraction to represent a reference to > a buffer via an ion_client. As frameworks outside of Ion evolved, the dmabuf > emerged as the preferred standard for use in the kernel. This has made > the ion_h

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Wed, Apr 19, 2017 at 10:31:08AM +0200, Thomas Gleixner wrote: > On Wed, 19 Apr 2017, Peter Zijlstra wrote: > > On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > > > + } > > > + /* Allocate and set up a new group */ > > > + group = kzalloc_node(sizeof(*group), GFP_KERNEL, node);

Re: [Linaro-mm-sig] [PATCHv4 12/12] staging/android: Update Ion TODO list

2017-04-19 Thread Daniel Vetter
On Tue, Apr 18, 2017 at 11:27:14AM -0700, Laura Abbott wrote: > Most of the items have been taken care of by a clean up series. Remove > the completed items and add a few new ones. > > Signed-off-by: Laura Abbott > --- > drivers/staging/android/TODO | 21 - > 1 file changed,

Re: [PATCH 2/2] fs: configfs: use hexadecimal values and new line

2017-04-19 Thread Krzysztof Opasiak
On 04/15/2017 03:35 AM, Stefan Agner wrote: Other unsigned properties return hexadecimal values, follow this convention when printing b_vendor_code too. Also add newlines to the OS Descriptor support related properties, like other sysfs files use. Signed-off-by: Stefan Agner --- drivers/usb/

RE: [PATCH v2 1/5] kprobes: convert kprobe_lookup_name() to a function

2017-04-19 Thread David Laight
From: Naveen N. Rao > Sent: 19 April 2017 09:09 > To: David Laight; Michael Ellerman > Cc: linux-kernel@vger.kernel.org; linuxppc-...@lists.ozlabs.org; Masami > Hiramatsu; Ingo Molnar > Subject: RE: [PATCH v2 1/5] kprobes: convert kprobe_lookup_name() to a > function > > Excerpts from David Laig

Re: [PATCH v2 3/3] mtd: dataflash: Make use of "extened device information"

2017-04-19 Thread Marek Vasut
On 04/19/2017 04:58 AM, Andrey Smirnov wrote: > On Tue, Apr 18, 2017 at 11:31 AM, Marek Vasut wrote: >> On 04/18/2017 04:21 PM, Andrey Smirnov wrote: >>> In anticipation of supporting chips that need it, extend the size of >>> struct flash_info's 'jedec_id' field to make room 2 byte of extended >>

Re: [PATCH] ACPI: emits change uevents to all physical companion devices of container's children

2017-04-19 Thread joeyli
Hi, On Wed, Apr 19, 2017 at 02:30:18AM +0200, Rafael J. Wysocki wrote: > On Mon, Apr 3, 2017 at 5:55 PM, Lee, Chun-Yi wrote: > > The caa73ea1 patch, "ACPI / hotplug / driver core: Handle containers > > in a special way", introduced the offline callback of acpi container. > > In the patch descrip

[PATCH v2] ARM: dts: at91: sama5d2: add m_can nodes

2017-04-19 Thread Wenyou Yang
Add nodes to support the Controller Area Network(M_CAN) on SAMA5D2. The version of M_CAN IP core is 3.1.0 (CREL = 0x31040730). As said in SAMA5D2 datasheet, the CAN clock is recommended to use frequencies of 20, 40 or 80 MHz. To achieve these frequencies, PMC GCLK3 must select the UPLLCK(480 MHz)

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Peter Zijlstra
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > + raw_spin_lock_nested(&parent->lock, parent->level); > + raw_spin_lock_nested(&group->lock, group->level); > + raw_spin_lock_nested(&group->lock, group->level); An not a comment on the locking order and why thi

Re: [PATCH 1/2] fs: configfs: make qw_sign attribute symmetric

2017-04-19 Thread Krzysztof Opasiak
On 04/15/2017 03:35 AM, Stefan Agner wrote: Currently qw_sign requires UTF-8 character to set, but returns UTF-16 when read. This isn't obvious when simply using cat since the null characters are not visible, but hexdump unveils the true string: # echo MSFT100 > os_desc/qw_sign # hexdump -

I NEED YOUR REPLY,

2017-04-19 Thread Joy Julian Zengo
How are you today, I hope that everything is OK with you as it is my great pleasure to contact you in having communication with you today after seeing your email My name is Princess Joy J. Zengo.i am 24 yrs old,I am contacting you for a very important issue because i think you are the right pers

Re: Reduce Linux boot time on Large scale system

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > On Tue, Apr 04, 2017 at 04:39:06PM +, Noam Camus wrote: > > Hi Peter & Vineet > > > > I wish to reduce boot time of my platform ARC/plat-eznps (4K CPUs). > > My analysis is that most boot time is spent over cpu_up() for all CPUs > > Measurements are

Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288

2017-04-19 Thread Heiko Stuebner
Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker: > Add Mali GPU device tree node for the rk3288 SoC, with devfreq > opp table. > > Tested-by: Enric Balletbo i Serra > Signed-off-by: Guillaume Tucker > --- > arch/arm/boot/dts/rk3288.dtsi | 22 ++ > 1 file

Re: [PATCH] usb: gadget: remove redundant self assignment

2017-04-19 Thread Krzysztof Opasiak
On 04/17/2017 05:12 AM, Stefan Agner wrote: The assignment ret = ret is redundant and can be removed. Signed-off-by: Stefan Agner --- A very similar patch has been applied already last year, but there is a second such assignment... -- Stefan drivers/usb/gadget/udc/core.c | 4 +--- 1 file c

Re: [tip:x86/platform 1/1] platform_bt.c:undefined reference to `gpiod_add_lookup_table'

2017-04-19 Thread Linus Walleij
On Tue, Apr 18, 2017 at 3:41 PM, Andy Shevchenko wrote: > On Fri, 2017-04-07 at 12:36 +0200, Linus Walleij wrote: >> They return NULL if the GPIO is not there, or if the >> GPIO library is compiled out (as of HEAD, due to the >> patch from Dmitry T.) > > I'm talking if they are used or not in hci

Re: [patch V2 08/10] timer: Implement the hierarchical pull model

2017-04-19 Thread Thomas Gleixner
On Wed, 19 Apr 2017, Peter Zijlstra wrote: > On Wed, Apr 19, 2017 at 10:31:08AM +0200, Thomas Gleixner wrote: > > On Wed, 19 Apr 2017, Peter Zijlstra wrote: > > > On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote: > > > > > + } > > > > + /* Allocate and set up a new group

Re: [PATCH v5 01/32] x86: Documentation for AMD Secure Memory Encryption (SME)

2017-04-19 Thread Borislav Petkov
Always have a verb in the Subject to form a "do this" or "do that" sentence to better explain what the patch does: "Subject: [PATCH v5 01/32] x86: Add documentation for AMD Secure Memory Encryption (SME)" On Tue, Apr 18, 2017 at 04:16:25PM -0500, Tom Lendacky wrote: > Create a Documentation entr

Re: [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU

2017-04-19 Thread Heiko Stuebner
Am Mittwoch, 19. April 2017, 09:06:17 CEST schrieb Guillaume Tucker: > The ARM Mali Midgard GPU family is present in a number of SoCs > from many different vendors such as Samsung Exynos and Rockchip. > > Import the device tree bindings documentation from the r16p0 > release of the Mali Midgard GP

[RFC PATCH v2 00/12] Unify interrupt mode and setup it as soon as possible

2017-04-19 Thread Dou Liyang
According to Ingo's and Eric's advice[1,2], Try my best to optimize the init of interrupt delivery mode for x86. MP specification defines three different interrupt modes as follows: 1. PIC Mode 2. Virtual Wire Mode 3. Symmetric I/O Mode Currently, in kernel, 1. Setup Virtual Wire Mode durin

[RFC PATCH v2 02/12] x86/apic: Construct a selector for the interrupt delivery mode

2017-04-19 Thread Dou Liyang
Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC 2) kernel option: disable_apic; skip_ioapic_setup 3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC) 4) MP ta

[RFC PATCH v2 01/12] x86/apic: Replace init_bsp_APIC() with apic_virtual_wire_mode_setup()

2017-04-19 Thread Dou Liyang
The init_bsp_APIC() sets up virtual wire mode through the local APIC. The function name implies that the BSP's APIC will be initialized here, which is unsuitable, while its initialization actually locates almost at the end of start_kernel(). And the CONFIG X86_64 is also imply the X86_LOCAL_APIC i

[RFC PATCH v2 04/12] x86/time: Initialize interrupt mode behind timer init

2017-04-19 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. default mode may not be compatible with the actual hardware, which cause the delivery interrupt to fail. Try to set up the final mode as soon as possible. according to the parts which split from that

[RFC PATCH v2 06/12] x86/apic: Split local APIC timer setup from the APIC setup

2017-04-19 Thread Dou Liyang
The apic_bsp_setup() set up the local APIC, I/O APIC and APIC timer. The local APIC and I/O APIC setup belongs to interrupt delivery mode setup. Setting up the local APIC timer for booting CPU is another job. Unifying the interrupt delivery mode need setting the apic_bsp_setup() in advance of cali

[RFC PATCH v2 08/12] x86/apic: Make the interrupt mode setup earlier for SMP-capable system

2017-04-19 Thread Dou Liyang
In the SMP-capable system, enable and setup the interrupt delivery mode in native_smp_prepare_cpus() which almost be called at the end of start_kernel(). But, calibrate delay needs the timer interrupt which may be disabled in dump-capture kernel. Due to the MP table or ACPI has been read earlier,

[RFC PATCH v2 11/12] x86/apic: Mark the apic_interrupt_mode extern for refining code

2017-04-19 Thread Dou Liyang
Native_smp_prepare_cpus() prepares for SMP bootup, does some sanity checking and enables APIC mode. The APIC mode setup has been unified to init_interrupt_mode(), Here is redundant and need to be cleaned up. Mark the apic_interrupt_mode extern to refine the switch and remove the redundant sanity

[RFC PATCH v2 12/12] x86/apic: Remove the apic_virtual_wire_mode_setup()

2017-04-19 Thread Dou Liyang
Currently, enable and setup the interrupt mode has been advanced and it has already included the virtual wire mode setup. The apic_virtual_wire_mode_setup() which works for the virtual wire mode is redundant. Remove the apic_virtual_wire_mode_setup() function and add the apic routing setup for th

Re: [PATCH v13 03/10] mux: minimal mux subsystem and gpio-based mux controller

2017-04-19 Thread Philipp Zabel
On Thu, 2017-04-13 at 18:43 +0200, Peter Rosin wrote: > Add a new minimalistic subsystem that handles multiplexer controllers. > When multiplexers are used in various places in the kernel, and the > same multiplexer controller can be used for several independent things, > there should be one place

[RFC PATCH v2 10/12] x86/apic: Make the interrupt mode setup earlier for UP system

2017-04-19 Thread Dou Liyang
In UniProcessor kernel with UP_LATE_INIT=y, enable and setup the interrupt delivery mode in smp_init() which almost be called at the end of start_kernel(). But, calibrate delay needs the timer interrupt which may be disabled in dump-capture kernel. Due to the MP table or ACPI has been read earlie

[RFC PATCH v2 09/12] x86/apic: Setup interrupt mode earlier in case of no SMP motherboard

2017-04-19 Thread Dou Liyang
Kernel falls back to non SMP mode and sets up interrupt delivery mode in APIC_init_uniprocessor() in case of no SMP motherboard. Setting up interrupt delivery mode as soon as possible should wraps this case too. Wrap this case, make it consistent with SMP-capable systems. Incidentally, -Extract

[RFC PATCH v2 07/12] x86/apic: Move the logical APIC ID setup from apic_bsp_setup()

2017-04-19 Thread Dou Liyang
The apic_bsp_setup() sets and returns logical APIC ID for setting up cpu0_logical_apicid in SMP-capable system. The id has nothing to do with the initialization of local APIC and I/O APIC. apic_bsp_setup() should be specific for the initialization. Move the id setup to native_smp_prepare_cpus().

[RFC PATCH v2 05/12] x86/ioapic: Refactor the delay logic in timer_irq_works()

2017-04-19 Thread Dou Liyang
Timer_irq_works() calls mdelay(10) to delay ten ticks and checks whether the timer IRQ works or not. The mdelay() depends on the loops_per_jiffy which is set up in calibrate_delay(). Timer_irq_works() has been in advance of calibrate_delay(). the mdelay() doesn't work well in timer_irq_works(). R

  1   2   3   4   5   6   7   8   9   10   >