[PATCH] iommu/amd: Fix boot warning when device 00:00.0 is not iommu

2016-02-23 Thread Joerg Roedel
On Tue, Feb 23, 2016 at 06:39:04PM +0700, Suravee Suthikulpanit wrote: > Actually, my V5 is rebased from tips which has moved several files. > I think we might need to create a separate patch series to fix this > issue in older kernels. Which branch should I rebase my changes for > the older kernel

[PATCH] ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn

2016-02-23 Thread Joe Perches
The existing logging macros are fairly large and converting the macros to functions make the object code smaller. Use %pV and __builtin_return_address(0) as appropriate. $ size fs/ubifs/built-in.o* textdata bss dec hex filename 575831 309688 161312 1046831 ff92f fs/ubifs/b

Re: [PATCH] lib/bug.c: use common WARN helper

2016-02-23 Thread Heiko Carstens
On Mon, Feb 22, 2016 at 09:54:17PM -0600, Josh Poimboeuf wrote: > The traceoff_on_warning option doesn't have any effect on s390, powerpc, > arm64, parisc, and sh because there are two different types of WARN > implementations: > > 1) The above mentioned architectures treat WARN() as a special cas

Re: [PATCH v3 00/11] KVM: x86: track guest page access

2016-02-23 Thread Paolo Bonzini
On 23/02/2016 06:44, Tian, Kevin wrote: >> From: Song, Jike >> Sent: Tuesday, February 23, 2016 11:02 AM >> >> +Kevin >> >> On 02/22/2016 06:05 PM, Xiao Guangrong wrote: >>> >>> On 02/19/2016 08:00 PM, Paolo Bonzini wrote: I still have a doubt: how are you going to handle invalidation o

Re: [PATCH v12 1/5] efi: ARM/arm64: ignore DT memory nodes instead of removing them

2016-02-23 Thread Will Deacon
On Tue, Feb 23, 2016 at 11:58:05AM +, Mark Rutland wrote: > On Mon, Feb 22, 2016 at 05:58:19PM -0800, David Daney wrote: > > From: Ard Biesheuvel > > > > There are two problems with the UEFI stub DT memory node removal > > routine: > > - it deletes nodes as it traverses the tree, which happen

[PATCH] char: xillybus: Fix internal data structure initialization

2016-02-23 Thread Eli Billauer
Signed-off-by: Eli Billauer --- drivers/char/xillybus/xillybus_core.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/char/xillybus/xillybus_core.c b/drivers/char/xillybus/xillybus_core.c index 77d6c12..dcd19f3 100644 --- a/drivers/char/xillybus/xillybus_core

Re: [PATCH v12 1/5] efi: ARM/arm64: ignore DT memory nodes instead of removing them

2016-02-23 Thread Ard Biesheuvel
On 23 February 2016 at 13:16, Will Deacon wrote: > On Tue, Feb 23, 2016 at 11:58:05AM +, Mark Rutland wrote: >> On Mon, Feb 22, 2016 at 05:58:19PM -0800, David Daney wrote: >> > From: Ard Biesheuvel >> > >> > There are two problems with the UEFI stub DT memory node removal >> > routine: >> >

Re: [RFC PATCH 1/2] memremap: add arch specific hook for MEMREMAP_WB mappings

2016-02-23 Thread Ard Biesheuvel
On 23 February 2016 at 13:03, Ard Biesheuvel wrote: > On 23 February 2016 at 12:58, Russell King - ARM Linux > wrote: >> On Mon, Feb 22, 2016 at 09:35:24PM +0100, Ard Biesheuvel wrote: >>> OK, thanks for the historical context. >>> >>> So what is your opinion on this series, i.e., to wire up memr

Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield()

2016-02-23 Thread Peter Zijlstra
On Fri, Feb 12, 2016 at 06:10:20PM -0500, Steven Rostedt wrote: > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > index cd64c979d0e1..1dd180cda574 100644 > --- a/kernel/sched/deadline.c > +++ b/kernel/sched/deadline.c > @@ -735,7 +735,7 @@ static void update_curr_dl(struct rq *rq)

Re: [PATCH 0/8] X.509: Software public key subtype changes

2016-02-23 Thread Mimi Zohar
On Tue, 2016-02-23 at 10:16 +, David Howells wrote: > Mimi Zohar wrote: > > > To measure and appraise just the kexec initramfs, define a policy > > containing: > > Doesn't this require a TPM? For appraising file signatures, a TPM is definitely not required! Even in the case of making sure

RE: Interesting csd deadlock on ARC

2016-02-23 Thread Noam Camus
>From: Peter Zijlstra [mailto:pet...@infradead.org] >Sent: Tuesday, February 23, 2016 12:40 PM >The only requirement for irq_work is that it runs after the NMI completes and >runs from regular IRQ context. >There are no strict interrupt priority >requirements, only that it happens. We here alr

Re: [PATCH] usb: musb: host: Fix NULL pointer dereference in SMP environment

2016-02-23 Thread Felipe Balbi
Hi, Liu Xiang writes: > In multi-core SoC, if enable USB endpoint/transmit urb/disable > USB endpoint repeatedly,it can cause a NULL pointer dereference bug: > > Unable to handle kernel NULL pointer dereference at virtual address 0010 > pgd = d3eb4000 > [0010] *pgd= > Internal e

