[drm fixes] git pull

2015-06-05 Thread Dave Airlie
Hi Linus, i915 has a bunch of fixes, and Russell found a bug in sysfs writing handling that results in userspace getting stuck. Dave. The following changes since commit 456fdb267377b88fa37abf60fcbd9bfaa813bf1f: Merge tag 'pci-v4.1-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/h

Re: [PATCH] oom: always panic on OOM when panic_on_oom is configured

2015-06-05 Thread Tetsuo Handa
Michal Hocko wrote: > > > Let's move check_panic_on_oom up before the current task is > > > checked so that the knob value is . Do the same for the memcg in > > > mem_cgroup_out_of_memory. > > > > > > Reported-by: Tetsuo Handa > > > Signed-off-by: Michal Hocko > > > > Nack, this is not the appr

Re: [PATCH v2 1/3] watchdog_core: Add watchdog registration deferral mechanism

2015-06-05 Thread Jean-Baptiste Theou
Thanks for the valuable feedbacks. I am working on a v3. JB On Fri, 5 Jun 2015 21:24:52 -0700 Guenter Roeck wrote: > On 06/05/2015 06:46 PM, Jean-Baptiste Theou wrote: > > Currently, watchdog subsystem require the misc subsystem to > > register a watchdog. This may not be the case in case of a

[PATCH 3/3] [PATCH] staging: dgnc: Fixed braces {} are not necessary for single statement blocks

2015-06-05 Thread kdasaparna
Removed the braces of if else statements which contain only one statement Signed-off-by: Aparna Karuthodi --- drivers/staging/dgnc/dgnc_tty.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c in

[PATCH] kexec: Remove the unnecessary conditional judgement to simplify the code logic

2015-06-05 Thread Minfei Huang
From: Minfei Huang Transforming PFN(Page Frame Number) to struct page is never failure, so we can simplify the code logic to do the image->control_page assignment directly in the loop, and remove the unnecessary conditional judgement. Signed-off-by: Minfei Huang --- kernel/kexec.c | 3 +-- 1 f

Using perf on AMD 15h

2015-06-05 Thread Mahmood Naderan
Hi Guys, My first question is, does the version of kernel affects the perf functionality? I mean fixing bugs and ... Currently, the kernel version is 2.6.39 and here is the problem: According tot he BKDG of AMD 15h, it is possbile to disable the hardware prefetcher by setting some bits of MSRC001_

Re: [PATCH] kobject: avoid unnecessary assignment of kobj->parent

2015-06-05 Thread Greg KH
On Thu, Jun 04, 2015 at 10:13:50AM +0800, Wei Yang wrote: > kobj->parent is changed only when it is NULL originally. > > This patch moves the assignment in the "if" to avoid unnecessary assignment. > > Signed-off-by: Wei Yang > --- > lib/kobject.c |3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH] Staging: comedi: daqboard2000: fixed whitespace coding style issue

2015-06-05 Thread Sudip Mukherjee
On Fri, Jun 05, 2015 at 04:27:48PM -0700, Dennis Chen wrote: > From 843d038eec5ac2c59d3138f19ae52828098c7d50 Mon Sep 17 00:00:00 2001 > From: Dennis Chen > Date: Fri, 5 Jun 2015 15:42:37 -0700 > Subject: [PATCH] Staging: comedi: daqboard2000: fixed whitespace coding style > issue > > Fixed white

Re: Interaction issue of intel wifi and broadcom bluetooth - it appears that nobody feels responsible for doing something

2015-06-05 Thread Marcel Holtmann
Hi Arend, >> thanks for responding! >> >> I did have my mobile phone very nearby also connected to the bluetooth >> headphones while my laptop was still using 11n wifi. I didn't have any >> noticeable issues with bluetooth there. >> >> But I got the feeling that my phone's android drivers + hard

Re: [PATCH] m32r: Wire up all missing syscalls

2015-06-05 Thread Chen Gang
On 6/6/15 07:39, Chen Gang wrote: > If some of syscalls are not implemented, they will be redirected to > sys_ni_call. > Oh, sorry, sys_ni_call -> sys_ni_syscall. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed -- To unsubscribe from this list: send

[PATCH] frv: Wire up all missing syscalls

2015-06-05 Thread Chen Gang
If some of syscalls are not implemented, they will be redirected to sys_ni_syscall. And the related warnings for all missing syscalls: :1187:2: warning: #warning syscall recvmmsg not implemented [-Wcpp] :1190:2: warning: #warning syscall fanotify_init not implemented [-Wcpp] :1193:2: warnin

Re: [PATCH v2 3/3] gpio_wdt: Add option for early registration

2015-06-05 Thread Guenter Roeck
On 06/05/2015 06:46 PM, Jean-Baptiste Theou wrote: In some situation, mainly when it's not possible to disable a watchdog, you may want the watchdog driver to be started as soon as possible. Adding GPIO_WATCHDOG_ARCH_INITCALL to raise initcall from module_init to arch_initcall. This is only for

