Re: [PATCH 00/05] input: RMI4 Synaptics RMI4 Touchscreen Driver

2014-02-03 Thread Linus Walleij
On Sat, Jan 19, 2013 at 2:12 AM, Christopher Heiny wrote: > This patchset implements changes based on the synaptics-rmi4 branch of > Dmitry's input tree. What is happening to the RMI4 driver stuff? Has this development stalled? The branch in Dmitry's git seems to be maintained but not much is

Re: [PATCH v2 2/3] clocksource: tegra: Define timer bases in header file

2014-02-03 Thread Daniel Lezcano
On 02/04/2014 01:17 AM, Andrew Chew wrote: Added timers that are present in tegra30 and later, that are NOT in tegra20. Also, some of these timer bases are needed in the tegra watchdog driver, so separate them out into a header file that both the clocksource driver and the watchdog driver can

[PATCH] memcg, slab: cleanup memcg cache creation

2014-02-03 Thread Vladimir Davydov
This patch cleanups the memcg cache creation path as follows: - Move memcg cache name creation to a separate function to be called from kmem_cache_create_memcg(). This allows us to get rid of the mutex protecting the temporary buffer used for the name formatting, because the whole cache

Re: [PATCH] kernel: kprobe: move all *kretprobe* generic implementation to CONFIG_KRETPROBES enabled area

2014-02-03 Thread Masami Hiramatsu
(2014/02/04 14:16), Chen Gang wrote: > When CONFIG_KRETPROBES disabled, all *kretprobe* generic implementation > are useless, so need move them to CONFIG_KPROBES enabled area. > > Now, *kretprobe* generic implementation are all implemented in 2 files: > > - in "include/linux/kprobes.h": > >

Re: Need help in bug in isolate_migratepages_range

2014-02-03 Thread Holger Kiehl
On Mon, 3 Feb 2014, David Rientjes wrote: On Mon, 3 Feb 2014, Vlastimil Babka wrote: It seems to come from balloon_page_movable() and its test page_count(page) == 1. Hmm, I think it might be because compound_head() == NULL here. Holger, this looks like a race condition when allocating a

Re: [RFC][PATCH v2 5/5] mutex: Give spinners a chance to spin_on_owner if need_resched() triggered while queued

