Re: [PATCH v2] perf test: Fix false TEST_OK result for 'perf test hist'

2015-12-15 Thread Namhyung Kim
On Tue, Dec 15, 2015 at 08:09:26AM +, Wang Nan wrote: > Commit 71d6de64feddd4b45326fba2111b3006d9e0 ('perf test: Fix hist > testcases when kptr_restrict is on') solves a double free problem when > 'perf test hist' calling setup_fake_machine(). However, the result is > still incorrect. For e

Re: [PATCH 6/6] perf tools: Try to show pretty printed output for dynamic sort keys

2015-12-15 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 12:46:13AM +0900, Namhyung Kim wrote: > Each tracepoint event has format string for print to improve > readability. Try to parse the output and match the field name. If it > finds one, use that for the result. If not, fallbacks to the original > output. > > For example,

[f2fs-dev] [PATCH] f2fs: fix to reset variable correctlly

2015-12-15 Thread Fan Li
f2fs_map_blocks will set m_flags and m_len to 0, so we don't need to reset m_flags ourselves, but have to reset m_len to correct value before use it again. Signed-off-by: Fan li --- fs/f2fs/file.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/fs/f2fs/file.c b/fs

Re: [PATCH v9 0/3] Add board support for TS-4800

2015-12-15 Thread Shawn Guo
On Fri, Dec 11, 2015 at 12:08:11PM -0500, Damien Riegel wrote: > Damien Riegel (3): > of: add vendor prefix for Technologic Systems > of: documentation: add bindings documentation for TS-4800 > ARM: dts: TS-4800: add basic device tree Applied all, thanks. -- To unsubscribe from this list: se

Re: [PATCH 04/11] KVM: page track: add the framework of guest page tracking

2015-12-15 Thread Xiao Guangrong
On 12/15/2015 03:06 PM, Kai Huang wrote: Hi Guangrong, I am starting to review this series, and should have some comments or questions, you can determine whether they are valuable :) Thank you very much for your review and breaking the silent on this patchset. ;) +static void page_track_

Re: isolate_lru_page on !head pages

2015-12-15 Thread Michal Hocko
On Mon 14-12-15 14:04:56, Kirill A. Shutemov wrote: > On Wed, Dec 09, 2015 at 02:02:05PM +0100, Michal Hocko wrote: > > Hi Kirill, > > [ sorry for late reply, just back from vacation. ] > > > while looking at the issue reported by Minchan [1] I have noticed that > > there is nothing to prevent fr

RE: [PATCH v4 7/7] ACPI / x86: introduce acpi_os_readable() support

2015-12-15 Thread Zheng, Lv
Hi, > From: Chen, Yu C > Sent: Tuesday, December 15, 2015 2:13 PM > > Hi, Andy > > > From: Andy Lutomirski [mailto:l...@amacapital.net] > > Sent: Tuesday, December 15, 2015 7:28 AM > > > > On Wed, Dec 2, 2015 at 6:43 PM, Lv Zheng wrote: > > > From: Chen Yu > > > > > > This patch implements acp

Re: [PATCH] ARM: dts: imx: Fix the assigned-clock mismatch issue on imx6q/dl

2015-12-15 Thread Shawn Guo
On Mon, Dec 14, 2015 at 11:07:50AM +0800, Shawn Guo wrote: > On Wed, Dec 09, 2015 at 04:15:55PM +0800, Bai Ping wrote: > > The 'assigned-clock-parents' and 'assigned-clock-rates' list > > should corresponding to the 'assigned-clocks' property clock list. > > > > Signed-off-by: Bai Ping > > Appli

Re: [PATCH 5/6] perf tools: Add dynamic sort key for tracepoint events

2015-12-15 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 12:46:12AM +0900, Namhyung Kim wrote: SNIP > > $ perf report -s > comm,sched:sched_switch.next_pid,sched:sched_switch.next_comm --stdio > ... > # Overhead Commandnext_pid next_comm > # ... .. >

[PATCH v4] perf: bpf: Fix build breakage due to libbpf

2015-12-15 Thread Wang Nan
From: "Naveen N. Rao" perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch. ^ Fix this by including tools/scripts/Makefile.arch for the prope