Re: [PATCH v2] mm,oom: exclude oom_task_origin processes if they are OOM-unkillable.

2016-02-23 Thread Michal Hocko
On Mon 22-02-16 17:06:29, David Rientjes wrote: > On Thu, 18 Feb 2016, Michal Hocko wrote: > > > > Anyway, this is NACK'd since task->signal->oom_score_adj is checked under > > > task_lock() for threads with memory attached, that's the purpose of > > > finding the correct thread in oom_badness()

Re: [PATCH 4/4] x86/mce/AMD: Add comments for easier understanding

2016-02-23 Thread Borislav Petkov
On Tue, Feb 16, 2016 at 03:45:11PM -0600, Aravind Gopalakrishnan wrote: > In an attempt to help folks not very familiar with the code to > understand what the code is doing, adding a bit of helper > comments around some more important functions in the driver > to describe them. > > No functional c

Re: [PATCH 1/4] EDAC, MCE, AMD: Enable error decoding of Scalable MCA errors

2016-02-23 Thread Borislav Petkov
On Tue, Feb 16, 2016 at 03:45:08PM -0600, Aravind Gopalakrishnan wrote: > For Scalable MCA enabled processors, errors are listed > per IP block. And since it is not required for an IP to > map to a particular bank, we need to use HWID and McaType > values from the MCx_IPID register to figure out wh

Re: [PATCH 2/4] x86/mce/AMD: Fix logic to obtain block address

2016-02-23 Thread Borislav Petkov
On Tue, Feb 16, 2016 at 03:45:09PM -0600, Aravind Gopalakrishnan wrote: > In upcoming processors, the BLKPTR field is no longer used > to indicate the MSR number of the additional register. > Insted, it simply indicates the prescence of additional MSRs. > > Fixing the logic here to gather MSR addr

[PATCH] ARM: dts: rockchip: add mipi_dsi to VIO power domain on rk3288

2016-02-23 Thread John Keeping
The MIPI controllers are part of the VIO power domain so add the necessary property to indicate this for the controller we support. Signed-off-by: John Keeping --- arch/arm/boot/dts/rk3288.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/

Re: [PATCH 0/4] serial: omap: robustify for high speed transfers

2016-02-23 Thread Sebastian Andrzej Siewior
On 02/23/2016 10:59 AM, Sekhar Nori wrote: >> With the am335x (Beaglebone Black, eDMA engine) I see 1000 DMA >> interrupts and 1000 spurious UART interrupts. The spurious UART >> interrupts arrive 30-50us _before_ the DMA interrupts. Always. >> >> If I disable UART timeout interrupts (RDI), the sam

[PATCH] fbdev: n411: check return value

2016-02-23 Thread Sudip Mukherjee
We were not checking the return value of platform_device_add_data() which can fail. Signed-off-by: Sudip Mukherjee --- drivers/video/fbdev/n411.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/n411.c b/drivers/video/fbdev/n411.c index 935830f

Re: [PATCH 4/4] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers

2016-02-23 Thread Peter Zijlstra
On Mon, Feb 22, 2016 at 04:26:53PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Red Hat)" > > To have nanosecond output displayed in a more human readable format, its > nicer to convert it to a seconds format (XXX.Y). The problem is that > to do so, the numbers must be divided by

Re: linux-next: Tree for Feb 17

2016-02-23 Thread Sudip Mukherjee
On Wednesday 17 February 2016 11:07 PM, David Daney wrote: On 02/17/2016 03:52 AM, Sudip Mukherjee wrote: On Wed, Feb 17, 2016 at 04:39:21PM +1100, Stephen Rothwell wrote: Hi all, Changes since 20160216: since last few days build of mips cavium_octeon_defconfig is failing with the error: arc

Re: [PATCHv2 08/28] mm: postpone page table allocation until do_set_pte()

2016-02-23 Thread Kirill A. Shutemov
On Tue, Feb 16, 2016 at 09:17:17AM -0800, Dave Hansen wrote: > On 02/16/2016 06:26 AM, Kirill A. Shutemov wrote: > > On Fri, Feb 12, 2016 at 09:44:41AM -0800, Dave Hansen wrote: > >> On 02/11/2016 06:21 AM, Kirill A. Shutemov wrote: > >>> diff --git a/include/linux/mm.h b/include/linux/mm.h > >>> i

[PATCH] ARM: dts: stm32f429: Fix clocks referenced by GPIO banks

2016-02-23 Thread Maxime Coquelin
All the clocks referenced by the GPIO banks were not the good ones. Reported-by: Bruno Herrera Signed-off-by: Maxime Coquelin --- arch/arm/boot/dts/stm32f429.dtsi | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch

Re: [PATCH 3/4] sched/deadline: Tracepoints for deadline scheduler

2016-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2016 11:44:08 +0100 Peter Zijlstra wrote: > No it very much illustrates the problem and is a very clear indication > that tracepoints are an ABI. Yes they are. But note, they can change if nobody notices ;-) > > > > Heh, it's not really changing state. The code directly after t

Re: [PATCH] sched/deadline: Always calculate end of period on sched_yield()

