[PATCH 1/2] perf tools: Fix parse_events_add_pmu caller

2015-09-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Following commit changed parse_events_add_pmu interface: 36adec85a86f perf tools: Change parse_events_add_pmu interface but forgot to change one caller. Because of lessen compilation rules for the bison parser, the compiler did not warn on that. Signed-off-by: Jiri Olsa Cc: R

RE: [PATCH V2 3/7] x86/insn: perf tools: Pedantically tweak opcode map for MPX instructions

2015-09-03 Thread 平松雅巳 / HIRAMATU,MASAMI
> From: Adrian Hunter [mailto:adrian.hun...@intel.com] > > The MPX instructions are presently not described in the SDM > opcode maps, and there are not encoding characters for bnd > registers, address method or operand type. So the kernel > opcode map is using 'Gv' for bnd registers and 'Ev' for

[PATCH 2/2] perf tools: Fix use of wrong event when processing exit events

2015-09-03 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter In a couple of cases the 'comm' member of 'union event' has been used instead of the correct member ('fork') when processing exit events. In the cases where it has been used incorrectly, only the 'pid' and 'tid' are affected. The 'pid' value would be correct anyway because i

[PATCH 5/5] [media] smiapp: create pad links after subdev registration

2015-09-03 Thread Javier Martinez Canillas
The smiapp driver creates the pads links before the media entity is registered with the media device. This doesn't work now that object IDs are used to create links so the media_device has to be set. Move entity registration logic before pads links creation. Signed-off-by: Javier Martinez Canilla

Re: [PATCH] clk: Hi6220: separately build stub clock driver

2015-09-03 Thread Kevin Hilman
Leo Yan writes: > The previous code, kernel builds Hi6220's common clock driver and stub > clock driver together. Stub clock driver has introduced the dependency > with CONFIG_MAILBOX, so kernel will not build Hi6220's common clock > driver due ARM64's defconfig have not enabled CONFIG_MAILBOX by

[PATCH 4/5] [media] uvcvideo: create pad links after subdev registration

2015-09-03 Thread Javier Martinez Canillas
The uvc driver creates the pads links before the media entity is registered with the media device. This doesn't work now that obj IDs are used to create links so the media_device has to be set. Move entities registration logic before pads links creation. Signed-off-by: Javier Martinez Canillas -

Re: [PATCH v4 1/9] usb: dwc3: add dual-role support

