Re: [PATCH v9 10/12] kthread: Allow to cancel kthread work

2016-06-20 Thread Tejun Heo
On Thu, Jun 16, 2016 at 01:17:29PM +0200, Petr Mladek wrote: > +/* > + * Returns true when the work could not be queued at the moment. > + * It happens when it is already pending in a worker list > + * or when it is being cancelled. > + * > + * This function must be called under work->worker->lock.

Re: [PATCH] blktrace: reword comment about time overflow

2016-06-20 Thread Jeff Moyer
Arnd Bergmann writes: > Jeff Moyer looked up the blktrace source to see if an overflow might > happen. The situation is as follows: > > - The time stamp is not used by the program itself, only for > printing human-readable output. > - We normally don't print the timestamp at all, except when an

[PATCH v2 14/29] staging/lustre: Add newline to LU_OBJECT_DEBUG() message

2016-06-20 Thread Oleg Drokin
From: Bob Glossman LU_OBJECT_DEBUG expects non \n terminated message from the caller, so it should add it's own to keep debug logger happy. Signed-off-by: Bob Glossman Reviewed-on: http://review.whamcloud.com/19960 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8094 Reviewed-by: Andreas Di

[PATCH v2 12/29] staging/lustre/llite: take trunc_sem only at vvp layer

2016-06-20 Thread Oleg Drokin
From: Patrick Farrell The lli_trunc_sem is taken in 'read' mode in both ll_page_mkwrite and vvp_io_fault_start. This can lead to a deadlock with another thread which asks for the semaphore in write mode between thse two read calls. Since all users of lli_trunc_sem are in the vvp layer, we can sa

[PATCH v2 09/29] staging/lustre/ptlrpc: Early Reply vs Reply MDunlink

2016-06-20 Thread Oleg Drokin
From: Vitaly Fertman A race between unregister_reply & early reply. When buffers are busy for the early transfer, they cannon be unlinked by unregister_reply, so the RPC gets into UNREGISTERING state. The coming reply_in_callback for the early RPC already has unlinked flag set due to previous mdu

[PATCH v2 10/29] staging/lustre/ptlrpc: Remove __ptlrpc_request_bufs_pack

2016-06-20 Thread Oleg Drokin
From: Ben Evans Combine __ptlrpc_request_bufs_pack into ptlrpc_request_bufs_pack because it was an unnecessary wrapper otherwise. Signed-off-by: Ben Evans Reviewed-on: http://review.whamcloud.com/16765 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7269 Reviewed-by: Frank Zago Reviewed-by

[PATCH v2 15/29] staging/lustre/llite: flatten struct lookup_intent

2016-06-20 Thread Oleg Drokin
From: "John L. Hammond" Replace the union in struct lookup_intent with the members of struct lustre_indent_data. Remove the then unused struct lustre_intent_data. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/17069 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-74

[PATCH v2 13/29] staging/lustre: LDLM_DEBUG() shouldn't be passed \n

2016-06-20 Thread Oleg Drokin
From: Alex Zhuravlev as it adds own \n, so any extra \n break log format. Signed-off-by: Alex Zhuravlev Reviewed-on: http://review.whamcloud.com/17494 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7521 Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Andreas Dilger

[PATCH v2 11/29] staging/lustre/ptlrpc: lost bulk leads to a hang

2016-06-20 Thread Oleg Drokin
From: Vitaly Fertman The reverse order of request_out_callback() and reply_in_callback() puts the RPC into UNREGISTERING state, which is waiting for RPC & bulk md unlink, whereas only RPC md unlink has been called so far. If bulk is lost, even expired_set does not check for UNREGISTERING state.

[PATCH v2 16/29] staging/lustre: Inline Lustre intent disposition functions

2016-06-20 Thread Oleg Drokin
They are just one-liners, so no point in having them exported and called through a different module. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/include/lustre_intent.h | 15 +++ drivers/staging/lustre/lustre/include/lustre_mdc.h| 3 --- drivers/staging/lustre/l

[PATCH 1/4] MAINTAINERS: Fix nsp false-positives

2016-06-20 Thread Jon Mason
The 'nsp' regex pattern in the "BROADCOM IPROC ARM ARCHITECTURE" section is getting unintended hits due to the common frequence of these letters appearing in sequence. To change the regex expression to be more specific to the files we care about, add a "bcm" prefix to the regex and add file entrie

[PATCH v2 26/29] staging/lustre: Add documentation for unstable_stats in sysfs

2016-06-20 Thread Oleg Drokin
commit ac5b14810952 ("staging: lustre: osc: Track and limit "unstable" pages") added a new sysfs variable, but corresponding bit of documentation was not forgotten. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/sysfs-fs-lustre | 8 1 file changed, 8 insertions(+) diff --git a/d

[PATCH 0/4] MAINTAINERS: update BCM SoC entries

2016-06-20 Thread Jon Mason
An overall clean-up to the MAINTAINER entries for a few Broadcom SoCs. Jon Mason (4): MAINTAINERS: Fix nsp false-positives MAINTAINERS: Add NS2 entry MAINTAINERS: Update BCM63XX entry MAINTAINERS: Update BCM281XX/BCM11XXX/BCM216XX entry MAINTAINERS | 19 +-- 1 file change

[PATCH 2/4] MAINTAINERS: Add NS2 entry

2016-06-20 Thread Jon Mason
Add NS2 to the Broadcom iProc Subsystem maintainers entry. Since most of the NS2 entries are already covered via the ns* already present there, all that is currently needed is to reference the device tree files. Signed-off-by: Jon Mason --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) dif

[PATCH v2 02/29] staging/lustre/llite: correct request handling after ll_lookup_it()

2016-06-20 Thread Oleg Drokin
From: "John L. Hammond" In the FIFO cases of ll_atomic_open() and ll_lookup_nd() remove spurious calls to ptlrpc_req_finished(). Explain that these cases are unreachable in practice anyway. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/17068 Intel-bug-id: https://jira.

[PATCH v2 23/29] staging/lustre/llite: ll_revalidate_dentry update

2016-06-20 Thread Oleg Drokin
From: Oleg Drokin There are a couple of cases in ll_revalidate_dentry() where we are pretty sure the dentry is valid, so check for them early and save more expensive checks for later. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/dcache.c | 11 +++ 1 file changed,

[PATCH v2 03/29] staging/lustre/llite: Get rid of ll_lock_dcache/ll_unlock_dcache

2016-06-20 Thread Oleg Drokin
These are just doing spin_lock/unlock on inode's i_lock, so just do the spinlock directly to make the code more clear Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lustre/llite/dcache.c | 4 ++-- drivers/staging/lustre/lustre/llite/llite_internal.h | 10 -- drivers/stagi

[PATCH v2 21/29] staging/lustre/llite: don't panic when fid is insane

2016-06-20 Thread Oleg Drokin
From: Sergey Cheremencev LASSERT should never be done on data that is received to over the network. Return EINVAL when server returns invalid fid despite of it_status == 0. Signed-off-by: Sergey Cheremencev Seagate-bug-id: MRP-3073 Reviewed-on: http://review.whamcloud.com/17985 Intel-bug-id: ht

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Kani, Toshimitsu
On Mon, 2016-06-20 at 14:00 -0400, Mike Snitzer wrote: > On Mon, Jun 13 2016 at  6:57pm -0400, > Mike Snitzer wrote: > > > > > On Mon, Jun 13 2016 at  6:21pm -0400, > > Toshi Kani wrote: > > > > > > > > This patch-set adds DAX support to device-mapper dm-linear devices > > > used by LVM.  It

[PATCH v2 25/29] staging/lustre/osc: fix signed one bit field

2016-06-20 Thread Oleg Drokin
From: Dmitry Eremin Bit field 'oi_lockless' and 'oi_is_active' has one bit and is signed which is confusing. Signed-off-by: Dmitry Eremin Reviewed-on: http://review.whamcloud.com/19196 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7258 Reviewed-by: Andreas Dilger Reviewed-by: James Simmo

[PATCH v2 00/29] Lustre fixes

2016-06-20 Thread Oleg Drokin
Changes from v1: This is rebased and retested on top of latest staging tree, one patch dropped because it made it to the tree by other means, two more fixes added. These patches represent another round of Lustre fixes and also a few cleanups that some of the fixes were building up upon. Alex Zhur

[PATCH 3/4] MAINTAINERS: Update BCM63XX entry

2016-06-20 Thread Jon Mason
There are more files being supported by the BCM63XX than simply "arch/arm/mach-bcm/bcm63xx.c" and "arch/arm/include/debug/bcm63xx.S". Add a regex of "bcm63xx" to catch all the other files that are out there. Signed-off-by: Jon Mason --- MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[PATCH v2 04/29] staging/lustre/llite: lock i_lock before __d_drop()

2016-06-20 Thread Oleg Drokin
From: Bruno Faccini There has been several Lustre Client crashes reported by sites running with Lustre versions 2.1/2.5, all showing the same dentry->d_hash->next corrupted pointer cause. This patch fixes a regression that has been introduced since a long time by commit : (LU-506 kernel: FC15 -

[PATCH v2 29/29] staging: lustre: quiet lockdep recursive lock warning

2016-06-20 Thread Oleg Drokin
From: Andreas Dilger Lockdep complains about potential recursive locking during mount because the client configuration log is holding a lock on the MGC obd_device to prevent it from being torn down, while also getting mutexes on the MDC and OSC devices as they are instantiated: Lustre: Mounted

[PATCH v2 3/3] drm/i915: Enable polling when we don't have hpd

2016-06-20 Thread Lyude
Unfortunately, there's two situations where we lose hpd right now: - Runtime suspend - When we've shut off all of the power wells on Valleyview/Cherryview While it would be nice if this didn't cause issues, this has the ability to get us in some awkward states where a user won't be able to get the

[PATCH v2 08/29] staging/lustre/ptlrpc: missing wakeup for ptlrpc_check_set

2016-06-20 Thread Oleg Drokin
From: Liang Zhen This patch changes a few things: - There is no guarantee that request_out_callback will happen before reply_in_callback, if a request got reply and unlinked reply buffer before request_out_callback is called, then the thread waiting on ptlrpc_request_set will miss wakeup e

[PATCH v2 27/29] staging/lustre/osc: glimpse lock should match only with granted locks

2016-06-20 Thread Oleg Drokin
From: Andriy Skulysh A deadlock is possible during ccc_prep_size()->ldlm_lock_match() vs cl_io_lock() which is waiting for a matched lock and conflicts with already taken lock before ccc_prep_size(). It is better to send an additional lock request to avoid deadlock. Seagate-bug-id: MRP-3312 Sig

[PATCH v2 17/29] staging/lustre/llite: change it_data to it_request

2016-06-20 Thread Oleg Drokin
From: "John L. Hammond" Change the void *it_data member of struct lookup_intent to struct ptlrpc_request *it_request. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/17070 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7403 Reviewed-by: Andreas Dilger Reviewed-by:

[PATCH v2 18/29] staging/lustre/ldlm: const qualify struct lustre_handle * params

2016-06-20 Thread Oleg Drokin
From: "John L. Hammond" Add a const qualifier to several struct lustre_handle * parameters in the LDLM interface. Signed-off-by: John L. Hammond Reviewed-on: http://review.whamcloud.com/17071 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7403 Reviewed-by: Andreas Dilger Reviewed-by: Jame

[PATCH v2 01/29] staging/lustre/llite: allocate and free client cache asynchronously

2016-06-20 Thread Oleg Drokin
From: Emoly Liu Since the inflight request holds import refcount as well as export, sometimes obd_disconnect() in client_common_put_super() can't put the last refcount of OSC import (e.g. due to network disconnection), this will cause cl_cache being accessed after free. To fix this issue, ccc_us

Re: [RFC PATCH] x86: Move away from /dev/cpu/*/msr