2016-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2016 13:28:22 +0100 Peter Zijlstra wrote: > On Fri, Feb 12, 2016 at 06:10:20PM -0500, Steven Rostedt wrote: > > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > > index cd64c979d0e1..1dd180cda574 100644 > > --- a/kernel/sched/deadline.c > > +++ b/kernel/sched/deadli

Re: [PATCH] lib/bug.c: use common WARN helper

2016-02-23 Thread Prarit Bhargava
On 02/22/2016 10:54 PM, Josh Poimboeuf wrote: > The traceoff_on_warning option doesn't have any effect on s390, powerpc, > arm64, parisc, and sh because there are two different types of WARN > implementations: > > 1) The above mentioned architectures treat WARN() as a special case of a >BUG(

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-23 Thread Alexandre Torgue
2016-02-23 12:21 GMT+01:00 Joachim Eastwood : > On 23 February 2016 at 10:59, Alexandre Torgue > wrote: >> 2016-02-22 22:52 GMT+01:00 Joachim Eastwood : >>> On 22 February 2016 at 15:50, Alexandre Torgue >>> wrote: 2016-02-13 14:48 GMT+01:00 Joachim Eastwood : > On 3 February 2016 at

Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio

2016-02-23 Thread Arnd Bergmann
On Tuesday 23 February 2016 11:38:52 Marc Dietrich wrote: > Am Dienstag, 23. Februar 2016, 11:31:40 CET schrieb Arnd Bergmann: > > On Tuesday 23 February 2016 11:15:31 Arnd Bergmann wrote: > > > On Thursday 18 February 2016 21:04:49 Johannes Berg wrote: > > > > On Tue, 2016-01-26 at 09:42 +0100, Jo

Re: [PATCH 4/4] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers

2016-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2016 13:49:15 +0100 Peter Zijlstra wrote: > On Mon, Feb 22, 2016 at 04:26:53PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (Red Hat)" > > > > To have nanosecond output displayed in a more human readable format, its > > nicer to convert it to a seconds format (XXX.Y

Re: [PATCH 2/5] oom reaper: handle mlocked pages

