[PATCH v2] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-02-14 Thread Ralph Sennhauser
The Linksys WRT1900ACS (Shelby) is another Armada 385 based router in the Linksys WRT AC Series which got released in October 2015. The file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and originally authored by Imre Kaloz. URL: https://github.com/openwrt/openwrt/blob/8466384db1154

Re: [PATCH] mips: audit and remove any unnecessary uses of module.h

2017-02-14 Thread James Hogan
On Tue, Feb 14, 2017 at 01:59:34PM -0500, Paul Gortmaker wrote: > [Re: [PATCH] mips: audit and remove any unnecessary uses of module.h] On > 14/02/2017 (Tue 10:10) James Hogan wrote: > > > On Sat, Jan 28, 2017 at 09:05:57PM -0500, Paul Gortmaker wrote: > > > Historically a lot of these existed be

Re: [PATCH] ARM: mvebu: add support for the Linksys WRT1900ACS (Shelby)

2017-02-14 Thread Ralph Sennhauser
On Tue, 14 Feb 2017 17:55:33 + Jason Cooper wrote: > Hi Ralph, Imre, > > On Tue, Feb 14, 2017 at 09:59:17AM +0100, Ralph Sennhauser wrote: > > The Linksys WRT1900ACS (Shelby) is another Armada 385 based router > > in the Linksys WRT AC Series which got released in October 2015. > > > > The

[PATCH 2/2] staging: vt6656: Alignment match open parenthesis

2017-02-14 Thread Arushi Singhal
Fix checkpatch issues: "CHECK: Alignment should match open parenthesis" Signed-off-by: Arushi Singhal --- drivers/staging/vt6656/rxtx.c | 54 +-- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/stagin

Re: [PATCH V2] audit: log module name on init_module

2017-02-14 Thread Richard Guy Briggs
On 2017-02-14 13:43, Steve Grubb wrote: > On Tuesday, February 14, 2017 1:38:36 PM EST Paul Moore wrote: > > On Tue, Feb 14, 2017 at 1:11 PM, Richard Guy Briggs wrote: > > > On 2017-02-14 13:02, Steve Grubb wrote: > > >> On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: > > >> > On Sat

[RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
Currently, on the hikey board, we have the adv7511 bridge wired up to the kirin ade drm driver. Unfortunately, the kirin ade core cannot generate accurate byteclocks for all pixel clock values. Thus if a mode clock is selected that we cannot calculate a matching byteclock, the device will boot wit

[RFC][PATCH 2/2] drm: kirin: Restrict modes to known good mode clocks

2017-02-14 Thread John Stultz
Currently the hikey dsi logic cannot generate accurate byte clocks values for all pixel clock values. Thus if a mode clock is selected that cannot match the calculated byte clock, the device will boot with a blank screen. This patch uses the new mode_valid callback to enforces known good mode cloc

[RFC][PATCH 0/2] Add mode_valid drm_crtc_helper_funcs for HiKey

2017-02-14 Thread John Stultz
Currently, on the hikey board, we have the adv7511 bridge wired up to the kirin ade drm driver. Unfortunately, the kirin ade core cannot generate accurate byteclocks for all pixel clock values. Thus if a mode clock is selected that we cannot calculate a matching byteclock, the device will boot wit

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-14 Thread Pavel Machek
On Tue 2017-02-14 18:59:56, Pavel Machek wrote: > Hi! > > > > > > Hmm. I moved keyboard between USB ports, and now 4.10-rc6 no longer > > > > > boots. v4.6 works ok. Let me try with keyboard unplugged... no, I > > > > > could not get it to work. I believe v4.9 and some v4.10-rc's worked, > > > > >

Re: Question about DEC Alpha memory ordering

2017-02-14 Thread Michael Cree
On Tue, Feb 14, 2017 at 12:35:58PM +0100, Andrea Parri wrote: > On Mon, Feb 13, 2017 at 01:24:36PM -0800, Paul E. McKenney wrote: > > > > > > C auto/C-LB-LRW+OB-Ov > > (* > > * Result: Maybe > > * P0-P1 rf OB-Ov: Never->May

Re: [PATCH 1/2] pcnet32: factor out pcnet32_clr_suspend()

2017-02-14 Thread David Miller
From: Ondrej Zary Date: Mon, 13 Feb 2017 23:45:46 +0100 > Move the code to clear SUSPEND flag to a separate function to simplify > code. > > Signed-off-by: Ondrej Zary Applied to net-next.

[PATCH 3/2] sched/deadline: Use deadline instead of period when calculating overflow

2017-02-14 Thread Steven Rostedt (VMware)
I was testing Daniel's changes with his test case, and tweaked it a little. Instead of having the runtime equal to the deadline, I increased the deadline ten fold. Daniel's test case had: attr.sched_runtime = 2 * 1000 * 1000; /* 2 ms */ attr.sched_deadline = 2 * 1000 * 1

Re: [PATCH 2/2] pcnet32: fix BNC/AUI port on AM79C970A

2017-02-14 Thread David Miller
From: Ondrej Zary Date: Mon, 13 Feb 2017 23:45:47 +0100 > Even though the port autoselection is enabled by default on AM79C970A, > BNC/AUI port does not work because the link is always reported to be > down. The link state reported by the chip belongs only to the TP port > but the driver uses it

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-14 Thread Laurent Pinchart
Hi Benjamin, Thank you for the patch. I've CC'ed the linux-api mailing list. On Monday 13 Feb 2017 15:45:05 Benjamin Gaignard wrote: > This is the core of simple allocator module. > It aim to offert one common ioctl to allocate specific memory. > > version 2: > - rebased on 4.10-rc7 > > Signed-

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-14 Thread Daniel Vetter
On Mon, Feb 13, 2017 at 3:45 PM, Benjamin Gaignard wrote: > This is the core of simple allocator module. > It aim to offert one common ioctl to allocate specific memory. > > version 2: > - rebased on 4.10-rc7 > > Signed-off-by: Benjamin Gaignard Why not ION? It's a bit a broken record question,

Re: [PATCH v2] firmware/Makefile: force recompilation if makefile changes

2017-02-14 Thread Luis R. Rodriguez
On Mon, Feb 06, 2017 at 11:03:52PM +0100, Luis R. Rodriguez wrote: > On Mon, Jan 23, 2017 at 07:07:27AM -0800, Luis R. Rodriguez wrote: > > If you modify the target asm we currently do not force the > > recompilation of the firmware files. The target asm is in > > the firmware/Makefile, peg this fi

Re: [PATCH V2 2/2] sched/deadline: Throttle a constrained deadline task activated after the deadline

2017-02-14 Thread Steven Rostedt
On Mon, 13 Feb 2017 20:05:58 +0100 Daniel Bristot de Oliveira wrote: > During the activation, CBS checks if it can reuse the current task's > runtime and period. If the deadline of the task is in the past, CBS > cannot use the runtime, and so it replenishes the task. This rule > works fine for im

[PATCH V3 0/7] mm: fix some MADV_FREE issues

2017-02-14 Thread Shaohua Li
Hi, We are trying to use MADV_FREE in jemalloc. Several issues are found. Without solving the issues, jemalloc can't use the MADV_FREE feature. - Doesn't support system without swap enabled. Because if swap is off, we can't or can't efficiently age anonymous pages. And since MADV_FREE pages are

[PATCH V3 4/7] mm: enable MADV_FREE for swapless system

2017-02-14 Thread Shaohua Li
Now MADV_FREE pages can be easily reclaimed even for swapless system. We can safely enable MADV_FREE for all systems. Cc: Michal Hocko Cc: Minchan Kim Cc: Hugh Dickins Cc: Johannes Weiner Cc: Rik van Riel Cc: Mel Gorman Cc: Andrew Morton Signed-off-by: Shaohua Li --- mm/madvise.c | 8 +---

[PATCH V3 5/7] mm: add vmstat account for MADV_FREE pages

2017-02-14 Thread Shaohua Li
Show MADV_FREE pages info in proc/sysfs files. Like other vm stat info kernel exported, the MADV_FREE info will help us know how many memory are MADV_FREE pages in a node/zone. This is useful for diagnoses and monitoring in userspace. Cc: Michal Hocko Cc: Minchan Kim Cc: Hugh Dickins Cc: Johann

Re: [PATCH] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread David Miller
From: "Dmitry V. Levin" Date: Tue, 14 Feb 2017 13:33:53 +0300 > In file included from /usr/include/linux/l2tp.h:12:0, > from /usr/include/linux/if_pppol2tp.h:21, > /usr/include/netinet/in.h:31:8: error: redefinition of 'struct in_addr' This is protected properly by __UAPI_DEF_IN

[PATCH V3 1/7] mm: don't assume anonymous pages have SwapBacked flag

2017-02-14 Thread Shaohua Li
There are a few places the code assumes anonymous pages should have SwapBacked flag set. MADV_FREE pages are anonymous pages but we are going to add them to LRU_INACTIVE_FILE list and clear SwapBacked flag for them. The assumption doesn't hold any more, so fix them. Cc: Michal Hocko Cc: Minchan K

[PATCH V3 2/7] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-14 Thread Shaohua Li
madv MADV_FREE indicate pages are 'lazyfree'. They are still anonymous pages, but they can be freed without pageout. To destinguish them against normal anonymous pages, we clear their SwapBacked flag. MADV_FREE pages could be freed without pageout, so they pretty much like used once file pages. Fo

[PATCH V3 6/7] proc: show MADV_FREE pages info in smaps

2017-02-14 Thread Shaohua Li
show MADV_FREE pages info of each vma in smaps. This is mainly for diagnose purpose. Userspace could use it to understand what happens in the vma. Cc: Michal Hocko Cc: Minchan Kim Cc: Hugh Dickins Cc: Johannes Weiner Cc: Rik van Riel Cc: Mel Gorman Cc: Andrew Morton Signed-off-by: Shaohua L

[PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-14 Thread Shaohua Li
When memory pressure is high, we free MADV_FREE pages. If the pages are not dirty in pte, the pages could be freed immediately. Otherwise we can't reclaim them. We put the pages back to anonumous LRU list (by setting SwapBacked flag) and the pages will be reclaimed in normal swapout way. We use no

[PATCH V3 7/7] mm: add a separate RSS for MADV_FREE pages

2017-02-14 Thread Shaohua Li
Right now MADV_FREE pages are accounted as normal anon pages and reclaimed lazily, so application's RSS becomes bigger. This confuses our workloads. We have monitoring daemon running and if it finds applications' RSS becomes abnormal, the daemon will kill the applications even kernel can reclaim th

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread Daniel Vetter
On Tue, Feb 14, 2017 at 8:25 PM, John Stultz wrote: > Currently, on the hikey board, we have the adv7511 bridge wired > up to the kirin ade drm driver. Unfortunately, the kirin ade > core cannot generate accurate byteclocks for all pixel clock > values. > > Thus if a mode clock is selected that we

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-14 Thread Laurent Pinchart
Hi Daniel, On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote: > On Mon, Feb 13, 2017 at 3:45 PM, Benjamin Gaignard wrote: > > This is the core of simple allocator module. > > It aim to offert one common ioctl to allocate specific memory. > > > > version 2: > > - rebased on 4.10-rc7 > > > > Sig

Re: net: use-after-free in tw_timer_handler

2017-02-14 Thread Dmitry Vyukov
On Wed, Feb 8, 2017 at 8:32 PM, Dmitry Vyukov wrote: >>> >> >>> This code was changed a long time ago : >>> >> >>> >>> >> >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ed2e923945892a8372ab70d2f61d364b0b6d9054 >>> >> >>> >>> >> >>> So I suspect a recent patch broke

[PATCH v3 1/4] x86/mm: Adapt MODULES_END based on Fixmap section size

2017-02-14 Thread Thomas Garnier
This patch aligns MODULES_END to the beginning of the Fixmap section. It optimizes the space available for both sections. The address is pre-computed based on the number of pages required by the Fixmap section. It will allow GDT remapping in the Fixmap section. The current MODULES_END static addre

[PATCH v3 4/4] KVM: VMX: Simplify segment_base

2017-02-14 Thread Thomas Garnier
The KVM segment_base function is confusing. This patch replaces integers with appropriate flags, simplify constructs and add comments. Signed-off-by: Thomas Garnier --- Based on next-20170213 --- arch/x86/kvm/vmx.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-)

[PATCH v3 3/4] x86: Make the GDT remapping read-only on 64-bit

2017-02-14 Thread Thomas Garnier
This patch makes the GDT remapped pages read-only to prevent corruption. This change is done only on 64-bit. The native_load_tr_desc function was adapted to correctly handle a read-only GDT. The LTR instruction always writes to the GDT TSS entry. This generates a page fault if the GDT is read-only

[PATCH v3 2/4] x86: Remap GDT tables in the Fixmap section

2017-02-14 Thread Thomas Garnier
Each processor holds a GDT in its per-cpu structure. The sgdt instruction gives the base address of the current GDT. This address can be used to bypass KASLR memory randomization. With another bug, an attacker could target other per-cpu structures or deduce the base of the main memory section (PAGE

Re: [PATCH v3] clk: add more managed APIs

2017-02-14 Thread Stephen Boyd
On 02/06, Dmitry Torokhov wrote: > On Mon, Jan 30, 2017 at 04:57:13PM -0800, Dmitry Torokhov wrote: > > When converting a driver to managed resources it is desirable to be able to > > manage all resources in the same fashion. This change allows managing clock > > prepared and enabled state in the s

Re: [PATCH 2/3 staging-next] oom: Add notification for oom_score_adj (fwd)

2017-02-14 Thread Julia Lawall
build test WARNING on staging/staging-testing] [also build test WARNING on v4.10-rc8 next-20170214] [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/peter-enderborg-sonymobile-com/android-Collect

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-14 Thread Daniel Vetter
On Tue, Feb 14, 2017 at 8:39 PM, Laurent Pinchart wrote: > Hi Daniel, > > On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote: >> On Mon, Feb 13, 2017 at 3:45 PM, Benjamin Gaignard wrote: >> > This is the core of simple allocator module. >> > It aim to offert one common ioctl to allocate specific

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
On Tue, Feb 14, 2017 at 11:38 AM, Daniel Vetter wrote: > On Tue, Feb 14, 2017 at 8:25 PM, John Stultz wrote: >> Currently, on the hikey board, we have the adv7511 bridge wired >> up to the kirin ade drm driver. Unfortunately, the kirin ade >> core cannot generate accurate byteclocks for all pixel

Re: [PATCH 1/2] perf/x86/intel/pt: Fail event scheduling on conflict with VMX

2017-02-14 Thread Peter Zijlstra
On Tue, Feb 14, 2017 at 07:38:07PM +0100, Peter Zijlstra wrote: > Right, so I question the whole 'lets not schedule PT when VMX' premise, > it leads to inconsistencies all over. How about we treat it like > ->add() succeeded and VMX simply results in no output. > > Esp. when you then emit 'fake'

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread Ville Syrjälä
On Tue, Feb 14, 2017 at 08:38:40PM +0100, Daniel Vetter wrote: > On Tue, Feb 14, 2017 at 8:25 PM, John Stultz wrote: > > Currently, on the hikey board, we have the adv7511 bridge wired > > up to the kirin ade drm driver. Unfortunately, the kirin ade > > core cannot generate accurate byteclocks for

Re: [PATCH v4 1/7] drm: Add DRM support for tiny LCD displays

2017-02-14 Thread Daniel Vetter
On Sun, Feb 12, 2017 at 2:57 PM, Noralf Trønnes wrote: > tinydrm will be merged the way it is now, unless someone points to > something that is broken. But I collect your comments for a later > cleanup patchset. It takes a lot of effort for me as an amateur to > keeps this code up-to-date out-of-t

Re: [PATCH v2] net: ethernet: ti: cpsw: fix cpsw assignment in resume

2017-02-14 Thread David Miller
From: Ivan Khoronzhuk Date: Tue, 14 Feb 2017 14:42:15 +0200 > There is a copy-paste error, which hides breaking of resume > for CPSW driver: there was replaced netdev_priv() to ndev_to_cpsw(ndev) > in suspend, but left it unchanged in resume. > > Fixes: 606f39939595a4d4540406bfc11f265b2036af6d >

Re: v4.10-rc8 (-rc6) boot regression on Intel desktop, does not boot after cold boots, boots after reboot

2017-02-14 Thread Alan Stern
On Tue, 14 Feb 2017, Pavel Machek wrote: > On Tue 2017-02-14 18:59:56, Pavel Machek wrote: > > Hi! > > > > > > > > Hmm. I moved keyboard between USB ports, and now 4.10-rc6 no longer > > > > > > boots. v4.6 works ok. Let me try with keyboard unplugged... no, I > > > > > > could not get it to work

Re: [PATCH v3] clk: add more managed APIs

2017-02-14 Thread Dmitry Torokhov
On Tue, Feb 14, 2017 at 11:44 AM, Stephen Boyd wrote: > On 02/06, Dmitry Torokhov wrote: >> On Mon, Jan 30, 2017 at 04:57:13PM -0800, Dmitry Torokhov wrote: >> > When converting a driver to managed resources it is desirable to be able to >> > manage all resources in the same fashion. This change a

[PATCH 0/8] net: stmmac: misc patchs

2017-02-14 Thread Corentin Labbe
Hello This is a follow up of my previous stmmac serie which address some comment done in v2. Corentin Labbe (8): net: stmmac: remove useless parenthesis net: stmmac: likely is useless in occasional function net: stmmac: use SPEED_UNKNOWN/DUPLEX_UNKNOWN net: stmmac: set speed at SPEED_UNKN

[PATCH 6/8] net: stmmac: split the stmmac_adjust_link 10/100 case

2017-02-14 Thread Corentin Labbe
The 10/100 case have too many ifcase. This patch split it for removing an if. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

[PATCH 1/8] net: stmmac: remove useless parenthesis

2017-02-14 Thread Corentin Labbe
This patch remove some useless parenthesis. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmm

[PATCH 2/8] net: stmmac: likely is useless in occasional function

2017-02-14 Thread Corentin Labbe
The stmmac_adjust_link() function is called too rarely for having likely() macros being useful. Just remove likely annotation in it. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH 3/8] net: stmmac: use SPEED_UNKNOWN/DUPLEX_UNKNOWN

2017-02-14 Thread Corentin Labbe
It is better to use DUPLEX_UNKNOWN instead of just "-1". Using 0 for an invalid speed is bad since 0 is a valid value for speed. So this patch replace 0 by SPEED_UNKNOWN. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 12 ++-- 1 file changed, 6 inse

[PATCH v2 2/3] cros_ec: Fix deadlock when EC is not responsive at probe

2017-02-14 Thread Thierry Escande
From: Gwendal Grignou When the EC is not responsive at probe, we try to get basic information (protocol to use) later on through cros_xfer_cmd() call. This patch makes sure there is no deadlock when re-probing the EC by replacing call to cros_xfer_cmd() with send_command() in the function cros_ec

[PATCH v2 1/3] cros_ec: Don't return error when checking command version

2017-02-14 Thread Thierry Escande
With this patch, cros_ec_query_all() does not return an error if it fails to check for MKBP events support. Instead, the EC device structure indicates that it does not support MKBP events (mkbp_event_supported field) and cros_ec_query_all() returns 0. Signed-off-by: Thierry Escande --- drivers/p

[PATCH v2 0/3] mfd: cros_ec: non-wake host events support

2017-02-14 Thread Thierry Escande
Hi, This patchset adds support for non-wake host events. These are events sent by the EC that should not wakeup the device. This patchset also adds 2 fixes in cros_ec regarding a possible deadlock and an error code returned when it should not. This patchset depends on [1] to compile v2: - Check

[PATCH 4/8] net: stmmac: set speed at SPEED_UNKNOWN in case of broken speed

2017-02-14 Thread Corentin Labbe
In case of invalid speed given, stmmac_adjust_link() still record it as current speed. This patch modify the default case to set speed as SPEED_UNKNOWN if not 10/100/1000. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) d

Re: [RFC simple allocator v2 1/2] Create Simple Allocator module

2017-02-14 Thread Laurent Pinchart
Hi Daniel, On Tuesday 14 Feb 2017 20:44:44 Daniel Vetter wrote: > On Tue, Feb 14, 2017 at 8:39 PM, Laurent Pinchart wrote: > > On Tuesday 14 Feb 2017 20:33:58 Daniel Vetter wrote: > >> On Mon, Feb 13, 2017 at 3:45 PM, Benjamin Gaignard wrote: > >>> This is the core of simple allocator module. > >>

[PATCH v2 3/3] cros_ec: Don't signal wake event for non-wake host events

2017-02-14 Thread Thierry Escande
From: Shawn Nematbakhsh The subset of wake-enabled host events is defined by the EC, but the EC may still send non-wake host events if we're in the process of suspending. Get the mask of wake-enabled host events from the EC and filter out non-wake events to prevent spurious aborted suspend attemp

[PATCH 5/8] net: stmmac: run stmmac_hw_fix_mac_speed when speed is valid

2017-02-14 Thread Corentin Labbe
This patch mutualise a bit by running stmmac_hw_fix_mac_speed() after the switch in case of valid speed. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmma

[PATCH 8/8] net: stmmac: invert the logic for dumping regs

2017-02-14 Thread Corentin Labbe
It is easier to follow the logic by removing the not operator Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/driv

Re: [PATCH v3] clk: add more managed APIs

2017-02-14 Thread Russell King - ARM Linux
On Tue, Feb 14, 2017 at 11:44:08AM -0800, Stephen Boyd wrote: > I'd prefer we didn't do this. Instead, make clk_put() drop any > prepare or enables that were done via that clk pointer. Mike > started to do this before[1], but we have some code that assumes > it can do: > > clk = clk_get(...)

[PATCH 7/8] net: stmmac: reduce indentation by adding a continue

2017-02-14 Thread Corentin Labbe
As suggested by Joe Perches, replacing the "if phydev" logic permit to reduce indentation in the for loop. Signed-off-by: Corentin Labbe --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 82 +++ 1 file changed, 40 insertions(+), 42 deletions(-) diff --git a/drivers/net

Re: [PATCH] tracing: hwlat: update old comment

2017-02-14 Thread Steven Rostedt
On Mon, 13 Feb 2017 12:25:17 -0500 Luiz Capitulino wrote: > The ftrace hwlat does support a cpumask. > > Signed-off-by: Luiz Capitulino Thanks! Applied. -- Steve > --- > kernel/trace/trace_hwlat.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/kernel/trace/tra

Re: [PATCH] drm: change connector disconnected debug message to an error

2017-02-14 Thread Daniel Vetter
On Fri, Feb 10, 2017 at 09:29:07AM -0700, Shuah Khan wrote: > On 02/03/2017 01:06 AM, Daniel Vetter wrote: > > On Thu, Feb 02, 2017 at 10:25:44AM -0700, Shuah Khan wrote: > >> On 02/02/2017 01:32 AM, Jani Nikula wrote: > >>> On Thu, 02 Feb 2017, Shuah Khan wrote: > Change drm_helper_probe_sin

Re: [PATCH] clk: qcom: Do not drop device node twice

2017-02-14 Thread Stephen Boyd
On 02/11, Guenter Roeck wrote: > of_find_node_by_name() drops the reference to a passed device node. > It is not necessary to drop it again, and doing so may result in the > device node being released prematurely. > > Cc: Rob Herring > Signed-off-by: Guenter Roeck > --- Applied to clk-next --

Re: [PATCH tip/master] tracing/probe: Show subsystem name in messages

2017-02-14 Thread Steven Rostedt
On Tue, 7 Feb 2017 20:21:28 +0900 Masami Hiramatsu wrote: > Show "trace_probe:", "trace_kprobe:" and "trace_uprobe:" > headers for each warning/error/info message. This will > help people to notice that kprobe/uprobe events caused > those messages. > > Signed-off-by: Masami Hiramatsu Applied.

[PATCH v2 1/9] staging: rtl8192u: fixing white space issue

2017-02-14 Thread simran singhal
Fix the following checkpatch.pl error and warnings: WARNING: please, no space before tabs Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h b/d

[PATCH v2 2/9] staging: rtl8192u: Adding space after struct definition

2017-02-14 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h b/drivers/staging

[PATCH v2 3/9] staging: rtl8192u: Adding space after enum and struct definition

2017-02-14 Thread simran singhal
Fixes checkpatch.pl warning: WARNING: missing space after struct definition WARNING: missing space after enum definition Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h | 38 - 1 file changed, 19 insertions(+), 19 deletions(-) diff --git

Re: [PATCH v2 07/10] mm, compaction: restrict async compaction to pageblocks of same migratetype

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:40PM +0100, Vlastimil Babka wrote: > The migrate scanner in async compaction is currently limited to > MIGRATE_MOVABLE > pageblocks. This is a heuristic intended to reduce latency, based on the > assumption that non-MOVABLE pageblocks are unlikely to contain movable p

Re: [PATCH v2 1/2] drm/cma-helper: Add multi buffer support for cma fbdev

2017-02-14 Thread Daniel Vetter
On Mon, Feb 13, 2017 at 11:20:51AM +, Daniel Stone wrote: > Hi Maxime, > > On 13 February 2017 at 10:54, Maxime Ripard > wrote: > > On Sun, Feb 12, 2017 at 02:28:11PM +0200, Laurent Pinchart wrote: > >> On Thursday 02 Feb 2017 11:31:56 Maxime Ripard wrote: > >> > This patch add a config to su

[PATCH v2 4/9] staging: rtl8192u: blank lines aren't necessary before a close brace '}'

