Re: [PATCH v3 4/7] PCI: Add a new option for resource_alignment to reassign alignment

2016-06-30 Thread Yongji Xie
Hi Gavin, On 2016/7/1 10:25, Gavin Shan wrote: On Thu, Jun 30, 2016 at 06:53:10PM +0800, Yongji Xie wrote: When using resource_alignment kernel parameter, the current implement reassigns the alignment by changing resources' size which can potentially break some drivers. For example, the driver

[tip:perf/core] perf tools: Change cpu_map__fprintf output

2016-06-30 Thread tip-bot for Jiri Olsa
Commit-ID: a24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7 Gitweb: http://git.kernel.org/tip/a24020e6b7cf6eb8b75d8bca6b89870b1cee6ba7 Author: Jiri Olsa AuthorDate: Tue, 28 Jun 2016 13:29:04 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:45 -0300 perf tools: Chang

[tip:perf/core] perf tests: Fix thread map test for -F option

2016-06-30 Thread tip-bot for Jiri Olsa
Commit-ID: 8fbc38aaaf542433ef195e5fae704c56d1c071e6 Gitweb: http://git.kernel.org/tip/8fbc38aaaf542433ef195e5fae704c56d1c071e6 Author: Jiri Olsa AuthorDate: Tue, 28 Jun 2016 13:29:03 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:44 -0300 perf tests: Fix t

[tip:perf/core] perf test: Add -F/--dont-fork option

2016-06-30 Thread tip-bot for Jiri Olsa
Commit-ID: 7fa9b8fba0b55edd1ff5b8ea696ec75fc5f6194c Gitweb: http://git.kernel.org/tip/7fa9b8fba0b55edd1ff5b8ea696ec75fc5f6194c Author: Jiri Olsa AuthorDate: Tue, 28 Jun 2016 13:29:01 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:45 -0300 perf test: Add -F

[tip:perf/core] perf tools: Allow to reset open files counter

2016-06-30 Thread tip-bot for Jiri Olsa
Commit-ID: f3069249e9e6b0ce303c3547dfa2960ee2e95b61 Gitweb: http://git.kernel.org/tip/f3069249e9e6b0ce303c3547dfa2960ee2e95b61 Author: Jiri Olsa AuthorDate: Tue, 28 Jun 2016 13:29:02 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:44 -0300 perf tools: Allow

[tip:perf/core] perf trace beauty eventfd: No need to include eventfd.h

2016-06-30 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 3be28870c05ad09dfff4dbefe71b02aba5dba569 Gitweb: http://git.kernel.org/tip/3be28870c05ad09dfff4dbefe71b02aba5dba569 Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 30 Jun 2016 12:00:58 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:43 -0300 pe

[tip:perf/core] perf trace beauty sched_policy: Define SCHED_RESET_ON_FORK for older systems

2016-06-30 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: a41af25b3c317331743dc53defaa3f2e03d255cb Gitweb: http://git.kernel.org/tip/a41af25b3c317331743dc53defaa3f2e03d255cb Author: Arnaldo Carvalho de Melo AuthorDate: Thu, 30 Jun 2016 11:57:33 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:43 -0300 pe

[tip:perf/core] perf evsel: Utility function to fetch arch

2016-06-30 Thread tip-bot for Ravi Bangoria
Commit-ID: f4e47f9f7b0bcbb1069b93bd719a1d34fb37d933 Gitweb: http://git.kernel.org/tip/f4e47f9f7b0bcbb1069b93bd719a1d34fb37d933 Author: Ravi Bangoria AuthorDate: Thu, 30 Jun 2016 11:44:19 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 08:37:32 -0300 perf evsel: U

[tip:perf/core] perf annotate: Add number of samples to the header

2016-06-30 Thread tip-bot for Peter Zijlstra (Intel)
Commit-ID: 135cce1bf12bd30d7d66360022f9dac6ea3a07cd Gitweb: http://git.kernel.org/tip/135cce1bf12bd30d7d66360022f9dac6ea3a07cd Author: Peter Zijlstra (Intel) AuthorDate: Thu, 30 Jun 2016 10:29:55 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 18:27:42 -0300 perf

[tip:perf/core] perf annotate: Simplify header dotted line sizing

2016-06-30 Thread tip-bot for Peter Zijlstra (Intel)
Commit-ID: 53dd9b5f95dda95bcadda1b4680be42dfe1f9e5e Gitweb: http://git.kernel.org/tip/53dd9b5f95dda95bcadda1b4680be42dfe1f9e5e Author: Peter Zijlstra (Intel) AuthorDate: Thu, 30 Jun 2016 09:17:26 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 30 Jun 2016 09:21:03 -0300 perf

[tip:perf/core] perf tools: Add documentation for perf.data on disk format

2016-06-30 Thread tip-bot for Andi Kleen
Commit-ID: d4897e1935552663030fe7681a53eccc58d6aebd Gitweb: http://git.kernel.org/tip/d4897e1935552663030fe7681a53eccc58d6aebd Author: Andi Kleen AuthorDate: Fri, 24 Jun 2016 13:41:25 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 29 Jun 2016 10:07:23 -0300 perf tools: Add

[tip:perf/core] tools lib bpf: Fix spelling mistake: "missmatch" -> "mismatch"

