Powerpc: e1000e cannot work normally after system resume from sleep(standby)

2014-04-17 Thread dongsheng.w...@freescale.com
Hi all, Now I'm developing Freescale PCIe power management feature. The following is my PCIe suspend/resume code. when I test system wake up from sleep(STANDBY), I got below calltrace. Looks like e1000e cannot transfer data, maybe watchdog has some issue. Or maybe some of the other causes. I t

linux-next: build failure after merge of the akpm-current tree

2014-04-17 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from mm/shmem.c:61:0: include/linux/swapops.h: In function 'is_swap_pte': include/linux/swapops.h:57:2: error: implicit declaration of function 'pte_present_nonuma

Re: [GIT PULL] fbdev fixes for 3.15

2014-04-17 Thread Tomi Valkeinen
On 17/04/14 02:04, Linus Torvalds wrote: > On Wed, Apr 16, 2014 at 2:03 AM, Tomi Valkeinen wrote: >> >> The drivers/video/Kconfig change in this pull request will conflict with the >> fbdev reorder series, which is not yet in your tree. If that's an issue, I >> can >> resend this without the Kcon

[GIT PULL REQUEST] one md BUG-fix for 3.15-rc

2014-04-17 Thread NeilBrown
The following changes since commit e240c1839d11152b0355442f8ac6d2d2d921be36: raid5: get_active_stripe avoids device_lock (2014-04-09 14:42:42 +1000) are available in the git repository at: git://neil.brown.name/md tags/3.15-fixes for you to fetch changes up to c7a6d35e463caacab08ca0333bdec5

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