2017-02-14 Thread simran singhal
Fix checkpatch issues: "CHECK: Blank lines aren't necessary before a close brace '}'". Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rt

[PATCH] uapi: add missing install of dma-buf.h

2017-02-14 Thread Denys Dmytriyenko
From: Denys Dmytriyenko As part of c11e391da2a8fe973c3c2398452000bed505851e "dma-buf: Add ioctls to allow userspace to flush" a new uapi header file dma-buf.h was added, but an entry was not added on Kbuild to install it. This patch resolves this omission so that "make headers_install" installs t

Re: [PATCH v2] reset: Add i.MX7 SRC reset driver

2017-02-14 Thread Andrey Smirnov
On Tue, Feb 14, 2017 at 8:31 AM, Philipp Zabel wrote: > On Tue, 2017-02-14 at 07:46 -0800, Andrey Smirnov wrote: > [...] >> >> +enum imx7_src_registers { >> >> + SRC_PCIEPHY_RCR = 0x002c, >> >> + SRC_PCIEPHY_RCR_PCIEPHY_G_RST = BIT(1), >> > >> > What about the others resets? There's at

Re: [PATCH] kernel: tracing: use modern function declaration

2017-02-14 Thread Steven Rostedt
On Mon, 23 Jan 2017 13:24:45 +0100 Arnd Bergmann wrote: > We get a lot of harmless warnings about this header file at W=1 level > because of an unusual function declaration: > > kernel/trace/trace.h:766:1: error: 'inline' is not at beginning of > declaration [-Werror=old-style-declaration] > >

Re: Question about DEC Alpha memory ordering

2017-02-14 Thread Andrea Parri
On Wed, Feb 15, 2017 at 08:26:46AM +1300, Michael Cree wrote: > On Tue, Feb 14, 2017 at 12:35:58PM +0100, Andrea Parri wrote: > > On Mon, Feb 13, 2017 at 01:24:36PM -0800, Paul E. McKenney wrote: > > > > > > > > > C auto/C-LB

[PATCH v2 5/9] staging: rtl8192u: Use min_t instead of min

2017-02-14 Thread simran singhal
Use min_t instead of min function in ieee80211/ieee80211_wx.c fixed warning: WARNING: min() should probably be min_t(u8, network->ssid_len, 32) Signed-off-by: simran singhal --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH v3 08/14] mm: thp: enable thp migration in generic path

