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

2015-11-25 Thread Frederic Weisbecker
On Tue, Nov 24, 2015 at 11:19:15AM -0500, Chris Metcalf wrote: > On 11/13/2015 09:22 AM, Frederic Weisbecker wrote: > >The tick dependency is evaluated on every IRQ. This is a batch of checks > >which determine whether it is safe to stop the tick or not. These checks > >are often split in many

[PATCH v3 0/5] arcmsr: support areca new adapter ARC1203

2015-11-25 Thread Ching Huang
From: Ching Huang Patch 1 fixes getting wrong configuration data. Patch 2 fixes not release allocated resource if get configuration data failed. Patch 3 modifies codes for more readable. Pacth 4 adds codes to support new adapter ARC1203. Patch 5 changes driver version number. -- -- To

Re: [PATCH 3.2 41/52] KVM: svm: unconditionally intercept #DB

2015-11-25 Thread Paolo Bonzini
On 24/11/2015 23:33, Ben Hutchings wrote: > 3.2.74-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Paolo Bonzini > > commit cbdb967af3d54993f5814f1cee0ed311a055377d upstream. > > This is needed to avoid the possibility that the guest

[PATCH] drivers/tty/serial: make tegra_serial_handle_break() static

2015-11-25 Thread Alexander Kuleshov
There are no callers of the tegra_serial_handle_break() function outside of drivers/tty/serial/of_serial.c. So let's make it static. --- drivers/tty/serial/of_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/of_serial.c

Re: [PATCH v2] mm: fix swapped Movable and Reclaimable in /proc/pagetypeinfo

2015-11-25 Thread Mel Gorman
On Mon, Nov 23, 2015 at 05:53:10PM +0100, Vlastimil Babka wrote: > Commit 016c13daa5c9 ("mm, page_alloc: use masks and shifts when converting GFP > flags to migrate types") has swapped MIGRATE_MOVABLE and MIGRATE_RECLAIMABLE > in the enum definition. However, migratetype_names wasn't updated to

[PATCH 1/2] iio: ina2xx: add support for TI INA2xx Power Monitors

2015-11-25 Thread Marc Titinger
in SOFTWARE buffer mode, a kthread will capture the active scan_elements into a kfifo, then compute the remaining time until the next capture tick and do an active wait (udelay). This will produce a stream of up to fours channels plus a 64bits timestamps (ns). Tested with ina226, on

[PATCH 0/2] IIO version of INA2xx (followup of related RFC)

2015-11-25 Thread Marc Titinger
following RFC started in https://lkml.org/lkml/2015/11/10/370 and feed back from https://lkml.org/lkml/2015/11/18/395 * squash to a single patch that provides DIRECT and SOFTWARE buffer mode. * implement INFO_INT_TIME abi for each adc in order to better match how the chip works. This also

[PATCH 2/2] iio: ina2xx: provide a sysfs parameter to allow async readout of the ADCs

2015-11-25 Thread Marc Titinger
This can lead to repeated or skipped samples depending on the clock beat between the capture thread and the chip sampling clock, but will also spare reading/waiting for the Capture Ready Flag and improve the available i2c bandwidth for reading measurements. Output of iio_info: ...snip... 4

Re: [PATCH] mm: vmscan: Obey indeed proportional scanning for kswapd and memcg

2015-11-25 Thread Mel Gorman
On Wed, Nov 25, 2015 at 12:48:20PM +0800, Yaowei Bai wrote: > Commit e82e0561dae9f3ae5 ("mm: vmscan: obey proportional scanning > requirements for kswapd") intended to preserve the proportional scanning > and reclaim what was requested by get_scan_count() for kswapd and memcg > by stopping

Re: [PATCH] tty/n_gsm.c: fix false positive WARN_ON and do some codes improvement

2015-11-25 Thread xinhui
Hi, Jiri I made this patch based on your idea. Any modification is welcome. :) PS. "xinhui" or "xinhui.pan"@linux.vnet.ibm.com are same mail account, both of them are alias. thanks xinhui On 2015/11/25 19:18, xinhui wrote: From: xinhui If gsm driver fails to activate one mux, and

Re: [PATCH] sched/fair: update scale invariance of pelt

2015-11-25 Thread Vincent Guittot
On 25 November 2015 at 10:24, Peter Zijlstra wrote: > On Tue, Nov 24, 2015 at 02:49:30PM +0100, Vincent Guittot wrote: >> Instead of scaling the complete value of PELT algo, we should only scale >> the running time by the current capacity of the CPU. It seems more correct >> to only scale the

Re: [PATCH] lightnvm: missing nvm_lock acquire