2016-06-30 Thread tip-bot for Colin Ian King
Commit-ID: de8a63bd5076761fad4e236c93350fdf297708be Gitweb: http://git.kernel.org/tip/de8a63bd5076761fad4e236c93350fdf297708be Author: Colin Ian King AuthorDate: Tue, 28 Jun 2016 13:23:37 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 29 Jun 2016 10:07:34 -0300 tools lib bp

Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-30 Thread Ondřej Jirman
On 1.7.2016 07:37, Jean-Francois Moine wrote: > On Fri, 1 Jul 2016 02:50:57 +0200 > Ondřej Jirman wrote: > >>> Since this is really specific, I guess you could simply make the >>> clk_ops for the nkmp clocks public, and just re-implement set_rate >>> using that logic. >> >> I would argue that thi

Re: [GIT PULL 00/11] perf/core improvements and fixes

2016-06-30 Thread Ingo Molnar
pub/scm/linux/kernel/git/acme/linux into perf/core > (2016-06-29 11:34:41 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-20160630 > > for you to fetch changes up to a24

[PATCH 4/8] mm/zsmalloc: use class->objs_per_zspage to get num of max objects

2016-06-30 Thread Ganesh Mahendran
num of max objects in zspage is stored in each size_class now. So there is no need to re-calculate it. Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 5c96ed1..50283b1 10

Re: [PATCH v14 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-06-30 Thread Olaf Hering
On Thu, Jun 30, Olaf Hering wrote: > On Thu, Jun 30, Dexuan Cui wrote: > > > -#define AF_MAX 43 /* For now.. */ > > +#define AF_MAX 44 /* For now.. */ > > Should this patch also change the places where AF_MAX is used, > like all the arrays in net/core/sock.c? A

[PATCH 5/8] mm/zsmalloc: avoid calculate max objects of zspage twice

2016-06-30 Thread Ganesh Mahendran
Currently, if a class can not be merged, the max objects of zspage in that class may be calculated twice. This patch calculate max objects of zspage at the begin, and pass the value to can_merge() to decide whether the class can be merged. Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 21

[PATCH 8/8] mm/zsmalloc: use helper to clear page->flags bit

2016-06-30 Thread Ganesh Mahendran
user ClearPagePrivate/ClearPagePrivate2 helper to clear PG_private/PG_private_2 in page->flags Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 1c7460b..356db9a 100644 --- a/mm/zsmalloc.c

[PATCH 6/8] mm/zsmalloc: keep comments consistent with code

2016-06-30 Thread Ganesh Mahendran
some minor change of comments: 1). update zs_malloc(),zs_create_pool() function header 2). update "Usage of struct page fields" Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 2690914

[PATCH 7/8] mm/zsmalloc: add __init,__exit attribute

2016-06-30 Thread Ganesh Mahendran
Add __init,__exit attribute for function that is only called in module init/exit Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 6fc631a..1c7460b 100644 --- a/mm/zsmalloc.c +++ b/mm/zs

[PATCH 3/8] mm/zsmalloc: take obj index back from find_alloced_obj

2016-06-30 Thread Ganesh Mahendran
the obj index value should be updated after return from find_alloced_obj() Signed-off-by: Ganesh Mahendran --- mm/zsmalloc.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 405baa5..5c96ed1 100644 --- a/mm/zsmalloc.c +++ b/mm/

[PATCH 2/8] mm/zsmalloc: add per class compact trace event

2016-06-30 Thread Ganesh Mahendran
add per class compact trace event. It will show how many zs pages isolated, how many zs pages reclaimed. <...>-627 [002] 192.641122: zs_compact_start: pool zram0 <...>-627 [002] 192.641166: zs_compact_class: class 254: 0 zspage isolated, 0 reclaimed <...>-627 [002]

[PATCH 1/8] mm/zsmalloc: modify zs compact trace interface

2016-06-30 Thread Ganesh Mahendran
1. change trace_zsmalloc_compact_* to trace_zs_compact_* to keep consistent with other definition in zsmalloc module. 2. remove pages_total_compacted information in trace_zs_compact_end(), since this is not very userfull for per zs_compact. Signed-off-by: Ganesh Mahendran --- include/trace/even

Re: [PATCH v3 2/7] PCI: Ignore enforced alignment to VF BARs

2016-06-30 Thread Yongji Xie
Hi Gavin, On 2016/7/1 14:05, Gavin Shan wrote: On Fri, Jul 01, 2016 at 01:27:17PM +0800, Yongji Xie wrote: On Thu, Jun 30, 2016 at 06:53:08PM +0800, Yongji Xie wrote: VF BARs are read-only zeroes according to SRIOV spec, the normal way(writing BARs) of allocating resources wouldn't be applied

Re: [PATCH] doc: flat-table directive

2016-06-30 Thread Markus Heiser
Am 30.06.2016 um 21:05 schrieb Jonathan Corbet : > On Thu, 30 Jun 2016 14:00:21 +0200 > Markus Heiser wrote: > >> this is my flat-table patch on top of your docs-next branch / we discussed on >> the ML > > Hmm... we don't have an official kernel coding style for Python, but if > we did, I'd s

I want to deal with you personally