2016-02-23 Thread Michal Hocko
On Mon 22-02-16 17:36:07, David Rientjes wrote: > On Wed, 3 Feb 2016, Michal Hocko wrote: > > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > > index 9a0e4e5f50b4..840e03986497 100644 > > --- a/mm/oom_kill.c > > +++ b/mm/oom_kill.c > > @@ -443,13 +443,6 @@ static bool __oom_reap_vmas(struct mm_stru

Re: [PATCH] HID: corsair: fix mapping of non-keyboard usages

2016-02-23 Thread Jiri Kosina
On Tue, 16 Feb 2016, =?UTF-8?q?Cl=C3=A9ment=20Vuchener?= wrote: > This fixes a bug where the Volume Up key was ignored because it uses the > same usage code as G18. Special Corsair usage codes are in the keyboard > page, other pages should be left to the generic driver. Applied, thanks. -- Ji

Re: [RFC/PATCH 1/1] format-patch: add an option to record base tree info

2016-02-23 Thread Dan Carpenter
Blergh... You want it machine readable and I want it human readable. I don't care so much about the cover letter but for the first patch then I really want something minimal (one line) and human readable. base tree/branch: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

Re: [PATCH] lib/bug.c: use common WARN helper

2016-02-23 Thread Steven Rostedt
On Mon, 22 Feb 2016 21:54:17 -0600 Josh Poimboeuf wrote: > The traceoff_on_warning option doesn't have any effect on s390, powerpc, > arm64, parisc, and sh because there are two different types of WARN > implementations: > > 1) The above mentioned architectures treat WARN() as a special case of

[PATCH] ARM: realview: hide unused 'pmu_device' object

2016-02-23 Thread Arnd Bergmann
The pmu_device is only accessed when CACHE_L2X0 is enabled, and we get a warning otherwise: mach-realview/realview_pbx.c:274:31: error: 'pmu_device' defined but not used [-Werror=unused-variable] This adds another #ifdef for it. Signed-off-by: Arnd Bergmann --- Linus, I'm not sure how long you

Re: [PATCH] ARM: realview: hide unused 'pmu_device' object

2016-02-23 Thread Linus Walleij
On Tue, Feb 23, 2016 at 2:35 PM, Arnd Bergmann wrote: > The pmu_device is only accessed when CACHE_L2X0 is enabled, > and we get a warning otherwise: > > mach-realview/realview_pbx.c:274:31: error: 'pmu_device' defined but not used > [-Werror=unused-variable] > > This adds another #ifdef for it.

[PATCH 1/1] mm: numa: Quickly fail allocations for NUMA balancing on full nodes

2016-02-23 Thread Mel Gorman
Commit 4167e9b2cf10 ("mm: remove GFP_THISNODE") removed the GFP_THISNODE flag combination due to confusing semantics. It noted that alloc_misplaced_dst_page() was one such user after changes made by commit e97ca8e5b864 ("mm: fix GFP_THISNODE callers and clarify"). Unfortunately when GFP_THISNODE wa

[PATCH] sched/wait: Fix docs on wait_event_freezable

2016-02-23 Thread Stafford Horne
I noticed the comment label wait_event was wrong a few times so fixing. Signed-off-by: Stafford Horne --- include/linux/wait.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/wait.h b/include/linux/wait.h index ae71a76..27d7a0a 100644 --- a/include/linux/wait.h

[PATCH 1/2] ARM: dts: rockchip: fix MIPI interrupt on rk3288

2016-02-23 Thread John Keeping
This isn't currently used by the driver but the correct value is 19 since DSIHOST0 is 51 in the TRM and the GIC offset requires 32 to be subtracted. Signed-off-by: John Keeping --- arch/arm/boot/dts/rk3288.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts

[PATCH 0/2] ARM: dts: rockchip: fix some interrupts on rk3288

2016-02-23 Thread John Keeping
None of these are used by drivers so these don't fix any bugs but maybe they'll save someone debugging time in the future. John Keeping (2): ARM: dts: rockchip: fix MIPI interrupt on rk3288 ARM: dts: rockchip: fix audio interrupts on rk3288 arch/arm/boot/dts/rk3288.dtsi | 6 +++--- 1 file ch

[PATCH 2/2] ARM: dts: rockchip: fix audio interrupts on rk3288

2016-02-23 Thread John Keeping
These must be translated from the values in the TRM by subtracting 32, which has not been done. The SPDIF interrupt is also off-by-one. Signed-off-by: John Keeping --- arch/arm/boot/dts/rk3288.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.

Re: [PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio

2016-02-23 Thread Marc Dietrich
Am Dienstag, 23. Februar 2016, 14:17:17 CET schrieb Arnd Bergmann: > On Tuesday 23 February 2016 11:38:52 Marc Dietrich wrote: > > Am Dienstag, 23. Februar 2016, 11:31:40 CET schrieb Arnd Bergmann: > > > On Tuesday 23 February 2016 11:15:31 Arnd Bergmann wrote: > > > > On Thursday 18 February 2016

[PATCH 07/27] mm, vmscan: Have kswapd only scan based on the highest requested zone

2016-02-23 Thread Mel Gorman
kswapd checks all eligible zones to see if they need balancing even if it was woken for a lower zone. This made sense when we reclaimed on a per-zone basis because we wanted to shrink zones fairly so avoid age-inversion problems. Ideally this is completely unnecessary when reclaiming on a per-node

[PATCH 01/27] mm, page_alloc: Use ac->classzone_idx instead of zone_idx(preferred_zone)

2016-02-23 Thread Mel Gorman
ac->classzone_idx is determined by the index of the preferred zone and cached to avoid repeated calculations. wake_all_kswapds() should use it instead of using zone_idx() within a loop. Signed-off-by: Mel Gorman --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[PATCH 04/27] mm, vmscan: Move lru_lock to the node

2016-02-23 Thread Mel Gorman
Node-based reclaim requires node-based LRUs and locking. This is a preparation patch that just moves the lru_lock to the node so later patches are easier to review. It is a mechanical change but note this patch makes contention worse because the LRU lock is hotter and direct reclaim and kswapd can

[RFC PATCH 00/27] Move LRU page reclaim from zones to nodes v2

2016-02-23 Thread Mel Gorman
This is a revisit of an RFC series from last year that moves LRUs from the zones to the node. It is based on mmotm from February 9th as it had to be rebased on top of work there and will not apply cleanly to 4.5-rc* Conceptually, this is simple but there are a lot of details. Some of the broad moti

[PATCH 03/27] mm, vmstat: Add infrastructure for per-node vmstats

2016-02-23 Thread Mel Gorman
VM statistic counters for reclaim decisions are zone-based. If the kernel is to reclaim on a per-node basis then we need to track per-node statistics but there is no infrastructure for that. The most notable change is that the old node_page_state is renamed to sum_zone_node_page_state. The new nod

[PATCH 05/27] mm, vmscan: Move LRU lists to node

2016-02-23 Thread Mel Gorman
This moves the LRU lists from the zone to the node and all related data such as counters, tracing, congestion tracking and writeback tracking. This is mostly a mechanical patch but note that it introduces a number of anomalies. For example, the scans are per-zone but using per-node counters. We als

[PATCH 08/27] mm, vmscan: Make kswapd reclaim in terms of nodes

2016-02-23 Thread Mel Gorman
Patch "mm: vmscan: Begin reclaiming pages on a per-node basis" started thinking of reclaim in terms of nodes but kswapd is still zone-centric. This patch gets rid of many of the node-based versus zone-based decisions. o A node is considered balanced when any eligible lower zone is balanced. This

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-23 Thread Gabriel L. Somlo
On Tue, Feb 23, 2016 at 07:07:36AM +0200, Michael S. Tsirkin wrote: > On Mon, Feb 22, 2016 at 03:26:23PM -0500, Gabriel L. Somlo wrote: > > On Mon, Feb 22, 2016 at 10:14:50PM +0200, Michael S. Tsirkin wrote: > > > On Sun, Feb 21, 2016 at 08:06:17AM -0500, Gabriel L. Somlo wrote: > > > > > > +static

[PATCH 02/27] mm, vmscan: Check if cpusets are enabled during direct reclaim

2016-02-23 Thread Mel Gorman
Direct reclaim obeys cpusets but misses the cpusets_enabled() check. The overhead is unlikely to be measurable in the direct reclaim path which is expensive but there is no harm is doing it. Signed-off-by: Mel Gorman --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 12/27] mm: vmscan: Do not reclaim from kswapd if there is any eligible zone

2016-02-23 Thread Mel Gorman
kswapd scans from highest to lowest for a zone that requires balancing. This was necessary when reclaim was per-zone to fairly age pages on lower zones. Now that we are reclaiming on a per-node basis, any eligible zone can be used and pages will still be aged fairly. This patch avoids reclaiming ex

[PATCH 10/27] mm, vmscan: By default have direct reclaim only shrink once per node

2016-02-23 Thread Mel Gorman
Direct reclaim iterates over all zones in the zonelist and shrinking them but this is in conflict with node-based reclaim. In the default case, only shrink once per node. Signed-off-by: Mel Gorman --- mm/vmscan.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) d