Re: [PATCH v3 3/3] perf: bpf: Fix build breakage due to libbpf

2015-12-15 Thread Wangnan (F)
This patch contains a problem. On 2015/12/15 11:35, Wang Nan wrote: From: "Naveen N. Rao" perf build is currently (v4.4-rc5) broken on powerpc: bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support your arch. # error __NR_bpf not defined. libbpf does not support your arch

Re: [PATCH 09/11] KVM: MMU: simplify mmu_need_write_protect

2015-12-15 Thread Kai Huang
On 12/15/2015 04:43 PM, Kai Huang wrote: On 12/01/2015 02:26 AM, Xiao Guangrong wrote: Now, all non-leaf shadow page are page tracked, if gfn is not tracked there is no non-leaf shadow page of gfn is existed, we can directly make the shadow page of gfn to unsync Signed-off-by: Xiao Guangron

Re: [RFCv6 PATCH 09/10] sched: deadline: use deadline bandwidth in scale_rt_capacity

2015-12-15 Thread Luca Abeni
On 12/15/2015 05:59 AM, Vincent Guittot wrote: [...] So I don't think this is right. AFAICT this projects the WCET as the amount of time actually used by DL. This will, under many circumstances, vastly overestimate the amount of time actually spend on it. Therefore unduly pessimisme the fair capa

Re: sched : performance regression 24% between 4.4rc4 and 4.3 kernel

2015-12-15 Thread Jirka Hladky
Hi Rik, I have reviewed the data and you are right. The trouble is that even with 4.3 kernel there is 20% change that results will be bad. I have repeated tests 100 times on 4.3 kernel over the night. In 20 cases I see that runtime went up from 12 seconds to 28 seconds due to the wrong NUMA placem

Re: [PATCH 09/11] KVM: MMU: simplify mmu_need_write_protect

2015-12-15 Thread Kai Huang
On 12/01/2015 02:26 AM, Xiao Guangrong wrote: Now, all non-leaf shadow page are page tracked, if gfn is not tracked there is no non-leaf shadow page of gfn is existed, we can directly make the shadow page of gfn to unsync Signed-off-by: Xiao Guangrong --- arch/x86/kvm/mmu.c | 26 ---

Re: [PATCH 1/2] mm/compaction: fix invalid free_pfn and compact_cached_free_pfn

2015-12-15 Thread Vlastimil Babka
On 12/14/2015 04:26 PM, Joonsoo Kim wrote: 2015-12-14 19:07 GMT+09:00 Vlastimil Babka : On 12/14/2015 06:02 AM, Joonsoo Kim wrote: Acked-by: Vlastimil Babka Note that until now in compaction we've used basically an open-coded round_down(), and ALIGN() for rounding up. You introduce a first

Re: [PATCH 1/7] mm: memcontrol: charge swap to cgroup2

2015-12-15 Thread Vladimir Davydov
On Tue, Dec 15, 2015 at 12:12:40PM +0900, Kamezawa Hiroyuki wrote: > On 2015/12/15 0:30, Michal Hocko wrote: > >On Thu 10-12-15 14:39:14, Vladimir Davydov wrote: > >>In the legacy hierarchy we charge memsw, which is dubious, because: > >> > >> - memsw.limit must be >= memory.limit, so it is imposs

Re: [PATCH v2 5/8] arm64: dts: mediatek: Add Video Encoder for MT8173

2015-12-15 Thread tiffany lin
Hi Matthias, On Mon, 2015-12-14 at 19:18 +0100, Matthias Brugger wrote: > On Friday 11 Dec 2015 17:55:40 Tiffany Lin wrote: > > Add video encoder node for MT8173 > > > > Signed-off-by: Tiffany Lin > > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 47 > > ++ 1 f

Re: [PATCH v2 4/8] dt-bindings: Add a binding for Mediatek Video Encoder

2015-12-15 Thread tiffany lin
Hi Matthias, On Mon, 2015-12-14 at 12:36 +0100, Matthias Brugger wrote: > > On 14/12/15 09:26, tiffany lin wrote: > > On Fri, 2015-12-11 at 11:29 -0600, Rob Herring wrote: > >> On Fri, Dec 11, 2015 at 05:55:39PM +0800, Tiffany Lin wrote: > >>> Add a DT binding documentation of Video Encoder for