Re: [PATCH v2 2/3] watchdog-kernel-api: Add registration deferral mechanism

2015-06-05 Thread Guenter Roeck
On 06/05/2015 06:46 PM, Jean-Baptiste Theou wrote: Add registration deferral mechanism capability information Signed-off-by: Jean-Baptiste Theou --- Documentation/watchdog/watchdog-kernel-api.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/watchdog/watchdog-kernel-a

Re: [PATCH v2 1/3] watchdog_core: Add watchdog registration deferral mechanism

2015-06-05 Thread Guenter Roeck
On 06/05/2015 06:46 PM, Jean-Baptiste Theou wrote: Currently, watchdog subsystem require the misc subsystem to register a watchdog. This may not be the case in case of an early registration of a watchdog, which can be required when the watchdog cannot be disabled. This patch use deferral mechani

[PATCH] net: rose: Use mod_timer

2015-06-05 Thread Vaishali Thakkar
Use mod_timer instead of del_timer followed by add_timer to update the expire field of the active timer. The semantic patch that performs this transformation is as follows: @change@ expression e1, e2, e3, e4; @@ - del_timer(&e1); ... when != e1 = e3 - e1.expires = e2; ... when != e1 = e4 - add_t

[PATCH 5/6] ARM:Gemini:use timer 1 as clockevent timer

2015-06-05 Thread Hans Ulli Kroll
This patch is based on openwrt patch found in target/linux/gemini/patches-3.18/160-gemini-timers.patch It removes usage of timer 2 as clockevent timer and uses timer 1. Also setup the needed register for interrupt handling missed in the initial patch Signed-off-by: Hans Ulli Kroll --- arch/arm/

ARM:Gemini:fix/update timer clocksource

2015-06-05 Thread Hans Ulli Kroll
This patchset fixexs this and do some cosmetic cleanup in the clocksource driver for mach-gemini. timer1 is used for clockevent timer3 for free running timer, scheduler clock source. The work is based on a patch found on openwrt.org in target/linux/gemini/patches-3.18/160-gemini-timers.patch Ha

[PATCH 6/6] ARM:Gemini:add timer3 as sched_clock_source

2015-06-05 Thread Hans Ulli Kroll
This patch is based on openwrt patch found in target/linux/gemini/patches-3.18/160-gemini-timers.patch It setups a free running timer (timer3) for scheduler clock Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/time.c | 20 1 file changed, 20 insertions(+) diff --g

[PATCH 2/6] ARM:Gemini:move IOADDRESS() into #define's

2015-06-05 Thread Hans Ulli Kroll
For better code readability move IO_ADDRESS() into register definitions Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/time.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-gemini/time.c b/arch/arm/mach-gemini

[PATCH 3/6] ARM:Gemini:add missing intr state and mask register

2015-06-05 Thread Hans Ulli Kroll
For earch timer function we have intr state and mask register. Add control bits up/down counting for each timer Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/time.c | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/mach-gemini/time.c b/arch/arm/mach-gemini

[PATCH 1/6] ARM:Gemini:move timer register definitions into the right place

2015-06-05 Thread Hans Ulli Kroll
We need the offset for the timer registers in driver only. So move this out of hardware.h Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/include/mach/hardware.h | 3 --- arch/arm/mach-gemini/time.c | 4 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a

[PATCH 4/6] ARM:Gemini:remove index for timer control register

2015-06-05 Thread Hans Ulli Kroll
The TIMER_CR register control all three timer. No need for a index. Signed-off-by: Hans Ulli Kroll --- arch/arm/mach-gemini/time.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-gemini/time.c b/arch/arm/mach-gemini/time.c index a8604a3..e919b

Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock

2015-06-05 Thread Ohad Ben-Cohen
On Sat, Jun 6, 2015 at 2:50 AM, Jeffrey Hugo wrote: > If you still wish to scope out a capability based alternative, would you > please provide some details about how you envision it working? An example > of the API, how it would be used, future usecases that might be covered by > it, etc. That

[PATCH] crypto: use list to stage async seeding requests

2015-06-05 Thread Stephan Mueller
This patch uses a list to track the asynchronous seeding requests until the nonblocking pool is fully initialized. The random.c is provided with two API calls: the get_blocking_random_bytes_cb allows the caller to provide a callback function that is triggered once the nonblocking pool is initialize

Re: [PATCH] block, cgroup: implement policy-specific per-blkcg data

2015-06-05 Thread Tejun Heo
Hello, On Fri, Jun 05, 2015 at 11:38:42PM +0200, Arianna Avanzini wrote: > The block IO (blkio) controller enables the block layer to provide service > guarantees in a hierarchical fashion. Specifically, service guarantees > are provided by registered request-accounting policies. As of now, a > pr