2015-11-25 Thread Matias Bjørling
On 11/25/2015 09:57 AM, Wenwei Tao wrote: Hi Matias I think list_for_each_entry_safe(pos, n, head, member) cannot avoid race condition the item point by ‘n’ can be deleted and freed in the same time we operate on 'pos' so lock is still necessary. You're right. Brainfart... I'll apply it with

Re: [RFC PATCH 00/10] Support for Cortex-M Prototyping System

2015-11-25 Thread Arnd Bergmann
On Wednesday 25 November 2015 10:33:31 Vladimir Murzin wrote: > Hi, > > This patch series provide the basic support for running ucLinux on V2M-MPS2 > platform. > > With these patches applied ucLinux can be run on both HW and FVP models > with Cortex-M3/M4/M7 configurations. > > Board

Re: [PATCH v2 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Takashi Iwai
On Wed, 25 Nov 2015 12:07:01 +0100, Richard Fitzgerald wrote: > > On Wed, 2015-11-25 at 11:49 +0100, Takashi Iwai wrote: > > On Wed, 25 Nov 2015 11:46:16 +0100, > > Richard Fitzgerald wrote: > > > > > > Make snd_compress_new take an id string (like snd_pcm_new). > > > This string can be included

Re: [PATCH 4/8] platform: goldfish: pipe: add devicetree bindings

2015-11-25 Thread Christoffer Dall
On Tue, Nov 24, 2015 at 05:10:08PM -0800, Jin Qian wrote: > From: Greg Hackmann > > Signed-off-by: Greg Hackmann > (cherry picked from commit 3c56d07eb796066530e93a40e74dea3bc59bf4cf) > Signed-off-by: Jin Qian > --- > drivers/platform/goldfish/goldfish_pipe.c | 10 +- > 1 file

[PATCH] tty/n_gsm.c: fix false positive WARN_ON and do some codes improvement

2015-11-25 Thread xinhui
From: xinhui If gsm driver fails to activate one mux, and this mux is not stored in gsm_mux[], there would be a warning in gsm_cleanup_mux(). Actually this is a legal case. So just do a simple check instead of WARN_ON. There is one filed gsm->num to store its index of gsm_mux[]. So use gsm->num

Re: [PATCH v2 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Mark Brown
On Wed, Nov 25, 2015 at 11:07:01AM +, Richard Fitzgerald wrote: > On Wed, 2015-11-25 at 11:49 +0100, Takashi Iwai wrote: > > > + if (IS_ENABLED(CONFIG_SND_VERBOSE_PROCFS)) > > This should be #if. Otherwise the compile would fail (as already > Builds ok for me, this will become if(false) if

Re: [PATCH 1/2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-25 Thread Michal Hocko
On Wed 25-11-15 02:51:38, David Rientjes wrote: > On Wed, 25 Nov 2015, Michal Hocko wrote: > > > From: Michal Hocko > > > > __GFP_NOFAIL is a big hammer used to ensure that the allocation > > request can never fail. This is a strong requirement and as such > > it also deserves a special

Re: [RFC PATCH v2] iommu/amd: gray the 'irq_remap_table' object for kmemleak

2015-11-25 Thread Michael Wang
Hi, Joery On 11/20/2015 12:33 PM, Michael Wang wrote: > The kmemleak testing on 3.18.24 show: > > unreferenced object 0x880233ff9010 (size 16): > comm "swapper/0", pid 1, jiffies 4294937440 (age 2010.490s) > hex dump (first 16 bytes): > 0a 0a 00 00 20 00 00 00 00 44 fb 33 02 88 ff ff

Re: [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory

2015-11-25 Thread PaX Team
On 25 Nov 2015 at 11:06, Clemens Ladisch wrote: > Mathias Krause wrote: > > [...] > > So, prior extending the usage of the __read_only annotation some > > toolchain support is needed. Maybe a gcc plugin that'll warn/error on > > code that writes to such a variable but is not __init itself. > >

[PATCH 38/38] drbd: fix error path during resize

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg In case the lower level device size changed, but some other internal details of the resize did not work out, drbd_determine_dev_size() would try to restore the previous settings, trusting drbd_md_set_sector_offsets() to "do the right thing", but overlooked that this

[PATCH 05/38] drbd: Move enum write_ordering_e to drbd.h

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher Also change the enum values to all-capital letters. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h | 6 -- drivers/block/drbd/drbd_main.c | 2 +- drivers/block/drbd/drbd_nl.c | 4 ++--

[PATCH 23/38] drbd: prevent NULL pointer deref when resuming diskless primary

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg In a multiple error scenario, we may end up with a "frozen" Primary, that has no access to any data (no local disk, no replication link). If we then resume-io, we try to generate a new data generation id, which will fail if there is no longer a local disk. Double check for

[PATCH 31/38] lru_cache: Converted lc_seq_printf_status to return void

2015-11-25 Thread Philipp Reisner
From: Roland Kammerer Fix the semantic of lc_seq_printf. Currently, it always returns 0 and the return value is unused, therefore, convert the return type to void. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- include/linux/lru_cache.h | 2 +- lib/lru_cache.c | 4

[PATCH 28/38] drbd: fix spurious alert level printk

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg When accessing out meta data area on disk, we double check the plausibility of the requested sector offsets, and are very noisy about it if they look suspicious. During initial read of our "superblock", for "external" meta data, this triggered because the range estimate

[PATCH 14/38] drbd: drbdsetup detach of an unresponsive local disk should not block IO "forever"

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg When detaching, we make sure no application IO is in-flight by internally suspending IO, then trigger the state change, wait for the result, and finally internally resume IO again. Once we triggered the stat change to "Failed", we expect it to change from Failed to

[PATCH 22/38] drbd: Create a dedicated workqueue for sending acks on the control connection

2015-11-25 Thread Philipp Reisner
The intention is to reduce CPU utilization. Recent measurements unveiled that the current performance bottleneck is CPU utilization on the receiving node. The asender thread became CPU limited. One of the main points is to eliminate the idr_for_each_entry() loop from the sending acks code path.

[PATCH 03/38] drbd: De-inline drbd_should_do_remote() and drbd_should_send_out_of_sync()

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher There is no need to have these two as inline functions. In addition, drbd_should_send_out_of_sync() is only used in a single place, anyway. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_req.c | 18 ++

Re: [linux-sunxi] Re: [PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor

2015-11-25 Thread Josef Gajdusek
November 24 2015 9:43 AM, "Maxime Ripard" wrote: > On Mon, Nov 23, 2015 at 09:02:50AM +0100, Josef Gajdusek wrote: > >> This patch adds support for the Sunxi thermal sensor on the Allwinner H3. > > You can drop the sunxi here. > >> Should be easily extendable for the A33/A83T/... as they

[PATCH 24/38] drbd: debugfs: expose ed_data_gen_id

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg The effective data generation ID may be interesting for debugging purposes of scenarios involving diskless states. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_debugfs.c | 10 ++ drivers/block/drbd/drbd_int.h | 1 +

Re: [PATCH v2 2/2] MAINTAINERS: Add devfreq-event entry

2015-11-25 Thread Chanwoo Choi
Dear Myungjoo, On 2015년 11월 06일 09:27, MyungJoo Ham wrote: >> On Thursday, November 05, 2015 11:37:59 PM MyungJoo Ham wrote: On Thursday, November 05, 2015 06:53:13 AM MyungJoo Ham wrote: >> >> This patch adds the devfreq-event[1] entry to review the patches >> as just

[PATCH 13/38] drbd: drop remnants of connector -- we don't use it anymore in drbd 8.4

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- include/linux/drbd.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/drbd.h b/include/linux/drbd.h index 2c44d7e..392fc0e 100644 --- a/include/linux/drbd.h +++ b/include/linux/drbd.h @@

[PATCH 16/38] drbd: add comment why we want to first call local-io-error, then send state

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Even though we really want to get the state information about our bad disk to the peer as soon as possible, it is useful to first call the local-io-error handler. People may chose to hard-reset the box from there. If that looks and behaves exactly like a "regular node

[PATCH 07/38] drbd: Fix locking across all resources

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher Instead of using a rwlock for synchronizing state changes across resources, take the request locks of all resources for global state changes. Use resources_mutex to serialize global state changes. This means that taking the request lock of a resource is now enough to

[PATCH 29/38] drbd: fix queue limit setup for discard

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg We cannot possibly support SECDISCARD, even if all backend devices would support it: if our peer is currently unreachable, some instance of the data may obviously still be recoverable. We did not set discard_granularity at all. We don't really care (yet), we only pass them

[PATCH 37/38] drbd: avoid potential deadlock during handshake

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg During handshake communication, we also reconsider our device size, using drbd_determine_dev_size(). Just in case we need to change the offsets or layout of our on-disk metadata, we lock out application and other meta data IO, and wait for the activity log to be "idle" (no

[PATCH 27/38] drbd: use bitmap_weight() helper, don't open code

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Suggested by Akinobu Mita Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_bitmap.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/block/drbd/drbd_bitmap.c

[PATCH 00/38] DRBD update

2015-11-25 Thread Philipp Reisner
Hi Jens, please pull these patches into your for-4.5/drivers branch. This huge patch set updates the in-tree DRBD to what we have out of tree. All of this has been extensively tested and in production use by LINBIT's customers. Andreas' patches backport some DRBD-9 interface functionality,

[PATCH 21/38] drbd: Rename asender to ack_receiver

2015-11-25 Thread Philipp Reisner
This prepares the next patch where the sending on the meta (or control) socket is moved to a dedicated workqueue. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h | 6 +++--- drivers/block/drbd/drbd_main.c | 10 +-

[PATCH 19/38] drbd: fix NULL deref in remember_new_state

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg The recent (not yet released) backport of the extended state broadcasts to support the "events2" subcommand of drbdsetup had some glitches. remember_old_state() would first count all connections with a net_conf != NULL, then allocate a suitable array, then populate that

Re: [PATCH v2 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Richard Fitzgerald
On Wed, 2015-11-25 at 11:49 +0100, Takashi Iwai wrote: > On Wed, 25 Nov 2015 11:46:16 +0100, > Richard Fitzgerald wrote: > > > > Make snd_compress_new take an id string (like snd_pcm_new). > > This string can be included in the procfs info. > > > > This patch also updates soc_new_compress() to

[PATCH 09/38] drbd: Backport the "status" command

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher The status command originates the drbd9 code base. While for now we keep the status information in /proc/drbd available, this commit allows the user base to gracefully migrate their monitoring infrastructure to the new status reporting interface. In drbd9 no status

[PATCH 01/38] MAINTAINERS: Updated information for DRBD DRIVER

2015-11-25 Thread Philipp Reisner
From: Roland Kammerer - Changed obsoleted 'P' to 'M' entries. - Removed the user related mailing list. - Changed git repos to current versions Signed-off-by: Roland Kammerer --- MAINTAINERS | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS

Re: [PATCH] mm, vmstat: Allow WQ concurrency to discover memory reclaim doesn't make any progress

2015-11-25 Thread Michal Hocko
On Tue 24-11-15 15:44:48, Andrew Morton wrote: [...] > > Even though we haven't seen bug reports in the past I would suggest > > backporting this to the stable trees. The issue is present since we have > > stopped useing congestion_wait in the retry loop because WQ concurrency > > is older as well

[PATCH 18/38] drbd: improve network timeout detection

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Don't blame the peer for being unresponsive, if we did not even ask the question yet. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h| 2 + drivers/block/drbd/drbd_req.c| 123 ++-

Re: [kernel-hardening] [PATCH 0/2] introduce post-init read-only memory

2015-11-25 Thread PaX Team
On 25 Nov 2015 at 10:13, Mathias Krause wrote: > I myself had some educating experience seeing my machine triple fault > when resuming from a S3 sleep. The root cause was a variable that was > annotated __read_only but that was (unnecessarily) modified during CPU > bring-up phase. Debugging that

[PATCH 06/38] drbd: drbd_adm_attach(): Add missing drbd_resync_after_changed()

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_nl.c | 28 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index

Re: [PATCH] block: kmemleak: Track the page allocations for struct request

2015-11-25 Thread William Dauchy
Hi Jens, On Mon, Sep 14, 2015 at 7:21 PM, Jens Axboe wrote: > On 09/14/2015 11:16 AM, Catalin Marinas wrote: >> >> The pages allocated for struct request contain pointers to other slab >> allocations (via ops->init_request). Since kmemleak does not track/scan >> page allocations, the slab

[PATCH 20/38] drbd: fix refcount error during detach of an already failed disk

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg A D_FAILED disk transitions as quickly as possible to D_DISKLESS. But in the "unresponsive local disk" case, there remains a time window where a administrative detach command could find the disk already failed, but some internal meta data IO against the unresponsive local

[PATCH 12/38] drbd: Fix spurious disk-timeout

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg (You should not use disk-timeout anyways, see the man page for why...) We add incoming requests to the tail of some ring list. On local completion, requests are removed from that list. The timer looks only at the head of that ring list, so is supposed to only see the

[PATCH 35/38] drbd: make suspend_io() / resume_io() must be thread and recursion safe

2015-11-25 Thread Philipp Reisner
Avoid to prematurely resume application IO: don't set/clear a single bit, but inc/dec an atomic counter. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_int.h | 4 ++-- drivers/block/drbd/drbd_nl.c| 8 +--- drivers/block/drbd/drbd_state.c | 2

[PATCH 08/38] drbd: Backport the "events2" command

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher The events2 command originates from drbd-9 development. It features more information but requires a incompatible change in output format. Therefore the previous events command continues to exist, the new improved events2 command becomes available now. This prepares the

[PATCH 32/38] drbd: don't block forever in disconnect during resync if fencing=r-a-stonith

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Disconnect should wait for pending bitmap IO. But if that bitmap IO is not happening, because it is waiting for pending application IO, and there is no progress, because the fencing policy suspended application IO because of the disconnect, then we deadlock. The bitmap

[PATCH 04/38] drbd: Get rid of some first_peer_device() calls

2015-11-25 Thread Philipp Reisner
From: Andreas Gruenbacher Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_receiver.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c index

[PATCH 26/38] drbd: avoid redefinition of BITS_PER_PAGE

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Apparently we now implicitly get definitions for BITS_PER_PAGE and BITS_PER_PAGE_MASK from the pid_namespace.h Instead of renaming our defines, I chose to define only if not yet defined, but to double check the value if already defined. Signed-off-by: Philipp Reisner

[PATCH 11/38] drbd: Replace 0 with the more meaningful GFP_NOWAIT

2015-11-25 Thread Philipp Reisner
GFP_NOWAIT has a value of 0. I.e. functionality not changed. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_nl.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/block/drbd/drbd_nl.c

[PATCH 34/38] drbd: fix "endless" transfer log walk in protocol A

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Don't remember a DRBD request as ack_pending, if it is not. In protocol A, we usually clear RQ_NET_PENDING at the same time we set RQ_NET_SENT, so when deciding to remember it as ack_pending, mod_rq_state needs to look at the current request state, not at the previous state

[PATCH 36/38] drbd: separate out __al_write_transaction helper function

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg To be able to "force out" an activity log transaction, even if there are no pending updates. This will be used to relocate the on-disk activity log, if the on-disk offsets have to be changed, without the need to empty the activity log first. While at it, move the

[PATCH 25/38] drbd: use resource name in workqueue

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg Since kernel 3.3, we can use snprintf-style arguments to create a workqueue. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_main.c | 4 ++-- drivers/block/drbd/drbd_receiver.c | 5 - 2 files changed, 6 insertions(+), 3

[PATCH 02/38] drbd: Remove pointless check

2015-11-25 Thread Philipp Reisner
In drbd-8.4 there is always a single connection per resource, and there is always exactly one peer_device for a device. peer_device can not be NULL here. Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_nl.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 10/38] drbd: Deletion of an unnecessary check before the function call "lc_destroy"

2015-11-25 Thread Philipp Reisner
From: Markus Elfring The lc_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Roland Kammerer Signed-off-by:

Re: [PATCH 1/2] mm, vmscan: consider isolated pages in zone_reclaimable_pages

2015-11-25 Thread David Rientjes
On Tue, 24 Nov 2015, Michal Hocko wrote: > From: Michal Hocko > > zone_reclaimable_pages counts how many pages are reclaimable in > the given zone. This currently includes all pages on file lrus and > anon lrus if there is an available swap storage. We do not consider > NR_ISOLATED_{ANON,FILE}

[PATCH 17/38] drbd: drbd_panic_after_delayed_completion_of_aborted_request()

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg The only way to make DRBD intentionally call panic is to set a disk timeout, have that trigger, "abort" some request and complete to upper layers, then have the backend IO subsystem later complete these requests successfully regardless. As the attached IO pages have been

[PATCH 33/38] drbd: fix memory leak in drbd_adm_resize

2015-11-25 Thread Philipp Reisner
From: Oleg Drokin new_disk_conf could be leaked if the follow on checks fail, so make sure to free it on error if it was not assigned yet. Found with smatch. Signed-off-by: Oleg Drokin Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- drivers/block/drbd/drbd_nl.c | 2 ++ 1

[PATCH 15/38] drbd: also bump UUIDs if a diskless primary connects

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg If for some reason the primary lost its disk *and* the replication link before it is able to communicate the disk loss, probably blocked IO, then later is able to re-establish the connection, the peer needs to bump its UUIDs just like it does when peer only loses the disk

[PATCH 30/38] drbd: make drbd known to lsblk: use bd_link_disk_holder

2015-11-25 Thread Philipp Reisner
From: Lars Ellenberg lsblk should be able to pick up stacking device driver relations involving DRBD conveniently. Even though upstream kernel since 2011 says "DON'T USE THIS UNLESS YOU'RE ALREADY USING IT." a new user has been added since (bcache), which sets the precedences for us to

Re: [PATCH 2/2] mm: warn about ALLOC_NO_WATERMARKS request failures

2015-11-25 Thread David Rientjes
On Wed, 25 Nov 2015, Michal Hocko wrote: > From: Michal Hocko > > ALLOC_NO_WATERMARKS requests can dive into memory reserves without any > restriction. They are used only in the case of emergency to allow > forward memory reclaim progress assuming the caller should return the > memory in a

Re: [PATCH v8 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-25 Thread Yingjoe Chen
On Wed, 2015-11-25 at 11:50 +0100, Matthias Brugger wrote: > > On 18/11/15 04:30, Bayi Cheng wrote: > > Add Mediatek nor flash node > > > > Signed-off-by: Bayi Cheng > > Acked-by: Brian Norris > > --- > > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 +- > > 1 file changed,

Re: [PATCH 1/2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-25 Thread David Rientjes
On Wed, 25 Nov 2015, Michal Hocko wrote: > From: Michal Hocko > > __GFP_NOFAIL is a big hammer used to ensure that the allocation > request can never fail. This is a strong requirement and as such > it also deserves a special treatment when the system is OOM. The > primary problem here is that

Re: [PATCH v8 2/2] arm64: dts: mt8173: Add nor flash node

2015-11-25 Thread Matthias Brugger
On 18/11/15 04:30, Bayi Cheng wrote: Add Mediatek nor flash node Signed-off-by: Bayi Cheng Acked-by: Brian Norris --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) Applied to v4.5-next/dts Thanks. Matthias diff

Re: [PATCH v2 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Takashi Iwai
On Wed, 25 Nov 2015 11:46:16 +0100, Richard Fitzgerald wrote: > > Make snd_compress_new take an id string (like snd_pcm_new). > This string can be included in the procfs info. > > This patch also updates soc_new_compress() to create an ID > based on the stream and dai name, as done for PCM

[PATCH v2 1/2] ALSA: compress: Add procfs info file for compressed nodes

2015-11-25 Thread Richard Fitzgerald
This patch implements a procfs info file for compr nodes when SND_VERBOSE_PROCFS is enabled. This is equivalent to what the PCM core already does for pcm nodes. Signed-off-by: Richard Fitzgerald --- include/sound/compress_driver.h | 5 +++ sound/core/compress_offload.c | 75

[PATCH v2 2/2] ALSA: compress: Pass id string to snd_compress_new

2015-11-25 Thread Richard Fitzgerald
Make snd_compress_new take an id string (like snd_pcm_new). This string can be included in the procfs info. This patch also updates soc_new_compress() to create an ID based on the stream and dai name, as done for PCM streams. Signed-off-by: Richard Fitzgerald ---

Re: [PATCH v2] mm/cma: always check which page cause allocation failure

2015-11-25 Thread Vlastimil Babka
On 11/25/2015 06:32 AM, Joonsoo Kim wrote: > Now, we have tracepoint in test_pages_isolated() to notify > pfn which cannot be isolated. But, in alloc_contig_range(), > some error path doesn't call test_pages_isolated() so it's still > hard to know exact pfn that causes allocation failure. > >

[PATCH v2 0/2] ALSA: compress: Add procfs info file for compressed nodes

2015-11-25 Thread Richard Fitzgerald
This updates the compress core code to create an 'info' file under procfs for each compressed node, like the PCM core does for PCM nodes. Based off Takashi's for-next Richard Fitzgerald (2): ALSA: compress: Add procfs info file for compressed nodes ALSA: compress: Pass id string to

Re: [PATCH (v6) 2/2] mtd: brcmnand: Add support for the BCM63268

2015-11-25 Thread Jonas Gorski
Hi, On Tue, Nov 24, 2015 at 9:21 PM, Simon Arlott wrote: > The BCM63268 has a NAND interrupt register with combined status and enable > registers. It also has a clock for the NAND controller that needs to be > enabled. > > Set up the device by enabling the clock, disabling and acking all >

Re: [PATCH v2] mm/compaction: __compact_pgdat() code cleanuup

2015-11-25 Thread David Rientjes
On Wed, 25 Nov 2015, Joonsoo Kim wrote: > This patch uses is_via_compact_memory() to distinguish direct compaction. When I think of "direct compaction", I think of compaction triggered for high-order allocations from the page allocator before direct reclaim. This is the opposite of being

Re: [PATCH v3 00/27] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2015-11-25 Thread Roger Quadros
Brian, On 27/10/15 11:37, Roger Quadros wrote: > Hi Brian, > > On 26/10/15 23:23, Brian Norris wrote: >> Hi Roger, >> >> I'm not too familiar with OMAP platforms, and I might have missed out on >> prior discussions/context, so please forgive if I'm asking silly or old >> questions here. > > No

[PATCH 2/2] mm: warn about ALLOC_NO_WATERMARKS request failures

2015-11-25 Thread Michal Hocko
From: Michal Hocko ALLOC_NO_WATERMARKS requests can dive into memory reserves without any restriction. They are used only in the case of emergency to allow forward memory reclaim progress assuming the caller should return the memory in a short time (e.g. {__GFP,PF}_MEMALLOC requests or OOM

[PATCH 1/2] mm, oom: Give __GFP_NOFAIL allocations access to memory reserves

2015-11-25 Thread Michal Hocko
From: Michal Hocko __GFP_NOFAIL is a big hammer used to ensure that the allocation request can never fail. This is a strong requirement and as such it also deserves a special treatment when the system is OOM. The primary problem here is that the allocation request might have come with some locks

[PATCH 0/2] GFP_NOFAIL reserves + warning about reserves depletion

2015-11-25 Thread Michal Hocko
Hi, The first patch has been posted [1] last time and it seems there is no major opposition to it. The only concern was a warning which was used to note the ALLOC_NO_WATERMARKS request for the __GFP_NOFAIL failed. I still think that the warning is helpful so I've separated it to its own patch 2

[RFC PATCH 01/10] dt-bindings: document the MPS2 timer bindings

2015-11-25 Thread Vladimir Murzin
This adds documentation of device tree bindings for the timers found on ARM MPS2 platform. Signed-off-by: Vladimir Murzin --- .../devicetree/bindings/timer/arm,mps2-timer.txt | 28 1 file changed, 28 insertions(+) create mode 100644

[RFC PATCH 00/10] Support for Cortex-M Prototyping System

2015-11-25 Thread Vladimir Murzin
Hi, This patch series provide the basic support for running ucLinux on V2M-MPS2 platform. With these patches applied ucLinux can be run on both HW and FVP models with Cortex-M3/M4/M7 configurations. Board description:

[RFC PATCH 03/10] dt-bindings: document the MPS2 UART bindings

2015-11-25 Thread Vladimir Murzin
This adds documentation of device tree bindings for the UART found on ARM MPS2 platform Signed-off-by: Vladimir Murzin --- .../devicetree/bindings/serial/arm,mps2-uart.txt | 22 1 file changed, 22 insertions(+) create mode 100644

[RFC PATCH 06/10] ARM: mps2: introduce MPS2 platform

2015-11-25 Thread Vladimir Murzin
The Cortex-M Prototyping System (or V2M-MPS2) is designed for prototyping and evaluation Cortex-M family of processors including the latest Cortex-M7. It comes with a range of useful peripherals including 8MB single cycle SRAM, 16MB PSRAM, Ethernet, QSVGA touch screen panel, 4bit RGB VGA

[RFC PATCH 05/10] serial: mps2-uart: add support for early console

2015-11-25 Thread Vladimir Murzin
This adds support early console for MPS2 UART which can be enabled via earlycon=mps2,0x40004000 Signed-off-by: Vladimir Murzin --- drivers/tty/serial/Kconfig |1 + drivers/tty/serial/mps2-uart.c | 30 ++ 2 files changed, 31 insertions(+) diff --git

[RFC PATCH 08/10] ARM: configs: add MPS2 defconfig

2015-11-25 Thread Vladimir Murzin
This patch adds a new config for MPS2 platform. Signed-off-by: Vladimir Murzin --- arch/arm/configs/mps2_defconfig | 112 +++ 1 file changed, 112 insertions(+) create mode 100644 arch/arm/configs/mps2_defconfig diff --git a/arch/arm/configs/mps2_defconfig

[RFC PATCH 07/10] ARM: mps2: add low-level debug support

2015-11-25 Thread Vladimir Murzin
Add low-level debug support for MPS2, so that earlyprintk can be enabled for debugging early boot issues. Signed-off-by: Vladimir Murzin --- arch/arm/Kconfig.debug| 12 +++- arch/arm/include/debug/mps2.S | 27 +++ 2 files changed, 38 insertions(+), 1

[RFC PATCH 10/10] ARM: dts: introduce MPS2 AN399/AN400

2015-11-25 Thread Vladimir Murzin
Application Notes 399 and 400 shares the same memory map and features. Both are shipped with Cortex-M7 and have the same peripheral as AN385/AN386, but with different location of PSRAM and Ethernet controller. Signed-off-by: Vladimir Murzin --- arch/arm/boot/dts/Makefile |4 +-

[RFC PATCH 04/10] serial: mps2-uart: add MPS2 UART driver

2015-11-25 Thread Vladimir Murzin
This driver adds support to the UART controller found on ARM MPS2 platform. Signed-off-by: Vladimir Murzin --- drivers/tty/serial/Kconfig | 12 + drivers/tty/serial/Makefile |1 + drivers/tty/serial/mps2-uart.c | 596 ++

[RFC PATCH 09/10] ARM: dts: introduce MPS2 AN385/AN386

2015-11-25 Thread Vladimir Murzin
Application Notes 385 and 386 shares the same memory map and features except the CPU is used. AN385 is supplied with Cortex-M3 CPU and AN386 is supplied with Cortex-M4. Signed-off-by: Vladimir Murzin --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/mps2-an385.dts | 90

[RFC PATCH 02/10] clockevents/drivers: add MPS2 Timer driver

2015-11-25 Thread Vladimir Murzin
MPS2 platform has simple 32 bits general purpose countdown timers. The driver uses the first detected timer as a clocksource and the rest of the timers as a clockevent Signed-off-by: Vladimir Murzin --- drivers/clocksource/Kconfig |5 + drivers/clocksource/Makefile |1 +

Re: [PATCH 1/1] arm64: dts: add all hi6220 i2c nodes

2015-11-25 Thread Xinwei Kong
+to linux-...@vger.kernel.org On 2015/11/25 17:49, Xinwei Kong wrote: > This patch adds all I2C nodes for the Hi6220 SoC. This hi6220 Soc > use this I2C IP of Synopsys Designware for HiKey board. > > Signed-off-by: Xinwei Kong > Signed-off-by: Chen Feng > --- >

Re: [PATCH] TTY: n_gsm, fix false positive WARN_ON

2015-11-25 Thread xinhui
hi, Jiri On 2015/11/25 17:56, Jiri Slaby wrote: Hi, On 11/25/2015, 07:32 AM, xinhui wrote: This warning should blame on commit 5a640967 ("tty/n_gsm.c: fix a memory leak in gsmld_open()"). Oh, yes, I messed up the "Fixes" line then. It should write: Fixes: 5a640967 ("tty/n_gsm.c: fix a

Re: [PATCH 2/2] irqchip: add support for Sigma Designs SMP86xx interrupt controller

2015-11-25 Thread Mason
[ Trimming CC list ] On 19/11/2015 19:33, Mans Rullgard wrote: > +config TANGOX_IRQ Could you drop the X? (And perhaps change IRQ to IRQCHIP? What's the current trend?) > + bool > + select IRQ_DOMAIN > + select GENERIC_IRQ_CHIP Could you sort alphabetically, like the mach Kconfig?

Re: [PATCH tip v4 4/5] rcu: Do not call rcu_nocb_gp_cleanup() while holding rnp->lock

2015-11-25 Thread Daniel Wagner
Hi Boqun, On 11/25/2015 02:01 AM, Boqun Feng wrote: > On Tue, Nov 24, 2015 at 11:52:12PM +0800, Boqun Feng wrote: >> Hi Daniel, >> >> On Tue, Nov 24, 2015 at 02:03:06PM +0100, Daniel Wagner wrote: >>> rcu_nocb_gp_cleanup() is called while holding rnp->lock. Currently, >>> this is okay because the

Re: [PATCH v2 6/9] mm, debug: introduce dump_gfpflag_names() for symbolic printing of gfp_flags

2015-11-25 Thread Vlastimil Babka
On 11/25/2015 09:16 AM, Joonsoo Kim wrote: > On Tue, Nov 24, 2015 at 01:36:18PM +0100, Vlastimil Babka wrote: >> --- a/include/trace/events/gfpflags.h >> +++ b/include/trace/events/gfpflags.h >> @@ -8,8 +8,8 @@ >> * >> * Thus most bits set go first. >> */ >> -#define show_gfp_flags(flags)

[RFC 1/1] xen: interface: correct comments

2015-11-25 Thread Peng Fan
According to definition of structure evtchn_alloc_unbound, there is an entry "domid_t remote_dom", no "rdom". So using "remote_dom" in comments instead of "rdom". Signed-off-by: Peng Fan Cc: Konrad Rzeszutek Wilk Cc: Boris Ostrovsky Cc: David Vrabel --- include/xen/interface/event_channel.h

Re: [PATCH] x86/mm: fix regression with huge pages on PAE

2015-11-25 Thread Borislav Petkov
On Tue, Nov 24, 2015 at 10:14:49PM +0200, Kirill A. Shutemov wrote: > I haven't seen any actionable objections to the updated patch. > Not sure why it's not applied. It is now. Thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- To unsubscribe from this list:

[RFC 1/1] xen: block: correct setting for xen_blkif_max_ring_order

2015-11-25 Thread Peng Fan
According to this piece code: " pr_info("Invalid max_ring_order (%d), will use default max: %d.\n", xen_blkif_max_ring_order, XENBUS_MAX_RING_GRANT_ORDER); " if xen_blkif_max_ring_order is bigger that XENBUS_MAX_RING_GRANT_ORDER, need to set xen_blkif_max_ring_order using

<    4   5   6   7   8   9   10   11   12   13   >