[RFC PATCH v2 04/15] perf tools: Add functions to get calling regs

2015-05-24 Thread He Kuang
For generating function formal parameters without debuginfo, add function to get names and offsets of architecture dependent calling regs. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/util/include/dwarf-regs.h | 2 ++ tools/perf/util/probe-finder.c | 10 ++ 2 files

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter, On 24 May 2015 at 04:01, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 12:40 PM, Timur Tabi wrote: [ ... ] I use emergency_restart(), because the watchdog-api.txt documentation says this: If userspace fails (RAM error, kernel bug, whatever), the notifications cease to

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter, On 24 May 2015 at 04:44, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 01:27 PM, Timur Tabi wrote: Guenter Roeck wrote: However, the pretimeout concept assumes that there are two timers which can be set independently. As you had pointed out earlier, and as the

Re: [PATCH v3 2/3] dell-rbtn: Export notifier for other kernel modules

2015-05-24 Thread Pali Rohár
On Sunday 24 May 2015 07:07:36 valdis.kletni...@vt.edu wrote: On Sat, 23 May 2015 03:05:50 +0200, Pali Rohár said: I'm thinking about using symbol_request() in dell-laptop.c (instead hard=20 dependency) and then not ignoring error here... It could fix this=20 problem. That would also

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Guenter Roeck
On 05/24/2015 02:58 AM, Fu Wei wrote: Hi Guenter, Great thanks for your suggestion and review, I have some questions below , would you please help me out? On 24 May 2015 at 03:51, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 11:37 AM, Timur Tabi wrote: Guenter Roeck wrote: I

Re: [PATCH 0/8] MODSIGN: Use PKCS#7 for module signatures [ver #4]

2015-05-24 Thread Petko Manolov
On 15-05-22 08:28:17, Mimi Zohar wrote: On Fri, 2015-05-22 at 08:48 +0100, David Howells wrote: Luis R. Rodriguez mcg...@suse.com wrote: This is similar to what i am doing right now - create CA hierarchy so we can have something like: +-

Re: [RFC PATCH v2 03/15] perf bpf: Save pt_regs info from debuginfo

2015-05-24 Thread Masami Hiramatsu
On 2015/05/24 17:27, He Kuang wrote: Save reg number in function convert_variable_location() instead of the register string name, so we can fetch the target register from bpf context register later. This is not needed because you can also get reg number from reg string afterwards. Thank you,

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Timur Tabi
Guenter Roeck wrote: Maybe you and/or Timur can test this on the real systems you have access to. It should be quite straightforward to test - have the interrupt handler only print a message, program some values into the watchdog, and see when WS0 and WS1 occur. I'll try, but on my system,

Announce loop-AES-v3.7d file/swap crypto package

2015-05-24 Thread Jari Ruusu
loop-AES changes since previous release: - Fixed endianness bug on little-endian PowerPC. More common big-endian PowerPC was OK. Bug reported by Fernando Seiti Furusato. - Worked around VFS changes on 4.1-rc kernels. - Some #ifdef spaghetti removed for 4.x kernels. bzip2 compressed tarball is

RaspberryPi is this a real kernel?

2015-05-24 Thread John Whitmore
I tried to subscribe to the RaspberryPi Kernel mailing list a few days ago but I guess that my request has not been accepted as yet. Maybe it was missed so I re-tried a moment ago. Since I can't get in there I thought I'd try here. Apologies, bit of a panic. So I'm trying to make a few changes to

Re: [PATCH 1/1] drivers: staging: unisys: visorbus: visorchipset.c: private functions should be declared static

2015-05-24 Thread Jes Sorensen
tolga ceylan tolga.cey...@gmail.com writes: On 05/15/2015 09:22 PM, Tolga Ceylan wrote: visorchipset_file_init() and visorchipset_file_cleanup() functions do not seem to be used from anywhere else and now are declared as static. Sparse emitted not declared warnings for these two functions.

Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist

2015-05-24 Thread Tal Shorer
Why do we even need that? If you take patch that makes ulpi_init a subsys_initcall you won't have this problem, and no additional weird hacks and errors will be needed On Sun, May 24, 2015 at 11:09 AM, Sudip Mukherjee sudipm.mukher...@gmail.com wrote: On Sun, May 24, 2015 at 12:19:48AM -0700,

Re: [RFC PATCH v2 09/15] perf probe: Support $params without debuginfo

2015-05-24 Thread Masami Hiramatsu
On 2015/05/24 17:28, He Kuang wrote: When probing at function entry, fallback $params to calling regs if no debuginfo is provided. Before this path: $ perf probe -v --add='generic_perform_write $params' ... Added new event: Writing event: p:probe/generic_perform_write

[PATCH 1/1] dmaengine: pl330: Initialize pl330 for pl330_prep_dma_memcpy after NULL check of pch

