Re: [PATCH 3/4] drm: Add helper for simple display pipeline

2016-05-10 Thread Daniel Vetter
On Mon, May 09, 2016 at 08:37:39PM +0200, Noralf Trønnes wrote: > > Den 09.05.2016 16:46, skrev Daniel Vetter: > >On Thu, May 05, 2016 at 03:24:33PM +0200, Noralf Trønnes wrote: > >>Provides helper functions for drivers that have a simple display > >>pipeline. Plane, crtc and encoder are collapsed

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-10 Thread Christoph Hellwig
On Mon, May 09, 2016 at 08:02:58AM -0400, Jeff Layton wrote: > > > AT_FORCE_ATTR_SYNC can be set in flags.This will require a network > > > filesystem to synchronise its attributes with the server. > > > > > > AT_NO_ATTR_SYNC can be set in flags.This will suppress synchronisation > > > wit

Re: [PATCH v2] locking/rwsem: Add reader-owned state to the owner field

2016-05-10 Thread Peter Zijlstra
On Mon, May 09, 2016 at 10:24:16PM -0400, Waiman Long wrote: > >>+static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) > >>+{ > >>+ /* > >>+* We check the owner value first to make sure that we will only > >>+* do a write to the rwsem cacheline when it is really necessary >

Re: [PATCH 4.5 00/88] 4.5.4-stable review

2016-05-10 Thread Greg Kroah-Hartman
On Mon, May 09, 2016 at 01:41:34PM -0600, Shuah Khan wrote: > On 05/09/2016 01:20 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.5.4 release. > > There are 88 patches in this series, all will be posted as a response > > to this one. If anyone has any issue

Re: [PATCH 4.5 00/88] 4.5.4-stable review

2016-05-10 Thread Greg Kroah-Hartman
On Mon, May 09, 2016 at 06:08:39AM -0700, Guenter Roeck wrote: > On 05/09/2016 12:20 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.5.4 release. > > There are 88 patches in this series, all will be posted as a response > > to this one. If anyone has any is

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-10 Thread Christoph Hellwig
On Mon, May 09, 2016 at 01:57:32PM +0100, David Howells wrote: > > > AT_FORCE_ATTR_SYNC can be set in flags. This will require a network > > > filesystem to synchronise its attributes with the server. > > > > > > AT_NO_ATTR_SYNC can be set in flags. This will suppress synchronisation > > > with

Re: [PATCH 6/6] mm/page_owner: use stackdepot to store stacktrace

2016-05-10 Thread Joonsoo Kim
2016-05-05 4:40 GMT+09:00 Michal Hocko : > On Thu 05-05-16 00:30:35, Joonsoo Kim wrote: >> 2016-05-04 18:21 GMT+09:00 Michal Hocko : > [...] >> > Do we really consume 512B of stack during reclaim. That sounds more than >> > worrying to me. >> >> Hmm...I checked it by ./script/stackusage and result

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-10 Thread Christoph Hellwig
On Mon, May 09, 2016 at 02:38:21PM +0100, David Howells wrote: > Let's look at the list, and please bear in mind I'm trying to make it so that > you can emulate stat() through this interface. If you want to waive that > requirement - or push the emulation out to userspace - then I can forego > pro

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-10 Thread Yuyang Du
On Mon, May 09, 2016 at 11:39:05AM +0200, Mike Galbraith wrote: > On Mon, 2016-05-09 at 09:13 +0800, Yuyang Du wrote: > > On Mon, May 09, 2016 at 09:44:13AM +0200, Mike Galbraith wrote: > > > > In a perfect world, running only Chris' benchmark on an otherwise idle > > > box, there would never _be_

[PATCH v2] usb: serial: ti_usb_3410_5052: add MOXA UPORT 11x0 support

2016-05-10 Thread Mathieu OTHACEHE
Add support for : - UPort 1110 : 1 port RS-232 USB to Serial Hub. - UPort 1130 : 1 port RS-422/485 USB to Serial Hub. - UPort 1130I : 1 port RS-422/485 USB to Serial Hub with Isolation. - UPort 1150 : 1 port RS-232/422/485 USB to Serial Hub. - UPort 1150I : 1 port RS-232/422/485 USB to Serial H

Re: [PATCH 0.14] oom detection rework v6

2016-05-10 Thread Vlastimil Babka
On 05/10/2016 08:41 AM, Joonsoo Kim wrote: You applied band-aid for CONFIG_COMPACTION and fixed some reported problem but it is also fragile. Assume almost pageblock's skipbit are set. In this case, compaction easily returns COMPACT_COMPLETE and your logic will stop retry. Compaction isn't design

Re: [GIT PULL] move ARM LCD display driver to auxdisplay

2016-05-10 Thread Greg KH
On Mon, May 09, 2016 at 04:27:00PM +0200, Linus Walleij wrote: > On Mon, May 9, 2016 at 4:17 PM, Robin van der Gracht > wrote: > > On Mon, 9 May 2016 15:19:26 +0200 > > Linus Walleij wrote: > > > >> On Mon, May 9, 2016 at 9:06 AM, Robin van der Gracht > >> wrote: > >> > >> > If you guys feel li

Re: [PATCH] mmc: tegra: Disable UHS-I modes for tegra30

2016-05-10 Thread Lucas Stach
Hi Jon, Am Montag, den 09.05.2016, 16:15 +0100 schrieb Jon Hunter: > Support for SD cards is not working on the Tegra30 Beaver board and > on > boot the following error message is seen if an SD card is present: > >  mmc0: error -110 whilst initialising SD card > Can you please tell me what kind

RE: [PATCH 2/2] i2c: qup: support SMBus block read

2016-05-10 Thread Sricharan
+additional lists > I2C QUP driver relies on SMBus emulation support from the framework. > To handle SMBus block reads, the driver should check I2C_M_RECV_LEN flag > and should read the first byte received as the message length. > > The driver configures the QUP hardware to read one byte. Once th

Re: [PATCH 1/4] usb: dwc3: of-simple: add compatible for rockchip

2016-05-10 Thread Felipe Balbi
Hi, Doug Anderson writes: > William, > > On Mon, May 9, 2016 at 4:46 AM, William Wu wrote: >> Signed-off-by: William Wu >> --- >> drivers/usb/dwc3/dwc3-of-simple.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/usb/dwc3/dwc3-of-simple.c >> b/drivers/usb/dwc3/dwc3-of-simp

Re: [PATCH 1/4] usb: dwc3: of-simple: add compatible for rockchip

2016-05-10 Thread Felipe Balbi
Hi, Brian Norris writes: > Hi William, > > Did you leave off linux-rockc...@lists.infradead.org intentionally? IMO, > it's nice to have that list in CC, so interested parties can follow your > work, even if they aren't as fortunate as me to have been CC'd on your > patch directly. > > On Mon, Ma

[PATCH] firmware/drivers/psci: Fix unused functions when CONFIG_CPU_IDLE=n

2016-05-10 Thread Daniel Lezcano
On the ARM64 architecture, when CPUIDLE is not set in the configuration, the compilation raises a couple of warnings: drivers/firmware/psci.c:70:12: warning: 'psci_pd_power_off' defined but not used [-Wunused-function] drivers/firmware/psci.c:273:12: warning: 'psci_set_suspend_mode_osi' defined

Re: usb: dwc2: regression on MyBook Live Duo / Canyonlands since 4.3.0-rc4

2016-05-10 Thread Arnd Bergmann
On Tuesday 10 May 2016 08:37:52 Benjamin Herrenschmidt wrote: > On Mon, 2016-05-09 at 17:08 +0200, Arnd Bergmann wrote: > > > > Unfortunately, I don't see any way this could be done in MIPS specific > > code: There is typically a byteswap between the internal bus and the PCI > > bus on big-endian

[PATCH] lightnvm: expose mark_blk through core

2016-05-10 Thread Javier González
Expose mark_blk through the core LightNVM operations to hid the media manager, as we do for the rest of the block operations. This is necessary for targets to mark a growing bad block as bad before returning it to the media manager. Signed-off-by: Javier González --- drivers/lightnvm/core.c | 6

[GIT PULL] at91: fixes for 4.6 #1

2016-05-10 Thread Nicolas Ferre
Arnd, Olof, Kevin, Here is a late fix for AT91. Sorry to have figure it out so late in the development cycle but we had to confirm it was an error with the documentation of two products. So, as the compatibility string is in since 4.6-rc1 and that the previous one works okay, it's a good opportuni

Re: [PATCH RESEND 03/12] sh: Disable board specific code in OF mode

2016-05-10 Thread Yoshinori Sato
Sorry too late reply. On Wed, 04 May 2016 11:49:41 +0900, Rich Felker wrote: > > On Sun, May 01, 2016 at 02:08:27PM +0900, Yoshinori Sato wrote: > > Board specific code conflict on of-generic. > > > > Signed-off-by: Yoshinori Sato > > --- > > arch/sh/Makefile | 11 +++ > > 1 file chang

Re: [PATCH] memcg: fix stale mem_cgroup_force_empty() comment

2016-05-10 Thread Michal Hocko
On Fri 06-05-16 14:23:30, Greg Thelen wrote: > commit f61c42a7d911 ("memcg: remove tasks/children test from > mem_cgroup_force_empty()") removed memory reparenting from the function. > > Fix the function's comment. > > Signed-off-by: Greg Thelen Acked-by: Michal Hocko > --- > mm/memcontrol.c

Re: [PATCHv5 8/8] mfd: as3722: Rid driver of superfluous I2C device ID structure

2016-05-10 Thread Lee Jones
On Tue, 10 May 2016, Javier Martinez Canillas wrote: > On 05/04/2016 11:14 AM, Kieran Bingham wrote: > > From: Lee Jones > > > > Also remove unused second probe() parameter 'i2c_device_id'. > > > > Acked-by: Grant Likely > > Signed-off-by: Lee Jones > > Signed-off-by: Kieran Bingham > > > >

Re: [PATCH v7 03/14] usb: hcd.h: Add OTG to HCD interface

2016-05-10 Thread Roger Quadros
On 10/05/16 06:14, Peter Chen wrote: > On Mon, May 09, 2016 at 12:45:38PM +0300, Roger Quadros wrote: >> On 06/05/16 12:41, Peter Chen wrote: >>> On Mon, May 02, 2016 at 03:18:46PM +0300, Roger Quadros wrote: The OTG core will use struct otg_hcd_ops to interface with the HCD controller. >

[tip:x86/urgent] x86/topology: Set x86_max_cores to 1 for CONFIG_SMP=n

2016-05-10 Thread tip-bot for Thomas Gleixner
Commit-ID: 8d415ee225a3d15d3e3029524350e8237a4de7b8 Gitweb: http://git.kernel.org/tip/8d415ee225a3d15d3e3029524350e8237a4de7b8 Author: Thomas Gleixner AuthorDate: Tue, 10 May 2016 09:20:33 +0200 Committer: Thomas Gleixner CommitDate: Tue, 10 May 2016 09:28:31 +0200 x86/topology: Set x8

Re: [PATCH v9 0/8] KVM PCIe/MSI passthrough on ARM/ARM64: kernel part 2/3: msi changes

2016-05-10 Thread Eric Auger
Hi Chalamarla, > On 5/9/16, 12:48 AM, "Eric Auger" wrote: > >> Hi Chalarmala, >> On 05/05/2016 07:44 PM, Chalamarla, Tirumalesh wrote: >>> Hi Eric, >>> >>> Does this series supports gicv3-its emulation? >>> Do we have a tree with all the dependent patches >> GICv3 ITS emulation support comes with

[RFC 01/13] mm, compaction: don't isolate PageWriteback pages in MIGRATE_SYNC_LIGHT mode

2016-05-10 Thread Vlastimil Babka
From: Hugh Dickins At present MIGRATE_SYNC_LIGHT is allowing __isolate_lru_page() to isolate a PageWriteback page, which __unmap_and_move() then rejects with -EBUSY: of course the writeback might complete in between, but that's not what we usually expect, so probably better not to isolate it. Si

[RFC 02/13] mm, page_alloc: set alloc_flags only once in slowpath

2016-05-10 Thread Vlastimil Babka
In __alloc_pages_slowpath(), alloc_flags doesn't change after it's initialized, so move the initialization above the retry: label. Also make the comment above the initialization more descriptive. Signed-off-by: Vlastimil Babka --- mm/page_alloc.c | 14 +++--- 1 file changed, 7 insertions

[RFC 11/13] mm, compaction: add the ultimate direct compaction priority

2016-05-10 Thread Vlastimil Babka
During reclaim/compaction loop, it's desirable to get a final answer from unsuccessful compaction so we can either fail the allocation or invoke the OOM killer. However, heuristics such as deferred compaction or pageblock skip bits can cause compaction to skip parts or whole zones and lead to prema

[RFC 12/13] mm, compaction: more reliably increase direct compaction priority

2016-05-10 Thread Vlastimil Babka
During reclaim/compaction loop, compaction priority can be increased by the should_compact_retry() function, but the current code is not optimal for several reasons: - priority is only increased when compaction_failed() is true, which means that compaction has scanned the whole zone. This may no

[RFC 09/13] mm, compaction: make whole_zone flag ignore cached scanner positions

2016-05-10 Thread Vlastimil Babka
A recent patch has added whole_zone flag that compaction sets when scanning starts from the zone boundary, in order to report that zone has been fully scanned in one attempt. For allocations that want to try really hard or cannot fail, we will want to introduce a mode where scanning whole zone is g

[RFC 08/13] mm, compaction: simplify contended compaction handling

2016-05-10 Thread Vlastimil Babka
Async compaction detects contention either due to failing trylock on zone->lock or lru_lock, or by need_resched(). Since 1f9efdef4f3f ("mm, compaction: khugepaged should not give up due to need_resched()") the code got quite complicated to distinguish these two up to the __alloc_pages_slowpath() le

[RFC 07/13] mm, compaction: introduce direct compaction priority

2016-05-10 Thread Vlastimil Babka
In the context of direct compaction, for some types of allocations we would like the compaction to either succeed or definitely fail while trying as hard as possible. Current async/sync_light migration mode is insufficient, as there are heuristics such as caching scanner positions, marking pagebloc

[RFC 13/13] mm, compaction: fix and improve watermark handling

2016-05-10 Thread Vlastimil Babka
Compaction has been using watermark checks when deciding whether it was successful, and whether compaction is at all suitable. There are few problems with these checks. - __compact_finished() uses low watermark in a check that has to pass if the direct compaction is to finish and allocation shou

[RFC 10/13] mm, compaction: cleanup unused functions

2016-05-10 Thread Vlastimil Babka
Since kswapd compaction moved to kcompactd, compact_pgdat() is not called anymore, so we remove it. The only caller of __compact_pgdat() is compact_node(), so we merge them and remove code that was only reachable from kswapd. Signed-off-by: Vlastimil Babka --- include/linux/compaction.h | 5 ---

[RFC 06/13] mm, thp: remove __GFP_NORETRY from khugepaged and madvised allocations

2016-05-10 Thread Vlastimil Babka
After the previous patch, we can distinguish costly allocations that should be really lightweight, such as THP page faults, with __GFP_NORETRY. This means we don't need to recognize khugepaged allocations via PF_KTHREAD anymore. We can also change THP page faults in areas where madvise(MADV_HUGEPAG

[PATCH 14/18] scripts/gdb: Add lx_thread_info_by_pid helper

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham The tasks module already provides helpers to find the task struct by pid, and the thread_info by task struct; however this is cumbersome to utilise on the gdb commandline. Wrap these two functionalities together in an extra single helper to allow exploring the thread info, f

Re: [PATCH] vfio: platform: use vfio_iommu_group_get/put

2016-05-10 Thread Peng Fan
Hi Alex, On Mon, May 09, 2016 at 09:32:38AM -0600, Alex Williamson wrote: >On Mon, 9 May 2016 18:01:43 +0800 >Peng Fan wrote: > >> Use vfio_iommu_group_get and vfio_iommu_group_put, but not >> iommu_group_get or iommu_group_put. > >I assume you're trying to duplicate the vfio_pci changes from co

[PATCH 02/18] scripts/gdb: Provide linux constants

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Some macro's and defines are needed when parsing memory, and without compiling the kernel as -g3 they are not available in the debug-symbols. We use the pre-processor here to extract constants to a dedicated module for the linux debugger extensions Top level Kbuild is used

[PATCH 09/18] scripts/gdb: Add mount point list command

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham lx-mounts will identify current mount points based on the 'init_task' namespace by default, as we do not yet have a kernel thread list implementation to select the current running thread. Optionally, a user can specify a PID to list from that process' namespace Signed-off-b

[RFC 05/13] mm, page_alloc: make THP-specific decisions more generic

2016-05-10 Thread Vlastimil Babka
Since THP allocations during page faults can be costly, extra decisions are employed for them to avoid excessive reclaim and compaction, if the initial compaction doesn't look promising. The detection has never been perfect as there is no gfp flag specific to THP allocations. At this moment it chec

[PATCH 00/18] scripts/gdb: Updates for 4.7

2016-05-10 Thread Jan Kiszka
Hi Andrew, please include the following enhancements and fixed for the gdb scripts in your queue. This adds a number of new commands and helper functions, contributed by Kieran, and fixes lx-dmesg for Python 3 as well as corrects the output of lx-lsmod. Kieran stepped up to support me significan

[PATCH 06/18] scripts/gdb: Support !CONFIG_MODULES gracefully

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham If CONFIG_MODULES is not enabled, lx-lsmod tries to find a non-existent symbol and generates an unfriendly traceback: (gdb) lx-lsmod AddressModule Size Used by Traceback (most recent call last): File "scripts/gdb/linux/modules.py", line 75, in invoke

[PATCH v2 5/9] perf tools: Add methods to test dso is 64-bit or 32-bit

2016-05-10 Thread He Kuang
32-bit programs can be run on 64-bit machines, so we should choose unwind methods according to 'thread->map' instead of the host architecture. This patch adds methods to test whether a dso is 64-bit or 32-bit by the class info in elf. Signed-off-by: He Kuang --- tools/perf/util/symbol-elf.c | 1

[PATCH v2 6/9] perf tools: Promote proper messages for cross-platform unwind

2016-05-10 Thread He Kuang
Currently, perf script uses host unwind methods to parse perf.data callchain info regardless of the target architecture. So we get wrong result and no promotion when unwinding callchains of x86(32-bit) on x86(64-bit) machine. This patch shows proper error messages when we do remote unwind x86(32-b

Re: [PATCH v3 3/4] mfd: arizona: Switch to using clock driver for 32k clock

2016-05-10 Thread Lee Jones
On Mon, 09 May 2016, Stephen Boyd wrote: > On 05/09, Lee Jones wrote: > > On Fri, 06 May 2016, Stephen Boyd wrote: > > > > > On 01/08, Charles Keepax wrote: > > > > Now we have a clock driver that can control the 32k clock use this > > > > rather than directly controlling the 32k clock from the MF

[PATCH v2 7/9] perf callchain: Add support for cross-platform unwind

2016-05-10 Thread He Kuang
Use thread specific unwind ops to unwind cross-platform callchains. Before this patch, unwind methods is suitable for local unwind, this patch changes the fixed methods to thread/map related. Each time a map is inserted, we find the target arch and see if this platform can be remote unwind. In thi

[PATCH v2 9/9] perf callchain: Support aarch64 cross-platform

2016-05-10 Thread He Kuang
Support aarch64 cross platform callchain unwind. Signed-off-by: He Kuang --- .../perf/arch/arm64/include/libunwind/libunwind-arch.h | 18 ++ tools/perf/arch/arm64/util/unwind-libunwind.c | 5 - tools/perf/config/Makefile | 12

[PATCH v2 8/9] perf callchain: Support x86 target platform

2016-05-10 Thread He Kuang
Support x86(32-bit) cross platform callchain unwind. Signed-off-by: He Kuang --- .../arch/x86/include/libunwind/libunwind-arch.h| 18 ++ tools/perf/arch/x86/util/unwind-libunwind.c| 42 ++ tools/perf/util/Build | 6 tools

[PATCH v2 4/9] perf build: Add build-test for debug-frame on arm/arm64

2016-05-10 Thread He Kuang
Debug-frame for remote platforms is not related to the host platform, so we should test each platform separately. Signed-off-by: He Kuang --- tools/build/Makefile.feature | 4 +++- tools/build/feature/Makefile | 7 +++ tools/build/fea

[PATCH v2 1/9] perf tools: Omit DWARF judgement when recording dwarf callchain

2016-05-10 Thread He Kuang
There is no need to check for DWARF unwinding support when using the 'dwarf' callchain record method, as this will only ask the kernel to collect stack dumps for later DWARF CFI processing, which can be done in another machine, where the support for DWARF unwinding need to be present. Signed-off-b

[PATCH v2 0/9] Add support for remote unwind

2016-05-10 Thread He Kuang
v1 url: http://thread.gmane.org/gmane.linux.kernel/2216256 Currently, perf script uses host unwind methods(local unwind) to parse perf.data callchain info regardless of the target architecture. So we get wrong result and no promotion when do remote unwind on other platforms/machines. This patc

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-05-10 Thread Zhangjian (Bamvor)
Hi, Yury On 2016/5/6 20:37, Yury Norov wrote: On Fri, May 06, 2016 at 08:16:48PM +0800, Zhangjian (Bamvor) wrote: Hi, On 2016/4/6 6:08, Yury Norov wrote: From: Andrew Pinski Add a separate syscall-table for ILP32, which dispatches either to native LP64 system call implementation or to compa

[PATCH v2 2/9] perf script: Add options for custom vdso path

2016-05-10 Thread He Kuang
When unwinding callchains on a different machine, vdso info should be provided so the unwind process won't be interrupted if address falls into vdso region. Currently, perf does try to read vdso binary in '.debug' folder, but the filename of the vdso file is generated randomly based on VDSO__TEMP_

Re: [PATCH RESEND 10/12] sh: I/O DATA HDL-U (aka landisk) support dts

2016-05-10 Thread Yoshinori Sato
On Wed, 04 May 2016 12:27:57 +0900, Rich Felker wrote: > > On Sun, May 01, 2016 at 02:08:34PM +0900, Yoshinori Sato wrote: > > Signed-off-by: Yoshinori Sato > > --- > > arch/sh/boot/dts/landisk.dts | 150 > > +++ > > 1 file changed, 150 insertions(+) > >

[PATCH v2 3/9] perf build: Add build-test for libunwind cross-platforms support

2016-05-10 Thread He Kuang
Currently only test for local libunwind. We should check all supported platforms so we can use them to parse perf.data with callchain info on different machines. Signed-off-by: He Kuang --- tools/build/Makefile.feature | 4 tools/build/feature/Makefile | 16

[PATCH 15/18] scripts/gdb: Improve types abstraction for gdb python scripts

2016-05-10 Thread Jan Kiszka
From: Dom Cote Change the read_u16 function so it accepts both 'str' and 'byte' as type for the arguments. When calling read_memory() from gdb API, depending on if it was built with 2.7 or 3.X, the format used to return the data will differ ( 'str' for 2.7, and 'byte' for 3.X ). Add a function

Re: [PATCH 1/4] usb: dwc3: of-simple: add compatible for rockchip

2016-05-10 Thread William Wu
Dear Felipe & Doug, Thanks for your proposal. It's a good idea to sort the list. I'll fix it next patch version. On 05/10/2016 03:14 PM, Felipe Balbi wrote: Hi, Doug Anderson writes: William, On Mon, May 9, 2016 at 4:46 AM, William Wu wrote: Signed-off-by: William Wu ---

[PATCH 17/18] scripts/gdb: decode bytestream on dmesg for Python3

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham The recent fixes to lx-dmesg, now allow the command to print successfully on Python3, however the python interpreter wraps the bytes for each line with a b'' marker. To remove this, we need to decode the line, where .decode() will default to 'UTF-8' Signed-off-by: Kieran Bi

[PATCH 07/18] scripts/gdb: Provide a dentry_name VFS path helper

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Walk the VFS entries, pre-pending the iname strings to generate a full VFS path name from a dentry. Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- scripts/gdb/linux/utils.py | 8 1 file changed, 8 insertions(+) diff --git a/scripts/gdb/linux/utils.p

[PATCH 10/18] scripts/gdb: Add cpu iterators

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham The linux kernel provides macro's for iterating against values from the cpu_list masks. By providing some commonly used masks, we can mirror the kernels helper macros with easy to use generators. Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- scripts/gdb/linu

[PATCH 03/18] scripts/gdb: Provide kernel list item generators

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Facilitate linked-list items by providing a generator to return the dereferenced, and type-cast objects from a kernel linked list CC: Jeff Mahoney Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- scripts/gdb/linux/lists.py | 21 + 1 file c

[PATCH 05/18] scripts/gdb: Provide exception catching parser

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham If we attempt to read a value that is not available to GDB, an exception is raised. Most of the time, this is a good thing; however on occasion we will want to be able to determine if a symbol is available. By catching the exception to simply return None, we can determine if

Re: [PATCH RESEND 12/12] of: Add sh support

2016-05-10 Thread Yoshinori Sato
On Mon, 02 May 2016 21:35:28 +0900, Rob Herring wrote: > > On Sun, May 1, 2016 at 12:08 AM, Yoshinori Sato > wrote: > > sh fdt access in VA. But memory reservation use PA. > > So sh need convert to PA. > > > > Signed-off-by: Yoshinori Sato > > --- > > drivers/of/fdt.c | 3 +++ > > 1 file change

[PATCH 04/18] scripts/gdb: Convert modules usage to lists functions

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Simplify the module list functions with the new list_for_each_entry abstractions Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/gdb/lin

[PATCH 13/18] scripts/gdb: Add documentation example for radix tree

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Provide a worked example for utilising the lx_radix_tree_lookup function Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- Documentation/gdb-kernel-debugging.txt | 21 + 1 file changed, 21 i

[PATCH 08/18] scripts/gdb: Add io resource readers

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Provide iomem_resource and ioports_resource printers and command hooks It can be quite interesting to halt the kernel as it's booting and check to see this list as it is being populated. It should be useful in the event that a kernel is not booting, you can identify what me

[PATCH 16/18] scripts/gdb: Fix issue with dmesg.py and python 3.X

2016-05-10 Thread Jan Kiszka
From: Dom Cote When built against Python 3, GDB differs in the return type for its read_memory function, causing the lx-dmesg command to fail. Now that we have an improved read_16() we can use the new read_memoryview() abstraction to make lx-dmesg return valid data on both current Python APIs T

[PATCH 18/18] MAINTAINERS: Add co-maintainer for scripts/gdb

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Add myself as a co-maintainer for scripts/gdb supporting Jan Kizka Signed-off-by: Kieran Bingham Signed-off-by: Jan Kiszka --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index a727d99..22c0d84 100644 --- a/MAINTAINERS +++ b/M

Re: [PATCHv5 0/8] 2c: Relax mandatory I2C ID table passing

2016-05-10 Thread Kieran Bingham
Hi Javier, On 10/05/16 06:31, Javier Martinez Canillas wrote: > Hello Kieran, > > On 05/04/2016 11:14 AM, Kieran Bingham wrote: >> This patch set finally pops up again, after a long time stuck somewhere in >> the >> midst of my stack. >> >> As it stood last year, the requirements were to rename

[PATCH 01/18] scripts/gdb: Adjust module reference counter reported by lx-lsmod

2016-05-10 Thread Jan Kiszka
This takes the MODULE_REF_BASE into account. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py index 0a35d6d..38f5d17 100644 --- a/scripts/gdb/linux/modules.py

[PATCH 11/18] scripts/gdb: Cast CPU numbers to integer

2016-05-10 Thread Jan Kiszka
We won't see more than 2 billion CPUs any time soon, and having cpu_list return long makes the output of lx-cpus a bit ugly. Signed-off-by: Jan Kiszka --- scripts/gdb/linux/cpus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gdb/linux/cpus.py b/scripts/gdb/linux/c

[PATCH 12/18] scripts/gdb: Add a Radix Tree Parser

2016-05-10 Thread Jan Kiszka
From: Kieran Bingham Linux makes use of the Radix Tree data structure to store pointers indexed by integer values. This structure is utilised across many structures in the kernel including the IRQ descriptor tables, and several filesystems. This module provides a method to lookup values from a s

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-10 Thread Mike Galbraith
On Tue, 2016-05-10 at 07:26 +0800, Yuyang Du wrote: > By cpu reservation, you mean the various averages in select_task_rq_fair? > It does seem a lot of cleanup should be done. Nah, I meant claiming an idle cpu with cmpxchg(). It's mostly the average load business that leads to premature stacking

[RFC 04/13] mm, page_alloc: restructure direct compaction handling in slowpath

2016-05-10 Thread Vlastimil Babka
The retry loop in __alloc_pages_slowpath is supposed to keep trying reclaim and compaction (and OOM), until either the allocation succeeds, or returns with failure. Success here is more probable when reclaim precedes compaction, as certain watermarks have to be met for compaction to even try, and m

[RFC 00/13] make direct compaction more deterministic

2016-05-10 Thread Vlastimil Babka
This is mostly a followup to Michal's oom detection rework, which highlighted the need for direct compaction to provide better feedback in reclaim/compaction loop, so that it can reliably recognize when compaction cannot make further progress, and allocation should invoke OOM killer or fail. We've

[RFC 03/13] mm, page_alloc: don't retry initial attempt in slowpath

2016-05-10 Thread Vlastimil Babka
After __alloc_pages_slowpath() sets up new alloc_flags and wakes up kswapd, it first tries get_page_from_freelist() with the new alloc_flags, as it may succeed e.g. due to using min watermark instead of low watermark. This attempt does not have to be retried on each loop, since direct reclaim, dire

Re: [PATCH v4 3/7] mfd: RK808: Add RK818 support

2016-05-10 Thread Lee Jones
On Tue, 10 May 2016, Wadim Egorov wrote: > Ping. Don't ping. It only serves to annoy! > Do you have any more comments? Just re-submit the set with the Acks you've collected. > On 26.04.2016 16:54, Wadim Egorov wrote: > > The RK818 chip is a power management IC for multimedia and handheld > >

Re: [PATCH 20/25] arm64:ilp32: add sys_ilp32.c and a separate table (in entry.S) to use it

2016-05-10 Thread Zhangjian (Bamvor)
Hi, Sorry I forget to paste my test code: #include #include #include #include #define TEMPFILE "mmapfile" int main(int argc, char *argv[]) { int fd; void *addr; unsigned long offset; unsigned long size; if (argc == 3) { if (argv[1][0

Re: [PATCH 0.14] oom detection rework v6

2016-05-10 Thread Joonsoo Kim
2016-05-10 16:09 GMT+09:00 Vlastimil Babka : > On 05/10/2016 08:41 AM, Joonsoo Kim wrote: >> >> You applied band-aid for CONFIG_COMPACTION and fixed some reported >> problem but it is also fragile. Assume almost pageblock's skipbit are >> set. In this case, compaction easily returns COMPACT_COMPLET

[patch] phy: bcm-ns-usb2: checking the wrong variable

2016-05-10 Thread Dan Carpenter
We intended to test "usb2->phy" here instead of "dev". Fixes: d3feb4067335 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar') Signed-off-by: Dan Carpenter diff --git a/drivers/phy/phy-bcm-ns-usb2.c b/drivers/phy/phy-bcm-ns-usb2.c index 95ab6b2..58dff80 100644 --- a/drivers/phy/phy-bc

[PATCH] ARM: at91/defconfig: sama5: add CONFIG_FHANDLE

2016-05-10 Thread Nicolas Ferre
CONFIG_FHANDLE is listed as a mandatory kernel option for systemd. So explicitly enable it to allow easy use of systemd userspace. Reported-by: Marek Vasut Signed-off-by: Nicolas Ferre --- Hi Marek, It seems that on my side, CONFIG_FHANDLE is not selected automatically... So I add this patch: c

Re: [PATCH v7 2/2] memory: atmel-ebi: add DT bindings documentation

2016-05-10 Thread Boris Brezillon
On Wed, 4 May 2016 15:35:47 +0200 Boris Brezillon wrote: > On Wed, 4 May 2016 08:06:10 -0500 > Rob Herring wrote: > > > On Wed, May 4, 2016 at 4:38 AM, Boris Brezillon > > wrote: > > > Hi Rob, > > > > > > On Tue, 3 May 2016 14:11:04 -0500 > > > Rob Herring wrote: > > > > > >> On Tue, Ma

Re: [patch] phy: bcm-ns-usb2: checking the wrong variable

2016-05-10 Thread Rafał Miłecki
On 10 May 2016 at 10:01, Dan Carpenter wrote: > We intended to test "usb2->phy" here instead of "dev". > > Fixes: d3feb4067335 ('phy: bcm-ns-usb2: new driver for USB 2.0 PHY on > Northstar') > Signed-off-by: Dan Carpenter Thanks!

Re: [PATCH 01/11] MIPS: math-emu: Fix BC1{EQ,NE}Z emulation

2016-05-10 Thread Ralf Baechle
On Thu, Apr 21, 2016 at 02:04:45PM +0100, Paul Burton wrote: > The conditions for branching when emulating the BC1EQZ & BC1NEZ > instructions were backwards, leading to each of those instructions being > treated as the other. Fix this by reversing the conditions, and clear up > the code a little f

Re: [PATCH] sched/fair: Invoke cpufreq hooks for CONFIG_SMP unset

2016-05-10 Thread Ingo Molnar
* Rafael J. Wysocki wrote: > On Monday, May 09, 2016 04:53:16 PM Steve Muckle wrote: > > On Sat, May 07, 2016 at 08:30:51AM +0200, Ingo Molnar wrote: > > > > > > * Peter Zijlstra wrote: > > > > > > > On Fri, May 06, 2016 at 02:58:43PM +0200, Rafael J. Wysocki wrote: > > > > > From: Rafael J.

Re: [PATCH v21 00/22] Richacls

2016-05-10 Thread Jeremy Allison
On Tue, May 10, 2016 at 06:18:10AM +0200, Volker Lendecke wrote: > On Tue, May 10, 2016 at 12:02:33AM +0200, Andreas Gruenbacher wrote: > > What more can I do to finally get this merged? > > While I am not the one to comment on kernel specifics, from a pure Samba > user space perspective let me sa

Re: [PATCH 1/4] usb: dwc3: of-simple: add compatible for rockchip

2016-05-10 Thread William Wu
Dear Felipe and Brian, On 05/10/2016 03:15 PM, Felipe Balbi wrote: Hi, Brian Norris writes: Hi William, Did you leave off linux-rockc...@lists.infradead.org intentionally? IMO, it's nice to have that list in CC, so interested parties can follow your work, even if they aren't as fortunate as

Re: [PATCH 1/4] usb: dwc3: of-simple: add compatible for rockchip

2016-05-10 Thread Felipe Balbi
Hi William, William Wu writes: > Dear Felipe & Doug, > Thanks for your proposal. It's a good idea to sort the list. > I'll fix it next patch version. cool, thanks. ps: top-posting is frowned upon here. Please avoid it ;-) -- balbi signature.asc Description: PGP signature

Re: [PATCH v2 5/9] perf tools: Add methods to test dso is 64-bit or 32-bit

2016-05-10 Thread Adrian Hunter
On 10/05/16 10:40, He Kuang wrote: > 32-bit programs can be run on 64-bit machines, so we should choose > unwind methods according to 'thread->map' instead of the host > architecture. > > This patch adds methods to test whether a dso is 64-bit or 32-bit by > the class info in elf. What about usin

Re: [PATCH v7 03/14] usb: hcd.h: Add OTG to HCD interface

2016-05-10 Thread Felipe Balbi
Hi, Roger Quadros writes: > On 10/05/16 06:14, Peter Chen wrote: >> On Mon, May 09, 2016 at 12:45:38PM +0300, Roger Quadros wrote: >>> On 06/05/16 12:41, Peter Chen wrote: On Mon, May 02, 2016 at 03:18:46PM +0300, Roger Quadros wrote: > The OTG core will use struct otg_hcd_ops to interf

Re: [PATCH] ARM: dts: exynos: Only Odroid XU3-family boards use DTSI with CPU thermal nodes

2016-05-10 Thread Krzysztof Kozlowski
On 05/10/2016 08:43 AM, Anand Moon wrote: > Hi Krzysztof , > > On 9 May 2016 at 11:49, Krzysztof Kozlowski wrote: >> Include the CPU thermal nodes directly in Odroid XU3-family common DTS >> because it is the only user of it. Keeping it in separate DTSI node does >> not bring benefits because: >>

Re: [PATCH 1/2] cpufreq: rcar: Add support for R8A7795 SoC

2016-05-10 Thread Geert Uytterhoeven
Hi Viresh, On Tue, May 10, 2016 at 7:07 AM, Viresh Kumar wrote: > On 10-05-16, 11:57, Khiem Nguyen wrote: >> After the commit "a399dc9fc50 cpufreq: shmobile: Use generic platdev >> driver", will use cpufreq-dt-platdev driver to enable cpufreq-dt support. >> Hence, follow the implementation to sup

RE: [PATCH v7 03/14] usb: hcd.h: Add OTG to HCD interface

2016-05-10 Thread Jun Li
Hi > -Original Message- > From: Roger Quadros [mailto:rog...@ti.com] > Sent: Tuesday, May 10, 2016 3:35 PM > To: Peter Chen > Cc: peter.c...@freescale.com; st...@rowland.harvard.edu; ba...@kernel.org; > gre...@linuxfoundation.org; dan.j.willi...@intel.com; jun...@freescale.com; > mathias.

Re: [PATCH 1/2] cpufreq: rcar: Add support for R8A7795 SoC

2016-05-10 Thread Viresh Kumar
On 10-05-16, 10:17, Geert Uytterhoeven wrote: > Hi Viresh, > > On Tue, May 10, 2016 at 7:07 AM, Viresh Kumar wrote: > > On 10-05-16, 11:57, Khiem Nguyen wrote: > >> After the commit "a399dc9fc50 cpufreq: shmobile: Use generic platdev > >> driver", will use cpufreq-dt-platdev driver to enable cpuf

Re: [PATCH v21 00/22] Richacls

2016-05-10 Thread Volker Lendecke
On Tue, May 10, 2016 at 10:11:50AM +0200, Jeremy Allison wrote: > +1 from me. This is something that many vendors need > and have needed for a very long time. Getting this > in will allow *large* amounts of existing storage to > be migrated to Linux. ZFS has NFSv4 richacls, and people seem to risk

workqueue: race in mod_delayed_work_on?

2016-05-10 Thread Konstantin Khlebnikov
I've got plenty warnings, bugs and oops around trivial use of mod_delayed_work in drivers/infiniband/core/addr.c For example: WARN_ON_ONCE(timer_pending(timer)) in __queue_delayed_work and BUG_ON(timer_pending(timer) || !timer->function) in add_timer_on <4>[471106.614256] [ cut her

Re: [PATCH] firmware/drivers/psci: Fix unused functions when CONFIG_CPU_IDLE=n

2016-05-10 Thread Lorenzo Pieralisi
On Tue, May 10, 2016 at 09:18:49AM +0200, Daniel Lezcano wrote: > On the ARM64 architecture, when CPUIDLE is not set in the configuration, > the compilation raises a couple of warnings: > > drivers/firmware/psci.c:70:12: warning: 'psci_pd_power_off' defined but not > used [-Wunused-function] > dr

[PATCH 1/6] dt-bindings: mt8173-xhci: support host side of dual-role mode

2016-05-10 Thread Chunfeng Yun
Some resources, such as IPPC register etc, shared with device driver are moved into common glue layer when xHCI driver is the host side of dual-role mode and they should be changed as optional properties if they are required ones before. For clarity, add a new part of binding to support host side o

[PATCH 6/6] pinctrl: mt8173: set GPIO16 to usb iddig mode

2016-05-10 Thread Chunfeng Yun
the default mode of GPIO16 pin is gpio, when set EINT16 to IRQ_TYPE_LEVEL_HIGH, no interrupt is triggered, it can be fixed when set its default mode as usb iddig. Signed-off-by: Chunfeng Yun --- drivers/pinctrl/mediatek/pinctrl-mtk-mt8173.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-

  1   2   3   4   5   6   7   8   9   10   >