2017-02-14 Thread Zi Yan
Hi Kirill, I just wonder if you have time to take a look at this patch, since it is based on your page_vma_mapped_walk() function and I also changed your page_vma_mapped_walk() code to beware of pmd_migration_entry. Thanks. On 5 Feb 2017, at 10:12, Zi Yan wrote: > From: Naoya Horiguchi > > Th

[PATCH v2 6/9] staging: rtl8192u: Fixing coding style issues

2017-02-14 Thread simran singhal
fixed errors and warnings: ERROR: spaces required around that '=' ERROR: spaces required around that '<' ERROR: space required before the open parenthesis '(' CHECK: spaces preferred around that '&' CHECK: spaces preferred around that '<<' ERROR: space required after that ',' ERROR: spaces required

[PATCH v2 7/9] staging: rtl8192u: Fixing style issues in r8180_93cx6.c

2017-02-14 Thread simran singhal
Fixing the following checkpatch.pl errors and warning: WARNING: Block comments use * on subsequent lines CHECK: Please don't use multiple blank lines CHECK: Alignment should match open parenthesis CHECK: spaces preferred around that '<<' CHECK: spaces preferred around that '-' CHECK: Alignment

[PATCH v2 8/9] staging: rtl8192u: Fixing style issues in r8180_93cx6.h

