RE: [v3 04/26] iommu, x86: Implement irq_set_vcpu_affinity for intel_ir_chip

2015-01-28 Thread Wu, Feng
> -Original Message- > From: David Woodhouse [mailto:dw...@infradead.org] > Sent: Wednesday, January 28, 2015 11:27 PM > To: Wu, Feng > Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; > g...@kernel.org; pbonz...@redhat.com; j...@8bytes.org; >

Re: [PATCH v4 1/2] dts: Documentation: Add documentation for Exynos7 SoC thermal bindings

2015-01-28 Thread Lukasz Majewski
Hi Abhilash, > Add documentation for exynos7 thermal bindings including compatible > name and special clock properties. > > Signed-off-by: Abhilash Kesavan > --- > .../devicetree/bindings/thermal/exynos-thermal.txt |4 > 1 file changed, 4 insertions(+) > > diff --git >

Re: [RFC][PATCH 2/3] perf: Add a bit of paranoia

2015-01-28 Thread Jiri Olsa
On Wed, Jan 28, 2015 at 09:16:49PM -0500, Vince Weaver wrote: > On Tue, 27 Jan 2015, Vince Weaver wrote: > > > On Mon, 26 Jan 2015, Peter Zijlstra wrote: > > > > > I think the below should cure this; if we install a group leader it will > > > iterate the (still intact) group list and find its

Re: [PATCH 0/4] New Lenovos 2015 touchpads: party time!

2015-01-28 Thread Hans de Goede
Hi Benjamin & et al, On 28-01-15 21:10, Benjamin Tissoires wrote: Hi Dmitry, Lenovo released their new models, and believe it or not, some kernel work is required to support them! We learned the lesson and we will try to maximize the effort in user space through udev rules instead of

Re: [PATCH] Input: sun4i-ts: add thermal driver dependency

2015-01-28 Thread Hans de Goede
Hi, On 28-01-15 16:17, Arnd Bergmann wrote: The sun4i-ts driver has had a dependency on the thermal code since it was first merged, The "since it was first merged bit" is not true, this is caused by recent changes by ChenYu. Other then that no objections from me against the proposed fix.

Re: [PATCH v3 3/3] mm: cma: release trigger

2015-01-28 Thread Joonsoo Kim
On Tue, Jan 27, 2015 at 09:22:57PM -0500, Sasha Levin wrote: > Provides a userspace interface to trigger a CMA release. > > Usage: > > echo [pages] > free > > This would provide testing/fuzzing access to the CMA release paths. > > Signed-off-by: Sasha Levin > --- > mm/cma_debug.c |

Re: [PATCH v4 1/2] dts: Documentation: Add documentation for Exynos7 SoC thermal bindings

2015-01-28 Thread Lukasz Majewski
Hi Eduardo, > On Wed, Jan 28, 2015 at 04:21:49PM +0530, Abhilash Kesavan wrote: > > Hi Eduardo, > > > > On Tue, Jan 27, 2015 at 11:18 AM, Abhilash Kesavan > > wrote: > > > Add documentation for exynos7 thermal bindings including > > > compatible name and special clock properties. > > > > > >

Re: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-28 Thread Ingo Molnar
* Bryan O'Donoghue wrote: > Intel's Quark X1000 SoC contains a set of registers called > Isolated Memory Regions. IMRs are accessed over the IOSF > mailbox interface. IMRs are areas carved out of memory that > define read/write access rights to the various system agents > within the Quark

Re: [RFC 1/3] Slab infrastructure for array operations

2015-01-28 Thread Joonsoo Kim
On Wed, Jan 28, 2015 at 09:30:56AM -0600, Christoph Lameter wrote: > On Wed, 28 Jan 2015, Joonsoo Kim wrote: > > > > GFP_SLAB_ARRAY new is best for large quantities in either allocator since > > > SLAB also has to construct local metadata structures. > > > > In case of SLAB, there is just a

Re: 3.19 on Nokia n900: audio quality awful

2015-01-28 Thread Jarkko Nikula
On Wed, Jan 28, 2015 at 11:41:44PM +0100, Pavel Machek wrote: > On Wed 2015-01-28 20:15:46, Jarkko Nikula wrote: > > On 01/26/2015 03:20 PM, Peter Ujfalusi wrote: > > > On 01/18/2015 02:01 PM, Pavel Machek wrote: > > No need to go that far. N900 has been supported in mainline since 2.6.39 > > or

[PATCH 0/3] arm: tegra: implement NVEC driver using tegra i2c.

2015-01-28 Thread Andrey Danin
Hi, NVEC driver contains code to manage tegra i2c controller in slave mode. I2C slave support was implemented in linux kernel. The goal of this patch serie is to implement I2C slave mode in tegra drived and rework NVEC driver to use it. Patches are based on i2c for-next. Patch 1 imeplents slave

linux-next: manual merge of the akpm-current tree with the xen-tip tree