2014-02-03 Thread Jason Low
On Mon, 2014-02-03 at 20:25 +0100, Peter Zijlstra wrote: > +void m_spin_unlock(struct m_spinlock **lock) > +{ > + struct m_spinlock *node = this_cpu_ptr(_node); > + struct m_spinlock *next; > + > + if (likely(cmpxchg(lock, node, NULL) == node)) > + return; At this current

Re: [PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-02-03 Thread Namjae Jeon
2014-02-04, OGAWA Hirofumi : > Namjae Jeon writes: > >> 2014-02-04, OGAWA Hirofumi : >>> Namjae Jeon writes: >>> >> /* fat_get_cluster() assumes the requested blocknr isn't >> truncated. >> */ >> down_read(_I(mapping->host)->truncate_lock); >> +/*

[PATCH] staging: cxt1e1: fix pointer-integer size mismatch warning

2014-02-03 Thread SeongJae Park
Fix the pointer-integer size mismatch warning below: drivers/staging/cxt1e1/functions.c: In function ‘VMETRO_TRACE’: drivers/staging/cxt1e1/functions.c:268:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

[PATCH] staging: bcm: fix pointer-integer size mismatch warnings

2014-02-03 Thread SeongJae Park
Fix the pointer-integer size mismatch warnings below: drivers/staging/bcm/CmHost.c: In function ‘StoreCmControlResponseMessage’: drivers/staging/bcm/CmHost.c:1387:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Re: [BISECTED] Linux 3.12.7 introduces page map handling regression

2014-02-03 Thread Elena Ufimtseva
On Sun, Jan 26, 2014 at 1:02 PM, Elena Ufimtseva wrote: > On Fri, Jan 24, 2014 at 8:38 AM, Mel Gorman wrote: >> On Thu, Jan 23, 2014 at 11:23:37AM -0500, Elena Ufimtseva wrote: >>> >> >> >>> >> >> >>> >> >> This dump doesn't look dramatically different, either. >>> >> >> >>> >> >>> >>> >> >>>

[PATCH] spi: fix pointer-integer size mismatch warning

2014-02-03 Thread SeongJae Park
Fix the pointer-integer size mismatch warning below: drivers/spi/spi-gpio.c: In function ‘spi_gpio_setup’: drivers/spi/spi-gpio.c:252:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] cs = (unsigned int)

Re: [PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-02-03 Thread OGAWA Hirofumi
Namjae Jeon writes: > 2014-02-04, OGAWA Hirofumi : >> Namjae Jeon writes: >> > /* fat_get_cluster() assumes the requested blocknr isn't truncated. > */ > down_read(_I(mapping->host)->truncate_lock); > + /* To get block number beyond file size in fallocated region */ > +

[PATCH] drivers/mfd: fix pointer-integer size mismatch warnings

2014-02-03 Thread SeongJae Park
Fix the pointer-integer size mismatch warnings below: drivers/mfd/wm8994-core.c: In function ‘wm8994_i2c_probe’: mfd/wm8994-core.c:639:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] wm8994->type =

Re: [PATCH v7] xen/grant-table: Avoid m2p_override during mapping

2014-02-03 Thread Matt Wilson
On Mon, Feb 03, 2014 at 01:24:58PM +, Zoltan Kiss wrote: > The grant mapping API does m2p_override unnecessarily: only gntdev needs it, > for blkback and future netback patches it just cause a lock contention, as > those pages never go to userspace. Therefore this series does the following: >

Re: [PATCH 2/4] staging/lustre/obdclass: read jobid from proc

2014-02-03 Thread Oleg Drokin
Hello! On Wed, Oct 30, 2013 at 06:21:01AM -0700, Greg Kroah-Hartman wrote: > > - * stored in between the "env_start" & "env_end" of task struct. > > +static char *self_environ_file = "/proc/self/environ"; > > Heh, no, that's not ok at all. > > This is a _huge_ sign that you are doing something

Re: [Xen-devel] xen-blkback: bug fixes

2014-02-03 Thread Matt Wilson
On Tue, Jan 28, 2014 at 03:38:37PM -0400, Konrad Rzeszutek Wilk wrote: > On Tue, Jan 28, 2014 at 06:43:32PM +0100, Roger Pau Monne wrote: > > blkback bug fixes for memory leaks (patches 1 and 2) and a race > > (patch 3). > > They all look OK to me. I've stuck them in my 'stable/for-jens-3.14' >

Re: [PATCH v2 2/7] memcg, slab: cleanup memcg cache name creation

2014-02-03 Thread Vladimir Davydov
On 02/04/2014 02:08 AM, Andrew Morton wrote: > On Mon, 3 Feb 2014 19:54:37 +0400 Vladimir Davydov > wrote: > >> The way memcg_create_kmem_cache() creates the name for a memcg cache >> looks rather strange: it first formats the name in the static buffer >> tmp_name protected by a mutex, then

Re: [PATCH 7/8] Add 32 bit VDSO time support for 32 bit kernel

2014-02-03 Thread Stefani Seibold
Am Montag, den 03.02.2014, 14:04 -0800 schrieb Andy Lutomirski: > On Mon, Feb 3, 2014 at 2:01 PM, Stefani Seibold wrote: > > Am Montag, den 03.02.2014, 08:36 -0800 schrieb Andy Lutomirski: > >> On Sun, Feb 2, 2014 at 11:44 PM, Stefani Seibold > >> wrote: > >> > Am Sonntag, den 02.02.2014, 16:12

Re: [PATCH] Make math_state_restore() save and restore the interrupt flag

2014-02-03 Thread Suresh Siddha
On Mon, 2014-02-03 at 10:20 -0800, Linus Torvalds wrote: > Thinking about it some more, this patch is *almost* not needed at all. > > I'm wondering if you should just change the first patch to just always > initialize the fpu when it is allocated, and at execve() time (ie in > flush_thread()). >

Re: [PATCH] spi: rspi: fix build error when CONFIG_OF is not set

2014-02-03 Thread Shimoda, Yoshihiro
Hi Geert-san, (2014/02/03 17:47), Geert Uytterhoeven wrote: > Hi Shimoda-san, > > On Mon, 3 Feb 2014, Shimoda, Yoshihiro wrote: >> This patch fixes an issue that the following build error happens when >> the CONFIG_OF is not set: >> >> drivers/spi/spi-rspi.c: In function 'rspi_probe': >>

[PATCH] regulator: core: Make regulator object reflect configured voltage

2014-02-03 Thread Bjorn Andersson
In the case when a regulator is initialized from DT with equal min and max voltages the voltage is applied on initialization and future calls to regulator_set_voltage fails. This behavious is different than if the regulator is configured to be a span and therefor requires logic to handle this

Re: [PATCH 0/4] w1: refcnt fix, skip non-error send, docs

2014-02-03 Thread David Fries
On Tue, Feb 04, 2014 at 03:59:38AM +0400, z...@ioremap.net wrote: > Hi > > 03.02.2014, 05:15, "David Fries" : > > >  I could submit these patches as in, which would require the previous > >  set, or I could merge the documentation into the previous set and > >  resubmit them all since they

Re: [PATCH v2] dma: Add Xilinx AXI Video Direct Memory Access Engine driver support

2014-02-03 Thread Vinod Koul
On Fri, Jan 31, 2014 at 12:22:52PM +0530, Srikanth Thokala wrote: > >>> >> [...] > >>> >>> +/** > >>> >>> + * xilinx_vdma_device_control - Configure DMA channel of the device > >>> >>> + * @dchan: DMA Channel pointer > >>> >>> + * @cmd: DMA control command > >>> >>> + * @arg: Channel configuration

[PATCH] fdtable: Avoid triggering OOMs from alloc_fdmem

2014-02-03 Thread Eric W. Biederman
Recently due to a spike in connections per second memcached on 3 separate boxes triggered the OOM killer from accept. At the time the OOM killer was triggered there was 4GB out of 36GB free in zone 1. The problem was that alloc_fdtable was allocating an order 3 page (32KiB) to hold a bitmap, and

[PATCH] kernel: kprobe: move all *kretprobe* generic implementation to CONFIG_KRETPROBES enabled area

2014-02-03 Thread Chen Gang
When CONFIG_KRETPROBES disabled, all *kretprobe* generic implementation are useless, so need move them to CONFIG_KPROBES enabled area. Now, *kretprobe* generic implementation are all implemented in 2 files: - in "include/linux/kprobes.h": move inline kretprobe*() to CONFIG_KPROBES area

[PATCH 4/4] power_supply: bq24261 charger driver

2014-02-03 Thread Jenny TC
This patch introduces BQ24261 charger driver. The driver makes use of power supply charging driver to setup charging. So the driver does hardware abstraction and handles h/w specific corner cases. The charging logic resides with power supply charging driver Signed-off-by: Jenny TC ---

[PATCH 3/4] power_supply: Introduce PSE compliant algorithm

2014-02-03 Thread Jenny TC
As per Product Safety Engineering (PSE) specification for battery charging, the battery characteristics and thereby the charging rates can vary on different temperature zones. This patch introduces a PSE compliant charging algorithm with maintenance charging support. The algorithm can be selected

Re: [PATCH] cpufreq: cpu0: make THERMAL_CPU support optional

2014-02-03 Thread Viresh Kumar
On 3 February 2014 21:44, Rob Herring wrote: > That's certainly fine by me, but I don't know which platforms those are. Probably OMAP as the author came from TI and has tested it on OMAPs https://lkml.org/lkml/2013/9/26/787 > BTW, REGULATOR could probably be dropped as well. It certainly works

[PATCH 1/4] power_supply: Add inlmt,iterm, min/max temp props

2014-02-03 Thread Jenny TC
Add new power supply properties for input current, charge termination current, min and max temperature POWER_SUPPLY_PROP_TEMP_MIN - minimum operatable temperature POWER_SUPPLY_PROP_TEMP_MAX - maximum operatable temperature POWER_SUPPLY_PROP_INLMT - input current limit programmed by charger.

[PATCH v5 0/4] power_supply: Introduce power supply charging driver

2014-02-03 Thread Jenny TC
v1: introduced feature as a framework within power supply class driver with separate files for battid framework and charging framework v2: fixed review comments, moved macros and inline functions to power_supply.h v3: moved the feature as a separate driver, combined battid framework and

linux-next: Tree for Feb 4

2014-02-03 Thread Stephen Rothwell
Hi all, This tree fails (more than usual) the powerpc allyesconfig build. Changes since 20140203: Dropped tree: parisc-hd Undropped tree: btrfs The parisc-hd tree gained conflicts against its rebased version in Linus' tree, so I dropped it for today. The powerpc tree still had its build

Re: [PATCH] Clarify CONFIG_DEBUG_INFO's bloaty nature

2014-02-03 Thread Borislav Petkov
On Mon, Feb 03, 2014 at 02:57:18PM -0800, Andrew Morton wrote: > On Mon, 3 Feb 2014 14:47:15 -0800 Linus Torvalds > wrote: > > > On Mon, Feb 3, 2014 at 2:00 PM, David Rientjes wrote: > > > > > > How do you define "huge bloat" if the size of vmlinux doesn't increase? > > > > Don't be silly.

[PATCH 2/2] f2fs: clean up with a macro

2014-02-03 Thread Jaegeuk Kim
This patch adds GET_BLKOFF_FROM_SEG0 to clean up some codes. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 3 +-- fs/f2fs/segment.c | 11 --- fs/f2fs/segment.h | 3 +++ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index

[PATCH 1/2] f2fs: fix the potential mismatch between dir's i_size and i_blocks

2014-02-03 Thread Jaegeuk Kim
This is the erroneous scenario. i_sizeon-disk i_sizei_blocks __f2fs_add_link() 4096 4096 2 get_new_data_page8192 4096 3 -ENOSPC = init_inode_metadata checkpoint -

Re: Do we really need curr_target in signal_struct ?

2014-02-03 Thread Rakib Mullick
On Mon, Feb 3, 2014 at 10:39 PM, Oleg Nesterov wrote: > On 02/02, Rakib Mullick wrote: > >> > As I already said it caches the last wants_signal(t) thread? >> Yes, you said. But, gets messed up at exit path, not useful everytime. > > Yes. > >> If fails, p gets checked twice. > > Yes, but this is

Re: [PATCH 3/8] mm/swap: prevent concurrent swapon on the same S_ISBLK blockdev

2014-02-03 Thread Hugh Dickins
On Mon, 3 Feb 2014, Andrew Morton wrote: > On Mon, 27 Jan 2014 18:03:04 +0800 Weijie Yang > wrote: > > > When swapon the same S_ISBLK blockdev concurrent, the allocated two > > swap_info could hold the same block_device, because claim_swapfile() > > allow the same holder(here, it is sys_swapon

Re: [PATCH 00/16] [RFC] Staging updates from the Android tree

2014-02-03 Thread Greg KH
On Mon, Feb 03, 2014 at 10:16:12AM -0800, John Stultz wrote: > I recently went through the AOSP common.git android/3.10 tree to > try to pull fixes that haven't been submitted upstream. I've > cherry picked those patches and wanted to submit them here for > review, and for hopeful inclusion into

Re: [PATCH 2/8] mm/swap: fix race on swap_info reuse between swapoff and swapon

2014-02-03 Thread Hugh Dickins
On Mon, 3 Feb 2014, Andrew Morton wrote: > On Mon, 3 Feb 2014 15:23:40 -0800 Andrew Morton > wrote: > > On Mon, 27 Jan 2014 18:03:04 +0800 Weijie Yang > > wrote: > > > > > swapoff clear swap_info's SWP_USED flag prematurely and free its resources > > > after that. A concurrent swapon will

Re: [PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-02-03 Thread Namjae Jeon
2014-02-04, OGAWA Hirofumi : > Namjae Jeon writes: > /* fat_get_cluster() assumes the requested blocknr isn't truncated. */ down_read(_I(mapping->host)->truncate_lock); + /* To get block number beyond file size in fallocated region */ +

Re: mm: BUG in do_huge_pmd_wp_page

2014-02-03 Thread Hugh Dickins
On Mon, 3 Feb 2014, Sasha Levin wrote: > On 04/25/2013 10:01 PM, Dave Jones wrote: > > On Thu, Apr 25, 2013 at 08:51:27PM -0400, Sasha Levin wrote: > > > On 04/24/2013 06:46 PM, Andrew Morton wrote: > > > > Guys, did this get fixed? > > > > > > I've stopped seeing that during fuzzing, so I

Re: [RFC 10/16] drm/nouveau/timer: skip calibration on GK20A

2014-02-03 Thread Ben Skeggs
On Sat, Feb 1, 2014 at 1:16 PM, Alexandre Courbot wrote: > GK20A's timer is directly attached to the system timer and cannot be > calibrated. Skip the calibration phase on that chip since the > corresponding registers do not exist. Just a curiosity: What timer resolution does the HW initialise

Re: [PATCH] bio_integrity_add_page: check for BIO_POOL_NONE before determining nr_vecs on slab

2014-02-03 Thread Martin K. Petersen
> "David" == David Milburn writes: David> When enabling DIX T10-DIF-TYPE1-IP protection you can hit the David> bip_vec full condition which fails to attach the integrity David> metadata and returns 0 back to bio_integrity_prep() Looks like Kent accidentally broke this when he changed the

Re: [RFC 07/16] drm/nouveau/bar/nvc0: support chips without BAR3

2014-02-03 Thread Ben Skeggs
On Sat, Feb 1, 2014 at 1:16 PM, Alexandre Courbot wrote: > Adapt the NVC0 BAR driver to make it able to support chips that do not > expose a BAR3. When this happens, BAR1 is then used for USERD mapping > and the BAR alloc() functions is disabled, making GPU objects unable > to rely on BAR for

Re: [RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)

2014-02-03 Thread Ben Skeggs
On Sat, Feb 1, 2014 at 1:16 PM, Alexandre Courbot wrote: > Hello everyone, Hey Alex, The series looks pretty good to me. I'll reply to the relevant patches with any minor nit-picks on top of what's already been said by others. Thank you, and welcome to Nouveau :) Ben. > > GK20A is the