2017-02-14 Thread simran singhal
Fixing the following checkpatch.pl errors and warning: WARNING: Block comments use * on subsequent lines CHECK: Please don't use multiple blank lines Signed-off-by: simran singhal --- drivers/staging/rtl8192u/r8180_93cx6.h | 27 +-- 1 file changed, 13 insertions(+), 14 d

[PATCH v2 9/9] staging: rtl8192u: fixing block comments use * on subsequent lines

2017-02-14 Thread simran singhal
Fixed checkpatch.pl warning: WARNING: Block comments use * on subsequent lines Signed-off-by: simran singhal --- drivers/staging/rtl8192u/r8190_rtl8256.h | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8192u/r8190_rtl8256.h b/drivers/s

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread Daniel Vetter
On Tue, Feb 14, 2017 at 11:45:54AM -0800, John Stultz wrote: > On Tue, Feb 14, 2017 at 11:38 AM, Daniel Vetter wrote: > > On Tue, Feb 14, 2017 at 8:25 PM, John Stultz wrote: > >> Currently, on the hikey board, we have the adv7511 bridge wired > >> up to the kirin ade drm driver. Unfortunately, th

[PATCH] rapidio: use is_visible() to hide switch-specific attributes

2017-02-14 Thread Dmitry Torokhov
Instead of creating switch-specific attributes by hand, implement is_visible() method of attribute group and hide them when dealing with non-switch devices. This will ensure that all attributes are created together, before userspace gets notified of new device. Signed-off-by: Dmitry Torokhov ---

