Re: [PATCH v13 09/10] arm64: Add kernel return probes support (kretprobes)

2016-06-07 Thread Masami Hiramatsu
On Thu, 2 Jun 2016 23:26:23 -0400 David Long wrote: > From: Sandeepa Prabhu > > The pre-handler of this special 'trampoline' kprobe executes the return > probe handler functions and restores original return address in ELR_EL1. > This way the saved pt_regs still hold the original register conte

[PATCH v3] tty:serial:msm:Do not restore Rx interrupts in DMA

2016-06-07 Thread Charanya Venkatraman
Avoid data corruption issues that result in CRC errors during file transfers over serial ports at higher baud rates. The current msm_serial driver masks the FIFO Rx interrupts in msm_start_rx_dma() since Rx FIFO interrupts are not required in DMA mode. However, msm_complete_rx_dma() re-enables the

Re: [PATCH v3 1/1] crypto: engine: permit to enqueue ashash_request

2016-06-07 Thread Herbert Xu
On Thu, Jun 02, 2016 at 03:13:32PM +0200, LABBE Corentin wrote: > > static int omap_aes_prepare_req(struct crypto_engine *engine, > - struct ablkcipher_request *req) > + struct crypto_async_request *areq) > { > + struct ablkcipher_reques

[ldv-project] [net] libertas: potential race condition

2016-06-07 Thread Pavel Andrianov
Hi! There is a potential race condition in drivers/net/wireless/libertas/libertas.ko. In the function lbs_hard_start_xmit(..), line 159, a socket buffer is written to priv->current_skb with a spin_lock protection. In the function lbs_mac_event_disconnected(..), lines 50-51, the field current_s

Re: [PATCH v4 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 10:00, Wanpeng Li wrote: > From: Wanpeng Li > > Commit e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU > hotplug") > set rq->prev_* to 0 after a cpu hotplug comes back in order to fix the > scenario: > > | steal is smaller than rq->prev_steal_time we end up wit

Re: [PATCH V2 2/2] crypto : async implementation for sha1-mb

2016-06-07 Thread Herbert Xu
On Thu, Jun 02, 2016 at 07:53:50PM -0700, Megha Dey wrote: > > + struct ahash_alg *shash = crypto_ahash_alg(tfm); > > /* alignment is to be done by multi-buffer crypto algorithm if needed */ > > - return shash->finup(desc, NULL, 0, req->result); > + return shash->finup(desc);

Re: [PATCH v13 08/10] arm64: Add trampoline code for kretprobes

2016-06-07 Thread Masami Hiramatsu
On Thu, 2 Jun 2016 23:26:22 -0400 David Long wrote: > From: William Cohen > > The trampoline code is used by kretprobes to capture a return from a probed > function. This is done by saving the registers, calling the handler, and > restoring the registers. The code then returns to the original

Re: [PATCH v4 1/3] KVM: fix steal clock warp during guest cpu hotplug

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 09:59, Wanpeng Li wrote: > From: Wanpeng Li > > I observed that sometimes st is 100% instantaneous, then idle is 100% > even if there is a cpu hog on the guest cpu after the cpu hotplug comes > back(N.B. this can not always be readily reproduced). I add trace to > capture it as

Re: [PATCH V2 1/2] crypto: sha1-mb - stylistic cleanup

2016-06-07 Thread Herbert Xu
On Thu, Jun 02, 2016 at 07:53:49PM -0700, Megha Dey wrote: > From: Megha Dey > > Currently there are several checkpatch warnings in the sha1_mb.c file: > 'WARNING: line over 80 characters' in the sha1_mb.c file. Also, the > syntax of some multi-line comments are not correct. This patch fixes > th

Re: [PATCH v3] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-06-07 Thread Mark Brown
On Tue, Jun 07, 2016 at 10:49:35AM +0800, Xing Zheng wrote: > On 2016年06月07日 07:50, Mark Brown wrote: > > It should probably be three compatibles, one per CODEC, if the driver > > needs to handle each separately. > Do you mean like this: > > sound { > compatible = "rockchip,rk3399-max983

Re: [PATCH v4 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting

2016-06-07 Thread Paolo Bonzini
On 07/06/2016 10:00, Wanpeng Li wrote: > From: Wanpeng Li > > This patch adds guest steal-time support to full dynticks CPU > time accounting. After the following commit: > > ff9a9b4c4334 ("sched, time: Switch VIRT_CPU_ACCOUNTING_GEN to jiffy > granularity") > > ... time sampling became jiff

Re: [STLinux Kernel] [[PATCH v2] 08/11] pwm: sti: Initialise PWM Capture device data

2016-06-07 Thread Peter Griffin
Hi Lee, On Tue, 07 Jun 2016, Lee Jones wrote: > On Tue, 07 Jun 2016, Peter Griffin wrote: > > On Fri, 22 Apr 2016, Lee Jones wrote: > > > > > Each PWM Capture device is allocated a structure to hold its own > > > state. During a capture the device may be partaking in one of 3 > > > phases. Ini

Re: [PATCH 01/10] nvme.h: add RTD3R, RTD3E and OAES fields

2016-06-07 Thread Christoph Hellwig
On Tue, Jun 07, 2016 at 10:10:09AM +0200, Johannes Thumshirn wrote: > Just out of curiosity, why not CTRATT as well? ctratt is part of the fabrics spec and not the NVMe 1.2 spec, and we tried to keep those separate.

Re: [PATCH 0/6] ASoC: sgtl5000: fix use of regulators and internal LDO

2016-06-07 Thread Eric Nelson
Thanks for taking this up Clemens. On 06/07/2016 01:14 AM, Clemens Gruber wrote: > This patch set addresses a structural problem in the handling of > regulators for VDDIO, VDDA, and VDDD in the SGTL5000 driver. > > The first two of these power rails must be powered on prior to any I2C > communica

Re: Regression in "kbuild: fix if_change and friends to consider argument order"

2016-06-07 Thread Michal Marek
On 2016-06-07 12:03, Masahiro Yamada wrote: > 2016-06-07 18:58 GMT+09:00 Michal Marek : >> On 2016-06-07 11:38, Michal Marek wrote: >>> On 2016-06-07 03:38, Zanoni, Paulo R wrote: Hi I recently noticed that alternating between "make" and "make targz-pkg" rebuilds the whole Kerne

Re: [RFC PATCH 0/4] Integration of function trace with System Trace IP blocks

2016-06-07 Thread Alexander Shishkin
Chunyan Zhang writes: > This patchset is an RFC aimed at generating ideas on the best way to > use STM IP blocks to collect function tracing information produced by > Ftrace. That way logging information generated by the function trace > subsystem and gathered in the coresight sink can be used i

Re: [PATCH v10 2/4] tee: generic TEE subsystem

2016-06-07 Thread Jens Wiklander
On Mon, Jun 06, 2016 at 04:44:42PM -0500, Nishanth Menon wrote: > On 06/01/2016 07:41 AM, Jens Wiklander wrote: > few minor comments below. > > I see the patch generated (with --strict): > > CHECK: Alignment should match open parenthesis > > #512: FILE: drivers/tee/tee.c:375: > > +static int tee_i

Re: [PATCH v3 8/8] arm64: dts: ls1043a: add crypto node

2016-06-07 Thread Herbert Xu
On Thu, May 19, 2016 at 06:11:49PM +0300, Horia Geantă wrote: > LS1043A has a SEC v5.4 security engine. > For now don't add rtic or sec_mon subnodes, since these features > haven't been tested yet. > > Signed-off-by: Horia Geantă Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://g

Re: [PATCH 4/8] nvme: add fabrics sysfs attributes

2016-06-07 Thread Christoph Hellwig
On Tue, Jun 07, 2016 at 10:52:17AM +0200, Johannes Thumshirn wrote: > Can you please add this to Documentation/ABI/ as well? None of the NVMe files are documented there.. But maybe it's worth a separate little project to document all of them.

Re: [PATCH] crypto: skcipher - remove unused header cpumask.h

2016-06-07 Thread Herbert Xu
On Thu, Jun 02, 2016 at 01:48:38PM +0800, Geliang Tang wrote: > Remove unused header cpumask.h from crypto/ablkcipher.c. > > Signed-off-by: Geliang Tang Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pub

Re: [patch] futex: Fix v4.6+ ltp futex_wait04 regression

2016-06-07 Thread Mel Gorman
On Mon, Jun 06, 2016 at 11:40:41AM +0200, Mike Galbraith wrote: > Hi Mel (who is out of the office today), > Adding Davidlohr who did a lot of the work debugging my initial prototype. > I initially reported this on the rt-users list, thinking at the time > that it was only showing up in -rt kern

Re: NVMe over Fabrics target implementation

2016-06-07 Thread Christoph Hellwig
There is absolutely no point in dragging in an overcomplicated configfs structure for a very simple protocol which also is very different from SCSI in it's nitty gritty details. Keeping the nvme target self contains allows it to be both much simpler and much easier to understand, as well as much

Re: [PATCH 2/3] iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48

2016-06-07 Thread Sergei Shtylyov
Hello. On 6/7/2016 6:39 AM, Magnus Damm wrote: From: Magnus Damm Bump up the maximum numbers of micro-TLBS to 48. Each IPMMU device instance get micro-TLB assignment via the "iommus" property in DT. Older SoCs tend to use a maximum number of 32 micro-TLBd per IPMMU instance however Micr

[PATCHv9-rebased 01/32] thp, mlock: update unevictable-lru.txt

2016-06-07 Thread Kirill A. Shutemov
Add description of THP handling into unevictable-lru.txt. Signed-off-by: Kirill A. Shutemov --- Documentation/vm/unevictable-lru.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/vm/unevictable-lru.txt b/Documentation/vm/unevictable-lru.txt index fa3b5

[PATCHv9-rebased 06/32] mm: introduce do_set_pmd()

2016-06-07 Thread Kirill A. Shutemov
With postponed page table allocation we have chance to setup huge pages. do_set_pte() calls do_set_pmd() if following criteria met: - page is compound; - pmd entry in pmd_none(); - vma has suitable size and alignment; Signed-off-by: Kirill A. Shutemov --- include/linux/huge_mm.h | 2 ++ mm/

[PATCHv9-rebased 16/32] vmscan: split file huge pages before paging them out

2016-06-07 Thread Kirill A. Shutemov
This is preparation of vmscan for file huge pages. We cannot write out huge pages, so we need to split them on the way out. Signed-off-by: Kirill A. Shutemov --- mm/vmscan.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/mm/vmscan.c b/mm/vmscan.c index 93ba33789ac6..21d417ccff69 10064

[PATCHv9-rebased 07/32] thp, vmstats: add counters for huge file pages

2016-06-07 Thread Kirill A. Shutemov
THP_FILE_ALLOC: how many times huge page was allocated and put page cache. THP_FILE_MAPPED: how many times file huge page was mapped. Signed-off-by: Kirill A. Shutemov --- include/linux/vm_event_item.h | 7 +++ mm/memory.c | 1 + mm/vmstat.c | 2 ++ 3 fil

[PATCHv9-rebased 04/32] mm: postpone page table allocation until we have page to map

2016-06-07 Thread Kirill A. Shutemov
The idea (and most of code) is borrowed again: from Hugh's patchset on huge tmpfs[1]. Instead of allocation pte page table upfront, we postpone this until we have page to map in hands. This approach opens possibility to map the page as huge if filesystem supports this. Comparing to Hugh's patch I

[PATCHv9-rebased 25/32] shmem, thp: respect MADV_{NO,}HUGEPAGE for file mappings

2016-06-07 Thread Kirill A. Shutemov
Let's wire up existing madvise() hugepage hints for file mappings. MADV_HUGEPAGE advise shmem to allocate huge page on page fault in the VMA. It only has effect if the filesystem is mounted with huge=advise or huge=within_size. MADV_NOHUGEPAGE prevents hugepage from being allocated on page fault

[PATCHv9-rebased 13/32] thp: run vma_adjust_trans_huge() outside i_mmap_rwsem

2016-06-07 Thread Kirill A. Shutemov
vma_addjust_trans_huge() splits pmd if it's crossing VMA boundary. During split we munlock the huge page which requires rmap walk. rmap wants to take the lock on its own. Let's move vma_adjust_trans_huge() outside i_mmap_rwsem to fix this. Signed-off-by: Kirill A. Shutemov --- mm/mmap.c | 4 ++-

[PATCHv9-rebased 29/32] khugepaged: add support of collapse for tmpfs/shmem pages

2016-06-07 Thread Kirill A. Shutemov
This patch extends khugepaged to support collapse of tmpfs/shmem pages. We share fair amount of infrastructure with anon-THP collapse. Few design points: - First we are looking for VMA which can be suitable for mapping huge page; - If the VMA maps shmem file, the rest scan/collapse opera

[PATCHv9-rebased 31/32] shmem: split huge pages beyond i_size under memory pressure

2016-06-07 Thread Kirill A. Shutemov
Even if user asked to allocate huge pages always (huge=always), we should be able to free up some memory by splitting pages which are partly byound i_size if memory presure comes or once we hit limit on filesystem size (-o size=). In order to do this we maintain per-superblock list of inodes, whic

[PATCHv9-rebased 28/32] shmem: make shmem_inode_info::lock irq-safe

2016-06-07 Thread Kirill A. Shutemov
We are going to need to call shmem_charge() under tree_lock to get accoutning right on collapse of small tmpfs pages into a huge one. The problem is that tree_lock is irq-safe and lockdep is not happy, that we take irq-unsafe lock under irq-safe[1]. Let's convert the lock to irq-safe. [1] https:

[PATCHv9-rebased 27/32] khugepaged: move up_read(mmap_sem) out of khugepaged_alloc_page()

2016-06-07 Thread Kirill A. Shutemov
Both variants of khugepaged_alloc_page() do up_read(&mm->mmap_sem) first: no point keep it inside the function. Signed-off-by: Kirill A. Shutemov --- mm/khugepaged.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c

[PATCHv9-rebased 32/32] thp: update Documentation/{vm/transhuge,filesystems/proc}.txt

2016-06-07 Thread Kirill A. Shutemov
Add info about tmpfs/shmem with huge pages. Signed-off-by: Kirill A. Shutemov --- Documentation/filesystems/proc.txt | 9 +++ Documentation/vm/transhuge.txt | 128 ++--- 2 files changed, 101 insertions(+), 36 deletions(-) diff --git a/Documentation/filesyst

[PATCHv9-rebased 19/32] filemap: prepare find and delete operations for huge pages

2016-06-07 Thread Kirill A. Shutemov
For now, we would have HPAGE_PMD_NR entries in radix tree for every huge page. That's suboptimal and it will be changed to use Matthew's multi-order entries later. 'add' operation is not changed, because we don't need it to implement hugetmpfs: shmem uses its own implementation. Signed-off-by: Ki

[PATCHv9-rebased 30/32] thp: introduce CONFIG_TRANSPARENT_HUGE_PAGECACHE

2016-06-07 Thread Kirill A. Shutemov
For file mappings, we don't deposit page tables on THP allocation because it's not strictly required to implement split_huge_pmd(): we can just clear pmd and let following page faults to reconstruct the page table. But Power makes use of deposited page table to address MMU quirk. Let's hide THP p

[PATCHv9-rebased 23/32] shmem: get_unmapped_area align huge page

2016-06-07 Thread Kirill A. Shutemov
From: Hugh Dickins Provide a shmem_get_unmapped_area method in file_operations, called at mmap time to decide the mapping address. It could be conditional on CONFIG_TRANSPARENT_HUGEPAGE, but save #ifdefs in other places by making it unconditional. shmem_get_unmapped_area() first calls the usual

[PATCHv9-rebased 24/32] shmem: add huge pages support

2016-06-07 Thread Kirill A. Shutemov
Here's basic implementation of huge pages support for shmem/tmpfs. It's all pretty streight-forward: - shmem_getpage() allcoates huge page if it can and try to inserd into radix tree with shmem_add_to_page_cache(); - shmem_add_to_page_cache() puts the page onto radix-tree if there's

[PATCH V4 1/2] thermal: max77620: Add DT binding doc for thermal driver

2016-06-07 Thread Laxman Dewangan
Maxim Semiconductor MAX77620 supports alarm interrupts when its die temperature crosses 120C and 140C. These threshold temperatures are not configurable. Add DT binding document to details out the DT property related to MAX77620 thermal functionality. Signed-off-by: Laxman Dewangan --- Changes

[PATCHv9-rebased 26/32] thp: extract khugepaged from mm/huge_memory.c

2016-06-07 Thread Kirill A. Shutemov
khugepaged implementation grew to the point when it deserve separate file in source. Let's move it to mm/khugepaged.c. Signed-off-by: Kirill A. Shutemov --- include/linux/huge_mm.h| 10 + include/linux/khugepaged.h |6 + mm/Makefile|2 +- mm/huge_memory.c

Re: [PATCH 0/1] shiftfs: uid/gid shifting filesystem

2016-06-07 Thread Djalal Harouni
On Mon, Jun 06, 2016 at 03:02:30PM -0700, James Bottomley wrote: > On Sun, 2016-06-05 at 22:11 +0100, Djalal Harouni wrote: > > On Wed, Jun 01, 2016 at 12:41:00PM -0400, James Bottomley wrote: > > > On Wed, 2016-06-01 at 18:21 +0200, Michał Zegan wrote: > > > > As I sent a reply in a ... wrong way,

[PATCHv9-rebased 10/32] thp: handle file COW faults

2016-06-07 Thread Kirill A. Shutemov
File COW for THP is handled on pte level: just split the pmd. It's not clear how benefitial would be allocation of huge pages on COW faults. And it would require some code to make them work. I think at some point we can consider teaching khugepaged to collapse pages in COW mappings, but allocatin

[PATCH V4 2/2] thermal: max77620: Add thermal driver for reporting junction temp

2016-06-07 Thread Laxman Dewangan
Maxim Semiconductor Max77620 supports alarm interrupts when its die temperature crosses 120C and 140C. These threshold temperatures are not configurable. Add thermal driver to register PMIC die temperature as thermal zone sensor and capture the die temperature warning interrupts to notifying the c

[PATCH v3 05/10] arm64: Add BCM2835 support to the defconfig.

2016-06-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- arch/arm64/configs/defconfig | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index fd2d74d..50e5afc 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -31,6

Re: [PATCH RESEND 03/14] drm/atmel: use drm_crtc_send_vblank_event()

2016-06-07 Thread Boris Brezillon
On Mon, 6 Jun 2016 11:41:34 -0300 Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_send_vblank_event() with the new helper function. > > Signed-off-by: Gustavo Padovan Acked-by: Boris Brezillon > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- > 1 fi

[PATCH v3 01/10] pinctrl: walk into bcm subdir unconditionally

2016-06-07 Thread Gerd Hoffmann
There is no ARCH_BCM on arm64, and we need pinctrl-bcm2835 for the rpi3. Signed-off-by: Gerd Hoffmann --- drivers/pinctrl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile index e4bc115..88586c0 100644 --- a/drivers/p

[PATCH v3 02/10] irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ.

2016-06-07 Thread Gerd Hoffmann
From: Eric Anholt This is equivalent and works for arm64 as well. Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm28

[PATCH v3 10/10] ARM: bcm2837: dt: Add the ethernet to the device trees

2016-06-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts b/arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts index 223793d..6f47dd2 100644 --- a/arch/arm64/boot/dts/broadc

Re: [PATCH 10/14] drm/atmel: use drm_crtc_vblank_{get,put}()

2016-06-07 Thread Boris Brezillon
On Mon, 6 Jun 2016 11:41:41 -0300 Gustavo Padovan wrote: > From: Gustavo Padovan > > Replace the legacy drm_vblank_{get,put}() with the new helper functions. > > Signed-off-by: Gustavo Padovan Acked-by: Boris Brezillon > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 2 +- > 1 fi

[PATCH v3 09/10] ARM: bcm2835: dt: Add the ethernet to the device trees

2016-06-07 Thread Gerd Hoffmann
From: Lubomir Rintel The hub and the ethernet in its port 1 are hardwired on the board. Compared to the adapters that can be plugged into the USB ports, this one has no serial EEPROM to store its MAC. Nevertheless, the Raspberry Pi has the MAC address for this adapter in its ROM, accessible from

[PATCH v3 06/10] dt-bindings: Add root properties for Raspberry Pi 3

2016-06-07 Thread Gerd Hoffmann
From: Eric Anholt Signed-off-by: Eric Anholt Acked-by: Stephen Warren Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/bcm/brcm,bcm2835.txt b/Documentation/device

[PATCH v3 03/10] arm64: Allow for different DMA and CPU bus offsets

2016-06-07 Thread Gerd Hoffmann
From: Alexander Graf On arm64, all SoCs we supported so far either have an IOMMU or have bus addresses equal to CPU addresses. However, with the Raspberry Pi 3 coming up, this is no longer true. To allow DMA to work with an AArch64 kernel on those devices, let's allow devices to have DMA offsets

[PATCH v3 04/10] arm64: Add platform selection for BCM2835.

2016-06-07 Thread Gerd Hoffmann
From: Eric Anholt Signed-off-by: Eric Anholt [ kraxel: copy some selects from arm to arm64 ] Signed-off-by: Gerd Hoffmann --- arch/arm64/Kconfig.platforms | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 7ef1

Re: [PATCH 0/7] add reST/sphinx-doc to linux documentation

2016-06-07 Thread Jani Nikula
On Tue, 07 Jun 2016, Markus Heiser wrote: > Am 07.06.2016 um 10:59 schrieb Jani Nikula : >> One of the key arguments against too much splitting that hasn't been >> mentioned is that despite all the fine output Sphinx can produce, we >> have plenty of people who couldn't care less about running Sph

[PATCH v3 07/10] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-06-07 Thread Gerd Hoffmann
From: Eric Anholt While this devicetree also works for booting in 32-bit mode, it's placed in arm64 since it's a 64-bit CPU (as suggested by Arnd). v2: Move to arm64/ instead of arm/ Signed-off-by: Eric Anholt Acked-by: Stephen Warren (v1) Signed-off-by: Gerd Hoffmann --- arch/arm64/boot/dt

[PATCH v3 08/10] ARM: bcm2835: Add devicetree for the Raspberry Pi 3, for arm (32)

2016-06-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- arch/arm/boot/dts/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 06b6c2d..71e2d36 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -66,7 +66,8

[PATCHv9-rebased 09/32] thp: handle file pages in split_huge_pmd()

2016-06-07 Thread Kirill A. Shutemov
Splitting THP PMD is simple: just unmap it as in DAX case. This way we can avoid memory overhead on page table allocation to deposit. It's probably a good idea to try to allocation page table with GFP_ATOMIC in __split_huge_pmd_locked() to avoid refaulting the area, but clearing pmd should be good

[PATCHv9-rebased 17/32] page-flags: relax policy for PG_mappedtodisk and PG_reclaim

2016-06-07 Thread Kirill A. Shutemov
These flags are in use for file THP. Signed-off-by: Kirill A. Shutemov --- include/linux/page-flags.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 8cf09639185a..74e4dda91238 100644 --- a/include/linux/page

[PATCHv9-rebased 15/32] thp, mlock: do not mlock PTE-mapped file huge pages

2016-06-07 Thread Kirill A. Shutemov
As with anon THP, we only mlock file huge pages if we can prove that the page is not mapped with PTE. This way we can avoid mlock leak into non-mlocked vma on split. We rely on PageDoubleMap() under lock_page() to check if the the page may be PTE mapped. PG_double_map is set by page_add_file_rmap(

[PATCHv9-rebased 18/32] radix-tree: implement radix_tree_maybe_preload_order()

2016-06-07 Thread Kirill A. Shutemov
The new helper is similar to radix_tree_maybe_preload(), but tries to preload number of nodes required to insert (1 << order) continuous naturally-aligned elements. This is required to push huge pages into pagecache. Signed-off-by: Kirill A. Shutemov --- include/linux/radix-tree.h | 1 + lib/r

[PATCHv9-rebased 14/32] thp: file pages support for split_huge_page()

2016-06-07 Thread Kirill A. Shutemov
Basic scheme is the same as for anon THP. Main differences: - File pages are on radix-tree, so we have head->_count offset by HPAGE_PMD_NR. The count got distributed to small pages during split. - mapping->tree_lock prevents non-lockless access to pages under split over radix-tree;

[PATCHv9-rebased 20/32] truncate: handle file thp

2016-06-07 Thread Kirill A. Shutemov
For shmem/tmpfs we only need to tweak truncate_inode_page() and invalidate_mapping_pages(). truncate_inode_pages_range() and invalidate_inode_pages2_range() are adjusted to use page_to_pgoff(). Signed-off-by: Kirill A. Shutemov --- mm/truncate.c | 28 +++- 1 file changed

[PATCHv9-rebased 21/32] mm, rmap: account shmem thp pages

2016-06-07 Thread Kirill A. Shutemov
Let's add ShmemHugePages and ShmemPmdMapped fields into meminfo and smaps. It indicates how many times we allocate and map shmem THP. NR_ANON_TRANSPARENT_HUGEPAGES is renamed to NR_ANON_THPS. Signed-off-by: Kirill A. Shutemov --- drivers/base/node.c| 13 + fs/proc/meminfo.c

[PATCHv9-rebased 22/32] shmem: prepare huge= mount option and sysfs knob

2016-06-07 Thread Kirill A. Shutemov
This patch adds new mount option "huge=". It can have following values: - "always": Attempt to allocate huge pages every time we need a new page; - "never": Do not allocate huge pages; - "within_size": Only allocate huge page if it will be fully within i_size.

[PATCHv9-rebased 05/32] rmap: support file thp

2016-06-07 Thread Kirill A. Shutemov
Naive approach: on mapping/unmapping the page as compound we update ->_mapcount on each 4k page. That's not efficient, but it's not obvious how we can optimize this. We can look into optimization later. PG_double_map optimization doesn't work for file pages since lifecycle of file pages is differe

[PATCHv9-rebased 08/32] thp: support file pages in zap_huge_pmd()

2016-06-07 Thread Kirill A. Shutemov
split_huge_pmd() for file mappings (and DAX too) is implemented by just clearing pmd entry as we can re-fill this area from page cache on pte level later. This means we don't need deposit page tables when file THP is mapped. Therefore we shouldn't try to withdraw a page table on zap_huge_pmd() fil

[PATCHv9-rebased 12/32] thp: prepare change_huge_pmd() for file thp

2016-06-07 Thread Kirill A. Shutemov
change_huge_pmd() has assert which is not relvant for file page. For shared mapping it's perfectly fine to have page table entry writable, without explicit mkwrite. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/hug

[PATCHv9-rebased 03/32] mm: introduce fault_env

2016-06-07 Thread Kirill A. Shutemov
The idea borrowed from Peter's patch from patchset on speculative page faults[1]: Instead of passing around the endless list of function arguments, replace the lot with a single structure so we can change context without endless function signature changes. The changes are mostly mechanical with e

[PATCHv9-rebased 00/32] THP-enabled tmpfs/shmem using compound pages

2016-06-07 Thread Kirill A. Shutemov
It's the same as v9, but rebased to v4.7-rc2-mmotm-2016-06-06-16-15 to solve khugepaged-related conflicts. It also can be found at git://git.kernel.org/pub/scm/linux/kernel/git/kas/linux.git hugetmpfs/v9-rebased Hugh Dickins (1): shmem: get_unmapped_area align huge page Kirill A. Shutemov (31

[PATCHv9-rebased 02/32] mm: do not pass mm_struct into handle_mm_fault

2016-06-07 Thread Kirill A. Shutemov
We always have vma->vm_mm around. Signed-off-by: Kirill A. Shutemov --- arch/alpha/mm/fault.c | 2 +- arch/arc/mm/fault.c | 2 +- arch/arm/mm/fault.c | 2 +- arch/arm64/mm/fault.c | 2 +- arch/avr32/mm/fault.c | 2 +- arch/cris/mm/fault.c

Re: [PATCH v4 1/3] KVM: fix steal clock warp during guest cpu hotplug

2016-06-07 Thread Wanpeng Li
2016-06-07 18:39 GMT+08:00 Paolo Bonzini : > > > On 07/06/2016 09:59, Wanpeng Li wrote: >> From: Wanpeng Li >> >> I observed that sometimes st is 100% instantaneous, then idle is 100% >> even if there is a cpu hog on the guest cpu after the cpu hotplug comes >> back(N.B. this can not always be rea

[PATCHv9-rebased 11/32] thp: skip file huge pmd on copy_huge_pmd()

2016-06-07 Thread Kirill A. Shutemov
copy_page_range() has a check for "Don't copy ptes where a page fault will fill them correctly." It works on VMA level. We still copy all page table entries from private mappings, even if they map page cache. We can simplify copy_huge_pmd() a bit by skipping file PMDs. We don't map file private p

about definition of iowait

2016-06-07 Thread Cao jin
Hi, I noticed some problems about iowait entry of /proc/stat: it seems not accurate, and sometimes will decrease in SMP. For UP, we have a simple definition about iowait, which is: The time that the processor is idle, during which there is a task waiting for I/O. This definition seems don't

Re: mm: pages are not freed from lru_add_pvecs after process termination

2016-06-07 Thread Michal Hocko
On Tue 07-06-16 09:02:02, Odzioba, Lukasz wrote: [...] > //compile with: gcc bench.c -o bench_2M -fopenmp > //compile with: gcc -D SMALL_PAGES bench.c -o bench_4K -fopenmp > #include > #include > #include > > #define MAP_HUGE_SHIFT 26 > #define MAP_HUGE_2MB(21 << MAP_HUGE_SHIFT) > > #ifnd

[PATCH 3/6] clk: st: clkgen-pll: Detect critical clocks

2016-06-07 Thread Lee Jones
Utilise the new Critical Clock infrastructure to mark clocks which much not be disabled as CRITICAL. Clocks are marked as CRITICAL using clk flags. This patch also ensures flags are peculated through the framework in the correct manner. Signed-off-by: Lee Jones --- drivers/clk/st/clkgen-pll.c

[PATCH 0/6] clk: sti: Add support for critical clocks

2016-06-07 Thread Lee Jones
Describe the platform's critical clocks in DT, then search for them from the framework. This set allows us to remove the clk_ignore_unused kernel command line flag which has been required to achieve a successful boot to prompt until this point. This may not be the definitive list. There may be o

Re: [patch] futex: Fix v4.6+ ltp futex_wait04 regression

2016-06-07 Thread Mel Gorman
On Tue, Jun 07, 2016 at 11:50:56AM +0100, Mel Gorman wrote: > On Mon, Jun 06, 2016 at 11:40:41AM +0200, Mike Galbraith wrote: > > Hi Mel (who is out of the office today), > > > > Adding Davidlohr who did a lot of the work debugging my initial > prototype. > > > I initially reported this on the r

[PATCH 6/6] spi: st-ssc4: Remove 'no clocking' hack

2016-06-07 Thread Lee Jones
Due to the newly upstreamed 'critical clocks' API we can now safely handle clocking in the SPI and I2C drivers without fear of catastrophically crippling the running platform. Signed-off-by: Lee Jones --- drivers/spi/spi-st-ssc4.c | 36 +--- 1 file changed, 5 inse

[PATCH 2/6] clk: st: clkgen-fsyn: Detect critical clocks

2016-06-07 Thread Lee Jones
Utilise the new Critical Clock infrastructure to mark clocks which much not be disabled as CRITICAL. Clocks are marked as CRITICAL using clk flags. This patch also ensures flags are peculated through the framework in the correct manner. Signed-off-by: Lee Jones --- drivers/clk/st/clkgen-fsyn.c

[PATCH 5/6] ARM: sti: stih410-clocks: Identify critical clocks

2016-06-07 Thread Lee Jones
Lots of platforms contain clocks which if turned off would prove fatal. The only way to recover is to restart the board(s). This driver takes references to clocks which are required to be always-on. The Common Clk Framework will then take references to them. This way they will not be turned off

[PATCH 4/6] ARM: sti: stih407-family: Supply defines for CLOCKGEN A0

2016-06-07 Thread Lee Jones
There are 2 LMI clocks generated by CLOCKGEN A0. We wish to control them individually and need to use these indexes to do so. Signed-off-by: Lee Jones --- include/dt-bindings/clock/stih407-clks.h | 4 1 file changed, 4 insertions(+) diff --git a/include/dt-bindings/clock/stih407-clks.h b

[PATCH 1/6] clk: st: clk-flexgen: Detect critical clocks

2016-06-07 Thread Lee Jones
Utilise the new Critical Clock infrastructure to mark clocks which much not be disabled as CRITICAL. While we're at it, reduce the coverage of the flex_flags variable, since it's only really used in a single for() loop. Signed-off-by: Lee Jones --- drivers/clk/st/clk-flexgen.c | 4 +++- 1 file

Re: [PATCH v4 3/3] sched/cputime: Add steal time support to full dynticks CPU time accounting

2016-06-07 Thread Wanpeng Li
2016-06-07 18:47 GMT+08:00 Paolo Bonzini : > > > On 07/06/2016 10:00, Wanpeng Li wrote: >> From: Wanpeng Li >> >> This patch adds guest steal-time support to full dynticks CPU >> time accounting. After the following commit: >> >> ff9a9b4c4334 ("sched, time: Switch VIRT_CPU_ACCOUNTING_GEN to jiffy

Re: Regression in "kbuild: fix if_change and friends to consider argument order"

2016-06-07 Thread Masahiro Yamada
2016-06-07 19:48 GMT+09:00 Michal Marek : > On 2016-06-07 12:03, Masahiro Yamada wrote: >> 2016-06-07 18:58 GMT+09:00 Michal Marek : >>> On 2016-06-07 11:38, Michal Marek wrote: On 2016-06-07 03:38, Zanoni, Paulo R wrote: > Hi > > I recently noticed that alternating between "make"

[PATCH v2 1/3] Save dump_root into pid_namespace

2016-06-07 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. Reason of above different is: In pipe_mode dump_pattern setting, the process wh

[PATCH v2 2/3] Make dump_pipe thread possilbe to select the rootfs

2016-06-07 Thread Zhao Lei
To make the dump_pipe thread run in container's filesystem, we need to make it possible to select its fs_root from fork. Then the dump_pipe thread will exec user_defined pipe program in container's fs_root, and the problem will also write dumpdata into the same fs_root. Signed-off-by: Zhao Lei -

[PATCH v2 3/3] Write dump into container's filesystem for pipe_type core_pattern

2016-06-07 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. For example, when we set following core_pattern: # echo "|/my_dump_pipe %s %c

Re: [PATCH 0/9] clocksource/drivers/clksrc-of: Improve error handling

2016-06-07 Thread Daniel Lezcano
On 06/07/2016 11:54 AM, Geert Uytterhoeven wrote: Hi Daniel, On Wed, Jun 1, 2016 at 10:34 AM, Daniel Lezcano wrote: The macro CLOCKSOURCE_OF_DECLARE is widely used in the timer drivers. Basically, this macro is defined to insert in a table a tuple name,function. This function is an init funct

Re: [PATCH v3] ASoC: rockchip: Add machine driver for MAX98357A/RT5514/DA7219

2016-06-07 Thread Xing Zheng
Hi Mark, On 2016年06月07日 18:47, Mark Brown wrote: On Tue, Jun 07, 2016 at 10:49:35AM +0800, Xing Zheng wrote: On 2016年06月07日 07:50, Mark Brown wrote: It should probably be three compatibles, one per CODEC, if the driver needs to handle each separately. Do you mean like this: sound { c

Re: powerpc/nvram: Fix an incorrect partition merge

2016-06-07 Thread Michael Ellerman
On Mon, 2016-06-06 at 13:31 +0800, xinhui wrote: > On 2016年06月03日 19:47, Michael Ellerman wrote: > > On Thu, 2015-10-12 at 07:30:02 UTC, xinhui wrote: > > > From: Pan Xinhui > > > > > > When we merge two contiguous partitions whose signatures are marked > > > NVRAM_SIG_FREE, We need update prev's

Re: [PATCH 5/6] x86/ptrace: down with test_thread_flag(TIF_IA32)

2016-06-07 Thread Dmitry Safonov
On 06/07/2016 12:19 AM, Oleg Nesterov wrote: On 06/01, Dmitry Safonov wrote: Note, that this will work only if application has changed it's CS. So, suppose it changes it's CS and crashes, If the application does 32-bit syscall with __USER_CS, ptrace @@ -1355,7 +1355,7 @@ void update_regset_

Re: [PATCH -v4 5/7] locking, arch: Update spin_unlock_wait()

2016-06-07 Thread Boqun Feng
On Mon, Jun 06, 2016 at 06:08:36PM +0200, Peter Zijlstra wrote: > On Thu, Jun 02, 2016 at 06:57:00PM +0100, Will Deacon wrote: > > > This 'replaces' commit: > > > > > > 54cf809b9512 ("locking,qspinlock: Fix spin_is_locked() and > > > spin_unlock_wait()") > > > > > > and seems to still work wit

Re: ath9k gpio request

2016-06-07 Thread Kalle Valo
Sudip Mukherjee writes: >> Sudip, could you also test patch 9151847, please? You can download the >> patch from the patchwork link above. > > This is also ok. Please add my > Tested-by: Sudip Mukherjee > > and maybe a Reported-by tag is also appropriate in this case. Yeah, I add those. Thanks S

Re: [PATCH] ARM64: boot: dts: Add regulators for Tegra210 Smaug

2016-06-07 Thread Laxman Dewangan
On Tuesday 07 June 2016 03:22 AM, Rhyland Klein wrote: On 6/6/2016 2:39 AM, Laxman Dewangan wrote: On Saturday 04 June 2016 01:52 AM, Rhyland Klein wrote: + regulator-disable-ramp-delay = <4080>; + regulator-ramp-delay

[PATCH v2 13/20] drm: tegra: Rely on the default ->best_encoder() behavior

2016-06-07 Thread Boris Brezillon
All outputs have a 1:1 relationship between connectors and encoders and the driver is relying on the atomic helpers: we can drop the custom ->best_encoder() implementation and let the core call drm_atomic_helper_best_encoder() for us. Signed-off-by: Boris Brezillon --- drivers/gpu/drm/tegra/drm.

[PATCH v2 10/20] drm: rockchip: Rely on the default ->best_encoder() behavior

2016-06-07 Thread Boris Brezillon
All outputs have a 1:1 relationship between connectors and encoders and the driver is relying on the atomic helpers: we can drop the custom ->best_encoder() implementations and let the core call drm_atomic_helper_best_encoder() for us. Signed-off-by: Boris Brezillon Acked-by: Mark Yao --- driv

[PATCH v2 04/20] drm: exynos: Rely on the default ->best_encoder() behavior

2016-06-07 Thread Boris Brezillon
We have 1:1 relationship between connectors and encoders and the driver is relying on the atomic helpers: we can drop the custom ->best_encoder() implementations and let the core call drm_atomic_helper_best_encoder() for us. Signed-off-by: Boris Brezillon --- drivers/gpu/drm/exynos/exynos_drm_dp

Re: Fw: [PATCH v4 2/3] sched/cputime: Fix prev steal time accouting during cpu hotplug

2016-06-07 Thread Wanpeng Li
2016-06-07 19:41 GMT+08:00 Wanpeng Li : > On 07/06/2016 10:00, Wanpeng Li wrote: > >> From: Wanpeng Li >> >> Commit e9532e69b8d1 ("sched/cputime: Fix steal time accounting vs. CPU >> hotplug") >> set rq->prev_* to 0 after a cpu hotplug comes back in order to fix the >> scenario: >> >> | steal is s

[PATCH v2 14/20] drm: vc4: Rely on the default ->best_encoder() behavior

2016-06-07 Thread Boris Brezillon
All outputs have a 1:1 relationship between connectors and encoders and the driver is relying on the atomic helpers: we can drop the custom ->best_encoder() implementations and let the core call drm_atomic_helper_best_encoder() for us. Signed-off-by: Boris Brezillon --- drivers/gpu/drm/vc4/vc4_d

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