Re: [GIT PULL] scheduler changes for v4.11

2017-02-23 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Feb 22, 2017 at 08:51:44PM +, Matt Fleming wrote: > > On Wed, 22 Feb, at 12:41:01PM, Linus Torvalds wrote: > > > I think Peter has the fix for this somewhere, but it doesn't look like > > it made it to tip/sched/core. > > > > Peter, this is the original pa

Re: [PATCH] x86: Implement __WARN using UD0

2017-02-23 Thread Ingo Molnar
* Peter Zijlstra wrote: > 0016 : > 16: 55 push %rbp > 17: 8b 16 mov(%rsi),%edx > 19: 41 83 c8 ff or $0x,%r8d > 1d: 48 89 e5mov%rsp,%rbp > 20: 85 d2 test %e

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-02-23 Thread Baoquan He
CC Eric too. On 02/13/17 at 02:25pm, Kees Cook wrote: > On Mon, Jan 30, 2017 at 11:00 AM, Pratyush Anand wrote: > > CCing Andrew and Kees for their review comments. > > > > > > On Wednesday 25 January 2017 10:14 AM, Pratyush Anand wrote: > >> Currently all the p_paddr of PT_LOAD headers are assig

Re: [PATCH] docs: Make CodingStyle and SubmittingPatches symlinks

2017-02-23 Thread Daniel Vetter
On Tue, Feb 14, 2017 at 02:34:38PM -0700, Jonathan Corbet wrote: > On Mon, 23 Jan 2017 08:34:58 -0200 > Mauro Carvalho Chehab wrote: > > > The main difference between a "pointer file" and a symlink is that the > > first indicates a temporary solution, teaching people that the > > file got renamed

[ANNOUNCE] kmod 24

2017-02-23 Thread Lucas De Marchi
kmod 24 is out: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-24.tar.xz ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-24.tar.sign - Improvements: - Add more information on dependency loop - Sanitize use of strcpy and allow to grow from small string