2015-01-28 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in include/linux/mm.h between commit 667a0a06c99d ("mm: provide a find_special_page vma operation") from the xen-tip tree and commit cfd00f5aa195 ("mm: drop vm_ops->remap_pages and generic_file_remap_pages() stub") from

[PATCH 1/3] i2c: tegra: implement slave mode

2015-01-28 Thread Andrey Danin
Initialization code is based on NVEC driver. There is a HW bug in AP20 that was also mentioned in kernel sources for Toshiba AC100. Signed-off-by: Andrey Danin --- drivers/i2c/busses/i2c-tegra.c | 131 + 1 file changed, 131 insertions(+) diff --git

[PATCH 3/3] dt: paz00: define nvec as child of i2c bus

2015-01-28 Thread Andrey Danin
NVEC driver was reimplemented to use tegra i2c. Use common i2c bindings for NVEC node. Signed-off-by: Andrey Danin --- .../devicetree/bindings/nvec/nvidia,nvec.txt | 19 ++- arch/arm/boot/dts/tegra20-paz00.dts| 22 +- 2 files changed, 11

[PATCH] checkpatch: Add ability to --fix unnecessary blank lines around braces

2015-01-28 Thread Joe Perches
There's a --strict test for these blank lines. Add the ability to automatically remove them with --fix. Signed-off-by: Joe Perches --- scripts/checkpatch.pl | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index

[PATCH 2/3] staging/nvec: reimplement on top of tegra i2c driver

2015-01-28 Thread Andrey Danin
Remove i2c controller related code and use tegra i2c driver in slave mode. Signed-off-by: Andrey Danin --- drivers/staging/nvec/nvec.c | 379 ++-- drivers/staging/nvec/nvec.h | 17 +- 2 files changed, 122 insertions(+), 274 deletions(-) diff --git

[PATCH v11 05/28] scripts/gdb: Add lx-symbols command

2015-01-28 Thread Jan Kiszka
This is probably the most useful helper when debugging kernel modules: lx-symbols first reloads vmlinux. Then it searches recursively for *.ko files in the specified paths and the current directory. Finally it walks the kernel's module list, issuing the necessary add-symbol-file command for each

[PATCH v11 10/28] scripts/gdb: Add read_u16/32/64 helpers

2015-01-28 Thread Jan Kiszka
Add helpers for reading integers from target memory buffers. Required when caching the memory access is more efficient than reading individual values via gdb. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/utils.py | 21 + 1 file changed, 21 insertions(+) diff --git

[PATCH v11 16/28] scripts/gdb: Add get_gdbserver_type helper

2015-01-28 Thread Jan Kiszka
This helper probes the type of the gdb server. Supported are QEMU and KGDB so far. Knowledge about the gdb server is required e.g. to retrieve the current CPU or current task. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/utils.py | 35 +++ 1 file changed, 35

[PATCH v11 14/28] scripts/gdb: Add is_target_arch helper

2015-01-28 Thread Jan Kiszka
This helper caches to result of "show architecture" and matches the provided arch (sub-)string against that output. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/utils.py | 13 + 1 file changed, 13 insertions(+) diff --git a/scripts/gdb/linux/utils.py b/scripts/gdb/linux/utils.py

[PATCH v11 12/28] scripts/gdb: Add task iteration class

2015-01-28 Thread Jan Kiszka
This class allows to iterate over all tasks of the target. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/tasks.py | 46 ++ 1 file changed, 46 insertions(+) create mode 100644 scripts/gdb/linux/tasks.py diff --git a/scripts/gdb/linux/tasks.py

[PATCH v11 18/28] scripts/gdb: Add lx_current convenience function

2015-01-28 Thread Jan Kiszka
This is a shorthand for *$lx_per_cpu("current_task"), i.e. a convenience function to retrieve the currently running task of the active context. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/cpus.py | 17 + 1 file changed, 17 insertions(+) diff --git

[PATCH v11 04/28] scripts/gdb: Add module iteration class

2015-01-28 Thread Jan Kiszka
Will soon be used for loading symbols, printing global variables or listing modules. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 scripts/gdb/linux/modules.py diff --git

[PATCH v11 13/28] scripts/gdb: Add helper and convenience function to look up tasks

2015-01-28 Thread Jan Kiszka
Add the helper task_by_pid that can look up a task by its PID. Also export it as a convenience function. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/tasks.py | 27 +++ scripts/gdb/vmlinux-gdb.py | 1 + 2 files changed, 28 insertions(+) diff --git

[PATCH v11 26/28] scripts/gdb: Convert CpuList to generator function

2015-01-28 Thread Jan Kiszka
Yet another code simplification. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/cpus.py| 71 scripts/gdb/linux/modules.py | 2 +- 2 files changed, 33 insertions(+), 40 deletions(-) diff --git a/scripts/gdb/linux/cpus.py

[PATCH v11 25/28] scripts/gdb: Convert ModuleList to generator function

