Re: [PATCHv2 0/3] Find mirrored memory, use for boot time allocations

2015-05-19 Thread Xishi Qiu
On 2015/5/19 12:48, Tony Luck wrote: On Mon, May 18, 2015 at 8:01 PM, Xishi Qiu qiuxi...@huawei.com wrote: In part2, does it means the memory allocated from kernel should use mirrored memory? Yes. I want to use mirrored memory for all (or as many as possible) kernel allocations. I have

Re: [PATCH 1/2] block: remove BIO_EOPNOTSUPP

2015-05-19 Thread Christoph Hellwig
Jens, do these two patche look fine to you? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 09/12] target: Convert se_portal_group-tpg_lun_list[] to RCU hlist

2015-05-19 Thread Christoph Hellwig
On Tue, May 12, 2015 at 09:25:33AM +, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org This patch converts the fixed size se_portal_group-tpg_lun_list[] to use modern RCU with hlist_head in order to support an arbitary number of se_lun ports per target endpoint.

Re: mod_devicetable: Make dmi_strmatch.substr const char *

2015-05-19 Thread David Woodhouse
On Mon, 2015-05-18 at 17:07 -0700, Joe Perches wrote: changed dmi_strmatch.substr from char * to char[79]; Changing it back to const char * would shrink an x86-64 defconfig more than 100KB. $ size vmlinux.old vmlinux.new textdata bss dechex filename 11941725

Re: [PATCH] crypto: allow to assign gfp_t for __crypto_alloc_tfm

2015-05-19 Thread Jaegeuk Kim
On Tue, May 19, 2015 at 02:32:11PM +0800, Herbert Xu wrote: On Mon, May 18, 2015 at 11:24:30PM -0700, Jaegeuk Kim wrote: The call path in fs/ext4/crypto.c is: - writepage - ext4_encrypt - ext4_get_crypto_ctx - crypto_alloc_ablkcipher AFAIK, this way can achieve to

Re: [PATCH 16/40] perf tools: Reducing arguments of hist_entry_iter__add()

2015-05-19 Thread Namhyung Kim
On Mon, May 18, 2015 at 09:55:41AM -0300, Arnaldo Carvalho de Melo wrote: Em Mon, May 18, 2015 at 09:30:31AM +0900, Namhyung Kim escreveu: The evsel and sample arguments are to set iter for later use. As it also receives an iter as another argument, just set them before calling the

[tip:sched/core] sched/preempt, mm/kmap: Explicitly disable/ enable preemption in kmap_atomic_*

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 2cb7c9cb426660b5ed58b643d9e7dd5d50ba901f Gitweb: http://git.kernel.org/tip/2cb7c9cb426660b5ed58b643d9e7dd5d50ba901f Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:09 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] mm/uaccess, mm/fault: Clarify that uaccess may only sleep if pagefaults are enabled

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: b3c395ef5556a6c60f4426cc060f5b7bdcf82d5b Gitweb: http://git.kernel.org/tip/b3c395ef5556a6c60f4426cc060f5b7bdcf82d5b Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:08 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

Re: [RFC] block: remove never-modified global variable

2015-05-19 Thread Boaz Harrosh
On 05/19/2015 02:08 AM, Brian Norris wrote: AFAICT, 'warn_no_part' never takes (and never has? at least, not in the git history) taken a value besides 1. It also has a disgruntled warning comment next to it, suggesting it shouldn't be there at all. Signed-off-by: Brian Norris

[tip:sched/core] sched/preempt, mm/fault: Trigger might_sleep() in might_fault() with disabled pagefaults

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 9ec23531fd48031d1b6ca5366f5f967d17a8bc28 Gitweb: http://git.kernel.org/tip/9ec23531fd48031d1b6ca5366f5f967d17a8bc28 Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:07 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] sched/preempt, mm/kmap, MIPS: Disable preemption in kmap_coherent() explicitly

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: ce01948eb85da733558fa77c2a554144a57ab0fb Gitweb: http://git.kernel.org/tip/ce01948eb85da733558fa77c2a554144a57ab0fb Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:10 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] mm/fault, drm/i915: Use pagefault_disabled() to check for disabled pagefaults

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 32d8206725bcf6e3ce7832ac39e61a6ecfd558db Gitweb: http://git.kernel.org/tip/32d8206725bcf6e3ce7832ac39e61a6ecfd558db Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:12 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

Re: [PATCH for-4.2 v2 01/14] block: remove management of bi_remaining when restoring original bi_end_io

2015-05-19 Thread Jan Kara
On Mon 18-05-15 16:40:17, Mike Snitzer wrote: Commit c4cf5261 (bio: skip atomic inc/dec of -bi_remaining for non-chains) regressed all existing callers that followed this pattern: 1) saving a bio's original bi_end_io 2) wiring up an intermediate bi_end_io 3) restoring the original

[tip:sched/core] sched/dl/Documentation: Clarify indexing notation

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: c2a684930fce07f19d1a52d7bbe7474fe64fde31 Gitweb: http://git.kernel.org/tip/c2a684930fce07f19d1a52d7bbe7474fe64fde31 Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:28 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:20