Re: [PATCH v4 3/5] PCI: qcom: Add Qualcomm PCIe controller driver

2015-12-15 Thread Stanimir Varbanov
On 12/03/2015 03:35 PM, Stanimir Varbanov wrote: > From: Stanimir Varbanov > > The PCIe driver reuse the Designware common code for host > and MSI initialization, and also program the Qualcomm > application specific registers. > > Signed-off-by: Stanimir Varbanov > Signed-off-by: Stanimir Varba

Re: [PATCH 2/2] mm/compaction: speed up pageblock_pfn_to_page() when zone is contiguous

2015-12-15 Thread Vlastimil Babka
On 12/15/2015 02:06 AM, Aaron Lu wrote: On 12/14/2015 11:25 PM, Joonsoo Kim wrote: 2015-12-14 19:29 GMT+09:00 Vlastimil Babka : Unless I'm mistaken, these results also include my RFC series (Aaron can you clarify?). These patches should better be tested standalone on top of base, as being simpl

Re: [PATCHv2 1/2] ARM: multi_v7_defconfig: Enable Rockchip generic power domain.

2015-12-15 Thread Enric Balletbo Serra
Arght, I'm asleep, I need a coffee this now, there isn't patch 2/2, this patch is 1/1. Sorry for the noise. Enric 2015-12-15 9:20 GMT+01:00 Enric Balletbo i Serra : > In order to meet high performance an low power requirement for Rockchip > enable the power domain support. The patch also fixes a

[PATCHv2 1/2] ARM: multi_v7_defconfig: Enable Rockchip generic power domain.

2015-12-15 Thread Enric Balletbo i Serra
In order to meet high performance an low power requirement for Rockchip enable the power domain support. The patch also fixes a drm/kms issue, driver deferring untils power-domains are available) Signed-off-by: Enric Balletbo i Serra Reviewed-by: Heiko Stuebner --- Changes since last version:

[PATCH v2] perf test: Reset err after using it hold errcode in hist testcases

2015-12-15 Thread Wang Nan
All hists test cases forget to reset err after using it to hold an error code. If error occure in setup_fake_machine() it incorrectly return TEST_OK. This patch fixes it. Signed-off-by: Wang Nan Suggested-by: Namhyung Kim Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Na

Re: [PATCH 2/2] md: dm-crypt: Optimize the dm-crypt for XTS mode

