Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock when scheduling workqueue elements")

2017-02-14 Thread h...@lst.de
On Tue, Feb 14, 2017 at 02:46:41PM +, Dexuan Cui wrote: > > From: h...@lst.de [mailto:h...@lst.de] > > Sent: Tuesday, February 14, 2017 22:29 > > To: Dexuan Cui > > Subject: Re: Boot regression (was "Re: [PATCH] genhd: Do not hold event lock > > when scheduling workqueue

Re: [PATCH 1/2] pwm: loongson1: Add PWM driver for Loongson1 SoC

2017-02-14 Thread Marcin Nowakowski
Hi Yang, On 13.02.2017 16:28, Yang Ling wrote: Add support for the PWM controller present in Loongson1 family of SoCs. Signed-off-by: Yang Ling --- drivers/pwm/Kconfig | 9 +++ drivers/pwm/Makefile| 1 + drivers/pwm/pwm-loongson1.c | 169

Re: [PATCH v2 0/3] x86/vdso: Add Hyper-V TSC page clocksource support

2017-02-14 Thread Thomas Gleixner
On Tue, 14 Feb 2017, Vitaly Kuznetsov wrote: > Hi, > > while we're still waiting for a definitive ACK from Microsoft that the > algorithm is good for SMP case (as we can't prevent the code in vdso from > migrating between CPUs) I'd like to send v2 with some modifications to keep > the discussion

[PATCH] oom_reaper: switch to struct list_head for reap queue

2017-02-14 Thread Aleksa Sarai
Rather than implementing an open addressing linked list structure ourselves, use the standard list_head structure to improve consistency with the rest of the kernel and reduce confusion. Cc: Michal Hocko Cc: Oleg Nesterov Signed-off-by: Aleksa Sarai

Re: [PATCH] PCI: Add cavium acs pci quirk

2017-02-14 Thread Bjorn Helgaas
On Mon, Feb 13, 2017 at 09:44:57PM -0700, Alex Williamson wrote: > On Sat, 30 Jan 2016 01:33:58 +0530 > Manish Jaggi wrote: > > > Cavium devices matching this quirk do not perform > > peer-to-peer with other functions, allowing masking out > > these bits as if they

re: sched: check negative err value to safe one level of indent

2017-02-14 Thread Colin Ian King
Jiro, A recent static analysis run with CoverityScan identified a potential change in functionality with your recent commit "sched: check negative err value to safe one level of indent" that landed in linux-next. The original path for case RTM_DELTFILTER would always goto errout, but your commit

[PATCH v3 4/6] dt-bindings: gpio: Add binding documentation for gpio-thunderx

2017-02-14 Thread David Daney
Signed-off-by: David Daney Acked-by: Rob Herring --- .../devicetree/bindings/gpio/gpio-thunderx.txt | 27 ++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-thunderx.txt diff --git

[PATCH] mfd: altr-a10sr: Add Arria10 SR sysfs attributes

2017-02-14 Thread thor . thayer
From: Thor Thayer Add the Altera Arria10 DevKit sysfs attributes to the MFD device. Update copyright and email. Signed-off-by: Thor Thayer --- drivers/mfd/altera-a10sr.c | 98 -- 1 file

[PATCH v3 2/6] genirq: Add handle_fasteoi_{level,edge}_irq flow handlers.

2017-02-14 Thread David Daney
Follow-on patch for gpio-thunderx uses a irqdomain hierarchy which requires slightly different flow handlers, add them to chip.c which contains most of the other flow handlers. Signed-off-by: David Daney --- include/linux/irq.h | 2 ++ kernel/irq/chip.c | 102

[PATCH v3 3/6] irqdomain: Add irq_domain_{push,pop}_irq() functions.

2017-02-14 Thread David Daney
For an already existing irqdomain hierarchy, as might be obtained via a call to pci_enable_msix(), a PCI driver wishing to add an additional irqdomain to the hierarchy needs to be able to insert the irqdomain to that already initialized hierarchy. Calling irq_domain_create_hierarchy() allows the