[PATCH] suspend: simplify block I/O handling

2015-05-19 Thread Christoph Hellwig
Stop abusing struct page functionality and the swap end_io handler, and instead add a modified version of the blk-lib.c bio_batch helpers. Also move the block I/O code into swap.c as they are directly tied into each other. Signed-off-by: Christoph Hellwig h...@lst.de Tested-by: Pavel Machek

[tip:sched/core] sched/dl/Documentation: Add some notes on EDF schedulability

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: e0deda8142a60e4a39d5ba2ea47294a851b4309a Gitweb: http://git.kernel.org/tip/e0deda8142a60e4a39d5ba2ea47294a851b4309a Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:29 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:20

[tip:sched/core] sched/dl/Documentation: Clarify the relationship between tasks' deadlines and absolute scheduling deadlines

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: 78740858903460d4b926b9a90c705fcb6103da54 Gitweb: http://git.kernel.org/tip/78740858903460d4b926b9a90c705fcb6103da54 Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:31 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:21

[tip:sched/core] sched/dl/Documentation: Fix typos

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: 3aa2dbe27f76528660e18b21f88a2c78ea8996ba Gitweb: http://git.kernel.org/tip/3aa2dbe27f76528660e18b21f88a2c78ea8996ba Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:26 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:19

[tip:sched/core] sched/dl/Documentation: Add some references

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: 134136c4b730c1a4830a8b74e2717d858291361b Gitweb: http://git.kernel.org/tip/134136c4b730c1a4830a8b74e2717d858291361b Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:30 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:21

[tip:sched/core] sched/dl/Documentation: Use consistent naming

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: 48355c4775741ee15b66bad7d09b263d93ce86f8 Gitweb: http://git.kernel.org/tip/48355c4775741ee15b66bad7d09b263d93ce86f8 Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:27 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:20

Re: suspend regression in 4.1-rc1

2015-05-19 Thread Peter Zijlstra
On Tue, May 19, 2015 at 09:12:59AM +0200, Michal Hocko wrote: On Mon 18-05-15 10:10:50, Linus Torvalds wrote: On Mon, May 18, 2015 at 2:31 AM, Peter Zijlstra pet...@infradead.org wrote: Subject: watchdog: Fix merge 'conflict' Two watchdog changes that came through different trees

Re: [PATCH 2/3] mm/page_alloc: stop fallback allocation if we already get some freepage

2015-05-19 Thread Joonsoo Kim
On Tue, May 12, 2015 at 10:36:40AM +0200, Vlastimil Babka wrote: On 04/27/2015 09:23 AM, Joonsoo Kim wrote: Sometimes we try to get more freepages from buddy list than how much we really need, in order to refill pcp list. This may speed up following allocation request, but, there is a

Re: [PATCH v5 WIP 3/5] i2c-parport: define ports to connect

2015-05-19 Thread Jean Delvare
Hi Sudip, Le Wednesday 06 May 2015 à 15:46 +0530, Sudip Mukherjee a écrit : as of now i2c-parport was connecting to all the available parallel ports. Lets limit that to maximum of 4 instances and at the same time define which instance connects to which parallel port A leading capital and a

Re: [PATCH v1 03/12] crypto: qat - address recursive dependency when fw signing is enabled

2015-05-19 Thread Paul Bolle
On Tue, 2015-05-19 at 02:09 +0200, Luis R. Rodriguez wrote: On Mon, May 18, 2015 at 10:45:30PM +0200, Paul Bolle wrote: [...] so, probably, almost all .config files have FW_LOADER set. So I think, except for some corner cases, either converting all select FW_LOADER to depends on FW_LOADER

[PATCH v2 02/11] pinctrl: dt bindings: mt6397: Add pinfunc header file for mt6397.

2015-05-19 Thread Hongzhou Yang
Add pinfunc header file, mt8135/mt8173 relate dts will include it. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com --- include/dt-bindings/pinctrl/mt6397-pinfunc.h | 256 ++ 1 file changed, 256 insertions(+) create mode 100644

Re: [RFC/RFT 2/2] power_supply: Fix possible NULL pointer dereference on early uevent

2015-05-19 Thread Krzysztof Kozlowski
2015-05-19 14:26 GMT+09:00 Krzysztof Kozlowski k.kozlow...@samsung.com: Don't call the power_supply_changed() from power_supply_register() when parent is still probing because it may lead to accessing parent too early. In bq27x00_battery this caused NULL pointer exception because uevent of

[PATCH v2 0/11] Mediatek pinctrl driver optimize and add Mediatek SoC Pinctrl/GPIO/EINT driver for mt6397/mt8127.

2015-05-19 Thread Hongzhou Yang
Due to these patches haven't sent to ML, just resend them. Changes in v2: - Break mfd relate change out into a sparate patch. - Rearrange order of patches. Hongzhou Yang (7): dt-bindings: mediatek: Modify pinctrl bindings for mt6397. pinctrl: dt bindings: mt6397: Add pinfunc header file