[PATCH 11/27] mm, vmscan: Clear congestion, dirty and need for compaction on a per-node basis

2016-02-23 Thread Mel Gorman
Congested and dirty tracking of a node and whether reclaim should stall is still based on zone activity. This patch considers whether the kernel should stall based on node-based reclaim activity. Signed-off-by: Mel Gorman --- mm/vmscan.c | 24 1 file changed, 12 insertio

[PATCH 06/27] mm, vmscan: Begin reclaiming pages on a per-node basis

2016-02-23 Thread Mel Gorman
This patch makes reclaim decisions on a per-node basis. A reclaimer knows what zone is required by the allocation request and skips pages from higher zones. In many cases this will be ok because it's a GFP_HIGHMEM request of some description. On 64-bit, ZONE_DMA32 requests will cause some problems

[PATCH 09/27] mm, vmscan: Simplify the logic deciding whether kswapd sleeps

2016-02-23 Thread Mel Gorman
kswapd goes through some complex steps trying to figure out if it should stay awake based on the classzone_idx and the requested order. It is unnecessarily complex and passes in an invalid classzone_idx to balance_pgdat(). What matters most of all is whether a larger order has been requsted and wh

Re: [PATCH] Staging: comedi: contec_pci_dio: fixed comment blocks coding style issues

2016-02-23 Thread Philippe Loctaux
On Tue, Feb 23, 2016 at 10:58:03AM +, Ian Abbott wrote: > Thanks! Sweet! Does that means my patch is accepted and maybe will be applied? :) -- Philippe Loctaux p...@philippeloctaux.com

[PATCH 14/27] mm, memcg: Move memcg limit enforcement from zones to nodes

2016-02-23 Thread Mel Gorman
Memcg was broken by the move of all LRUs to nodes because it is tracking limits on a per-zone basis while receiving reclaim requests on a per-node basis. This patch moves limit enforcement to the nodes. Technically, all the variable names should also change but people are already familiar by the me

[PATCH 13/27] mm, vmscan: Make shrink_node decisions more node-centric

2016-02-23 Thread Mel Gorman
Earlier patches focused on having direct reclaim and kswapd use data that is node-centric for reclaiming but shrink_node() itself still uses too much zone information. This patch removes unnecessary zone-based information with the most important decision being whether to continue reclaim or not. So

[PATCH v4 0/8] fix debugfs file removal races

2016-02-23 Thread Nicolai Stange
The changes from v3 to v4 are style changes regarding the Coccinelle part only -- it has been split off from former [3/7] into its own patch [4/8]. The big step has been from v2 to v3 and these changes haven't got any review yet. Original v2 thread is here: http://lkml.kernel.org/g/87fux3memd.

[PATCH v4 1/8] debugfs: prevent access to possibly dead file_operations at file open

2016-02-23 Thread Nicolai Stange
Nothing prevents a dentry found by path lookup before a return of __debugfs_remove() to actually get opened after that return. Now, after the return of __debugfs_remove(), there are no guarantees whatsoever regarding the memory the corresponding inode's file_operations object had been kept in. Sin

[PATCH 15/27] mm, workingset: Make working set detection node-aware

2016-02-23 Thread Mel Gorman
Working set and refault detection is still zone-based, fix it. Signed-off-by: Mel Gorman --- include/linux/mmzone.h | 6 +++--- mm/vmstat.c| 6 +++--- mm/workingset.c| 37 + 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a

[PATCH v4 2/8] debugfs: prevent access to removed files' private data

2016-02-23 Thread Nicolai Stange
Upon return of debugfs_remove()/debugfs_remove_recursive(), it might still be attempted to access associated private file data through previously opened struct file objects. If that data has been freed by the caller of debugfs_remove*() in the meanwhile, the reading/writing process would either enc

Re: [PATCH] Staging: comedi: mite: added spaces around | and *

2016-02-23 Thread Philippe Loctaux
On Tue, Feb 23, 2016 at 11:07:15AM +, Ian Abbott wrote: > Even better: just remove the macro, as it isn't used. How can I do that? I'm asking that because my C knowledge isn't very good :P -- Philippe Loctaux p...@philippeloctaux.com

Re: [PATCH 00/13] arm-cci: PMU driver updates for 4.6

