Re: [PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-08 Thread Josh Poimboeuf
On Tue, Dec 08, 2015 at 11:55:31AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Dec 08, 2015 at 11:52:33AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Dec 07, 2015 at 09:46:48AM +0100, Jiri Olsa escreveu: > > > On Sun, Dec 06, 2015 at 02:02:42PM -0600, Josh Poimboeuf wrote: > > > > I

[PATCH] net: ezchip: fix address space confusion in nps_enet.c

2015-12-08 Thread Arnd Bergmann
The nps_enet driver happily mixes virtual, physical and __iomem addresses, which are all different depending on the architecture and configuration. That causes a warning when building the code on ARM with LPAE mode enabled: drivers/net/ethernet/ezchip/nps_enet.c: In function 'nps_enet_send_frame'

Re: [PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 11:55:31AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 08, 2015 at 11:52:33AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Dec 07, 2015 at 09:46:48AM +0100, Jiri Olsa escreveu: > > > On Sun, Dec 06, 2015 at 02:02:42PM -0600, Josh Poimboeuf wrote: > > > >

[PATCH 01/14] mm: memcontrol: export root_mem_cgroup

2015-12-08 Thread Johannes Weiner
A later patch will need this symbol in files other than memcontrol.c, so export it now and replace mem_cgroup_root_css at the same time. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Acked-by: David S. Miller Reviewed-by: Vladimir Davydov --- include/linux/memcontrol.h | 3 ++- mm/bac

[PATCH 02/14] net: tcp_memcontrol: properly detect ancestor socket pressure

2015-12-08 Thread Johannes Weiner
When charging socket memory, the code currently checks only the local page counter for excess to determine whether the memcg is under socket pressure. But even if the local counter is fine, one of the ancestors could have breached its limit, which should also force this child to enter socket pressu

[PATCH 1/2] netcp: try to reduce type confusion in descriptors

2015-12-08 Thread Arnd Bergmann
The netcp driver produces tons of warnings when CONFIG_LPAE is enabled on ARM: drivers/net/ethernet/ti/netcp_core.c: In function 'netcp_tx_map_skb': drivers/net/ethernet/ti/netcp_core.c:1084:13: warning: passing argument 1 of 'set_words' from incompatible pointer type [-Wincompatible-pointer-type

[PATCH 11/14] mm: memcontrol: move socket code for unified hierarchy accounting

2015-12-08 Thread Johannes Weiner
The unified hierarchy memory controller will account socket memory. Move the infrastructure functions accordingly. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Reviewed-by: Vladimir Davydov Acked-by: David S. Miller --- mm/memcontrol.c | 148 --

[PATCH] soc: TI knav_qmss: fix dma_addr_t printing

2015-12-08 Thread Arnd Bergmann
The knav_qmss driver is currently broken when CONFIG_LPAE is set, which is a bit surprising because I'd expect that any serious users of this platforms would have more than 2GB of RAM and require LPAE. The compiler clearly warns about an incorrect use of dma_addr_t in the debug kernel messages: t

[PATCH] dmaengine: at_hdmac: fix dma_addr_t printing

2015-12-08 Thread Arnd Bergmann
A recent patch tried to improve the printk output of the atc_dump_lli() function but introduced a bug, in which we end up dereferencing a dma address as a pointer, and we even get a warning for it: drivers/dma/at_hdmac_regs.h: In function 'atc_dump_lli': drivers/dma/at_hdmac_regs.h:388:4: warning:

[PATCH 07/14] net: tcp_memcontrol: sanitize tcp memory accounting callbacks

2015-12-08 Thread Johannes Weiner
There won't be a tcp control soft limit, so integrating the memcg code into the global skmem limiting scheme complicates things unnecessarily. Replace this with simple and clear charge and uncharge calls--hidden behind a jump label--to account skb memory. Note that this is not purely aesthetic: as

[PATCH 05/14] net: tcp_memcontrol: remove dead per-memcg count of allocated sockets

2015-12-08 Thread Johannes Weiner
The number of allocated sockets is used for calculations in the soft limit phase, where packets are accepted but the socket is under memory pressure. Since there is no soft limit phase in tcp_memcontrol, and memory pressure is only entered when packets are already dropped, this is actually dead cod

Re: [PATCH v10 0/17] Add Analogix Core Display Port Driver

2015-12-08 Thread Heiko Stübner
Hi Yakir, Am Montag, 7. Dezember 2015, 14:37:19 schrieb Yakir Yang: >The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller > share the same IP, so a lot of parts can be re-used. I split the common > code into bridge directory, then rk3288 and exynos only need to keep > some plat

[PATCH 04/14] net: tcp_memcontrol: protect all tcp_memcontrol calls by jump-label

2015-12-08 Thread Johannes Weiner
Move the jump-label from sock_update_memcg() and sock_release_memcg() to the callsite, and so eliminate those function calls when socket accounting is not enabled. This also eliminates the need for dummy functions because the calls will be optimized away if the Kconfig options are not enabled. Si

Re: [PATCH v5 04/11] ARM: STi: STiH407: Provide generic (safe) DVFS configuration

2015-12-08 Thread Lee Jones
On Tue, 08 Dec 2015, Viresh Kumar wrote: > On 08-12-15, 14:31, Lee Jones wrote: > > diff --git a/arch/arm/boot/dts/stih407-family.dtsi > > b/arch/arm/boot/dts/stih407-family.dtsi > > index 81f8121..9fa1e58 100644 > > --- a/arch/arm/boot/dts/stih407-family.dtsi > > +++ b/arch/arm/boot/dts/stih407-

[PATCH 03/14] net: tcp_memcontrol: remove bogus hierarchy pressure propagation

2015-12-08 Thread Johannes Weiner
When a cgroup currently breaches its socket memory limit, it enters memory pressure mode for itself and its *ancestors*. This throttles transmission in unrelated sibling and cousin subtrees that have nothing to do with the breached limit. On the contrary, breaching a limit should make that group a

[PATCH] ASoC: fsl: use correct format string for dma_addr_t

2015-12-08 Thread Arnd Bergmann
We get a warning for the imx-pcm-fiq driver when CONFIG_LPAE is enabled on ARM, because dma_addr_t is 64-bit then: sound/soc/fsl/imx-pcm-fiq.c: In function 'snd_imx_pcm_mmap': sound/soc/fsl/imx-pcm-fiq.c:223:107: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has typ

[PATCH 10/14] mm: memcontrol: do not account memory+swap on unified hierarchy

2015-12-08 Thread Johannes Weiner
The unified hierarchy memory controller doesn't expose the memory+swap counter to userspace, but its accounting is hardcoded in all charge paths right now, including the per-cpu charge cache ("the stock"). To avoid adding yet more pointless memory+swap accounting with the socket memory support in

[PATCH 08/14] net: tcp_memcontrol: simplify linkage between socket and page counter

2015-12-08 Thread Johannes Weiner
There won't be any separate counters for socket memory consumed by protocols other than TCP in the future. Remove the indirection and link sockets directly to their owning memory cgroup. Signed-off-by: Johannes Weiner Reviewed-by: Vladimir Davydov Acked-by: David S. Miller --- include/linux/me

[PATCH 13/14] mm: memcontrol: hook up vmpressure to socket pressure

2015-12-08 Thread Johannes Weiner
Let the networking stack know when a memcg is under reclaim pressure so that it can clamp its transmit windows accordingly. Whenever the reclaim efficiency of a cgroup's LRU lists drops low enough for a MEDIUM or HIGH vmpressure event to occur, assert a pressure state in the socket and tcp memory

[PATCH 06/14] net: tcp_memcontrol: simplify the per-memcg limit access

2015-12-08 Thread Johannes Weiner
tcp_memcontrol replicates the global sysctl_mem limit array per cgroup, but it only ever sets these entries to the value of the memory_allocated page_counter limit. Use the latter directly. Signed-off-by: Johannes Weiner Reviewed-by: Vladimir Davydov Acked-by: David S. Miller --- include/linux

[PATCH 14/14] mm: memcontrol: switch to the updated jump-label API

2015-12-08 Thread Johannes Weiner
According to the direct use of struct static_key is deprecated. Update the socket and slab accounting code accordingly. Reported-by: Jason Baron Signed-off-by: Johannes Weiner --- include/linux/memcontrol.h | 8 mm/memcontrol.c| 12 ++-- net/ipv4/tcp_memcontrol.c

[PATCH 12/14] mm: memcontrol: account socket memory in unified hierarchy memory controller

2015-12-08 Thread Johannes Weiner
Socket memory can be a significant share of overall memory consumed by common workloads. In order to provide reasonable resource isolation in the unified hierarchy, this type of memory needs to be included in the tracking/accounting of a cgroup under active memory resource control. Overhead is onl

[PATCH] mtd: sh_flctl: pass FIFO as physical address

2015-12-08 Thread Arnd Bergmann
By convention, the FIFO address we pass using dmaengine_slave_config is a physical address in the form that is understood by the DMA engine, as a dma_addr_t, phys_addr_t or resource_size_t. The sh_flctl driver however passes a virtual __iomem address that gets cast to dma_addr_t in the slave drive

[PATCH 00/14] mm: memcontrol: account socket memory in unified hierarchy v4-RESEND

2015-12-08 Thread Johannes Weiner
Hi Andrew, there was some build breakage in CONFIG_ combinations I hadn't tested in the last revision, so here is a fixed-up resend with minimal CC list. The only difference to the previous version is a section in memcontrol.h, but it accumulates throughout the series and would have been a pain to

[PATCH 2/2] netcp: add more __le32 annotations

2015-12-08 Thread Arnd Bergmann
The handling of epib and psdata remains a bit unclear in the driver, as we access the same fields both as CPU-endian and through DMA from the device. Sparse warns about this: ti/netcp_core.c:1147:21: warning: incorrect type in assignment (different base types) ti/netcp_core.c:1147:21:expected

[PATCH] mtd: omap_elm: print interrupt resource using %pr

2015-12-08 Thread Arnd Bergmann
When CONFIG_LPAE is set on ARM, resource_size_t is 64-bit wide and we get a warning about an incorrect format string for printing the interrupt number in elm_probe: drivers/mtd/nand/omap_elm.c: In function 'elm_probe': drivers/mtd/nand/omap_elm.c:417:23: warning: format '%i' expects argument of t

Re: [PATCH 00/13] perf tools: Move perf subcommand framework into lib/tools

2015-12-08 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 08, 2015 at 12:29:15PM -0300, Arnaldo Carvalho de Melo escreveu: > find: ‘/tmp/tmp.4iuuIJy0Ia/tests’: No such file or directory > make[4]: *** [tests-clean] Error 1 > make[4]: *** Waiting for unfinished jobs > make[3]: *** [clean] Error 2 > [acme@ssdandy linux]$ So, to reproduce:

[PATCH] regulator: add regulator_sync_voltage inline dummy

2015-12-08 Thread Arnd Bergmann
Only one driver calls regulator_sync_voltage(), but that driver can currently be built with CONFIG_REGULATOR disabled, producing this build error: drivers/cpufreq/tegra124-cpufreq.c: In function 'tegra124_cpu_switch_to_pllx': drivers/cpufreq/tegra124-cpufreq.c:68:2: error: implicit declaration of

Re: Ques: [kernel/time/*] Is there any disadvantage in using sleep_range for more than 20ms delay ?

2015-12-08 Thread Aniroop Mathur
On Tue, Dec 8, 2015 at 4:18 PM, Thomas Gleixner wrote: > On Tue, 8 Dec 2015, Aniroop Mathur wrote: >> On Tue, Dec 8, 2015 at 12:07 AM, Thomas Gleixner wrote: >> > The real question is how precise must your delay be? If the delay >> > needs to be precise within the min/max sleep time limits, then

[PATCH 09/14] mm: memcontrol: generalize the socket accounting jump label

2015-12-08 Thread Johannes Weiner
The unified hierarchy memory controller is going to use this jump label as well to control the networking callbacks. Move it to the memory controller code and give it a more generic name. Signed-off-by: Johannes Weiner Acked-by: Michal Hocko Reviewed-by: Vladimir Davydov Acked-by: David S. Mill

[PATCH] vhost: vsock: select CONFIG_VHOST

2015-12-08 Thread Arnd Bergmann
When building the new vsock code without vhost, we get a build error: drivers/built-in.o: In function `vhost_vsock_flush': :(.text+0x24d29c): undefined reference to `vhost_poll_flush' This adds an explicit 'select' like we have for the other vhost drivers. Signed-off-by: Arnd Bergmann --- driv

Re: [PATCH 09/19] mfd: arizona-core: msleep() is unreliable for anything <20ms use usleep_range() instead

2015-12-08 Thread Lee Jones
On Tue, 08 Dec 2015, Charles Keepax wrote: > On Mon, Dec 07, 2015 at 11:50:22AM +, Lee Jones wrote: > > WARNING: msleep < 20ms can sleep for up to 20ms; see > > Documentation/timers/timers-howto.txt > > + msleep(1); > > > > WARNING: msleep < 20ms can sleep for up to 20ms; see

[PATCH] drm/sti: use u32 to store DMA addresses

2015-12-08 Thread Arnd Bergmann
The STi drm driver correctly warns about invalid format strings when built with 64-bit dma_addr_t: sti_hqvdp.c: In function 'sti_hqvdp_vtg_cb': sti_hqvdp.c:605:119: warning: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-W

[PATCH] dm verity: use sector_div for division

2015-12-08 Thread Arnd Bergmann
The dm verity sec implementation uses do_div for dividing a sector_t, which is slower than necessary when sector_t is a 32-bit type, and we now get a warning for this case: include/asm-generic/div64.h:224:22: warning: passing argument 1 of '__div64_32' from incompatible pointer type [-Wincompatib

Re: [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Tejun Heo
Hello, Serge. On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > +/* kernfs_node_depth - compute depth from @from to @to */ > +static size_t kernfs_node_distance(struct kernfs_node *from, struct > kernfs_node *to) > { > + size_t depth = 0; > > + BUG_ON(!to); > +

Re: [PATCH v4] acpi, apei, arm64: APEI initial support for aarch64.

2015-12-08 Thread Suzuki K. Poulose
On 08/12/15 07:03, fu@linaro.org wrote: From: Tomasz Nowicki This commit provides APEI arch-specific bits for aarch64 Meanwhile, add a new subfunction "hest_ia_init" for "acpi_disable_cmcff" which is used by IA-32 Architecture Corrected Machine Check (CMC). Signed-off-by: Tomasz Nowicki

Re: [PATCH v7 2/4] gadget: Support for the usb charger framework

2015-12-08 Thread kbuild test robot
Hi Baolin, [auto build test ERROR on balbi-usb/next] [also build test ERROR on v4.4-rc4 next-20151208] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/gadget-Introduce-the-usb-charger-framework/20151208-163942 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git

RE: [PATCH] net: ezchip: fix address space confusion in nps_enet.c

2015-12-08 Thread Noam Camus
>From: Arnd Bergmann [mailto:a...@arndb.de] >Sent: Tuesday, December 08, 2015 5:29 PM >To: David S. Miller >Cc: Noam Camus; Tal Zilcer; net...@vger.kernel.org; >linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org >Subject: [PATCH] net: ezchip: fix address space confusion in nps_ene

Re: [PATCH 2/7] nohz: New tick dependency mask

2015-12-08 Thread Frederic Weisbecker
On Wed, Dec 02, 2015 at 04:09:08PM +0100, Peter Zijlstra wrote: > On Wed, Dec 02, 2015 at 03:08:16PM +0100, Frederic Weisbecker wrote: > > On Wed, Dec 02, 2015 at 11:56:33AM +0100, Peter Zijlstra wrote: > > > On Tue, Dec 01, 2015 at 11:20:28PM +0100, Frederic Weisbecker wrote: > > > > > > + prev

Re: [PATCH v2 2/2] workqueue: implement lockup detector

2015-12-08 Thread Don Zickus
On Mon, Dec 07, 2015 at 04:39:52PM -0500, Tejun Heo wrote: > On Mon, Dec 07, 2015 at 04:38:16PM -0500, Don Zickus wrote: > > On Mon, Dec 07, 2015 at 02:06:17PM -0500, Tejun Heo wrote: > > > Hello, > > > > > > Decoupled the control knobs from softlockup. It's now workqueue > > > module param which

Re: [alsa-devel] [PATCH 2/2] ASoC: img: Add driver for Pistachio internal DAC

2015-12-08 Thread Damien Horsley
On 25/11/15 12:47, Mark Brown wrote: > On Mon, Nov 23, 2015 at 05:24:59PM +, Damien Horsley wrote: > >> +/* The mute state as set by alsa using the digital_mute callback */ >> +bool alsa_mute_state; >> +/* The mute state as set by the userspace mute control */ >> +bool control_

Re: [PATCH] dmaengine: at_hdmac: fix dma_addr_t printing

2015-12-08 Thread Nicolas Ferre
Le 08/12/2015 16:34, Arnd Bergmann a écrit : > A recent patch tried to improve the printk output of the atc_dump_lli() > function but introduced a bug, in which we end up dereferencing a > dma address as a pointer, and we even get a warning for it: > > drivers/dma/at_hdmac_regs.h: In function 'atc

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
Hi Boris, Thanks for the review. On 08/12/15 14:14, Boris Brezillon wrote: On Thu, 3 Dec 2015 12:02:21 + Harvey Hunt wrote: From: Alex Smith Add a driver for NAND devices connected to the NEMC on JZ4780 SoCs, as well as the hardware BCH controller. DMA is not currently implemented. Wh

Re: [PATCH 3/7] cgroup: introduce cgroup namespaces

2015-12-08 Thread Tejun Heo
On Mon, Dec 07, 2015 at 05:06:18PM -0600, serge.hal...@ubuntu.com wrote: > static const char *proc_ns_follow_link(struct dentry *dentry, void **cookie) > diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h > index 2b3e2314..906f240 100644 > --- a/include/linux/cgroup.h > +++ b/include/lin

RE: [Patch V2] x86, mce: Ensure offline CPU's don't participate in mce rendezvous process.

2015-12-08 Thread Luck, Tony
> No, the system did panic in both times. The "strange" observation is > that the MCE gets reported only on the cores on node 0. Or at least only > the printks from mce_panic() on the cores on node0 reach the serial > console. You only see messages and logs from node0, because the cpus there are t

[PATCH v2] of/address: replace printk() with pr_debug() / pr_err()

2015-12-08 Thread Masahiro Yamada
Trivial changes suggested by checkpatch.pl. Signed-off-by: Masahiro Yamada --- Changes in v2: - Fix printk(KERN_DEBUG ...) too drivers/of/address.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/address.c b/drivers/of/address.c index 9582c57..65fafbb 10064

[PATCH] kexec: use list_for_each_entry_safe in kimage_free_page_list

2015-12-08 Thread Geliang Tang
Use list_for_each_entry_safe() instead of list_for_each_safe() to simplify the code. Signed-off-by: Geliang Tang --- kernel/kexec_core.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 11b64a6..f3951c7 100644 --- a/kernel

Re: [PATCH] of/address: replace printk(KERN_ERR ...) with pr_err(...)

2015-12-08 Thread Masahiro Yamada
Hi Rob, 2015-12-07 5:40 GMT+09:00 Rob Herring : > On Mon, Nov 30, 2015 at 12:14 AM, Masahiro Yamada > wrote: >> A trivial change suggested by checkpatch.pl. > > You might as well all levels while you are at it. Looks like that is > only one more: > > drivers/of/address.c: printk(KERN_DEBUG "%s"

Re: [PATCH] vhost: vsock: select CONFIG_VHOST

2015-12-08 Thread Michael S. Tsirkin
On Tue, Dec 08, 2015 at 04:46:08PM +0100, Arnd Bergmann wrote: > When building the new vsock code without vhost, we get a build error: > > drivers/built-in.o: In function `vhost_vsock_flush': > :(.text+0x24d29c): undefined reference to `vhost_poll_flush' > > This adds an explicit 'select' like we

Re: [PATCH v2 0/2] mm: Introduce kernelcore=reliable option

2015-12-08 Thread Tony Luck
On Tue, Dec 8, 2015 at 12:07 AM, Izumi, Taku wrote: > Which do you think is beter ? >- change into kernelcore="mirrored" >- keep kernelcore="reliable" and minmal printk fix UEFI came up with the "reliable" wording (as a more generic term ... as Andrew said it could cover differences in E

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Dmitry Vyukov
On Tue, Dec 8, 2015 at 4:24 AM, Alexei Starovoitov wrote: > On Mon, Dec 07, 2015 at 05:09:21PM +0100, Dmitry Vyukov wrote: >> > So it would be _awesome_ if we could somehow extend this callchain to >> > include the site that calls call_rcu(). >> >> We have a patch for KASAN in works that adds so-c

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Rafael J. Wysocki
On Tuesday, December 08, 2015 08:26:58 PM Viresh Kumar wrote: > On 08-12-15, 15:30, Rafael J. Wysocki wrote: > > It doesn't look nice, but then having a lockless timer function is worth > > it in my view. > > > > The code in gov_cancel_work() runs relatively rarely, but the timer > > function can

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Boris Brezillon
On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: > > > > static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, > > unsigned int ctrl) > > { > > struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd); > > struct jz4780_nand_controller *nfc = >

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
On 08/12/15 16:12, Boris Brezillon wrote: On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd); stru

[no subject]

2015-12-08 Thread
Are you in need of private or business loans for various purposes? if yes,apply now -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FA

Re: [PATCH] dmaengine: at_hdmac: fix dma_addr_t printing

2015-12-08 Thread Vinod Koul
On Tue, Dec 08, 2015 at 04:34:28PM +0100, Arnd Bergmann wrote: > A recent patch tried to improve the printk output of the atc_dump_lli() > function but introduced a bug, in which we end up dereferencing a > dma address as a pointer, and we even get a warning for it: > > drivers/dma/at_hdmac_regs.h

Re: [PATCH v2] of/address: replace printk() with pr_debug() / pr_err()

2015-12-08 Thread Joe Perches
On Wed, 2015-12-09 at 01:07 +0900, Masahiro Yamada wrote: > Trivial changes suggested by checkpatch.pl. [] > diff --git a/drivers/of/address.c b/drivers/of/address.c [] > @@ -23,7 +23,7 @@ static int __of_address_to_resource(struct device_node *dev, >  #ifdef DEBUG >  static void of_dump_addr(const

[PATCH] staging: android: ashmem.c: destroy slabs when init fails

2015-12-08 Thread Wenwei Tao
when ashmem init fails, destroy the slabs, leave no garbage. Signed-off-by: Wenwei Tao --- drivers/staging/android/ashmem.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c index 3f2a3d6..5bb1

Re: [PATCH V2 2/3] PM / OPP: Parse 'opp-supported-hw' binding

2015-12-08 Thread Rafael J. Wysocki
On Tuesday, December 08, 2015 08:31:05 PM Viresh Kumar wrote: > On 04-12-15, 13:53, Viresh Kumar wrote: > > On 01-12-15, 12:22, Viresh Kumar wrote: > > > Since these functions are *only* going to be called before any OPPs > > > are added for the device, and hence ruling out any concurrent readers,

Re: [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-08 Thread Tejun Heo
Hello, On Mon, Dec 07, 2015 at 05:06:20PM -0600, serge.hal...@ubuntu.com wrote: > fs/kernfs/mount.c | 74 > > include/linux/kernfs.h |2 ++ > kernel/cgroup.c| 39 - > 3 files changed, 114 insertions(+),

Re: netlink: Add missing goto statement to netlink_insert

2015-12-08 Thread David Miller
From: Herbert Xu Date: Tue, 8 Dec 2015 14:13:19 +0800 > On Mon, Dec 07, 2015 at 07:58:25AM +0100, Stefan Priebe - Profihost AG wrote: >> >> Thanks, good. Can you help me to get this fix upstream into the stable >> lines? > > Sure. Greg, please apply this patch to fix up the backport for 4.1. H

Re: [PATCH 6/7] cgroup: Add documentation for cgroup namespaces

2015-12-08 Thread Tejun Heo
On Mon, Dec 07, 2015 at 05:06:21PM -0600, serge.hal...@ubuntu.com wrote: > From: Aditya Kali > > Signed-off-by: Aditya Kali > Signed-off-by: Serge Hallyn > --- > Documentation/cgroups/namespace.txt | 142 > +++ Please integrate the documentation into Documenta

Re: [PATCH v2 net-next 2/3] net: ethernet: cadence-macb: Add fallback to read DT provided caps

2015-12-08 Thread Nicolas Ferre
Le 08/12/2015 16:00, Arnd Bergmann a écrit : > On Tuesday 08 December 2015 14:52:05 Neil Armstrong wrote: >> Add 1:1 mapping of software defines caps parsing from DT in case the >> generic macb compatible form is used. >> These properties will provide support for futures implementations >> only def

[PATCH 1/2] iio: mma8452: remove unused register description

2015-12-08 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger Signed-off-by: Christoph Muellner --- drivers/iio/accel/mma8452.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 116a6e4..162bbef 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/

Re: [PATCH] dmaengine: at_hdmac: fix dma_addr_t printing

2015-12-08 Thread Dmitry Krivenok
>> A recent patch tried to improve the printk output of the atc_dump_lli() >> function but introduced a bug BTW, my original patch was created for mainline and was incorrectly applied to slave-dma.git for-linus branch (I sent Vinod an email about that). In that branch the code was already changed

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Peter Zijlstra
On Fri, Dec 04, 2015 at 09:04:35PM +0100, Dmitry Vyukov wrote: > Hello, > > While running syzkaller fuzzer I am seeing lots of the following > use-after-free reports. Unfortunately all my numerous attempts to > reproduce them in a controlled environment failed. They pop up during > fuzzing periodi

[PATCH v3] bus: uniphier-system-bus: add UniPhier System Bus driver

2015-12-08 Thread Masahiro Yamada
The UniPhier System Bus is an external that connects on-board devices to the UniPhier SoC. Each bank (chip select) is dynamically mapped to the CPU-viewed address base via the bus controller. The bus controller must be configured before any access to the bus. This driver parses the "ranges" prop

[PATCH 2/2] iio: mma8452: add freefall detection for Freescale's accelerometers

2015-12-08 Thread Martin Kepplinger
This adds freefall event detection to the supported devices. It adds the in_accel_x&y&z_mag_falling_en iio event attribute, which activates freefall mode. In freefall mode, the current acceleration magnitude (AND combination of all axis values) is compared to the specified threshold. If it falls u

Re: [PATCH v5 2/4] drm: Add support for ARM's HDLCD controller.

2015-12-08 Thread Robin Murphy
Hi Liviu, On 07/12/15 12:11, Liviu Dudau wrote: The HDLCD controller is a display controller that supports resolutions up to 4096x4096 pixels. It is present on various development boards produced by ARM Ltd and emulated by the latest Fast Models from the company. > > Cc: David Airlie > Cc: Rob

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Boris Brezillon
On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: > > > > static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, > > unsigned int ctrl) > > { > > struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd); > > struct jz4780_nand_controller *nfc = >

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Peter Zijlstra
On Fri, Dec 04, 2015 at 09:04:35PM +0100, Dmitry Vyukov wrote: > I was able to reproduce it by > restricting syscalls only to perf_event_open, perf ioctls and bpf > syscall. Does that include cpu hotplug? Sasha just reminded me there is a swevent use-after-free issue on hotplug. -- To unsubscrib

Re: [PATCH 14/14] mm: memcontrol: switch to the updated jump-label API

2015-12-08 Thread David Miller
From: Johannes Weiner Date: Tue, 8 Dec 2015 10:30:24 -0500 > According to the direct use of struct static_key > is deprecated. Update the socket and slab accounting code accordingly. > > Reported-by: Jason Baron > Signed-off-by: Johannes Weiner Acked-by: David S. Miller -- To unsubscribe f

Re: [PATCH 00/14] mm: memcontrol: account socket memory in unified hierarchy v4-RESEND

2015-12-08 Thread David Miller
From: Johannes Weiner Date: Tue, 8 Dec 2015 10:30:10 -0500 > Hi Andrew, > > there was some build breakage in CONFIG_ combinations I hadn't tested > in the last revision, so here is a fixed-up resend with minimal CC > list. The only difference to the previous version is a section in > memcontrol

Re: [PATCH] mtd: sh_flctl: pass FIFO as physical address

2015-12-08 Thread Geert Uytterhoeven
On Tue, Dec 8, 2015 at 4:38 PM, Arnd Bergmann wrote: > By convention, the FIFO address we pass using dmaengine_slave_config > is a physical address in the form that is understood by the DMA > engine, as a dma_addr_t, phys_addr_t or resource_size_t. > > The sh_flctl driver however passes a virtual

Re: [PATCH] mfd: wm831x: fix broken wm831x_unique_id_show

2015-12-08 Thread Charles Keepax
On Sun, Dec 06, 2015 at 12:39:39AM +0100, Rasmus Villemoes wrote: > wm831x_unique_id_show currently displays an interesting pattern of '0' > and '3' characters which isn't very useful (figuring out why is left > as an exercise for the reader). Presumably "buf[i]" should have been > "id[i] & 0xff".

Re: [PATCH] fix inverted test in __skb_recv_datagram

2015-12-08 Thread David Miller
From: Rainer Weikusat Date: Tue, 08 Dec 2015 14:46:36 + > David Miller writes: >> From: Rainer Weikusat >> Date: Mon, 07 Dec 2015 23:30:58 + >> >>> As the kernel generally uses negated error numbers, *err needs to be >>> compared with -EAGAIN (d'oh). >>> >>> Signed-off-by: Rainer Weiku

Re: [PATCH V2 2/3] PM / OPP: Parse 'opp-supported-hw' binding

2015-12-08 Thread Viresh Kumar
On 08-12-15, 17:50, Rafael J. Wysocki wrote: > I don't remember that code clearly and it would take some time for me to > recall it and then figure out the details about the changes. Not impossible, > but quite honestly I have other things to spend that time on. > > Also, are the patches so urgen

Re: [PATCH v2 2/2] workqueue: implement lockup detector

2015-12-08 Thread Tejun Heo
On Tue, Dec 08, 2015 at 11:00:54AM -0500, Don Zickus wrote: > On Mon, Dec 07, 2015 at 04:39:52PM -0500, Tejun Heo wrote: > > On Mon, Dec 07, 2015 at 04:38:16PM -0500, Don Zickus wrote: > > > On Mon, Dec 07, 2015 at 02:06:17PM -0500, Tejun Heo wrote: > > > > Hello, > > > > > > > > Decoupled the con

Re: [PATCH] fix inverted test in __skb_recv_datagram

2015-12-08 Thread David Miller
From: Rainer Weikusat Date: Tue, 08 Dec 2015 14:47:56 + > As the kernel generally uses negated error numbers, *err needs to be > compared with -EAGAIN (d'oh). > > Signed-off-by: Rainer Weikusat > Fixes: ea3793ee29d3 ("core: enable more fine-grained datagram reception > control") Applied,

Re: [PATCH 10/34] x86, pkeys: arch-specific protection bitsy

2015-12-08 Thread Dave Hansen
On 12/08/2015 07:15 AM, Thomas Gleixner wrote: > On Thu, 3 Dec 2015, Dave Hansen wrote: >> >> +static inline int vma_pkey(struct vm_area_struct *vma) > > Shouldn't this return something unsigned? Ingo had asked that we use 'int' in the syscalls at some point. We also use a -1 to mean "no pkey

Re: [PATCH v9 2/3] mtd: nand: jz4780: driver for NAND devices on JZ4780 SoCs

2015-12-08 Thread Harvey Hunt
On 08/12/15 16:26, Boris Brezillon wrote: On Tue, 8 Dec 2015 16:03:55 + Harvey Hunt wrote: static void jz4780_nand_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl) { struct jz4780_nand_chip *nand = to_jz4780_nand_chip(mtd); stru

Re: [PATCH] regulator: add regulator_sync_voltage inline dummy

2015-12-08 Thread Mark Brown
On Tue, Dec 08, 2015 at 04:43:35PM +0100, Arnd Bergmann wrote: > This modifies the API header so we provide a static inline function > with the same prototype as the normal function of this name. This matches > what we do for all other regulator API functions and avoids the build > error. We don'

[PATCH v8] watchdog: ts4800: add driver for TS-4800 watchdog

2015-12-08 Thread Damien Riegel
This watchdog is instantiated in a FPGA that is memory mapped. It is made of only one register, called the feed register. Writing to this register will re-arm the watchdog for a given time (and enable it if it was disable). It can be disabled by writing a special value into it. It is part of a sys

[GIT PULL] libata fixes for v4.4-rc4

2015-12-08 Thread Tejun Heo
Hello, Linus. libata fixes. Nothing too interesting. All are device specific additions and workarounds. Thanks. The following changes since commit 8005c49d9aea74d382f474ce11afbbc7d7130bec: Linux 4.4-rc1 (2015-11-15 17:00:27 -0800) are available in the git repository at: git://git.kernel

[PATCH V1] rtc: da9063: access ordering error during RTC interrupt system power on

2015-12-08 Thread Steve Twiss
From: Steve Twiss This fix alters the ordering of the IRQ and device registrations in the RTC driver probe function. This change will apply to the RTC driver that supports both DA9063 and DA9062 PMICs. A problem could occur with the existing RTC driver if: A system is started from a cold boot u

[PATCH v8 3/3] ARM: dts: TS-4800: add basic device tree

2015-12-08 Thread Damien Riegel
This device tree adds support for TS-4800 by Technologic Systems. This board is based on MX51-babbage, but there are some subtle differences in the pins used, and there is an additional FPGA that is memory-mapped. More details here: http://wiki.embeddedarm.com/wiki/TS-4800 Signed-off-by: Damien

[PATCH v8 0/3] Add board support for TS-4800

2015-12-08 Thread Damien Riegel
This patch serie adds support for TS-4800 board. This board, manufactured by Technologic Systems, is based on an IMX515. The first stage bootloader, called TS-BOOTROM, enables the watchdog, so a watchdog driver is requi

[PATCH v8 1/3] of: add vendor prefix for Technologic Systems

2015-12-08 Thread Damien Riegel
Signed-off-by: Damien Riegel Acked-by: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt ind

[PATCH v8 2/3] of: documentation: add bindings documentation for TS-4800

2015-12-08 Thread Damien Riegel
This adds the documentation for the TS-4800 by Technologic Systems. Signed-off-by: Damien Riegel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/technologic.txt | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/technologic.txt

Re: [PATCH][experimantal] cpufreq: governor: Use an atomic variable for synchronization

2015-12-08 Thread Viresh Kumar
On 08-12-15, 17:42, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: [PATCH] cpufreq: governor: Use lockless timer function > > It is possible to get rid of the timer_lock spinlock used by the > governor timer function for synchronization, but a couple of races > need to be avoided.

Re: [PATCH 1/5] dma: do not use 0x in front of %pad

2015-12-08 Thread Vinod Koul
On Tue, Dec 08, 2015 at 03:48:39PM +0100, Thierry Reding wrote: > On Tue, Dec 01, 2015 at 10:01:52AM +0100, Nicolas Ferre wrote: > > Le 30/11/2015 21:45, Dmitry V. Krivenok a écrit : > > > Signed-off-by: Dmitry V. Krivenok > > > > Acked-by: Nicolas Ferre > > > > > --- > > > drivers/dma/at_hdma

Re: [PATCH 2/7] perf: Generalize task_function_call()ers

2015-12-08 Thread Alexander Shishkin
Peter Zijlstra writes: > OK, so the retry_state thing is clever, but either I'm too tired or its > not quite right. Nor do I think its actually required. > > /me frobs... > > Hmm, I cannot seem to convince myself the current code is correct to > begin with. > > In any case, consider the below (on

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Peter Zijlstra
On Mon, Dec 07, 2015 at 05:09:21PM +0100, Dmitry Vyukov wrote: > If your audit does not give any results, can you give me a patch that > prints rcu callback submission stacks in KASAN reports? Just because my brain is fried for today, I figured I'd give it a go. Completely untested.. --- includ

Re: [PATCH 1/7] kernfs: Add API to generate relative kernfs path

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 10:52:51AM -0500, Tejun Heo wrote: > Hello, Serge. > > On Mon, Dec 07, 2015 at 05:06:16PM -0600, serge.hal...@ubuntu.com wrote: > > +/* kernfs_node_depth - compute depth from @from to @to */ > > +static size_t kernfs_node_distance(struct kernfs_node *from, struct > > kernf

Re: [PATCH 5/7] cgroup: mount cgroupns-root when inside non-init cgroupns

2015-12-08 Thread Serge E. Hallyn
On Tue, Dec 08, 2015 at 11:20:40AM -0500, Tejun Heo wrote: > Hello, > > On Mon, Dec 07, 2015 at 05:06:20PM -0600, serge.hal...@ubuntu.com wrote: > > fs/kernfs/mount.c | 74 > > > > include/linux/kernfs.h |2 ++ > > kernel/cgroup.c

[PATCH] iio/inkern.c Use list_for_each_entry_safe

2015-12-08 Thread Anshul Garg
Use list_for_each_entry_safe instead of list_for_each_safe and list_entry call. Signed-off-by: Anshul Garg --- drivers/iio/inkern.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c index c8bad3c..f764eb6 100644 --- a/drivers

Re: [PATCH] regulator: add regulator_sync_voltage inline dummy

2015-12-08 Thread Arnd Bergmann
On Tuesday 08 December 2015 16:37:39 Mark Brown wrote: > On Tue, Dec 08, 2015 at 04:43:35PM +0100, Arnd Bergmann wrote: > > > This modifies the API header so we provide a static inline function > > with the same prototype as the normal function of this name. This matches > > what we do for all oth

Re: use-after-free in __perf_install_in_context

2015-12-08 Thread Dmitry Vyukov
On Tue, Dec 8, 2015 at 5:27 PM, Peter Zijlstra wrote: > On Fri, Dec 04, 2015 at 09:04:35PM +0100, Dmitry Vyukov wrote: > >> I was able to reproduce it by >> restricting syscalls only to perf_event_open, perf ioctls and bpf >> syscall. > > Does that include cpu hotplug? I have CONFIG_HOTPLUG_CPU e

[GIT PULL] cgroup fixes for v4.4-rc4

2015-12-08 Thread Tejun Heo
Hello, Linus. More change than I'd have liked at this stage. The pids controller and the changes made to cgroup core to support it introduced and revealed several important issues. * Assigning membership to a newly created task and migrating it can race leading to incorrect accounting. Oleg f

Re: [PATCH v5 2/4] drm: Add support for ARM's HDLCD controller.

2015-12-08 Thread Liviu Dudau
On Tue, Dec 08, 2015 at 04:25:27PM +, Robin Murphy wrote: > Hi Liviu, > > On 07/12/15 12:11, Liviu Dudau wrote: > >The HDLCD controller is a display controller that supports resolutions > >up to 4096x4096 pixels. It is present on various development boards > >produced by ARM Ltd and emulated b

<    1   2   3   4   5   6   7   8   9   >