[PATCH v2 01/11] dt-bindings: mediatek: Modify pinctrl bindings for mt6397.

2015-05-19 Thread Hongzhou Yang
Since 6397 is no need to support interrupt controller, moving interrupt controller relate property to optional list. Also adding mt8173 and mt8127 to bindings. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 +++-- 1 file

[PATCH v2 11/11] ARM: dts: mt8135-evbp1: Add pinctrl/GPIO node for mt6397.

2015-05-19 Thread Hongzhou Yang
Add pinctrl and GPIO node to mt8135-evbp1.dts. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com --- arch/arm/boot/dts/mt8135-evbp1.dts |8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/mt8135-evbp1.dts b/arch/arm/boot/dts/mt8135-evbp1.dts index

[PATCH v2 10/11] arm64: dts: mt8173-evb: Add pinctrl/GPIO node for mt6397.

2015-05-19 Thread Hongzhou Yang
Add pinctrl and GPIO node to mt8173-evb.dts. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts |8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts

Re: [PATCH 11/11] i2c-core: Fix typo in comment

2015-05-19 Thread Wolfram Sang
On Tue, May 19, 2015 at 11:25:08AM +0530, Sudip Mukherjee wrote: You do not need to mention the count of your older patches here. While technically true... When you mentioned 11/11, it meant your current submission is a patchset of 11 patches. So when the maintainer decides to apply your

[PATCH 09/19] x86, mpx: trace entry to bounds exception paths

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com There are two basic things that can happen as the result of a bounds exception (#BR): 1. We allocate a new bounds table 2. We pass up a bounds exception to userspace. This patch adds a trace point for the case where we are passing

[PATCH 12/19] x86: make is_64bit_mm() widely available

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing the mm around to

[PATCH 10/19] x86, mpx: Trace the attempts to find bounds tables

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com There are two different events being traced here. They are doing similar things so share a trace EVENT_CLASS and are presented together. 1. Trace when MPX is zapping pages mpx_unmap_zap: When MPX can not free an entire bounds table, it

Re: [PATCH for-4.2 v2 01/14] block: remove management of bi_remaining when restoring original bi_end_io

2015-05-19 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig h...@lst.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 04/19] x86, mpx: Cleanup: Do not pass task around when unnecessary

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com The MPX code can only work on the current task. You can not, for instance, enable MPX management in another process or thread. You can also not handle a fault for another process or thread. Despite this, we pass a task_struct around prolifically.

[PATCH 11/19] x86, mpx: trace allocation of new bounds tables

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Bounds tables are a significant consumer of memory. It is important to know when they are being allocated. Add a trace point to trace whenever an allocation occurs and also its virtual address. Signed-off-by: Dave Hansen

[PATCH 07/19] x86, mpx: boot-time disable

2015-05-19 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com MPX has the _potential_ to cause some issues. Say part of your init system tried to protect one of its components from buffer overflows with MPX. If there were a false positive, it's possible that MPX could keep a system from booting. MPX could

Re: [PATCH 06/40] perf tools: Add HEADER_DATA_INDEX feature