2015-05-24 Thread Maninder Singh
From: Maninder Singh maninder...@samsung.com So initialize struct pl330_dmac *pl330 after NULL check of dma_pl330_chan *pch. Signed-off-by: Maninder Singh maninder...@samsung.com Reviewed-by: Vaneet Narang v.nar...@samsung.com --- drivers/dma/pl330.c |4 +++- 1 files changed, 3

Re: [PATCH RFC] rcu: change return type to bool

2015-05-24 Thread Nicholas Mc Guire
On Sun, 24 May 2015, Joe Perches wrote: On Sun, 2015-05-24 at 10:10 +0200, Nicholas Mc Guire wrote: On Sun, 24 May 2015, Joe Perches wrote: On Sun, 2015-05-24 at 09:27 +0200, Nicholas Mc Guire wrote: On Sat, 23 May 2015, Steven Rostedt wrote: [] - return sum; +

Re: [PATCH v5] power_supply: Add support for Richtek rt9455 battery charger

2015-05-24 Thread Sebastian Reichel
Hi Anda-Maria, On Fri, May 08, 2015 at 03:57:49PM +0300, Anda-Maria Nicolae wrote: Based on the datasheet found here: http://www.richtek.com/download_ds.jsp?p=RT9455 Signed-off-by: Anda-Maria Nicolae anda-maria.nico...@intel.com --- Updates from v4 version:

[RFC PATCH v2 12/15] perf bpf: Generate bpf prologue without debuginfo

2015-05-24 Thread He Kuang
When probing at function entry, fallback to generate bpf prologue by calling args if '$param' is the only args and no debuginfo is provided. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/util/probe-event.c | 54 ++- 1 file changed, 53

[RFC PATCH v2 03/15] perf bpf: Save pt_regs info from debuginfo

2015-05-24 Thread He Kuang
Save reg number in function convert_variable_location() instead of the register string name, so we can fetch the target register from bpf context register later. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/util/include/dwarf-regs.h | 13 + tools/perf/util/probe-event.h

[RFC PATCH v2 02/15] perf bpf: Support custom vmlinux path

2015-05-24 Thread He Kuang
Make bpf command support -k option, when inserting probe point which needs debuginfo, a customized vmlinux path can be specified. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/builtin-bpf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/builtin-bpf.c

[RFC PATCH v2 11/15] perf bpf: Synthesize vars to generate bpf prologue

2015-05-24 Thread He Kuang
After gethered all vars represented in trace_probe_arg, we can now use functions in libbpf to generate the args prologue. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/util/probe-finder.c | 83 +- 1 file changed, 81 insertions(+), 2

[RFC PATCH v2 09/15] perf probe: Support $params without debuginfo

2015-05-24 Thread He Kuang
When probing at function entry, fallback $params to calling regs if no debuginfo is provided. Before this path: $ perf probe -v --add='generic_perform_write $params' ... Added new event: Writing event: p:probe/generic_perform_write _stext+1246632 $params [86152.161204] Parse error at

Re: [PATCH RFC] rcu: change return type to bool

2015-05-24 Thread Joe Perches
On Sun, 2015-05-24 at 10:10 +0200, Nicholas Mc Guire wrote: On Sun, 24 May 2015, Joe Perches wrote: On Sun, 2015-05-24 at 09:27 +0200, Nicholas Mc Guire wrote: On Sat, 23 May 2015, Steven Rostedt wrote: [] - return sum; + return !!sum; Hmm I wonder if gcc is

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter, Great thanks for your suggestion and review, I have some questions below , would you please help me out? On 24 May 2015 at 03:51, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 11:37 AM, Timur Tabi wrote: Guenter Roeck wrote: I think it is quite unfortunate that the

[RFC PATCH v2 10/15] perf bpf: Process debuginfo for generating bpf prologue

2015-05-24 Thread He Kuang
Process debuginfo for bpf prologue, the process function is copied and modified from debuginfo__find_trace_events(), with a different callback function for generating bpf prologue bytecode. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/util/probe-event.c | 27

[RFC PATCH v2 07/15] bpf tools: Convert arglist to bpf prologue

2015-05-24 Thread He Kuang
When all arguments in bpf config section are collected in register and offset form, this patch will fetch them from bpf context register and place them as bpf input parameters. By bpf calling convention, we restrict the max fetched arg number to 4. Bpf prologue is generated as the following

[RFC PATCH v2 05/15] perf tools: Add pt_regs offsets and calling regs for x86

2015-05-24 Thread He Kuang
Combine pt_regs offset of each registers into arch_regs_table. And add architecture dependent calling_regs_table. Signed-off-by: He Kuang heku...@huawei.com --- tools/perf/arch/x86/util/dwarf-regs.c | 100 +++--- 1 file changed, 79 insertions(+), 21 deletions(-) diff