[PATCH v3 2/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-23 Thread Ravi Bangoria
From: Hemant Kumar Add support for directly recording SDT events which are present in the probe cache. Without this patch, we could probe into SDT events using 'perf probe' and 'perf record'. With this patch, we can probe the SDT events directly using 'perf record'. For example : $ perf list

[PATCH v3 1/2] perf/sdt: Introduce util func is_sdt_event()

2017-02-23 Thread Ravi Bangoria
No Functionality changes. Signed-off-by: Ravi Bangoria --- tools/perf/util/probe-event.c | 9 + tools/perf/util/util.c| 12 tools/perf/util/util.h| 2 ++ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/probe-event.c b/tools/p

[PATCH v3 0/2] perf/sdt: Directly record SDT events with 'perf record'

2017-02-23 Thread Ravi Bangoria
All events from 'perf list', except SDT events, can be directly recorded with 'perf record'. But, the flow is little different for SDT events. Probe point for SDT event needs to be created using 'perf probe' before recording it using 'perf record'. As suggested by Ingo[1], it's better to make this

Re: [PATCH 2/2] selftests, x86, pkeys: test with random, unallocated protection keys

2017-02-23 Thread Ingo Molnar
* Shuah Khan wrote: > On 02/23/2017 03:26 PM, Dave Hansen wrote: > > Shuah, I assume you'll take this patch in through the selftests tree. > > Yes I can do that. No, let's not do that please, we have a fix and a self-tests update, I'd like them to be next in the Git space. I'll apply the te

RE: [PATCH 0/9] tools subsystem refcounter conversions

2017-02-23 Thread Reshetova, Elena
> Em Thu, Feb 23, 2017 at 11:39:10AM +, Reshetova, Elena escreveu: > > > Em Wed, Feb 22, 2017 at 08:23:29PM -0300, Arnaldo Carvalho de Melo > > > escreveu: > > > > Em Tue, Feb 21, 2017 at 12:39:35PM -0300, Arnaldo Carvalho de Melo > > > escreveu: > > > > > Em Tue, Feb 21, 2017 at 05:34:54PM +02

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-02-23 Thread Pratyush Anand
Hi Andrew/Kees, On Tuesday 14 February 2017 07:16 AM, Pratyush Anand wrote: Well, CONFIG_PROC_KCORE is a generalized root KASLR exposure (though there are lots of such exposures). Why is the actual physical address needed? Can this just report the virtual address instead? Then the tool can buil

[PATCH] ASoC: atmel-classd: fix audio clock rate

2017-02-23 Thread Songjun Wu
Fix the audio clock rate according to the datasheet. Reported-by: Dushara Jayasinghe Signed-off-by: Songjun Wu --- sound/soc/atmel/atmel-classd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 89ac5f5a93

Re: [tpmdd-devel] [PATCH v2 6/7] tpm: expose spaces via a device link /dev/tpms

2017-02-23 Thread Nayna
On 02/17/2017 12:55 AM, Jarkko Sakkinen wrote: From: James Bottomley Currently the tpm spaces are not exposed to userspace. Make this exposure via a separate device, which can now be opened multiple times because each read/write transaction goes separately via the space. Concurrency is prot

[PATCH v2] mm/vmscan: fix high cpu usage of kswapd if there are no reclaimable pages

2017-02-23 Thread Jia He
In a numa server, topology looks like available: 3 nodes (0,2-3) node 0 cpus: node 0 size: 0 MB node 0 free: 0 MB node 2 cpus: 0 1 2 3 4 5 6 7 node 2 size: 15299 MB node 2 free: 289 MB node 3 cpus: node 3 size: 15336 MB node 3 free: 184 MB node distances: node 0 2 3 0: 10 40 40 2: 40

[PATCH] PCI, pciehp: Reuse set_slot_off()

2017-02-23 Thread Yinghai Lu
Now set_slot_off() is used in board_added() err path. We could reuse in remove_board. Also need to move green_led and attention_status out it. and make code more readable. Signed-off-by: Yinghai Lu --- drivers/pci/hotplug/pciehp_ctrl.c | 16 +++- 1 file changed, 3 insertions(+),

[PATCH] PCI,pciehp: Skip not changed command write

2017-02-23 Thread Yinghai Lu
Notice two systems with different cpu hve different print out when power on slots: First one: pciehp :60:03.2:pcie004: pciehp_green_led_on: SLOTCTRL a8 write cmd 100 pciehp :60:03.2:pcie004: pciehp_set_attention_status: SLOTCTRL a8 write cmd c0 pciehp :60:03.2:pcie004: pending inter

[PATCH] clk: zynqmp: fix itnull.cocci warnings

2017-02-23 Thread Julia Lawall
Iterator variable bound on line 220 cannot be NULL Generated by: scripts/coccinelle/iterators/itnull.cocci CC: Shubhrajyoti Datta Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: https://github.com/Xilinx/linux-xlnx master head: 1741e191412444e3ab3308b407a9328186c248e4 co

Re: [Outreachy kernel] [PATCH v3 1/3] staging: wilc1000: Rename struct tstrRSSI to rssi_history_buffer

2017-02-23 Thread Julia Lawall
On Fri, 24 Feb 2017, Tahia Khan wrote: > Rename struct tstrRSSI to rssi_history_buffer for clarity and to remove camel > casing. Here the commit log messge line is definitely too long. julia > > Signed-off-by: Tahia Khan > --- > drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- > 1 fil

Re: [Outreachy kernel] [PATCH v3 2/3] staging: wilc1000: Rename tstrRSSI members and change type of u8Full to bool

2017-02-23 Thread Julia Lawall
On Fri, 24 Feb 2017, Tahia Khan wrote: > Remove Hungarian notation and camel casing from all tstrRSSI members' names. > Additionally, change type of u8Full to bool since it only takes values 1 or 0. Acked-by: Julia Lawall Maybe the second line of the commit message is a little too long. It i

Re: [Outreachy kernel] [PATCH v3 3/3] staging: wilc1000: Rename network_info member str_rssi to rssi_history

2017-02-23 Thread Julia Lawall
On Fri, 24 Feb 2017, Tahia Khan wrote: > Change name of str_rssi to rssi_history within the network_info struct for > clarity. > > Signed-off-by: Tahia Khan Acked-by: Julia Lawall Good job at cutting up the patch in a meaningful way. julia > --- > drivers/staging/wilc1000/coreconfigurato

[PATCH] treewide: Remove remaining executable attributes from source files

2017-02-23 Thread Joe Perches
These are the current source files that should not have executable attributes set. Signed-off-by: Joe Perches --- Normally this would be sent through Andrew Morton's tree but his quilt tools don't like permission only patches. Documentation/devicetree/bindings/sound/rt5665.txt | 0 arch/nios2/

[PATCH 1/3] btusb: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen --- dr

[PATCH 2/3] btmrvl: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen --- dr

[PATCH 3/3] mwifiex: wake system up when receives a wake irq

2017-02-23 Thread Jeffy Chen
Currrently we are disabling this wake irq after receiving it. If this happens before we finish suspend and the pm event check is disabled, the system will continue suspending, and this irq would not work again. We may need to abort system suspend to avoid that. Signed-off-by: Jeffy Chen --- dr

Re: [PATCH V4 3/6] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-23 Thread Shaohua Li
On Fri, Feb 24, 2017 at 10:49:39AM +0900, Minchan Kim wrote: > On Wed, Feb 22, 2017 at 10:50:41AM -0800, Shaohua Li wrote: > > 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 pa

Re: [PATCH V4 4/6] mm: reclaim MADV_FREE pages

2017-02-23 Thread Shaohua Li
On Fri, Feb 24, 2017 at 11:12:18AM +0900, Minchan Kim wrote: > On Wed, Feb 22, 2017 at 10:50:42AM -0800, Shaohua Li wrote: > > 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

Re: [PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-23 Thread Ravi Bangoria
Hi Taeung, On Wednesday 22 February 2017 03:38 PM, Taeung Song wrote: > + INIT_LIST_HEAD(¬es->src->code); > + > + while (!feof(file)) { > + int nr; > + char *c, *parsed_line; > + struct source_code *code; > + > + if (getline(&line, &len, file

[PATCH v3 2/3] staging: wilc1000: Rename tstrRSSI members and change type of u8Full to bool

2017-02-23 Thread Tahia Khan
Remove Hungarian notation and camel casing from all tstrRSSI members' names. Additionally, change type of u8Full to bool since it only takes values 1 or 0. Signed-off-by: Tahia Khan --- drivers/staging/wilc1000/coreconfigurator.h | 6 +++--- drivers/staging/wilc1000/wilc_wfi_cfgoperation

[PATCH v3 3/3] staging: wilc1000: Rename network_info member str_rssi to rssi_history

2017-02-23 Thread Tahia Khan
Change name of str_rssi to rssi_history within the network_info struct for clarity. Signed-off-by: Tahia Khan --- drivers/staging/wilc1000/coreconfigurator.h | 2 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 14 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) d

[PATCH v3 0/3] staging: wilc1000: multiple coding style changes to struct tstrRSSI

2017-02-23 Thread Tahia Khan
Multiple coding style changes to struct tstrRSSI. Initially reported by checkpath.pl: Avoid CamelCase: Avoid CamelCase: Avoid CamelCase: Changes since v2: Renaming tstrRSSI and members with more descriptive names, as suggested by Arend Van Spriel Tahia Khan (3): staging: wilc1000: Re

[PATCH v3 1/3] staging: wilc1000: Rename struct tstrRSSI to rssi_history_buffer

2017-02-23 Thread Tahia Khan
Rename struct tstrRSSI to rssi_history_buffer for clarity and to remove camel casing. Signed-off-by: Tahia Khan --- drivers/staging/wilc1000/coreconfigurator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wilc1000/coreconfigurator.h b/drivers/staging/

Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver

2017-02-23 Thread Håvard Skinnemoen
On Tue, Feb 21, 2017 at 9:14 AM, Alexandre Belloni wrote: > On 21/02/2017 at 18:43:35 +0200, Andy Shevchenko wrote: >> >> Come on, v4.10 has just been release and >> >> It doesn't build anymore. And current case even worse >> Face it. It's dead. >> > > I agree it hasn't seen any significant develo

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-23 Thread Jerome Glisse
On Fri, Feb 24, 2017 at 09:06:19AM +0800, Bob Liu wrote: > On 2017/2/21 21:39, Anshuman Khandual wrote: > > On 02/21/2017 04:41 PM, Michal Hocko wrote: > >> On Fri 17-02-17 17:11:57, Anshuman Khandual wrote: > >> [...] > >>> * User space using mbind() to get CDM memory is an additional benefit > >>

[PATCH v4 15/24] openrisc: Add optimized memcpy routine

2017-02-23 Thread Stafford Horne
The generic memcpy routine provided in kernel does only byte copies. Using word copies we can lower boot time and cycles spend in memcpy quite significantly. Booting on my de0 nano I see boot times go from 7.2 to 5.6 seconds. The avg cycles in memcpy during boot go from 6467 to 1887. I tested sev

[PATCH v4 16/24] openrisc: Add .gitignore

2017-02-23 Thread Stafford Horne
This helps to suppress the vmlinux.lds file. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 arch/openrisc/kernel/.gitignore diff --git a/arch/openrisc/kernel/.gitignore b/arch/openrisc/kernel/.gitignore new file mode 1

[PATCH v4 14/24] openrisc: Add optimized memset

2017-02-23 Thread Stafford Horne
From: Olof Kindgren This adds a hand-optimized assembler version of memset and sets __HAVE_ARCH_MEMSET to use this version instead of the generic C routine Signed-off-by: Olof Kindgren Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/string.h | 7 +++ arch/openrisc/kernel/or32_ksy

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-23 Thread John Hubbard
On 02/23/2017 05:06 PM, Bob Liu wrote: On 2017/2/21 21:39, Anshuman Khandual wrote: On 02/21/2017 04:41 PM, Michal Hocko wrote: On Fri 17-02-17 17:11:57, Anshuman Khandual wrote: [...] Could you also explain why the transparent view is really better than using a device specific mmap (aka CDM a

[PATCH v4 07/24] openrisc: add atomic bitops

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson This utilize the load-link/store-conditional l.lwa and l.swa instructions to implement the atomic bitops. When those instructions are not available emulation is provided. Cc: Peter Zijlstra Signed-off-by: Stefan Kristiansson [sho...@gmail.com: remove OPENRISC_HAVE_INS

[PATCH v4 06/24] openrisc: add l.lwa/l.swa emulation

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson This adds an emulation layer for implementations that lack the l.lwa and l.swa instructions. It handles these instructions both in kernel space and user space. Signed-off-by: Stefan Kristiansson [sho...@gmail.com: Added delay slot pc adjust logic] Signed-off-by: Staffo

[PATCH v4 23/24] openrisc: Export ioremap symbols used by modules

2017-02-23 Thread Stafford Horne
Noticed this when building with allyesconfig. Got build failures due to iounmap and __ioremap symbols missing. This patch exports them so modules can use them. This is inline with other architectures. Signed-off-by: Stafford Horne --- arch/openrisc/mm/ioremap.c | 2 ++ 1 file changed, 2 inser

[PATCH v4 18/24] scripts/checkstack.pl: Add openrisc support

2017-02-23 Thread Stafford Horne
Openrisc stack pointer is managed by decrementing r1. Add regexes to recognize this. Signed-off-by: Stafford Horne --- scripts/checkstack.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/checkstack.pl b/scripts/checkstack.pl index dd83978..eea5b78 100755 --- a/scripts/checkstack

[PATCH v4 08/24] openrisc: add cmpxchg and xchg implementations

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson Optimized version that make use of the l.lwa and l.swa atomic instruction pair. Most openrisc cores provide these instructions now, if not available emulation is provided. Cc: Peter Zijlstra Signed-off-by: Stefan Kristiansson [sho...@gmail.com: remove OPENRISC_HAVE_IN

[PATCH v4 05/24] openrisc: head: refactor out tlb flush into it's own function

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson This brings it inline with the other setup oprations done like the cache enables _ic_enable and _dc_enable. Also, this is going to make it easier to initialize additional cpu's when smp is introduced. Signed-off-by: Stefan Kristiansson [sho...@gmail.com: Added commit

[PATCH v4 21/24] openrisc: head: Move init strings to rodata section

2017-02-23 Thread Stafford Horne
The strings used during the head/init phase of openrisc bootup were stored in the executable section of the binary. This causes compilation to fail when using CONFIG_DEBUG_INFO with error: Error: unaligned opcodes detected in executable segment Also, this patch removes unused strings. Signed-of

[PATCH v4 24/24] openrisc: head: Init r0 to 0 on start

2017-02-23 Thread Stafford Horne
Originally openrisc spec 0 specified that r0 would be wired to ground. This is no longer the case. r0 is not guaranteed to be 0 at init, so we need to initialize it to 0 before using it. Also, if we are clearing r0 we cant use r0 to clear itself. Change the the CLEAR_GPR macro to use movhi for cl

[PATCH v4 19/24] openrisc: entry: Whitespace and comment cleanups

2017-02-23 Thread Stafford Horne
Cleanups to whitespace and add some comments. Reading through the delay slot logic I noticed some things: - Delay slot instructions were not indented - Some comments are not lined up - Use tabs and spaces consistent with other code No functional change Signed-off-by: Stafford Horne --- arch/

[PATCH v4 22/24] arch/openrisc/lib/memcpy.c: use correct OR1200 option

2017-02-23 Thread Stafford Horne
From: Valentin Rothberg The Kconfig option for OR12000 is OR1K_1200. Signed-off-by: Valentin Rothberg Signed-off-by: Stafford Horne --- arch/openrisc/lib/memcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/openrisc/lib/memcpy.c b/arch/openrisc/lib/memcpy.c index

[PATCH v4 20/24] openrisc: entry: Fix delay slot detection

2017-02-23 Thread Stafford Horne
Use execption SR stored in pt_regs for detection, the current SR is not correct as the handler is running after return from exception. Also, The code that checks for a delay slot uses a flag bitmask and then wants to check if the result is not zero. The test it implemented was wrong. Correct it

[PATCH v4 17/24] MAINTAINERS: Add the openrisc official repository

2017-02-23 Thread Stafford Horne
The openrisc official repository and patch work happens currently on github. Add the repo for reference. Signed-off-by: Stafford Horne --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 187b961..57809d6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @

[PATCH v4 12/24] openrisc: Fix the bitmask for the unit present register

2017-02-23 Thread Stafford Horne
From: Sebastian Macke The bits were swapped, as per spec and processor implementation the power management present bit is 9 and PIC bit is 8. This patch brings the definitions into spec. Signed-off-by: Sebastian Macke [sho...@gmail.com: Added commit body] Signed-off-by: Stafford Horne --- arc

[PATCH v4 13/24] openrisc: Initial support for the idle state

2017-02-23 Thread Stafford Horne
From: Sebastian Macke This patch adds basic support for the idle state of the cpu. The patch overrides the regular idle function, enables the interupts, checks for the power management unit and enables the cpu doze mode if available. Signed-off-by: Sebastian Macke [sho...@gmail.com: Fixed check

[PATCH v4 09/24] openrisc: add optimized atomic operations

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson Using the l.lwa and l.swa atomic instruction pair. Most openrisc processor cores provide these instructions now. If the instructions are not available emulation is provided. Cc: Peter Zijlstra Signed-off-by: Stefan Kristiansson [sho...@gmail.com: remove OPENRISC_HAVE_

[PATCH v4 10/24] openrisc: add futex_atomic_* implementations

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson Support for the futex_atomic_* operations by using the load-link/store-conditional l.lwa/l.swa instructions. Most openrisc cores provide these instructions now if not available, emulation is provided. Cc: Peter Zijlstra Signed-off-by: Stefan Kristiansson [sho...@gmail

[PATCH v4 11/24] openrisc: remove unnecessary stddef.h include

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson This causes the build to fail when building with the or1k-musl-linux- toolchain and it is not needed. Signed-off-by: Stafford Horne --- arch/openrisc/kernel/ptrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/openrisc/kernel/ptrace.c b/arch/openrisc/kerne

[PATCH v4 02/24] openrisc: add cache way information to cpuinfo

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson Motivation for this is to be able to print the way information properly in print_cpuinfo(), instead of hardcoding it to one. Signed-off-by: Stefan Kristiansson Signed-off-by: Jonas Bonn [sho...@gmail.com fixed conflict with show_cpuinfo change] Signed-off-by: Stafford

[PATCH v4 04/24] openrisc: head: use THREAD_SIZE instead of magic constant

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson The stack size was hard coded to 0x2000, use the standard THREAD_SIZE definition loaded from thread_info.h. Signed-off-by: Stefan Kristiansson [sho...@gmail.com: Added body to the commit message] Signed-off-by: Stafford Horne --- arch/openrisc/kernel/head.S | 4 +++-

[PATCH v4 01/24] openrisc: use SPARSE_IRQ

2017-02-23 Thread Stafford Horne
From: Jonas Bonn The sparse IRQ framework is preferred nowadays so switch over to it. Signed-off-by: Jonas Bonn Signed-off-by: Stafford Horne --- arch/openrisc/Kconfig| 1 + arch/openrisc/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/openrisc/Kconfi

[PATCH v4 03/24] openrisc: tlb miss handler optimizations

2017-02-23 Thread Stafford Horne
From: Stefan Kristiansson By slightly reorganizing the code, the number of registers used in the tlb miss handlers can be reduced by two, thus removing the need to save them to memory. Also, some dead and commented out code is removed. No functional change. Signed-off-by: Stefan Kristiansson

[PATCH v4 00/24] OpenRISC patches for 4.11

2017-02-23 Thread Stafford Horne
Hi All, Changes from v3 o Removed spinlock due to - Peter had some comments on qrwlocks and unlocking that should be pretty easy, but... - Its only going to be used for SMP so not testable by me now o incorporate Atomic & Cmpxchg comments from Peter Z and RTH o incorporate Idle state

Re: [PATCH 2/2] dt-bindings: extcon: Add support for cros-ec device

2017-02-23 Thread Chanwoo Choi
On 2017년 02월 21일 00:18, Enric Balletbo i Serra wrote: > From: Benson Leung > > This patch add documentation for binding of USB Type C cable detection > mechanism is using EXTCON subsystem. The device can detect the presence > of display out but it may also detect other external accessories when >

Re: [RFC v2 13/17] ARM64: dts: Add Actions Semi S900 and Bubblegum-96

2017-02-23 Thread Andreas Färber
Am 24.02.2017 um 04:40 schrieb Andreas Färber: > Cc: 96boa...@ucrobotics.com > Signed-off-by: Andreas Färber > --- > v1 -> v2: > * Reworded subject > * Added memory@0 node for Bubblegum-96 (Mark) > * Filled in reserved-memory sub-node for Bubblegum-96 (Mark) > * Added arm-pmu interrupt-affini

Re: [RFC v2 03/17] dt-bindings: timer: Document Owl timer

2017-02-23 Thread Andreas Färber
Am 24.02.2017 um 04:40 schrieb Andreas Färber: > The Actions Semi S500 SoC contains a timer block with two timers. > > Signed-off-by: Andreas Färber > --- > v2: new Sorry, script error: nothing particularly RFC here. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany

[RFC v2 13/17] ARM64: dts: Add Actions Semi S900 and Bubblegum-96

2017-02-23 Thread Andreas Färber
Cc: 96boa...@ucrobotics.com Signed-off-by: Andreas Färber --- v1 -> v2: * Reworded subject * Added memory@0 node for Bubblegum-96 (Mark) * Filled in reserved-memory sub-node for Bubblegum-96 (Mark) * Added arm-pmu interrupt-affinity property (Mark) * Changed second GIC reg size 0x1000 -> 0x2

[RFC v2 14/17] MAINTAINERS: Add Actions Semi Owl section

2017-02-23 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v2: new MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b9af886..467121e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1026,6 +1026,16 @@ S: Maintained F: drivers/amba/ F: include/lin

[PATCH v2 04/17] clocksource: Add Owl timer

2017-02-23 Thread Andreas Färber
Implement clocksource and clockevents for Actions Semi S500. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v2: new drivers/clocksource/Kconfig | 7 ++ drivers/clocksource/Makefile| 1 + drivers/clocksource/owl-timer.c | 146 +++

[RFC v2 03/17] dt-bindings: timer: Document Owl timer

2017-02-23 Thread Andreas Färber
The Actions Semi S500 SoC contains a timer block with two timers. Signed-off-by: Andreas Färber --- v2: new .../devicetree/bindings/timer/actions,owl-timer.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/timer/actions,owl

[PATCH v2 00/17] ARM: Initial Actions Semi S500 and S900 enablement

2017-02-23 Thread Andreas Färber
Hello, This series adds initial support for Actions Semiconductor S500 (ARMv7) and S900 (ARMv8) SoCs. In addition to earlycon serial output, v2 includes a serial console driver RFC. Guitar output is coming further along thanks to a new timer implementation, but is still earlycon only - to be inve

[PATCH v2 02/17] dt-bindings: arm: Document Actions Semi S500

2017-02-23 Thread Andreas Färber
The Actions Semi S500 is a quad-core ARM Cortex-A9 SoC. The LeMaker Guitar is an SODIMM-format module with that SoC. Signed-off-by: Andreas Färber --- v1 -> v2: * Adopted "actions" vendor prefix * Extended text Documentation/devicetree/bindings/arm/actions.txt | 24 +++

[PATCH v2 05/17] ARM: Prepare Actions Semi S500

2017-02-23 Thread Andreas Färber
Add ARCH_ACTIONS and mach-actions/owl.c for "actions,s500". Signed-off-by: Andreas Färber --- v1 -> v2: * Renamed ARCH_OWL to ARCH_ACTION (Arnd) * Renamed mach-owl to mach-actions, leaving owl.c * Adopted "actions" vendor prefix arch/arm/Kconfig | 2 ++ arch/arm/Makefile

[PATCH v2 06/17] ARM64: Prepare Actions Semi S900

2017-02-23 Thread Andreas Färber
Add ARCH_ACTIONS. Signed-off-by: Andreas Färber --- v1 -> v2: * Renamed ARCH_OWL to ARCH_ACTION (Arnd) arch/arm64/Kconfig.platforms | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 129cc5a..b0266cd 100644 --- a/arch/ar

[PATCH v2 16/17] ARM64: dts: actions: s900-bubblegum-96: Add fake uart5 clk

2017-02-23 Thread Andreas Färber
Give the serial driver a fixed-clock as input for baudrate 115200. Signed-off-by: Andreas Färber --- v2: new arch/arm64/boot/dts/actions/s900-bubblegum-96.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/ac

[PATCH v2 17/17] ARM: dts: s500-guitar-bb-rev-b: Add fake uart3 clock

2017-02-23 Thread Andreas Färber
Add a fixed-clock for baudrate 115200. Signed-off-by: Andreas Färber --- v2: new arch/arm/boot/dts/s500-guitar-bb-rev-b.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/s500-guitar-bb-rev-b.dts b/arch/arm/boot/dts/s500-guitar-bb-rev-b.dts index 834b71d..f6fd10

[PATCH v2 12/17] dt-bindings: arm: Document Actions Semi S900

2017-02-23 Thread Andreas Färber
The Actions Semi S900 is a quad-core ARM Cortex-A53 SoC. The Bubblegum-96 is a 96Boards Consumer Edition compliant board (4/96). Cc: 96boa...@ucrobotics.com Signed-off-by: Andreas Färber --- v1 -> v2: * Adopted "actions" vendor prefix * Extended text Documentation/devicetree/bindings/arm/ac

[PATCH v2 15/17] tty: serial: owl: Implement console driver

2017-02-23 Thread Andreas Färber
Implement serial console driver to complement earlycon. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v2: new drivers/tty/serial/Kconfig | 4 +- drivers/tty/serial/owl-uart.c| 574 ++- include/uapi/linux/serial_core.h |

[PATCH v2 11/17] dt-bindings: Add vendor prefix for uCRobotics

2017-02-23 Thread Andreas Färber
Cc: 96boa...@ucrobotics.com Signed-off-by: Andreas Färber --- v1 -> v2: unchanged Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes

[PATCH v2 09/17] Documentation: kernel-parameters: Document owl earlycon

2017-02-23 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v1 -> v2: unchanged Documentation/admin-guide/kernel-parameters.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 986e443..f48a142 100644 --- a

[PATCH v2 10/17] ARM: dts: Add Actions Semi S500 and LeMaker Guitar

2017-02-23 Thread Andreas Färber
Signed-off-by: Andreas Färber --- v1 -> v2: * Reworded subject * Updated ARCH_OWL to ARCH_ACTIONS (Arnd) * Adopted "actions" vendor prefix * Dropped irq.h include * Added memory@0 node for Guitar SoM * Dropped bogus uart3 clock-frequency * Added device_type for CPU nodes * Fixed UART reg

[PATCH v2 08/17] tty: serial: Add Actions Semi Owl UART earlycon

2017-02-23 Thread Andreas Färber
This implements an earlycon for Actions Semi S500/S900 SoCs. Based on LeMaker linux-actions tree. Signed-off-by: Andreas Färber --- v1 -> v2: * Extended Kconfig help to mention earlycon (Arnd) * Spelled out Actions Semiconductor in Kconfig help * Adopted "actions" vendor prefix drivers/tt

[PATCH v2 07/17] dt-bindings: serial: Document Actions Semi Owl UARTs

2017-02-23 Thread Andreas Färber
This UART is found on S500 and S900 SoCs. Signed-off-by: Andreas Färber --- v1 -> v2: * Adopted "actions" vendor prefix .../devicetree/bindings/serial/actions,owl-uart.txt | 16 1 file changed, 16 insertions(+) create mode 100644 Documentation/devicetree/bindings/seri

[PATCH v2 01/17] dt-bindings: Add vendor prefix for Actions Semi

2017-02-23 Thread Andreas Färber
Actions Semiconductor was listed on NASDAQ as ACTS until Dec 16, 2016. Cc: mp...@actions-semi.com Signed-off-by: Andreas Färber --- v1 -> v2: * Reverted from "acts" to "actions" (cf. IAP140 "mrvl" vs. "marvell") Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 i

Re: [PATCH 1/2] extcon: cros-ec: Add extcon-cros-ec driver to support display out.

2017-02-23 Thread Chanwoo Choi
lared identifier is reported only once for each function it appears in drivers/extcon/extcon-cros_ec.c:317:6: error: ‘EC_HOST_EVENT_USB_MUX’ undeclared (first use in this function) [1] 27fde840c0aa - "Add linux-next specific files for 20170223" on linux-next.git On 2017년 02월 21일 00:18, E

Re: [PATCH V4 1/6] mm: delete unnecessary TTU_* flags

2017-02-23 Thread Hillf Danton
On February 23, 2017 2:51 AM Shaohua Li wrote: > > Johannes pointed out TTU_LZFREE is unnecessary. It's true because we > always have the flag set if we want to do an unmap. For cases we don't > do an unmap, the TTU_LZFREE part of code should never run. > > Also the TTU_UNMAP is unnecessary. If

Re: [PATCH v4 08/11] drivers: perf: hisi: use poll method to avoid L3C counter overflow

2017-02-23 Thread Anurup M
On Tuesday 21 February 2017 05:39 PM, Will Deacon wrote: On Mon, Feb 20, 2017 at 11:09:43AM +, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:03PM -0500, Anurup M wrote: The L3 cache PMU use N-N SPI interrupt which has no support in kernel mainline. Could you elaborate on what you mea

Re: [PATCH v2 4/4] usb: dwc3: Workaround for super-speed host on dra7 in dual-role mode

2017-02-23 Thread Vivek Gautam
On 02/24/2017 06:27 AM, Peter Chen wrote: On Thu, Feb 23, 2017 at 02:04:50PM +0530, Vivek Gautam wrote: On 02/16/2017 06:36 PM, Roger Quadros wrote: dra7 OTG core limits the host controller to USB2.0 (high-speed) mode when we're operating in dual-role. We work around that by bypassing the O

Re: [PATCH v4 10/11] drivers: perf: hisi: Handle counter overflow IRQ in MN PMU

2017-02-23 Thread Anurup M
Sorry for delay in reply. On Tuesday 21 February 2017 05:33 PM, Mark Rutland wrote: On Tue, Feb 21, 2017 at 05:19:58PM +0530, Anurup M wrote: On Monday 20 February 2017 04:59 PM, Mark Rutland wrote: On Sun, Feb 19, 2017 at 01:51:22PM -0500, Anurup M wrote: + /* Clear the

linux-next: Tree for Feb 24

2017-02-23 Thread Stephen Rothwell
Hi all, Please do not add any material intended for v4.12 to your linux-next included branches until after v4.11-rc1 has been released. Changes since 20170223: The drm tree gained a conflict against Linus' tree and a build failure, so I used the version from next-20170223. The scsi tree

Re: net: possible deadlock in skb_queue_tail

2017-02-23 Thread Florian Westphal
Andrey Konovalov wrote: [ CC Paolo ] > I've got the following error report while fuzzing the kernel with syzkaller. > > On commit c470abd4fde40ea6a0846a2beab642a578c0b8cd (4.10). > > Unfortunately I can't reproduce it. This needs NETLINK_BROADCAST_ERROR enabled on a netlink socket that then s

Re: [PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-23 Thread Ricardo Neri
On Thu, 2017-02-23 at 18:33 -0800, Joe Perches wrote: > On Thu, 2017-02-23 at 14:17 -0800, Ricardo Neri wrote: > > On Thu, 2017-02-23 at 08:24 +0100, Peter Zijlstra wrote: > > > On Wed, Feb 22, 2017 at 10:36:50PM -0800, Ricardo Neri wrote: > > > > + /* > > > > +

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

2017-02-23 Thread Guenter Roeck
On Thu, Feb 23, 2017 at 04:43:20PM -0600, Edward James wrote: > Hi Guenter, > > Any thoughts on this patch set? Others welcome to chime in too. > Sorry, I have been busy. Weekend or next week, hopefully. Guenter > Thanks, > Eddie > > Eddie James wrote on 02/14/2017 02:34:17 PM: > > > From: E

Re: [PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-23 Thread Joe Perches
On Thu, 2017-02-23 at 14:17 -0800, Ricardo Neri wrote: > On Thu, 2017-02-23 at 08:24 +0100, Peter Zijlstra wrote: > > On Wed, Feb 22, 2017 at 10:36:50PM -0800, Ricardo Neri wrote: > > > + /* > > > + * A negative offset generally means a error, except > > > +

Re: [PATCH V2] cpufreq: schedutil: Redefine the rate_limit_us tunable

2017-02-23 Thread Viresh Kumar
On 24-02-17, 00:36, Rafael J. Wysocki wrote: > I'd prefer this to spend some time in linux-next before it goes into > the mainline, so I will queue it up for 4.12 if no one objects by the > end of the next week. Sure. Thanks. -- viresh

Re: [Qemu-devel] kvm bug in __rmap_clear_dirty during live migration

2017-02-23 Thread Herongguang (Stephen)
On 2017/2/22 22:43, Paolo Bonzini wrote: On 22/02/2017 14:31, Chris Friesen wrote: Can you reproduce it with kernel 4.8+? I'm suspecting commmit 4e59516a12a6 ("kvm: vmx: ensure VMCS is current while enabling PML", 2016-07-14) to be the fix. I can't easily try with a newer kernel, the s

Re: [PATCH V4 6/6] proc: show MADV_FREE pages info in smaps

2017-02-23 Thread Minchan Kim
On Wed, Feb 22, 2017 at 10:50:44AM -0800, Shaohua Li wrote: > show MADV_FREE pages info of each vma in smaps. The interface is for > diganose or monitoring purpose, userspace could use it to understand > what happens in the application. Since userspace could dirty MADV_FREE > pages without notice f

Re: [PATCH V4 4/6] mm: reclaim MADV_FREE pages

2017-02-23 Thread Minchan Kim
On Wed, Feb 22, 2017 at 10:50:42AM -0800, Shaohua Li wrote: > 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 fla

Re: [PATCH] target/user: Add daynmic growing data area featuresupport

2017-02-23 Thread Xiubo Li
When N is bigger, the ratio will be smaller. If N >= 1, the ratio will be [15/1024, 4/1024), for this the ratio 15 : 1024 will be enough. But maybe some iscsi cmds has no datas, N == 0. So the ratio should be bigger. For now we will increase the data area size to 1G, and the cmd area size to 12

Re: [git pull] drm for v4.11 - main pull request

2017-02-23 Thread Linus Torvalds
On Thu, Feb 23, 2017 at 5:44 PM, Linus Torvalds wrote: > > AND WHY THE HELL WAS THIS UTTER SHITE SENT TO ME IF IT WAS COMMITTED > YESTERDAY? .. and a slightly less annoying piece of crap in this pull request: that "PRIME_NUMBERS" config thing is utter garbage too. Why would you ask a user about

Re: [RFC][PATCH] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-23 Thread liuxinliang
Hi John, On 2017/2/23 8:56, John Stultz wrote: In some cases I've been seeing a race where two framebuffers would be initialized, as kirin_fbdev_output_poll_changed() might get called quickly in succession, resulting in the fb initialization happening twice. This could cause the system I might

Re: [PATCH V4 3/6] mm: move MADV_FREE pages into LRU_INACTIVE_FILE list

2017-02-23 Thread Minchan Kim
On Wed, Feb 22, 2017 at 10:50:41AM -0800, Shaohua Li wrote: > 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 fr

Re: [git pull] drm for v4.11 - main pull request

2017-02-23 Thread Linus Torvalds
On Thu, Feb 23, 2017 at 4:01 PM, Dave Airlie wrote: > > This is the main drm pull request for v4.11. > > Nothing too major, the tinydrm and mmu-less support should make writing > smaller drivers easier for some of the simpler platforms, and there are > a bunch of documentation updates. The tinydr

Re: 9908859acaa9 cpuidle/menu: add per CPU PM QoS resume latency consideration

2017-02-23 Thread Alex Shi
> Well, first, please submit this properly (with a proper subject and CC to > linux-pm) > if I'm expected to apply it. > Hi Rafael, Thanks for reminder! A raw read function looks better. And maybe useful for others. Acked-by: Alex Shi > > > > --- > drivers/base/power/qos.c |

  1   2   3   4   5   6   7   >