Re: [PATCH v2 6/9] staging: rtl8192u: Fixing coding style issues

2017-02-14 Thread Joe Perches
On Wed, 2017-02-15 at 01:44 +0530, simran singhal wrote: [] > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c > b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c [] > @@ -150,14 +150,15 @@ static inline char *rtl819x_translate_scan(struct > ieee80211_device *ieee, >

[PATCH] zorro: stop creating attributes by hand

2017-02-14 Thread Dmitry Torokhov
Instead of creating attributes one by one, define attribute_group array and attach it to bus->dev_groups, so that all needed attributes are created automatically when a new device is registered on the bus. Also switch to using standard DEVICE_ATTR_RO() macros. Signed-off-by: Dmitry Torokhov ---

Re: [PATCH] staging: fwserial: replace 'a' with '(a)' to avoid precedence issues

2017-02-14 Thread kbuild test robot
Hi Arushi, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.10-rc8 next-20170214] [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/Arushi-Singhal/staging-fwserial

Re: [PATCH] uapi: fix linux/if_pppol2tp.h userspace compilation errors

2017-02-14 Thread Dmitry V. Levin
On Tue, Feb 14, 2017 at 02:37:23PM -0500, David Miller wrote: > From: "Dmitry V. Levin" > Date: Tue, 14 Feb 2017 13:33:53 +0300 > > > In file included from /usr/include/linux/l2tp.h:12:0, > > from /usr/include/linux/if_pppol2tp.h:21, > > /usr/include/netinet/in.h:31:8: error: red

Re: [PATCH v3] clk: add more managed APIs

2017-02-14 Thread Guenter Roeck
On Tue, Feb 14, 2017 at 11:55:20AM -0800, Dmitry Torokhov wrote: > On Tue, Feb 14, 2017 at 11:44 AM, Stephen Boyd wrote: > > On 02/06, Dmitry Torokhov wrote: > >> On Mon, Jan 30, 2017 at 04:57:13PM -0800, Dmitry Torokhov wrote: > >> > When converting a driver to managed resources it is desirable t

Re: [PATCH v2 5/9] staging: rtl8192u: Use min_t instead of min

2017-02-14 Thread Joe Perches
On Wed, 2017-02-15 at 01:43 +0530, simran singhal wrote: > Use min_t instead of min function in ieee80211/ieee80211_wx.c > fixed warning: > WARNING: min() should probably be min_t(u8, network->ssid_len, 32) [] > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c > b/drivers/staging/rtl

Re: kvm: WARNING In kvm_apic_accept_events

2017-02-14 Thread Dmitry Vyukov
On Mon, Jan 23, 2017 at 5:29 PM, Paolo Bonzini wrote: > > On 23/01/2017 17:03, David Hildenbrand wrote: >> Am 22.01.2017 um 09:52 schrieb Dmitry Vyukov: >>> On Sat, Nov 12, 2016 at 2:56 AM, Dmitry Vyukov wrote: Hello, The following program triggers WARNING in kvm_apic_accept_events

Re: [PATCH 1/5] selftests: Fix selftests build to just build, not run tests

2017-02-14 Thread Michael Ellerman
On 15 February 2017 03:14:24 GMT+11:00, Shuah Khan wrote: >On 02/13/2017 07:09 PM, Michael Ellerman wrote: >> Michael Ellerman writes: >> >>> In commit 88baa78d1f31 ("selftests: remove duplicated all and clean >>> target"), the "all" target was removed from individual Makefiles and >>> added

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread Daniel Stone
Hi John, On 14 February 2017 at 19:25, John Stultz wrote: > +static enum drm_mode_status > +drm_connector_check_crtc_modes(struct drm_connector *connector, > + struct drm_display_mode *mode) > +{ > + struct drm_device *dev = connector->dev; > + const struc

[PATCH] staging: xgifb: function definition argument should also have an identifier name

2017-02-14 Thread Arushi Singhal
function definition argument 'struct vb_device_info *' should also have an identifier name. Signed-off-by: Arushi Singhal --- drivers/staging/xgifb/vb_init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/xgifb/vb_init.h b/drivers/staging/xgifb/vb_init.h inde

[PATCH linux v8 0/6] drivers: hwmon: Add On-Chip Controller driver

2017-02-14 Thread Eddie James
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The driver provides an i

[PATCH linux v8 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-02-14 Thread Eddie James
From: "Edward A. James" Add core support for polling the OCC for it's sensor data and parsing that data into sensor-specific information. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ| 42 + MAINTAINERS| 7 + drivers/hwmon/

[PATCH linux v8 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-02-14 Thread Eddie James
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER8 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

[PATCH linux v8 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-02-14 Thread Eddie James
From: "Edward A. James" Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as well as probe the entire driver from the I2C bus. I2C is the communication method between the BMC and the P8 OCC. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery Acked-by: Rob Herring

[PATCH linux v8 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-02-14 Thread Eddie James
From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register space. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- drivers/hwm

[PATCH linux v8 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-02-14 Thread Eddie James
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER9 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hw

Re: [PATCH] usercopy: add testcases to check zeroing on failure of usercopy

2017-02-14 Thread Kees Cook
On Mon, Feb 13, 2017 at 5:44 PM, Hoeun Ryu wrote: > > >> On Feb 14, 2017, at 4:24 AM, Kees Cook wrote: >> >>> On Mon, Feb 13, 2017 at 10:33 AM, Kees Cook wrote: On Sat, Feb 11, 2017 at 10:13 PM, Hoeun Ryu wrote: In the hardend usercopy, the destination buffer will be zeroed if co

[PATCH] usercopy: Add tests for all get_user() sizes

2017-02-14 Thread Kees Cook
The existing test was only exercising native unsigned long size get_user(). For completeness, we should check all sizes. Signed-off-by: Kees Cook --- lib/test_user_copy.c | 45 ++--- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/lib/test_

[PATCH linux v8 2/6] hwmon: occ: Add sysfs interface

2017-02-14 Thread Eddie James
From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ | 62 +++ drivers/hwmon/occ/Makefile| 2 +- drivers/hwmon/occ/occ_sysfs.c | 245 +++

Re: [PATCH] staging: xgifb: function definition argument should also have an identifier name

2017-02-14 Thread Joe Perches
On Wed, 2017-02-15 at 02:03 +0530, Arushi Singhal wrote: > function definition argument 'struct vb_device_info *' should also have > an identifier name. [] > diff --git a/drivers/staging/xgifb/vb_init.h b/drivers/staging/xgifb/vb_init.h [] > @@ -1,6 +1,6 @@ > #ifndef _VBINIT_ > #define _VBINIT_ >

<    1   2   3   4   5   6   7   8   >