2016-02-23 Thread Suzuki K. Poulose
On 23/02/16 11:40, Will Deacon wrote: On Tue, Feb 23, 2016 at 10:49:42AM +, Suzuki K Poulose wrote: Here are some fixes and updates for arm-cci pmu driver targeting v4.6, applies on top of v4.5-rc5. Highlights include : - Support for CoreLink CCI-550 PMU - Reliable writes to PMU Counter

[PATCH v4 4/8] debugfs, coccinelle: check for obsolete DEFINE_SIMPLE_ATTRIBUTE() usage

2016-02-23 Thread Nicolai Stange
In order to protect against file removal races, debugfs files created via debugfs_create_file() now get wrapped by a struct file_operations at their opening. If the original struct file_operations are known to be safe against removal races by themselves already, the proxy creation may be bypassed

[PATCH v4 3/8] debugfs: add support for self-protecting attribute file fops

2016-02-23 Thread Nicolai Stange
In order to protect them against file removal issues, debugfs_create_file() creates a lifetime managing proxy around each struct file_operations handed in. In cases where this struct file_operations is able to manage file lifetime by itself already, the proxy created by debugfs is a waste of resou

[PATCH v4 5/8] debugfs: unproxify integer attribute files

2016-02-23 Thread Nicolai Stange
Currently, the struct file_operations associated with the integer attribute style files created through the debugfs_create_*() helpers are not file lifetime aware as they are defined by means of DEFINE_SIMPLE_ATTRIBUTE(). Thus, a lifetime managing proxy is created around the original fops each tim

Re: [PATCH 1/8] arm64: move acpi/dt decision earlier in boot process

2016-02-23 Thread Graeme Gregory
On Mon, Feb 22, 2016 at 04:45:17PM +0100, Matthias Brugger wrote: > > > On 22/02/16 14:46, Aleksey Makarov wrote: > >From: Leif Lindholm > > > >In order to support selecting earlycon via either ACPI or DT, move > >the decision on whether to attempt ACPI configuration into the > >early_param hand

[PATCH 3/3] ARM: omap1/ams-delta: warn about failed regulator enable

2016-02-23 Thread Arnd Bergmann
The modem pm handler in the ams-delta board uses regulator_enable() but does not check for a successful return code: board-ams-delta.c:521:3: error: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Werror=unused-result] It is not easy to propagate that re

[PATCH 1/3] ARM: omap2: mark unused functions as __maybe_unused

2016-02-23 Thread Arnd Bergmann
The omap_generic_init() and omap_hwmod_init_postsetup() functions are used in the initialization for all OMAP2+ SoC types, but in the extreme case that those are all disabled, we get a warning about unused code: arch/arm/mach-omap2/io.c:412:123: error: 'omap_hwmod_init_postsetup' defined but not

[PATCH 2/3] ARM: omap1: avoid unused variable warning

2016-02-23 Thread Arnd Bergmann
The osk_mistral_init() contains code that is only compiled when CONFIG_PM is set, but it uses a variable that is declared outside of the #ifdef: arch/arm/mach-omap1/board-osk.c: In function 'osk_mistral_init': arch/arm/mach-omap1/board-osk.c:513:7: warning: unused variable 'ret' [-Wunused-variabl

[PATCH v4 6/8] debugfs: unproxify files created through debugfs_create_bool()

2016-02-23 Thread Nicolai Stange
Currently, the struct file_operations fops_bool associated with files created through the debugfs_create_bool() helpers are not file lifetime aware. Thus, a lifetime managing proxy is created around fops_bool each time such a file is opened which is an unnecessary waste of resources. Implement fi

[PATCH v3] mptbase: fixup error handling paths in mpt_attach()

2016-02-23 Thread Ewan D. Milne
From: "Ewan D. Milne" mpt_attach() was not checking for the failure to create fw_event_q. Also, iounmap() was not being called in all error cases after ioremap() had been called by mpt_mapresources(). Reported-by: Insu Yun Reviewed-by: Tomas Henzl Signed-off-by: Ewan D. Milne --- drivers/mes

Re: [PATCH v2] ASoC: wm9713: fix regmap free path

2016-02-23 Thread Charles Keepax
On Mon, Feb 22, 2016 at 11:35:44PM +0100, Robert Jarzmik wrote: > In the conversion to regmap, I assumed that the devm_() variant could be > used in the soc probe function. > > As a mater of fact with the current code the regmap is freed twice > because of the devm_() call: > (mutex_lock) from []

[PATCH v4 7/8] debugfs: unproxify files created through debugfs_create_blob()

2016-02-23 Thread Nicolai Stange
Currently, the struct file_operations fops_blob associated with files created through the debugfs_create_blob() helpers are not file lifetime aware. Thus, a lifetime managing proxy is created around fops_blob each time such a file is opened which is an unnecessary waste of resources. Implement fi

Re: [PATCH v3] coccinelle: add style check for assignment in if

2016-02-23 Thread Julia Lawall
On Mon, 22 Feb 2016, Kris Borer wrote: > Add a semantic patch for fixing some cases of checkpatch.pl error: > > ERROR: do not use assignment in if condition > > Signed-off-by: Kris Borer Acked-by: Julia Lawall > --- > changes since v2 > - added comment warning that changes may not work wel

Re: [PATCH 4/4] tracing: Add __print_ns_to_secs() and __print_ns_without_secs() helpers

