Re: [PATCH] soft lockup: kill realtime threads before panic

2015-07-21 Thread yalin wang
> On Jul 22, 2015, at 06:07, Spencer Baugh wrote: > > From: Joern Engel > > We have observed cases where the soft lockup detector triggered, but no > kernel bug existed. Instead we had a buggy realtime thread that > monopolized a cpu. So let's kill the responsible party and not panic > the e

Re: [PATCH] cpufreq: Avoid double addition/removal of sysfs links

2015-07-21 Thread Viresh Kumar
Back now, sorry for the delay .. On 20-07-15, 11:36, Russell King - ARM Linux wrote: > Why do we try to create the symlink for CPU devices which we haven't > "detected" yet (iow, we haven't had cpufreq_add_dev() called for)? > Surely we are guaranteed to have cpufreq_add_dev() called for every > C

Re: Why linux console designed to work in polling mode?

2015-07-21 Thread yalin wang
> On Jul 22, 2015, at 14:27, Arun KS wrote: > > When i checked how kernel printing works, i mentioned that it takes > messages from log_buffer in console_unlock and gives it to > call_console_drivers -> ...-> some uart bsp function. Basically, as i > see this BSP realization tries to flush all m

Re: [RFCv5 PATCH 11/46] sched: Remove blocked load and utilization contributions of dying tasks

2015-07-21 Thread Leo Yan
On Tue, Jul 07, 2015 at 07:23:54PM +0100, Morten Rasmussen wrote: > Tasks being dequeued for the last time (state == TASK_DEAD) are dequeued > with the DEQUEUE_SLEEP flag which causes their load and utilization > contributions to be added to the runqueue blocked load and utilization. > Hence they w

Re: [PATCH] cpufreq: Drop unnecessary arguments from two functions

