Re: [PATCH net-next v2 7/9] net: use core MTU range checking in misc drivers

2016-10-20 Thread Rémi Denis-Courmont
Acked-by: Rémi Denis-Courmont -- Rémi Denis-Courmont http://www.remlab.net/CV.pdf

Re: [PATCH v4 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-20 Thread Thomas Gleixner
On Thu, 20 Oct 2016, Doug Anderson wrote: > On Thu, Oct 20, 2016 at 2:27 PM, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Douglas Anderson wrote: > > > > Please wait for a full review and do not send out patches 5 seconds after > > the first mail hits your inbox. > > Since you had previously c

Re: [PATCH 2/2] mmc: sdhci-of-at91: Fix module autoload

2016-10-20 Thread Ludovic Desroches
On Mon, Oct 17, 2016 at 01:13:45PM -0300, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias inf

Re: [PATCH V3 0/3] Add support for session ID user filtering

2016-10-20 Thread Richard Guy Briggs
On 2016-10-20 15:27, Paul Moore wrote: > On Thursday, August 18, 2016 01:43:12 PM Richard Guy Briggs wrote: > > https://github.com/linux-audit/audit-kernel/wiki/RFE-Session-ID-User-Filter > > RFE Session ID User Filter > > > > https://github.com/linux-audit/audit-kernel/issues/4 > > RFE: add a ses

Re: [patch] perf_event_open.2: update time_shift sample code

2016-10-20 Thread Michael Kerrisk (man-pages)
On 10/21/2016 06:38 AM, Vince Weaver wrote: > > Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved > the accuracy of the clock/ns conversion routines. As a result > the shift factor can now be 32. This value is directly > exported in the perf_event_open() mmap page, and this > potenti

Re: [3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 23:39:39, Brian Norris wrote: > (Preface: this wasn't a clean backport, I'm a bit under the weather, and > it's getting late here. So forgive me if my head's not on straight.) > > Hi, > > I'm not sure the best way to report this, but the Chrome OS test > infrastructure noticed som

Re: [RFC][PATCH v3] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-10-20 Thread Michael Kerrisk (man-pages)
Hi John, On 10/21/2016 03:24 AM, John Stultz wrote: > This patch adds logic to allows a process to migrate other tasks > between cgroups if they have CAP_SYS_RESOURCE. This appears to be a patch against your previous patch, rather than against mainline. Was that intended? Cheers, Michael > I

[PATCH v5] mmc: sdhci-msm: Add pm_runtime and system PM support

2016-10-20 Thread Pramod Gurav
Provides runtime PM callbacks to enable and disable clock resources when idle. Also support system PM callbacks to be called during system suspend and resume. Reviewed-by: Ritesh Harjani Reviewed-by: Georgi Djakov Tested-by: Ritesh Harjani Signed-off-by: Pramod Gurav --- Tested on DB410C. Cha

Re: [PATCH] net: cpsw: fix obtaining mac address for am3517

2016-10-20 Thread Tony Lindgren
* Jeroen Hofstee [161020 12:57]: > Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac > id to common file") did not only move the code for an am3517, it also > added the slave parameter, resulting in a invalid (all zero) mac address > being returned. So change it back to alwa

Re: [PATCH 1/2] mm: memcontrol: use special workqueue for creating per-memcg caches

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 20:44:35, Andrew Morton wrote: > On Tue, 4 Oct 2016 16:14:17 +0300 Vladimir Davydov > wrote: > > > Creating a lot of cgroups at the same time might stall all worker > > threads with kmem cache creation works, because kmem cache creation is > > done with the slab_mutex held. The p

[3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-20 Thread Brian Norris
(Preface: this wasn't a clean backport, I'm a bit under the weather, and it's getting late here. So forgive me if my head's not on straight.) Hi, I'm not sure the best way to report this, but the Chrome OS test infrastructure noticed some problems when testing the following patch backported to ou

[RESEND PATCH v3 kernel 6/7] virtio-balloon: define feature bit and head for misc virt queue

2016-10-20 Thread Liang Li
Define a new feature bit which supports a new virtual queue. This new virtual qeuque is for information exchange between hypervisor and guest. The VMM hypervisor can make use of this virtual queue to request the guest do some operations, e.g. drop page cache, synchronize file system, etc. And the V

[RESEND PATCH v3 kernel 4/7] virtio-balloon: speed up inflate/deflate process

2016-10-20 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, the time spends on different stages of inflating the balloon to 7GB of a 8GB idle guest: a. allocating pages (6.5%) b. sending PFNs to host (68.3%) c. address translation (6.1%) d. madvise (19%) It takes about 4126ms for the

[RESEND PATCH v3 kernel 3/7] mm: add a function to get the max pfn

2016-10-20 Thread Liang Li
Expose the function to get the max pfn, so it can be used in the virtio-balloon device driver. Simply include the 'linux/bootmem.h' is not enough, if the device driver is built to a module, directly refer the max_pfn lead to build failed. Signed-off-by: Liang Li Cc: Andrew Morton Cc: Mel Gorman

[RESEND PATCH v3 kernel 7/7] virtio-balloon: tell host vm's unused page info

2016-10-20 Thread Liang Li
Support the request for vm's unused page information, response with a page bitmap. QEMU can make use of this bitmap and the dirty page logging mechanism to skip the transportation of these unused pages, this is very helpful to speed up the live migration process. Signed-off-by: Liang Li Cc: Micha

[RESEND PATCH v3 kernel 5/7] mm: add the related functions to get unused page

2016-10-20 Thread Liang Li
Save the unused page info into page bitmap. The virtio balloon driver call this new API to get the unused page bitmap and send the bitmap to hypervisor(QEMU) for speeding up live migration. During sending the bitmap, some the pages may be modified and are no free anymore, this inaccuracy can be cor

[RESEND PATCH v3 kernel 1/7] virtio-balloon: rework deflate to add page to a list

2016-10-20 Thread Liang Li
Will allow faster notifications using a bitmap down the road. balloon_pfn_to_page() can be removed because it's useless. Signed-off-by: Liang Li Signed-off-by: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah --- drivers/virtio/virtio_balloon.c | 22 --

[RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-20 Thread Liang Li
This patch set contains two parts of changes to the virtio-balloon. One is the change for speeding up the inflating & deflating process, the main idea of this optimization is to use bitmap to send the page information to host instead of the PFNs, to reduce the overhead of virtio data transmission

[RESEND PATCH v3 kernel 2/7] virtio-balloon: define new feature bit and page bitmap head

2016-10-20 Thread Liang Li
Add a new feature which supports sending the page information with a bitmap. The current implementation uses PFNs array, which is not very efficient. Using bitmap can improve the performance of inflating/deflating significantly The page bitmap header will used to tell the host some information abo

Re: [PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-20 Thread Sakari Ailus
Hi Thierry, On Thu, Oct 20, 2016 at 10:56:04AM +0200, Thierry Escande wrote: > From: Pawel Osciak > > When this flag is set for CAPTURE queues by the driver on calling > vb2_queue_init(), it forces the buffers on the queue to be > allocated/mapped with DMA_BIDIRECTIONAL direction flag instead of

[PATCH] Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo()

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 21 Oct 2016 08:18:38 +0200 Some data were printed into a sequence by four separate function calls. Print the same data by a single function call instead. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/hexagon/ke

Re: [PATCH] mm, compaction: fix NR_ISOLATED_* stats for pfn based migration

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 20:16:06, Andrew Morton wrote: > On Wed, 19 Oct 2016 10:02:40 +0200 Michal Hocko wrote: > > > Since bda807d44454 ("mm: migrate: support non-lru movable page > > migration") isolate_migratepages_block) can isolate !PageLRU pages which > > would acct_isolated account as NR_ISOLATED_

Re: [PATCH v4 2/5] drivers/of: do not add memory for unavailable nodes

2016-10-20 Thread Alistair Popple
Hi Reza, On Thu, 6 Oct 2016 01:36:32 PM Reza Arbab wrote: > Respect the standard dt "status" property when scanning memory nodes in > early_init_dt_scan_memory(), so that if the node is unavailable, no > memory will be added. What happens if a kernel without this patch is booted on a system with

Re: [PATCH 3/3] zram: adjust the number of zram thread

2016-10-20 Thread Sergey Senozhatsky
On (09/22/16 15:42), Minchan Kim wrote: [..] > +static int __zram_cpu_notifier(void *dummy, unsigned long action, > + unsigned long cpu) > { > struct zram_worker *worker; > > - while (!list_empty(&workers.worker_list)) { > + switch (action) { > + cas

[PATCH] usb: dwc3: Fix error handling for core init

2016-10-20 Thread Vivek Gautam
Fixing the sequence of events in dwc3_core_init() error exit path. dwc3_core_exit() call is removed from the error path since, whatever it's doing is already done. Signed-off-by: Vivek Gautam Cc: Felipe Balbi --- Based on usb-next. drivers/usb/dwc3/core.c | 5 ++--- 1 file changed, 2 insertio

Re: [PATCH V3 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-10-20 Thread Dongdong Liu
Hi Rafael Thanks for your review. 在 2016/10/20 20:27, Rafael J. Wysocki 写道: On Thu, Oct 20, 2016 at 5:10 AM, Dongdong Liu wrote: PCIe controller in Hip05/HIP06/HIP07 SoCs is not ECAM compliant. It is non ECAM only for the RC bus config space;for any other bus underneath the root bus we suppor

Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-20 Thread Sergey Senozhatsky
Hello Minchan, On (10/17/16 14:04), Minchan Kim wrote: > Hi Sergey, > > On Fri, Oct 07, 2016 at 03:33:22PM +0900, Minchan Kim wrote: > > < snip > > > > > so the question is -- can we move this parallelization out of zram > > > and instead flush bdi in more than one kthread? how bad that would >

Re: [PATCH 3.12 0/5] 3.12.66-stable review

2016-10-20 Thread Jiri Slaby
On 10/20/2016, 01:34 PM, Guenter Roeck wrote: > On 10/20/2016 01:44 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.66 release. >> There are 5 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being appli

Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-20 Thread Sergey Senozhatsky
On (09/22/16 15:42), Minchan Kim wrote: > +static ssize_t use_aio_store(struct device *dev, > + struct device_attribute *attr, const char *buf, size_t len) > +{ > + int ret; > + u16 do_async; > + struct zram *zram = dev_to_zram(dev); > + > + ret = kstrtou16(buf, 10, &do

Re: [PATCH 1/2] x86/dumpstack: on oops do not rewind stack for kthread

2016-10-20 Thread Peter Zijlstra
On Thu, Oct 20, 2016 at 04:07:28PM -0700, Andy Lutomirski wrote: > On Wed, Sep 21, 2016 at 8:43 AM, Roman Pen > wrote: > > kthread uses stack and keeps completion structure on it to be woken up > > on vfork_done completion. > > > > In commit 2deb4be28 Andy Lutomirski rewinds the stack unconditiona

[PATCH v2.1 2/2] MIPS: loongson1: Add watchdog support for Loongson1 board

2016-10-20 Thread Yang Ling
The patch adds watchdog support for Loongson1 board. Signed-off-by: Yang Ling --- V2.1: No change. V2.0: Add watchdog support for loongson1b_defconfig. V1.1: Add watchdog support for Loongson1B. --- arch/mips/configs/loongson1b_defconfig | 4 arch/mips/configs/loongson1c_d

[tip:x86/asm] entry/64: Remove unused ZERO_EXTRA_REGS macro

2016-10-20 Thread tip-bot for Alexander Kuleshov
Commit-ID: 29a6d7964d6853f5bcd84dfb92c074fb41d00563 Gitweb: http://git.kernel.org/tip/29a6d7964d6853f5bcd84dfb92c074fb41d00563 Author: Alexander Kuleshov AuthorDate: Thu, 20 Oct 2016 18:07:04 +0600 Committer: Ingo Molnar CommitDate: Fri, 21 Oct 2016 07:47:36 +0200 entry/64: Remove unus

[tip:x86/urgent] sched/core, x86: Make struct thread_info arch specific again

2016-10-20 Thread tip-bot for Heiko Carstens
Commit-ID: c8061485a0d7569a865a3cc3c63347b0f42b3765 Gitweb: http://git.kernel.org/tip/c8061485a0d7569a865a3cc3c63347b0f42b3765 Author: Heiko Carstens AuthorDate: Wed, 19 Oct 2016 19:28:11 +0100 Committer: Ingo Molnar CommitDate: Thu, 20 Oct 2016 13:27:47 +0200 sched/core, x86: Make str

[tip:x86/urgent] x86/platform/UV: Fix support for EFI_OLD_MEMMAP after BIOS callback updates

2016-10-20 Thread tip-bot for Alex Thorlton
Commit-ID: caef78b6cdeddf4ad364f95910bba6b43b8eb9bf Gitweb: http://git.kernel.org/tip/caef78b6cdeddf4ad364f95910bba6b43b8eb9bf Author: Alex Thorlton AuthorDate: Wed, 19 Oct 2016 20:48:51 -0500 Committer: Ingo Molnar CommitDate: Thu, 20 Oct 2016 08:47:58 +0200 x86/platform/UV: Fix suppo

[tip:x86/urgent] x86/signal: Remove bogus user_64bit_mode() check from sigaction_compat_abi()

2016-10-20 Thread tip-bot for Dmitry Safonov
Commit-ID: ed1e7db33c3354e4f8b594738c5e793690213b43 Gitweb: http://git.kernel.org/tip/ed1e7db33c3354e4f8b594738c5e793690213b43 Author: Dmitry Safonov <0x7f454...@gmail.com> AuthorDate: Thu, 20 Oct 2016 00:53:08 +0300 Committer: Ingo Molnar CommitDate: Thu, 20 Oct 2016 13:05:15 +0200 x86

Re: [PATCH v3] x86/tsc: add X86_FEATURE_TSC_KNOWN_FREQ flag

2016-10-20 Thread Peter Zijlstra
On Thu, Oct 20, 2016 at 09:37:50PM +0200, Thomas Gleixner wrote: > Well, we have the same issue on other platforms/models which set the > reliable flag. I was not aware we had other platforms doing this, git grep tells me intel-mid does this as well.. > So one sanity check we can do is to read t

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-20 Thread Kuninori Morimoto
Hi Rob Can I continue this idea (= property on port/endpoint) ? Of course I will remove "type" from OF graph. > > > + type = "sound"; > > > > I'm still not convinced this is necessary. This is implied either by > > the fact there is only one port or perhaps the compatible string.

[PATCH v2.1 1/2] watchdog: loongson1: Add Loongson1 SoC watchdog driver

2016-10-20 Thread Yang Ling
Add watchdog timer specific driver for Loongson1 SoC. Signed-off-by: Yang Ling --- V2.1 from Kelvin Cheung: Use max_hw_heartbeat_ms instead of max_timeout. V2: Increase the value of the default heartbeat. Modify the setup process for register. Order include files and Makefile alphabetica

Re: [PATCH v5 0/9] implement vcpu preempted check

2016-10-20 Thread Peter Zijlstra
On Thu, Oct 20, 2016 at 05:27:45PM -0400, Pan Xinhui wrote: > > This patch set aims to fix lock holder preemption issues. Thanks, this looks very good. I'll wait for ACKs from at least the KVM people, since that was I think the most contentious patch.

Re: [PATCH 2/2] sched: do not call workqueue sleep hook if task is already dead

2016-10-20 Thread Peter Zijlstra
On Wed, Sep 21, 2016 at 05:43:50PM +0200, Roman Pen wrote: > If panic_on_oops is not set and oops happens inside workqueue kthread, > kernel kills this kthread. Current patch fixes recursive GPF which > happens in that case with the following stack: > The root cause is that zeroed task->vfork_do

Re: [PATCH] kexec: Export kexec_in_progress to modules

2016-10-20 Thread Eric W. Biederman
David Miller writes: > From: Florian Fainelli > Date: Thu, 20 Oct 2016 18:15:16 -0700 > >> The bcm_sf2 driver uses kexec_in_progress to know whether it can power >> down an integrated PHY during shutdown, and can be built as a module. >> Other modules may be using this in the future, so export i

Re: [PATCH] net: skip genenerating uevents for network namespaces that are exiting

2016-10-20 Thread Andrey Vagin
On Thu, Oct 20, 2016 at 8:10 PM, Cong Wang wrote: > On Thu, Oct 20, 2016 at 7:46 PM, Andrei Vagin wrote: >> No one can see these events, because a network namespace can not be >> destroyed, if it has sockets. >> > > Are you sure? kobject_uevent_env() seems sending uevents to all > network namespa

[PATCH 6/6] FRV-setup: Move statements for "case" to separate lines

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 22:33:56 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: trailing statements should be on next line Thus fix the affected source code places. Signed-off-by: Markus Elfring --- arch/frv/kernel/setup.c | 8 ++--

[PATCH 5/6] FRV-setup: Fix indentation in two lines

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 22:25:18 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: please, no spaces at the start of a line Thus fix the affected source code places. Signed-off-by: Markus Elfring --- arch/frv/kernel/setup.c | 4 ++-- 1

[PATCH 4/6] FRV-setup: Move "else" closer to a brace

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 22:12:27 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: else should follow close brace '}' Thus fix the affected source code places. Signed-off-by: Markus Elfring --- arch/frv/kernel/setup.c | 6 ++ 1 file c

Re: [PATCH v5 7/9] x86, xen: support vcpu preempted check

2016-10-20 Thread Juergen Gross
Corrected xen-devel mailing list address, added other Xen maintainers On 20/10/16 23:27, Pan Xinhui wrote: > From: Juergen Gross > > Support the vcpu_is_preempted() functionality under Xen. This will > enhance lock performance on overcommitted hosts (more runnable vcpus > than physical cpus in t

[PATCH 3/6] FRV-setup: Add some spaces for better code readability

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 22:05:55 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- arch/frv/kernel/setup.c | 40 1 file changed, 20 insertions(+),

[PATCH 2/6] FRV-setup: Use seq_putc() in show_cpuinfo()

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 21:39:00 +0200 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/frv/kernel/setup.c | 2 +-

[PATCH 1/6] FRV-setup: Use seq_puts() in show_cpuinfo()

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 21:36:43 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch

[PATCH 0/6] FRV-setup: Fine-tuning for six function implementations

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 20 Oct 2016 22:44:22 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Use seq_puts() in show_cpuinfo() Use seq_putc() in show_cpuinfo() Add some spaces for better code readability Move "else" close

Re: [PATCH] toshiba-wmi: Fix loading the driver on non Toshiba laptops

2016-10-20 Thread Darren Hart
On Wed, Oct 19, 2016 at 05:27:49PM -0600, Azael Avalos wrote: > Hi Darren, > > 2016-10-19 14:26 GMT-06:00 Darren Hart : > > > > > Want to going to stable? > > If possible, yes, as this issue affects other laptop manufacturers, > we may never know if someone might try to load an older kernel > o

Re: [PATCH] shmem: avoid huge pages for small files

2016-10-20 Thread Dave Chinner
On Thu, Oct 20, 2016 at 07:01:16PM -0700, Andi Kleen wrote: > > Ugh, no, please don't use mount options for file specific behaviours > > in filesystems like ext4 and XFS. This is exactly the sort of > > behaviour that should either just work automatically (i.e. be > > completely controlled by the f

Re: [RESEND PATCH v4] clk: x86: Add Atom PMC platform clocks

2016-10-20 Thread Darren Hart
On Thu, Oct 20, 2016 at 11:52:38PM +0200, Thomas Gleixner wrote: > On Mon, 17 Oct 2016, Irina Tirdea wrote: > > The patch has already been reviewed by Stephen Boyd [1]. > > The only remaining question is the one pointed out by Stephen: > > "Will there be problems if this merges through clk tree? If

[patch] perf_event_open.2: update time_shift sample code

2016-10-20 Thread Vince Weaver
Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved the accuracy of the clock/ns conversion routines. As a result the shift factor can now be 32. This value is directly exported in the perf_event_open() mmap page, and this potentially breaks the sample code that shifts 1 left by the sh

Re: [PATCH v4] mmc: sdhci-msm: Add pm_runtime and system PM support

2016-10-20 Thread Pramod Gurav
Hi Ritesh, On 20 October 2016 at 20:20, Ritesh Harjani wrote: > Hi Pramod, > > Thanks for this patch. Few minor comments. > > I have tested your patch on db410c and 8996 based internal platform and it > works fine. Thanks for the review and testing. > > > > On 10/18/2016 3:46 PM, Pramod Gurav wro

Re: [PATCH v4] mmc: sdhci-msm: Add pm_runtime and system PM support

2016-10-20 Thread Pramod Gurav
Thanks Georgi for the review. On 20 October 2016 at 18:38, Georgi Djakov wrote: > Hi Pramod, > > Thanks for the patch! > > On 10/18/2016 01:16 PM, Pramod Gurav wrote: >> >> Provides runtime PM callbacks to enable and disable clock resources >> when idle. Also support system PM callbacks to be cal

[PATCH] clk: rockchip: add 533.25MHz to rk3399 clock rates table

2016-10-20 Thread Xing Zheng
We need to get the accurate 533.25MHz for the DP display. Signed-off-by: Xing Zheng --- drivers/clk/rockchip/clk-rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 2c7cba7..a87cb49 100644 --- a/drivers/clk/ro

[git pull] drm fixes for 4.9-rc2 (part 2)

2016-10-20 Thread Dave Airlie
Hi Linus, Second part of the fixes for rc2, main one being some vmwgfx fixes, also some armada, etnaviv and fsl-dcu fixes. There is a pretty large regression in -rc1 that affects radeon/amdgpu/nouveau and possibly other ttm using drivers with real VRAM on PAT systems, this was due to a change in

Re: [PATCH 1/2] mm: memcontrol: use special workqueue for creating per-memcg caches

2016-10-20 Thread Andrew Morton
On Tue, 4 Oct 2016 16:14:17 +0300 Vladimir Davydov wrote: > Creating a lot of cgroups at the same time might stall all worker > threads with kmem cache creation works, because kmem cache creation is > done with the slab_mutex held. The problem was amplified by commits > 801faf0db894 ("mm/slab: l

Re: [PATCH net] net: remove MTU limits on a few ether_setup callers

2016-10-20 Thread Florian Fainelli
Le 20/10/2016 à 20:25, Jarod Wilson a écrit : > These few drivers call ether_setup(), but have no ndo_change_mtu, and thus > were overlooked for changes to MTU range checking behavior. They > previously had no range checks, so for feature-parity, set their min_mtu > to 0 and max_mtu to ETH_MAX_MTU

Re: [PATCH] uapi: linux: acct: Remove redundant type comp2_t from kernel

2016-10-20 Thread Andrew Morton
On Wed, 5 Oct 2016 21:40:10 +0800 cheng...@emindsoft.com.cn wrote: > In api itself, kernel does not use it -- it is divided into ac_etime_hi > and ac_etime_lo. So kernel side only need generate the correct > ac_etime_hi and ac_etime_lo, but need not know about comp2_t. > > At present, kernel use

Re: [PATCH net-next v2 6/9] net: use core MTU range checking in virt drivers

2016-10-20 Thread Michael S. Tsirkin
On Thu, Oct 20, 2016 at 10:37:20PM -0400, Jarod Wilson wrote: > On Thu, Oct 20, 2016 at 11:23:54PM +0300, Michael S. Tsirkin wrote: > > On Thu, Oct 20, 2016 at 01:55:21PM -0400, Jarod Wilson wrote: > ... > > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > > > index fad84f3..720

[PATCH v14 3/4] arm: dts: mt2701: Add clock controller device nodes

2016-10-20 Thread Erin Lo
From: James Liao Add clock controller nodes for MT2701, include topckgen, infracfg, pericfg, apmixedsys, mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. This patch also add two oscillators that provide clocks for MT2701. Signed-off-by: James Liao Signed-off-by: Erin Lo --- arch/arm/boot/dt

[PATCH v14 2/4] reset: mediatek: Add MT2701 reset driver

2016-10-20 Thread Erin Lo
From: Shunli Wang In infrasys and perifsys, there are many reset control bits for kinds of modules. These bits are used as actual reset controllers to be registered into kernel's generic reset controller framework. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Te

[PATCH v14 4/4] arm: dts: mt2701: Use real clock for UARTs

2016-10-20 Thread Erin Lo
We used to use a fixed rate clock for the UARTs. Now that we have clock support we can associate the correct clocks to the UARTs and drop the 26MHz fixed rate UART clock. Signed-off-by: Erin Lo --- arch/arm/boot/dts/mt2701.dtsi | 18 -- 1 file changed, 8 insertions(+), 10 deletio

[PATCH v14 0/4] Add clock support for Mediatek MT2701

2016-10-20 Thread Erin Lo
This series is based on v4.9-rc1, add clock and reset controller support for Mediatek MT2701. changes since v13: - Rebase to v4.9-rc1. changes since v12: - Rebase to clk-next. - Use CLK_OF_DECLARE_DRIVER() instead of CLK_OF_DECLARE(). - Use dev_* and devm_* APIs instead of pr_* and ioremap(). - R

[PATCH v14 1/4] clk: mediatek: Add MT2701 clock support

2016-10-20 Thread Erin Lo
From: Shunli Wang Add MT2701 clock support, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Signed-off-by: Erin Lo Tested-by: John Crispin --- drivers/clk/mediatek/Kconfig | 43 ++ drivers/clk/mediatek/Ma

linux-next: Tree for Oct 21

2016-10-20 Thread Stephen Rothwell
Hi all, Changes since 20161020: New trees: phy, phy-next The net tree gained a build failure so I used the version from next-20161020. The net-next tree gained a conflict against the net tree. The staging tree gained a conflict against the net-next tree. The akpm-current tree still had its

Re: [PATCH v2] prctl: remove one-shot limitation for changing exe link

2016-10-20 Thread Stanislav Kinsburskiy
Gentlemen, ping. Let's decide something, how to get rid of this strange solution. It doesn't provide the security it was aimed to, looks ugly and obfuscates the user of the feature. It looks like it can be just thrown away. But if not, please, advice, what should be changed to make is safe a

Re: [PATCH] m32r: add simple dma

2016-10-20 Thread Andrew Morton
On Sat, 8 Oct 2016 23:23:18 +0530 Sudip Mukherjee wrote: > Some builds of m32r were failing as it tried to build few drivers which > needed dma but m32r is not having dma support. Objections were raised > when it was tried to make those drivers depend on HAS_DMA. Huh. What were these objectio

[PATCH net] net: remove MTU limits on a few ether_setup callers

2016-10-20 Thread Jarod Wilson
These few drivers call ether_setup(), but have no ndo_change_mtu, and thus were overlooked for changes to MTU range checking behavior. They previously had no range checks, so for feature-parity, set their min_mtu to 0 and max_mtu to ETH_MAX_MTU (65535), instead of the 68 and 1500 inherited from the

Re: [PATCH v2 1/2] watchdog: Introduce arch_watchdog_nmi_enable and arch_watchdog_nmi_disable

2016-10-20 Thread Andrew Morton
On Thu, 20 Oct 2016 12:14:14 -0400 Don Zickus wrote: > > > -static int watchdog_nmi_enable(unsigned int cpu) { return 0; } > > > -static void watchdog_nmi_disable(unsigned int cpu) { return; } > > > +/* > > > + * These two functions are mostly architecture specific > > > + * defining them as weak

Re: [PATCH 1/4] kconfig: introduce the "imply" keyword

2016-10-20 Thread Nicolas Pitre
On Thu, 20 Oct 2016, Nicolas Pitre wrote: > On Thu, 20 Oct 2016, Edward Cree wrote: > > > I'm interpreting "imply" as being more a way of saying "if you want FOO you > > probably want BAZ as well". But maybe that should be yet another new > > keyword if it's so different from what you want "impl

Re: [PATCH 2/4] iio: dpot-dac: DAC driver based on a digital potentiometer

2016-10-20 Thread Peter Rosin
On 2016-10-20 16:08, Peter Meerwald-Stadler wrote: + u32 max_ohms; +}; + +static const struct iio_chan_spec dpot_dac_iio_channel = { + .type = IIO_VOLTAGE, + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) + | BIT(IIO_CHAN_INFO_SCALE), +

Re: [PATCH v9 10/12] vfio: Add function to get device_api string from vfio_device_info.flags

2016-10-20 Thread Alex Williamson
On Fri, 21 Oct 2016 08:30:53 +0530 Kirti Wankhede wrote: > On 10/21/2016 2:52 AM, Alex Williamson wrote: > > On Fri, 21 Oct 2016 02:44:37 +0530 > > Kirti Wankhede wrote: > > > ... > > >> > >> +extern const char *vfio_device_api_string(u32 flags); > >> + > >> struct pci_dev

Re: [PATCH] net: l2tp_eth: fix max_mtu

2016-10-20 Thread Jarod Wilson
On Thu, Oct 20, 2016 at 09:19:29PM +, Asbjoern Sloth Toennesen wrote: > On Thu, 20 Oct 2016 20:08:26 + (UTC), a...@asbjorn.biz wrote: > > diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c > > index 965f7e3..ba82dcc 100644 > > --- a/net/l2tp/l2tp_eth.c > > +++ b/net/l2tp/l2tp_eth.c > >

Re: [PATCH] mm, compaction: fix NR_ISOLATED_* stats for pfn based migration

2016-10-20 Thread Andrew Morton
On Wed, 19 Oct 2016 10:02:40 +0200 Michal Hocko wrote: > Since bda807d44454 ("mm: migrate: support non-lru movable page > migration") isolate_migratepages_block) can isolate !PageLRU pages which > would acct_isolated account as NR_ISOLATED_*. Accounting these non-lru > pages NR_ISOLATED_{ANON,FIL

Re: [PATCH] drm/sun4i: Add a few formats

2016-10-20 Thread Chen-Yu Tsai
On Tue, Oct 18, 2016 at 4:46 PM, Maxime Ripard wrote: > The planes can do more than what was previously exposed. Add support for > them. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/sun4i_backend.c | 20 > drivers/gpu/drm/sun4i/sun4i_layer.c | 6 ++ >

Re: [PATCH] crypto: cmac - fix alignment of 'consts'

2016-10-20 Thread Herbert Xu
On Mon, Oct 10, 2016 at 10:15:15AM -0700, Eric Biggers wrote: > The per-transform 'consts' array is accessed as __be64 in > crypto_cmac_digest_setkey() but was only guaranteed to be aligned to > __alignof__(long). Fix this by aligning it to __alignof__(__be64). > > Signed-off-by: Eric Biggers P

Re: [PATCH] crypto: cmac - return -EINVAL if block size is unsupported

2016-10-20 Thread Herbert Xu
On Mon, Oct 10, 2016 at 10:15:14AM -0700, Eric Biggers wrote: > cmac_create() previously returned 0 if a cipher with a block size other > than 8 or 16 bytes was specified. It should return -EINVAL instead. > Granted, this doesn't actually change any behavior because cryptomgr > currently ignores a

[PATCH v2 1/1] usb: xhci: clean up error_bitmask usage

2016-10-20 Thread Lu Baolu
In xhci_handle_event(), when errors are detected, driver always sets a bit in error_bitmask (one member of the xhci private driver data). That means users have to retrieve and decode the value of error_bitmask in xhci private driver data if they want to know whether those erros ever happened in xhc

Re: [Intel-gfx] linux-next: Tree for Oct 20 (gpu/drm/i915)

2016-10-20 Thread Zhenyu Wang
On 2016.10.20 21:25:03 +0300, Jani Nikula wrote: > On Thu, 20 Oct 2016, Daniel Vetter wrote: > > On Thu, Oct 20, 2016 at 7:37 PM, Randy Dunlap wrote: > >> On 10/19/16 20:20, Stephen Rothwell wrote: > >>> Hi all, > >>> > >>> Changes since 20161019: > >>> > >> > >> on i386: when CONFIG_ACPI is not

Re: [PATCH v2 1/1] crypto: atmel-aes: add support to the XTS mode

2016-10-20 Thread Herbert Xu
On Mon, Oct 03, 2016 at 02:33:16PM +0200, Cyrille Pitchen wrote: > This patch adds the xts(aes) algorithm, which is supported from > hardware version 0x500 and above (sama5d2x). > > Signed-off-by: Cyrille Pitchen Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.a

Re: [PATCH] net: skip genenerating uevents for network namespaces that are exiting

2016-10-20 Thread Cong Wang
On Thu, Oct 20, 2016 at 7:46 PM, Andrei Vagin wrote: > No one can see these events, because a network namespace can not be > destroyed, if it has sockets. > Are you sure? kobject_uevent_env() seems sending uevents to all network namespaces.

Re: [PATCH 1/1] crypto: atmel-aes: fix compiler error when VERBOSE_DEBUG is defined

2016-10-20 Thread Herbert Xu
On Thu, Sep 29, 2016 at 06:46:57PM +0200, Cyrille Pitchen wrote: > This patch fixes a compiler error when VERBOSE_DEBUG is defined. Indeed, > in atmel_aes_write(), the 3rd argument of atmel_aes_reg_name() was > missing. > > Signed-off-by: Cyrille Pitchen > Reported-by: Levent Demir Patch applie

Re: [PATCH 0/6] ARM: sun5i: chip: Misc improvements

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:48 PM, Maxime Ripard wrote: > Hi, > > This is a bunch of patches I gathered for the CHIP, that enables a few > things, like the WiFi regulators (and its associated power sequence), a few > optional buses, etc. FYI this series makes more sense if you mention the Pocket CH

Re: [PATCH 2/2 v2] perf bench futex: add NUMA support

2016-10-20 Thread Davidlohr Bueso
On Mon, 17 Oct 2016, Sebastian Andrzej Siewior wrote: +#ifdef HAVE_LIBNUMA_SUPPORT +#include +#endif In futex.h +static int numa_node = -1; In futex.h (perhaps rename to futexbench_numa_node?) +#ifndef HAVE_LIBNUMA_SUPPORT +static int numa_run_on_node(int node __maybe_unused) { return 0

Re: [PATCH V3 1/3] ACPI, PCI IRQ: add PCI_USING penalty for ISA interrupts

2016-10-20 Thread Sinan Kaya
On 10/20/2016 7:41 PM, Bjorn Helgaas wrote: > On Thu, Oct 20, 2016 at 01:01:04PM -0700, Sinan Kaya wrote: >> On 10/19/2016 3:44 PM, Bjorn Helgaas wrote: > >>> - Maintain a mapping of (IRQ, penalty). Initially all penalties are >>> zero. This is for *all* IRQs, not just ISA ones. This coul

Re: [lkp] [x86/acpi] dc6db24d24: BUG: unable to handle kernel paging request at 0000116007090008

2016-10-20 Thread Ye Xiaolong
On 10/20, Dou Liyang wrote: >Hi xiaolong, > >Thank you very much for report. > >I was just investigating the related problem in another patches. > > >At 10/20/2016 09:16 AM, kernel test robot wrote: >> >>FYI, we noticed the following commit: >> >>https://git.kernel.org/pub/scm/linux/kernel/git/torv

Re: [PATCH V4 3/3] Revert "ACPI, PCI, IRQ: separate ISA penalty calculation"

2016-10-20 Thread Sinan Kaya
On 10/20/2016 7:31 PM, Bjorn Helgaas wrote: >> Let's try to simplify the code one more time to share code. > I'm sort of OK with this, but it's not exactly a revert of the above > (the commits you mention don't check "link->irq.initialized == 1". I can split the initialized bit. If I remove it fro

Re: [PATCH 2/6] ARM: sun5i: chip: add a node for the w1 gpio controller

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:48 PM, Maxime Ripard wrote: > From: Antoine Tenart > > The CHIP uses a 1-Wire bus to discover the DIPs. Enable the bus in the DT. > > Signed-off-by: Antoine Tenart Acked-by: Chen-Yu Tsai

Re: [PATCH v9 10/12] vfio: Add function to get device_api string from vfio_device_info.flags

2016-10-20 Thread Kirti Wankhede
On 10/21/2016 2:52 AM, Alex Williamson wrote: > On Fri, 21 Oct 2016 02:44:37 +0530 > Kirti Wankhede wrote: > ... >> >> +extern const char *vfio_device_api_string(u32 flags); >> + >> struct pci_dev; >> #ifdef CONFIG_EEH >> extern void vfio_spapr_pci_eeh_open(struct

Re: [PATCH 5/6] ARM: sun5i: Add RGB 565 LCD pins

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:49 PM, Maxime Ripard wrote: > Some boards use the LCD in RGB565. Enable the pin muxing option. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH v2] mmc: sunxi: Prevent against null dereference for vmmc

2016-10-20 Thread Chen-Yu Tsai
On Wed, Oct 19, 2016 at 9:33 PM, Maxime Ripard wrote: > VMMC is an optional regulator, which means that mmc_regulator_get_supply > will only return an error in case of a deferred probe, but not when the > regulator is not set in the DT. > > However, the sunxi driver assumes that VMMC is always the

Re: [PATCH 1/6] ARM: sun5i: chip: Enable Wi-Fi SDIO chip

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:48 PM, Maxime Ripard wrote: > The WiFi chip is powered through a GPIO and two regulators in parallel. > Since that case is not supported yet, just set them as always on before we > rework the regulator framework to deal with those. > > Signed-off-by: Maxime Ripard Acked

Re: [PATCH 3/6] ARM: sun5i: Rename A10s pins

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:49 PM, Maxime Ripard wrote: > The SPI2 pins on the sun5i PB bank are only available on the A10s. Rename > the A10s only bank so that it doesn't confuse people on the other SoCs > whose indexing would start at b. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

Re: [PATCH 6/6] ARM: sun5i: chip: Add optional buses

2016-10-20 Thread Chen-Yu Tsai
On Mon, Oct 17, 2016 at 7:49 PM, Maxime Ripard wrote: > The I2C1 and SPI2 buses are exposed on the CHIP headers, and are not > explicitly dedicated to anything. > > Add them to the DTS with the muxing already set, but keep them disabled. > > Signed-off-by: Maxime Ripard Acked-by: Chen-Yu Tsai

[PATCH v6 05/10] powerpc: ima: Send the kexec buffer to the next kernel

2016-10-20 Thread Thiago Jung Bauermann
The IMA kexec buffer allows the currently running kernel to pass the measurement list via a kexec segment to the kernel that will be kexec'd. This is the architecture-specific part of setting up the IMA kexec buffer for the next kernel. It will be used in the next patch. Changelog v5: - New patch

[PATCH] net: skip genenerating uevents for network namespaces that are exiting

2016-10-20 Thread Andrei Vagin
No one can see these events, because a network namespace can not be destroyed, if it has sockets. My experiments shows that net namespaces are destroyed more 30% faster with this optimization. Here is a perf output for destroying network namespaces without this patch. - 94.76% 0.02% kwork

[PATCH v6 06/10] ima: on soft reboot, save the measurement list

2016-10-20 Thread Thiago Jung Bauermann
From: Mimi Zohar The TPM PCRs are only reset on a hard reboot. In order to validate a TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list of the running kernel must be saved and restored on boot. This patch uses the kexec buffer passing mechanism to pass the serialized IMA

  1   2   3   4   5   6   7   8   9   10   >