Re: [PATCH RESEND 5/10] xfstest: shared/001: Standard collapse range tests

2014-02-03 Thread Namjae Jeon
2014-02-04, Dave Chinner : > On Sun, Feb 02, 2014 at 02:45:58PM +0900, Namjae Jeon wrote: >> From: Namjae Jeon >> >> This testcase(001) tries to test various corner cases >> for fcollapse range functionality over different type of extents. >> >> Signed-off-by: Namjae Jeon >> Signed-off-by:

Re: [patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread Hugh Dickins
On Mon, 3 Feb 2014, David Rientjes wrote: > On Tue, 4 Feb 2014, Joonsoo Kim wrote: > > > > > Okay. It can't fix your situation. Anyway, *normal* anon pages may be > > > > mapped > > > > and have positive page_count(), so your code such as > > > > '!page_mapping(page) && page_count(page)' makes

Re: [3.14-rc1] cirrus driver problem (qemu)

2014-02-03 Thread Dave Airlie
On Tue, Feb 4, 2014 at 1:34 AM, Sabrina Dubroca wrote: > When I boot 3.14-rc1 in qemu, I get the trace below. The console stops > updating and I don't get a login prompt. I can login, but I can't see > what I'm doing. I can login normally via SSH. > > If I revert the last commit in

Re: [PATCH 0/2] tools: lockdep: build fixes

2014-02-03 Thread Sasha Levin
On 01/31/2014 04:35 PM, Ira W. Snyder wrote: From: "Ira W. Snyder" Included are some fixes to the tools/lib/lockdep source tree to fix some build issues. Ira W. Snyder (2): tools: lockdep: fix include of asm/hash.h tools: lockdep: add include directory to allow tests to compile

Re: a LLC sched domain bug for panda board?

2014-02-03 Thread Preeti U Murthy
Hi Alex, Vincent, On 02/04/2014 02:10 AM, Vincent Guittot wrote: > Yes, it's probably worth enabling by default for all ARM arch. > > Vincent > > On 02/04/2014 12:28 AM, Vincent Guittot wrote: >> On 3 February 2014 17:27, Vincent Guittot > wrote: >>> Have you checked that CONFIG_SCHED_LC is

Re: [PATCH v3 2/8] ARM: dts: sun7i: Add GMAC clock node to sun7i DTSI

2014-02-03 Thread Chen-Yu Tsai
On Tue, Feb 4, 2014 at 3:34 AM, Maxime Ripard wrote: > On Mon, Feb 03, 2014 at 11:32:20AM +0800, Chen-Yu Tsai wrote: >> The GMAC uses 1 of 2 sources for its transmit clock, depending on the >> PHY interface mode. Add both sources as dummy clocks, and as parents >> to the GMAC clock node. >> >>

Re: mm: BUG in do_huge_pmd_wp_page

2014-02-03 Thread Sasha Levin
On 04/25/2013 10:01 PM, Dave Jones wrote: On Thu, Apr 25, 2013 at 08:51:27PM -0400, Sasha Levin wrote: > On 04/24/2013 06:46 PM, Andrew Morton wrote: > > Guys, did this get fixed? > > I've stopped seeing that during fuzzing, so I guess that it got fixed somehow... We've had reports of

Re: [patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread David Rientjes
On Tue, 4 Feb 2014, Joonsoo Kim wrote: > > > Okay. It can't fix your situation. Anyway, *normal* anon pages may be > > > mapped > > > and have positive page_count(), so your code such as > > > '!page_mapping(page) && page_count(page)' makes compaction skip these > > > *normal* > > > anon pages

Re: [ovs-discuss] Linus GIT Head OOPs reproducable in open vswitch when running mininet topology

2014-02-03 Thread Jesse Gross
On Fri, Jan 31, 2014 at 10:18 AM, Thomas Glanzmann wrote: >> Do you know if this happens with an older kernel or with a simpler topology? > > No, I don't. I just verified that the Ubuntu Mininet uses the > openvswitch kernel module from openvswitch and not the one that is > shipped with the

Re: [RFC 00/16] drm/nouveau: initial support for GK20A (Tegra K1)

2014-02-03 Thread Alexandre Courbot
On 02/03/2014 08:25 PM, David Herrmann wrote: Hi [..snip..] Finally, support for probing GK20A is added in the last 2 patches. It should be noted that contrary to what Nouveau currently expects, GK20A does not embed any display hardware (that part being handled by tegradrm). So this driver

Re: [PATCH v2] mm/zswap: add writethrough option

2014-02-03 Thread Minchan Kim
Hello Andrew, On Mon, Feb 03, 2014 at 03:08:35PM -0800, Andrew Morton wrote: > On Mon, 27 Jan 2014 09:01:19 -0500 Dan Streetman wrote: > > > Currently, zswap is writeback cache; stored pages are not sent > > to swap disk, and when zswap wants to evict old pages it must > > first write them back

Re: [PATCH v3 5/6] fat: permit to return phy block number by fibmap in fallocated region

2014-02-03 Thread OGAWA Hirofumi
Namjae Jeon writes: >>> /* fat_get_cluster() assumes the requested blocknr isn't truncated. */ >>> down_read(_I(mapping->host)->truncate_lock); >>> + /* To get block number beyond file size in fallocated region */ >>> + atomic_set(_I(mapping->host)->beyond_isize, 1); >>> blocknr

Re: [patch] mm, compaction: avoid isolating pinned pages

2014-02-03 Thread Hugh Dickins
On Mon, 3 Feb 2014, David Rientjes wrote: > On Mon, 3 Feb 2014, Mel Gorman wrote: > > > > Page migration will fail for memory that is pinned in memory with, for > > > example, get_user_pages(). In this case, it is unnecessary to take > > > zone->lru_lock or isolating the page and passing it to

Re: [PATCH v3 1/8] clk: sunxi: Add Allwinner A20/A31 GMAC clock unit

2014-02-03 Thread Chen-Yu Tsai
Hi, On Tue, Feb 4, 2014 at 3:31 AM, Maxime Ripard wrote: > Hi, > > On Mon, Feb 03, 2014 at 11:32:19AM +0800, Chen-Yu Tsai wrote: >> The Allwinner A20/A31 clock module controls the transmit clock source >> and interface type of the GMAC ethernet controller. Model this as >> a single clock for

Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

2014-02-03 Thread Andrew Morton
On Mon, 03 Feb 2014 17:28:16 -0800 Sebastian Capella wrote: > Quoting David Rientjes (2014-02-03 17:05:04) > > The last we heard, I think Sebastian is looking to redo this series and > > this patch is no longer needed. Sebastian? > Hi David, Alexey, > > I am in the process of reworking the

Re: [PATCH] kernel/kprobes.c: move cleanup_rp_inst() to where CONFIG_KRETPROBES enabled

2014-02-03 Thread Chen Gang
On 02/03/2014 11:42 PM, Masami Hiramatsu wrote: > (2014/02/03 20:48), Chen Gang wrote: >> On 02/02/2014 10:40 AM, Masami Hiramatsu wrote: >>> (2014/02/01 21:17), Chen Gang wrote: When CONFIG_KRETPROBES disabled, cleanup_rp_inst() is useless too. It is only called by

Re: [patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread Joonsoo Kim
On Mon, Feb 03, 2014 at 06:00:56PM -0800, David Rientjes wrote: > On Tue, 4 Feb 2014, Joonsoo Kim wrote: > > > Okay. It can't fix your situation. Anyway, *normal* anon pages may be mapped > > and have positive page_count(), so your code such as > > '!page_mapping(page) && page_count(page)' makes

Re: [PATCH v5 16/16] ARM: Remove uprobes dependency on kprobes

2014-02-03 Thread David Long
On 02/03/14 10:45, Jon Medhurst (Tixy) wrote: On Thu, 2014-01-23 at 15:05 -0500, David Long wrote: From: "David A. Long" Now that arm uprobes support has been made separate from the arm kprobes code the Kconfig can be changed to reflect that. Signed-off-by: David A. Long ---

[PATCH] security: select correct default LSM_MMAP_MIN_ADDR on arm on arm64

2014-02-03 Thread Colin Cross
Binaries compiled for arm may run on arm64 if CONFIG_COMPAT is selected. Set LSM_MMAP_MIN_ADDR to 32768 if ARM64 && COMPAT to prevent selinux failures launching 32-bit static executables that are mapped at 0x8000. Signed-off-by: Colin Cross --- security/Kconfig | 2 +- 1 file changed, 1

Re: [PATCH v5 07/16] ARM: Remove use of struct kprobe from generic probes code

2014-02-03 Thread David Long
On 02/03/14 09:57, Jon Medhurst (Tixy) wrote: On Thu, 2014-01-23 at 15:05 -0500, David Long wrote: From: "David A. Long" Change the generic ARM probes code to pass in the opcode and architecture-specific structure separately instead of using struct kprobe, so we do not pollute code being

Re: [PATCH v5 05/16] ARM: use a function table for determining instruction interpreter action

2014-02-03 Thread David Long
On 02/03/14 09:24, Jon Medhurst (Tixy) wrote: On Thu, 2014-01-23 at 15:05 -0500, David Long wrote: From: "David A. Long" Make the instruction interpreter call back to semantic action functions through a function pointer array provided by the invoker. The interpreter decodes the instructions

Re: [patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread David Rientjes
On Tue, 4 Feb 2014, Joonsoo Kim wrote: > Okay. It can't fix your situation. Anyway, *normal* anon pages may be mapped > and have positive page_count(), so your code such as > '!page_mapping(page) && page_count(page)' makes compaction skip these *normal* > anon pages and this is incorrect

Re: [PATCHSET 0/5] tracing/uprobes: Support multi buffer and event trigger

2014-02-03 Thread Steven Rostedt
On Mon, 03 Feb 2014 14:06:12 +0900 Namhyung Kim wrote: > Ping! Hi Namhyung, I plan on getting these ready for the 3.15 queue. There was a bit too much in 3.14 to add these on top of at the last minute. Currently, I'm working on some bugs at work as well as some things I found in mainline.

Re: [patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread Joonsoo Kim
On Mon, Feb 03, 2014 at 05:20:46PM -0800, David Rientjes wrote: > On Tue, 4 Feb 2014, Joonsoo Kim wrote: > > > I think that you need more code to skip this type of page correctly. > > Without page_mapped() check, this code makes migratable pages be skipped, > > since if page_mapped() case,

[PATCH] nilfs2: add description of NILFS_IOCTL_SET_SUINFO ioctl

2014-02-03 Thread Ryusuke Konishi
Add description of NILFS_IOCTL_SET_SUINFO ioctl in Documentation/filesystems/nilfs2.txt to make it up-to-date. Signed-off-by: Ryusuke Konishi Cc: Andreas Rohner --- Documentation/filesystems/nilfs2.txt |7 +++ 1 file changed, 7 insertions(+) diff --git

Re: [PATCH 4/4] nilfs2: implementation of NILFS_IOCTL_SET_SUINFO ioctl

2014-02-03 Thread Ryusuke Konishi
On Mon, 3 Feb 2014 13:41:01 -0800, Andrew Morton wrote: > On Tue, 4 Feb 2014 01:50:44 +0900 Ryusuke Konishi > wrote: > >> With this ioctl the segment usage entries in the SUFILE can be >> updated from userspace. >> >> This is useful, because it allows the userspace GC to modify and update >>

Tux3 Report: Our blocker list

2014-02-03 Thread Daniel Phillips
At Korea Linux Forum last fall, Linus asked, haven't I been hearing about Tux3 for ten years? I said, no, that was Tux2, completely different. You only heard about Tux3 for six years. Well, that is about long enough to keep hearing about an out of tree filesystem. Last time we talked about

Re: [RFC 0/4] memcg: Low-limit reclaim

2014-02-03 Thread Greg Thelen
On Mon, Feb 03 2014, Michal Hocko wrote: > On Thu 30-01-14 16:28:27, Greg Thelen wrote: >> On Thu, Jan 30 2014, Michal Hocko wrote: >> >> > On Wed 29-01-14 11:08:46, Greg Thelen wrote: >> > [...] >> >> The series looks useful. We (Google) have been using something similar. >> >> In practice

Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Sebastian Capella wrote: > I am in the process of reworking the patches. I'm not sure if Andrew > was just interested in having the kstrimdup utility function available. > I think the point Alexey is making is that whitespace is already stripped by the shell unless quoted;

Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

2014-02-03 Thread Sebastian Capella
Quoting David Rientjes (2014-02-03 17:05:04) > The last we heard, I think Sebastian is looking to redo this series and > this patch is no longer needed. Sebastian? Hi David, Alexey, I am in the process of reworking the patches. I'm not sure if Andrew was just interested in having the kstrimdup

[patch] mm, compaction: avoid isolating pinned pages fix

2014-02-03 Thread David Rientjes
On Tue, 4 Feb 2014, Joonsoo Kim wrote: > I think that you need more code to skip this type of page correctly. > Without page_mapped() check, this code makes migratable pages be skipped, > since if page_mapped() case, page_count() may be more than zero. > > So I think that you need following

Re: [PATCH v10 00/16] Volatile Ranges v10

2014-02-03 Thread Minchan Kim
On Fri, Jan 31, 2014 at 11:49:01AM -0500, Johannes Weiner wrote: > On Wed, Jan 29, 2014 at 02:11:02PM +0900, Minchan Kim wrote: > > It's interesting timing, I posted this patch Yew Year's Day > > and receives indepth design review Lunar New Year's Day. :) > > It's almost 0-day review. :) > >

Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Alexey Dobriyan wrote: > > kstrimdup() creates a whitespace-trimmed duplicate of the passed in > > null-terminated string. This is useful for strings coming from sysfs that > > often include trailing whitespace due to user input. > > I think kernel should be strict in what

[patch 09/10] lib: radix_tree: tree node interface

2014-02-03 Thread Johannes Weiner
Make struct radix_tree_node part of the public interface and provide API functions to create, look up, and delete whole nodes. Refactor the existing insert, look up, delete functions on top of these new node primitives. This will allow the VM to track and garbage collect page cache radix tree

[patch 00/10] mm: thrash detection-based file cache sizing v9

2014-02-03 Thread Johannes Weiner
Changes in this revision o Fix vmstat build problems on UP (Fengguang Wu's build bot) o Clarify why optimistic radix_tree_node->private_list link checking is safe without holding the list_lru lock (Dave Chinner) o Assert locking balance when the list_lru isolator says it dropped the

[patch 04/10] mm: shmem: save one radix tree lookup when truncating swapped pages

2014-02-03 Thread Johannes Weiner
Page cache radix tree slots are usually stabilized by the page lock, but shmem's swap cookies have no such thing. Because the overall truncation loop is lockless, the swap entry is currently confirmed by a tree lookup and then deleted by another tree lookup under the same tree lock region. Use

[patch 02/10] fs: cachefiles: use add_to_page_cache_lru()

2014-02-03 Thread Johannes Weiner
This code used to have its own lru cache pagevec up until a0b8cab3 ("mm: remove lru parameter from __pagevec_lru_add and remove parts of pagevec API"). Now it's just add_to_page_cache() followed by lru_cache_add(), might as well use add_to_page_cache_lru() directly. Signed-off-by: Johannes

[patch 07/10] mm + fs: store shadow entries in page cache

2014-02-03 Thread Johannes Weiner
Reclaim will be leaving shadow entries in the page cache radix tree upon evicting the real page. As those pages are found from the LRU, an iput() can lead to the inode being freed concurrently. At this point, reclaim must no longer install shadow pages because the inode freeing code needs to

[patch 10/10] mm: keep page cache radix tree nodes in check

2014-02-03 Thread Johannes Weiner
Previously, page cache radix tree nodes were freed after reclaim emptied out their page pointers. But now reclaim stores shadow entries in their place, which are only reclaimed when the inodes themselves are reclaimed. This is problematic for bigger files that are still in use after they have a

[patch 01/10] mm: vmstat: fix UP zone state accounting

2014-02-03 Thread Johannes Weiner
Fengguang Wu's build testing spotted problems with inc_zone_state() and dec_zone_state() on UP configurations in out-of-tree patches. inc_zone_state() is declared but not defined, dec_zone_state() is missing entirely. Just like with *_zone_page_state(), they can be defined like their

[patch 08/10] mm: thrash detection-based file cache sizing

2014-02-03 Thread Johannes Weiner
The VM maintains cached filesystem pages on two types of lists. One list holds the pages recently faulted into the cache, the other list holds pages that have been referenced repeatedly on that first list. The idea is to prefer reclaiming young pages over those that have shown to benefit from

[patch 05/10] mm: filemap: move radix tree hole searching here

2014-02-03 Thread Johannes Weiner
The radix tree hole searching code is only used for page cache, for example the readahead code trying to get a a picture of the area surrounding a fault. It sufficed to rely on the radix tree definition of holes, which is "empty tree slot". But this is about to change, though, as shadow page

[patch 06/10] mm + fs: prepare for non-page entries in page cache radix trees

2014-02-03 Thread Johannes Weiner
shmem mappings already contain exceptional entries where swap slot information is remembered. To be able to store eviction information for regular page cache, prepare every site dealing with the radix trees directly to handle entries other than pages. The common lookup functions will filter out

[patch 03/10] lib: radix-tree: radix_tree_delete_item()

2014-02-03 Thread Johannes Weiner
Provide a function that does not just delete an entry at a given index, but also allows passing in an expected item. Delete only if that item is still located at the specified index. This is handy when lockless tree traversals want to delete entries as well because they don't have to do an

Re: [PATCH 2/2] numa, mem-hotplug: Fix array index overflow when synchronizing nid to memblock.reserved.

2014-02-03 Thread Josh Boyer
On Tue, Jan 28, 2014 at 10:24 AM, Dave Jones wrote: > On Tue, Jan 28, 2014 at 05:05:16PM +0800, Tang Chen wrote: > > The following path will cause array out of bound. > > > > memblock_add_region() will always set nid in memblock.reserved to > MAX_NUMNODES. > > In numa_register_memblks(),

linux-next: manual merge of the parisc-hd tree with Linus' tree

2014-02-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the parisc-hd tree got a conflict in arch/parisc/include/asm/elf.h between commit 9dabf60dc4ab ("parisc: add flexible mmap memory layout support") from Linus' tree and commit 13de8ec38997 ("parisc: add flexible mmap memory layout support") from the parisc-hd

Re: [PATCH v3 3/5] spi: sunxi: Add Allwinner A31 SPI controller driver

2014-02-03 Thread Mark Brown
On Fri, Jan 31, 2014 at 11:47:04PM +0100, Maxime Ripard wrote: > On Fri, Jan 31, 2014 at 12:48:09PM +, Mark Brown wrote: > > On Fri, Jan 31, 2014 at 11:55:50AM +0100, Maxime Ripard wrote: > > > + pm_runtime_enable(>dev); > > > + if (!pm_runtime_enabled(>dev)) { > > > + ret =

Re: [PATCH 3/8] mm, hugetlb: fix race in region tracking

2014-02-03 Thread Andrew Morton
On Tue, 28 Jan 2014 17:19:38 -0800 Davidlohr Bueso wrote: > On Tue, 2014-01-28 at 19:36 -0500, Naoya Horiguchi wrote: > > On Mon, Jan 27, 2014 at 06:34:17PM -0800, Davidlohr Bueso wrote: > [...] > > > > If this retry is really essential for the fix, please comment the reason > > > > both in

[PATCH v2 3/3] watchdog: Add tegra watchdog

2014-02-03 Thread Andrew Chew
Add a driver for the hardware watchdogs in NVIDIA Tegra SoCs (tegra30 and later). This driver will configure one watchdog timer that will reset the system in the case of a watchdog timeout. This driver binds to the nvidia,tegra30-timer device node and gets its register base from there.

[PATCH v2 2/3] clocksource: tegra: Define timer bases in header file

2014-02-03 Thread Andrew Chew
Added timers that are present in tegra30 and later, that are NOT in tegra20. Also, some of these timer bases are needed in the tegra watchdog driver, so separate them out into a header file that both the clocksource driver and the watchdog driver can share them. Signed-off-by: Andrew Chew ---

[PATCH v2 1/3] clocksource: tegra: Add nvidia,tegra30-timer compat

2014-02-03 Thread Andrew Chew
There are some differences between tegra20's timer registers and tegra30's (and later). For example, tegra30 has more timers. In addition, watchdogs are not present in tegra20. Add this compatibility string in order to be able to distinguish whether the additional timers and watchdogs are there

[PATCH v2 0/3] tegra30 watchdog support

2014-02-03 Thread Andrew Chew
This patch series ultimately adds watchdog support for tegra30 and later chips. The existing tegra clocksource driver (drivers/clocksource/tegra20_timer.c) sadly does not distinguish between tegra20 and tegra30 (and later), which it should have done since the contents of the timer register base

Re: Need help in bug in isolate_migratepages_range

2014-02-03 Thread David Rientjes
On Mon, 3 Feb 2014, Vlastimil Babka wrote: > It seems to come from balloon_page_movable() and its test page_count(page) == > 1. > Hmm, I think it might be because compound_head() == NULL here. Holger, this looks like a race condition when allocating a compound page, did you only see it once

Re: [patch] mm, compaction: avoid isolating pinned pages

2014-02-03 Thread Joonsoo Kim
On Mon, Feb 03, 2014 at 02:49:32AM -0800, David Rientjes wrote: > On Mon, 3 Feb 2014, Mel Gorman wrote: > > > > Page migration will fail for memory that is pinned in memory with, for > > > example, get_user_pages(). In this case, it is unnecessary to take > > > zone->lru_lock or isolating the

Re: [PATCH 0/4] w1: refcnt fix, skip non-error send, docs

2014-02-03 Thread z...@ioremap.net
Hi 03.02.2014, 05:15, "David Fries" : >  I could submit these patches as in, which would require the previous >  set, or I could merge the documentation into the previous set and >  resubmit them all since they haven't made it into the kernel tree yet. >  Opinions? > >  Here's a small refcnt

[PATCH 1/2] ALSA: hda - hdmi: introduce patch_nvhdmi()

2014-02-03 Thread Stephen Warren
From: Anssi Hannula (This is a backport of *part* of upstream 611885bc963a "ALSA: hda - hdmi: Disallow unsupported 2ch remapping on NVIDIA codecs" to stable 3.10 through 3.12. Later stable already contain all of the original patch.) Mainline commit 611885bc963a "ALSA: hda - hdmi: Disallow

  1   2   3   4   5   6   7   8   9   10   >