2015-12-15 Thread Milan Broz
On 12/15/2015 03:56 AM, Baolin Wang wrote: >>> + /* >>> + * Here we need to check if it can be encrypted or decrypted with >>> + * bulk block, which means these encryption modes don't need IV or >>> + * just need one initial IV. For bulk mode, we can expand the >>> + * scatt

hidepid=2 and dumpability

2015-12-15 Thread Evgenii Shatokhin
(Sorry, forgot to CC LKML yesterday, resending.) Hi, Could you shed some light on the implementation of 'hidepid' option for procfs in the Linux kernel? As far as I can see, has_pid_permissions() eventually calls ptrace_may_access(task, PTRACE_MODE_READ). This way, if hidepid=2 is used, the

Re: [PATCH] perf record: Add record.build-id config option

2015-12-15 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 10:49:56AM +0900, Namhyung Kim wrote: > Post processing at perf record takes long time on big machines. What it > does is to find build-id of related binaries. Sometimes we just want to > skip the processing and get the result quickly. Add a new config option > to control

Re: [PATCH 06/11] KVM: MMU: let page fault handler be aware tracked page

2015-12-15 Thread Kai Huang
On 12/01/2015 02:26 AM, Xiao Guangrong wrote: The page fault caused by write access on the write tracked page can not be fixed, it always need to be emulated. page_fault_handle_page_track() is the fast path we introduce here to skip holding mmu-lock and shadow page table walking Why can it be o

Re: [PATCH] livepatch: fix race between enabled_store() and klp_unregister_patch()

2015-12-15 Thread Miroslav Benes
Hi, [ sry for late responses. Two weeks of holiday and trying to go through all the emails... ] On Mon, 30 Nov 2015, Li Bin wrote: > There is a potential race as following: > > CPU0 | CPU1 > -|--- > enabled_s

[PATCH 0/2] x86/mm: A _PAGE_NX fixlet and a kmap cleanup

2015-12-15 Thread Andy Lutomirski
The fixlet might help with some WX warnings. The kmap cleanup is just a cleanup. This is very lightly tested. Andy Lutomirski (2): x86_32/mm: Set NX in __supported_pte_mask before enabling paging x86/mm: Make kmap_prot into a #define arch/x86/include/asm/fixmap.h | 2 +- arch/x86/kernel/he

[PATCH] perf test: Fix the cmd string comparison in perf test 6

2015-12-15 Thread Kaixu Xia
The Sleep command is "sleep.coreutils" in Yocto project, so the command mmap filename is "sleep.coreutils" in perf test 6. Strncmp() can get the right result. Before: # perf test -v 6 6: Validate PERF_RECORD_* events & perf_sample fields : --- start --- test child forked, pid

[PATCH v2] perf test: Fix false TEST_OK result for 'perf test hist'

2015-12-15 Thread Wang Nan
Commit 71d6de64feddd4b45326fba2111b3006d9e0 ('perf test: Fix hist testcases when kptr_restrict is on') solves a double free problem when 'perf test hist' calling setup_fake_machine(). However, the result is still incorrect. For example: $ ./perf test -v 'filtering hist entries' 25: Test filt

Re: [PATCH 1/1] Support for CMedia CM6533 HID audio jack controls.

2015-12-15 Thread kbuild test robot
Hi Ben, [auto build test WARNING on hid/for-next] [also build test WARNING on v4.4-rc5 next-20151214] url: https://github.com/0day-ci/linux/commits/Ben-Chen/Support-for-CMedia-CM6533-HID-audio-jack-controls/20151215-153958 base: https://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git

[PATCH 2/2] x86/mm: Make kmap_prot into a #define

2015-12-15 Thread Andy Lutomirski
The value (once we initialize it) is a foregone conclusion. Make it a #define to save a tiny amount of text and data size and to make it more comprehensible. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/fixmap.h | 2 +- arch/x86/mm/init_32.c | 3 --- 2 files changed, 1 insert

[PATCH 1/2] x86_32/mm: Set NX in __supported_pte_mask before enabling paging

2015-12-15 Thread Andy Lutomirski
There's a short window in which very early mappings can end up with NX clear because they are created before we've noticed that we have NX. It turns out that we detect NX very early, so there's no need to defer __supported_pte_mask setup. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/head_

Re: [PATCH v3 0/3] perf build: PowerPC: Fix build breakage due to libbpf

2015-12-15 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 03:35:54AM +, Wang Nan wrote: > Hi Naveen, > >Now I know your problem is in native building and the reason is > missing proper $(ARCH). I think other than that there's another problem > in libbpf's building: if your problem is unable to compile libbpf, > feature che

Re: [PATCH 08/11] KVM: MMU: use page track for non-leaf shadow pages

2015-12-15 Thread Kai Huang
On 12/15/2015 03:52 PM, Kai Huang wrote: On 12/01/2015 02:26 AM, Xiao Guangrong wrote: non-leaf shadow pages are always write protected, it can be the user of page track Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/kvm_page_track.h | 8 + arch/x86/kvm/mmu.c

Re: [PATCH] perf tests: Fix false TEST_OK result for 'perf test hist'

2015-12-15 Thread Jiri Olsa
On Tue, Dec 15, 2015 at 04:18:44AM +, Wang Nan wrote: > Commit 71d6de64feddd4b45326fba2111b3006d9e0 ('perf test: Fix hist > testcases when kptr_restrict is on') solves a double free problem when > 'perf test hist' calling setup_fake_machine(). However, the result is > still incorrect. For e

Re: [PATCH 05/11] KVM: page track: introduce kvm_page_track_{add,remove}_page

2015-12-15 Thread Kai Huang
On 12/15/2015 03:15 PM, Kai Huang wrote: On 12/01/2015 02:26 AM, Xiao Guangrong wrote: These two functions are the user APIs: - kvm_page_track_add_page(): add the page to the tracking pool after that later specified access on that page will be tracked - kvm_page_track_remove_page(): remo

<    5   6   7   8   9   10