[PATCH v3 5/6] gpio: Add gpio driver support for ThunderX and OCTEON-TX

2017-02-14 Thread David Daney
Cavium ThunderX and OCTEON-TX are arm64 based SoCs. Add driver for the on-chip GPIO pins. Signed-off-by: David Daney --- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile| 1 + drivers/gpio/gpio-thunderx.c | 490

Re: [PATCH 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Dmitry Torokhov
Hi Richard, On Tue, Feb 14, 2017 at 09:42:26AM +0100, Richard Cochran wrote: > On Mon, Feb 13, 2017 at 07:51:07PM -0800, Dmitry Torokhov wrote: > > Instead of creating selected attributes after the device is created (and > > after userspace potentially seen uevent), lets use attribute group > >

Re: [PATCH] usb: musb: add code comment for clarification

2017-02-14 Thread Gustavo A. R. Silva
Quoting Greg KH : On Fri, Feb 10, 2017 at 06:57:41PM -0600, Gustavo A. R. Silva wrote: Add code comment to make it clear that the fall-through is intentional. Read the link for more details: https://lkml.org/lkml/2017/2/9/292 Signed-off-by: Gustavo A. R. Silva

Re: [RFC,v2 3/3] sched: ignore task_h_load for CPU_NEWLY_IDLE

2017-02-14 Thread Uladzislau Rezki
>> >> So that is useful information that should have been in the Changelog. >> >> OK, can you respin this patch with adjusted Changelog and taking Mike's >> feedback? >> > Yes, i will prepare a patch accordingly, no problem. > >> >> Also, I worry about the effects of this on !PREEMPT kernels, the

[PATCHv5 3/5] x86/mm: introduce mmap_compat_base for 32-bit mmap()

2017-02-14 Thread Dmitry Safonov
mmap() uses base address, from which it starts to look for a free space for allocation. At this moment there is one mm->mmap_base, which is calculated during exec(). The address depends on task's size, set rlimit for stack, ASLR randomization. As task size and number of random bits differ between

[PATCHv5 5/5] selftests/x86: add test for 32-bit mmap() return addr

2017-02-14 Thread Dmitry Safonov
This test calls 32-bit mmap() through int 0x80 and checks /proc/self/maps for allocated VMA's address - it should be downer than 4 Gb. Just accessing allocated with mmap pointer will not work, as we could have some VMA placed on the same address as lower 4 bytes of the new mapping. As allocation

[PATCHv5 0/5] Fix compatible mmap() return pointer over 4Gb

2017-02-14 Thread Dmitry Safonov
There are a couple of fixes related to x86 mmap(): o 1-2 are just preparation to introduce new mmap bases o 3 fixes 32-bit syscall returning address over 4Gb in applications, launched from 64-bit binaries. This is done by introducing new bases: mmap_compat_base and mmap_compat_legacy_base.

[PATCHv5 2/5] x86/mm: add task_size parameter to mmap_base()

2017-02-14 Thread Dmitry Safonov
To correctly handle 32-bit and 64-bit mmap() syscalls, we need different mmap bases to start allocation from. So, introduce mmap_legacy_base() helper and change mmap_base() to return base address according to specified task size. It'll prepare the mmap base computing code for splitting mmap_base

[PATCHv5 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-02-14 Thread Dmitry Safonov
Result of mmap() calls with MAP_32BIT flag at this moment depends on thread flag TIF_ADDR32, which is set during exec() for 32-bit apps. It's broken as the behavior of mmap() shouldn't depend on exec-ed application's bitness. Instead, it should check the bitness of mmap() syscall. How it worked

Re: [PATCH] seccomp: Only dump core when single-threaded

2017-02-14 Thread Kees Cook
On Mon, Feb 13, 2017 at 10:37 PM, Andrei Vagin wrote: > On Tue, Feb 07, 2017 at 03:18:51PM -0800, Kees Cook wrote: >> The SECCOMP_RET_KILL filter return code has always killed the current >> thread, not the entire process. Changing this as a side-effect of dumping >> core

[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:

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 > >

[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

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

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
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, > > > > but I'll have to double check. > > > > > > But all the

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

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 11:26:20PM +0530, Arushi Singhal wrote: > Macro argument 'a' may be better as '(a)' to avoid precedence issues as > reported by checkpatch.pl > > Signed-off-by: Arushi Singhal > --- > drivers/staging/fwserial/fwserial.c | 2 +- > 1 file

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread H. Peter Anvin
On 02/12/17 13:12, Mathias Krause wrote: > As of commit a5c2a893dbd4 ("x86, 386 removal: Remove > CONFIG_X86_WP_WORKS_OK") the kernel won't boot if CR0.WP isn't working > correctly. This makes a process reading this file always see "wp : yes" > here -- otherwise there would be no process to begin

Re: [PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread Randy Dunlap
On 02/14/17 09:09, David Daney wrote: > On 02/14/2017 09:07 AM, Arnd Bergmann wrote: >> The driver fails to build if MSI support is disabled: >> >> In file included from >> /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0: >> drivers/crypto/cavium/cpt/cptpf.h:57:20: error: array type has

Re: [PATCH v3 2/3] xen/privcmd: Add IOCTL_PRIVCMD_DM_OP

2017-02-14 Thread Stefano Stabellini
On Tue, 14 Feb 2017, Boris Ostrovsky wrote: > On 02/13/2017 12:03 PM, Paul Durrant wrote: > > Recently a new dm_op[1] hypercall was added to Xen to provide a mechanism > > for restricting device emulators (such as QEMU) to a limited set of > > hypervisor operations, and being able to audit those

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread H. Peter Anvin
On 02/14/17 09:56, Geert Uytterhoeven wrote: >> >> Well, almost. You need the wp_works_ok removal patch too, otherwise you >> have the 3 bytes hole below. > > That's because you removed a char in commit 93a829e8e2c292f1 > ("x86, cpu: Convert FDIV bug detection), without compensating with padding

Re: [PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Bin Liu
On Tue, Feb 14, 2017 at 10:25:11AM -0800, Greg KH wrote: > On Tue, Feb 14, 2017 at 12:20:39PM -0600, Gustavo A. R. Silva wrote: > > Add code comment to make it clear that the fall-through is intentional. > > Read the link for more details: https://lkml.org/lkml/2017/2/9/292 > > > >

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

2017-02-14 Thread Paul Gortmaker
[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 because we did not have > > a distinction between what was modular code and

[PATCH 3/3] powerpc: kprobes: prefer ftrace when probing function entry

2017-02-14 Thread Naveen N. Rao
KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it eliminates the need for a trap, as well as the need to emulate or single-step instructions. Though OPTPROBES provides us with similar performance, we have limited optprobes trampoline slots. As such, when asked to probe at a

[PATCH 2/3] powerpc: introduce a new helper to obtain function entry points

2017-02-14 Thread Naveen N. Rao
kprobe_lookup_name() is specific to the kprobe subsystem and may not always return the function entry point (in a subsequent patch). For looking up function entry points, introduce a separate helper and use the same in optprobes.c Signed-off-by: Naveen N. Rao ---

make pdfdocs errors with 4.10-rc8

2017-02-14 Thread Jim Davis
On a Fedora 25 system, [...] build succeeded, 32 warnings. make PDFLATEX=xelatex LATEXOPTS="-interaction=batchmode" -C Documentation/output/./latex; xelatex -interaction=batchmode 'linux-user.tex' This is XeTeX, Version 3.14159265-2.6-0.6 (TeX Live 2016) (preloaded format=xelatex) restricted

[PATCH 1/1] crypto: brcm - Avoid double free in ahash_finup()

2017-02-14 Thread Rob Rice
In Broadcom SPU driver, in case where incremental hash is done in software in ahash_finup(), tmpbuf was freed twice. Reported-by: Dan Carpenter Signed-off-by: Rob Rice --- drivers/crypto/bcm/cipher.c | 1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Greg KH
On Tue, Feb 14, 2017 at 12:20:39PM -0600, Gustavo A. R. Silva wrote: > Add code comment to make it clear that the fall-through is intentional. > Read the link for more details: https://lkml.org/lkml/2017/2/9/292 > > Addresses-Coverity-ID: 1397608 > Signed-off-by: Gustavo A. R. Silva

perf pmu: clang points out: address of array 'alias->unit' will always evaluate to 'true'

2017-02-14 Thread Arnaldo Carvalho de Melo
util/pmu.c:948:28: error: address of array 'alias->unit' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if ((info->unit && alias->unit) || ~~ ~~~^~~~ util/pmu.c:953:13: error: address of array 'alias->unit' will always evaluate to 'true'

[PATCH v2 2/4] ptp: use kcalloc when allocating arrays

2017-02-14 Thread Dmitry Torokhov
kcalloc is more semantically correct when allocating arrays of objects, and overflow-safe. Signed-off-by: Dmitry Torokhov --- drivers/ptp/ptp_sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/ptp/ptp_sysfs.c

Re: [PATCH] ACPI, APEI: Fix BERT resources conflict with ACPI NVS area

2017-02-14 Thread Baicar, Tyler
On 2/13/2017 7:01 PM, Huang, Ying wrote: From: Huang Ying It was reported that some firmware will use ACPI NVS area for BERT address range. This will cause resources conflict because the ACPI NVS area is marked as busy already. Fix this via excluding ACPI NVS area when

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

[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

[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

[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

[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

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

[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

[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.

[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

[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

[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

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

Re: [PATCH 01/15] staging: rtl8192u: fixing white space issue

2017-02-14 Thread SIMRAN SINGHAL
While resending them ...do I have to mention v2. On Tue, Feb 14, 2017 at 10:54 PM, Greg KH wrote: > On Tue, Feb 14, 2017 at 02:33:34AM +0530, simran singhal wrote: >> Fix the following checkpatch.pl error and warnings: >> WARNING: please, no space before tabs >> >>

Re: [PATCH 2/2] perf/x86/intel/pt: Fail event creation if VMX operation is on

2017-02-14 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 14, 2017 at 03:24:16PM +0200, Alexander Shishkin escreveu: > On systems where PT does not coexist with VMX, users get confused when > PT turns up with no data because they forgot they're running a kvm > session at the same time. > > This patch adds a preemptive check for any active

Re: [PATCH v4 1/1] DM: inplace compressed DM target (fwd)

2017-02-14 Thread Ram Pai
ong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Ram-Pai/DM-inplace-compressed-DM-target/20170214-055727 > base: > https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git > for-next &

[PATCH] f2fs: fix multiple f2fs_add_link() calls having same name

2017-02-14 Thread Jaegeuk Kim
VFS uses f2fs_lookup() to decide f2fs_add_link() call during file creation. But, if there is a race condition, f2fs_add_link() can be called multiple times, resulting in multiple dentries with a same name. This patches fixes it by adding __f2fs_find_entry() in f2fs_add_link() path. Cc:

Re: [PATCH v4 net-next 0/8] sunvnet driver updates

2017-02-14 Thread David Miller
From: Shannon Nelson Date: Mon, 13 Feb 2017 10:56:56 -0800 > The sunvnet ldom virtual network driver was due for some updates and > a bugfix or two. These patches address a few items left over from > last year's make-over. > > v2: > - changed memory barrier fix to

Re: [PATCH v2 04/10] mm, page_alloc: count movable pages when stealing from pageblock

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:37PM +0100, Vlastimil Babka wrote: > When stealing pages from pageblock of a different migratetype, we count how > many free pages were stolen, and change the pageblock's migratetype if more > than half of the pageblock was free. This might be too conservative, as

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

2017-02-14 Thread Richard Guy Briggs
On 2017-02-14 13:02, Steve Grubb wrote: > On Monday, February 13, 2017 4:20:55 PM EST Paul Moore wrote: > > On Sat, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: > > > This adds a new auxiliary record MODULE_INIT to the SYSCALL event. > > > > > > We get finit_module for free

[PATCH v2] usb: musb: add code comment for clarification

2017-02-14 Thread Gustavo A. R. Silva
Add code comment to make it clear that the fall-through is intentional. Read the link for more details: https://lkml.org/lkml/2017/2/9/292 Addresses-Coverity-ID: 1397608 Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Fix tabs and line-wrapping in previous patch.

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:21:34PM +0200, Alexander Shishkin wrote: > Peter Zijlstra writes: > > > On Tue, Feb 14, 2017 at 06:17:30PM +0200, Alexander Shishkin wrote: > >> This is called by pmu::add(), which checks hw.state afterwards and if it > >> finds HES_STOPPED, it

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

2017-02-14 Thread Paul Moore
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, Feb 4, 2017 at 1:10 PM, Richard Guy Briggs wrote: >> > > This adds a new auxiliary

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

2017-02-14 Thread Steve Grubb
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, Feb 4, 2017 at 1:10 PM,

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:

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

[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

[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

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

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

2017-02-14 Thread Julia Lawall
xt] oom: Add notification for oom_score_adj Hi Peter, [auto 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/c

Re: [PATCH 1/2] dt-bindings: arm-ccn: Add bindings info for CCN-502 compatible string

2017-02-14 Thread Mark Rutland
On Fri, Feb 10, 2017 at 12:42:47PM -0800, Velibor Markovski wrote: > Add CCN-502 to the list of supported devices by ARM CCN PMU driver. > > Signed-off-by: Velibor Markovski Acked-by: Mark Rutland I assume Pawel will take this along with

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Geert Uytterhoeven
Hi Boris, On Tue, Feb 14, 2017 at 5:17 PM, Borislav Petkov wrote: > On Sun, Feb 12, 2017 at 10:12:07PM +0100, Mathias Krause wrote: >> Those member serve no purpose -- not even fill padding for alignment or >> such. So just get rid of them. > > Well, almost. You need the

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

2017-02-14 Thread Arushi Singhal
Macro argument 'a' may be better as '(a)' to avoid precedence issues as reported by checkpatch.pl Signed-off-by: Arushi Singhal --- drivers/staging/fwserial/fwserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2017-02-14 Thread Jason Cooper
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 file armada-385-linksys-shelby.dts is taken from OpenWrt as-is and >

Re: [PATCH v2 05/10] mm, compaction: change migrate_async_suitable() to suitable_migration_source()

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:38PM +0100, Vlastimil Babka wrote: > Preparation for making the decisions more complex and depending on > compact_control flags. No functional change. > > Signed-off-by: Vlastimil Babka Acked-by: Johannes Weiner

Re: [PATCH 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Richard Cochran
On Tue, Feb 14, 2017 at 10:07:47AM -0800, Dmitry Torokhov wrote: > > At first glance, this patch and the next look like nice improvements. > > I don't futz around with sysfs code very often, and so may I ask how > > or whether you tested it? > > I used the hack below. OK, thats fine. I'll be

Re: [PATCH 1/2] spi: imx: dynamic burst length adjust for PIO mode

2017-02-14 Thread Mark Brown
On Wed, Feb 08, 2017 at 03:20:27PM +0900, Jiada Wang wrote: This looks basically fine, a couple of fairly minor things here: > + for (i = 0; i < transfer->len / 4; i++) { > + u8 temp; > + > + temp = *(buf + i * 4); > + *(buf + i * 4) = *(buf + i * 4 + 3);

[PATCH v2 4/4] ptp: create "pins" together with the rest of attributes

2017-02-14 Thread Dmitry Torokhov
Let's switch to using device_create_with_groups(), which will allow us to create "pins" attribute group together with the rest of ptp device attributes, and before userspace gets notified about ptp device creation. Signed-off-by: Dmitry Torokhov ---

[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

[PATCH v3 0/6] genirq/gpio: Add driver for ThunderX and OCTEON-TX SoCs

2017-02-14 Thread David Daney
Per the Subject: Add driver for ThunderX and OCTEON-TX SoCs This GPIO hardware looks like a PCIe device, with the interrupt signal from each GPIO line being routed to a dedicated MSI-X. This interrupt routing requires that we add some custom processing to the beginning of the MSI-X irqdomain

[PATCH v3 6/6] MAINTAINERS: Add entry for THUNDERX GPIO Driver.

2017-02-14 Thread David Daney
Signed-off-by: David Daney --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 107c10e..9238cd0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10904,6 +10904,11 @@ M: Andreas Noever S:

[PATCH v3 1/6] genirq: Export more irq_chip_*_parent() functions.

2017-02-14 Thread David Daney
Many of the family of functions including irq_chip_mask_parent(), irq_chip_unmask_parent() are exported, but not all. Add EXPORT_SYMBOL_GPL to irq_chip_enable_parent, irq_chip_disable_parent and irq_chip_set_affinity_parent, so they likewise are usable from modules. Signed-off-by: David Daney

Re: [PATCH v2 06/10] mm, compaction: add migratetype to compact_control

2017-02-14 Thread Johannes Weiner
On Fri, Feb 10, 2017 at 06:23:39PM +0100, Vlastimil Babka wrote: > Preparation patch. We are going to need migratetype at lower layers than > compact_zone() and compact_finished(). > > Signed-off-by: Vlastimil Babka Acked-by: Johannes Weiner

Re: [PATCH 1/6] x86: drop unneded members of struct cpuinfo_x86

2017-02-14 Thread Borislav Petkov
On Tue, Feb 14, 2017 at 06:56:22PM +0100, Geert Uytterhoeven wrote: > That's because No, what Mathias said. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH] crypto: cavium: fix Kconfig dependencies

2017-02-14 Thread David Daney
On 02/14/2017 10:26 AM, Randy Dunlap wrote: On 02/14/17 09:09, David Daney wrote: On 02/14/2017 09:07 AM, Arnd Bergmann wrote: The driver fails to build if MSI support is disabled: In file included from /git/arm-soc/drivers/crypto/cavium/cpt/cptpf_main.c:18:0:

Re: [PATCH 3/6] x86/cpu: proc - remove "wp" status line in cpuinfo

2017-02-14 Thread Borislav Petkov
On Tue, Feb 14, 2017 at 10:13:22AM -0800, H. Peter Anvin wrote: > Potential userspace breakage, which is why the line was left in the We could keep the string in /proc/cpuinfo for compatibility but kill the cpuinfo_x86 members. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid

Re: Regression in next with use printk_safe buffers in printk

2017-02-14 Thread Peter Zijlstra
On Wed, Feb 15, 2017 at 01:56:45AM +0900, Sergey Senozhatsky wrote: > that crossed my mind, but I kinda assumed that we do printk() from > under tk_core using sched fair, and rt_runtime_lock is from sched rt. That's all true; lockdep doesn't care :-) All it knows is that at some point those locks

[PATCHv5 1/5] x86/mm: introduce arch_rnd() to compute 32/64 mmap rnd

2017-02-14 Thread Dmitry Safonov
To fix 32-bit mmap() syscall returning pointer higher than 4Gb in 64-bit binaries, two mmap bases will be used: one for mapping with 32-bit syscalls and another for 64-bit syscall. To correctly place those two bases, introduce arch_rnd() function, which will return the random factor independently

Re: [PATCH]staging: fbtft: Fix sparse warnings about endianness

2017-02-14 Thread Al Viro
On Tue, Feb 14, 2017 at 09:18:25AM -0800, Greg KH wrote: > On Tue, Feb 14, 2017 at 04:53:10PM +0800, maomao xu wrote: > > Fixed sparse warnings about endianness. E.g.: > > > > warning: incorrect type in assignment (different base types) > > Why are these lines indented? > > >

[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

[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

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: [PATCH] kretprobes: reject registration if a symbol offset is specified

2017-02-14 Thread Ananth N Mavinakayanahalli
On Tue, Feb 14, 2017 at 02:01:18PM +0530, Naveen N. Rao wrote: > Users shouldn't be able to specify an offset with kretprobes, as we always > want to probe at function entry. Otherwise, we won't be able to capture > the proper return address resulting in the kretprobe never firing. > > With

Re: [PATCH V2 1/3] mm: Define coherent device memory (CDM) node

2017-02-14 Thread Anshuman Khandual
On 02/13/2017 09:29 AM, John Hubbard wrote: > On 02/10/2017 02:06 AM, Anshuman Khandual wrote: >> There are certain devices like specialized accelerator, GPU cards, >> network >> cards, FPGA cards etc which might contain onboard memory which is >> coherent >> along with the existing system RAM

Re: [PATCH V2 3/3] mm: Enable Buddy allocation isolation for CDM nodes

2017-02-14 Thread Vlastimil Babka
On 02/10/2017 11:06 AM, Anshuman Khandual wrote: > This implements allocation isolation for CDM nodes in buddy allocator by > discarding CDM memory zones all the time except in the cases where the gfp > flag has got __GFP_THISNODE or the nodemask contains CDM nodes in cases > where it is non NULL

Re: net/xfrm: stack out-of-bounds in xfrm_flowi_sport

2017-02-14 Thread Dmitry Vyukov
On Tue, Feb 14, 2017 at 8:08 AM, Steffen Klassert wrote: > On Mon, Feb 13, 2017 at 03:46:56PM +0100, Dmitry Vyukov wrote: >> >> On commit 7089db84e356562f8ba737c29e472cc42d530dbc. >> >> >> struct flowi4 fl4_stack allocated on stack in udp_sendmsg is being >> casted

Re: [PATCH 1/3] powerpc: kprobes: fix handling of function offsets on ABIv2

2017-02-14 Thread Ananth N Mavinakayanahalli
On Tue, Feb 14, 2017 at 02:08:01PM +0530, Naveen N. Rao wrote: > commit 239aeba76409 ("perf powerpc: Fix kprobe and kretprobe handling > with kallsyms on ppc64le") changed how we use the offset field in struct > kprobe on ABIv2. perf now offsets from the GEP (Global entry point) if an > offset is

Re: [PATCH 2/3] powerpc: kprobes: factor out code to emulate instruction into a helper

2017-02-14 Thread Ananth N Mavinakayanahalli
On Tue, Feb 14, 2017 at 02:08:02PM +0530, Naveen N. Rao wrote: > This helper will be used in a subsequent patch to emulate instructions > on re-entering the kprobe handler. No functional change. > > Signed-off-by: Naveen N. Rao Acked-by: Ananth N

Re: [PATCH 3/4] ptp: use is_visible method to hide unused attributes

2017-02-14 Thread Richard Cochran
On Mon, Feb 13, 2017 at 07:51:07PM -0800, Dmitry Torokhov wrote: > Instead of creating selected attributes after the device is created (and > after userspace potentially seen uevent), lets use attribute group > is_visible() method to control which attributes are shown. This will allow > us to

  1   2   3   4   5   6   7   8   9   10   >