2016-06-30 Thread Bun Sam
Good day, I work with one of the major banks in Cambodia as the director of audit. I have a proposal for you, a very urgent and quick business that will be completed in 5 working days. I have just discovered documents relating to funds belonging to a deceased client of our bank, I went throug

Re: [RESEND PATCH 2/3] bcache: update document info

2016-06-30 Thread wangyijing
在 2016/7/1 12:21, Coly Li 写道: > 在 16/7/1 上午9:51, wangyijing 写道: >> Hi Coly, thanks to your review and comments. >> >> Commit 77b5a08427e875 ("bcache: don't embed 'return' statements in closure >> macros") >> remove the return in continue_at(), so I think we should update the document >> info >>

Re: [PATCH 5/5] perf tools: Transform nodes string info to struct

2016-06-30 Thread Jiri Olsa
On Thu, Jun 30, 2016 at 06:20:09PM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > > > +struct numa_node { > > + u32 node; > > + u64 mem_total; > > + u64 mem_free; > > + struct cpu_map *map; > > +}; > > + > > struct perf_env { > > char

[RFC PATCH 1/2] net: ethernet: xilinx: Add gmii2rgmii converter support

2016-06-30 Thread Kedareswara rao Appana
This patch adds support for gmii2rgmii converter. The GMII to RGMII IP core provides the Reduced Gigabit Media Independent Interface (RGMII) between Ethernet physical media Devices and the Gigabit Ethernet controller. This core can switch dynamically between the three different speed modes of Oper

[RFC PATCH 2/2] net: macb: Add gmii2rgmii phy converter support

2016-06-30 Thread Kedareswara rao Appana
This patch adds support for gmii2rgmii phy converter in the macb driver. Signed-off-by: Kedareswara rao Appana --- drivers/net/ethernet/cadence/macb.c | 21 - drivers/net/ethernet/cadence/macb.h |3 +++ 2 files changed, 23 insertions(+), 1 deletions(-) diff --git a/dri

Re: [RESEND PATCH 1/3] bcache: Remove redundant parameter for cache_alloc()

2016-06-30 Thread wangyijing
在 2016/7/1 12:24, Coly Li 写道: > 在 16/7/1 上午10:09, wangyijing 写道: >> >> >> 在 2016/6/29 18:20, Coly Li 写道: >>> 在 16/6/22 上午10:10, Yijing Wang 写道: Cache_sb is not used in cache_alloc, and we have copied sb info to cache->sb already, remove it. Signed-off-by: Yijing Wang ---

[RFC PATCH 0/2] net: ethernet: Add support for gmii2rgmii converter

2016-06-30 Thread Kedareswara rao Appana
This patch series does the following ---> Add support for gmii2rgmii converter. ---> Add support for gmii2rgmii converter in the macb driver. Earlier sent one RFC patch https://patchwork.kernel.org/patch/9186615/ which includes converter related stuff also in macb driver. This patch series fixes

linux-next: Tree for Jul 1

2016-06-30 Thread Stephen Rothwell
Hi all, Changes since 20160630: New tree: freevxfs The powerpc tree gained a build failure for which I applied a fix patch. The pci tree gained a conflict against the tegra tree. The lightnvm tree still had its build failure so I used the version from next-20160629. The akpm-current tree

Re: [PATCH net-next V4 0/6] switch to use tx skb array in tun

2016-06-30 Thread Jason Wang
On 2016年06月30日 23:45, Michael S. Tsirkin wrote: On Thu, Jun 30, 2016 at 02:45:30PM +0800, Jason Wang wrote: >Hi all: > >This series tries to switch to use skb array in tun. This is used to >eliminate the spinlock contention between producer and consumer. The >conversion was straightforward: ju

[PATCH v15 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-06-30 Thread Baolin Wang
Currently the Linux kernel does not provide any standard integration of this feature that integrates the USB subsystem with the system power regulation provided by PMICs meaning that either vendors must add this in their kernels or USB gadget devices based on Linux (such as mobile phones) may not b

Re: [PATCH 2/2] f2fs: fix to avoid data update racing between GC and DIO

2016-06-30 Thread Chao Yu
Hi Jaegeuk, On 2016/7/1 8:03, Jaegeuk Kim wrote: > Hi Chao, > > On Thu, Jun 30, 2016 at 04:42:48PM +0800, Chao Yu wrote: >> Datas in file can be operated by GC and DIO simultaneously, so we will >> face race case as below: >> >> For write case: >> Thread A Thread B >>

[PATCH v15 4/4] power: wm831x_power: Support USB charger current limit management

2016-06-30 Thread Baolin Wang
Integrate with the newly added USB charger interface to limit the current we draw from the USB input based on the input device configuration identified by the USB stack, allowing us to charge more quickly from high current inputs without drawing more current than specified from others. Signed-off-

[PATCH v15 2/4] usb: gadget: Support for the usb charger framework

2016-06-30 Thread Baolin Wang
For supporting the usb charger, it adds the usb_charger_init() and usb_charger_exit() functions for usb charger initialization and exit. It will report to the usb charger when the gadget state is changed, then the usb charger can do the power things. Signed-off-by: Baolin Wang Reviewed-by: Li Ju

[PATCH v15 3/4] usb: gadget: Integrate with the usb gadget supporting for usb charger

2016-06-30 Thread Baolin Wang
When the usb gadget supporting for usb charger is ready, the usb charger can implement the usb_charger_plug_by_gadget() function, usb_charger_exit() function and dev_to_uchger() function by getting 'struct usb_charger' from 'struct gadget'. Signed-off-by: Baolin Wang Reviewed-by: Li Jun Tested-b

[PATCH v15 1/4] usb: gadget: Introduce the usb charger framework

2016-06-30 Thread Baolin Wang
This patch introduces the usb charger driver based on usb gadget that makes an enhancement to a power driver. It works well in practice but that requires a system with suitable hardware. The basic conception of the usb charger is that, when one usb charger is added or removed by reporting from the

Re: [PATCH v3 2/7] PCI: Ignore enforced alignment to VF BARs

2016-06-30 Thread Gavin Shan
On Fri, Jul 01, 2016 at 01:27:17PM +0800, Yongji Xie wrote: >>On Thu, Jun 30, 2016 at 06:53:08PM +0800, Yongji Xie wrote: >>>VF BARs are read-only zeroes according to SRIOV spec, >>>the normal way(writing BARs) of allocating resources wouldn't >>>be applied to VFs. The VFs' resources would be alloc

[PATCH] Crypto:Add HMAC-SHA3 test modes and test vectors

2016-06-30 Thread Raveendra Padasalagi
This patch adds HMAC-SHA3 test modes in tcrypt module and related test vectors. Signed-off-by: Raveendra Padasalagi --- crypto/tcrypt.c | 16 +++ crypto/testmgr.c | 40 ++ crypto/testmgr.h | 388 +++ 3 files changed, 444 insertions(+) d

Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs

2016-06-30 Thread Linus Torvalds
On Thu, Jun 30, 2016 at 9:39 PM, Dave Hansen wrote: > > I think what you suggest will work if we don't consider A/D in > pte_none(). I think there are a bunch of code path where assume that > !pte_present() && !pte_none() means swap. Yeah, we would need to change pte_none() to mask off D/A, but

Re: [PATCH v2 06/14] ARM: sun8i: clk: Add clk-factor rate application method

2016-06-30 Thread Jean-Francois Moine
On Fri, 1 Jul 2016 02:50:57 +0200 Ondřej Jirman wrote: > > Since this is really specific, I guess you could simply make the > > clk_ops for the nkmp clocks public, and just re-implement set_rate > > using that logic. > > I would argue that this may be necessary for other PLL clocks too, if > you

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

2016-06-30 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: fs/ext4/fsync.c between commit: 78d962510796 ("ext4: respect the nobarrier mount option in nojournal mode") from the ext4 tree and commit: 045d9e206ac0 ("fs/ext4/fsync.c: generic_file_fsync call based on bar

Re: [PATCH v3 2/7] PCI: Ignore enforced alignment to VF BARs

2016-06-30 Thread Yongji Xie
Hi Gavin, On 2016/7/1 8:39, Gavin Shan wrote: On Thu, Jun 30, 2016 at 06:53:08PM +0800, Yongji Xie wrote: VF BARs are read-only zeroes according to SRIOV spec, the normal way(writing BARs) of allocating resources wouldn't be applied to VFs. The VFs' resources would be allocated when we enable

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

2016-06-30 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/kernel/fadump.c: In function 'fadump_invalidate_dump': arch/powerpc/kernel/fadump.c:1014:2: error: expected ';' before '}' token } ^ Caused by commit 4a03749f140c ("power

Re: [PATCH v2] notifier: Fix soft lockup for notifier_call_chain().

2016-06-30 Thread Eric Dumazet
On Fri, 2016-07-01 at 11:06 +0800, Ding Tianhong wrote: > I debug this problem, and found that the __fib6_clean_all() would not > hold the cpu more than 1 second event though there > is a lot of ipv6 address to deal with, but the notifier_chian would > call the ipv6 notifier several times and hold

[PATCH 3/4] perf tool: Fix build when sysconf doesn't support cache line size

2016-06-30 Thread Chris Phlipot
Enable perf to build on libc implementations where sysconf() doesn't support _SC_LEVEL1_DCACHE_LINESIZE as a parameter. For example, the Bionic implementation does not support this as a paremter. Older versions of Bionic will throw an error when this is passed in as a parameter, and more recent ve

[PATCH 1/4] tools lib api: Respect WERROR=0 for build

2016-06-30 Thread Chris Phlipot
This enables the workaround for compilers that generate warnings when compiling libapi. Signed-off-by: Chris Phlipot --- tools/lib/api/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile index 67ff93e..c7ceea6 100644

[PATCH 2/4] tools lib subcmd: Respect WERROR=0 for build

2016-06-30 Thread Chris Phlipot
this enables the workaround for compilers that generate warnings when compiling libsubcmd. Signed-off-by: Chris Phlipot --- tools/lib/subcmd/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/lib/subcmd/Makefile b/tools/lib/subcmd/Makefile index a810370..ce

[PATCH 0/4] perf tool: Fix Android build

2016-06-30 Thread Chris Phlipot
It looks like the tools/perf/Documentation/android.txt hasn't been updated in a while. Following the instructions in this document to cross-compile perf for Android results in several build errors. This patch-set aims to fix/workaround the incompatibilities introduced since the android perf build

[PATCH 4/4] perf tool: Update android build documentation

2016-06-30 Thread Chris Phlipot
Update the android build documentation according to recent android build fixes. The instructions for step 1a and step 2 were updated to work with NDK version 11(oldest supported version) and NDK version 12(current version). Signed-off-by: Chris Phlipot --- tools/perf/Documentation/android.txt |

[RFC] arm64: kexec_file_load support

2016-06-30 Thread AKASHI Takahiro
Hi, I'm not sure whether there is any demand for kexec_file_load support on arm64, but anyhow I'm working on this and now my early prototype code does work fine. There is, however, one essential issue: While arm64 kernel requires a device tree blob to be set up correctly at boot time, the current

[GIT PULL] Delete CURRENT_TIME_SEC and replace current_fs_time()

2016-06-30 Thread Deepa Dinamani
Hi Al, Please pull the most recent version of the patch series [PATCH v3 00/24] Delete CURRENT_TIME_SEC and replace current_fs_time() https://lkml.org/lkml/2016/6/29/648 This is rebased onto v4.7-rc5. These patches are in preparation to transition vfs timestamps to use timespec6

Re: [PATCH v3 1/7] PCI: Ignore enforced alignment when kernel uses existing firmware setup

2016-06-30 Thread Yongji Xie
Hi Gavin, On 2016/7/1 8:28, Gavin Shan wrote: On Thu, Jun 30, 2016 at 06:53:07PM +0800, Yongji Xie wrote: PCI resources allocator will use firmware setup and not try to reassign resource when PCI_PROBE_ONLY or IORESOURCE_PCI_FIXED is set. The enforced alignment in pci_reassigndev_resource_ali

Re: [LKP] [x86/KASLR] ed9f007ee6: -- System halted

2016-06-30 Thread Baoquan He
On 07/01/16 at 12:06pm, Baoquan He wrote: > On 06/30/16 at 05:24pm, Yinghai Lu wrote: > > On Wed, Jun 29, 2016 at 11:58 PM, Ye Xiaolong wrote: > > > On Wed, Jun 29, 2016 at 09:49:12PM -0700, Yinghai Lu wrote: > > >>On Wed, Jun 29, 2016 at 1:29 PM, Huang, Ying wrote: > > >>> If you could provide a

Re: [PATCH 4/4] spi: Document option to insert delay between transactions

2016-06-30 Thread Doug Anderson
Hi, On Thu, Jun 30, 2016 at 12:12 AM, Geert Uytterhoeven wrote: > CC devicetree > > On Thu, Jun 30, 2016 at 5:54 AM, wrote: >> From: Andrey Pronin >> >> Some devices may need CS to be deasserted for some time >> between transactions. Added a new capability to guarantee >> a delay between SPI t

Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs

2016-06-30 Thread Dave Hansen
On 06/30/2016 07:55 PM, Linus Torvalds wrote: > On Thu, Jun 30, 2016 at 5:12 PM, Dave Hansen wrote: >> From: Dave Hansen >> The Intel(R) Xeon Phi(TM) Processor x200 Family (codename: Knights >> Landing) has an erratum where a processor thread setting the Accessed >> or Dirty bits may not do so at

Re: [PATCH 3/4] spi: Add option to insert delay between transactions

2016-06-30 Thread Doug Anderson
Hi, On Wed, Jun 29, 2016 at 8:54 PM, wrote: > From: Andrey Pronin > > Some devices may need CS to be deasserted for some time > between transactions. Added a new capability to guarantee > a delay between SPI transactions for the device. > > Signed-off-by: Andrey Pronin > --- > drivers/spi/spi

Re: [RESEND PATCH 2/3] bcache: update document info

2016-06-30 Thread Coly Li
在 16/7/1 上午9:51, wangyijing 写道: > Hi Coly, thanks to your review and comments. > > Commit 77b5a08427e875 ("bcache: don't embed 'return' statements in closure > macros") > remove the return in continue_at(), so I think we should update the document > info > about continue_at(). > > Thanks! > Yij

[PATCH v2] arm64: dts: rockchip: add the power domain node for rk3399

2016-06-30 Thread Caesar Wang
From: Elaine Zhang In order to meet low power requirements, a power management unit (PMU) is designed for controlling power resources in RK3399. The RK3399 PMU is dedicated for managing the power of the whole chip. 1. add pd node for RK3399 Soc 2. create power domain tree 3. add qos node for dom

RE: [PATCH 3/6] ACPICA: make use of new strtolower() function

2016-06-30 Thread Moore, Robert
> -Original Message- > From: Markus Mayer [mailto:markus.ma...@broadcom.com] > Sent: Thursday, June 30, 2016 9:13 PM > To: Moore, Robert > Cc: Zheng, Lv; Wysocki, Rafael J; Len Brown; linux-a...@vger.kernel.org; > de...@acpica.org; linux-kernel@vger.kernel.org; Box, David E > Subject: Re:

Re: [PATCH 2/4] spi: Document option to wake a device by toggling CS

2016-06-30 Thread Doug Anderson
Hi, On Thu, Jun 30, 2016 at 12:12 AM, Geert Uytterhoeven wrote: > CC devicetree And Rob and Mark... ./scripts/get_maintainer.pl -f Documentation/devicetree/bindings/spi/spi-bus.txt Mark Brown (maintainer:SPI SUBSYSTEM) Rob Herring (maintainer:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

Re: [PATCH 1/4] spi: Add option to wake a device by toggling CS

2016-06-30 Thread Doug Anderson
Andrey, On Wed, Jun 29, 2016 at 8:54 PM, wrote: > From: Andrey Pronin > > Some SPI devices may go to sleep after a period of inactivity > on SPI. For such devices, if enough time has passed since the > last SPI transaction, toggle CS and wait for the device to > start before communicating with

Re: [QUESTION] Is there a better way to get ftrace dump on guest?

2016-06-30 Thread Namhyung Kim
On Wed, Jun 29, 2016 at 09:52:31AM +0900, Namhyung Kim wrote: > Hi Steve, > > On Tue, Jun 28, 2016 at 09:57:27AM -0400, Steven Rostedt wrote: > > On Tue, 28 Jun 2016 15:33:18 +0900 > > Namhyung Kim wrote: > > > > > Send again to correct addresses, sorry! > > > > > > On Tue, Jun 28, 2016 at 3:25

Re: [RESEND PATCH 1/3] bcache: Remove redundant parameter for cache_alloc()

2016-06-30 Thread Coly Li
在 16/7/1 上午10:09, wangyijing 写道: > > > 在 2016/6/29 18:20, Coly Li 写道: >> 在 16/6/22 上午10:10, Yijing Wang 写道: >>> Cache_sb is not used in cache_alloc, and we have copied >>> sb info to cache->sb already, remove it. >>> >>> Signed-off-by: Yijing Wang >>> --- >>> drivers/md/bcache/super.c |4 ++

[PATCH] lockdep: Add a document describing crossrelease feature

2016-06-30 Thread Byungchul Park
Crossrelease feature introduces new concept and data structure. Thus a document helping understand it is necessary. So added it. Signed-off-by: Byungchul Park --- Documentation/locking/crossrelease.txt | 276 + 1 file changed, 276 insertions(+) create mode 100644

Re: [PATCH 3/6] ACPICA: make use of new strtolower() function

2016-06-30 Thread Markus Mayer
On 30 June 2016 at 19:59, Moore, Robert wrote: > This is linux-specific code, ACPICA is os-independent. So we cannot accept > such patch. Understood. I wasn't aware that this was shared code. > From: Markus Mayer [mailto:markus.ma...@broadcom.com] > Sent: Thursday, June 30, 2016 7:50 PM > To: Mo

Re: [LKP] [x86/KASLR] ed9f007ee6: -- System halted

2016-06-30 Thread Baoquan He
On 06/30/16 at 05:24pm, Yinghai Lu wrote: > On Wed, Jun 29, 2016 at 11:58 PM, Ye Xiaolong wrote: > > On Wed, Jun 29, 2016 at 09:49:12PM -0700, Yinghai Lu wrote: > >>On Wed, Jun 29, 2016 at 1:29 PM, Huang, Ying wrote: > >>> If you could provide a git branch for that, that will be easier for us > >

Re: [QUESTION] Is there a better way to get ftrace dump on guest?

2016-06-30 Thread Namhyung Kim
Hi Steve, On Tue, Jun 28, 2016 at 09:26:52PM -0400, Steven Rostedt wrote: > On Wed, 29 Jun 2016 09:57:41 +0900 > Minchan Kim wrote: > > > Hello, > > > > On Tue, Jun 28, 2016 at 06:46:34PM +0200, Rabin Vincent wrote: > > > On Tue, Jun 28, 2016 at 03:33:18PM +0900, Namhyung Kim wrote: > > > > O

[PATCH] [linux-next] Doc: x86: Fix typo in x86

2016-06-30 Thread Masanari Iida
This patch fix some spelling typo found in Documentation/x86. Signed-off-by: Masanari Iida --- Documentation/x86/intel_mpx.txt | 6 +++--- Documentation/x86/tlb.txt | 4 ++-- Documentation/x86/x86_64/machinecheck | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --

Re: [PATCH v3 4/7] PCI: Add a new option for resource_alignment to reassign alignment

2016-06-30 Thread Gavin Shan
On Thu, Jun 30, 2016 at 06:53:10PM +0800, Yongji Xie wrote: >When using resource_alignment kernel parameter, the current >implement reassigns the alignment by changing resources' size >which can potentially break some drivers. For example, the driver >uses the size to locate some register whose len

[PATCH] sched: Assign !p->on_cpu to the second parameter of smp_cond_load_acquire()

2016-06-30 Thread T.Zhou
The second parameter of smp_cond_load_acquire() should be !p->on_cpu cause remote wakeup need to ensure that: if the task is running on prev cpu, it should be descheduled before doing the actual wakeup. Signed-off-by: T.Zhou --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH 12/21] usb: chipidea: msm: Keep device runtime enabled

2016-06-30 Thread Peter Chen
On Thu, Jun 30, 2016 at 01:30:54PM -0700, Stephen Boyd wrote: > Quoting Peter Chen (2016-06-29 18:39:01) > > On Wed, Jun 29, 2016 at 05:43:30PM -0700, Stephen Boyd wrote: > > > Quoting Peter Chen (2016-06-28 23:46:00) > > > > On Sun, Jun 26, 2016 at 12:28:29AM -0700, Stephen Boyd wrote: > > > > > S

[PATCH v2] PM / suspend: show workqueue state in suspend flow

2016-06-30 Thread Roger Lu
If freezable workqueue aborts suspend flow, show workqueue state for debug purpose. Signed-off-by: Roger Lu --- Changes in v2: - remove prints in show_workqueue_state(). --- kernel/power/process.c | 3 +++ kernel/workqueue.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --

Re: [PATCH] dmaengine: bcm2835: fix 64-bit warning

2016-06-30 Thread Vinod Koul
On Thu, Jun 30, 2016 at 02:47:10PM +0200, Arnd Bergmann wrote: > When building this driver on arm64, we get a harmless type > mismatch warning: > > drivers/dma/bcm2835-dma.c: In function 'bcm2835_dma_fill_cb_chain_with_sg': > include/linux/kernel.h:743:17: warning: comparison of distinct pointer t

Re: [PATCH v2] notifier: Fix soft lockup for notifier_call_chain().

2016-06-30 Thread Ding Tianhong
On 2016/6/28 14:27, Eric Dumazet wrote: > On Tue, 2016-06-28 at 08:22 +0200, Eric Dumazet wrote: > >> Follow the stack trace and add another cond_resched() where it is needed >> then ? >> >> Lot of this code was written decade ago where nobody expected a root >> user was going to try hard to crash

Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs

2016-06-30 Thread Brian Gerst
On Thu, Jun 30, 2016 at 10:55 PM, Linus Torvalds wrote: > On Thu, Jun 30, 2016 at 5:12 PM, Dave Hansen wrote: >> >> From: Dave Hansen >> >> The Intel(R) Xeon Phi(TM) Processor x200 Family (codename: Knights >> Landing) has an erratum where a processor thread setting the Accessed >> or Dirty bits

Re: [PATCH 6/7] dt-bindings: net: bgmac: add bindings documentation for bgmac

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 06:59:13PM -0400, Jon Mason wrote: > Signed-off-by: Jon Mason > --- > .../devicetree/bindings/net/brcm,bgmac-nsp.txt | 24 > ++ > 1 file changed, 24 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/brcm,bgmac-nsp.txt > > d

Re: [PATCH 6/6] x86: Fix stray A/D bit setting into non-present PTEs

2016-06-30 Thread Linus Torvalds
On Thu, Jun 30, 2016 at 5:12 PM, Dave Hansen wrote: > > From: Dave Hansen > > The Intel(R) Xeon Phi(TM) Processor x200 Family (codename: Knights > Landing) has an erratum where a processor thread setting the Accessed > or Dirty bits may not do so atomically against its checks for the > Present bi

Re: [PATCH v5 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 07:12:55PM +0800, William Wu wrote: > Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, > which specifies whether disable delay PHY power change > from P0 to P1/P2/P3 when link state changing from U0 > to U1/U2/U3 respectively. > > Signed-off-by: William Wu > --- > C

Re: [PATCH v5 4/5] usb: dwc3: add dis_del_phy_power_chg_quirk[Involving remittance information, please pay attention to the safety of property]

2016-06-30 Thread William Wu
Dear Rob, On 07/01/2016 10:38 AM, Rob Herring wrote: On Thu, Jun 30, 2016 at 07:12:55PM +0800, William Wu wrote: Add a quirk to clear the GUSB3PIPECTL.DELAYP1TRANS bit, which specifies whether disable delay PHY power change from P0 to P1/P2/P3 when link state changing from U0 to U1/U2/U3 respec

Re: [PATCH v2 3/3] dt-bindings: Add Renesas R-Car FDP1 bindings

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 05:50:30PM +0100, Kieran Bingham wrote: > The FDP1 is a de-interlacing module which converts interlaced video to > progressive video. It is also capable of performing pixel format conversion > between YCbCr/YUV formats and RGB formats. > > Reviewed-by: Laurent Pinchart > S

Re: [PATCH v2 2/3] dt-bindings: Document Renesas R-Car FCP power-domains usage

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 05:50:29PM +0100, Kieran Bingham wrote: > The power domain must be specified to bring the device out of module > standby. Document this in the bindings provided, so that new additions > are not missed. > > Signed-off-by: Kieran Bingham > --- > Documentation/devicetree/bin

Re: [PATCH v5 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk[Involving remittance information, please pay attention to the safety of property]

2016-06-30 Thread William Wu
Dear Rob, On 07/01/2016 10:32 AM, Rob Herring wrote: On Thu, Jun 30, 2016 at 07:12:53PM +0800, William Wu wrote: Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, which specifies whether the USB2.0 PHY provides a free-running PHY clock, which is active when the clock control input is

Re: [alsa-devel] [PATCH v5 7/9] ASoC: bt-sco: extend rate and add a general compatible string

2016-06-30 Thread Garlic Tseng
On Thu, 2016-06-30 at 20:55 +0800, Garlic Tseng wrote: > On Wed, 2016-06-29 at 20:15 +0100, Mark Brown wrote: > > On Fri, Jun 17, 2016 at 03:43:58PM +0800, Garlic Tseng wrote: > > > Add supports for 16k (wideband BT) and add a general compatible > > > string "linux,bt-sco" > > > > This will claim

Re: [PATCH v4 1/7] mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 11:58:45PM +0800, Chen-Yu Tsai wrote: > Signed-off-by: Chen-Yu Tsai > --- > Changes since v3: > > - Fixed device node names and added labels. > - Added clock output from codec and input to rtc. > > Changes since v2: > > - Fix interrupt line for ac100_codec in provi

Re: block: GPF in get_task_ioprio

2016-06-30 Thread Omar Sandoval
On Thu, Jun 30, 2016 at 10:50:44AM +0200, Dmitry Vyukov wrote: > Hello, > > The following program triggers GPF in get_task_ioprio if run in a parallel > loop: Dmitry, Could you please try the below? diff --git a/block/ioprio.c b/block/ioprio.c index cc7800e9eb44..01b8116298a1 100644 --- a/bloc

Re: [QUEUED v20160630 3/4] intel_th: gth: Fix a source comment

2016-06-30 Thread Chunyan Zhang
On Thu, Jun 30, 2016 at 8:56 PM, Alexander Shishkin wrote: > There's a kerneldoc comment that'd been derived from another one by way > of copying-and-pasting but hadn't been subsequently amended to replect ^ s/replect/reflect/ ? > the purpose of the funct

Re: [PATCH v5 3/5] usb: dwc3: add phyif_utmi_quirk

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 07:12:54PM +0800, William Wu wrote: > Add a quirk to configure the core to support the > UTMI+ PHY with an 8- or 16-bit interface. UTMI+ PHY > interface is hardware property, and it's platform > dependent. Normall, the PHYIf can be configured > during coreconsultant. But for

Re: [PATCH v3 5/7] PCI: Do not use IORESOURCE_STARTALIGN to identify bridge resources

2016-06-30 Thread Gavin Shan
On Thu, Jun 30, 2016 at 06:53:11PM +0800, Yongji Xie wrote: >Now we use the IORESOURCE_STARTALIGN to identify bridge resources >in __assign_resources_sorted(). That's quite fragile. We may also >set flag IORESOURCE_STARTALIGN for SR-IOV resources in some cases, >for example, using the option "nores

Re: [PATCH v5 2/5] usb: dwc3: add dis_u2_freeclk_exists_quirk

2016-06-30 Thread Rob Herring
On Thu, Jun 30, 2016 at 07:12:53PM +0800, William Wu wrote: > Add a quirk to clear the GUSB2PHYCFG.U2_FREECLK_EXISTS bit, > which specifies whether the USB2.0 PHY provides a free-running > PHY clock, which is active when the clock control input is active. > > Signed-off-by: William Wu > --- > Cha

[PATCH v12 2/8] perf evlist: Introduce aux evlist

2016-06-30 Thread Wang Nan
An auxiliary evlist is created by perf_evlist__new_aux() using an existing evlist as its parent. An auxiliary evlist can have its own 'struct perf_mmap', but can't have any other data. User should use its parent instead when accessing other data. Auxiliary evlists are containers of 'struct perf_mm

[PATCH v12 7/8] perf tools: Don't warn about out of order event if write_backward is used

2016-06-30 Thread Wang Nan
If write_backward attribute is set, records are written into kernel ring buffer from end to beginning, but read from beginning to end. To avoid 'XX out of order events recorded' warning message (timestamps of records is in reverse order when using write_backward), suppress the warning message if wr

[PATCH v12 3/8] perf tests: Add testcase for auxiliary evlist

2016-06-30 Thread Wang Nan
Improve test backward-ring-buffer, trace both enter and exit event of prctl() syscall, utilize auxiliary evlist to mmap enter and exit event into separated mmaps. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Cc: Zefan Li Cc: Nilay V

[PATCH v12 6/8] perf tools: Enable overwrite settings

2016-06-30 Thread Wang Nan
This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite. # perf record --event cycles/overwrite/ ... # perf record --event cycles/no-overwrite/ ... Add missing config terms a

[PATCH v12 8/8] perf tools: Add --tail-synthesize option

2016-06-30 Thread Wang Nan
When working with overwritable ring buffer there's a inconvenience problem: if perf dumps data after a long period after it starts, non-sample events may lost, which makes following 'perf report' unable to identify proc name and mmap layout. For example: # perf record -m 4 -e raw_syscalls:* -g --

[PATCH v12 1/8] perf tests: Skip backward ring buffer on old kernel

2016-06-30 Thread Wang Nan
From: Arnaldo Carvalho de Melo 'perf test backward' FAILED on old kernel: [root@jouet ~]# perf test -v backward 45: Test backward reading from ring buffer : --- start --- mmap size 1052672B Unexpected counter: sample_count=0, comm_count=0 end Test backward re

[PATCH v12 4/8] perf record: Introduce rec->overwrite_evlist for overwritable events

2016-06-30 Thread Wang Nan
Create an auxiliary evlist for overwritable events. Before mmap, build this evlist and set 'overwrite' and 'backward' attribute. Since perf_evlist__mmap_ex() only maps events when evsel->overwrite matches evlist's corresponding attributes, with these two evlists an event goes to either rec->evlist

  1   2   3   4   5   6   7   8   9   >