2016-06-20 Thread Andi Kleen
Borislav Petkov writes: > Comments are, as always, appreciated. Seems like a waste of kernel code to me. The MSR interface works perfectly fine. There are potentially hundreds of useful MSRs, are you going to add new sysfs for each of them? Even the more obscure ones can be very useful for debu

[PATCH v2 22/29] staging/lustre/llite: Restore proper opencache operations

2016-06-20 Thread Oleg Drokin
From: Oleg Drokin Mark dentries that came to us via NFS in a special way so that we can tell them apart during open and activate open cache (we really don't want to do open/close RPC for every NFS IO). This became needed since dentry revlidate no longer reimplements any RPCs for lookup, and as s

Re: [PATCH] ipmi: set si_trydefaults=0 for ARM64

2016-06-20 Thread Corey Minyard
On 06/20/2016 01:26 PM, Tony Camuso wrote: Port I/O space does not exist in ARM64 and is not mapped. Attempts to access it on ARM systems cause stack traces and worse. At this point, I think it is best to just completely pull out all concept of "default addresses" in the IPMI driver. The defau

[PATCH v2 24/29] staging/lustre/llite: IOC_MDC_GETFILEINFO returns the wrong ino

2016-06-20 Thread Oleg Drokin
From: akam kumar bharathi req_capsule_server_get() through __req_capsule_get in ll_dir_ioctl() returns a pointer to a PTLRPC request or reply buffer, which is assigned to struct mdt_body. If the command is IOC_MDS_GETFILEINFO then the inode "st.st_ino" should be assigned from one extracted from

Re: [PATCH 0/4] MAINTAINERS: update BCM SoC entries

2016-06-20 Thread Scott Branden
Patch series looks good. Acked-by: Scott Branden On 16-06-20 02:07 PM, Jon Mason wrote: An overall clean-up to the MAINTAINER entries for a few Broadcom SoCs. Jon Mason (4): MAINTAINERS: Fix nsp false-positives MAINTAINERS: Add NS2 entry MAINTAINERS: Update BCM63XX entry MAINTAINE

[PATCH v2 05/29] staging/lustre/osc: osc_lock_weight endless loop fix

2016-06-20 Thread Oleg Drokin
From: Jinshan Xiong With huge number of pages to scan by osc_lock_weight() it is likely CLP_GANG_RESCHED is returned from osc_page_gang_lookup() and the scan will be repeated again from the start. To be sure that the scan is progressing across those restarts, next scan should be started from the

Re: ktime_get_ts64() splat during resume

2016-06-20 Thread Rafael J. Wysocki
On Mon, Jun 20, 2016 at 8:29 PM, Linus Torvalds wrote: > On Mon, Jun 20, 2016 at 7:38 AM, Rafael J. Wysocki wrote: >> >> Overall, we seem to be heading towards the "really weird" territory here. > > So the whole commit that Boris bisected down to is weird to me. > > Why isn't the temporary text m

Re: [PATCH v3 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-06-20 Thread Tai Tri Nguyen
Hi Mark, Thanks for the comments. On Thu, Jun 16, 2016 at 8:39 AM, Mark Rutland wrote: > > Hi, > > On Thu, Jun 09, 2016 at 06:24:51PM -0700, Tai Nguyen wrote: > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include >

Re: [PATCH 1/6] clk: Add missing clk_get_sys() stub

2016-06-20 Thread Michael Turquette
Hi Daniel, Quoting Daniel Lezcano (2016-06-02 14:41:32) > When compiling with the COMPILE_TEST option set, the clps711x does not > compile because of the clk_get_sys() noop stub missing. > > Signed-off-by: Daniel Lezcano This looks OK to me. Russell maintains clkdev and the clk.h stuff, so it w

Re: [PATCH V2 01/63] of: Add a new macro to declare_of for one parameter function returning a value

2016-06-20 Thread Rob Herring
On Thu, Jun 16, 2016 at 4:26 PM, Daniel Lezcano wrote: > The macro OF_DECLARE_1 expect a void (*func)(struct device_node *) while the > OF_DECLARE_2 expect a int (*func)(struct device_node *, struct device_node *). > > The second one allows to pass an init function returning a value, which make >

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-20 Thread Bjorn Helgaas
[+cc Sinan] On Mon, Jun 20, 2016 at 03:02:57AM +0200, Rafael J. Wysocki wrote: > You should CC the linux-pci too (done now) > > On Monday, June 20, 2016 02:35:30 AM Wim Osterholt wrote: > > L.S. > > up to vanilla kernel-4.6.2 sound was working fine. > > Switching to kernel-4.7.0-rc3 made sound di

[PATCH v3 2/2] dt-binding: remoteproc: Introduce Hexagon loader binding

2016-06-20 Thread Bjorn Andersson
This document defines the binding for a component that loads firmware and control the life cycle of a self-authenticating Qualcomm Hexagon core. Acked-by: Rob Herring Signed-off-by: Bjorn Andersson --- Changes since v2: - None Changes since v1: - Corrected reg-names in the example .../device

[PATCH v3 1/2] remoteproc: qcom: Driver for the self-authenticating Hexagon v5

2016-06-20 Thread Bjorn Andersson
From: Bjorn Andersson This initial hack powers the q6v5, boots and authenticate the mba and use that to load the mdt and subsequent bXX files. Signed-off-by: Bjorn Andersson Signed-off-by: Bjorn Andersson --- Changes since v2: - Balancing the rom_clk calls - Moved reset wait to the reset func

RE: [PATCH v5 06/10] ntb_tool: Postpone memory window initialization for the user

2016-06-20 Thread Allen Hubbe
From: Logan Gunthorpe > In order to make the interface closer to the raw NTB API, this commit > changes memory windows so they are not initialized on link up. > Instead, the 'peer_trans*' debugfs files are introduced. When read, > they return information provided by ntb_mw_get_range. When written,

Re: [PATCH 1/1] drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value

2016-06-20 Thread Alex Deucher
On Sat, Jun 18, 2016 at 4:55 PM, Nicolas Iooss wrote: > amdgpu_cgs_acpi_eval_object() returned the value of variable "result" > without initializing it first. > > This bug has been found by compiling the kernel with clang. The > compiler complained: > > drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c

Re: [PATCH v3 1/7] leds: convert IDE trigger to common disk trigger

2016-06-20 Thread Stephan Linz
Hi Jacek, thanks a lot. Can you tell me, when the LED for-next branch will merge into mainline? br, Stephan Am 20.06.2016 um 10:36 schrieb Jacek Anaszewski: > Hi Stephan, > > On 06/09/2016 12:29 AM, Stephan Linz wrote: >> This patch converts the IDE specific LED trigger to a generic disk >> ac

[PATCH v2] clk: Add fractional scale clock support

2016-06-20 Thread Hoan Tran
This patch adds fractional scale clock support. Fractional scale clock is implemented for a single register field. Output rate = parent_rate * scale / denominator For example, for 1 / 8 fractional scale, denominator will be 8 and scale will be computed and programmed accordingly. v2 * Fix compi

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Mike Snitzer
On Mon, Jun 20 2016 at 3:40pm -0400, Mike Snitzer wrote: > # dd if=/dev/zero of=/mnt/dax/meh bs=1024K oflag=direct > [11729.754671] XFS (dm-4): Metadata corruption detected at > xfs_agf_read_verify+0x70/0x120 [xfs], xfs_agf block 0x45a808 > [11729.766423] XFS (dm-4): Unmount and run xfs_repair

Re: [PATCH v2 3/3] firmware: scpi: add device power domain support using genpd

2016-06-20 Thread Kevin Hilman
Sudeep Holla writes: > This patch hooks up the support for device power domain provided by > SCPI using the Linux generic power domain infrastructure. > > Cc: "Rafael J. Wysocki" > Cc: Kevin Hilman > Cc: Ulf Hansson > Cc: linux...@vger.kernel.org > Signed-off-by: Sudeep Holla [...] > +stati

[PATCH 0/8] perf tools: Various fixes

2016-06-20 Thread Jiri Olsa
hi, another bunch of generic enough fixes to submit separately. Available also in: git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (8): perf tools: Rename __hists__add_entry to hists__add_entry perf tools: Move hist_browser into

[PATCH 7/8] perf tools: Introduce hist_browser__init

2016-06-20 Thread Jiri Olsa
Factoring out the hist_browser initialization code, so it could be used from other parts in following patches. Link: http://lkml.kernel.org/n/tip-wpnz9geiwesk0stkiumwc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 35 --- tools/pe

[PATCH 5/8] perf tools: Move horizontal scroll init into hist_browser__new

2016-06-20 Thread Jiri Olsa
Moving horizontal scroll init into initialization function as already intended. Link: http://lkml.kernel.org/n/tip-5w6e9whw8iy5ve3szil90...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff

[PATCH 2/8] perf tools: Move hist_browser into header file

2016-06-20 Thread Jiri Olsa
This way we can use it outside of ui/browsers/hists.c and extend it in following patches. Link: http://lkml.kernel.org/n/tip-ro0o11n0c8k6czqnbnrh4...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 19 +-- tools/perf/ui/browsers/hists.h | 23 +

[PATCH 8/8] perf tools: Enlarge pid sort entry size

2016-06-20 Thread Jiri Olsa
The pid sort entry currently aligns pids with 5 digits, which is not enough for current 4 million pids limit. This leads to unaligned ':' header-data output when we display 7 digits pid: # Children Self SymbolPid:Command # ..

[PATCH 1/8] perf tools: Rename __hists__add_entry to hists__add_entry

2016-06-20 Thread Jiri Olsa
There's no reason we should suffer the '__' prefix for the base global function. Link: http://lkml.kernel.org/n/tip-ue4xj3xn3uo1qndejfimt...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-diff.c | 12 +--- tools/perf/tests/hists_

[PATCH 6/8] perf tools: Introduce perf_evsel_browser_new function

2016-06-20 Thread Jiri Olsa
So we could use hist_browser__new for generic hist browser in following patches. Link: http://lkml.kernel.org/n/tip-rb9doy3pgsgu1vs9fryuw...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 24 +--- tools/perf/ui/browsers/hists.h | 4 +--- 2 files

Re: linux-next: Tree for Jun 20

2016-06-20 Thread Sudip Mukherjee
On Monday 20 June 2016 07:05 AM, Stephen Rothwell wrote: Hi all, Changes since 20160617: I just started trying gcc 6.1.0 for mips and mips allmodconfig is failing with the error: {standard input}: Assembler messages: {standard input}:147: Error: number (0x90008000) larger than 32 bi

[PATCH 4/8] perf tools: Introduce struct hist_browser title callback

2016-06-20 Thread Jiri Olsa
We can now setup title callback for hist_browser, which will be useful in following changes to create customized hist_browsers. This also separates struct perf_evsel dependency out of hist_browser basic code. Link: http://lkml.kernel.org/n/tip-5v3wd2r5njgnokbnz4nxf...@git.kernel.org Signed-off-by

[PATCH 3/8] perf tools: Make hist_browser__(new|delete|run) public

2016-06-20 Thread Jiri Olsa
This way we can use it outside of ui/browsers/hists.c and extend it in following patches. Link: http://lkml.kernel.org/n/tip-tmlkgjsd5bf6ebsmks9wl...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/ui/browsers/hists.c | 10 +- tools/perf/ui/browsers/hists.h | 5 + 2 files cha

Re: [PATCH v9 3/4] ARM: dts: rockchip: add syscon-reboot-mode DT node

2016-06-20 Thread Bjorn Andersson
On Sun 19 Jun 23:39 PDT 2016, Andy Yan wrote: > Rockchip platform use a SYSCON mapped register store > the reboot mode magic value for bootloader to use when > system reboot. So add syscon-reboot-mode driver DT node > for rk3xxx/rk3036/rk3288 based platform > > Reviewed-by: Matthias Brugger > Si

[PATCH v2 06/29] staging/lustre/osc: Fix reverted condition in osc_lock_weight

2016-06-20 Thread Oleg Drokin
When imprting clio simplification patch, the check for pbject got reversed by mistake when converting from if (obj == NULL) it somehow became (if (obj) which is obviously wrong, and so when it does hit, a crash was happening as result. Fix the condition and all if fine now. Signed-off-by: Oleg Dr

[PATCH v2 07/29] staging/lustre/ptlrpc: reorganize ptlrpc_request

2016-06-20 Thread Oleg Drokin
From: Liang Zhen ptlrpc_request has some structure members are only for client side, and some others are only for server side, this patch moved these members to different structure then putting into an union. By doing this, size of ptlrpc_request is decreased about 300 bytes, besides saving memo

[PATCH v2 28/29] staging/lustre/libcfs: Do not call kthread_run in wrong state

2016-06-20 Thread Oleg Drokin
kthread_run might sleep during an allocation, and so it's considered unsafe to call with a state that's not RUNNABLE. Move the state setting to after kthread_run call. Signed-off-by: Oleg Drokin --- drivers/staging/lustre/lnet/libcfs/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Kani, Toshimitsu
On Mon, 2016-06-20 at 14:01 -0600, Kani, Toshimitsu wrote: > On Mon, 2016-06-20 at 15:52 -0400, Mike Snitzer wrote: > > > > On Mon, Jun 20 2016 at  3:40pm -0400, > > Mike Snitzer wrote: > >    : > > > If I don't use XFS, and only issue IO directly to the /dev/pmem/lv, I > > > don't see this corru

Re: [PATCH v3 2/3] pwm: iproc: Add support for Broadcom iproc pwm controller

2016-06-20 Thread Scott Branden
Hi Dhananjaya, One minor comment inline. On 16-06-20 07:14 AM, Yendapally Reddy Dhananjaya Reddy wrote: Add support for the PWM controller present in Broadcom's iProc family of SoCs. This driver is derived from the pwm-bcm-kona driver, with changes to the register offsets and bit positions. It

Re: [PATCH v3 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-20 Thread Sakari Ailus
Hi Pali, On Sat, Jun 18, 2016 at 05:37:33PM +0200, Pali Rohár wrote: > On Saturday 18 June 2016 17:22:59 Pavel Machek wrote: > > > +/* > > > + * > > > + * Stingray sensor mode settings for Scooby > > > + * > > > + * > > > + */ > > > > I'd fix it to normal comment style... and possibly remove it.

[PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls for FETCH-OP flavors

2016-06-20 Thread Davidlohr Bueso
Hi, The series is really straightforward and based on Peter's work that introduces[1] the atomic_fetch_$op machinery. Only patch 1 implements the actual atomic_fetch_{inc,dec} calls based on atomic_fetch_{add,sub}. The rest of the patches really update callers that are doing the ugly - N workaro

[PATCH] leds: Add no-op gpio_led_register_device when LED subsystem is disabled

2016-06-20 Thread Andrew F. Davis
Some systems use 'gpio_led_register_device' to make an in-memory copy of their LED device table so the original can be removed as .init.rodata. When the LED subsystem is not enabled source in the led directory is not built and so this function may be undefined. Fix this here. Signed-off-by: Andrew

[PATCH] selftests/vm: Don't mlockall MCL_CURRENT in on-fault-limit test

2016-06-20 Thread Yannick Brosseau
The default MEMLOCK limit is not big enough to accomodate all the current pages of the test program process, so the test fails at this step. By removing the MCL_CURRENT flag, we allow the mlockall call to succeed. The mmap is twice the size of the current limit, so it will still fail as expected.

Re: [PATCH v2] x86/ptrace: Stop setting TS_COMPAT in ptrace code

2016-06-20 Thread Pedro Alves
On 06/20/2016 08:37 PM, Andy Lutomirski wrote: > On Mon, Jun 20, 2016 at 9:29 AM, Andy Lutomirski wrote: >> Setting TS_COMPAT in ptrace is wrong: if we happen to do it during >> syscall entry, then we'll confuse seccomp and audit. (The former >> isn't a security problem: seccomp is currently enti

[PATCH 03/10] perf script: Fix documentation of '-f' when it should be '-F'

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The documentation for perf script mixes up '-f' and '-F'. Fix it. Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/None Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-script.txt | 20 ++--

[PATCH 04/10] perf hists: Rename __hists__add_entry to hists__add_entry

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no reason we should suffer the '__' prefix for the base global function. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1465928361-2442-12-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 09/10] perf evsel: Fix write_backwards fallback

2016-06-20 Thread Arnaldo Carvalho de Melo
Commit b90dc17a5d14 "perf evsel: Add overwrite attribute and check write_backward" misunderstood the 'order' should be obeyed in __perf_evsel__open. But the way this was done for attr.write_backwards was buggy, as we need to check features in the inverse order of their introduction to the kernel,

[PATCH 08/10] perf record: Add --dry-run option to check cmdline options

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Wang Nan With '--dry-run', 'perf record' doesn't do reall recording. Combine with llvm.dump-obj option, --dry-run can be used to help compile BPF objects for embedded platform. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: pi3or...@163.com Link: http://lkml.kernel.or

[PATCH 07/10] perf llvm: Allow dump llvm output object file using llvm.dump-obj

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Wang Nan Add a 'llvm.dump-obj' config option to enable perf dump BPF object files compiled by LLVM. This option is useful when using BPF objects in embedded platforms. LLVM compiler won't be deployed in these platforms, and currently we don't support dynamic compiling library. Before this

[PATCH 01/10] perf tools: Find vdso with the consider of cross-platform

2016-06-20 Thread Arnaldo Carvalho de Melo
From: He Kuang There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch tries to find

[PATCH 06/10] perf tools: Remove --perf-dir and --work-dir

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Completely unused in perf, carried along all this time from the initial copy of git infrastructure, ditch'em. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-wtiln26gyqndprmkl0kds...@git.kernel.o

[PATCH 10/10] perf script: Add stackcollapse.py script

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Paolo Bonzini Add stackcollapse.py script as an example of parsing call chains, and also of using optparse to access command line options. The flame graph tools include a set of scripts that parse output from various tools (including "perf script"), remove the offsets in the function and c

[PATCH 05/10] perf tools: Remove some unused functions

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Probably are there since the beginning, taken from git but never used. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-lr65jeefffjeaywoapps9...@git.kernel.org Signed-off-by: Arnaldo Carvalho de M

[PATCH 02/10] kbuild: List libelf-devel as an alternative

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Jean Delvare On openSUSE, the libelf development files are in package libelf-devel. Signed-off-by: Jean Delvare Acked-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Michal Marek Cc: Peter Zijlstra Cc: linux-kbu...@vger.kernel.org Link: http://lkml.kernel.org/n/tip-s8nyk3pyy2927sd7qp7u4...@git.k

[GIT PULL 00/10] perf/core improvements and fixes

2016-06-20 Thread Arnaldo Carvalho de Melo
ailable in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160620 for you to fetch changes up to 2a0a7c72702bac1b87cd4d49196a334483386fab: perf script: Add stackcollapse.py script (2016-06-20 17:5

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-20 Thread Sinan Kaya
On 6/20/2016 5:25 PM, Bjorn Helgaas wrote: > [+cc Sinan] > > On Mon, Jun 20, 2016 at 03:02:57AM +0200, Rafael J. Wysocki wrote: >> You should CC the linux-pci too (done now) >> >> On Monday, June 20, 2016 02:35:30 AM Wim Osterholt wrote: >>> L.S. >>> up to vanilla kernel-4.6.2 sound was working fi

[patch] mm, compaction: abort free scanner if split fails

2016-06-20 Thread David Rientjes
If the memory compaction free scanner cannot successfully split a free page (only possible due to per-zone low watermark), terminate the free scanner rather than continuing to scan memory needlessly. If the per-zone watermark is insufficient for a free page of order <= cc->order, then terminate

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Mike Snitzer
On Mon, Jun 20 2016 at 5:28pm -0400, Kani, Toshimitsu wrote: > On Mon, 2016-06-20 at 14:01 -0600, Kani, Toshimitsu wrote: > > On Mon, 2016-06-20 at 15:52 -0400, Mike Snitzer wrote: > > > > > > On Mon, Jun 20 2016 at  3:40pm -0400, > > > Mike Snitzer wrote: > > >   >  : > > > > If I don't use X

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-20 Thread Francois Romieu
Netanel Belgazal : [...] > > diff --git a/drivers/net/ethernet/amazon/ena/ena_com.h > > b/drivers/net/ethernet/amazon/ena/ena_com.h > > new file mode 100644 > > index 000..e49ba43 > > --- /dev/null > > [...] > > +static inline void ena_com_update_intr_reg(struct ena_eth_io_intr_reg > > *intr

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Kani, Toshimitsu
On Mon, 2016-06-20 at 15:52 -0400, Mike Snitzer wrote: > On Mon, Jun 20 2016 at  3:40pm -0400, > Mike Snitzer wrote: >   > > > > # dd if=/dev/zero of=/mnt/dax/meh bs=1024K oflag=direct > > [11729.754671] XFS (dm-4): Metadata corruption detected at > > xfs_agf_read_verify+0x70/0x120 [xfs], xfs_agf

[PATCH] staging: lustre: llite: break ll_getxattr_common into 2 functions

2016-06-20 Thread James Simmons
Split the function ll_getxattr_common into two functions. The code used for listing xattrs and ll_getxattr_common is placed into a new function ll_getxattr_list. This allows ll_listxattr to call directly ll_getxattr_list instead of going through ll_getxattr_common. This change is needed for the upc

[PATCH v1 1/1] MAINTAINERS: belong Documentation/pinctrl.txt properly

2016-06-20 Thread Andy Shevchenko
I'm pretty sure that Documentation/pinctrl.txt would be better maintained by pinctrl subsystem. Signed-off-by: Andy Shevchenko --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9040236..c59d978 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9088,

Re: [PATCH 0/3] nvme: Don't add namespaces for locked drives

2016-06-20 Thread Keith Busch
On Mon, Jun 20, 2016 at 11:21:09AM -0700, Jethro Beekman wrote: > On 20-06-16 08:26, Keith Busch wrote: > > Would this just be a matter of setting req->retries and checking for it in > nvme_req_needs_retry? How does one keep track of the number of tries so far? I just sent a patch out earlier tod

Re: [PATCH 8/8] arm64: dts: db820c: add support to external sd card.

2016-06-20 Thread kbuild test robot
Hi, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.7-rc4 next-20160620] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Srinivas-Kandagatla/arm64-dts-db820c-Add-basic

[PATCH 1/3] serial: pxa: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_PXA drivers/tty/serial/Kconfig: bool "PXA serial port support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orpha

[PATCH 2/3] serial: vt8500_serial: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_VT8500 drivers/tty/serial/Kconfig: bool "VIA VT8500 on-chip serial port support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

RE: [PATCH] fsl mc-bus: Move mc-io destroy to bus remove

2016-06-20 Thread Stuart Yoder
> -Original Message- > From: Bharat Bhushan [mailto:bharat.bhus...@nxp.com] > Sent: Thursday, June 16, 2016 1:52 AM > To: gre...@linuxfoundation.org; Stuart Yoder > Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; Bharat Bhushan > > Subject: [PATCH] fsl mc-bus: Move mc-io

[PATCH 3/3] serial: m32r_sio: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_M32R_SIO drivers/tty/serial/Kconfig: bool "M32R SIO I/F" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, s

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-06-20 Thread Andrew Morton
On Sat, 18 Jun 2016 22:02:21 +0200 Manfred Spraul wrote: > Commit 6d07b68ce16a ("ipc/sem.c: optimize sem_lock()") introduced a race: > > sem_lock has a fast path that allows parallel simple operations. > There are two reasons why a simple operation cannot run in parallel: > - a non-simple opera

Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return

2016-06-20 Thread Andrew Morton
On Mon, 20 Jun 2016 12:38:13 +0200 Christian Borntraeger wrote: > From: David Hildenbrand > > Let's introduce that helper. > > ... > > +static inline int page_ref_inc_return(struct page *page) > +{ > + int ret = atomic_inc_return(&page->_refcount); > + > + if (page_ref_tracepoint_acti

RE: [PATCH v3 1/5] ACPICA: Namespace: Fix a regression that MLC support triggers dead lock in dynamic table loading

2016-06-20 Thread Zheng, Lv
Hi, Mika > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Subject: Re: [PATCH v3 1/5] ACPICA: Namespace: Fix a regression that MLC > support triggers dead lock in dynamic table loading > > On Mon, Jun 20, 2016 at 05:07:22PM +0800, Lv Zheng wrote: > > The new MLC approach invokes

Re: x86/tsc: Set X86_FEATURE_TSC_RELIABLE to skip refined calibration

2016-06-20 Thread John Stultz
On Fri, Jun 17, 2016 at 12:48 AM, Thomas Gleixner wrote: > On Thu, 16 Jun 2016, Bin Gao wrote: > >> Unlike PIT based calibration which counts TSC cycles against another timer, >> MSR or CPUID method has no calibration - it simply multiplies the known >> frequency of a timer by a ratio. So TSC freq

Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED()

2016-06-20 Thread Masahiro Yamada
2016-06-21 5:45 GMT+09:00 Michal Marek : > Dne 14.6.2016 v 07:58 Masahiro Yamada napsal(a): >> The use of config_enabled() against config options is ambiguous. >> >> Now, IS_ENABLED() is implemented purely with macro expansion, so >> let's replace config_enabled() with IS_ENABLED(). >> >> Signed-of

Re: [PATCH v3 0/5] i.MX L2-cache code cleanups and performance tweaks

2016-06-20 Thread Arnd Bergmann
On Sunday, June 19, 2016 10:53:13 AM CEST Andrey Smirnov wrote: > One more question, less about your patches than the existing code: > > > > After going through the current users of l2x0_init for board files, > > I noticed that imx35 enables l2x0 for both dts and all the board files > > and has an

<    4   5   6   7   8   9   10   11   12   >