2016-02-23 Thread Peter Zijlstra
On Tue, Feb 23, 2016 at 08:17:57AM -0500, Steven Rostedt wrote: > On Tue, 23 Feb 2016 13:49:15 +0100 > Peter Zijlstra wrote: > > > On Mon, Feb 22, 2016 at 04:26:53PM -0500, Steven Rostedt wrote: > > > From: "Steven Rostedt (Red Hat)" > > > > > > To have nanosecond output displayed in a more hum

[PATCH v4 8/8] debugfs: unproxify files created through debugfs_create_u32_array()

2016-02-23 Thread Nicolai Stange
The struct file_operations u32_array_fops associated with files created through debugfs_create_u32_array() has been lifetime aware already: everything needed for subsequent operation is copied to a ->f_private buffer at file opening time in u32_array_open(). Now, ->open() is always protected agains

Re: [PATCH v2] ASoC: wm9713: fix regmap free path

2016-02-23 Thread Lars-Peter Clausen
On 02/23/2016 03:00 PM, Charles Keepax wrote: > On Mon, Feb 22, 2016 at 11:35:44PM +0100, Robert Jarzmik wrote: >> In the conversion to regmap, I assumed that the devm_() variant could be >> used in the soc probe function. >> >> As a mater of fact with the current code the regmap is freed twice >>

Re: [PATCH 1/1] intel_pstate: Increase hold-off time before busyness is scaled

2016-02-23 Thread Mel Gorman
On Thu, Feb 18, 2016 at 01:09:26PM -0800, Doug Smythies wrote: > >> +++ b/drivers/cpufreq/intel_pstate.c > >> @@ -999,7 +999,7 @@ static inline int32_t > >> get_target_pstate_use_performance(struct cpudata *cpu) > >> sample_time = pid_params.sample_rate_ms * USEC_PER_MSEC; > >> du

[PATCH 1/3] ARM: orion: only select I2C_BOARDINFO when using I2C

2016-02-23 Thread Arnd Bergmann
If we select I2C_BOARDINFO and I2C is disabled, we get a harmless Kconfig warning: warning: (MACH_DOVE_DB && MACH_DB88F5281 && MACH_RD88F5182 && MACH_RD88F5182_DT && MACH_KUROBOX_PRO && MACH_DNS323 && MACH_LINKSTATION_PRO && MACH_LINKSTATION_LSCHL && MACH_LINKSTATION_LS_HGL && MACH_NET2BIG) sele

[PATCH 2/3] ARM: mv78xx0: avoid unused function warning

2016-02-23 Thread Arnd Bergmann
mv78xx0 produces a harmless warning when CONFIG_CACHE_FEROCEON_L2 is disabled: arch/arm/mach-mv78xx0/common.c:385:19: warning: 'is_l2_writethrough' defined but not used [-Wunused-function] This avoids the warning by changing the #ifdef to an if(IS_ENABLED()) check with the same resulting object

[PATCH 3/3] ARM: mvebu: mark mvebu_hwcc_pci_nb as __maybe_unused

2016-02-23 Thread Arnd Bergmann
The coherency notifier block is only used when CONFIG_PCI is enabled, otherwise we get a warning: arch/arm/mach-mvebu/coherency.c:110:30: warning: 'mvebu_hwcc_pci_nb' defined but not used [-Wunused-variable] There is no nice way to use an if(IS_ENABLED()) check here to let the compiler know that

[PATCH] ARM: socfpga: hide unused functions

2016-02-23 Thread Arnd Bergmann
The cpu_die and cpu_kill callbacks are only used when CONFIG_HOTPLUG_CPU is enabled, otherwise we get a warning about them: arch/arm/mach-socfpga/platsmp.c:102:13: error: 'socfpga_cpu_die' defined but not used [-Werror=unused-function] arch/arm/mach-socfpga/platsmp.c:115:12: error: 'socfpga_cpu_k

[PATCH 00/12] ARM: dts: apq8064: spi and i2c dt patches

2016-02-23 Thread Srinivas Kandagatla
Hi Andy, Here are some apq8064 dts patches which are mostly to do with spi and i2c. Most of the patches are additions of missing nodes required for ifc6410. thanks, srini Srinivas Kandagatla (12): ARM: dts: qcom: fix i2c lables to be inline with others ARM: dts: apq8064: move pinctrls to d

[PATCH 01/12] ARM: dts: qcom: fix i2c lables to be inline with others

2016-02-23 Thread Srinivas Kandagatla
This patch fixes i2c lables to be inline with serial labels. The reason to do this is that it would look odd if we add aliases in the board file along with serial. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 2 +- arch/arm/boot/dts/qcom-apq8064.dtsi

[PATCH V5 00/10] perf/amd/iommu: Enable multi-IOMMU support