2015-07-21 Thread Viresh Kumar
On 22-07-15, 04:09, Rafael J. Wysocki wrote: > static int cpufreq_remove_dev(struct device *dev, struct subsys_interface > *sif) > { > unsigned int cpu = dev->id; > + struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); > int ret; > > /* > @@ -1530,7 +1525,6 @@

Re: [PATCH 0/5] Making the generic ACPI GSI layer irqdomain aware

2015-07-21 Thread Hanjun Guo
Hi Marc, On 07/21/2015 06:07 PM, Marc Zyngier wrote: The irqdomain code is not entierely really ACPI friendly, as it has some built-in knowledge of the device-tree. Nothing too harmful, but enough to scare the ARM ACPI developpers which end up with their own version of the square wheel. This sm

Re: [PATCH 3/4] clk: 88pm800: Add clk provider driver for 88pm800 family of devices

2015-07-21 Thread Krzysztof Kozlowski
On 22.07.2015 15:27, Vaibhav Hiremath wrote: > > > On Wednesday 22 July 2015 02:22 AM, Stephen Boyd wrote: >> On 07/21/2015 12:36 PM, Vaibhav Hiremath wrote: >>> >>> On Wednesday 22 July 2015 12:40 AM, Stephen Boyd wrote: On 07/21/2015 04:07 AM, Vaibhav Hiremath wrote: > + > > > >

[PATCH v2 1/3] xen-blkfront: introduce blkfront_gather_backend_features()

2015-07-21 Thread Bob Liu
There is a bug when migrate from !feature-persistent host to feature-persistent host, because domU still thinks new host/backend doesn't support persistent. Dmesg like: backed has not unmapped grant: 839 backed has not unmapped grant: 773 backed has not unmapped grant: 773 backed has not unmapped g

[PATCH v2] xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()

2015-07-21 Thread Bob Liu
The BUG_ON() in purge_persistent_gnt() will be triggered when previous purge work haven't finished. There is a work_pending() before this BUG_ON, but it doesn't account if the work is still currently running. Signed-off-by: Bob Liu --- Change in v2: * Replace with work_busy() --- drivers/block/

[PATCH v2 2/3] xen-blkfront: don't add indirect pages to list when !feature_persistent

2015-07-21 Thread Bob Liu
We should consider info->feature_persistent when adding indriect page to list info->indirect_pages, else the BUG_ON() in blkif_free() would be triggered. Signed-off-by: Bob Liu --- drivers/block/xen-blkfront.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/b

Re: [PATCH TRIVIAL] README: GTK+ is a acronym

2015-07-21 Thread Jonathan Corbet
On Tue, 21 Jul 2015 12:19:17 -0300 Diego Viola wrote: > When will my patch get merged with the Linus tree? It's in the general queue, so it will find its way in during the 4.3 merge window. Thanks, jon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH] soft lockup: kill realtime threads before panic

2015-07-21 Thread Jörn Engel
On Wed, Jul 22, 2015 at 07:41:48AM +0200, Mike Galbraith wrote: > On Tue, 2015-07-21 at 22:18 -0700, Jörn Engel wrote: > > > > Not sure if this patch is something for mainline, but those two > > alternatives have problems of their own. Not panicking on lockups can > > leave a system disabled unti

Re: [PATCH 3/4] clk: 88pm800: Add clk provider driver for 88pm800 family of devices

2015-07-21 Thread Vaibhav Hiremath
On Wednesday 22 July 2015 02:22 AM, Stephen Boyd wrote: On 07/21/2015 12:36 PM, Vaibhav Hiremath wrote: On Wednesday 22 July 2015 12:40 AM, Stephen Boyd wrote: On 07/21/2015 04:07 AM, Vaibhav Hiremath wrote: + +static int pm800_clk_remove(struct platform_device *pdev) +{ +struct pm

Why linux console designed to work in polling mode?

2015-07-21 Thread Arun KS
forwarding email to LKML. Please enlighten on this question. Googling doesn't helped so far. Thanks, Arun From: Alexander Date: Sat, Jul 18, 2015 at 11:23 AM Subject: Delegating printk work to UART interrupt To: kernelnewb...@kernelnewbies.org Hi! When i checked how kernel printing works, i me

Re: [PATCH v2 2/3] x86/ldt: Make modify_ldt optional

2015-07-21 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Jul 21, 2015 at 11:06 PM, Ingo Molnar wrote: > > > > * Andy Lutomirski wrote: > > > >> On Tue, Jul 21, 2015 at 1:28 PM, Brian Gerst wrote: > >> > On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: > >> >> > >> >> The modify_ldt syscall exposes a large

Re: [PATCH v2 2/3] x86/ldt: Make modify_ldt optional

2015-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2015 at 11:06 PM, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > >> On Tue, Jul 21, 2015 at 1:28 PM, Brian Gerst wrote: >> > On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: >> >> >> >> The modify_ldt syscall exposes a large attack surface and is unnecessary >> >> for

Re: [PATCH v3] asm-generic: {get,put}_user ptr argument evaluate only 1 time

2015-07-21 Thread Yoshinori Sato
On Tue, 21 Jul 2015 23:06:13 +0900, David Howells wrote: > > Yoshinori Sato wrote: > > > #define get_user(x, ptr) \ > > ({ \ > > + uintptr_t __uip = (uintptr_t)(ptr); \ > > const?

Re: linux-next: build failure after merge of the wireless-drivers-next tree

2015-07-21 Thread Kalle Valo
cae761b5a6bd ("bcma: populate bus DT subnodes as platform_device-s") > > I have used the wireless-drivers-next tree from next-20150721 for today. Sorry about that. Rafal, can you please send a patch to fix this? I'll apply it ASAP. -- Kalle Valo -- To unsubscribe from this lis

Re: [PATCH v2 2/3] x86/ldt: Make modify_ldt optional

2015-07-21 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Jul 21, 2015 at 1:28 PM, Brian Gerst wrote: > > On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: > >> > >> The modify_ldt syscall exposes a large attack surface and is unnecessary > >> for > >> modern userspace. Make it optional. > >> > >> Signed-of

Re: [PATCH v3 7/8] perf: Define PMU_TXN_READ interface

2015-07-21 Thread Peter Zijlstra
On Tue, Jul 21, 2015 at 06:50:45PM -0700, Sukadev Bhattiprolu wrote: > We are trying to use the following interface: > > start_txn(pmu, PERF_PMU_TXN_READ); > > perf_event_read(leader); > list_for_each(sibling, &leader->sibling_list, group_entry) > perf_event_read(s

Re: [PATCH v2 3/4] touchscreen: colibri-vf50-ts: Add touchscreen support for Colibri VF50

2015-07-21 Thread maitysanchayan
On 15-07-21 10:20:44, Dmitry Torokhov wrote: > Hi Stefan, > > On Tue, Jul 21, 2015 at 04:43:36PM +0200, Stefan Agner wrote: > > Hi Dmitry, > > > > As the original author of the driver I have some remarks to your review > > > > On 2015-07-18 01:42, Dmitry Torokhov wrote: > > >> +/

[PATCH] acpi-video: Fix brightness keys for Thinkpad X240

2015-07-21 Thread Mathieu OTHACEHE
Thinkpad X240 laptop has a working acpi_video backlight control but using the default native backlight control, brightness keys does not work. This patch force acpi_video use for this laptop by adding an exception in video_detect_dmi_table. Signed-off-by: Mathieu OTHACEHE --- drivers/acpi/video

Re: [PATCH] soft lockup: kill realtime threads before panic

2015-07-21 Thread Mike Galbraith
On Tue, 2015-07-21 at 22:18 -0700, Jörn Engel wrote: > On Wed, Jul 22, 2015 at 06:36:30AM +0200, Mike Galbraith wrote: > > On Tue, 2015-07-21 at 15:07 -0700, Spencer Baugh wrote: > > > > > We have observed cases where the soft lockup detector triggered, but no > > > kernel bug existed. Instead we

[PATCH V3] x86/mm/pat: Do a small optimization and fix in reserve_memtype

2015-07-21 Thread Pan Xinhui
From: Pan Xinhui It's more reasonable to unlock memtype_lock right after rbt_memtype_check_insert. memtype_lock protects all data stored in rb-tree from multiple access. It's not cool to call kfree, pr_info, etc with this lock held. So move spin_unlock a little ahead. If *new* succeed to be stor

Re: [PATCH 2/3] xen-blkfront: rm BUG_ON(info->feature_persistent) in blkif_free

2015-07-21 Thread Bob Liu
On 07/22/2015 12:43 PM, Bob Liu wrote: > > On 07/21/2015 05:25 PM, Roger Pau Monné wrote: >> El 21/07/15 a les 5.30, Bob Liu ha escrit: >>> This BUG_ON() in blkif_free() is incorrect, because indirect page can be >>> added >>> to list info->indirect_pages in blkif_completion() no matter >>> fe

Re: [PATCH] cgroup: net_cls: fix false-positive "suspicious RCU usage"

2015-07-21 Thread David Miller
From: Konstantin Khlebnikov Date: Tue, 21 Jul 2015 19:46:29 +0300 > @@ -23,7 +23,8 @@ static inline struct cgroup_cls_state *css_cls_state(struct > cgroup_subsys_state > > struct cgroup_cls_state *task_cls_state(struct task_struct *p) > { > - return css_cls_state(task_css(p, net_cls_cgrp

Re: [PATCH v2] openvswitch: allocate nr_node_ids flow_stats instead of num_possible_nodes

2015-07-21 Thread David Miller
From: Chris J Arges Date: Tue, 21 Jul 2015 12:36:33 -0500 > Some architectures like POWER can have a NUMA node_possible_map that > contains sparse entries. This causes memory corruption with openvswitch > since it allocates flow_cache with a multiple of num_possible_nodes() and > assumes the node

Re: [PATCH v2 1/2] input: touchscreen: pixcir_i2c_ts: Add support for optional wakeup interrupt

2015-07-21 Thread Vignesh R
Hi Dmitry, On 07/20/2015 11:54 AM, Dmitry Torokhov wrote: > On Sun, Jul 19, 2015 at 11:09:30PM -0700, Tony Lindgren wrote: >> * Vignesh R [150719 21:53]: >>> @@ -445,6 +443,8 @@ static struct pixcir_ts_platform_data >>> *pixcir_parse_dt(struct device *dev) >>> dev_dbg(dev, "%s: x %d, y %d, g

linux-next: Tree for Jul 22

2015-07-21 Thread Stephen Rothwell
Hi all, Changes since 20150721: The nfsd tree lost its build failure. The wireless-drivers-next tree gained a build failure so I used the version from next-20150721. The kvms390 tree gained a conflict against the s390 tree. The gpio tree lost its build failure. Non-merge commits (relative to

[patch] workqueue: schedule WORK_CPU_UNBOUND work on wq_unbound_cpumask CPUs

2015-07-21 Thread Mike Galbraith
On Tue, 2015-07-21 at 10:55 +0200, Mike Galbraith wrote: > On Sun, 2015-07-19 at 10:02 +0200, Mike Galbraith wrote: > > > Why do we do nothing about these allegedly unbound work items? > > My box seems to think the answer is: no reason other than nobody having > asked the source to please not do

Re: [PATCH V2 net 0/3] BPF JIT fixes for ARM

2015-07-21 Thread David Miller
From: Nicolas Schichan Date: Tue, 21 Jul 2015 14:14:11 +0200 > These patches are fixing bugs in the ARM JIT and should probably find > their way to a stable kernel. All 60 test_bpf tests in Linux 4.1 release > are now passing OK (was 54 out of 60 before). Series applied, thanks. -- To unsubscrib

Re: [PATCH] soft lockup: kill realtime threads before panic

2015-07-21 Thread Jörn Engel
On Wed, Jul 22, 2015 at 06:36:30AM +0200, Mike Galbraith wrote: > On Tue, 2015-07-21 at 15:07 -0700, Spencer Baugh wrote: > > > We have observed cases where the soft lockup detector triggered, but no > > kernel bug existed. Instead we had a buggy realtime thread that > > monopolized a cpu. So le

Re: linux 4.2-rc1 broken Nokia N900

2015-07-21 Thread Michael Welling
On Wed, Jul 22, 2015 at 04:03:07AM +0200, Sebastian Reichel wrote: > Hi, > > On Tue, Jul 21, 2015 at 07:17:41PM -0500, Michael Welling wrote: > > On Tue, Jul 21, 2015 at 11:34:41AM +0200, Pavel Machek wrote: > > > > This code has my head spinning. > > > > I found that the errors do not occur whe

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-07-21 Thread Michael Ellerman
On Wed, 2015-07-22 at 00:46 -0400, David Long wrote: > On 06/29/15 23:29, Michael Ellerman wrote: > > On Wed, 2015-06-17 at 14:30 -0400, David Long wrote: > >> On 06/16/15 09:17, Rob Herring wrote: > >>> On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote: > > #define REG_OFFSET_NAME(r

Re: [PATCH v5 7/7] powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-07-21 Thread Daniel Axtens
> +static void nest_change_cpu_context(int old_cpu, int new_cpu) > +{ > + int i; > + > + for (i = 0; per_nest_pmu_arr[i] != NULL; i++) > + perf_pmu_migrate_context(&per_nest_pmu_arr[i]->pmu, > + old_cpu, new_cpu); From patch 4, I see p

Re: [PATCH] block: add a bi_error field to struct bio

2015-07-21 Thread NeilBrown
On Mon, 20 Jul 2015 15:29:37 +0200 Christoph Hellwig wrote: > Currently we have two different ways to signal an I/O error on a BIO: > > (1) by clearing the BIO_UPTODATE flag > (2) by returning a Linux errno value to the bi_end_io callback > > The first one has the drawback of only communicati

Re: [PATCH v5 6/7] powerpc/powernv: generic nest pmu event functions

2015-07-21 Thread Daniel Axtens
> +static void p8_nest_read_counter(struct perf_event *event) > +{ > + uint64_t *addr; > + u64 data = 0; You've got a u64 and a uint64_t, and then... > + > + addr = (u64 *)event->hw.event_base; ... you cast to event_base to a u64 pointer, which you assign to a uint64_t pointer. > +

Re: Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-21 Thread Inki Dae
On 2015년 07월 22일 11:02, Joonyoung Shim wrote: > On 07/21/2015 10:19 PM, Krzysztof Kozlowski wrote: >> Hi, >> >> Today's linux-next (next-20150721) encounters boot failures on Exynos >> Octa (Exynos5422) based boards. Th

Re: [PATCH v5 7/8] dmaengine: add a driver for Intel integrated DMA 64-bit

2015-07-21 Thread Vinod Koul
On Tue, Jul 21, 2015 at 10:08:28AM +0300, Andy Shevchenko wrote: > On Tue, Jul 21, 2015 at 7:50 AM, Vinod Koul wrote: > > On Mon, Jul 20, 2015 at 11:46:28AM +0300, Andy Shevchenko wrote: > >> >> +static void idma64_chan_init(struct idma64 *idma64, struct idma64_chan > >> >> *idma64c) > >> >> +{ >

Re: [PATCH 08/11] MTD: m25p80: Add option to limit SPI transfer size.

2015-07-21 Thread Vinod Koul
On Tue, Jul 21, 2015 at 10:14:11AM +0200, Michal Suchanek wrote: > > Or alternatively we could publish the limitations of the channel using > > capabilities so SPI knows I have a dmaengine channel and it can transfer > > max N > > length transfers so would be able to break rather than guessing it

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-07-21 Thread David Long
On 06/29/15 23:29, Michael Ellerman wrote: On Wed, 2015-06-17 at 14:30 -0400, David Long wrote: On 06/16/15 09:17, Rob Herring wrote: On Mon, Jun 15, 2015 at 11:42 AM, David Long wrote: #define REG_OFFSET_NAME(r) \ {.name = #r, .offset = offsetof(struct pt_regs, ARM_##r)} #de

Re: [PATCH v5 5/7] powerpc/powernv: add event attribute and group to nest pmu

2015-07-21 Thread Daniel Axtens
On Thu, 2015-07-16 at 16:43 +0530, Madhavan Srinivasan wrote: > Add code to create event/format attributes and attribute groups for > each nest pmu. > > Cc: Michael Ellerman > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Anton Blanchard > Cc: Sukadev Bhattiprolu > Cc: Anshuman Khandu

[PATCH 16/39 RESEND] perf tests: Add LLVM test for eBPF on-the-fly compiling

2015-07-21 Thread Wang Nan
Previous patches introduce llvm__compile_bpf() to compile source file to eBPF object. This patch adds testcase to test it. It also tests libbpf by opening generated object after applying next patch which introduces HAVE_LIBBPF_SUPPORT option. Since llvm__compile_bpf() prints long messages which us

Re: [RFC PATCH 04/21] x86/hweight: Add stack frame dependency for __arch_hweight*()

2015-07-21 Thread Borislav Petkov
On Tue, Jul 21, 2015 at 09:39:23PM -0700, Andy Lutomirski wrote: > So your shiny perf profile shows cumulative time in whatever called > them. Sure, this is arguably silly if we're stuck with frame > pointers. You can count 20ish cycles tops for any one of them. At least that was from the last t

Re: [PATCH 2/3] xen-blkfront: rm BUG_ON(info->feature_persistent) in blkif_free

2015-07-21 Thread Bob Liu
On 07/21/2015 05:25 PM, Roger Pau Monné wrote: > El 21/07/15 a les 5.30, Bob Liu ha escrit: >> This BUG_ON() in blkif_free() is incorrect, because indirect page can be >> added >> to list info->indirect_pages in blkif_completion() no matter >> feature_persistent >> is true or false. >> >> Signed

Re: [PATCH v2] Do not reserve crashkernel high memory if crashkernel low memory reserving failed

2015-07-21 Thread Minfei Huang
On 07/21/15 at 12:22pm, Yinghai Lu wrote: > On Tue, Jul 21, 2015 at 1:58 AM, Baoquan He wrote: > > > Maybe system which don't need low memory is rare, only for testing? > > No, it is not rare. > > All recent intel based systems with iommu support does not need low. > > And those systems get pu

Re: perf test LLVM was: Re: [GIT PULL 00/39] perf tools: filtering events using eBPF programs

2015-07-21 Thread Wangnan (F)
Hi Arnaldo, I noticed that you have rebase your perf/ebpf branch to 4.2-rc3. I have also done it in my tree. Please see: https://github.com/WangNan0/linux.git ebpf Also, please recollect patch "perf tests: Add LLVM test for eBPF on-the-fly compiling", which adds verbose control. I'll also post

Re: [RFC PATCH 04/21] x86/hweight: Add stack frame dependency for __arch_hweight*()

2015-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2015 at 9:25 PM, Borislav Petkov wrote: > On Tue, Jul 21, 2015 at 05:13:12PM -0700, Andy Lutomirski wrote: >> Enough for oopses, perhaps, but maybe not enough for perf. >> >> It sounds like you want CFI unwinding :) > > What would you want to unwind in those __sw_hweight* almost-tr

Re: [PATCH] soft lockup: kill realtime threads before panic

2015-07-21 Thread Mike Galbraith
On Tue, 2015-07-21 at 15:07 -0700, Spencer Baugh wrote: > We have observed cases where the soft lockup detector triggered, but no > kernel bug existed. Instead we had a buggy realtime thread that > monopolized a cpu. So let's kill the responsible party and not panic > the entire system. If you

Re: [RFC PATCH 04/21] x86/hweight: Add stack frame dependency for __arch_hweight*()

2015-07-21 Thread Borislav Petkov
On Tue, Jul 21, 2015 at 05:13:12PM -0700, Andy Lutomirski wrote: > Enough for oopses, perhaps, but maybe not enough for perf. > > It sounds like you want CFI unwinding :) What would you want to unwind in those __sw_hweight* almost-trivial, tail functions? -- Regards/Gruss, Boris. ECO tip #

Re: Kernel broken on processors without performance counters

2015-07-21 Thread Borislav Petkov
On Tue, Jul 21, 2015 at 02:50:25PM -0400, Jason Baron wrote: > hmmm...so this is a case where need to the default the branch > to the out-of-line branch at boot. That is, we can't just enable > the out-of-line branch at boot time, b/c it might be too late at > that point? IE native_sched_clock() ge

Re: [PATCH v2 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2015 at 7:53 PM, Brian Gerst wrote: > On Tue, Jul 21, 2015 at 10:12 PM, Andy Lutomirski wrote: >> On Tue, Jul 21, 2015 at 7:01 PM, Brian Gerst wrote: >>> On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: modify_ldt has questionable locking and does not synchronize >>>

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-21 Thread Finn Thain
On Wed, 22 Jul 2015, Michael Schmitz wrote: > Hi Finn, > > I'm afraid I cannot test anything on Atari hardware at present - my > Falcon ate it's IDE disk partition table with all the fun that entails. That doesn't sound good. > Haven't even begun to try and recover that yet. > > If you send

Re: [PATCH] ext4 crypto: fix typo

2015-07-21 Thread Theodore Ts'o
On Thu, Jul 09, 2015 at 10:11:05PM +0200, Laurent Navet wrote: > derivatio -> derivation. > > Signed-off-by: Laurent Navet Thanks, applied. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [PATCH v5 4/7] powerpc/powernv: detect supported nest pmus and its events

2015-07-21 Thread Daniel Axtens
> static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; > +static struct nest_pmu *per_nest_pmu_arr[P8_NEST_MAX_PMUS]; > + > +static int nest_event_info(struct property *pp, char *name, > + struct nest_ima_events *p8_events, int string, u32 val) 'int string

Re: [PATCH V2] ext4 crypto: exit cleanly if ext4_derive_key_aes() fails

2015-07-21 Thread Theodore Ts'o
On Thu, Jul 09, 2015 at 10:07:14PM +0200, Laurent Navet wrote: > Return value of ext4_derive_key_aes() is stored but not used. > Add test to exit cleanly if ext4_derive_key_aes() fail. > Also fix coverity CID 1309760. > > Signed-off-by: Laurent Navet Thanks, applied.

Re: [PATCH 09/10] arch: introduce memremap()

2015-07-21 Thread Dan Williams
On Tue, Jul 21, 2015 at 4:58 PM, Luis R. Rodriguez wrote: > On Sun, Jul 19, 2015 at 08:18:23PM -0400, Dan Williams wrote: >> diff --git a/include/linux/io.h b/include/linux/io.h >> index 080a4fbf2ba4..2983b6e63970 100644 >> --- a/include/linux/io.h >> +++ b/include/linux/io.h >> @@ -192,4 +192,15

[PATCH] mac80211_hwsim: unregister genetlink family properly

2015-07-21 Thread Su Kang Yin
During hwsim_init_netlink(), we should call genl_unregister_family() if failed on netlink_register_notifier() since the genetlink is already registered. Signed-off-by: Su Kang Yin --- drivers/net/wireless/mac80211_hwsim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dri

[PATCH] ftrace-update-tracing_thresh-info

2015-07-21 Thread Umesh Tiwari
This patch updates the tracing_thresh information in ftrace documentation file(ftrace.txt). Signed-off-by: Umesh Tiwari --- Documentation/trace/ftrace.txt |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.t

Re: [PATCH 2/2] ext4: implement cgroup writeback support

2015-07-21 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 06:53:13PM -0400, Tejun Heo wrote: > For ordered and writeback data modes, all data IOs go through > ext4_io_submit. This patch adds cgroup writeback support by invoking > wbc_init_bio() from io_submit_init_bio() and wbc_account_io() in > io_submit_add_bh(). Journal data w

Re: [PATCH 1/2] ext4: replace ext4_io_submit->io_op with ->io_wbc

2015-07-21 Thread Theodore Ts'o
On Tue, Jun 16, 2015 at 06:53:12PM -0400, Tejun Heo wrote: > ext4_io_submit_init() takes the pointer to writeback_control to test > its sync_mode and determine between WRITE and WRITE_SYNC and records > the result in ->io_op. This patch makes it record the pointer > directly and moves the test to

Re: [RFC v4 03/25] m68k/atari: Move Atari-specific code out of drivers/char/nvram.c

2015-07-21 Thread Michael Schmitz
Hi Finn, I'm afraid I cannot test anything on Atari hardware at present - my Falcon ate it's IDE disk partition table with all the fun that entails. Haven't even begun to try and recover that yet. If you send a patch I could build a kernel and send that to Christian for testing (if he's got

Re: [PATCH v5 3/7] powerpc/powernv: Nest PMU detection and device tree parser

2015-07-21 Thread Daniel Axtens
Hi, > +static struct perchip_nest_info p8_nest_perchip_info[P8_NEST_MAX_CHIPS]; > + > +static int nest_ima_dt_parser(void) > +{ > + const __be32 *gcid; > + const __be64 *chip_ima_reg; > + const __be64 *chip_ima_size; > + struct device_node *dev; > + struct perchip_nest_info *p8

Re: [PATCH 2/2] watchdog: add wdt shutdown callback to disable wdt if enabled

2015-07-21 Thread Guenter Roeck
On 07/21/2015 08:26 PM, Eddie Huang wrote: From: Greta Zhang Without .shutdown(), watchdog might reset the system during power off. For example, if watchdog's timeout is set to 30s, then it is reset to zero by mtk_wdt_ping(). During power off, no app will ping watchdog, but watchdog is still ru

[PATCH v4 1/3] STM trace event: Adding generic buffer interface driver

2015-07-21 Thread Chunyan Zhang
From: Mathieu Poirier This patch adds a driver that models itself as an stm_source and who's sole purpose is to export an interface to the rest of the kernel. Once the stm and stm_source have been linked via sysfs, everything that is passed to the interface will endup in the STM trace engine. S

[PATCH v4 3/3] trace: Add an output of trace event logs to STM

2015-07-21 Thread Chunyan Zhang
When the trace event happens, the traces would be committed to ring buffer. This patch will add an output of the traces to an STM at this moment, of course the precondition is TRACE_EVENT_STM be configured. Signed-off-by: Chunyan Zhang --- kernel/trace/trace_events.c | 2 ++ kernel/trace/trace_o

[PATCH v4 2/3] trace: Introduce trace log output function for STM

2015-07-21 Thread Chunyan Zhang
This patch introduced a new function to print the trace events logs to STM buffer when the trace event happens. Signed-off-by: Chunyan Zhang --- kernel/trace/Makefile | 1 + kernel/trace/trace_output_stm.c | 22 ++ 2 files changed, 23 insertions(+) create mode 100

[PATCH v4 0/3] Integration of trace events with System Trace IP blocks

2015-07-21 Thread Chunyan Zhang
IP blocks allowing a variety of trace sources to log debugging information to a pre-defined area have been introduced on a couple of architecture [1][2]. These system trace blocks (also known as STM) typically follow the MIPI STPv2 protocol [3] and provide a system wide logging facility to any devi

Re: [PATCH 1/2] watchdog: add wdt suspend/resume support

2015-07-21 Thread Guenter Roeck
On 07/21/2015 08:26 PM, Eddie Huang wrote: From: Greta Zhang add wdt driver suspend/resume support Signed-off-by: Greta Zhang Signed-off-by: Roger Lu Signed-off-by: Eddie Huang --- drivers/watchdog/mtk_wdt.c | 38 ++ 1 file changed, 38 insertions(+) d

[PATCH 1/2] watchdog: add wdt suspend/resume support

2015-07-21 Thread Eddie Huang
From: Greta Zhang add wdt driver suspend/resume support Signed-off-by: Greta Zhang Signed-off-by: Roger Lu Signed-off-by: Eddie Huang --- drivers/watchdog/mtk_wdt.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/driver

[PATCH 2/2] watchdog: add wdt shutdown callback to disable wdt if enabled

2015-07-21 Thread Eddie Huang
From: Greta Zhang Without .shutdown(), watchdog might reset the system during power off. For example, if watchdog's timeout is set to 30s, then it is reset to zero by mtk_wdt_ping(). During power off, no app will ping watchdog, but watchdog is still running and may trigger reset. Signed-off-by:

[PATCH 0/2] Add Mediatek watchdog suspend resume and shutdown

2015-07-21 Thread Eddie Huang
This series add Mediatek watchdog suspend, resume and shutdown support. These patches are based on v4.2-rc1 Greta Zhang (2): watchdog: add wdt suspend/resume support watchdog: add wdt shutdown callback to disable wdt if enabled drivers/watchdog/mtk_wdt.c | 47

Re: [PATCH 4.0 00/58] 4.0.9-stable review

2015-07-21 Thread Greg Kroah-Hartman
On Tue, Jul 21, 2015 at 06:14:06PM -0400, Donald Parsons wrote: > On Tue, 2015-07-21 at 14:10 -0700, Greg Kroah-Hartman wrote: > > > Andrew Morton (1): > > > arch/x86/kvm/mmu.c: work around gcc-4.4.4 bug > > > > > > which must be it. Added Andrew to cc as he hopefully knows the > > answer t

Linux 4.1.3

2015-07-21 Thread Greg KH
I'm announcing the release of the 4.1.3 kernel. All users of the 4.1 kernel series must upgrade. The updated 4.1.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.0.9

2015-07-21 Thread Greg KH
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 0f7afb2bb442..aef8cc5a677b 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt @@ -25,13 +25,18 @@ physical addresses. These are the addresses in /proc/iomem. The physical address

Re: Linux 4.1.3

2015-07-21 Thread Greg KH
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 0f7afb2bb442..aef8cc5a677b 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt @@ -25,13 +25,18 @@ physical addresses. These are the addresses in /proc/iomem. The physical address

Linux 4.0.9

2015-07-21 Thread Greg KH
-- Note, this is the last 4.0-stable release, it is now end-of-life. Please move to 4.1-stable at this point in time. -- I'm announcing the release of the 4.0.9 kernel. All users of the 4.0 kernel series must

[PATCH] ftrace: Calculate the correct dyn_ftrace number to report to the userspace

2015-07-21 Thread Minfei Huang
From: Minfei Huang Now, ftrace only calculate the dyn_ftrace number in the adding breakpoint loop, not in adding update and finish update loop. Calculate the correct dyn_ftrace, once ftrace reports the failure message to the userspace. Signed-off-by: Minfei Huang --- arch/x86/kernel/ftrace.c

Re: [PATCH v2 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-21 Thread Brian Gerst
On Tue, Jul 21, 2015 at 10:12 PM, Andy Lutomirski wrote: > On Tue, Jul 21, 2015 at 7:01 PM, Brian Gerst wrote: >> On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: >>> modify_ldt has questionable locking and does not synchronize >>> threads. Improve it: redesign the locking and synchroniz

Re: [RFC PATCH] block: xfs: dm thin: train XFS to give up on retrying IO if thinp is out of space

2015-07-21 Thread Dave Chinner
On Tue, Jul 21, 2015 at 09:40:29PM -0400, Mike Snitzer wrote: > On Tue, Jul 21 2015 at 9:00pm -0400, > Dave Chinner wrote: > > > On Wed, Jul 22, 2015 at 10:09:23AM +1000, Dave Chinner wrote: > > > On Tue, Jul 21, 2015 at 01:47:53PM -0400, Mike Snitzer wrote: > > > > On Tue, Jul 21 2015 at 11:34a

Re: [PATCH] cpufreq: Avoid double addition/removal of sysfs links

2015-07-21 Thread Rafael J. Wysocki
On Wednesday, July 22, 2015 03:56:21 AM Rafael J. Wysocki wrote: > On Wednesday, July 22, 2015 01:15:01 AM Rafael J. Wysocki wrote: > > Hi VIresh, > > > > On Mon, Jul 20, 2015 at 11:47 AM, Viresh Kumar > > wrote: > > > Consider a dual core (0/1) system with two CPUs: > > > - sharing clock/voltag

Re: [PATCH V2 2/2 update] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Dave Young
On 07/22/15 at 10:19am, Dave Young wrote: > --- > > Update per comments from Vivek: > - Moved below functions which are used by kexec_load only to kexec.c > copy_user_segment_list() and kimage_alloc_init() > - add slab.h to kexec.c because kimage_alloc_init will call kfree > - drop unused decla

linux-next: manual merge of the kvms390 tree with the s390 tree

2015-07-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvms390 tree got a conflict in: arch/s390/kernel/entry.S between commit: 2a1a14484b97 ("s390/kernel: lazy restore fpu registers") 3af40983a937 ("s390/kvm: fix interrupt race with HANDLE_SIE_INTERCEPT") 0be8cda612d8 ("s390/kvm: integrate HANDLE_SIE

Re: [PATCH v2 2/2] regulator: rk808: make better use of the gpiod API

2015-07-21 Thread Krzysztof Kozlowski
2015-07-21 23:46 GMT+09:00 Uwe Kleine-König : > From: Uwe Kleine-König > > The gpiod functions include variants for managed gpiod resources. Use it > to simplify the remove function. > > As the driver handles a device node without a specification of dvs gpios > just fine, additionally use the vari

Re: [PATCH v10 6/7] sched: Provide runnable_load_avg back to cfs_rq

2015-07-21 Thread Boqun Feng
On Wed, Jul 15, 2015 at 08:04:41AM +0800, Yuyang Du wrote: > The cfs_rq's load_avg is composed of runnable_load_avg and blocked_load_avg. > Before this series, sometimes the runnable_load_avg is used, and sometimes > the load_avg is used. Completely replacing all uses of runnable_load_avg > with lo

Re: [PATCH V2 2/2 update] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Dave Young
Now there's two kexec load syscall, one is kexec_load another is kexec_file_load, kexec_file_load has been splited as kernel/kexec_file.c. In this patch I split kexec_load syscall code to kernel/kexec.c. And add a new kconfig option KEXEC_CORE, so we can disable kexec_load and use kexec_file_load

Linux 3.18.19

2015-07-21 Thread Sasha Levin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm announcing the release of the 3.18.19 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be br

Re: [PATCH V2 2/2] kexec: split kexec_load syscall from kexec core code

2015-07-21 Thread Dave Young
On 07/21/15 at 09:03am, Vivek Goyal wrote: > On Mon, Jul 20, 2015 at 04:37:15PM +0800, dyo...@redhat.com wrote: > > Now there's two kexec load syscall, one is kexec_load another is > > kexec_file_load, kexec_file_load has been splited as kernel/kexec_file.c. > > In this patch I split kexec_load sys

Re: [Xen-devel] [PATCH v2 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2015 at 7:04 PM, Boris Ostrovsky wrote: > > > On 07/21/2015 08:49 PM, Andrew Cooper wrote: >> >> On 22/07/2015 01:28, Andy Lutomirski wrote: >>> >>> On Tue, Jul 21, 2015 at 5:21 PM, Andrew Cooper >>> wrote: On 22/07/2015 01:07, Andy Lutomirski wrote: > > On Tue,

Re: [PATCH v2 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-21 Thread Andy Lutomirski
On Tue, Jul 21, 2015 at 7:01 PM, Brian Gerst wrote: > On Tue, Jul 21, 2015 at 3:59 PM, Andy Lutomirski wrote: >> modify_ldt has questionable locking and does not synchronize >> threads. Improve it: redesign the locking and synchronize all >> threads' LDTs using an IPI on all modifications. > > W

Re: [PATCH v2 4/4] irqchip: Add bcm2836 interrupt controller for Raspberry Pi 2.

2015-07-21 Thread Stephen Warren
On 07/13/2015 07:35 PM, Eric Anholt wrote: > This interrupt controller is the new root interrupt controller with > the timer, PMU events, and IPIs, and the bcm2835's interrupt > controller is chained off of it to handle the peripherals. > diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchi

Re: [PATCH v2 2/4] irqchip: bcm2835: If a parent interrupt is registered, chain from it.

2015-07-21 Thread Stephen Warren
On 07/13/2015 07:35 PM, Eric Anholt wrote: > The BCM2836 (Raspberry Pi 2) uses two levels of interrupt handling > with the CPU-local interrupts being the root, so we need to register > ours as chained off of the CPU's local interrupt. Sorry for the slow review; laziness after vacation! > diff --g

Re: [Xen-devel] [PATCH v2 1/3] x86/ldt: Make modify_ldt synchronous

2015-07-21 Thread Boris Ostrovsky
On 07/21/2015 08:49 PM, Andrew Cooper wrote: On 22/07/2015 01:28, Andy Lutomirski wrote: On Tue, Jul 21, 2015 at 5:21 PM, Andrew Cooper wrote: On 22/07/2015 01:07, Andy Lutomirski wrote: On Tue, Jul 21, 2015 at 4:38 PM, Andrew Cooper wrote: On 21/07/2015 22:53, Boris Ostrovsky wrote: On

[PATCH 1/4] drivers/tty: make serial/sn_console.c driver explicitly non-modular

2015-07-21 Thread Paul Gortmaker
The Kconfig for this option is currently: config SERIAL_SGI_L1_CONSOLE bool "SGI Altix L1 serial console support" ...meaning that it currently is not being built as a module by anyone. Lets remove the orphaned module code, so that when reading the driver there is no doubt it is builtin-only.

[PATCH 4/4] drivers/tty: make serial/sunhv.c driver explicitly non-modular

2015-07-21 Thread Paul Gortmaker
The Kconfig for this driver is currently: config SERIAL_SUNHV bool "Sun4v Hypervisor Console support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular and unused code here, so that when reading the driver there is no doubt it is builtin-only.

Re: linux 4.2-rc1 broken Nokia N900

2015-07-21 Thread Sebastian Reichel
Hi, On Tue, Jul 21, 2015 at 07:17:41PM -0500, Michael Welling wrote: > On Tue, Jul 21, 2015 at 11:34:41AM +0200, Pavel Machek wrote: > > This code has my head spinning. > > I found that the errors do not occur when the driver is built into the kernel. > > I also found that with the patch below

[PATCH 2/4] drivers/tty: make serial/lantic.c driver explicitly non-modular

2015-07-21 Thread Paul Gortmaker
The Kconfig for this option is currently: config SERIAL_LANTIQ bool "Lantiq serial driver" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity, so that when reading the driver there is no doubt it is builtin-only. Since module_in

[PATCH 3/4] drivers/tty: make serial/suncore.c driver explicitly non-modular

2015-07-21 Thread Paul Gortmaker
The Kconfig for this driver is currently: config SERIAL_SUNCORE bool ...meaning that it currently is not being built as a module by anyone. Lets remove the modular and unused code here, so that when reading the driver there is no doubt it is builtin-only. Since module_init translates to

[PATCH 0/4] tty/serial: delete orphaned code in non-modules

2015-07-21 Thread Paul Gortmaker
In the previous merge window, we made changes to allow better delineation between modular and non-modular code in commit 0fd972a7d91d6e15393c449492a04d94c0b89351 ("module: relocate module_init from init.h to module.h"). This allows us to now ensure module code looks modular and non-modular code do

Re: Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-21 Thread Joonyoung Shim
On 07/21/2015 10:19 PM, Krzysztof Kozlowski wrote: > Hi, > > Today's linux-next (next-20150721) encounters boot failures on Exynos > Octa (Exynos5422) based boards. The boards hangs. I bisected it to: > > d80167b85024982c5f18d0481a5c248100360118 is the fi

  1   2   3   4   5   6   7   8   9   10   >