2015-01-28 Thread Jan Kiszka
Analogously to the task list, convert the module list to a generator function. It noticeably simplifies the code. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 33 +++-- scripts/gdb/linux/symbols.py | 2 +- 2 files changed, 12 insertions(+), 23

[PATCH v11 07/28] scripts/gdb: Add automatic symbol reloading on module insertion

2015-01-28 Thread Jan Kiszka
This installs a silent breakpoint on the do_init_module function. The breakpoint handler will try to load symbols from the module files found during lx-symbols execution. This way, breakpoints can be set to module initialization functions, and there is no need to explicitly call lx-symbols after

[PATCH v11 08/28] scripts/gdb: Add internal helper and convenience function to look up a module

2015-01-28 Thread Jan Kiszka
Add the internal helper get_module_by_name to obtain the module structure corresponding to the given name. Also export this service as a convenience function. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 28 scripts/gdb/vmlinux-gdb.py | 1 + 2

[PATCH v11 28/28] scripts/gdb: Disable pagination while printing from breakpoint handler

2015-01-28 Thread Jan Kiszka
While reporting the (refreshed) list of modules on automatic updates we may hit the page boundary of the output console and cause a stop if pagination is enabled. However, gdb does not accept user input while running over the breakpoint handler. So we get stuck, and the user is forced to interrupt

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-01-28 Thread Sergey Senozhatsky
On (01/29/15 15:35), Minchan Kim wrote: > > As you told, the data was not stable. > yes. fread test was always slower, and the rest was mostly slower. > Anyway, when I read down_read implementation, it's one atomic instruction. > Hmm, it seems te be better for srcu_read_lock which does more

Re: [lm-sensors] [PATCH] hwmon: (ads7828) Make sample interval configurable

2015-01-28 Thread Guenter Roeck
On 01/28/2015 11:00 PM, Robert Rosengren wrote: On 01/28/2015 03:50 PM, Guenter Roeck wrote: Can you possibly send me the output from i2cdump ? That might help figuring out what is going on. I don't have i2cdump (I suppose that you mean the lm-sensors tool) available for my hardware. I'll