2016-02-23 Thread Suravee Suthikulpanit
This is a two-part patch series: Part1: 1-4 : Introduce a workaround for the current AMD IOMMU perf initialization issue in some existing KV and CZ platforms, where it fails to write to IOMMU perf counter as reported by Andreas Hartmann here (http://comments.gmane.org/gmane.linux.kernel.pci/49147)

[PATCH V5 01/10] perf/amd/iommu: Misc fix up perf_iommu_read

2016-02-23 Thread Suravee Suthikulpanit
This patch contains the follow minor fixup: * Fixed overflow handling since u64 delta would lose the MSB sign bit. * Remove unnecessary local64_set(). * Coding style and make use of GENMASK_ULL macro. Cc: Peter Zijlstra Cc: Borislav Petkov Signed-off-by: Suravee Suthikulpanit --- arch/x8

[PATCH V5 02/10] perf/amd/iommu: Consolidate and move perf_event_amd_iommu header

2016-02-23 Thread Suravee Suthikulpanit
From: Suravee Suthikulpanit First, this patch move arch/x86/events/amd/iommu.h to arch/x86/include/asm/perf/amd/iommu.h so that we easily include it in both perf-amd-iommu and amd-iommu drivers. Then, we consolidate declaration of AMD IOMMU performance counter APIs into one file. Reviewed-by: J

[PATCH 02/12] ARM: dts: apq8064: move pinctrls to dedicated dtsi

2016-02-23 Thread Srinivas Kandagatla
As there are more pinctrls to come, moving these to dedicated dtsi makes more sense. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-pins.dtsi | 58 arch/arm/boot/dts/qcom-apq8064.dtsi | 57 +-- 2 files chang

[PATCH 12/12] ARM: dts: ifc6410: add correct aliases to the i2c and spi bus

2016-02-23 Thread Srinivas Kandagatla
This patch adds correct aliases to spi and i2c buses so that they get correct matching bus numbers. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/bo

[PATCH 04/12] ARM: dts: apq8064: add i2c sleep pinctrl states.

2016-02-23 Thread Srinivas Kandagatla
This patch adds missing i2c pinctrl sleep states. Also add 16mA drive strength to the pins so that we can detect wide range of i2c devices on the other side of level shifters. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-pins.dtsi | 36 a

[PATCH 03/12] ARM: dts: apq8064: add pci support in CM QS600

2016-02-23 Thread Srinivas Kandagatla
This patch adds PCIE support to APQ8064, tested with Ethernet on Compulab QS600 board. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-cm-qs600.dts

[PATCH V5 08/10] perf/amd/iommu: Rename struct perf_amd_iommu to perf_iommu

2016-02-23 Thread Suravee Suthikulpanit
This patch shortens the struct name perf_amd_iommu to perf_iommu since the old name is too long. The new name should be sufficient since the structure is only used within this file. We also clean up variable name for this structure in various functions. Cc: Borislav Petkov Signed-off-by: Suravee

[PATCH V5 07/10] perf/amd/iommu: Clean up get_next_available_iommu_bnk_cntr

2016-02-23 Thread Suravee Suthikulpanit
This patch cleans up the coding style of this function. This should not affect the logic and functionality. Cc: Borislav Petkov Signed-off-by: Suravee Suthikulpanit --- arch/x86/events/amd/iommu.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/arch/x86/e

[PATCH 06/12] ARM: dts: ifc6410: enable spi device on expansion

2016-02-23 Thread Srinivas Kandagatla
This patch enables spi device on the 30 pin expansion connector. Signed-off-by: Srinivas Kandagatla --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.

Re: regulator: core: Request GPIO before creating sysfs entries

2016-02-23 Thread Jon Hunter
Hi Krzysztof, On 23/02/16 13:56, Krzysztof Adamski wrote: > On Tue, Feb 23, 2016 at 01:22:38PM +, Jon Hunter wrote: >> Hi Mark, Krzysztof, >> >> It appears that commit daad134d6649 ("regulator: core: Request GPIO >> before creating sysfs entries") breaks boot on tegra124-nyan-big in >> -next t

Re: [PATCH v3 05/11] KVM: page track: introduce kvm_page_track_{add,remove}_page

2016-02-23 Thread Paolo Bonzini
On 23/02/2016 05:18, Xiao Guangrong wrote: > > > On 02/19/2016 07:37 PM, Paolo Bonzini wrote: >> >> >> On 14/02/2016 12:31, Xiao Guangrong wrote: >>> +/* does tracking count wrap? */ >>> +WARN_ON((count > 0) && (val + count < val)); >> >> This doesn't work, because "val + count" is an i

Re: [PATCH] irqchip/gicv3-its: Don't allow devices whose ID is outside range

2016-02-23 Thread Shanker Donthineni
Hi Marc, On 02/23/2016 02:51 AM, Marc Zyngier wrote: On 23/02/16 03:57, Shanker Donthineni wrote: We are not checking whether the requested device identifier fits into table or not. The ITS MAPD command fails if 'Device ID' is outside of device table range. Add a simple validation check to avo

Re: [PATCH v8 1/4] firmware: introduce sysfs driver for QEMU's fw_cfg device

2016-02-23 Thread Michael S. Tsirkin
On Tue, Feb 23, 2016 at 08:47:00AM -0500, Gabriel L. Somlo wrote: > On Tue, Feb 23, 2016 at 07:07:36AM +0200, Michael S. Tsirkin wrote: > > On Mon, Feb 22, 2016 at 03:26:23PM -0500, Gabriel L. Somlo wrote: > > > On Mon, Feb 22, 2016 at 10:14:50PM +0200, Michael S. Tsirkin wrote: > > > > On Sun, Feb

<    1   2   3   4   5   6   7   8   9   10   >