2015-09-03 Thread Felipe Balbi
Hi, On Thu, Sep 03, 2015 at 03:21:48PM +0300, Roger Quadros wrote: > >> + dwc->fsm->id = id; > >> + dwc->fsm->b_sess_vld = vbus; > >> + usb_otg_sync_inputs(dwc->fsm); > >> +} > >> + > >> +static int dwc3_drd_start_host(struct otg_fsm *fsm, int on) > >> +{ > >> + struct device *dev = usb_otg_fs

RE: [PATCH V2 6/7] x86/insn: perf tools: Add new memory protection keys instructions

2015-09-03 Thread 平松雅巳 / HIRAMATU,MASAMI
> From: Adrian Hunter [mailto:adrian.hun...@intel.com] > > Add rdpkru and wrpkru to the op code map and the perf tools > new instructions test. In the case of the test, only the > bytes can be tested at the moment since binutils doesn't > support the instructions yet. To run the test: > > $

[PATCH v1] HID: sensor-hub: Fixup for Lenovo ThinkPad Helix 2 sensor hub report

2015-09-03 Thread Fernando D S Lima
There is an error in the report descriptor of the Thinkpad Helix 2 where logical minimum value (557376) is greater than logical maximum (491200) for all of the magnetic flux axis data fields. This error results in a report descriptor parsing failure that causes the sensors attached to the hub not t

[RFD] memory pressure and sizing problem

2015-09-03 Thread Tejun Heo
Hello, It's bothering that we don't have a good mechanism to detect and expose memory pressure and it doesn't seem to be for want of trying. I've been thinking about it for several days and would like to find out whether it makes sense. Not being a mm person, I'm likely mistaken in a lot of detai

Re: stop breaking dosemu (Re: x86/kconfig/32: Rename CONFIG_VM86 and default it to 'n')

2015-09-03 Thread Austin S Hemmelgarn
On 2015-09-03 08:15, Stas Sergeev wrote: 03.09.2015 15:11, Austin S Hemmelgarn пишет: On 2015-09-02 17:53, Stas Sergeev wrote: 03.09.2015 00:40, Andy Lutomirski пишет: On Wed, Sep 2, 2015 at 2:12 PM, Stas Sergeev wrote: 02.09.2015 23:55, Andy Lutomirski пишет: On Wed, Sep 2, 2015 at 1:47 P

Re: [PATCH v2 1/6] ARM: dts: ifc6410: Add pwrseq support for WLAN

2015-09-03 Thread Srinivas Kandagatla
On 25/08/15 22:33, Stephen Boyd wrote: On 08/18/2015 06:06 AM, Srinivas Kandagatla wrote: @@ -10,6 +11,20 @@ serial1 = &gsbi6_serial; }; +pwrseq { +#address-cells = <1>; +#size-cells = <1>; +ranges; Why do we need any of these three properties? Y

Re: [PATCH linux-next v9 2/3] mfd: devicetree: add bindings for Atmel Flexcom

2015-09-03 Thread Nicolas Ferre
Le 01/09/2015 16:46, Cyrille Pitchen a écrit : > This patch documents the DT bindings for the Atmel Flexcom which will be > introduced by sama5d2x SoCs. These bindings will be used by the actual > Flexcom driver to be sent in another patch. > > Signed-off-by: Cyrille Pitchen > Acked-by: Boris Bre

Re: [PATCH] ARM: dts: Add ddc i2c reference to veyron

2015-09-03 Thread Rob Herring
On Thu, Sep 3, 2015 at 10:18 AM, Russell King - ARM Linux wrote: > On Thu, Sep 03, 2015 at 09:46:38AM -0500, Rob Herring wrote: >> Yes, that is fairly common (ADV75xx is same), and we would not >> describe an I2C bus in DT in that case. Same with HPD directly handled >> vs. a GPIO line. That is no

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread Juergen Gross
On 09/03/2015 05:39 PM, Roger Pau Monné wrote: El 03/09/15 a les 17.20, Juergen Gross ha escrit: On 09/03/2015 05:01 PM, David Vrabel wrote: On 03/09/15 15:55, Juergen Gross wrote: On 09/03/2015 04:52 PM, David Vrabel wrote: On 03/09/15 15:45, David Vrabel wrote: On 03/09/15 15:38, Roger Pau

Re: [PATCH 2/3][v3] drivers: usb: dwc3: Add frame length adjustment quirk

2015-09-03 Thread Felipe Balbi
On Thu, Sep 03, 2015 at 11:34:04AM +0530, Nikhil Badola wrote: > Add adjust_frame_length_quirk for writing to fladj register > which adjusts (micro)frame length to value provided by > "snps,quirk-frame-length-adjustment" property thus avoiding > USB 2.0 devices to time-out over a longer run > > Si

Re: [BUG 4.2-rc8] Interrupt occurs while apply_alternatives() is patching the handler

2015-09-03 Thread Richard W.M. Jones
On Thu, Sep 03, 2015 at 12:41:47PM +0200, Thomas Gleixner wrote: > On Thu, 3 Sep 2015, Borislav Petkov wrote: > > On Wed, Sep 02, 2015 at 11:11:55AM +0200, Thomas Gleixner wrote: > > > static void __init_or_module add_nops(void *insns, unsigned int len) > > > { > > > + unsigned long flags; > > >

Re: [PATCH v4 4/9] usb: dwc3: core: Adapt to named interrupts

2015-09-03 Thread Felipe Balbi
Hi, On Thu, Sep 03, 2015 at 03:46:43PM +0300, Roger Quadros wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On 02/09/15 17:34, Felipe Balbi wrote: > > On Wed, Sep 02, 2015 at 05:24:19PM +0300, Roger Quadros wrote: > >> From: Felipe Balbi > >> > >> Add support to use interrupt name

Re: [PATCH] cpufreq: Add ARM_MT8173_CPUFREQ dependencyon THERMAL

2015-09-03 Thread Viresh Kumar
On 03-09-15, 08:20, Guenter Roeck wrote: > If ARM_MT8173_CPUFREQ is configured, and THERMAL is configured as module, > the following build error is seen for arm:allmodconfig and > arm64:allmodconfig. > > drivers/built-in.o: In function `mtk_cpufreq_ready': > :(.text+0x32a20c): undefined reference

Data race in ext4_writepages

2015-09-03 Thread Andrey Konovalov
Hi! We are working on a dynamic data race detector for the Linux kernel, KernelThreadSanitizer (ktsan): https://github.com/google/ktsan/wiki We got a report while running ktsan on 4.2: == ThreadSanitizer: data-race in ext4_writepage

RE: [PATCH V2 1/7] perf tools: Display build warning if x86 instruction decoder differs from kernel

2015-09-03 Thread 平松雅巳 / HIRAMATU,MASAMI
> From: Adrian Hunter [mailto:adrian.hun...@intel.com] > > perf tools has a copy of the x86 instruction decoder used by the kernel. > The expectation is that the copy will be kept more-or-less in-synch > with the kernel version. Consequently it is helpful to know if there are > differences. This

Re: [PATCH v4 5/9] usb: dwc3: core: make dual-role work with OTG irq

2015-09-03 Thread Felipe Balbi
Hi, On Thu, Sep 03, 2015 at 04:52:02PM +0300, Roger Quadros wrote: > >>if (on) { > >> - dwc3_set_mode(dwc, DWC3_GCTL_PRTCAP_HOST); > >> + /* OCTL.PeriMode = 0 */ > >> + reg = dwc3_readl(dwc->regs, DWC3_OCTL); > >> + reg &= ~DWC3_OCTL_PERIMODE; > >> +

Re: [PATCH v2 3/6] ARM: dts: apq8064-ifc6410: add notify led support.

2015-09-03 Thread Srinivas Kandagatla
On 25/08/15 22:36, Stephen Boyd wrote: On 08/18/2015 06:10 AM, Srinivas Kandagatla wrote: diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b1f9ddb..08daafe 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/

Re: [PATCH 3.14 30/44] signalfd: fix information leak in signalfd_copyinfo

2015-09-03 Thread Luis Henriques
On Fri, Aug 14, 2015 at 10:45:07AM -0700, Greg Kroah-Hartman wrote: > 3.14-stable review patch. If anyone has any objections, please let me know. > These 3 patches seem to be relevant to other stable trees as well. I'm queuing them for the 3.16 kernel. Cheers, -- Luís > -- >

Re: [PATCH linux-next v9 1/3] mfd: atmel-flexcom: create include file with macros used by DT bindings

2015-09-03 Thread Nicolas Ferre
Le 01/09/2015 16:46, Cyrille Pitchen a écrit : > This patch defines some macros to be used as value for the > "atmel,flexcom-mode" DT property. This value is then written into > the Operating Mode (OPMODE) bit field of the Flexcom Mode Register. > > Signed-off-by: Cyrille Pitchen Acked-by: Nicol

Re: [RFC PATCH 9/9] parisc: allocate sys_membarrier system call number

2015-09-03 Thread Mathieu Desnoyers
- On Sep 3, 2015, at 8:26 AM, Helge Deller del...@gmx.de wrote: > Hi Mathieu, > >> [ Untested on this architecture. To try it out: fetch linux-next/akpm, >> apply this patch, build/run a membarrier-enabled kernel, and do make >> kselftest. ] >> >> Signed-off-by: Mathieu Desnoyers >> CC:

Re: [PATCH v2 1/2] clk: qcom: Add support for RPM Clocks

2015-09-03 Thread Georgi Djakov
Hi Stephen, On 09/02/2015 11:31 PM, Stephen Boyd wrote: > On 08/03, Georgi Djakov wrote: >> diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c >> new file mode 100644 >> index ..e564673ec3a5 >> --- /dev/null >> +++ b/drivers/clk/qcom/clk-smd-rpm.c [..] >> +s

Re: [RFC PATCH 3/9] arm64: allocate sys_membarrier system call number

2015-09-03 Thread Mathieu Desnoyers
- On Sep 2, 2015, at 6:10 AM, Will Deacon will.dea...@arm.com wrote: > On Thu, Aug 27, 2015 at 06:56:49PM +0100, Mathieu Desnoyers wrote: >> arm64 sys_membarrier number is already wired for arm64 through >> asm-generic/unistd.h, but needs to be allocated separately for >> the 32-bit compabil

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread Roger Pau Monné
El 03/09/15 a les 17.20, Juergen Gross ha escrit: > On 09/03/2015 05:01 PM, David Vrabel wrote: >> On 03/09/15 15:55, Juergen Gross wrote: >>> On 09/03/2015 04:52 PM, David Vrabel wrote: On 03/09/15 15:45, David Vrabel wrote: > On 03/09/15 15:38, Roger Pau Monné wrote: >> El 03/09/15 a

Re: [PATCH 2/3] watchdog: mena21_wdt: Fix module autoload for OF platform driver

2015-09-03 Thread Guenter Roeck
On 09/03/2015 04:06 AM, Luis de Bethencourt wrote: This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt Reviewed-by: Guenter Roeck --- drivers/watchdog/mena21_wdt.c | 1 + 1

Re: [PATCH] ARM: multi_v7_defconfig: Enable PBIAS regulator

2015-09-03 Thread Tony Lindgren
* Kishon Vijay Abraham I [150903 02:58]: > PBIAS regulator is required for MMC module in OMAP2, OMAP3, OMAP4, > OMAP5 and DRA7 SoCs. Enable it here. > > Signed-off-by: Kishon Vijay Abraham I For the multi_v7_defconfig changes you need to resend this to a...@kernel.org. This is to avoid conflict

[PATCHv10 04/36] mm, thp: adjust conditions when we can reuse the page on WP fault

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we will be able map the same compound page with PTEs and PMDs. It requires adjustment to conditions when we can reuse the page on write-protection fault. For PTE fault we can't reuse the page if it's part of huge page. For PMD we can only reuse the page if nobody else maps th

[PATCHv10 00/36] THP refcounting redesign

2015-09-03 Thread Kirill A. Shutemov
Hello everybody, The THP refcounting has been rebased onto newer -mm tree with compound_head patchset applied. This caused few conflicts. Since page->lru in all tail pages occupied by page->compound_head, I had to adjust the code to use storage of ->mapping and ->index in the second tail page as

Re: [STLinux Kernel] [PATCH v3 5/6] ARM: STiH407: Add nodes for RemoteProc

2015-09-03 Thread Peter Griffin
Hi Lee, On Wed, 02 Sep 2015, Lee Jones wrote: > Signed-off-by: Ludovic Barre > Signed-off-by: Lee Jones > --- > arch/arm/boot/dts/stih407-family.dtsi | 40 > +++ > 1 file changed, 40 insertions(+) > > diff --git a/arch/arm/boot/dts/stih407-family.dtsi > b/arc

Re: [tip:perf/urgent] perf evlist: Open event on evsel cpus and threads

2015-09-03 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 03, 2015 at 04:34:24PM +0300, Adrian Hunter escreveu: > On 01/09/15 11:31, tip-bot for Kan Liang wrote: > > Commit-ID: d988d5ee647861706bc7a391ddbc29429b50f00e > > Gitweb: > > http://git.kernel.org/tip/d988d5ee647861706bc7a391ddbc29429b50f00e > > Author: Kan Liang > > AuthorD

Re: [PATCH 3/3] watchdog: gef_wdt: Fix module autoload for OF platform driver

2015-09-03 Thread Guenter Roeck
On 09/03/2015 04:07 AM, Luis de Bethencourt wrote: This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt Reviewed-by: Guenter Roeck --- drivers/watchdog/gef_wdt.c | 1 + 1 fil

[PATCHv10 11/36] mm: temporally mark THP broken

2015-09-03 Thread Kirill A. Shutemov
Up to this point we tried to keep patchset bisectable, but next patches are going to change how core of THP refcounting work. It would be beneficial to split the change into several patches and make it more reviewable. Unfortunately, I don't see how we can achieve that while keeping THP working.

[PATCHv10 24/36] x86, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Acked-by: Jerome Marchand --- arch/x86/include/asm/pgtable.h | 9 - arch/x86/include/asm/pgtable_types.h | 2 -- arch/x86/mm/gup.c

Re: [PATCH 1/3] watchdog: mach-moxart: Fix module autoload for OF platform driver

2015-09-03 Thread Guenter Roeck
On 09/03/2015 04:06 AM, Luis de Bethencourt wrote: This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work. Signed-off-by: Luis de Bethencourt Reviewed-by: Guenter Roeck --- drivers/watchdog/moxart_wdt.c | 1 + 1

[PATCHv10 23/36] tile, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov --- arch/tile/include/asm/pgtable.h | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/tile/include/asm/pgtable.h b/arch/tile/include/asm/pgtable.h index

[PATCHv10 05/36] mm: adjust FOLL_SPLIT for new refcounting

2015-09-03 Thread Kirill A. Shutemov
We need to prepare kernel to allow transhuge pages to be mapped with ptes too. We need to handle FOLL_SPLIT in follow_page_pte(). Also we use split_huge_page() directly instead of split_huge_page_pmd(). split_huge_page_pmd() will gone. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Te

[PATCHv10 34/36] thp: introduce deferred_split_huge_page()

2015-09-03 Thread Kirill A. Shutemov
Currently we don't split huge page on partial unmap. It's not an ideal situation. It can lead to memory overhead. Furtunately, we can detect partial unmap on page_remove_rmap(). But we cannot call split_huge_page() from there due to locking context. It's also counterproductive to do directly from

[PATCHv10 31/36] thp, mm: split_huge_page(): caller need to lock page

2015-09-03 Thread Kirill A. Shutemov
We're going to use migration entries instead of compound_lock() to stabilize page refcounts. Setup and remove migration entries require page to be locked. Some of split_huge_page() callers already have the page locked. Let's require everybody to lock the page before calling split_huge_page(). Sig

[PATCHv10 16/36] mm, thp: remove compound_lock

2015-09-03 Thread Kirill A. Shutemov
We are going to use migration entries to stabilize page counts. It means we don't need compound_lock() for that. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Acked-by: Jerome Marchand --- include/linux/mm.h | 35 --

[PATCHv10 15/36] ksm: prepare to new THP semantics

2015-09-03 Thread Kirill A. Shutemov
We don't need special code to stabilize THP. If you've got reference to any subpage of THP it will not be split under you. New split_huge_page() also accepts tail pages: no need in special code to get reference to head page. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: An

[PATCHv10 20/36] powerpc, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov Tested-by:

[PATCHv10 22/36] sparc, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov --- arch/sparc/include/asm/pgtable_64.h | 16 arch/sparc/mm/fault_64.c| 3 --- arch/sparc/mm/gup.c | 2 +- 3 files changed,

[PATCHv10 18/36] arm, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov --- arch/a

[PATCHv10 13/36] mm: drop tail page refcounting

2015-09-03 Thread Kirill A. Shutemov
Tail page refcounting is utterly complicated and painful to support. It uses ->_mapcount on tail pages to store how many times this page is pinned. get_page() bumps ->_mapcount on tail page in addition to ->_count on head. This information is required by split_huge_page() to be able to distribute

[PATCH] cpufreq: Add ARM_MT8173_CPUFREQ dependencyon THERMAL

2015-09-03 Thread Guenter Roeck
If ARM_MT8173_CPUFREQ is configured, and THERMAL is configured as module, the following build error is seen for arm:allmodconfig and arm64:allmodconfig. drivers/built-in.o: In function `mtk_cpufreq_ready': :(.text+0x32a20c): undefined reference to `of_cpufreq_cooling_register' drivers/built-in.o:

[PATCHv10 10/36] mm, vmstats: new THP splitting event

2015-09-03 Thread Kirill A. Shutemov
The patch replaces THP_SPLIT with tree events: THP_SPLIT_PAGE, THP_SPLIT_PAGE_FAILED and THP_SPLIT_PMD. It reflects the fact that we are going to be able split PMD without the compound page and that split_huge_page() can fail. Signed-off-by: Kirill A. Shutemov Acked-by: Christoph Lameter Tested-

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread Juergen Gross
On 09/03/2015 05:01 PM, David Vrabel wrote: On 03/09/15 15:55, Juergen Gross wrote: On 09/03/2015 04:52 PM, David Vrabel wrote: On 03/09/15 15:45, David Vrabel wrote: On 03/09/15 15:38, Roger Pau Monné wrote: El 03/09/15 a les 14.25, Juergen Gross ha escrit: On 09/03/2015 02:05 PM, Roger Pau

[PATCHv10 29/36] thp: implement split_huge_pmd()

2015-09-03 Thread Kirill A. Shutemov
Original split_huge_page() combined two operations: splitting PMDs into tables of PTEs and splitting underlying compound page. This patch implements split_huge_pmd() which split given PMD without splitting other PMDs this page mapped with or underlying compound page. Without tail page refcounting,

[PATCHv10 12/36] thp: drop all split_huge_page()-related code

2015-09-03 Thread Kirill A. Shutemov
We will re-introduce new version with new refcounting later in patchset. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand --- include/linux/huge_mm.h | 28 +--- mm/huge_memory.c| 401 +--

[PATCHv10 28/36] mm, numa: skip PTE-mapped THP on numa fault

2015-09-03 Thread Kirill A. Shutemov
We're going to have THP mapped with PTEs. It will confuse numabalancing. Let's skip them for now. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand --- mm/memory.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/memory.

[PATCHv10 33/36] migrate_pages: try to split pages on qeueuing

2015-09-03 Thread Kirill A. Shutemov
We are not able to migrate THPs. It means it's not enough to split only PMD on migration -- we need to split compound page under it too. Signed-off-by: Kirill A. Shutemov Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand --- mm/mempolicy.c | 37 + 1 file

[PATCHv10 32/36] thp: reintroduce split_huge_page()

2015-09-03 Thread Kirill A. Shutemov
This patch adds implementation of split_huge_page() for new refcountings. Unlike previous implementation, new split_huge_page() can fail if somebody holds GUP pin on the page. It also means that pin on page would prevent it from bening split under you. It makes situation in many places much cleane

Re: [PATCH] ARM: dts: Add ddc i2c reference to veyron

2015-09-03 Thread Russell King - ARM Linux
On Thu, Sep 03, 2015 at 09:46:38AM -0500, Rob Herring wrote: > Yes, that is fairly common (ADV75xx is same), and we would not > describe an I2C bus in DT in that case. Same with HPD directly handled > vs. a GPIO line. That is no different than what Doug has said: > ddc-i2c-bus is present if using t

[PATCHv10 27/36] mm: differentiate page_mapped() from page_mapcount() for compound pages

2015-09-03 Thread Kirill A. Shutemov
Let's define page_mapped() to be true for compound pages if any sub-pages of the compound page is mapped (with PMD or PTE). On other hand page_mapcount() return mapcount for this particular small page. This will make cases like page_get_anon_vma() behave correctly once we allow huge pages to be m

Re: [PATCH v2 0/4] mtd: pxa3xx_nand: rework the timing setup

2015-09-03 Thread Ezequiel Garcia
On 17 July 2015 at 11:36, Ezequiel Garcia wrote: > Hi Antoine, > > On 07/17/2015 10:41 AM, Antoine Tenart wrote: >> >> Hi guys, >> >> On Tue, Jul 07, 2015 at 05:08:23PM +0200, Antoine Tenart wrote: >>> >>> >>> This series was part of a bigger one[1], which was split into smaller >>> ones as asked

[PATCHv10 36/36] thp: update documentation

2015-09-03 Thread Kirill A. Shutemov
The patch updates Documentation/vm/transhuge.txt to reflect changes in THP design. Signed-off-by: Kirill A. Shutemov Acked-by: Jerome Marchand --- Documentation/vm/transhuge.txt | 151 ++--- 1 file changed, 96 insertions(+), 55 deletions(-) diff --git a/Docu

[PATCHv10 37/36, RFC] thp: allow mlocked THP again

2015-09-03 Thread Kirill A. Shutemov
This patch brings back mlocked THP. Instead of forbidding mlocked pages altogether, we just avoid mlocking PTE-mapped THPs and munlock THPs on split_huge_pmd(). This means PTE-mapped THPs will be on normal lru lists and will be split under memory pressure by vmscan. After the split vmscan will det

[PATCHv10 06/36] mm: handle PTE-mapped tail pages in gerneric fast gup implementaiton

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we are going to see THP tail pages mapped with PTE. Generic fast GUP rely on page_cache_get_speculative() to obtain reference on page. page_cache_get_speculative() always fails on tail pages, because ->_count on tail pages is always zero. Let's handle tail pages in gup_pte_ran

[PATCHv10 30/36] thp: add option to setup migration entries during PMD split

2015-09-03 Thread Kirill A. Shutemov
We are going to use migration PTE entries to stabilize page counts. If the page is mapped with PMDs we need to split the PMD and setup migration entries. It's reasonable to combine these operations to avoid double-scanning over the page table. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Le

[PATCHv10 03/36] memcg: adjust to support new THP refcounting

2015-09-03 Thread Kirill A. Shutemov
As with rmap, with new refcounting we cannot rely on PageTransHuge() to check if we need to charge size of huge page form the cgroup. We need to get information from caller to know whether it was mapped with PMD or PTE. We do uncharge when last reference on the page gone. At that point if we see P

[PATCHv10 25/36] mm, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Acked-by: Jerome Marchand --- fs/proc/task_mmu.c| 8 +++--- include/asm-gener

[PATCHv10 08/36] khugepaged: ignore pmd tables with THP mapped with ptes

2015-09-03 Thread Kirill A. Shutemov
Prepare khugepaged to see compound pages mapped with pte. For now we won't collapse the pmd table with such pte. khugepaged is subject for future rework wrt new refcounting. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand Acked-by

[PATCHv10 35/36] mm: re-enable THP

2015-09-03 Thread Kirill A. Shutemov
All parts of THP with new refcounting are now in place. We can now allow to enable THP. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig

Re: [PATCH v3 2/4] perf tests: make objdump disassemble zero blocks

2015-09-03 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 03, 2015 at 02:35:55PM +0300, Adrian Hunter escreveu: > On 03/09/15 14:23, Jan Stancek wrote: > > Add -z parameter to avoid skipping zero blocks: > > > > 816704fe : > > 816704fe: 7b 34 jnp 81670534 > >... > > 81670501 : > >

[PATCHv10 17/36] arm64, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov --- arch/a

[PATCHv10 21/36] s390, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov --- arch/s

[PATCHv10 14/36] futex, thp: remove special case for THP in get_futex_key

2015-09-03 Thread Kirill A. Shutemov
With new THP refcounting, we don't need tricks to stabilize huge page. If we've got reference to tail page, it can't split under us. This patch effectively reverts a5b338f2b0b1. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand ---

[PATCHv10 26/36] mm: rework mapcount accounting to enable 4k mapping of THPs

2015-09-03 Thread Kirill A. Shutemov
We're going to allow mapping of individual 4k pages of THP compound. It means we need to track mapcount on per small page basis. Straight-forward approach is to use ->_mapcount in all subpages to track how many time this subpage is mapped with PMDs or PTEs combined. But this is rather expensive: m

[PATCHv10 19/36] mips, thp: remove infrastructure for handling splitting PMDs

2015-09-03 Thread Kirill A. Shutemov
With new refcounting we don't need to mark PMDs splitting. Let's drop code to handle this. pmdp_splitting_flush() is not needed too: on splitting PMD we will do pmdp_clear_flush() + set_pte_at(). pmdp_clear_flush() will do IPI as needed for fast_gup. Signed-off-by: Kirill A. Shutemov --- arch/m

[PATCHv10 01/36] mm, proc: adjust PSS calculation

2015-09-03 Thread Kirill A. Shutemov
With new refcounting all subpages of the compound page are not necessary have the same mapcount. We need to take into account mapcount of every sub-page. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: Aneesh Kumar K.V Acked-by: Jerome Marchand Acked-by: Vlastimil Babka --

[PATCHv10 02/36] rmap: add argument to charge compound page

2015-09-03 Thread Kirill A. Shutemov
We're going to allow mapping of individual 4k pages of THP compound page. It means we cannot rely on PageTransHuge() check to decide if map/unmap small page or THP. The patch adds new argument to rmap functions to indicate whether we want to operate on whole compound page or only the small page.

[PATCHv10 09/36] thp: rename split_huge_page_pmd() to split_huge_pmd()

2015-09-03 Thread Kirill A. Shutemov
We are going to decouple splitting THP PMD from splitting underlying compound page. This patch renames split_huge_page_pmd*() functions to split_huge_pmd*() to reflect the fact that it doesn't imply page splitting, only PMD. Signed-off-by: Kirill A. Shutemov Tested-by: Sasha Levin Tested-by: An

[PATCHv10 07/36] thp, mlock: do not allow huge pages in mlocked area

2015-09-03 Thread Kirill A. Shutemov
With new refcounting THP can belong to several VMAs. This makes tricky to track THP pages, when they partially mlocked. It can lead to leaking mlocked pages to non-VM_LOCKED vmas and other problems. With this patch we will split all pages on mlock and avoid fault-in/collapse new THP in VM_LOCKED v

[PATCH 3/3] kselftest/inotify: add inotify_update_watch(2) test-cases

2015-09-03 Thread David Herrmann
This adds inotify/ to the kselftests suite. It currently only includes a test for the new inotify_update_watch(2) call, to make sure it actually behaves like it should. Signed-off-by: David Herrmann --- tools/testing/selftests/Makefile | 1 + tools/testing/selftests/inotify/.giti

[PATCH 2/3] inotify: add inotify_update_watch() syscall

2015-09-03 Thread David Herrmann
The current inotify API only provides a single function to add *and* modify watch descriptors. There is no way to perform either operation explicitly, but the kernel always automatically chooses what to do. If the watch-descriptor exists, it is updated, otherwise a new descriptor is allocated. This

[PATCH 1/3] inotify: move wd lookup out of update_existing_watch()

2015-09-03 Thread David Herrmann
Currently, inotify_update_existing_watch() first looks up the requested wd before modifying it. This makes the function unsuitable for cases where we already know the wd. Change the behavior to directly accept wd as input and make the only caller do the lookup themself. Signed-off-by: David Herrma

Re: [RFC PATCH] mmc: block: Add new ioctl to send combo commands

2015-09-03 Thread Jon Hunter
On 02/09/15 23:08, Grant Grundler wrote: > [resending text-only] > > On Wed, Sep 2, 2015 at 3:07 PM, Grant Grundler wrote: >> >> >> On Wed, Sep 2, 2015 at 11:28 AM, Olof Johansson wrote: >> ... +/** + * struct mmc_ioc_combo_cmd - combo command information + * @num_of_cmds: number

[PATCH 0/3] Introduce inotify_update_watch(2)

2015-09-03 Thread David Herrmann
Hi The current inotify API suffers from a nasty race-condition if you try to update watch descriptors (where the update _changes_ flags, not only adds new flags). The problem is, that an explicit update of a watch-descriptor might result in updating an unrelated, existing watch descriptor that jus

Re: [PATCH 0/4] omap: Fix broken address translation for pbias

2015-09-03 Thread Tony Lindgren
* Kishon Vijay Abraham I [150903 04:31]: > pbias device stopped having memory resource after > "ARM: dts: : add minimal l4 bus layout with control module > support" got merged. This results in platform_get_resource returning > -EINVAL in pbias driver. This is because address translation fails > wh

Re: [RFC PATCH] mmc: block: Add new ioctl to send combo commands

2015-09-03 Thread Jon Hunter
Hi Olof, On 02/09/15 19:28, Olof Johansson wrote: > Hi, > > On Wed, Sep 2, 2015 at 7:21 AM, Jon Hunter wrote: >> From: Seshagiri Holi >> >> Certain eMMC devices allow vendor specific device information to be read >> via a sequence of vendor commands. These vendor commands must be issued >> in s

Re: [PATCH v2 05/10] Documentation: add DT bindings for ARM SCPI sensors

2015-09-03 Thread Punit Agrawal
Punit Agrawal writes: > The System Control Processor (SCP) provides access to SoC sensors via > the System Control and Power Interface (SCPI) Message Protocol. Add > bindings to allow probing of these sensors. Also support referencing > of the sensors for setting up thermal zones via the thermal

Re: [PATCH 0/2] HID: logitech-hidpp: allow to disable tap to click on the K400

2015-09-03 Thread simon
> The first patch might conflict with Simon's current work in progress, so > that's why Simon is CC-ed to it. Thanks for the 'heads-up', I think that the HID++ stuff I have in progress won't be ready until the 4.4 cycle, Cheers, Simon -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] net/bonding: send arp in interval if no active slave

2015-09-03 Thread Jay Vosburgh
Uwe Koziolek wrote: >On Tue, Sep 01, 2015 at 05:41 PM +0200, Andy Gospodarek wrote: >> On Mon, Aug 17, 2015 at 10:51:27PM +0200, Uwe Koziolek wrote: >>> On Mon, Aug 17, 2015 at 09:14PM +0200, Jay Vosburgh wrote: Uwe Koziolek wrote: > On2015-08-17 07:12 PM,Jarod Wilson wrote: >>

Re: [PATCH v2 0/6] regulator: Fix pbias regulator enable

2015-09-03 Thread Tony Lindgren
* Kishon Vijay Abraham I [150903 02:25]: > On Thursday 03 September 2015 01:09 PM, Ulf Hansson wrote: > > > > Finally, perhaps it's better if we queue this through my mmc tree > > since we would then be able to avoid the regression - if I put > > $subject patchset before [1], right? Then I need a

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread Juergen Gross
On 09/03/2015 04:52 PM, David Vrabel wrote: On 03/09/15 15:45, David Vrabel wrote: On 03/09/15 15:38, Roger Pau Monné wrote: El 03/09/15 a les 14.25, Juergen Gross ha escrit: On 09/03/2015 02:05 PM, Roger Pau Monne wrote: On systems with memory maps with ranges that don't end at page boundari

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread David Vrabel
On 03/09/15 15:55, Juergen Gross wrote: > On 09/03/2015 04:52 PM, David Vrabel wrote: >> On 03/09/15 15:45, David Vrabel wrote: >>> On 03/09/15 15:38, Roger Pau Monné wrote: El 03/09/15 a les 14.25, Juergen Gross ha escrit: > On 09/03/2015 02:05 PM, Roger Pau Monne wrote: >> On systems

[PATCH v2 2/5] drivers/misc/sgi-gru: make functions static

2015-09-03 Thread Sudip Mukherjee
The functions gru_get_cb_exception_detail_str() and gru_abort() were only called locally from that file. We can make them static. Signed-off-by: Sudip Mukherjee Acked-by: Dimitri Sivanich --- v2: no change, sent as a part of the series. drivers/misc/sgi-gru/grukservices.c | 6 +++--- 1 file c

[PATCH v2 3/5] drivers/misc/sgi-gru: remove always false condition

2015-09-03 Thread Sudip Mukherjee
The member gid in struct gru_dump_chiplet_state_req is unsigned int. So it can never be less than 0. Signed-off-by: Sudip Mukherjee Acked-by: Dimitri Sivanich --- v2: no change, sent as a part of the series. drivers/misc/sgi-gru/grukdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [Xen-devel] [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread David Vrabel
On 03/09/15 15:45, David Vrabel wrote: > On 03/09/15 15:38, Roger Pau Monné wrote: >> El 03/09/15 a les 14.25, Juergen Gross ha escrit: >>> On 09/03/2015 02:05 PM, Roger Pau Monne wrote: On systems with memory maps with ranges that don't end at page boundaries, like: [...]

[PATCH v2 4/5] drivers/misc/sgi-gru: fix dereference of ERR_PTR

2015-09-03 Thread Sudip Mukherjee
gru_alloc_gts() can fail and it can return ERR_PTR(errvalue). We should not dereference it if it has returned error. And incase it has returned error then wait for some time and try again. Signed-off-by: Sudip Mukherjee --- v2: on error retry after msleep(1). v1: returned error. drivers/misc/s

[PATCH v2 5/5] drivers/misc/sgi-gru: remove unused variable

2015-09-03 Thread Sudip Mukherjee
dw was only assigned some value and was never reused. Signed-off-by: Sudip Mukherjee --- v2: It was part of first patch in v1. But since one logical change in one patch so it had to be removed from first patch and became separate. drivers/misc/sgi-gru/grukservices.c | 2 -- 1 file changed, 2 d

[PATCH v2 1/5] drivers/misc/sgi-gru: add return on error

2015-09-03 Thread Sudip Mukherjee
If the buffer is too small then return the error and in the process remove the variables which became unused. Signed-off-by: Sudip Mukherjee --- v1: only removed variables. drivers/misc/sgi-gru/grukdump.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/driver

Re: [PATCH] xen/p2m: fix extra memory regions accounting

2015-09-03 Thread Juergen Gross
On 09/03/2015 04:38 PM, Roger Pau Monné wrote: El 03/09/15 a les 14.25, Juergen Gross ha escrit: On 09/03/2015 02:05 PM, Roger Pau Monne wrote: On systems with memory maps with ranges that don't end at page boundaries, like: [...] (XEN) 0010 - dfdf9c00 (usable) (XEN)

Re: [PATCH] ARM: dts: keystone: use one to one address translations under netcp

2015-09-03 Thread santosh.shilim...@oracle.com
On 9/3/15 7:26 AM, Tony Lindgren wrote: * santosh shilimkar [150902 08:55]: I suspected the same. I know back then we started with SERDES code with NETCP but as you already know, its a separate block which is needed for NIC card to work. Its more of phy and hence its having different address s

[PATCH 3/7] kasan: accurately determine the type of the bad access

2015-09-03 Thread Andrey Konovalov
Makes KASAN accurately determine the type of the bad access. If the shadow byte value is in the [0, KASAN_SHADOW_SCALE_SIZE) range we can look at the next shadow byte to determine the type of the access. Signed-off-by: Andrey Konovalov --- mm/kasan/report.c | 17 ++--- 1 file changed

<    1   2   3   4   5   6   7   >