Re: [PATCH v2 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-01-28 Thread Alexei Starovoitov
On Wed, Jan 28, 2015 at 10:41 PM, Namhyung Kim wrote: > > I think it's not a problem of bpf. An user process can be killed > anytime while it enabed events without bpf. The only thing it should > care is the auto-unload IMHO. ok. I think it does indeed make sense to decouple the logic. We can

Re: [lm-sensors] [PATCH] hwmon: (ads7828) Make sample interval configurable

2015-01-28 Thread Robert Rosengren
On 01/28/2015 03:50 PM, Guenter Roeck wrote: Can you possibly send me the output from i2cdump ? That might help figuring out what is going on. I don't have i2cdump (I suppose that you mean the lm-sensors tool) available for my hardware. I'll give it a go to compile it... BR, Robert -- To

Re: [RFC 2/2] perf: update userspace page info for software event

2015-01-28 Thread Shaohua Li
Ping! On Fri, Jan 23, 2015 at 07:57:24AM -0800, Shaohua Li wrote: > On Fri, Jan 23, 2015 at 09:44:51AM +0100, Peter Zijlstra wrote: > > On Thu, Jan 22, 2015 at 01:09:02PM -0800, Shaohua Li wrote: > > > --- > > > kernel/events/core.c | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > >

[PATCH v11 27/28] scripts/gdb: Define maintainer

2015-01-28 Thread Jan Kiszka
I'm proposing myself for keeping an eye on these scripts and integrating contributions. Signed-off-by: Jan Kiszka --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2ebb056..3570313 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4164,6

[PATCH v11 23/28] scripts/gdb: Ignore byte-compiled python files

2015-01-28 Thread Jan Kiszka
From: Daniel Thompson Using the gdb scripts leaves byte-compiled python files in the scripts/ directory. These should be ignored by git and cleaned up by mrproper. Signed-off-by: Daniel Thompson Cc: Michal Marek Cc: linux-kbu...@vger.kernel.org Signed-off-by: Jan Kiszka --- .gitignore

Re: [PATCH V3 2/2] perf symbols: debuglink should take symfs option into account

2015-01-28 Thread Namhyung Kim
On Wed, Jan 28, 2015 at 08:08:30PM -0800, Victor Kamensky wrote: > Hi Namhyung, > > On 28 January 2015 at 17:38, Namhyung Kim wrote: > > Hi Victor, > > > > On Mon, Jan 26, 2015 at 10:34:02PM -0800, Victor Kamensky wrote: > >> Currently code that tries to read corresponding debug symbol > >>

Re: [PATCH] g_NCR5380: Kill compiler warning if builtin

2015-01-28 Thread Finn Thain
Acked-by: Finn Thain On Sat, 3 Jan 2015, Geert Uytterhoeven wrote: > If CONFIG_SCSI_GENERIC_NCR5380=y: > > drivers/scsi/g_NCR5380.c:727: warning: ?id_table? defined but not used > > In the non-modular case, MODULE_DEVICE_TABLE() expands to nothing, and > id_table is not referenced. > >

[PATCH v11 01/28] scripts/gdb: Add infrastructure

2015-01-28 Thread Jan Kiszka
This provides the basic infrastructure to load kernel-specific python helper scripts when debugging the kernel in gdb. The loading mechanism is based on gdb loading for -gdb.py when opening . Therefore, this places a corresponding link to the main helper script into the output directory that

[PATCH v11 02/28] scripts/gdb: Add cache for type objects

2015-01-28 Thread Jan Kiszka
Type lookups are very slow in gdb-python which is often noticeable when iterating over a number of objects. Introduce the helper class CachedType that keeps a reference to a gdb.Type object but also refreshes it after an object file has been loaded. Signed-off-by: Jan Kiszka ---

[PATCH v11 15/28] scripts/gdb: Add internal helper and convenience function to retrieve thread_info

2015-01-28 Thread Jan Kiszka
Add the internal helper get_thread_info that calculates the thread_info from a given task variable. Also export this service as a convenience function. Note: ia64 version is untested. CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org Signed-off-by: Jan Kiszka ---

Re: [PATCH v2 0/6] scsi: Some seq_file cleanups/optimizations

2015-01-28 Thread Finn Thain
I have one reservation about this patch series. For example, the changes, - seq_printf(m, "%s", p); + seq_puts(m, p); These calls are not equivalent because the bounds check is not the same. seq_puts will fail when m->count + strlen(p) == m->size. seq_write() does the same check

[PATCH v11 24/28] scripts/gdb: Use a generator instead of iterator for task list

2015-01-28 Thread Jan Kiszka
From: Daniel Wagner The iterator does not return any task_struct from the thread_group list because the first condition in the 'if not t or ...' will only be the first time None. Instead of keeping track of the state ourself in the next() function, we fall back using Python's generator.

[PATCH v11 22/28] scripts/gdb: Port to python3 / gdb7.7

2015-01-28 Thread Jan Kiszka
From: Pantelis Koukousoulas I tried to use these scripts in an ubuntu 14.04 host (gdb 7.7 compiled against python 3.3) but there were several errors. I believe this patch fixes these issues so that the commands now work (I tested lx-symbols, lx-dmesg, lx-lsmod). Main issues that needed to be

[PATCH v11 06/28] module: Do not inline do_init_module

2015-01-28 Thread Jan Kiszka
This provides a reliable breakpoint target, required for automatic symbol loading via the gdb helper command 'lx-symbols'. CC: Rusty Russell Signed-off-by: Jan Kiszka --- kernel/module.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/module.c

[tip:x86/urgent] x86, microcode: Return error from driver init code when loader is disabled

2015-01-28 Thread tip-bot for Boris Ostrovsky
Commit-ID: da63865a01c6384d459464e5165d95d4f04878d8 Gitweb: http://git.kernel.org/tip/da63865a01c6384d459464e5165d95d4f04878d8 Author: Boris Ostrovsky AuthorDate: Tue, 27 Jan 2015 21:21:09 -0500 Committer: Borislav Petkov CommitDate: Wed, 28 Jan 2015 09:23:40 +0100 x86, microcode:

[PATCH v11 21/28] scripts/gdb: Add basic documentation

2015-01-28 Thread Jan Kiszka
CC: Rob Landley CC: linux-...@vger.kernel.org Signed-off-by: Jan Kiszka --- Documentation/gdb-kernel-debugging.txt | 160 + 1 file changed, 160 insertions(+) create mode 100644 Documentation/gdb-kernel-debugging.txt diff --git

Re: [PATCH 17/28] scsi: drop owner assignment from platform_drivers

2015-01-28 Thread Finn Thain
Acked-by: Finn Thain On Sun, 21 Dec 2014, Wolfram Sang wrote: > This platform_driver does not need to set an owner, it will be populated by > the > driver core. > > Signed-off-by: Wolfram Sang > --- > Generated with coccinelle. SmPL file is in the introductory msg. The big > cleanup was

[PATCH v11 11/28] scripts/gdb: Add lx-dmesg command

2015-01-28 Thread Jan Kiszka
This pokes into the log buffer of the debugged kernel, dumping it to the gdb console. Helping in case the target should or can no longer execute dmesg itself. CC: Kay Sievers Signed-off-by: Jan Kiszka --- scripts/gdb/linux/dmesg.py | 64 ++

[PATCH v11 03/28] scripts/gdb: Add container_of helper and convenience function

2015-01-28 Thread Jan Kiszka
Provide an internal helper with container_of semantics. As type lookups are very slow in gdb-python and we need a type "long" for this, cache the reference to this type object. Then export the helper also as a convenience function form use at the gdb command line. Signed-off-by: Jan Kiszka ---

[PATCH v11 17/28] scripts/gdb: Add internal helper and convenience function for per-cpu lookup

2015-01-28 Thread Jan Kiszka
This function allows to obtain a per-cpu variable, either of the current or an explicitly specified CPU. Note: sparc64 version is untested. CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Jan Kiszka --- scripts/gdb/linux/cpus.py | 68

[PATCH v11 20/28] scripts/gdb: Add lx-lsmod command

2015-01-28 Thread Jan Kiszka
This adds a lsmod-like command to list all currently loaded modules of the target. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 46 +++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/scripts/gdb/linux/modules.py

[PATCH v11 19/28] scripts/gdb: Add class to iterate over CPU masks

2015-01-28 Thread Jan Kiszka
Will be used first to count module references. It is optimized to read the mask only once per stop. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/cpus.py | 54 +++ 1 file changed, 54 insertions(+) diff --git a/scripts/gdb/linux/cpus.py

[PATCH v11 09/28] scripts/gdb: Add get_target_endianness helper

2015-01-28 Thread Jan Kiszka
Parse the target endianness from the output of "show endian" and cache the result to return it via the new helper get_target_endiannes. We will need it for reading integers from buffers that contain target memory. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/utils.py | 18 ++

[PATCH v11 00/28] Add gdb python scripts as kernel debugging helpers

2015-01-28 Thread Jan Kiszka
Hi Andrew, here comes the requested update of the series. Changes since v10: - rebase over recent Linus master (rc6+) - fix stuck gdb pagination during modprobe related symbol reloading See http://lkml.indiana.edu/hypermail/linux/kernel/1210.0/01598.html for the original description and

Re: [GIT PULL] A microcode loader fix for 3.19

2015-01-28 Thread Ingo Molnar
* Borislav Petkov wrote: > Hi guys, > > please pull this last small fix for the microcode loader not erroring > out of its init routine properly. > > Optimally, it should go with the last batch of tip/urgent stuff for > 3.19, if possible. > > Thanks. > > --- > The following changes since

[PATCH v5 13/13] pm: at91: amend the pm_suspend entry for at91_cpuidle_device

2015-01-28 Thread Wenyou Yang
Because the at91_xxx_standby() function is substitued by the at91_pm_suspend(), the pm_suspend entry for at91_cpuidle_device changes as well. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 16 ++-- 1 file changed, 10 insertions(+), 6

[PATCH v5 12/13] pm: at91: remove the data member at91_xxx_standby() of struct ramc_ids

2015-01-28 Thread Wenyou Yang
Because the at91_xxx_standby() function is removed, remove the data member of struct ramc_ids. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-at91/pm.c

[PATCH v5 11/13] pm: at91: remove the at91_xxx_standby() function definitions in the pm.h

2015-01-28 Thread Wenyou Yang
Because the the suspend to standby mode uses the sram function, these functions will not used, remove the redundant code. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/pm.h | 97 --- 1 file changed, 97 deletions(-)

[PATCH v5 10/13] pm: at91: rename function name: at91_slow_clock()-->at91_pm_suspend_sram_fn

2015-01-28 Thread Wenyou Yang
As the file name's renaming, rename the file name at91_slow_clock()--> at91_pm_suspend_sram_fn, rename the function handler's name at the same time. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/pm.c | 25 +

[PATCH v5 09/13] pm: at91: rename file name: pm_slowclock.S -->pm_suspend.S

2015-01-28 Thread Wenyou Yang
Because the sram function is used for the suspend to standby mode as well, more than suspend to memory, so renaming is more elegant. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/Makefile |2 +- arch/arm/mach-at91/pm_slowclock.S | 281

Re: [PATCH 1/6] soc: qcom: gsbi: Add support for ADM CRCI muxing

2015-01-28 Thread Stephen Boyd
On 01/28, Andy Gross wrote: > On Wed, Jan 28, 2015 at 06:11:50PM -0800, Stephen Boyd wrote: > > > > > > +- syscon-tcsr: indicates phandle of TCSR syscon node > > > > Make this optional but required if any child nodes use dma? > > To enforce that I'd have to determine that a child has a dmas.

[PATCH v5 08/13] pm: at91: the standby mode uses the same sram function as the suspend to memory mode

2015-01-28 Thread Wenyou Yang
To simply the PM code, the suspend to standby mode uses the same sram function as the suspend to memory mode, running in the internal SRAM, instead of the respective code for each mode. But for the suspend to standby mode, the master clock doesn't switch to the slow clock, and the main

[PATCH v5 07/13] pm: at91: remove the config item CONFIG_AT91_SLOW_CLOCK

2015-01-28 Thread Wenyou Yang
The slow clock always exists, for the suspend to memory mode, the master clock always switch to the slow clock. To simplify the PM config, remove this config item, remove the definition code as well. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig | 13

Re: [PATCH] net, ethernet, LLVMLinux: Add missing MODULE_DEVICE_TABLE()

2015-01-28 Thread David Miller
From: Behan Webster Date: Wed, 28 Jan 2015 17:36:14 -0800 > Missing MODULE_DEVICE_TABLE for pci ids from benet driver found by clang. > > Signed-off-by: Behan Webster > Suggested-by: Arnd Bergmann Why are you removing the device table? Second of all, your Subject needs to be adjusted, using

[PATCH v5 06/13] ARM: at91: move select SRAM to ARCH_AT91

2015-01-28 Thread Wenyou Yang
Because the CONFIG_AT91_SLOW_CLOCK will be removed to simply the PM config, so move select SRAM. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/Kconfig |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/Kconfig

Re: [PATCH v13 0/6] Per-user clock constraints

2015-01-28 Thread Tomeu Vizoso
On 01/29/2015 03:26 AM, Mike Turquette wrote: > Quoting Tomeu Vizoso (2015-01-27 22:59:59) >> On 01/27/2015 01:55 AM, Stephen Boyd wrote: >>> On 01/23/15 03:03, Tomeu Vizoso wrote: Hi, in this v13 I have: * added the latest R-b tags from Stephen, * split some

Re: [PATCH v2 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-01-28 Thread Namhyung Kim
On Thu, Jan 29, 2015 at 1:40 PM, Alexei Starovoitov wrote: > On Wed, Jan 28, 2015 at 4:46 PM, Namhyung Kim wrote: >>> >>> +static int event_filter_release(struct inode *inode, struct file *filp) >>> +{ >>> + struct ftrace_event_file *file; >>> + char buf[2] = "0"; >>> + >>> +

[PATCH] cpufreq: fix another race between PPC notification and vcpu_hotplug()

2015-01-28 Thread Ethan Zhao
There is race observed between PPC changed notification handler worker thread and vcpu_hotplug() called within xenbus_thread() context. It is shown as following WARNING: [ cut here ] WARNING: CPU: 0 PID: 4 at include/linux/kref.h:47 kobject_get+0x41/0x50() Modules

[PATCH v5 05/13] pm: at91: move the copying the sram function to the sram initializationi phase

2015-01-28 Thread Wenyou Yang
To decrease the suspend time, move the copying the sram function to the sram initialization phase, instead of every time go to suspend. In the meanwhile, if there is no sram allocated for PM, the PM is not supported. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni ---

[PATCH v5 04/13] pm: at91: pm_slowclock: remove the unused code related with SLOWDOWN_MASTER_CLOCK

2015-01-28 Thread Wenyou Yang
The SLOWDOWN_MASTER_CLOCK definition is not used, remove the redundant code. Signed-off-by: Wenyou Yang Acked-by: Alexandre Belloni --- arch/arm/mach-at91/pm_slowclock.S | 37 - 1 file changed, 37 deletions(-) diff --git

[PATCH v5 03/13] pm: at91: Workaround DDRSDRC self-refresh bug with LPDDR1 memories.

2015-01-28 Thread Wenyou Yang
From: Peter Rosin The DDRSDR controller fails miserably to put LPDDR1 memories in self-refresh. Force the controller to think it has DDR2 memories during the self-refresh period, as the DDR2 self-refresh spec is equivalent to LPDDR1, and is correctly implemented in the controller. Assume that

Re: [PATCH v2 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-01-28 Thread Alexei Starovoitov
On Wed, Jan 28, 2015 at 9:39 PM, Masami Hiramatsu wrote: > > Maybe, would we need a reference counter for each event? :) when we would want multiple users to attach different programs to the same event, then yes. Right now I'd rather have things simple. > Actually, ftrace event is not similar

[PATCH v5 02/13] pm: at91: pm_slowclock: remove clocks which are already stopped when entering slow clock mode

2015-01-28 Thread Wenyou Yang
From: Sylvain Rochet Assume USB PLL and PLL B are already stopped before entering sleep mode, print a warning if this isn't the case. Removed PLL B from slow clock code, all drivers are supposed to properly unprepare clocks. Signed-off-by: Sylvain Rochet --- arch/arm/mach-at91/pm.c

[PATCH v5 01/13] pm: at91: pm_slowclock: fix suspend/resume hang up in timeouts

2015-01-28 Thread Wenyou Yang
From: Sylvain Rochet Removed timeout on XTAL, PLL lock and Master Clock Ready, hang if something went wrong instead of continuing in unknown condition. There is not much we can do if a PLL lock never ends, we are running in SRAM and we will not be able to connect back the sdram or ddram in order

[PATCH v5 00/13] AT91 pm cleanup for 3.20

2015-01-28 Thread Wenyou Yang
Hi Nicolas, This version is rebased on the branch: at91-3.20-cleanup of the repository git://git.kernel.org/pub/scm/linux/kernel/git/nferre/linux-at91.git It is purpose to clean up the PM code, includes the patches from Peter Rosin and Sylvain Rochet. Since verifying the USB clock and

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-01-28 Thread Minchan Kim
On Thu, Jan 29, 2015 at 03:06:04PM +0900, Sergey Senozhatsky wrote: > On (01/29/15 14:28), Minchan Kim wrote: > > > I'm still concerned about performance numbers that I see on my x86_64. > > > it's not always, but mostly slower. I'll give it another try (disable > > > lockdep, etc.), but if we

Re: [PATCH] net:wan:Change location of debug printk statement in the function,hss_hdlc_poll

2015-01-28 Thread Krzysztof Hałasa
Nicholas Krause writes: > This changes the location of the printk for montioring if the stucture pointer > desc of type structure desc has a error count due to failing in the switch > statement for checking it's status from the default switch case in this switch > to the area of the function for

Re: patch-2.7.3 no longer applies relative symbolic link patches

2015-01-28 Thread Junio C Hamano
Junio C Hamano writes: > Subject: [PATCH] apply: refuse touching a file beyond symlink > > Because Git tracks symbolic links as symbolic links, a path that has > a symbolic link in its leading part (e.g. path/to/dir being a > symbolic link to somewhere else, be it inside or outside the working >

Re: randconfig build error with next-20150127, in drivers/i2c/busses/i2c-designware-baytrail.c

2015-01-28 Thread Wolfram Sang
On Tue, Jan 27, 2015 at 04:41:44PM -0700, Jim Davis wrote: > Building with the attached random configuration file, A proper Kconfig dependency fix has already been added and is in linux-next as of today. signature.asc Description: Digital signature

Re: [PATCH v2] lib/checksum.c: fix carry in csum_tcpudp_nofold

2015-01-28 Thread David Miller
From: Karl Beldan Date: Wed, 28 Jan 2015 10:58:11 +0100 > The carry from the 64->32bits folding was dropped, e.g with: > saddr=0x daddr=0xFFFF len=0x proto=0 sum=1, > csum_tcpudp_nofold returned 0 instead of 1. > > Signed-off-by: Karl Beldan Applied, thanks. -- To unsubscribe

Re: [PATCH 06/16] ARM: cns3xxx: convert PCI to use generic config accesses

2015-01-28 Thread Krzysztof Hałasa
Rob Herring writes: > Convert the cns3xxx PCI driver to use the generic config access functions. > > This changes accesses from __raw_readl/__raw_writel to readl/writel. > > arch/arm/mach-cns3xxx/pcie.c | 52 > +--- This looks fine: Acked-by: Krzysztof

Re: [PATCH V2] cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-28 Thread Stewart Smith
Preeti U Murthy writes: > The device tree now exposes the residency values for different idle states. > Read > these values instead of calculating residency from the latency values. The > values > exposed in the DT are validated for optimal power efficiency. However to > maintain >

Re: [PATCH] toshiba_acpi: Add a check for TOS_NOT_SUPPORTED in the sci_open function

2015-01-28 Thread Darren Hart
On Sun, Jan 18, 2015 at 07:17:12PM -0700, Azael Avalos wrote: > This was "toshiba_acpi: Change sci_open function return value" > > Some Toshiba laptops have "poorly implemented" SCI calls on their > BIOSes and are not checking for sci_{open, close} calls, therefore, > the sci_open function is

[PATCH 2/2] afs: Prevent callback expiry timer overflow

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs_vnode record to use ktime_get_real_seconds() instead, for the fields cb_expires and cb_expires_at. Signed-off-by: Tina Ruchandani --- fs/afs/fsclient.c | 2

[PATCH 1/2] afs: Migrate vlocation fields to 64-bit

2015-01-28 Thread Tina Ruchandani
get_seconds() returns real wall-clock seconds. On 32-bit systems this value will overflow in year 2038 and beyond. This patch changes afs's vlocation record to use ktime_get_real_seconds() instead, for the fields time_of_death and update_at. Signed-off-by: Tina Ruchandani --- fs/afs/callback.c

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-01-28 Thread Sergey Senozhatsky
On (01/29/15 14:28), Minchan Kim wrote: > > I'm still concerned about performance numbers that I see on my x86_64. > > it's not always, but mostly slower. I'll give it another try (disable > > lockdep, etc.), but if we lose 10% on average then, sorry, I'm not so > > positive about srcu change and

Re: patch-2.7.3 no longer applies relative symbolic link patches

2015-01-28 Thread Junio C Hamano
Junio C Hamano writes: > Junio C Hamano writes: > >> If the user wants to apply a patch that touches ../etc/shadow, is >> the tool in the place to complain?" > > Let me take this part back. > > I think "git apply" should behave closely to "git apply --index" > (which is used by "git am" unless

[PATCH 0/2] afs: Migrate to 64-bit timekeeping

2015-01-28 Thread Tina Ruchandani
This patchset is an attempt to port afs's timekeeping variables from time_t type to time64_t. AFS uses get_seconds to store real (wall clock) time in seconds. The time returned by get_seconds() will overflow on 32-bit systems in year 2106 and beyond. This patchset replaces the usage with

Re: [RFC][PATCH 0/3] kprobes/ftrace/x86: Function graph trace jprobes

2015-01-28 Thread Masami Hiramatsu
(2015/01/28 13:30), Steven Rostedt wrote: > I had these patches sitting in my repo for a while, thinking I already > posted them. I never did, so here I go (a little late :-/) Oops, I might miss that. > Basically, what I had before was fixes for jprobes and function graph > tracing that were

[PATCH v3] ocfs2: Use 64bit variables to track heartbeat time

2015-01-28 Thread Tina Ruchandani
o2hb_elapsed_msecs computes the time taken for a disk heartbeat. 'struct timeval' variables are used to store start and end times. On 32-bit systems, the 'tv_sec' component of 'struct timeval' will overflow in year 2038 and beyond. This patch solves the overflow with the following: 1. Replace

[PATCH] AFS: Correctly use 64-bit time for UUID

2015-01-28 Thread Tina Ruchandani
UUID calculation uses 'struct timespec' whose seconds will overflow in year 2038 and beyond for 32-bit systems. This patch removes the dependency on 'struct timespec' by using ktime_get_real_ns(). While the patch does not fix a 'bug' as such, it is part of a larger effort to remove instances of

[PATCH v2] tpm: fix suspend/resume paths for TPM 2.0

2015-01-28 Thread Jarkko Sakkinen
Fixed suspend/resume paths for TPM 2.0 and consolidated all the associated code to the tpm_pm_suspend() and tpm_pm_resume() functions. Resume path should be handled by the firmware, i.e. Startup(CLEAR) for hibernate and Startup(STATE) for suspend. There might be some non-PC embedded devices in

Re: [PATCH 1/6] soc: qcom: gsbi: Add support for ADM CRCI muxing

2015-01-28 Thread Andy Gross
On Wed, Jan 28, 2015 at 06:11:50PM -0800, Stephen Boyd wrote: > > Required properties: > > -- compatible: must contain "qcom,gsbi-v1.0.0" for APQ8064/IPQ8064 > > +- compatible: Should contain: > > + "qcom,gsbi-ipq8064" for IPQ8064 > > + "qcom,gsbi-apq8064" for APQ8064

Re: Edited kexec_load(2) [kexec_file_load()] man page for review

2015-01-28 Thread Michael Kerrisk (man-pages)
On 29 January 2015 at 02:27, Scot Doyle wrote: > On Wed, 28 Jan 2015, Vivek Goyal wrote: >> On Wed, Jan 28, 2015 at 10:10:59PM +, Scot Doyle wrote: >> > On Wed, 28 Jan 2015, Vivek Goyal wrote: >> > > On Wed, Jan 28, 2015 at 09:14:03PM +, Scot Doyle wrote: >> > > > When I tested,

Re: [PATCH 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-01-28 Thread Darren Hart
On Wed, Jan 28, 2015 at 06:36:25PM +, Bryan O'Donoghue wrote: > Intel's Quark X1000 SoC contains a set of registers called Isolated Memory > Regions. IMRs are accessed over the IOSF mailbox interface. IMRs are areas > carved out of memory that define read/write access rights to the various >

Re: [PATCH v2 linux-trace 1/8] tracing: attach eBPF programs to tracepoints and syscalls

2015-01-28 Thread Masami Hiramatsu
(2015/01/29 13:40), Alexei Starovoitov wrote: > On Wed, Jan 28, 2015 at 4:46 PM, Namhyung Kim wrote: >>> >>> +static int event_filter_release(struct inode *inode, struct file *filp) >>> +{ >>> + struct ftrace_event_file *file; >>> + char buf[2] = "0"; >>> + >>> + mutex_lock(_mutex);

Re: [PATCH] ARM: /proc/atags: Export also for DT

2015-01-28 Thread Jean-Christophe PLAGNIOL-VILLARD
> On Jan 28, 2015, at 3:19 PM, Pavel Machek wrote: > > Hi! > >>> In other words, what prevents someone from creating, say, a custom >>> minimal Barebox version that sits on top of the existing N900 >>> bootloader? Wouldn't that provide a much better user experience? >> >> I do agree with

Re: mmotm 2015-01-22-15-04: qemu failure due to 'mm: memcontrol: remove unnecessary soft limit tree node test'

2015-01-28 Thread Christoph Lameter
On Tue, 27 Jan 2015, Michal Hocko wrote: > Admittedly, I was checking only SLAB allocator when reviewing and > assuming SLUB would behave in the same way :/ > But maybe I have misinterpreted the slab code as well and > get_node(struct kmem_cache *, int node) returns non-NULL for !online > nodes.

[PATCH v2 02/02] STAGING: Fix pcl818.c coding style issue: line over 80 characters

2015-01-28 Thread Simon Guo
Correct one coding style problem(detected by checkpatch.pl) in pcl818.c. - line over 80 characters Signed-off-by: Simon Guo --- drivers/staging/comedi/drivers/pcl818.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/pcl818.c

  1   2   3   4   5   6   7   8   9   10   >