2014-04-17 Thread Eric W. Biederman
Stephen Rothwell writes: > Hi Eric, > > After merging the userns tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > fs/namespace.c: In function 'new_mountpoint': > fs/namespace.c:725:9: error: implicit declaration of function 'hash' > [-Werror=implicit-function-decl

Re: [f2fs-dev] [PATCH] f2fs: fix wrong number of max_nid when init

2014-04-17 Thread Jaegeuk Kim
Hi, 2014-04-17 (목), 14:27 +0800, Chao Yu: > Since max_nid value was minus three in previous commit: > 'b63da15e8b475245026bdf2096853683f189706b', Our last three nids could not be > used ever, but 0/node nid/meta nid is still occupied. > And also our ra_meta_pages() could not readahead the last blo

Re: [PATCH] sched/deadline: Fix memory leak

2014-04-17 Thread Juri Lelli
On Thu, 17 Apr 2014 10:05:02 +0800 Li Zefan wrote: > Free cpudl->free_cpus allocated in cpudl_init(). > > Signed-off-by: Li Zefan > Cc: # 3.14 > --- > kernel/sched/cpudeadline.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/kernel/sched/cpudeadline.c b/kernel/sc

[PATCH 2/5] blackfin: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-17 Thread Brian Norris
These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol. Signed-off-by: Brian Norris Cc: Steven Miao Cc: adi-buildroot-de...@lists.so

[PATCH 4/5] powerpc: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-17 Thread Brian Norris
These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol. Signed-off-by: Brian Norris Cc: Benjamin Herrenschmidt Cc: Paul Mackerras C

[PATCH 5/5] sh: defconfig: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-17 Thread Brian Norris
This defconfig contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR. At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol. Signed-off-by: Brian Norris Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- This change

[PATCH 3/5] mips: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-17 Thread Brian Norris
These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol. Signed-off-by: Brian Norris Cc: Ralf Baechle Cc: linux-m...@linux-mips.org C

[PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)

2014-04-17 Thread Brian Norris
These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs. At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol. Signed-off-by: Brian Norris Cc: Russell King Cc: Shawn Guo Cc: Sascha Hauer

[PATCH 0/5] defconfigs: add MTD_SPI_NOR (dependency for M25P80)

2014-04-17 Thread Brian Norris
Hi all, We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver fo

linux-next: Tree for Apr 17

2014-04-17 Thread Stephen Rothwell
Hi all, There will be no linux-next release until April 22 - have a nice break. This tree still fails (more than usual) the powerpc allyesconfig build. Changes since 20140416: Dropped tree: userns (complex conflicts) The powerpc tree still had its build failure. The sound-asoc tree lost its b

Re: debug_dma_assert_idle - snd_hda_intel - cpu touching an active dma mapped cacheline

2014-04-17 Thread Clemens Ladisch
poma wrote: > Sound whispers, ??? > WARNING: CPU: 3 PID: 900 at lib/dma-debug.c:593 > debug_dma_assert_idle+0x159/0x1d0() > snd_hda_intel :00:07.0: DMA-API: cpu touching an active dma mapped > cacheline [cln=0x03014000] > ... > Mapped at: > [] debug_dma_alloc_coherent+0x22/0x70 "Cohe

Re: [PATCH v2] pwm_lpss: Add support for PCI devices

2014-04-17 Thread Mika Westerberg
On Thu, Apr 17, 2014 at 02:18:58AM +0800, Chew Chiau Ee wrote: > From: Alan Cox > > Not all systems enumerate the PWM devices via ACPI. They can also be exposed > via the PCI interface. > > Signed-off-by: Alan Cox > Signed-off-by: Chew, Chiau Ee Reviewed-by: Mika Westerberg -- To unsubscribe

Re: f2fs: BUG_ON() is triggered when mount valid f2fs filesystem

2014-04-17 Thread Jaegeuk Kim
Hi, 2014-04-16 (수), 18:11 -0700, Alexey Khoroshilov: > Hi, > > But would not ability to trigger BUG_ON by mounting a crafted image > considered as an issue having security implications? Sorry, I can't come up with you. Could you please explain why this can be related to the security hole? Did yo

Re: [PATCH V2 2/2] ahci: add support for Hisilicon sata

2014-04-17 Thread Hans de Goede
Hi, On 04/16/2014 10:49 PM, Tejun Heo wrote: > Hello, > > On Thu, Apr 10, 2014 at 01:24:28PM +0800, Kefeng Wang wrote: >> From: Kefeng Wang >> >> The hip04 SoC of hisilicon has an AHCI compliant SATA controller, >> and it is compliant with the ahci 1.3 and sata 3.0 specification. >> >> There is

RE: [RFC][PATCH 1/3] ARM: dts: vf610: Add Freescale FlexTimer Module timer node.

2014-04-17 Thread li.xi...@freescale.com
> > + ftm0: ftm@40038000 { > > + compatible = "fsl,vf610-ftm-timer"; > > + reg = <0x40038000 0x2000>; > > + interrupts = <0 42 IRQ_TYPE_LEVEL_HIGH>; > > + clock-names = "ftm0",

Re: [PATCH] usb: phy: mv_u3d: Remove usb phy driver for mv_u3d

2014-04-17 Thread Paul Bolle
On Tue, 2014-04-15 at 23:34 -0500, Felipe Balbi wrote: > $ make drivers/usb/phy/phy-mv-u3d-usb.o > CHK include/config/kernel.release > CHK include/generated/uapi/linux/version.h > CHK include/generated/utsrelease.h > make[1]: `include/generated/mach-types.h' is up to date. > CAL

[PATCH 1/3] perf hists: Add missing updates on nr_non_filtered_entries

2014-04-17 Thread Namhyung Kim
When a filter is used for perf top, its hists->nr_non_filtered_entries was not updated after applying the filter. But it needs to be updated as new samples are captured. Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --g

[PATCH 2/3] perf ui/tui: Fix off-by-one in hist_browser__update_nr_entries()

2014-04-17 Thread Namhyung Kim
The nr_entries variable is increased inside the loop in the function but it also counts when hists__filter_entries() returns NULL. Thus the end result will have actual count + 1. It'd become a problem especially there's no entry at all - it'd get a segfault during referencing a NULL pointer. Sig

[PATCH 0/3] perf top/tui: Fixes for percentage filter behavior

2014-04-17 Thread Namhyung Kim
Hi, This is a small fixes for a bug in perf top I found during some tests. It gets segfault if symbol filter found no entries - accessing NULL pointer in that case. The patches are also available at perf/percentage-v9 branch on my tree for your convenience. I'm sorry for causing this bug.. Than

[PATCH 3/3] perf top/tui: Update nr_entries properly after filter is applied

2014-04-17 Thread Namhyung Kim
The hist_browser__reset() is only called right after a filter is applied so it needs to update browser->nr_entries properly. We cannot use hists->nr_non_filtered_entries directly since it's possible that such entries are also filtered out by minimum percentage. In addition when a filter is used f

Re: rb tree hrtimer lockup bug (found by perf_fuzzer)

2014-04-17 Thread Thomas Gleixner
On Wed, 16 Apr 2014, Greg KH wrote: > On Thu, Apr 17, 2014 at 01:00:53AM +0200, Thomas Gleixner wrote: > > And cdevs is an array of struct cdev: > > > > struct cdev { > > struct kobject kobj; > > Those are not "real" kobjects, and are never registered with the kobject > core. > > I really n

Re: Kernel scanning/freeing to relieve cgroup memory pressure

2014-04-17 Thread Glyn Normington
On 16/04/2014 10:11, Michal Hocko wrote: On Tue 15-04-14 09:38:10, Glyn Normington wrote: On 14/04/2014 21:50, Johannes Weiner wrote: On Mon, Apr 14, 2014 at 09:11:25AM +0100, Glyn Normington wrote: Johannes/Michal What are your thoughts on this matter? Do you see this as a valid requirement?

RE: [f2fs-dev] [PATCH] f2fs: fix wrong number of max_nid when init

2014-04-17 Thread Chao Yu
Hi, > -Original Message- > From: Jaegeuk Kim [mailto:jaegeuk@samsung.com] > Sent: Thursday, April 17, 2014 3:17 PM > To: Chao Yu > Cc: linux-f2fs-de...@lists.sourceforge.net; linux-fsde...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [f2fs-dev] [PATCH] f2fs: fix wrong

Re: [PATCHv2 5/8] ARM: EXYNOS: Support secondary CPU boot of Exynos3250

2014-04-17 Thread Chanwoo Choi
Hi Tomasz, On 04/16/2014 11:28 PM, Tomasz Figa wrote: > Hi Chanwoo, > > On 15.04.2014 03:59, Chanwoo Choi wrote: >> This patch fix the offset of CPU boot address and don't operate smc call >> of SMC_CMD_CPU1BOOT command for Exynos3250. >> >> Signed-off-by: Chanwoo Choi >> Acked-by: Kyungmin Park

[PATCH] tracing/uprobes: fix uprobe_cpu_buffer memory leak

2014-04-17 Thread zhangwei(Jovi)
Forgot to free uprobe_cpu_buffer percpu page in uprobe_buffer_disable. Signed-off-by: zhangwei(Jovi) --- kernel/trace/trace_uprobe.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index e447336..071d3bb 100644 --- a/kernel/trac

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

2014-04-17 Thread Ingo Molnar
* Jiri Olsa wrote: > hi Ingo, > please consider pulling > > thanks, > jirka > > > The following changes since commit fbdd17ec5ce2e5e4027356fcfde769b88d15702f: > > Merge branch 'perf-core-for-mingo' into perf/urgent (2014-04-14 16:45:39 > +0200) > > are available in the git repository at:

Re: [PATCH resend] mfd/rtc: s5m: Do not allocate RTC I2C dummy and regmap for unsupported chipsets

2014-04-17 Thread Lee Jones
> The rtc-s5m driver does not support all of S2M and S5M chipsets > supported by main MFD sec-core driver. For such chipsets unsupported by > rtc-s5m, the MFD sec-core driver initialized regmap with default config. > This config in such cases wouldn't work at all. > > The main MFD sec-core driver

[PATCH -tip v9 01/26] [BUGFIX]kprobes/x86: Fix page-fault handling logic

2014-04-17 Thread Masami Hiramatsu
Current kprobes in-kernel page fault handler doesn't expect that its single-stepping can be interrupted by an NMI handler which may cause a page fault(e.g. perf with callback tracing). In that case, the page-fault handled by kprobes and it misunderstands the page-fault has been caused by the single

[PATCH -tip v9 10/26] kprobes/x86: Allow probe on some kprobe preparation functions

2014-04-17 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used in preparation phase. Those are safely probed because those are not invoked from breakpoint/fault/debug handlers, there is no chance to cause recursive exceptions. Following functions are now removed from the kprobes blacklist. can_boost

[PATCH -tip v9 00/26] kprobes: introduce NOKPROBE_SYMBOL, bugfixes and scalbility efforts

2014-04-17 Thread Masami Hiramatsu
Hi, Here is the version 9 of NOKPROBE_SYMBOL series, including bugfixes. This updates some issues pointed in Steven's review against v8 (Thank you!) Blacklist improvements == Currently, kprobes uses __kprobes annotation and internal symbol- name based blacklist to prohibit prob

[PATCH -tip v9 07/26] [BUGFIX] x86: Prohibit probing on thunk functions and restore

2014-04-17 Thread Masami Hiramatsu
thunk/restore functions are also used for tracing irqoff etc. and those are involved in kprobe's exception handling. Prohibit probing on them to avoid kernel crash. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" --- arch/x

[PATCH -tip v9 18/26] sched: Use NOKPROBE_SYMBOL macro in sched

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in sched/core.c. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Ingo Molnar Cc: Peter Zijlstra --- kernel/sched/core.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) d

[PATCH -tip v9 13/26] x86: Allow kprobes on text_poke/hw_breakpoint

2014-04-17 Thread Masami Hiramatsu
Allow kprobes on text_poke/hw_breakpoint because those are not related to the critical int3-debug recursive path of kprobes at this moment. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" --- arch/x86/kernel/alternative.c

[PATCH -tip v9 19/26] kprobes: Show blacklist entries via debugfs

2014-04-17 Thread Masami Hiramatsu
Show blacklist entries (function names with the address range) via /sys/kernel/debug/kprobes/blacklist. Note that at this point the blacklist supports only in vmlinux, not module. So the list is fixed and not updated. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: "David S.

[PATCH -tip v9 22/26] kprobes/x86: Use kprobe_blacklist for .kprobes.text and .entry.text

2014-04-17 Thread Masami Hiramatsu
Use kprobe_blackpoint for blacklisting .entry.text and .kprobees.text instead of arch_within_kprobe_blacklist. This also makes them visible via (debugfs)/kprobes/blacklist. Signed-off-by: Masami Hiramatsu Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Ananth N Mavinakayanahalli

[PATCH -tip v9 16/26] ftrace/kprobes: Use NOKPROBE_SYMBOL macro in ftrace

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in ftrace. This applies nokprobe_inline annotation for some cases, because NOKPROBE_SYMBOL() will inhibit inlining by referring the symbol address. Changes from v8: - Fix a line-break style issue. Changes

[PATCH -tip v9 20/26] kprobes: Support blacklist functions in module

2014-04-17 Thread Masami Hiramatsu
To blacklist the functions in a module (e.g. user-defined kprobe handler and the functions invoked from it), expand blacklist support for modules. With this change, users can use NOKPROBE_SYMBOL() macro in their own modules. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: "Dav

[PATCH -tip v9 14/26] x86: Use NOKPROBE_SYMBOL() instead of __kprobes annotation

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro for protecting functions from kprobes instead of __kprobes annotation under arch/x86. This applies nokprobe_inline annotation for some cases, because NOKPROBE_SYMBOL() will inhibit inlining by referring the symbol address. This just folds a bunch of previous NOKPROBE_SYM

[PATCH -tip v9 26/26] ftrace: Introduce FTRACE_OPS_FL_SELF_FILTER for ftrace-kprobe

2014-04-17 Thread Masami Hiramatsu
Since the kprobes itself owns a hash table to get a kprobe data structure corresponding to the given ip address, there is no need to test ftrace hash in ftrace side. To achive better performance on ftrace-based kprobe, FTRACE_OPS_FL_SELF_FILTER flag to ftrace_ops which means that ftrace skips testi

[PATCH -tip v9 25/26] kprobes: Introduce kprobe cache to reduce cache misshits

2014-04-17 Thread Masami Hiramatsu
Introduce kprobe cache to reduce cache misshits for massive multiple kprobes. For stress testing kprobes, we need to activate kprobes as many as possible. This situation causes cache miss hit storm on kprobe hash-list. kprobe hashlist is already enlarged to 4k entries and this is still small for 40

[PATCH -tip v9 24/26] kprobes: Enlarge hash table to 512 entries

2014-04-17 Thread Masami Hiramatsu
Currently, since the kprobes expects to be used with less than 100 probe points, its hash table just has 64 entries. This is too little to handle several thousands of probes. Enlarge the size of kprobe_table to 512 entries which just consumes 4KB (on 64bit arch) for better scalability. Note that t

[PATCH -tip v9 23/26] kprobes/x86: Remove unneeded preempt_disable/enable in interrupt handlers

2014-04-17 Thread Masami Hiramatsu
Since the int3 itself disables the local_irq and kprobes keeps it disabled while the single step has done, the kernel preemption never happen while processing a kprobe. This means that we don't need to disable/enable preemption. Also, this changes kprobe_int3_handler to use goto-out style. Signed-

Re: [PATCH 1/2] perf record: Propagate exit status of a command line workload

2014-04-17 Thread Namhyung Kim
Hi Jiri, On Wed, 16 Apr 2014 15:34:32 +0200, Jiri Olsa wrote: > On Wed, Apr 16, 2014 at 09:30:43AM +0900, Namhyung Kim wrote: > I think that after creating the workload, all error paths > need to release(wait) the child if there's any Right. I'll resend v2. Thanks, Namhyung -- To unsubscribe fr

[PATCH -tip v9 21/26] kprobes: Use NOKPROBE_SYMBOL() in sample modules

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL() to protect handlers from kprobes in sample modules. Signed-off-by: Masami Hiramatsu Ananth N Mavinakayanahalli --- samples/kprobes/jprobe_example.c|1 + samples/kprobes/kprobe_example.c|3 +++ samples/kprobes/kretprobe_example.c |2 ++ 3 files changed,

Re: [RFC][PATCH 1/3] ARM: dts: vf610: Add Freescale FlexTimer Module timer node.

2014-04-17 Thread Shawn Guo
On Thu, Apr 17, 2014 at 07:49:31AM +, li.xi...@freescale.com wrote: > > > + ftm0: ftm@40038000 { > > > + compatible = "fsl,vf610-ftm-timer"; > > > + reg = <0x40038000 0x2000>; > > > + interrupts = <0 42 IRQ_

[PATCH 2/2] spi/pxa2xx-pci: Pass host clock rate info from PCI glue layer

2014-04-17 Thread Chew Chiau Ee
From: Chew, Chiau Ee Intel BayTrail PCI mode LPSS devices inclusive of SPI do not rely on common clock framework. Thus, this patch allows the PCI mode SPI host to pass the supported clock rate info to the core layer which eventually used for speed calculation. Signed-off-by: Chew, Chiau Ee ---

[PATCH 0/2] Add PCI mode support for BayTrail LPSS SPI

2014-04-17 Thread Chew Chiau Ee
From: Chew, Chiau Ee Hi, BayTrail LPSS subsystem consists of one SPI host which can be PCI enumerated. PXA2XX PCI layer used to support only CE4100's SPI. Thus, we convert it into a generic PCI layer to add support for LPSS SPI as well. Since PCI mode LPSS SPI does not rely on common clock fram

[PATCH 1/2] spi/pxa2xx-pci: Add PCI mode support for BayTrail LPSS SPI

2014-04-17 Thread Chew Chiau Ee
From: Chew, Chiau Ee Similar to CE4100, BayTrail LPSS SPI can be PCI enumerated as well. Thus, the functions are renamed from ce4100_xxx to pxa2xx_spi_pci_xxx to clarify that this is a generic PCI glue layer. Also, added required infrastructure to support SPI hosts with different configurations.

[PATCH -tip v9 17/26] notifier: Use NOKPROBE_SYMBOL macro in notifier

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation in notifier. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Josh Triplett Cc: "Paul E. McKenney" --- kernel/notifier.c | 22 +- 1 file changed, 13 insertions(+),

Re: [PATCH 1/2] mfd: sec-core: Remove duplicated device type from sec_pmic

2014-04-17 Thread Lee Jones
> The device type was stored in sec_pmic state container twice: > - unsigned long type > - int device_type Can you explain that one of them is in the main container and the other is stored in pdata, which in turn is located in the main container, as this implies that both of them are located in

[PATCH -tip v9 15/26] kprobes: Use NOKPROBE_SYMBOL macro instead of __kprobes

2014-04-17 Thread Masami Hiramatsu
Use NOKPROBE_SYMBOL macro to protect functions from kprobes instead of __kprobes annotation. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Ananth N Mavinakayanahalli Cc: "David S. Miller" --- kernel/kprobes.c | 67 +- 1 f

Re: [PATCH/RFC v3 5/5] media: Add registration helpers for V4L2 flash sub-devices

2014-04-17 Thread Jacek Anaszewski
Hi Sakari, Thanks for the review. On 04/16/2014 08:21 PM, Sakari Ailus wrote: Hi Jacek, Thanks for the update! [...] +static inline enum led_brightness v4l2_flash_intensity_to_led_brightness( + struct led_ctrl *config, +

Re: [sched] INFO: rcu_sched self-detected stall on CPU { 3}

2014-04-17 Thread Alex Shi
On 04/17/2014 04:25 PM, Jet Chen wrote: > Hi Alex > > We noticed the below kernel BUG on Thank a lot Jet! > > https://github.com/alexshi/power-scheduling.git noload > > commit 6b74b2031e15ae58470fd8dde7438df35e358c62 > Author: Alex Shi > AuthorDate: Fri Apr 4 17:49:30 2014 +0800 > Commit:

[PATCH -tip v9 12/26] ftrace/*probes: Allow probing on some functions

2014-04-17 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used for preparation and uprobe only fetch functions. Those are safely probed because those are not invoked from kprobe's breakpoint/fault/debug handlers. So there is no chance to cause recursive exceptions. Following functions are now removed

[PATCH -tip v9 11/26] kprobes: Allow probe on some kprobe functions

2014-04-17 Thread Masami Hiramatsu
There is no need to prohibit probing on the functions used for preparation, registeration, optimization, controll etc. Those are safely probed because those are not invoked from breakpoint/fault/debug handlers, there is no chance to cause recursive exceptions. Following functions are now removed f

[PATCH -tip v9 06/26] [BUGFIX] x86: Prohibit probing on native_set_debugreg/load_idt

2014-04-17 Thread Masami Hiramatsu
Prohibit probing on native_set_debugreg and native_load_idt. Since the kprobes uses do_debug for single stepping, functions called from do_debug before notify_die must not be probed. And also native_load_idt is called from paranoid_exit when returning int3, this also must not be probed. Signed-off

[PATCH -tip v9 09/26] x86: Call exception_enter after kprobes handled

2014-04-17 Thread Masami Hiramatsu
Move exception_enter() call after kprobes handler is done. Since the exception_enter() involves many other functions (like printk), it can cause recursive int3/break loop when kprobes probe such functions. Signed-off-by: Masami Hiramatsu Reviewed-by: Steven Rostedt Cc: Frederic Weisbecker Cc: T

[PATCH -tip v9 05/26] [BUGFIX] kprobes/x86: Prohibit probing on debug_stack_*

2014-04-17 Thread Masami Hiramatsu
Prohibit probing on debug_stack_reset and debug_stack_set_zero. Since the both functions are called from TRACE_IRQS_ON/OFF_DEBUG macros which run in int3 ist entry, probing it may cause a soft lockup. This happens when the kernel built with CONFIG_DYNAMIC_FTRACE=y and CONFIG_TRACE_IRQFLAGS=y. Sig

[PATCH -tip v9 04/26] kprobes: Introduce NOKPROBE_SYMBOL() macro for blacklist

2014-04-17 Thread Masami Hiramatsu
Introduce NOKPROBE_SYMBOL() macro which builds a kprobe blacklist in build time. The usage of this macro is similar to the EXPORT_SYMBOL, put the NOKPROBE_SYMBOL(function); just after the function definition. Since this macro will inhibit inlining of static/inline functions, this patch also introdu

[PATCH -tip v9 08/26] kprobes/x86: Call exception handlers directly from do_int3/do_debug

2014-04-17 Thread Masami Hiramatsu
To avoid a kernel crash by probing on lockdep code, call kprobe_int3_handler() and kprobe_debug_handler()(which was formerly called post_kprobe_handler()) directly from do_int3 and do_debug. Currently kprobes uses notify_die() to hook the int3/debug exceptoins. Since there is a locking code in not

[PATCH -tip v9 02/26] kprobes/x86: Allow to handle reentered kprobe on singlestepping

2014-04-17 Thread Masami Hiramatsu
Since the NMI handlers(e.g. perf) can interrupt in the single stepping (or preparing the single stepping, do_debug etc.), we should consider a kprobe is hit in the NMI handler. Even in that case, the kprobe is allowed to be reentered as same as the kprobes hit in kprobe handlers (KPROBE_HIT_ACTIVE

[PATCH -tip v9 03/26] kprobes: Prohibit probing on .entry.text code

2014-04-17 Thread Masami Hiramatsu
.entry.text is a code area which is used for interrupt/syscall entries, which includes many sensitive code. Thus, it is better to prohibit probing on all of such code instead of a part of that. Since some symbols are already registered on kprobe blacklist, this also removes them from the blacklist.

Re: [PATCH 2/2] mfd: sec-core: Update sec_pmic documentation

2014-04-17 Thread Lee Jones
> Update the documentation for sec_pmic state container structure to > reflect current code. > > Signed-off-by: Krzysztof Kozlowski > --- > include/linux/mfd/samsung/core.h | 29 + > 1 file changed, 17 insertions(+), 12 deletions(-) > > diff --git a/include/linux/mfd

RE: [RFC][PATCH 1/3] ARM: dts: vf610: Add Freescale FlexTimer Module timer node.

2014-04-17 Thread li.xi...@freescale.com
> Subject: Re: [RFC][PATCH 1/3] ARM: dts: vf610: Add Freescale FlexTimer Module > timer node. > > On Thu, Apr 17, 2014 at 07:49:31AM +, li.xi...@freescale.com wrote: > > > > + ftm0: ftm@40038000 { > > > > + compatible = "fsl,vf610-ftm-timer";

Re: [PATCH -tip v9 00/26] kprobes: introduce NOKPROBE_SYMBOL, bugfixes and scalbility efforts

2014-04-17 Thread Ingo Molnar
* Masami Hiramatsu wrote: > Masami Hiramatsu (26): > [BUGFIX]kprobes/x86: Fix page-fault handling logic > kprobes/x86: Allow to handle reentered kprobe on singlestepping > kprobes: Prohibit probing on .entry.text code > kprobes: Introduce NOKPROBE_SYMBOL() macro for black

[PATCH] ARM: multi_v7_defconfig: select CONFIG_GPIO_DWAPB

2014-04-17 Thread Antoine Ténart
The newly integrated dwapb gpio driver handles the Berlin SoCs GPIOs. Add this driver to the multi_v7_defconfig. Signed-off-by: Antoine Ténart --- This patch applies on top of Alexandre's one selecting CONFIG_MACH_BERLIN_BG2Q: https://patchwork.kernel.org/patch/3876171/ arch/arm/configs/mult

Re: linux-next: manual merge of the userns tree with Linus' tree

2014-04-17 Thread Eric W. Biederman
Al Viro writes: > On Thu, Apr 17, 2014 at 03:06:57PM +1000, Stephen Rothwell wrote: >> Hi Eric, >> >> Today's linux-next merge of the userns tree got a conflict in >> fs/namespace.c between various commits from Linus' tree and various >> commits from the userns tree. >> >> I fixed it up (hopefu

[PATCH 2/2] ARM: dts: berlin: add the BG2CD GPIO nodes

2014-04-17 Thread Antoine Ténart
The Berlin BG2CD has 32 GPIOs in SoC power domain and 16 in the SM one. Signed-off-by: Antoine Ténart --- arch/arm/boot/dts/berlin2cd.dtsi | 102 +++ 1 file changed, 102 insertions(+) diff --git a/arch/arm/boot/dts/berlin2cd.dtsi b/arch/arm/boot/dts/berlin2cd

[PATCH 0/2] Add GPIO nodes for Berlin BG2 and BG2CD

2014-04-17 Thread Antoine Ténart
After adding support for the Berlin BG2Q GPIOs, this series uses the same GPIO dwapb driver to support the Berlin BG2 and BG2CD GPIOs. Applies on top of Sebastian's for-next branch[1]. [1] https://github.com/shesselba/linux-berlin/commits/berlin/for-next Antoine Ténart (2): ARM: dts: berlin: a

[PATCH 1/2] ARM: dts: berlin: add the BG2 GPIO nodes

2014-04-17 Thread Antoine Ténart
The Berlin BG2 has 32 GPIOs in SoC power domain and 16 in the SM one. Only the first 8 SM GPIOs have interrupt support. Signed-off-by: Antoine Ténart --- arch/arm/boot/dts/berlin2.dtsi | 105 + 1 file changed, 105 insertions(+) diff --git a/arch/arm/boot/

Re: [PATCH] perf tools: Adjust symbols in VDSO

2014-04-17 Thread Adrian Hunter
On 04/11/2014 05:25 PM, Vladimir Nikulichev wrote: > perf tools: Adjust symbols in VDSO > > pert-report doesn't resolve function names in VDSO: > > $ perf report --stdio -g flat,0.0,15,callee --sort pid > ... > 8.76% >0x7fff6b1fe861 >__gettimeofday >

[PATCH v6 0/8] Add support for the Allwinner A31 DMA Controller

2014-04-17 Thread Maxime Ripard
Hi, This patchset adds support for the DMA controller found in the Allwinner A31 and A23 SoCs. This has been tested using the newly introduced SPI driver on an A31 EVK. Support for DMA-driven SPI transfers will be the subject of another patch serie. Since this serie has been sent for the first t

[PATCH v6 7/8] DMA: sun6i: Add driver for the Allwinner A31 DMA controller

2014-04-17 Thread Maxime Ripard
The Allwinner A31 has a 16 channels DMA controller that it shares with the newer A23. Although sharing some similarities with the DMA controller of the older Allwinner SoCs, it's significantly different, I don't expect it to be possible to share the driver for these two. The A31 Controller is able

[PATCH v6 8/8] ARM: sun6i: dt: Add A31 DMA controller to DTSI

2014-04-17 Thread Maxime Ripard
Now that we have a DMA driver, we can add the DMA bindings in the DTSI for the controller and the devices supported that can use DMA. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm/boot

[PATCH v6 4/8] ARM: sun6i: Protect CPU clock

2014-04-17 Thread Maxime Ripard
Right now, AHB is an indirect child clock of the CPU clock. If that happens to change, since the CPU clock has no other consumers declared in Linux, it would be shut down, which is not really a good idea. Prevent this by forcing it enabled. Signed-off-by: Maxime Ripard --- arch/arm/mach-sunxi/s

[PATCH v6 6/8] ARM: sun6i: Sort the NMI node by physical address

2014-04-17 Thread Maxime Ripard
The DT are supposed to be ordered by physical address. Move the NMI node where it belongs. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun6i-a31.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/s

[PATCH v6 1/8] clk: sunxi: Remove calls to clk_put

2014-04-17 Thread Maxime Ripard
Callers of clk_put must disable the clock first. This also means that as long as the clock is enabled the driver should hold a reference to that clock. Hence, the call to clk_put here are bogus and should be removed. Signed-off-by: Maxime Ripard Acked-by: Mike Turquette --- drivers/clk/sunxi/cl

[PATCH v6 5/8] ARM: sun6i: Protect SDRAM gating bit

2014-04-17 Thread Maxime Ripard
Prevent the SDRAM controller from being gated by force-enabling it in the machine code. Signed-off-by: Maxime Ripard --- arch/arm/mach-sunxi/sun6i.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-sunxi/sun6i.c b/arch/arm/mach-sunxi/sun6i.c index 6b3905505fe0..1ccb27524a9e

[PATCH v6 2/8] ARM: sunxi: Split out the various machines into separate files

2014-04-17 Thread Maxime Ripard
This will allow to add per-SoC hooks more easily. Signed-off-by: Maxime Ripard --- arch/arm/mach-sunxi/Makefile | 6 +- arch/arm/mach-sunxi/restart.c | 104 +++ arch/arm/mach-sunxi/restart.h | 20 ++ arch/arm/mach-sunxi/sun4i.c | 36 ++ arch/arm/mach-su

[PATCH v6 3/8] ARM: sunxi: Move the clock protection to machine hooks

2014-04-17 Thread Maxime Ripard
Since we start to have a lot of clocks to protect, some of them in a few boards only, it becomes difficult to handle the clock protection without having to add per machine exceptions. Move these where they belong, in the machine definition code. Signed-off-by: Maxime Ripard --- arch/arm/mach-su

Re: [PATCH -tip v9 00/26] kprobes: introduce NOKPROBE_SYMBOL, bugfixes and scalbility efforts

2014-04-17 Thread Masami Hiramatsu
(2014/04/17 17:37), Ingo Molnar wrote: > > * Masami Hiramatsu wrote: > >> Masami Hiramatsu (26): >> [BUGFIX]kprobes/x86: Fix page-fault handling logic >> kprobes/x86: Allow to handle reentered kprobe on singlestepping >> kprobes: Prohibit probing on .entry.text code >> kp

Re: [PATCH 2/6] regulator: arizona-ldo1: Move setup processing from arizona-core

2014-04-17 Thread Lee Jones
> It is more idiomatic to process things relating to the regulator in its > driver. This patch moves both processing of device tree relating to the > regulator and checking if the regulator is external from arizona-core > into the regulator driver. > > Signed-off-by: Charles Keepax > --- > drive

[PATCH] vt6656/aes_ccmp.c: Fix a sparse "symbol not declared" warning

2014-04-17 Thread chihuanqi
sparse complains as follows: drivers/staging/vt6656/aes_ccmp.c:221:6: warning: symbol 'AESbGenCCMP' was not declared. Should it be static? In order to suppress the warning, we include the aes_ccmp.h header file which contains an appropriate extern declaration. Signed-off-by: huanqi chi --

[PATCH v5 2/5] KVM: MMU: properly check last spte in fast_page_fault()

2014-04-17 Thread Xiao Guangrong
Using sp->role.level instead of @level since @level is not got from the page table hierarchy There is no issue in current code since the fast page fault currently only fixes the fault caused by dirty-log that is always on the last level (level = 1) This patch makes the code more readable and avoi

[PATCH v5 5/5] KVM: MMU: flush tlb out of mmu lock when write-protect the sptes

2014-04-17 Thread Xiao Guangrong
Now we can flush all the TLBs out of the mmu lock without TLB corruption when write-proect the sptes, it is because: - we have marked large sptes readonly instead of dropping them that means we just change the spte from writable to readonly so that we only need to care the case of changing spte

[PATCH v5 4/5] KVM: MMU: flush tlb if the spte can be locklessly modified

2014-04-17 Thread Xiao Guangrong
Relax the tlb flush condition since we will write-protect the spte out of mmu lock. Note lockless write-protection only marks the writable spte to readonly and the spte can be writable only if both SPTE_HOST_WRITEABLE and SPTE_MMU_WRITEABLE are set (that are tested by spte_is_locklessly_modifiable)

Re: [PATCH 0/3] Use an alternative to _PAGE_PROTNONE for _PAGE_NUMA v4

2014-04-17 Thread Mel Gorman
On Thu, Apr 17, 2014 at 10:59:12AM +0800, Fengguang Wu wrote: > On Tue, Apr 15, 2014 at 03:41:13PM +0100, Mel Gorman wrote: > > Fengguang Wu found that an earlier version crashed on his > > tests. This version passed tests running with DEBUG_VM and > > DEBUG_PAGEALLOC. Fengguang, another test would

[PATCH v5 1/5] Revert "KVM: Simplify kvm->tlbs_dirty handling"

2014-04-17 Thread Xiao Guangrong
This reverts commit 5befdc385ddb2d5ae8995ad89004529a3acf58fc. Since we will allow flush tlb out of mmu-lock in the later patch Signed-off-by: Xiao Guangrong --- arch/x86/kvm/paging_tmpl.h | 7 +++ include/linux/kvm_host.h | 4 +--- virt/kvm/kvm_main.c| 5 - 3 files changed, 8

[PATCH v5 3/5] KVM: MMU: lazily drop large spte

2014-04-17 Thread Xiao Guangrong
Currently, kvm zaps the large spte if write-protected is needed, the later read can fault on that spte. Actually, we can make the large spte readonly instead of making them un-present, the page fault caused by read access can be avoided The idea is from Avi: | As I mentioned before, write-protecti

[PATCH v5 0/5] KVM: x86: flush tlb out of mmu-lock after write protection

2014-04-17 Thread Xiao Guangrong
Since Marcelo has agreed the comments improving in the off-line mail, i consider this is his Ack. :) Please let me know If i misunderstood it. This patchset is splited from my previous patchset: [PATCH v3 00/15] KVM: MMU: locklessly write-protect that can be found at: https://lkml.org/lkml/2013/10

[PATCH v3 2/2] ARM: sun6i: a31: Add support for the High Speed Timers

2014-04-17 Thread Maxime Ripard
The Allwinner A31 has support for four high speed timers. Apart for the number of timers (4 vs 2), it's basically the same logic than the high speed timers found in the sun5i chips. Now that we have a driver to support it, we can enable them in the device tree. Signed-off-by: Maxime Ripard ---

[PATCH v3 0/2] ARM: sunxi: Add A31 High Speed Timer Support

2014-04-17 Thread Maxime Ripard
Hi everyone, This patchset enables support for the High Speed Timer IP found in the Allwinner A31 SoCs. These timers are asserted in reset, and are not associated with any struct device, so we also add a small helper to the reset framework along the way to be able to retrieve the reset controller

[PATCH v3 1/2] clocksource: sun5i: Add support for reset controller

2014-04-17 Thread Maxime Ripard
The Allwinner A31 that uses this timer has the timer IP asserted in reset. Add an optional reset property to the DT, and deassert the timer from reset if it's there. Signed-off-by: Maxime Ripard --- .../devicetree/bindings/timer/allwinner,sun5i-a13-hstimer.txt | 4 drivers/clocksource

Re: [PATCH] .gitignore: ignore Module.symvers in all directories

2014-04-17 Thread Zhao, Gang
On Wed, 2014-04-16 at 23:08:26 +0200, Michal Marek wrote: > On Mon, Apr 14, 2014 at 02:56:15PM +0800, Zhao, Gang wrote: >> When using `make M=/path/to/driver modules` to build a module, file >> Module.symvers will be created in that directory, so it's better to >> ignore it in all directories. >>

[f2fs-dev] [PATCH] f2fs: fix to enable readahead last NAT block

2014-04-17 Thread Chao Yu
We skip reading last one of NAT blocks when readahead them since max value of valid block is calculated incorrectly. We should fix this problem to avoid it. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c

Re: [PATCH/RFC v3 3/5] leds: Add support for max77693 mfd flash cell

2014-04-17 Thread Jacek Anaszewski
Hi Sakari, Thanks for the review. On 04/16/2014 07:26 PM, Sakari Ailus wrote: Hi Jacek, Thanks for the patch! Comments below. On Fri, Apr 11, 2014 at 04:56:54PM +0200, Jacek Anaszewski wrote: This patch adds led-flash support to Maxim max77693 chipset. A device can be exposed to user space t

  1   2   3   4   5   6   7   8   >