Re: [PATCH] stable: Update documentation to clarify preferred procedure

2015-05-24 Thread Christoffer Dall
On Fri, May 22, 2015 at 09:40:39AM -0600, Jonathan Corbet wrote: On Wed, 13 May 2015 22:01:07 +0200 Christoffer Dall christoffer.d...@linaro.org wrote: Clearly specify that option 1 is strongly preferred so that developers understand that option 2 or 3 should only be used when absolutely

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Guenter Roeck
On 05/24/2015 03:15 AM, Fu Wei wrote: Hi Guenter, On 24 May 2015 at 04:01, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 12:40 PM, Timur Tabi wrote: [ ... ] I use emergency_restart(), because the watchdog-api.txt documentation says this: If userspace fails (RAM error, kernel bug,

[PATCH] cgroup: add explicit cast and comment for return type conversion

2015-05-24 Thread Nicholas Mc Guire
Type-checking coccinelle spatches are being used to locate type mismatches between function signatures and return values in this case this produced: ./kernel/cgroup.c:2525 WARNING: return of wrong type ssize_t != size_t, Returning unsigned types converted to a signed type can be

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Timur Tabi
Fu Wei wrote: If pretimeout concept assumes that there are two timers, I misunderstand the pretimeout, then I will delete the pretimeout immediately. In my opinion, calling panic() on a pre-timeout is not useful, because that's really just a normal timeout. If there were a way to warn user

[PATCH v5 00/37] JZ4780 CI20 support

2015-05-24 Thread Paul Burton
This series introduces initial support for the Ingenic JZ4780 SoC and the Imagination Technologies MIPS Creator CI20 board which is built around it. In the process the existing JZ4740 qi_lb60 code gains initial support for using DeviceTree such that much of the existing platform code under

[PATCH v5 04/37] MIPS: ingenic: add newer vendor IDs

2015-05-24 Thread Paul Burton
Ingenic have actually varied the vendor/company ID of the XBurst cores across their range of SoCs, whilst keeping the product ID revision constant... Add definitions for vendor IDs known to be used in some of Ingenic's newer SoCs, and handle them in the same way as the existing Ingenic vendor ID

[PATCH 0/9 linux-next] move dir_pages() to pagemap.h

2015-05-24 Thread Fabian Frederick
This small patchset declares dir_pages() in pagemap.h and removes declarations in each filesystems. Fabian Frederick (9): pagemap.h: declare dir_pages() nilfs2: remove dir_pages() declaration ufs: use dir_pages instead of ufs_dir_pages() fs/qnx6: remove dir_pages() declaration ext2:

[PATCH v5 14/37] MIPS: JZ4740: drop intc debugfs code

2015-05-24 Thread Paul Burton
The debugfs code becomes a nuisance when attempting to avoid globals, since the interrupt controller probe function run too early for it to be safe to create the debugfs files. Drop it. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Thomas Gleixner

[PATCH v5 03/37] MIPS: JZ4740: introduce CONFIG_MACH_INGENIC

2015-05-24 Thread Paul Burton
In preparation for supporting Ingenic SoCs other than the JZ4740, introduce MACH_INGENIC to Kconfig move MACH_JZ4740 to a separate entry selected by the board when appropriate. This allows MACH_INGENIC to be used to enable things generic across Ingenic SoCs. Signed-off-by: Paul Burton

[PATCH v5 01/37] devicetree/bindings: add Ingenic Semiconductor vendor prefix

2015-05-24 Thread Paul Burton
Define a vendor prefix for Ingenic Semiconductor, a vendor of MIPS-based SoCs. Simply use 'ingenic'. Signed-off-by: Paul Burton paul.bur...@imgtec.com Acked-by: Rob Herring r...@kernel.org Cc: Lars-Peter Clausen l...@metafoo.de Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala

[PATCH v5 13/37] MIPS: JZ4740: register an irq_domain for the interrupt controller

2015-05-24 Thread Paul Burton
When probing the interrupt controller, register an IRQ domain such that the interrupts can be translated by devicetree code thus used from devicetree. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Thomas Gleixner t...@linutronix.de Cc: Jason Cooper

[PATCH 5/9 linux-next] ext2: remove dir_pages() declaration

2015-05-24 Thread Fabian Frederick
dir_pages() is now declared in pagemap.h Signed-off-by: Fabian Frederick f...@skynet.be --- fs/ext2/dir.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index 796b491..0c6638b 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c @@ -70,11 +70,6 @@ static inline

[PATCH 8/9 linux-next] sysv: remove dir_pages() declaration

2015-05-24 Thread Fabian Frederick
dir_pages() is now declared in pagemap.h Signed-off-by: Fabian Frederick f...@skynet.be --- fs/sysv/dir.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/sysv/dir.c b/fs/sysv/dir.c index 8f3555f..63c1bcb 100644 --- a/fs/sysv/dir.c +++ b/fs/sysv/dir.c @@ -33,11 +33,6 @@ static inline

[PATCH 7/9 linux-next] exofs: remove dir_pages() declaration

2015-05-24 Thread Fabian Frederick
dir_pages() is now declared in pagemap.h Signed-off-by: Fabian Frederick f...@skynet.be --- fs/exofs/dir.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/fs/exofs/dir.c b/fs/exofs/dir.c index 4deb0b0..e5bb2ab 100644 --- a/fs/exofs/dir.c +++ b/fs/exofs/dir.c @@ -44,12 +44,6 @@ static

[PATCH v5 35/37] MIPS: JZ4740: use Ingenic SoC UART driver

2015-05-24 Thread Paul Burton
Remove the serial support from arch/mips/jz4740 make use of the new Ingenic SoC UART driver. This is done for both regular early console output. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org Cc: Lars-Peter

[PATCH] MIPS: optimise non-EVA kernel user memory accesses

2015-05-24 Thread Paul Burton
Commits ac1d8590d3ae (MIPS: asm: uaccess: Use EVA instructions wrappers), 05c6516005c4 (MIPS: asm: uaccess: Add EVA support to copy_{in, to,from}_user) e3a9b07a9caf (MIPS: asm: uaccess: Add EVA support for str*_user operations) added checks to various user memory access functions macros in order

[PATCH v5 36/37] MIPS: ingenic: initial JZ4780 support

2015-05-24 Thread Paul Burton
Support the Ingenic JZ4780 SoC using the existing code under arch/mips/jz4740 now that it has been generalised sufficiently. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org Cc: Lars-Peter Clausen l...@metafoo.de

[PATCH v5 32/37] MIPS: JZ4740: only detect RAM size if not specified in DT

2015-05-24 Thread Paul Burton
Allow a devicetree to specify the memory present in the system rather than probing it from the memory controller. This both saves the probing for systems where the amount of memory is fixed, and will simplify the bringup of later Ingenic SoCs where the memory controller register layout differs.

[PATCH v5 37/37] MIPS: ingenic: initial MIPS Creator CI20 support

2015-05-24 Thread Paul Burton
Add an initial device tree for the Ingenic JZ4780 based MIPS Creator CI20 board. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mark Rutland mark.rutl...@arm.com Cc:

[PATCH v5 33/37] devicetree: document Ingenic SoC UART binding

2015-05-24 Thread Paul Burton
Add binding documentation for the UARTs found in Ingenic SoCs. Signed-off-by: Paul Burton paul.bur...@imgtec.com Acked-by: Rob Herring r...@kernel.org Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mark Rutland

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Timur, Sorry, how do you trigger a panic if WS1 ties to reset ?? don't know what is your question could you make it simple: 1) calling panic() on pre-timeout (WS0) 2) calling panic() on timeout (WS1) in first version , I just print the timeleft for WS1 or panic when WS0 occurs.

Re: [linux-nfc] [PATCH 3/8] NFC: NCI: Adds NCI init and reset API for drivers

2015-05-24 Thread Samuel Ortiz
Hi Robert, On Tue, Mar 31, 2015 at 05:05:53PM +0300, Robert Dolca wrote: On Thu, Mar 26, 2015 at 2:29 AM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Robert, On Tue, Feb 24, 2015 at 12:01:47PM +0200, Robert Dolca wrote: In order to communicate with the device during the setup phase,

Re: [PATCH v9 0/3] ARM: mediatek: Add driver for Mediatek I2C

2015-05-24 Thread Wolfram Sang
This series already reviewed in public more than six months. In the early version, 8173 CCF and Pinctrl not be accepted yet, so we don't put device node with this series. Now both CCF and pinctrl have been accepted, maybe it's time to add device node.I am glad that if this I2C version can be

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Timur Tabi
Guenter Roeck wrote: The pseudo-code in the specification suggests that if WCV is configured, WS0 = WCV WS1 = WCV + WOR Assuming that the implementation follows the pseudo-code in the specification, we would have separately programmable values. Since the pretimeout (per ABI) is the

Re: [RFC PATCH 2/2] arm64: Implement vmalloc based thread_info allocator

2015-05-24 Thread Arnd Bergmann
On Monday 25 May 2015 01:02:20 Jungseok Lee wrote: Fork-routine sometimes fails to get a physically contiguous region for thread_info on 4KB page system although free memory is enough. That is, a physically contiguous region, which is currently 16KB, is not available since system memory is

Re: [PATCH v5 07/12] mtd: nand: add Samsung K9GBG08U0A-M to nand_ids table

2015-05-24 Thread Ezequiel Garcia
Antoine, On 05/20/2015 11:43 AM, Antoine Tenart wrote: [..] I just had a look on the datasheet, and I you're right, the nand should support JDEC. However I get a No NAND device found error when reverting this patch. It seems nand_flash_detect_jedec() is not reading JDEC and is returning

[PATCH v5 25/37] clk: ingenic: add driver for Ingenic SoC CGU clocks

2015-05-24 Thread Paul Burton
This driver supports the CGU clocks for Ingenic SoCs. It is generic enough to be usable across at least the JZ4740 to the JZ4780, and will be made use of on such devices in subsequent commits. This patch by itself only adds the SoC-agnostic infrastructure that forms the bulk of the CGU driver for

[PATCH v5 20/37] MIPS: JZ4740: support newer SoC interrupt controllers

2015-05-24 Thread Paul Burton
Allow the interrupt controllers of the JZ4770, JZ4775 JZ4780 SoCs to be probed via devicetree, supporting the 64 interrupts they provide. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Thomas Gleixner t...@linutronix.de Cc: Jason Cooper

[PATCH v5 30/37] clk: ingenic: add JZ4780 CGU support

2015-05-24 Thread Paul Burton
Add support for the clocks provided by the CGU in the Ingenic JZ4780 SoC, making use of the SoC-agnostic CGU code to do the heavy lifting. Signed-off-by: Paul Burton paul.bur...@imgtec.com Co-authored-by: Paul Cercueil p...@crapouillou.net Cc: Lars-Peter Clausen l...@metafoo.de Cc: Mike Turquette

[PATCH v5 28/37] MIPS, clk: move jz4740 UDC auto suspend functions to jz4740-cgu

2015-05-24 Thread Paul Burton
The jz4740-cgu driver already has access to the CGU, so it makes sense to move the few remaining accesses to the CGU from arch/mips/jz4740 there too. Move the jz4740_clock_udc_{dis,en}able_auto_suspend functions there for such consistency. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc:

[PATCH v5 27/37] MIPS,clk: move jz4740_clock_set_wait_mode to jz4740-cgu

2015-05-24 Thread Paul Burton
The jz4740-cgu driver already has access to the CGU, so it makes sense to move the few remaining accesses to the CGU from arch/mips/jz4740 there too. Move jz4740_clock_set_wait_mode for such consistency. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc:

[PATCH v5 31/37] MIPS: JZ4740: remove clock.h

2015-05-24 Thread Paul Burton
The only thing remaining in arch/mips/jz4740/clock.h is declarations of the jz4740_clock_{suspend,resume} functions. Move these to arch/mips/include/asm/mach-jz4740/clock.h for consistency with similar functions, and remove the redundant arch/mips/jz4740/clock.h header. Signed-off-by: Paul Burton

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter, Great thanks for your time, you provide your feedback in your weekend, I am so appreciate that. my feedback inline below On 24 May 2015 at 22:06, Guenter Roeck li...@roeck-us.net wrote: On 05/24/2015 02:58 AM, Fu Wei wrote: Hi Guenter, Great thanks for your suggestion and

[RFC PATCH 0/2] vmalloc based thread_info allocator

2015-05-24 Thread Jungseok Lee
ARM64 kernel tries to get physically contiguous 16KB for thread_info when creating a process. The allocation is sometimes failed on low memory platforms due to memory fragmentation, not a lack of free memory. The first approach is to improve memory compaction logic, but the work should consider a

Re: [PATCH] kernel/printk/printk.c: check_syslog_permissions() cleanup

2015-05-24 Thread Vasily Averin
On 15.05.2015 01:01, Andrew Morton wrote: On Sun, 10 May 2015 09:35:53 +0300 Vasily Averin v...@odin.com wrote: --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -484,11 +484,11 @@ int check_syslog_permissions(int type, bool from_file) * already done the capabilities checks

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Guenter Roeck
On 05/24/2015 09:13 AM, Timur Tabi wrote: Fu Wei wrote: in the first timeout, just panic() maybe not enough, in [RFC] version of my patchset, I offer some option as preaction to use, but for simplifying the first version of driver, I have deleted them. but at least, panic() is far more useful

Re: [PATCH 4/4] spi: omap2-mcspi: Handle error on gpio_request

2015-05-24 Thread Michael Welling
On Sun, May 24, 2015 at 10:13:07AM +0200, Nicholas Mc Guire wrote: On Sat, 23 May 2015, Michael Welling wrote: If a valid GPIO is specified but cannot be requested by the driver, print a message and error out of omap2_mcspi_setup. Signed-off-by: Michael Welling mwell...@ieee.org ---

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Timur On 25 May 2015 at 00:44, Timur Tabi ti...@codeaurora.org wrote: Guenter Roeck wrote: The current watchdog API suggests that the pretimeout allows Linux to record useful information (like panic information and kernel coredumps) before it resets. The call to panic() would be the

Re: [char-misc-next 2/4] mei: support for dynamic clients

2015-05-24 Thread Greg KH
On Thu, May 21, 2015 at 01:35:49PM +0300, Tomas Winkler wrote: HBM version 2.0 and above allows ME clients in the system to register/unregister after the system is fully initialized. Clients may be added or removed after enum_resp message was received 1. To preserve backward compatibility

Re: [PATCH v2] Documentation/arch: Add kernel feature descriptions and arch support status under Documentation/features/

2015-05-24 Thread Jonathan Corbet
On Sat, 23 May 2015 10:07:05 +0200 Ingo Molnar mi...@kernel.org wrote: This seems to have slowed down a bit; I've taken the liberty of pulling it into the docs tree. [...] Please don't, I've got a different structure for it, so that the Git log becomes a lot more usable. I'll post it

Re: [PATCH v3 1/2] tools lib traceevent: Export dynamic symbols used by traceevent plugins

2015-05-24 Thread Jiri Olsa
On Fri, May 15, 2015 at 08:01:18AM +, He Kuang wrote: SNIP :1049 1049 [000] 9666.754487: ftrace:function: 8118bc50 -- 8118c5b3 :1049 1049 [000] 9666.754487: ftrace:function: 818e2440 -- 8118bc75 :1049 1049 [000]

[PATCH 1/9 linux-next] pagemap.h: declare dir_pages()

2015-05-24 Thread Fabian Frederick
That function was declared in a lot of filesystems to calculate directory pages. Signed-off-by: Fabian Frederick f...@skynet.be --- include/linux/pagemap.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 7c37907..0ec1a22 100644

[PATCH 3/9 linux-next] ufs: use dir_pages instead of ufs_dir_pages()

2015-05-24 Thread Fabian Frederick
dir_pages was declared in a lot of filesystems. Use newly dir_pages() from pagemap.h Signed-off-by: Fabian Frederick f...@skynet.be --- fs/ufs/dir.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/fs/ufs/dir.c b/fs/ufs/dir.c index 1bfe8ca..6f44a8b 100644 ---

[PATCH v5 22/37] MIPS: JZ4740: call jz4740_clock_init earlier

2015-05-24 Thread Paul Burton
Call jz4740_clock_init before any uses of jz4740_clock_bdata occur. This is in preparation for replacing uses of that struct with calls to clk_get_rate, which will allow the clocks to be migrated towards common clock framework devicetree. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc:

[PATCH v5 23/37] MIPS: JZ4740: replace use of jz4740_clock_bdata

2015-05-24 Thread Paul Burton
Replace uses of the jz4740_clock_bdata struct with calls to clk_get_rate for the appropriate clock. This is in preparation for migrating the clocks towards common clock framework devicetree. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Ralf Baechle

[PATCH v5 21/37] irqchip: move Ingenic SoC intc driver to drivers/irqchip

2015-05-24 Thread Paul Burton
Move the driver for Ingenic SoC interrupt controllers into drivers/irqchip where it belongs. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Thomas Gleixner t...@linutronix.de Cc: Jason Cooper ja...@lakedaemon.net Cc: Ralf Baechle r...@linux-mips.org

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter, Thanks for your feedback On 24 May 2015 at 22:15, Guenter Roeck li...@roeck-us.net wrote: On 05/24/2015 03:15 AM, Fu Wei wrote: Hi Guenter, On 24 May 2015 at 04:01, Guenter Roeck li...@roeck-us.net wrote: On 05/23/2015 12:40 PM, Timur Tabi wrote: [ ... ] I use

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Timur, I have said this before: in the first timeout, just panic() maybe not enough, in [RFC] version of my patchset, I offer some option as preaction to use, but for simplifying the first version of driver, I have deleted them. but at least, panic() is far more useful than a simple reset.

Re: [PATCH v9 0/3] ARM: mediatek: Add driver for Mediatek I2C

2015-05-24 Thread Eddie Huang
Hi Dan, On Thu, 2015-05-21 at 22:39 +0800, Daniel Kurtz wrote: On Thu, May 21, 2015 at 4:53 PM, Eddie Huang eddie.hu...@mediatek.com wrote: This series is for Mediatek SoCs I2C controller common bus driver. Earlier MTK SoC (for example, MT6589, MT8135) I2C HW has some limitations. New

Re: [PATCH v5 07/37] MIPS: JZ4740: probe CPU interrupt controller via DT

2015-05-24 Thread Sergei Shtylyov
Hello. On 05/24/2015 06:11 PM, Paul Burton wrote: Use the generic irqchip_init function to probe irqchip drivers using DT, and add the appropriate node to the JZ4740 devicetree in place of the call to mips_cpu_irq_init. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell

Re: [PATCH v2 5/7] Watchdog: introduce pretimeout into framework

2015-05-24 Thread Fu Wei
Hi Guenter, On 22 May 2015 at 23:05, Guenter Roeck li...@roeck-us.net wrote: On Fri, May 22, 2015 at 10:38:32PM +0800, Fu Wei wrote: Hi Guenter. Sorry for my poor English . let me explain this : On 22 May 2015 at 21:23, Guenter Roeck li...@roeck-us.net wrote: On 05/22/2015 03:46 AM, Fu

Re: [PATCH v2 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall

2015-05-24 Thread Greg Kroah-Hartman
On Thu, May 21, 2015 at 08:11:27PM -0700, David Cohen wrote: On Thu, May 21, 2015 at 08:09:54PM -0700, David Cohen wrote: Hi, On Fri, May 22, 2015 at 10:07:05AM +0800, Lu Baolu wrote: Many drivers and modules depend on ULPI bus registeration to register ULPI interfaces and drivers.

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Fu Wei
Hi Guenter On 25 May 2015 at 00:29, Guenter Roeck li...@roeck-us.net wrote: On 05/24/2015 09:13 AM, Timur Tabi wrote: Fu Wei wrote: in the first timeout, just panic() maybe not enough, in [RFC] version of my patchset, I offer some option as preaction to use, but for simplifying the first

Re: [GIT PULL 0/5] phy: fixes for v4.1-rc

2015-05-24 Thread Greg KH
On Wed, May 20, 2015 at 08:41:40PM +0530, Kishon Vijay Abraham I wrote: Hi Greg, On Tuesday 12 May 2015 09:29 PM, Kishon Vijay Abraham I wrote: Hi Greg, Please find the pull request for 4.1 -rc cycle. This includes a couple of fixes in Kconfig, one to fix randconfig error and the other

[BUG] Read-Only THP causes stalls (commit 10359213d)

2015-05-24 Thread Christoffer Dall
Hi all, I noticed a regression on my arm64 APM X-Gene system a couple of weeks back. I would occassionally see the system lock up and see RCU stalls during the caching phase of kernbench. I then wrote a small script that does nothing but cache the files (http://paste.ubuntu.com/11324767/) and

[PATCH v5 07/37] MIPS: JZ4740: probe CPU interrupt controller via DT

2015-05-24 Thread Paul Burton
Use the generic irqchip_init function to probe irqchip drivers using DT, and add the appropriate node to the JZ4740 devicetree in place of the call to mips_cpu_irq_init. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala

[PATCH v5 08/37] MIPS: JZ4740: use generic plat_irq_dispatch

2015-05-24 Thread Paul Burton
Make use of the generic plat_irq_dispatch function introduced by commit 85f7cdacbb81 MIPS: Provide a generic plat_irq_dispatch, in order to reduce unnecessary code duplication. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Ralf Baechle

[PATCH v5 12/37] MIPS: JZ4740: parse SoC interrupt controller parent IRQ from DT

2015-05-24 Thread Paul Burton
Rather than hardcoding the IRQ number used to cascade interrupts from the SoC interrupt controller to the CPU interrupt controller, read that IRQ number from the DT describing the system. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Lars-Peter Clausen l...@metafoo.de Cc: Thomas Gleixner

[PATCH v5 10/37] devicetree: document Ingenic SoC interrupt controller binding

2015-05-24 Thread Paul Burton
Add binding documentation for Ingenic SoC interrupt controllers. Signed-off-by: Paul Burton paul.bur...@imgtec.com Acked-by: Rob Herring r...@kernel.org Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Jason Cooper ja...@lakedaemon.net Cc: Kumar Gala ga...@codeaurora.org Cc: Lars-Peter Clausen

[PATCH v5 05/37] MIPS: JZ4740: require include DT

2015-05-24 Thread Paul Burton
Require a DT for JZ4740 based systems, and add a stub one for the qi_lb60 (Ben NanoNote) board. Devices will be migrated to being probed via this DT over time. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc: Ian Campbell ijc+devicet...@hellion.org.uk Cc: Kumar Gala ga...@codeaurora.org Cc:

[PATCH v5 06/37] MIPS: irq_cpu: declare irqchip table entry

2015-05-24 Thread Paul Burton
Allow the MIPS CPU interrupt controller to be probed from DT using the generic __irqchip_of_table for platforms which use irqchip_init. This will avoid such platforms needing to duplicate the compatible string init function pointer. Signed-off-by: Paul Burton paul.bur...@imgtec.com Cc:

[PATCH v5 34/37] serial: 8250_ingenic: support for Ingenic SoC UARTs

2015-05-24 Thread Paul Burton
Introduce a driver suitable for use with the UARTs present in Ingenic SoCs such as the JZ4740 JZ4780. These are described as being ns16550 compatible but aren't quite - they require the setting of an extra bit in the FCR register to enable the UART module. The serial_out implementation is the

[PATCH v5 29/37] MIPS, clk: move jz4740 clock suspend, resume functions to jz4740-cgu

2015-05-24 Thread Paul Burton
The jz4740-cgu driver already has access to the CGU, so it makes sense to move the few remaining accesses to the CGU from arch/mips/jz4740 there too. Move the jz4740_clock_{suspend,resume} functions there for such consistency. The arch/mips/jz4740/clock.c file now contains nothing more of use so

[RFC PATCH 2/2] arm64: Implement vmalloc based thread_info allocator

2015-05-24 Thread Jungseok Lee
Fork-routine sometimes fails to get a physically contiguous region for thread_info on 4KB page system although free memory is enough. That is, a physically contiguous region, which is currently 16KB, is not available since system memory is fragmented. This patch tries to solve the problem as

[RFC PATCH 1/2] kernel/fork.c: add a function to calculate page address from thread_info

2015-05-24 Thread Jungseok Lee
A current implementation assumes thread_info address is always correctly calculated via virt_to_page. It restricts a different approach, such as thread_info allocation from vmalloc space. This patch, thus, introduces an independent function to calculate page address from thread_info one.

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Guenter Roeck
On 05/24/2015 08:50 AM, Fu Wei wrote: [ ...] Actually, I have added my thought at the head of sbsa_gwdt.c as a comment : * * Note: This SBSA Generic watchdog driver is compatible with * the pretimeout concept of Linux kernel. * The timeout and pretimeout are set by the

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Timur Tabi
Guenter Roeck wrote: The current watchdog API suggests that the pretimeout allows Linux to record useful information (like panic information and kernel coredumps) before it resets. The call to panic() would be the means to make this happen. Now that I think about it, that does make sense.

Re: [linux-nfc] [PATCH 1/8] NFC: NCI: Allow connection close with dev down

2015-05-24 Thread Samuel Ortiz
Hi Robert, On Tue, Mar 31, 2015 at 05:03:42PM +0300, Robert Dolca wrote: On Thu, Mar 26, 2015 at 2:29 AM, Samuel Ortiz sa...@linux.intel.com wrote: Hi Robert, On Tue, Feb 24, 2015 at 12:01:45PM +0200, Robert Dolca wrote: By calling __nci_request instead of nci_request allows the driver

Re: [linux-nfc] [PATCH 8/8] NFC: Add Intel FieldsPeak NFC solution driver

2015-05-24 Thread Samuel Ortiz
Hi Robert, On Wed, Apr 01, 2015 at 06:35:31PM +0300, Robert Dolca wrote: On Thu, Mar 26, 2015 at 2:30 AM, Samuel Ortiz sa...@linux.intel.com wrote: + /* If a patch was applied the new version is checked */ + if (patched) { + r = nci_init(ndev); + if (r)

Re: [PATCH v2 6/7] Watchdog: introduce ARM SBSA watchdog driver

2015-05-24 Thread Guenter Roeck
On 05/24/2015 10:19 AM, Timur Tabi wrote: Fu Wei wrote: I don't know why you want to do this tricky way. you can always register the interrupt handler, if pre-timeout is 0, system will just trigger WS1 right after WS0 But that only works if the pre-timeout and timeout can be programmed to

Re: [char-misc-next 11/11] mei: revamp mei bus code

2015-05-24 Thread Greg KH
On Thu, May 07, 2015 at 03:54:08PM +0300, Tomas Winkler wrote: MEI bus was designed around nfc and was hard to extend. Instead of hard coded way of adding the devices on the mei bus we scan whole me client list and create a device for each eligible me client; currently we support only clients

Re: [PATCH] locking: type cleanup when accessing fast_read_ctr

2015-05-24 Thread Oleg Nesterov
On 05/23, Nicholas Mc Guire wrote: On Wed, 20 May 2015, Oleg Nesterov wrote: On 05/19, Nicholas Mc Guire wrote: I assumed it would not matter but did not see a simple way of getting it type clean with unsigned either mainly due to the atomic_t being int and val in

Re: [PATCH] kernel:ptrace - Fix typo in comment in function __ptrace_unlink().

2015-05-24 Thread Oleg Nesterov
So this fix is wrong. But you know, even if it was correct... IMO, the fixes like this can only make sense as a while at it part of the meaningful change. On 05/23, Shailendra Verma wrote: Signed-off-by: Shailendra Verma shailendra.capric...@gmail.com --- kernel/ptrace.c |2 +- 1 file

[PATCH v5 17/37] MIPS: JZ4740: define IRQ numbers based on number of intc IRQs

2015-05-24 Thread Paul Burton
For interrupts numbered after those of the interrupt controller, define their numbers based upon the number of interrupts provided by the SoC interrupt controller. This is in preparation for supporting newer Ingenic SoCs which provide more interrupts. Signed-off-by: Paul Burton

  1   2   3   4   5   6   >