[PATCH] [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16

2015-06-05 Thread Vaishali Thakkar
In little endian cases, macro cpu_to_be16 unfolds to __swab16 which provides special case for constants. In big endian cases, __constant_cpu_to_be16 and cpu_to_be16 expand directly to the same expression. So, replace __constant_cpu_to_be16 with cpu_to_be16 with the goal of getting rid of the defini

[PATCH v2 1/3] watchdog_core: Add watchdog registration deferral mechanism

2015-06-05 Thread Jean-Baptiste Theou
Currently, watchdog subsystem require the misc subsystem to register a watchdog. This may not be the case in case of an early registration of a watchdog, which can be required when the watchdog cannot be disabled. This patch use deferral mechanism to remove this requirement. Signed-off-by: Jean-B

[PATCH v2 3/3] gpio_wdt: Add option for early registration

2015-06-05 Thread Jean-Baptiste Theou
In some situation, mainly when it's not possible to disable a watchdog, you may want the watchdog driver to be started as soon as possible. Adding GPIO_WATCHDOG_ARCH_INITCALL to raise initcall from module_init to arch_initcall. This is only for a built-in module. This patch require watchdog regis

[PATCH v2 2/3] watchdog-kernel-api: Add registration deferral mechanism

2015-06-05 Thread Jean-Baptiste Theou
Add registration deferral mechanism capability information Signed-off-by: Jean-Baptiste Theou --- Documentation/watchdog/watchdog-kernel-api.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/watchdog/watchdog-kernel-api.txt b/Documentation/watchdog/watchdog-kernel-api.tx

Re: [PATCH v2 5/5] clk: qcom: Add MSM8916 audio clocks

2015-06-05 Thread Stephen Boyd
On 06/05, Georgi Djakov wrote: > @@ -190,6 +193,76 @@ static const char *gcc_xo_gpll0a_gpll1_gpll2[] = { > "gpll2_vote", > }; > > +static const struct parent_map gcc_xo_gpll0_gpll1_sleep_map[] = { > + { P_XO, 0 }, > + { P_GPLL0, 1 }, > + { P_GPLL1, 2 }, > + { P_SLEEP_CLK, 6

Re: [PATCH v2 3/5] clk: qcom: Add support for RCGs with shared branches

2015-06-05 Thread Stephen Boyd
On 06/05, Georgi Djakov wrote: > diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c > index cb17fd4b193f..60563adad21d 100644 > --- a/drivers/clk/qcom/clk-rcg2.c > +++ b/drivers/clk/qcom/clk-rcg2.c > @@ -47,6 +47,8 @@ > #define N_REG0xc > #define D_REG

[PATCH] usb: gadget: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

[GIT PULL] (swiotlb) stable/for-linus-4.1

2015-06-05 Thread Konrad Rzeszutek Wilk
Hey Linus, Please pull this tiny little fix (or if you prefer just delay till 4.2): git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb.git stable/for-linus-4.1 which just converts an function to be static. Really tiny. Alexandre Courbot (1): swiotlb: do not export map_single fu

[GIT PULL] (ibft) stable/for-linus-4.1 fixes

2015-06-05 Thread Konrad Rzeszutek Wilk
Hey Linus, One single fix from Chris to workaround UEFI platforms failing with iSCSI IBFT. Please pull the following branch: git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git stable/for-linus-4.1 which has the following fix: Chris Leech (1): iscsi_ibft: filter null v4-mapped

Re: [PATCH] block: Make CFQ default to IOPS mode on SSDs

2015-06-05 Thread Jens Axboe
On 06/05/2015 04:58 PM, Tahsin Erdogan wrote: On Wed, May 27, 2015 at 1:14 PM, Tahsin Erdogan wrote: On Tue, May 19, 2015 at 1:55 PM, Tahsin Erdogan wrote: CFQ idling causes reduced IOPS throughput on non-rotational disks. Since disk head seeking is not applicable to SSDs, it doesn't really h

Re: [PATCH v2 1/5] clk: qcom: Add support for read-only rcg2 ops

2015-06-05 Thread Stephen Boyd
On 06/05, Georgi Djakov wrote: > Some root clock generators can be controlled by other processors. In this > case modifying them is not recommended. By using the read-only operations, > the child clocks will be able to get information about their parent - like > rate etc. > > Suggested-by: Stephen

[PATCH] isdn/hisax: Convert use of __constant_cpu_to_le16 to cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

Re: [PATCH v3 3/5] clk: add support for clocks provided by SCP(System Control Processor)

2015-06-05 Thread Stephen Boyd
On 06/05, Sudeep Holla wrote: > > > On 05/06/15 10:36, Sudeep Holla wrote: > > > > > >On 04/06/15 21:20, Stephen Boyd wrote: > >>On 05/27, Sudeep Holla wrote: > > [...] > > >>>+ > >>>+static unsigned long scpi_clk_recalc_rate(struct clk_hw *hw, > >>>+unsigned

Re: [PATCHv3 2/2] clk: socfpga: make use of of_clk_parent_fill helper function

2015-06-05 Thread Stephen Boyd
On 06/05, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Use of_clk_parent_fill to fill in the parent clock's array. > > Signed-off-by: Dinh Nguyen > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative

Re: [PATCHv3 1/2] clk: of: helper for filling parent clock array and return num of parents

2015-06-05 Thread Stephen Boyd
On 06/05, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Sprinkled all through the platform clock drivers are code like this to > fill the clock parent array: > > for (i = 0; i < num_parents; ++i) > parent_names[i] = of_clk_get_parent_name(np, i); > > The of_clk_parent_fill

Re: [PATCH 0/5] Add Mediatek MT8173 subsystem clocks support

2015-06-05 Thread Stephen Boyd
On 06/05, James Liao wrote: > Hi Stephen, > > On Thu, 2015-06-04 at 14:02 -0700, Stephen Boyd wrote: > > On 05/29, Sascha Hauer wrote: > > > Yes. I previously got the impression that the subsystem clocks are not > > > directly associated to the larbs, but needed to be handled by the larb > > > cod

Re: [PATCH 03/10] x86/intel_rapl: Modify hot cpu notification handling for RAPL

2015-06-05 Thread Vikas Shivappa
+ Andi, Stephan, Boris and Jacob for RAPL patch On Thu, 4 Jun 2015, Vikas Shivappa wrote: This patch modifies the hot cpu notification handling in Intel Running Average Power Limit(RAPL) driver. - to add a cpu reader to the rapl_cpumask(which has one cpu per package set) it uses the exis

[PATCH v2] [SCSI] qla4xxx: Replace __constant_cpu_to_le16 with cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

Re: [PATCH v4 1/5] fs: kiocb: introduce IOCB_DONT_DIRTY_PAGE flag for direct IO

2015-06-05 Thread Ming Lei
On Fri, Jun 5, 2015 at 11:03 PM, Christoph Hellwig wrote: > As mentioned last time a big fat NAK for this one. We generally > do not dirty kernel pages anywhere, so a flag that must alway be set > for default behavior just to prepare for a highy hypothetical user that > in the future might want t

Re: metag test failure in -next due to commit 'module: relocate module_init from init.h to module.h'

2015-06-05 Thread Guenter Roeck
On 06/05/2015 02:39 PM, James Hogan wrote: [ ... ] From e12856c559d7dff2ad4f6497996610e12e7c7e2d Mon Sep 17 00:00:00 2001 From: James Hogan Date: Fri, 5 Jun 2015 22:17:18 +0100 Subject: [PATCH] tty/metag_da: Avoid module_init/module_exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-

[PATCH] tty: Convert use of __constant_htons to htons

2015-06-05 Thread Vaishali Thakkar
In little endian cases, macro htons unfolds to __swab16 which provides special case for constants. In big endian cases, __constant_htons and htons expand directly to the same expression. So, replace __constant_htons with htons with the goal of getting rid of the definition of __constant_htons compl

Re: [PATCH 1/3] acpi: Fix acpi_map_pxm_to_node() to handle numa_off

2015-06-05 Thread Toshi Kani
On Tue, 2015-06-02 at 18:26 -0600, Toshi Kani wrote: > When numa_off is set, NUMA is turned off and node 0 is the only > valid node on the system. The kernel skips parsing ACPI SRAT > table in this case. > > Change acpi_map_pxm_to_node() to always return 0 when numa_off > is set. Also move the r

[PATCH] [SCSI] qla4xxx: Convert __constant_cpu_to_le16 to cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
In big endian cases, macro cpu_to_le16 unfolds to __swab16 which provides special case for constants. In little endian cases, __constant_cpu_to_le16 and cpu_to_le16 expand directly to the same expression. So, replace __constant_cpu_to_le16 with cpu_to_le16 with the goal of getting rid of the defini

Re: [PATCH] cris: Wire up missing syscalls

2015-06-05 Thread Chen Gang
On 6/3/15 23:23, Hans-Peter Nilsson wrote: > > Most people probably guessed correctly that this is related to > building the CRIS v10 kernel with the *-elf toolchain (which has > the convention that symbols are prefixed with underscores for > cris-*-elf and crisv32-*-elf) while (IIUC) the CRIS v32

Re: [PATCH] cris: Wire up missing syscalls

2015-06-05 Thread Chen Gang
On 6/3/15 23:23, Hans-Peter Nilsson wrote: > > Most people probably guessed correctly that this is related to > building the CRIS v10 kernel with the *-elf toolchain (which has > the convention that symbols are prefixed with underscores for > cris-*-elf and crisv32-*-elf) while (IIUC) the CRIS v32

Re: [RFC PATCH 2/3] clk: stm32: Add clock driver for STM32F4[23]xxx devices

2015-06-05 Thread Stephen Boyd
On 06/05, Daniel Thompson wrote: > On 04/06/15 23:07, Stephen Boyd wrote: > >On 05/22, Daniel Thompson wrote: > >>+#include > > > >Are you using this include? > > Not very much? > > Turns out I was relying on these to get kzalloc() defined but there > are better headers for me to use for that!

[git pull] Input updates for 4.1-rc6

2015-06-05 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. Just a couple touchpad drivers fixups. Changelog: - Hans de Goede (2): Input: elantech - fix detection of touchpads where the rev

[PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork

2015-06-05 Thread Aleksa Sarai
Add a new cgroup subsystem callback can_fork that conditionally states whether or not the fork is accepted or rejected by a cgroup policy. In addition, add a cancel_fork callback so that if an error occurs later in the forking process, any state modified by can_fork can be reverted. Allow for a pr

[PATCH v13 5/5] cgroup: implement the PIDs subsystem

2015-06-05 Thread Aleksa Sarai
Adds a new single-purpose PIDs subsystem to limit the number of tasks that can be forked inside a cgroup. Essentially this is an implementation of RLIMIT_NPROC that applies to a cgroup rather than a process tree. However, it should be noted that organisational operations (adding and removing tasks

[PATCH v13 3/5] cgroup, block: implement task_get_css()

2015-06-05 Thread Aleksa Sarai
From: Tejun Heo Implement task_get_css() which find and pins the css for the specified task and subsys. As a task is always associated with an online css for every subsystem except while the css_set update is propagating, task_get_css() retries till css_tryget_online() succeeds. Signed-off-by:

[PATCH v13 1/5] cgroup: use bitmask to filter for_each_subsys

2015-06-05 Thread Aleksa Sarai
Add a new macro for_each_subsys_which that allows all enabled cgroup subsystems to be filtered by a bitmask, such that mask & (1 << ssid) determines if the subsystem is to be processed in the loop body (where ssid is the unique id of the subsystem). Also replace the need_forkexit_callback with two

[PATCH v13 2/5] cgroup: replace explicit ss_mask checking with for_each_subsys_which

2015-06-05 Thread Aleksa Sarai
Replace the explicit checking against ss_masks inside a for_each_subsys block with for_each_subsys_which(..., ss_mask), to take advantage of the more readable (and more efficient) macro. Signed-off-by: Aleksa Sarai --- kernel/cgroup.c | 44 1 file cha

Re: [PATCH RFC] hwspinlock: Don't take software spinlock before hwspinlock

2015-06-05 Thread Jeffrey Hugo
On 6/4/2015 7:09 PM, Ohad Ben-Cohen wrote: On Tue, May 26, 2015 at 11:36 PM, Lina Iyer wrote: Just to make sure I understand, is this how your scenario is solved? - c1 goes down - c0 goes down, carries information about shared resources - c1 takes HWLOCK and calls into SCM, stuck handling FIQs

Re: [PATCH v3] seccomp: add ptrace options for suspend/resume

2015-06-05 Thread Oleg Nesterov
On 06/05, Tycho Andersen wrote: > > right thing to do, just leave out the definition of > may_suspend_seccomp all together, or add in another if defined() in > the header? Just declare it unconditionally in .h. The kernel relies on this kind of dead-code elimination anyway. For example, please loo

[PATCH v13 0/5] cgroup: add PIDs subsystem

2015-06-05 Thread Aleksa Sarai
This is a small update to v12 of the pids patchset[1] (most of which was merged into Tejun's tree, but was later reverted due to some bogus GCC warnings). The main changes are: * Fix up include/linux/cgroup.h changes to take into account Tejun's refactoring of cgroup.h into cgroup-defs.h. * Mov

[PATCH] m32r: Wire up all missing syscalls

2015-06-05 Thread Chen Gang
If some of syscalls are not implemented, they will be redirected to sys_ni_call. The related warnings: :1142:2: warning: #warning syscall timerfd_create not implemented [-Wcpp] :1151:2: warning: #warning syscall timerfd_settime not implemented [-Wcpp] :1154:2: warning: #warning syscall ti

Re: [RFC][PATCH 0/5] Optimize percpu-rwsem

2015-06-05 Thread Oleg Nesterov
On 06/05, Al Viro wrote: > > On Fri, Jun 05, 2015 at 11:08:57PM +0200, Oleg Nesterov wrote: > > On 06/05, Al Viro wrote: > > > > > > FWIW, I hadn't really looked into stop_machine uses, but fs/locks.c one > > > is really not all that great - there we have a large trashcan of a list > > > (every fil

[PATCH] Staging: comedi: daqboard2000: fixed whitespace coding style issue

2015-06-05 Thread Dennis Chen
>From 843d038eec5ac2c59d3138f19ae52828098c7d50 Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Fri, 5 Jun 2015 15:42:37 -0700 Subject: [PATCH] Staging: comedi: daqboard2000: fixed whitespace coding style issue Fixed whitespace coding style issue. Signed-off-by: Dennis Chen --- drivers/stagin

[PATCH v4 2/3] net/phy: micrel: Comment MMD address of extended registers

2015-06-05 Thread Jaeden Amero
There are some defines for a few pad skew related extended registers. Specify for which MMD Address (dev_addr) they are for. Signed-off-by: Jaeden Amero --- drivers/net/phy/micrel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 59cc

[PATCH v4 3/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
Link failures have been observed when using the KSZ9031 with HP 1810-8G and HP 1910-8G network switches. Center the FLP timing at 16ms to help avoid intermittent link failures. >From the KSZ9031RNX and KSZ9031MNX data sheets revision 2.2, section "Auto-Negotiation Timing": The KSZ9031[RNX

[PATCH v4 1/3] net/phy: micrel: Be more const correct

2015-06-05 Thread Jaeden Amero
In a few places in this driver, we weren't using const where we could have. Use const more. In addition, change the arrays of strings in ksz9031_config_init() to be not only const, but also static. Signed-off-by: Jaeden Amero --- drivers/net/phy/micrel.c | 29 +++-- 1 fi

[PATCH v4 0/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
In v2, we add an additional cleanup commit to make an array of strings static const and to improve const correctness generally. We also no longer unnecessarily initialize the result variable in ksz9031_center_flp_timing(). In v3, we remove the unnecessary result variable from ksz9031_config_init()

Re: [PATCH] block: Make CFQ default to IOPS mode on SSDs

2015-06-05 Thread Tahsin Erdogan
On Wed, May 27, 2015 at 1:14 PM, Tahsin Erdogan wrote: > On Tue, May 19, 2015 at 1:55 PM, Tahsin Erdogan wrote: >> CFQ idling causes reduced IOPS throughput on non-rotational disks. >> Since disk head seeking is not applicable to SSDs, it doesn't really >> help performance by anticipating future

[PATCH] EDAC, mce_amd_inj: Include irq_vectors header to fix build errors

2015-06-05 Thread Aravind Gopalakrishnan
Even though !CONFIG_SMP and MCE injection are practically mutually exclusive, it's better to include irq_vectors.h just in case randconfig builders out there don't set CONFIG_SMP. When that happens, DEFERRED_ERROR_VECTOR and THRESHOLD_APIC_VECTOR macro definitions go out of scope and kernel build

Re: [PATCH] Doc:nfc: Fix typo in nfc-hci.txt

2015-06-05 Thread Jonathan Corbet
On Fri, 5 Jun 2015 21:38:19 +0900 Masanari Iida wrote: > This patch fix a spelling typo in nfc-hci.txt Applied to the docs tree, thanks. jon -- 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

[PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660

2015-06-05 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- .../bindings/pinctrl/qcom,msm8660-pinctrl.txt | 90 ++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,msm8660-pinctrl.txt diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,

[PATCH 1/3] pinctrl: qcom: Add MSM8660 pinctrl definitions

2015-06-05 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-msm8660.c | 984 + 3 files changed, 993 insertions(+) create mode 100644 drivers/pinctrl/qcom/pinctrl-ms

[PATCH 3/3] ARM: dts: qcom: Replace gpio node with pinctrl node

2015-06-05 Thread Bjorn Andersson
Replace the standalone gpio driver with pinctrl-msm as we now have msm8660 support there. Signed-off-by: Bjorn Andersson --- arch/arm/boot/dts/qcom-msm8660.dtsi | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8660.dtsi b/arch/arm/boot/dt

[PATCH 0/3] Pinctrl support for msm8660

2015-06-05 Thread Bjorn Andersson
Per your request Linus, happy birthday! Regards, Bjorn Bjorn Andersson (3): pinctrl: qcom: Add MSM8660 pinctrl definitions pinctrl: dt-binding: Add DT binding documentation for MSM8660 ARM: dts: qcom: Replace gpio node with pinctrl node .../bindings/pinctrl/qcom,msm8660-pinctrl.txt |

Re: [PATCH v3 3/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
On 06/05/2015 05:43 PM, Florian Fainelli wrote: > On 05/06/15 15:40, Jaeden Amero wrote: >> Link failures have been observed when using the KSZ9031 with HP 1810-8G >> and HP 1910-8G network switches. Center the FLP timing at 16ms to help >> avoid intermittent link failures. >> >> From the KSZ9031RN

Re: [PATCH v3 0/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Florian Fainelli
On 05/06/15 15:40, Jaeden Amero wrote: > In v2, we add an additional cleanup commit to make an array of strings > static const and to improve const correctness generally. We also no longer > unnecessarily initialize the result variable in > ksz9031_center_flp_timing(). > > In v3, we remove the unn

Re: [PATCH v3 3/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Florian Fainelli
On 05/06/15 15:40, Jaeden Amero wrote: > Link failures have been observed when using the KSZ9031 with HP 1810-8G > and HP 1910-8G network switches. Center the FLP timing at 16ms to help > avoid intermittent link failures. > > From the KSZ9031RNX and KSZ9031MNX data sheets revision 2.2, section > "

[PATCH v3 1/3] net/phy: micrel: Be more const correct

2015-06-05 Thread Jaeden Amero
In a few places in this driver, we weren't using const where we could have. Use const more. In addition, change the arrays of strings in ksz9031_config_init() to be not only const, but also static. Signed-off-by: Jaeden Amero --- drivers/net/phy/micrel.c | 29 +++-- 1 fi

[PATCH v3 3/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
Link failures have been observed when using the KSZ9031 with HP 1810-8G and HP 1910-8G network switches. Center the FLP timing at 16ms to help avoid intermittent link failures. >From the KSZ9031RNX and KSZ9031MNX data sheets revision 2.2, section "Auto-Negotiation Timing": The KSZ9031[RNX

[PATCH v3 2/3] net/phy: micrel: Comment MMD address of extended registers

2015-06-05 Thread Jaeden Amero
There are some defines for a few pad skew related extended registers. Specify for which MMD Address (dev_addr) they are for. Signed-off-by: Jaeden Amero --- drivers/net/phy/micrel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 59cc

[PATCH v3 0/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
In v2, we add an additional cleanup commit to make an array of strings static const and to improve const correctness generally. We also no longer unnecessarily initialize the result variable in ksz9031_center_flp_timing(). In v3, we remove the unnecessary result variable from ksz9031_config_init()

Re: [PATCH v2 3/3] net/phy: micrel: Center FLP timing at 16ms

2015-06-05 Thread Jaeden Amero
On 06/05/2015 04:09 PM, Sergei Shtylyov wrote: >> @@ -441,6 +461,7 @@ static int ksz9031_config_init(struct phy_device >> *phydev) >> "txd2-skew-ps", "txd3-skew-ps" >> }; >> static const char *control_skews[2] = {"txen-skew-ps", >> "rxdv-skew-ps"}; >> +int result; > >

Re: [patch 2/7] timer: Remove FIFO guarantee

2015-06-05 Thread George Spelvin
Two thoughts: 1) It's not clear that timer slack has violated the FIFO guarantee. Remember, the guarantee only applies when two timers have the same (absolute) timeout; i.e. are requested for the same time. For two entries with the same timeout, applying slack will produce the sam

[PATCH] net/bonding: fix propagation of user-specified bond MAC

2015-06-05 Thread Jarod Wilson
Its possible for users to specify their own MAC address for a bonded link, and this used to work, until sometime in 2013... First, commit 409cc1f8a changed a condition to set the bond's mac to a slave device's, dropping the is_zero_ether_addr() check in favor of using bond->dev_addr_from_first. N

Re: [PATCH v4 1/9] introduce __pfn_t for scatterlists and pmem

2015-06-05 Thread Dan Williams
On Fri, Jun 5, 2015 at 2:37 PM, Linus Torvalds wrote: > On Fri, Jun 5, 2015 at 2:19 PM, Dan Williams wrote: >> +enum { >> +#if BITS_PER_LONG == 64 >> + PFN_SHIFT = 3, >> + /* device-pfn not covered by memmap */ >> + PFN_DEV = (1UL << 2), >> +#else >> + PFN_SHIFT = 2, >> +#

Re: [PATCH v3] fusion: remove dead MTRR code

2015-06-05 Thread Luis R. Rodriguez
On Fri, Jun 05, 2015 at 05:17:08PM +0530, Sreekanth Reddy wrote: > On Thu, Jun 4, 2015 at 11:11 PM, Luis R. Rodriguez wrote: > > On Thu, Jun 04, 2015 at 10:20:23AM +0530, Sreekanth Reddy wrote: > >> Hi Luis, > >> > >> Sorry for delay in response. Actually I was looking for the history of > >> this

Re: [RFC][PATCH 0/5] Optimize percpu-rwsem

2015-06-05 Thread Al Viro
On Fri, Jun 05, 2015 at 11:08:57PM +0200, Oleg Nesterov wrote: > On 06/05, Al Viro wrote: > > > > FWIW, I hadn't really looked into stop_machine uses, but fs/locks.c one > > is really not all that great - there we have a large trashcan of a list > > (every file_lock on the system) and the only use

Re: [PATCH v3] seccomp: add ptrace options for suspend/resume

2015-06-05 Thread Tycho Andersen
On Fri, Jun 05, 2015 at 11:52:08PM +0200, Oleg Nesterov wrote: > Tycho, > > I hate myself, but I have another nit ;) again, it is not that I think > you should updtate the patch, just fyi... No worries :) > On 06/05, Tycho Andersen wrote: > > > > --- a/include/linux/seccomp.h > > +++ b/include/l

Re: [v3 24/26] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-06-05 Thread Marcelo Tosatti
On Tue, Apr 14, 2015 at 07:37:44AM +, Wu, Feng wrote: > > > > -Original Message- > > From: Marcelo Tosatti [mailto:mtosa...@redhat.com] > > Sent: Tuesday, March 31, 2015 7:56 AM > > To: Wu, Feng > > Cc: h...@zytor.com; t...@linutronix.de; mi...@redhat.com; x...@kernel.org; > > g...@ke

Re: [PATCH] sctp: Simplify and make the function sctp_assoc_lookup_laddr bool

2015-06-05 Thread Andrej Manduch
Hi Neil, I would like to kindly ask you to always put full patch in reply when you are replying to Nicks patch. Because he's banned from vger and only people on cc are able to see his patches and this is only way for rest of us to see what is in his patch. Thanks. On 06/05/2015 03:16 PM, Nei

Re: [PATCH v3] seccomp: add ptrace options for suspend/resume

2015-06-05 Thread Oleg Nesterov
Tycho, I hate myself, but I have another nit ;) again, it is not that I think you should updtate the patch, just fyi... On 06/05, Tycho Andersen wrote: > > --- a/include/linux/seccomp.h > +++ b/include/linux/seccomp.h > @@ -95,4 +95,14 @@ static inline void get_seccomp_filter(struct task_struct

Re: [PATCH V2 3/3] acpi, apei: use EFI memmap to map GHES memory

2015-06-05 Thread Zhang, Jonathan Zhixiong
On 6/5/2015 10:12 AM, Borislav Petkov wrote: On Fri, Jun 05, 2015 at 10:05:13AM -0700, Zhang, Jonathan Zhixiong wrote: What is DDR? I think this needs to be clarified first before we go any further. I thought the word "memory" might be confusing, because there are So you mean normal RAM he

Re: [PATCH 09/10] uprobes: Change prepare_uretprobe() to (try to) flush the dead frames

2015-06-05 Thread Oleg Nesterov
On 05/04, Oleg Nesterov wrote: > > --- a/kernel/events/uprobes.c > +++ b/kernel/events/uprobes.c > @@ -1522,6 +1522,16 @@ static unsigned long get_trampoline_vaddr(void) > return trampoline_vaddr; > } > > +static void cleanup_return_instances(struct uprobe_task *utask, struct > pt_regs *r

[PATCH] block, cgroup: implement policy-specific per-blkcg data

2015-06-05 Thread Arianna Avanzini
The block IO (blkio) controller enables the block layer to provide service guarantees in a hierarchical fashion. Specifically, service guarantees are provided by registered request-accounting policies. As of now, a proportional-share and a throttling policy are available. They are implemented, resp

Re: metag test failure in -next due to commit 'module: relocate module_init from init.h to module.h'

2015-06-05 Thread James Hogan
On Fri, Jun 05, 2015 at 01:40:55PM -0700, Guenter Roeck wrote: > My qemu metag runtime test fails in -next due to commit 5ebbb3badaa8 ("module: > relocate module_init from init.h to module.h"). Bisect log is as follows. > A log of a failed test is available at > http://server.roeck-us.net:8010/buil

Re: [PATCH] EDAC, altera: wrap edac pm with a CONFIG_PM

2015-06-05 Thread Thor Thayer
Hi Boris, On 06/05/2015 10:15 AM, Borislav Petkov wrote: On Fri, Jun 05, 2015 at 08:49:15AM -0500, dingu...@opensource.altera.com wrote: From: Alan Tull Suspend-to-RAM and EDAC support are mutually exclusive on SOCFPGA. If the EDAC is enabled, it will prevent the platform from going into sus

Re: [PATCH v4 1/9] introduce __pfn_t for scatterlists and pmem

2015-06-05 Thread Linus Torvalds
On Fri, Jun 5, 2015 at 2:19 PM, Dan Williams wrote: > +enum { > +#if BITS_PER_LONG == 64 > + PFN_SHIFT = 3, > + /* device-pfn not covered by memmap */ > + PFN_DEV = (1UL << 2), > +#else > + PFN_SHIFT = 2, > +#endif > + PFN_MASK = (1UL << PFN_SHIFT) - 1, > + PFN_

Re: [RFC PATCH] Rename ia32entry.S to entry_64_compat_32.S

2015-06-05 Thread Andy Lutomirski
On Fri, Jun 5, 2015 at 2:09 PM, H. Peter Anvin wrote: > Call it sys if it is now only the system call entry points. Agreed with > _64_compat too. > > Breaking up these snarls of spaghetti assembly will be a blessing. I'm not too picky about what we call it or whether we merge it with entry_64.S

Re: [RFC][PATCH 0/2] Android style loosening of cgroup attach permissions

2015-06-05 Thread John Stultz
On Thu, Jun 4, 2015 at 11:36 AM, Johannes Weiner wrote: > On Thu, Jun 04, 2015 at 10:11:17AM -0700, John Stultz wrote: >> On Tue, Jun 2, 2015 at 10:50 PM, Tejun Heo wrote: >> > memcg usage came up a while ago and there wasn't anything major which >> > can't be achieved (usually better) by followi

Re: [RFC][PATCH 0/2] Android style loosening of cgroup attach permissions

2015-06-05 Thread John Stultz
On Thu, Jun 4, 2015 at 11:36 AM, Johannes Weiner wrote: > On Thu, Jun 04, 2015 at 10:11:17AM -0700, John Stultz wrote: >> On Tue, Jun 2, 2015 at 10:50 PM, Tejun Heo wrote: >> > memcg usage came up a while ago and there wasn't anything major which >> > can't be achieved (usually better) by followi

  1   2   3   4   5   6   7   8   9   >