2015-05-19 Thread Namhyung Kim
On Mon, May 18, 2015 at 08:17:23PM +0200, Jiri Olsa wrote: On Mon, May 18, 2015 at 09:30:21AM +0900, Namhyung Kim wrote: SNIP +static int process_data_index(struct perf_file_section *section __maybe_unused, + struct perf_header *ph, int fd, +

Re: [PATCH 11/11] i2c-core: Fix typo in comment

2015-05-19 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 08:20:47AM +0200, Wolfram Sang wrote: On Tue, May 19, 2015 at 11:25:08AM +0530, Sudip Mukherjee wrote: You do not need to mention the count of your older patches here. While technically true... When you mentioned 11/11, it meant your current submission is a

Re: [PATCH] crypto: allow to assign gfp_t for __crypto_alloc_tfm

2015-05-19 Thread Herbert Xu
On Mon, May 18, 2015 at 11:58:12PM -0700, Jaegeuk Kim wrote: So where does the key get generated? The crypto tfm should be allocated when you generate the key. In fs/ext4/crypto.c, - writepage - ext4_encrypt - ext4_get_crypto_ctx - crypto_alloc_ablkcipher -

Re: [RFC 2/7] ARM: dts: sun9i: Add CCI-400 device nodes for A80

2015-05-19 Thread Chen-Yu Tsai
On Sun, May 17, 2015 at 10:51 PM, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Thu, May 14, 2015 at 02:10:06PM +0800, Chen-Yu Tsai wrote: The A80 includes an ARM CCI-400 interconnect to support multi-cluster CPU caches. Also add the default clock frequency for the CPUs.

[PATCH 1/2] power_supply: Use wrappers to avoid races when registering power supply

2015-05-19 Thread Krzysztof Kozlowski
Use wrappers over get_property() and set_property() internally in power supply and for sysfs interface. The wrappers provide safe access if power supply is not yet registered or t is being destroyed. In case of syfs the theoretical race could happen between ending of driver's probe and parallel

[tip:sched/core] sched/preempt: Rearrange a few symbols after headers merge

2015-05-19 Thread tip-bot for Frederic Weisbecker
Commit-ID: 2e10e71ce88e3eaccfd09a045ae6ecebe657ba09 Gitweb: http://git.kernel.org/tip/2e10e71ce88e3eaccfd09a045ae6ecebe657ba09 Author: Frederic Weisbecker fweis...@gmail.com AuthorDate: Tue, 12 May 2015 16:41:47 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015

[tip:sched/core] sched/preempt: Merge preempt_mask.h into preempt.h

2015-05-19 Thread tip-bot for Frederic Weisbecker
Commit-ID: 92cf211874e954027b8e91cc9a15485a50b58d6b Gitweb: http://git.kernel.org/tip/92cf211874e954027b8e91cc9a15485a50b58d6b Author: Frederic Weisbecker fweis...@gmail.com AuthorDate: Tue, 12 May 2015 16:41:46 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015

[PATCH 0/2] power_supply: Small improvements for 4.2

2015-05-19 Thread Krzysztof Kozlowski
Hi, I send these separately because they are not fixes for current RC cycle. The patch 1 could look like fix... but still this is for theoretical race condition. Best regards, Krzysztof Krzysztof Kozlowski (2): power_supply: Use wrappers to avoid races when registering power supply

[tip:sched/core] sched/preempt, MIPS: Properly lock access to the FPU

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 76deabd1867d6d2895152f31fdec819e3505738b Gitweb: http://git.kernel.org/tip/76deabd1867d6d2895152f31fdec819e3505738b Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:19 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] sched/preempt, powerpc: Disable preemption in enable_kernel_altivec() explicitly

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 5f76eea88dcbe75506d98e0207b9e3bd47941f2d Gitweb: http://git.kernel.org/tip/5f76eea88dcbe75506d98e0207b9e3bd47941f2d Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:18 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] sched/dl/Documentation: Correct the definition of density as C_i/min{D_i,P_i}

2015-05-19 Thread tip-bot for Zhiqiang Zhang
Commit-ID: 3aed357ee499c71f589a2537af6ec7785029873f Gitweb: http://git.kernel.org/tip/3aed357ee499c71f589a2537af6ec7785029873f Author: Zhiqiang Zhang zhangzhiqiang.zh...@huawei.com AuthorDate: Mon, 18 May 2015 15:00:24 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

[tip:sched/core] sched/dl/Documentation: Switch to American English

2015-05-19 Thread tip-bot for Luca Abeni
Commit-ID: 3a3a58d4068382cf2e05f5c8fd3a0587836dacec Gitweb: http://git.kernel.org/tip/3a3a58d4068382cf2e05f5c8fd3a0587836dacec Author: Luca Abeni luca.ab...@unitn.it AuthorDate: Mon, 18 May 2015 15:00:25 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:19

[tip:sched/core] sched/numa: Reduce conflict between fbq_classify_rq() and migration

2015-05-19 Thread tip-bot for Rik van Riel
Commit-ID: c1ceac6276e4ee12e4129afd380db10fae0db7df Gitweb: http://git.kernel.org/tip/c1ceac6276e4ee12e4129afd380db10fae0db7df Author: Rik van Riel r...@redhat.com AuthorDate: Thu, 14 May 2015 22:59:36 -0400 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May 2015 08:39:19

[tip:sched/core] sched/preempt, mm/fault: Decouple preemption from the page fault logic

2015-05-19 Thread tip-bot for David Hildenbrand
Commit-ID: 8222dbe21e79338de92d5e1956cd1e3994cc9f93 Gitweb: http://git.kernel.org/tip/8222dbe21e79338de92d5e1956cd1e3994cc9f93 Author: David Hildenbrand d...@linux.vnet.ibm.com AuthorDate: Mon, 11 May 2015 17:52:20 +0200 Committer: Ingo Molnar mi...@kernel.org CommitDate: Tue, 19 May

Re: [RFC PATCH] ALSA: pcm: Modify double acknowledged interrupts check condition

2015-05-19 Thread Takashi Iwai
At Wed, 13 May 2015 22:39:03 +0800, Koro Chen wrote: Currently in snd_pcm_update_hw_ptr0 during interrupt, we consider there were double acknowledged interrupts when: 1. HW reported pointer is smaller than expected, and 2. Time from last update time (hdelta) is over half a buffer time.

Re: [RFC] block: remove never-modified global variable

2015-05-19 Thread Boaz Harrosh
On 05/19/2015 10:19 AM, Boaz Harrosh wrote: But specially now that you are unconditionally printing it. It is better to just combine the two statements. See suggested patch below: Actually we can even do better: diff --git a/block/partitions/check.c b/block/partitions/check.c index

Re: [PATCH v2] drm/i915: fix screen flickering

2015-05-19 Thread Jani Nikula
On Thu, 14 May 2015, Matt Roper matthew.d.ro...@intel.com wrote: On Thu, May 14, 2015 at 09:16:39AM +0200, Thomas Gummerer wrote: Commit c9f038a1a592 (drm/i915: Don't assume primary cursor are always on for wm calculation (v4)) fixes a null pointer dereference. Setting the primary and cursor

Re: [patch 0/6] x86, perf, cqm: Cleanups and preparation for RDT/CAT

2015-05-19 Thread Peter Zijlstra
On Tue, May 19, 2015 at 12:00:48AM -, Thomas Gleixner wrote: While reviewing the RDT/CAT patches I had to look into the perf CQM code. As usual when my review mood reaches the grumpiness level, I start to poke around in the code some more and find stuff which really sucks. Here is a

Re: Should we automatically generate a module signing key at all?

2015-05-19 Thread David Woodhouse
On Mon, 2015-05-18 at 17:51 -0700, Andy Lutomirski wrote: I think we should get rid of the idea of automatically generated signing keys entirely. Instead I think we should generate, at build time, a list of all the module hashes and link that into vmlinux. How many module hashes can you

Re: [PATCH man-pages v2] capabilities.7, prctl.2: Document ambient capabilities

2015-05-19 Thread Michael Kerrisk (man-pages)
Hi Andy, Thanks for this patch. There are some broken pieces though. Also, I have some minor questions about the API design. See below. On 05/15/2015 08:43 AM, Andy Lutomirski wrote: Signed-off-by: Andy Lutomirski l...@kernel.org --- There was no v1. I'm calling this v2 to keep it in sync

Re: [PATCH RFC v2] Documentation/infiniband: Add docs for rdma-helpers

2015-05-19 Thread Michael Wang
On 05/18/2015 06:58 PM, Doug Ledford wrote: [snip] I see :-) I've not work with the kdoc yet, not sure if there is any guidelines on how to write the header of inline func for kdoc? It's an automated tool thing. Any comment section that starts with /** is automatically included as a kdoc.

Re: [PATCH v12 8/8] cgroup: implement the PIDs subsystem

2015-05-19 Thread Peter Zijlstra
On Tue, May 19, 2015 at 12:51:07AM +1000, Aleksa Sarai wrote: However, it should be noted that organisational operations (adding and removing tasks from a PIDs hierarchy) will *not* be prevented. This is how you spell: broken controller. -- To unsubscribe from this list: send the line

Re: [PATCH 1/1 linux-next] cdc-acm: use swap() in acm_probe()

2015-05-19 Thread Oliver Neukum
On Mon, 2015-05-18 at 19:59 +0200, Fabian Frederick wrote: Use kernel.h macro definition. Signed-off-by: Fabian Frederick f...@skynet.be Acked-by: Oliver Neukum oneu...@suse.de -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[PATCH] perf tools: Reducing arguments of hist_entry_iter__add()

2015-05-19 Thread Namhyung Kim
The evsel and sample arguments are to set iter for later use. As it also receives an iter as another argument, just set them before calling the function. Signed-off-by: Namhyung Kim namhy...@kernel.org --- Arnaldo, it seems that this patch can be applied to the current perf/core 2d8e405acd78

Re: [PATCH 09/19] x86, mpx: trace entry to bounds exception paths

2015-05-19 Thread Thomas Gleixner
On Mon, 18 May 2015, Dave Hansen wrote: From: Dave Hansen dave.han...@linux.intel.com There are two basic things that can happen as the result of a bounds exception (#BR): 1. We allocate a new bounds table 2. We pass up a bounds exception to userspace. This patch adds a

Re: [PATCH 10/19] x86, mpx: Trace the attempts to find bounds tables

2015-05-19 Thread Thomas Gleixner
On Mon, 18 May 2015, Dave Hansen wrote: From: Dave Hansen dave.han...@linux.intel.com There are two different events being traced here. They are doing similar things so share a trace EVENT_CLASS and are presented together. 1. Trace when MPX is zapping pages mpx_unmap_zap: When

Re: [PATCH] x86, perf: Tweak broken BIOS rules during check_hw_exists

2015-05-19 Thread Peter Zijlstra
On Mon, May 18, 2015 at 03:16:48PM -0400, Don Zickus wrote: I stumbled upon an AMD box that had the BIOS using a hardware counter. Instead of printing out a warning and continuing, it failed and blocked further perf counter usage. Hehe, which was the original behaviour iirc. Looking

[RFC PATCH 0/4] x86, mwaitt: introduce AMD mwaitt support

2015-05-19 Thread Huang Rui
Hi, This patch set introduces a new instruction support on AMD Carrizo (Family 15h, Model 60h-6fh). It adds mwaitx idle function with a configurable timer. The user can configure the idle method and timer value via the idle kernel parameter. Some discussions of the background, please see:

[RESEND][PATCH v2 1/9] topology: rename topology_thread_cpumask()

2015-05-19 Thread Bartosz Golaszewski
Rename topology_thread_cpumask() to topology_sibling_cpumask() for more consistency with scheduler code. Signed-off-by: Bartosz Golaszewski bgolaszew...@baylibre.com Acked-by: Ingo Molnar mi...@kernel.org Acked-by: Russell King rmk+ker...@arm.linux.org.uk Acked-by: Catalin Marinas

[RESEND][PATCH v2 2/9] Documentation: update cputopology.txt

2015-05-19 Thread Bartosz Golaszewski
The documentation on cpu topology seems to be a bit out-of-date. It doesn't mention the **_siblings_list attributes and uses old names for topology_**_cpumask() macros. Add information on missing attributes plus some additional clarifications. Signed-off-by: Bartosz Golaszewski

[RESEND][PATCH v2 3/9] coretemp: replace cpu_sibling_mask() with topology_sibling_cpumask()

2015-05-19 Thread Bartosz Golaszewski
The former duplicates the functionality of the latter but is neither documented nor arch-independent. Signed-off-by: Bartosz Golaszewski bgolaszew...@baylibre.com Acked-by: Guenter Roeck li...@roeck-us.net Acked-by: Ingo Molnar mi...@kernel.org --- drivers/hwmon/coretemp.c | 3 ++- 1 file

[RESEND][PATCH v2 4/9] powernow-k8: replace cpu_core_mask() with topology_core_cpumask()

2015-05-19 Thread Bartosz Golaszewski
The former duplicates the functionality of the latter but is neither documented nor arch-independent. Signed-off-by: Bartosz Golaszewski bgolaszew...@baylibre.com Acked-by: Ingo Molnar mi...@kernel.org Acked-by: Viresh Kumar viresh.ku...@linaro.org --- drivers/cpufreq/powernow-k8.c | 13

Re: [PATCH for-4.2 04/14] block: factor out blkdev_issue_discard_async

2015-05-19 Thread Christoph Hellwig
On Mon, May 18, 2015 at 03:18:30PM -0400, Mike Snitzer wrote: And besides that generic high level sentiment I think the interface for blkdev_issue_discard_async is simply wrong. Either you want to keep the internals private and just expose a completion callback that gets your private data

RE: [rtc-linux] [PATCH V2 1/4] mfd: da9062: DA9062 MFD core driver

2015-05-19 Thread Opensource [Steve Twiss]
On 16 May 2015 09:53 Alexandre Belloni wrote: Hi Alexandre, On 14/05/2015 at 17:43:52 +0100, S Twiss wrote : [...] + { + .name = da9062-watchdog, + .num_resources = ARRAY_SIZE(da9062_wdt_resources), + .resources = da9062_wdt_resources,

Re: [RFC][PATCHSET v3] non-recursive pathname resolution RCU symlinks

2015-05-19 Thread NeilBrown
On Sun, 17 May 2015 19:56:26 -0700 Linus Torvalds torva...@linux-foundation.org wrote: On Sun, May 17, 2015 at 4:16 PM, NeilBrown ne...@suse.de wrote: Just to be crystal clear about what I want: I want the filesystem to be in control Yeah, no. Not going to happen. You seem to think

Re: [PATCH 1/2] pinctrl: cygnus: fixed typo in the gpio driver

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 2:06 AM, Ray Jui r...@broadcom.com wrote: Fixed a small typo in the Cygnus GPIO driver Signed-off-by: Jason Uy jaso...@broadcom.com Signed-off-by: Ray Jui r...@broadcom.com Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line

Re: [PATCH v12 8/8] cgroup: implement the PIDs subsystem

2015-05-19 Thread Aleksa Sarai
However, it should be noted that organisational operations (adding and removing tasks from a PIDs hierarchy) will *not* be prevented. This is how you spell: broken controller. This has been discussed before. Organisational operations (i.e. attaching to a cgroup) are not to be blocked by a

Re: [PATCH v3 03/11] block: allow __blk_queue_bounce() to handle bios larger than BIO_MAX_PAGES

2015-05-19 Thread Christoph Hellwig
On Wed, May 06, 2015 at 11:34:13PM -0700, Ming Lin wrote: From: Kent Overstreet kent.overstr...@gmail.com Allow __blk_queue_bounce() to handle bios with more than BIO_MAX_PAGES segments. Doing that, it becomes possible to simplify the block layer in the kernel. I can't see why we'd need

Re: [PATCH 2/2] pinctrl: cygnus: fixed incorrect GPIO-pin mapping

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 2:06 AM, Ray Jui r...@broadcom.com wrote: This patch fixes an incorrect GPIO-to-pin mapping in the Cygnus GPIO driver Signed-off-by: Ray Jui r...@broadcom.com Patch applied for fixes. Yours, Linus Walleij -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v5 WIP 3/5] i2c-parport: define ports to connect

2015-05-19 Thread Sudip Mukherjee
On Tue, May 19, 2015 at 09:50:47AM +0200, Jean Delvare wrote: Hi Sudip, Le Wednesday 06 May 2015 à 15:46 +0530, Sudip Mukherjee a écrit : as of now i2c-parport was connecting to all the available parallel ports. Lets limit that to maximum of 4 instances and at the same time define which

Re: [PATCH 03/10] pinctrl: mediatek: add ies/smt control to common code.

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 3:35 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: Input enable and smt setting have different register, modify code to fix it. Several mediatek soc use similar input enable/smt setting procedure as mt8173, some soc use generic input enable/smt setting, some

Re: [PATCH 02/10] pinctrl: mediatek: add mtk_pctrl_spec_pull_set_samereg common code

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 3:35 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: From: Yingjoe Chen yingjoe.c...@mediatek.com Several mediatek soc use similar pull setting procedure as mt8173, the pupd enable and resistance setting are in the same register. Add common code

Re: [PATCH v2 06/10] clk: sunxi: Add H3 clocks support

2015-05-19 Thread Maxime Ripard
On Mon, May 18, 2015 at 11:45:50AM +0200, Jens Kuske wrote: Hi, On 05/17/15 16:27, Maxime Ripard wrote: On Fri, May 15, 2015 at 06:38:56PM +0200, Jens Kuske wrote: The H3 clock control unit is similar to the those of other sun8i family members like the A23. It makes use of the new

Re: [PATCH 06/10] pinctrl: dt bindings: mt6397: Add pinfunc header file for mt6397.

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 3:35 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: Add pinfunc header file, mt8135/mt8173 relate dts will include it. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line

Re: Should we automatically generate a module signing key at all?

2015-05-19 Thread David Howells
Andy Lutomirski l...@kernel.org wrote: I think we should get rid of the idea of automatically generated signing keys entirely. Instead I think we should generate, at build time, a list of all the module hashes and link that into vmlinux. Just in Fedora 21: warthogrpm -ql kernel-modules |

Re: [PATCH v3] serial: 8250_uniphier: add UniPhier serial driver

2015-05-19 Thread Masahiro Yamada
Hi Matthias, 2015-05-19 17:22 GMT+09:00 Matthias Brugger matthias@gmail.com: 2015-05-19 3:11 GMT+02:00 Masahiro Yamada yamada.masah...@socionext.com: Add the driver for on-chip UART used on UniPhier SoCs. This hardware is similar to 8250 with a slightly different register mapping, so it

Re: [RFC PATCH 16/17] x86/nmi: Perform a safe NMI stack trace on all CPUs

2015-05-19 Thread long.wanglong
On 2015/5/18 22:17, Petr Mladek wrote: On Thu 2015-05-14 11:35:03, Wang Long wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org commit a9edc88093287183ac934be44f295f183b2c62dd upstream. When trigger_all_cpu_backtrace() is called on x86, it will trigger an NMI on each CPU and call

Re: [RFC PATCH 0/4] x86, mwaitt: introduce AMD mwaitt support

2015-05-19 Thread Borislav Petkov
On Tue, May 19, 2015 at 04:01:08PM +0800, Huang Rui wrote: Hi, This patch set introduces a new instruction support on AMD Carrizo (Family 15h, Model 60h-6fh). It adds mwaitx idle function with a configurable timer. The user can configure the idle method and timer value via the idle kernel

Re: [PATCH 07/10] arm64: dts: mt8173-evb: Add pinctrl/GPIO node for mt6397.

2015-05-19 Thread Linus Walleij
On Thu, May 14, 2015 at 3:35 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: Add pinctrl and GPIO node to mt8173-evb.dts. Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com Acked-by: Linus Walleij linus.wall...@linaro.org This needs to go through the ARM SoC tree, or I need an ACK

Re: [PATCH v7 08/13] ARM: unify MMU/!MMU addruart calls

2015-05-19 Thread Shawn Guo
On Tue, May 19, 2015 at 10:11:40AM +0200, Thomas Gleixner wrote: If you pull the irq stuff. Make sure that the HEAD is b5cc5cbc11697. I pushed out a broken version earlier. Okay, thanks for the info, Thomas. I will take care of it if rmk and Arnd agree with the approach. Shawn -- To

Re: [PATCH v3] serial: 8250_uniphier: add UniPhier serial driver

2015-05-19 Thread Jiri Slaby
On 05/19/2015, 10:54 AM, Masahiro Yamada wrote: +#define UNIPHIER_UART_CHAR_FCR 3 /* Character / FIFO Control Register */ +#define UNIPHIER_UART_LCR_MCR 4 /* Line/Modem Control Register */ +#define UNIPHIER_UART_LCR_SHIFT8 +#define UNIPHIER_UART_DLR 9 /*

Re: [PATCH v8 09/16] clockevents/drivers: Add STM32 Timer driver

2015-05-19 Thread Daniel Lezcano
On 05/19/2015 10:55 AM, Maxime Coquelin wrote: 2015-05-19 10:16 GMT+02:00 Daniel Lezcano daniel.lezc...@linaro.org: On 05/18/2015 04:03 PM, Maxime Coquelin wrote: 2015-05-18 15:10 GMT+02:00 Daniel Lezcano daniel.lezc...@linaro.org: On 05/09/2015 09:53 AM, Maxime Coquelin wrote: STM32

Re: [PATCH 1/4] ARM: at91/dt: sama5d3 xplained: fill in mmc1 and set it to disabled

2015-05-19 Thread Nicolas Ferre
Le 27/04/2015 15:19, Ludovic Desroches a écrit : From: Ben Dooks ben.do...@codethink.co.uk The mmc1 channel is not populated on the SAM5D3 Xplained board, however it is enabled and therefore the driver is attaching to it. The node configuration for mmc1 is missing, so add an mmc1 node in

[PATCH v2 03/17] tracing: Convert seq_buf fields to be like seq_file fields

2015-05-19 Thread Wang Long
From: Steven Rostedt (Red Hat) rost...@goodmis.org commit 9a935c34b9192e28ef3d232a4b6b5414a657 upstream. In facilitating the conversion of seq_file to use seq_buf, have the seq_buf fields match the types used by seq_file. Link: http://lkml.kernel.org/r/20141104160222.195301...@goodmis.org

[PATCH v2 13/17] seq_buf: Fix seq_buf_bprintf() truncation

2015-05-19 Thread Wang Long
From: Steven Rostedt (Red Hat) rost...@goodmis.org commit 4d4eb4d4fbd9403682e2b75117b6b895531d8e01 upstream. In seq_buf_bprintf(), bstr_printf() is used to copy the format into the buffer remaining in the seq_buf structure. The return of bstr_printf() is the amount of characters written to the

Re: [PATCH v2 04/11] pinctrl: mediatek: add mtk_pctrl_spec_pull_set_samereg common code

2015-05-19 Thread Linus Walleij
On Tue, May 19, 2015 at 8:11 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: From: Yingjoe Chen yingjoe.c...@mediatek.com Several mediatek soc use similar pull setting procedure as mt8173, the pupd enable and resistance setting are in the same register. Add common code

Re: [PATCH 2/2] power_supply: Add support for TI BQ25890 charger chip

2015-05-19 Thread Laurentiu Palcu
Hi Krzysztof, On Tue, May 19, 2015 at 05:40:25PM +0900, Krzysztof Kozlowski wrote: + +static int bq25890_chip_reset(struct bq25890_device *bq) +{ + int ret; + + ret = bq25890_field_write(bq, F_REG_RST, 1); + if (ret 0) + return ret; + +

[PATCH v2 14/17] printk: Add per_cpu printk func to allow printk to be diverted

2015-05-19 Thread Wang Long
From: Steven Rostedt (Red Hat) rost...@goodmis.org commit afdc34a3d3b823a12a93b822ee1efb566f884032 upstream. Being able to divert printk to call another function besides the normal logging is useful for such things like NMI handling. If some functions are to be called from NMI that does printk()

[v7 1/4] genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU

2015-05-19 Thread Feng Wu
From: Jiang Liu jiang@linux.intel.com With Posted-Interrupts support in Intel CPU and IOMMU, an external interrupt from assigned-devices could be directly delivered to a virtual CPU in a virtual machine. Instead of hacking KVM and Intel IOMMU drivers, we propose a platform independent

Re: [patch 4/6] x86, perf, cqm: Avoid pointless msr write

2015-05-19 Thread Matt Fleming
On Tue, 19 May, at 12:00:55AM, Thomas Gleixner wrote: If the usage counter is non-zero there is no point to update the rmid in the PQR MSR. Signed-off-by: Thomas Gleixner t...@linutronix.de --- arch/x86/kernel/cpu/perf_event_intel_cqm.c |8 +--- 1 file changed, 5 insertions(+), 3

Re: [patch 5/6] x86, perf, cqm: Remove useless wrapper function

2015-05-19 Thread Matt Fleming
On Tue, 19 May, at 12:00:56AM, Thomas Gleixner wrote: intel_cqm_event_del is a 1:1 wrapper for intel_cqm_event_stop. Remove the useless gunk. Signed-off-by: Thomas Gleixner t...@linutronix.de --- arch/x86/kernel/cpu/perf_event_intel_cqm.c |7 +-- 1 file changed, 1 insertion(+), 6

Re: [PATCH v2 09/11] ARM: dts: mt8127: add pinctrl/GPIO/EINT node for mt8127

2015-05-19 Thread Linus Walleij
On Tue, May 19, 2015 at 8:11 AM, Hongzhou Yang hongzhou.y...@mediatek.com wrote: From: Yingjoe Chen yingjoe.c...@mediatek.com Add pinctrl,GPIO and EINT node to mt8127.dtsi. Signed-off-by: Yingjoe Chen yingjoe.c...@mediatek.com Signed-off-by: Hongzhou Yang hongzhou.y...@mediatek.com

<    1   2   3   4   5   6   7   8   9   10   >