[ANNOUNCE] 4.1.27-rt31

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.1.27-rt31 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.1-rt Head SHA1: 19f31cf0a5e2c6c52d7b0ca781121d774a103041 Or to build 4.1.27-rt31 directl

[ANNOUNCE] 4.4.12-rt20

2016-07-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.4.12-rt20 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.4-rt Head SHA1: b4059f165a21ace3e150cf8e14752bb05f27137b Or to build 4.4.12-rt20 directl

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Jan Kara
On Thu 14-07-16 16:47:11, Rafael J. Wysocki wrote: > On Thursday, July 14, 2016 04:39:39 PM Jan Kara wrote: > > On Thu 14-07-16 16:33:38, Rafael J. Wysocki wrote: > > > On Thursday, July 14, 2016 04:12:16 PM Jan Kara wrote: > > > > On Wed 13-07-16 14:45:07, Sergey Senozhatsky wrote: > > > > > Cc Pe

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: [...] > Hi Lorenzo, > > I missed something in my device tree now I corrected it. > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 0x0001 > //io You have not missed anything, you changed the PCI bu

Re: [PATCH v3] locking/pvqspinlock: restore/set vcpu_hashed state after failing adaptive locking spinning

2016-07-14 Thread Waiman Long
On 07/14/2016 07:39 AM, Wanpeng Li wrote: From: Wanpeng Li When the lock holder vCPU is racing with the queue head: CPU 0 (lock holder)CPU 1 (queue head) ==== spin_lock(); spin_lock(); pv_kick_node():pv_wait_head_or_lock

RE: [PATCH v3 5/8] thunderbolt: Communication with the ICM (firmware)

2016-07-14 Thread Levy, Amir (Jer)
Hi Tomas, Thanks for your comments. On Thu, Jul 14 2016, 03:44 PM, Winkler, Tomas wrote: > > +/* NHI genetlink commands */ > > +enum { > > + NHI_CMD_UNSPEC, > > + NHI_CMD_SUBSCRIBE, > > + NHI_CMD_UNSUBSCRIBE, > > + NHI_CMD_QUERY_INFORMATION, > > + NHI_CMD_MSG_TO_ICM, > > + NHI_CMD_MSG_

Re: [PATCH 4/4] x86: use pte_none() to test for empty PTE

2016-07-14 Thread David Vrabel
On 14/07/16 15:24, Dave Hansen wrote: > On 07/14/2016 06:47 AM, Vlastimil Babka wrote: >> So, this might be just because I know next to nothing about (para)virt, >> but... >> >> in arch/x86/include/asm/paravirt.h, pte_val is implemented via some >> pvops, which suggests that obtaining a pte value i

Re: [PATCH v4 1/4] drm/rockchip: vop: export line flag function

2016-07-14 Thread Sean Paul
On Thu, Jul 14, 2016 at 12:15:44PM +0800, Yakir Yang wrote: > VOP have integrated a hardware counter which indicate the exact display > line that vop is scanning. And if we're interested in a specific line, > we can set the line number to vop line_flag register, and then vop would > generate a line

Re: [PATCH 2/4] mm: vmstat: account per-zone stalls and pages skipped during reclaim -fix

2016-07-14 Thread Vlastimil Babka
On 07/13/2016 12:00 PM, Mel Gorman wrote: As pointed out by Johannes -- the PG prefix seems to stand for page, and all stat names that contain it represent some per-page event. PGSTALL is not a page event. This patch renames it. This is a fix for the mmotm patch mm-vmstat-account-per-zone-stalls

Re: [RFC 3/3] watchdog: introduce CONFIG_WATCHDOG_OPEN_DEADLINE

2016-07-14 Thread Guenter Roeck
On 07/14/2016 02:16 AM, Rasmus Villemoes wrote: The watchdog framework takes care of feeding a hardware watchdog until userspace opens /dev/watchdogN. If that never happens for some reason (buggy init script, corrupt root filesystem or whatnot) but the kernel itself is fine, the machine stays up

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Rafael J. Wysocki
On Thursday, July 14, 2016 04:39:39 PM Jan Kara wrote: > On Thu 14-07-16 16:33:38, Rafael J. Wysocki wrote: > > On Thursday, July 14, 2016 04:12:16 PM Jan Kara wrote: > > > On Wed 13-07-16 14:45:07, Sergey Senozhatsky wrote: > > > > Cc Petr Mladek. > > > > > > > > On (07/12/16 16:19), Viresh Kumar

Re: [PATCH v2 1/7] lib/dlock-list: Distributed and lock-protected lists

2016-07-14 Thread Jan Kara
On Thu 14-07-16 07:50:43, Tejun Heo wrote: > > > > +void dlock_list_add(struct dlock_list_node *node, struct > > > > dlock_list_head *head) > > > > +{ > > > > + struct dlock_list_head *myhead; > > > > + > > > > + /* > > > > +* Disable preemption to make sure that CPU won't gets

[PATCH v2] media: s5p-mfc remove unnecessary error messages

2016-07-14 Thread Shuah Khan
Removed unnecessary error message as appropriate error code is returned. Changed error message into a debug. Signed-off-by: Shuah Khan --- Changes since v1: - Changed EBUSY error message to a debug message. drivers/media/platform/s5p-mfc/s5p_mfc.c | 3 +-- 1 file changed, 1 insertion(+), 2 del

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Jan Kara
On Thu 14-07-16 16:33:38, Rafael J. Wysocki wrote: > On Thursday, July 14, 2016 04:12:16 PM Jan Kara wrote: > > On Wed 13-07-16 14:45:07, Sergey Senozhatsky wrote: > > > Cc Petr Mladek. > > > > > > On (07/12/16 16:19), Viresh Kumar wrote: > > > [..] > > > > Okay, we have tracked this BUG and its r

Re: [PATCH 0/2 v3] Add pl031 RTC support for Hi6220

2016-07-14 Thread Arnd Bergmann
On Tuesday, July 12, 2016 11:18:39 AM CEST Michael Turquette wrote: > Quoting Arnd Bergmann (2016-07-12 01:51:36) > > On Monday, July 11, 2016 3:00:13 PM CEST Michael Turquette wrote: > > > Quoting Arnd Bergmann (2016-07-11 13:21:17) > > > > On Thursday, July 7, 2016 7:10:30 PM CEST Michael Turquet

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Sergey Senozhatsky
Hello Jan, On (07/14/16 16:12), Jan Kara wrote: [..] > > *** a printk() call from here will kill the system. either it will > > recurse printk(), or spin forever in 'nested' printk() on one of > > the already taken spin locks. [..] > And with sync printk the above deadlock doesn't trigger only by

Re: System freezes after OOM

2016-07-14 Thread Mikulas Patocka
On Thu, 14 Jul 2016, Michal Hocko wrote: > On Wed 13-07-16 11:02:15, Mikulas Patocka wrote: > > > diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c > > > index 4f3cb3554944..0b806810efab 100644 > > > --- a/drivers/md/dm-crypt.c > > > +++ b/drivers/md/dm-crypt.c > > > @@ -1392,11 +1392,

Re: [PATCH 1/9] security, overlayfs: provide copy up security hook for unioned files

2016-07-14 Thread Stephen Smalley
On 07/13/2016 11:13 AM, Vivek Goyal wrote: > Updated patch as per Stephen's feedback. > > Provide a security hook to label new file correctly when a file is copied > up from lower layer to upper layer of a overlay/union mount. > > This hook can prepare a new set of creds which are suitable for ne

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Rafael J. Wysocki
On Thursday, July 14, 2016 04:12:16 PM Jan Kara wrote: > On Wed 13-07-16 14:45:07, Sergey Senozhatsky wrote: > > Cc Petr Mladek. > > > > On (07/12/16 16:19), Viresh Kumar wrote: > > [..] > > > Okay, we have tracked this BUG and its really interesting. > > > > good find! > > > > > I hacked the pl

Re: [PATCH 6/9] security, overlayfs: Provide hook to correctly label newly created files

2016-07-14 Thread Stephen Smalley
On 07/13/2016 10:44 AM, Vivek Goyal wrote: > During a new file creation we need to make sure new file is created with the > right label. New file is created in upper/ so effectively file should get > label as if task had created file in upper/. > > We switched to mounter's creds for actual file cr

Re: [PATCH 4/4] x86: use pte_none() to test for empty PTE

2016-07-14 Thread Dave Hansen
On 07/14/2016 06:47 AM, Vlastimil Babka wrote: > So, this might be just because I know next to nothing about (para)virt, > but... > > in arch/x86/include/asm/paravirt.h, pte_val is implemented via some > pvops, which suggests that obtaining a pte value is different than just > reading it from memo

Re: [PATCH] qla2xxx: setup data needed in ISR before setting up the ISR

2016-07-14 Thread Himanshu Madhani
On 7/13/16, 9:28 PM, "Martin K. Petersen" wrote: >> "Johannes" == Johannes Thumshirn writes: > >Johannes> qla2xxx first calls request_irq() and then does the setup of >Johannes> the queue entry data needed in the interrupt handlers in when >Johannes> using MSI-X. This could lead to a NULL

Re: [PATCH 3/9] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-14 Thread Stephen Smalley
On 07/13/2016 10:44 AM, Vivek Goyal wrote: > Provide a security hook which is called when xattrs of a file are being > copied up. This hook is called once for each xattr and LSM can return > 0 if the security module wants the xattr to be copied up, 1 if the > security module wants the xattr to be d

Re: [RFC PATCH v3] net: sched: convert qdisc linked list to hashtable

2016-07-14 Thread Jiri Kosina
[ added CCs ] On Tue, 12 Jul 2016, kbuild test robot wrote: > Hi, > > [auto build test ERROR on net/master] > [also build test ERROR on v4.7-rc7 next-20160711] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Thu, Jul 14, 2016 at 03:18:09PM +0200, Peter Zijlstra wrote: > On Wed, Jul 13, 2016 at 10:51:02PM +0200, Peter Zijlstra wrote: > > So, IIRC, the trade-off is a full memory barrier in read_lock and > > read_unlock() vs sync_sched() in write. > > > > Full memory barriers are expensive and while t

Re: [Query] Preemption (hogging) of the work handler

2016-07-14 Thread Jan Kara
On Wed 13-07-16 14:45:07, Sergey Senozhatsky wrote: > Cc Petr Mladek. > > On (07/12/16 16:19), Viresh Kumar wrote: > [..] > > Okay, we have tracked this BUG and its really interesting. > > good find! > > > I hacked the platform's serial driver to implement a putchar() routine > > that simply wri

Re: [PATCH] usb: ehci-platform: use helper variables in probe function

2016-07-14 Thread Alan Stern
On Wed, 13 Jul 2016, Rafał Miłecki wrote: > Probing function was using &dev->dev and dev->dev.of_node over 20 times > so I believe it made sense to use helper variables for both of them. > To avoid some uncommon variable name for struct device I first replaced > existing dev variable with pdev. >

Re: [v5 PATCH 5/5] drm/rockchip: cdn-dp: add cdn DP support for rk3399

2016-07-14 Thread Sean Paul
On Wed, Jul 13, 2016 at 8:08 PM, Chris Zhong wrote: > Hi Sean > > Thanks for your detailed review. I'm working to modify most of code > according to comment. > And there is reply for some comment > > On 07/13/2016 09:59 PM, Sean Paul wrote: >> >> On Tue, Jul 12, 2016 at 8:09 AM, Chris Zhong wrote

Re: [GIT PULL] STi late updates for v4.8

2016-07-14 Thread Arnd Bergmann
On Tuesday, July 12, 2016 4:05:41 PM CEST Patrice Chotard wrote: > Highlights: > --- > - Add STi DT critical clocks declaration > - Remove SPI hack wich has dependecy with critical clocks > > These 2 STi DT patches and SPI hack MUST be applied after patches > contained into Stephen Boyd's

Re: [GIT PULL 4/4] arm64: defconfig: Stuff for exynos for v4.8, last round

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 6:41:18 PM CEST Krzysztof Kozlowski wrote: > Samsung defconfig updates for ARM64 - enable drivers for > Exynos7 and Exynos5433 based boards: > 1. S2MPS clock driver, > 2. SoC: RTC, SPI, watchdog, EHCI, OHCI, DWC3, ADC and PWM, > 3. Enable Samsung SoC sound. > Merged into

[PATCH] radix-tree: fix radix_tree_iter_retry() for tagged iterators.

2016-07-14 Thread Andrey Ryabinin
radix_tree_iter_retry() resets slot to NULL, but it doesn't reset tags. Then NULL slot and non-zero iter.tags passed to radix_tree_next_slot() leading to crash: RIP: [< inline >] radix_tree_next_slot include/linux/radix-tree.h:473 [] find_get_pages_tag+0x334/0x930 mm/filemap.c:1452

Re: [PATCH 4/4] x86: use pte_none() to test for empty PTE

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 02:19 AM, Dave Hansen wrote: From: Dave Hansen The page table manipulation code seems to have grown a couple of sites that are looking for empty PTEs. Just in case one of these entries got a stray bit set, use pte_none() instead of checking for a zero pte_val(). The use pte_same

Re: [PATCH v2 02/10] irqchip: add irqchip driver for nuc900

2016-07-14 Thread Jason Cooper
Hi Wan Zongshun, On Thu, Jul 14, 2016 at 11:36:53AM +0800, Wan Zongshun wrote: > On 2016年07月14日 04:09, Jason Cooper wrote: > >On Sun, Jul 10, 2016 at 03:27:22PM +0800, Wan Zongshun wrote: > >>This patch is to add irqchip driver support for nuc900 plat, > >>current this driver only supports nuc970

Re: [PART2 PATCH v4 10/11] svm: Introduce AMD IOMMU avic_ga_log_notifier

2016-07-14 Thread Radim Krčmář
2016-07-14 16:43+0700, Suravee Suthikulpanit: > On 7/13/16 21:29, Radim Krčmář wrote: >> 2016-07-13 08:20-0500, Suravee Suthikulpanit: >> > >diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c >> > >+ hash_for_each_possible(svm_vm_data_hash, ka, hnode, vm_id) { >> > >+ struct kvm *kvm = co

Re: [PART2 PATCH v4 07/11] iommu/amd: Introduce amd_iommu_update_ga()

2016-07-14 Thread Radim Krčmář
2016-07-14 16:33+0700, Suravee Suthikulpanit: > On 7/14/16 16:13, Suravee Suthikulpanit wrote: >> > >unsigned long flags; >> > > +struct amd_iommu *iommu; >> > > + >> > > +if (!AMD_IOMMU_GUEST_IR_VAPIC(amd_iommu_guest_ir)) >> > > +return 0; >> > > + >> > > +for_each_iommu(io

Re: [PATCH v2 07/13] sched/fair: Let asymmetric cpu configurations balance at wake-up

2016-07-14 Thread Vincent Guittot
On 13 July 2016 at 18:14, Morten Rasmussen wrote: > On Wed, Jul 13, 2016 at 02:56:41PM +0200, Vincent Guittot wrote: >> On 22 June 2016 at 19:03, Morten Rasmussen wrote: >> > Currently, SD_WAKE_AFFINE always takes priority over wakeup balancing if >> > SD_BALANCE_WAKE is set on the sched_domains.

Re: [GIT PULL 3/4] arm64: dts: exynos: Minor fix for v4.8, last round

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 6:41:17 PM CEST Krzysztof Kozlowski wrote: > Samsung DeviceTree changes for ARM64 for v4.8: > 1. Adjust the voltage of CPU buck regulator so scaling could work. > > Pulled into next/dt64, thanks! Arnd

Re: [PATCH v2 00/15] net: thunderx: Add support for 81xx and 83xx

2016-07-14 Thread Sunil Kovvuri
Hi David, I have found that I missed some piece of code in a patch and also discovered a corner case issue while further testing. Please ignore this patch set, will submit another version soon. Thanks, Sunil. On Wed, Jul 13, 2016 at 11:29 AM, wrote: > From: Sunil Goutham > > This patch serie

Re: [GIT PULL 2/4] ARM: exynos: Stuff for v4.8, last round

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 6:41:16 PM CEST Krzysztof Kozlowski wrote: > Samsung mach/soc update for v4.8, part 3: > Just cleanup - fix Sparse warning and constify passed iomem address. > Pulled into next/soc, thanks! Arnd

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-14 Thread Arjan van de Ven
On 7/14/2016 5:48 AM, Serge E. Hallyn wrote: Can someone give a detailed explanation of what you could do with the new timerslack feature and compare it to what you can do with sys_nice? what you can do with the timerslack feature is add upto 4 seconds of extra time/delay on top of each selec

Re: [PATCH v7 7/9] acpi/arm64: Add memory-mapped timer support in GTDT driver

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 01:53:20AM +0800, fu@linaro.org wrote: > From: Fu Wei > > This driver adds support for parsing memory-mapped timer in GTDT: > provide a kernel APIs to parse GT Block Structure in GTDT, > export all the info by filling the struct which provided > by parameter(pointer of

Re: [PATCH v2] dmaengine: zynqmp_dma: Fix static checker warning

2016-07-14 Thread Dan Carpenter
Looks good. Thanks! regards, dan carpenter

Re: [PART2 PATCH v4 07/11] iommu/amd: Introduce amd_iommu_update_ga()

2016-07-14 Thread Radim Krčmář
2016-07-14 16:13+0700, Suravee Suthikulpanit: > On 7/13/16 21:14, Radim Krčmář wrote: >> 2016-07-13 08:20-0500, Suravee Suthikulpanit: >> > diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c >> > @@ -4461,4 +4461,69 @@ int amd_iommu_create_irq_domain(struct amd_iommu >> > *iommu) >

Re: [PATCH 34/34] mm, vmstat: remove zone and node double accounting by approximating retries

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: The number of LRU pages, dirty pages and writeback pages must be accounted for on both zones and nodes because of the reclaim retry logic, compaction retry logic and highmem calculations all depending on per-zone stats. Many lowmem allocations are immune

Re: [PATCH] media: s5p-mfc remove unnecessary error messages

2016-07-14 Thread Javier Martinez Canillas
Hello Shuah, On 07/14/2016 09:35 AM, Shuah Khan wrote: > On 07/14/2016 06:46 AM, Javier Martinez Canillas wrote: >> Hello Shuah, >> >> On 07/12/2016 08:33 PM, Shuah Khan wrote: >>> Removing unnecessary error messages as appropriate error code is returned. >>> >>> Signed-off-by: Shuah Khan >>> ---

Re: [PATCH] media: s5p-mfc remove unnecessary error messages

2016-07-14 Thread Shuah Khan
On 07/14/2016 06:46 AM, Javier Martinez Canillas wrote: > Hello Shuah, > > On 07/12/2016 08:33 PM, Shuah Khan wrote: >> Removing unnecessary error messages as appropriate error code is returned. >> >> Signed-off-by: Shuah Khan >> --- >> drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 -- >> 1 file

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> > Subject: Re: Purpose of pci_remap_iospace > > > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, &res, &iobase); > > > if (err) { > > > pr_err("Getting bridge resources fa

[PATCH v2] dmaengine: zynqmp_dma: Fix static checker warning

2016-07-14 Thread Kedareswara rao Appana
This patch fixes the below static checker warning drivers/dma/xilinx/zynqmp_dma.c:973 zynqmp_dma_chan_probe() warn: was && intended here instead of ||? Reported-by: Dan Carpenter Signed-off-by: Kedareswara rao Appana --- Changes for v2: ---> Return EINVAL instead of err as suggested by D

Re: [PATCH v2] iommu/arm-smmu-v3: limit use of 2-level stream tables

2016-07-14 Thread Will Deacon
On Tue, Jul 12, 2016 at 02:19:20PM -0400, Nate Watterson wrote: > In the current arm-smmu-v3 driver, all smmus that support 2-level > stream tables are being forced to use them. This is suboptimal for > smmus that support fewer stream id bits than would fill in a single > second level table. This p

Re: [PATCH RFCv1 0/1] Update struct spi_transfer to specify 8x bit transfers

2016-07-14 Thread Mark Brown
On Wed, Jul 13, 2016 at 01:34:36PM -0600, Girish Mahadevan wrote: > We’re working on a driver for a Quad SPI controller [using up to 4 data > lines] which can use dual-data-sampling to implement 8-bit transfers. To > allow a slave driver to specify the 8-bit transfer we'd like to make this > cha

Re: [PATCH v4 5/5] dma-buf/sync_file: only enable fence signalling on poll()

2016-07-14 Thread John Harrison
On 12/07/2016 19:08, Gustavo Padovan wrote: ... +++ b/include/linux/sync_file.h @@ -28,6 +28,7 @@ * @name: name of sync_file. Useful for debugging * @sync_file_list: membership in global file list * @wq: wait queue for fence signaling + * @enabled:

[PATCH] mmc: dwmmc: exynos: Warn if HS400 is being used on non-Exynos5420 chipset

2016-07-14 Thread Krzysztof Kozlowski
Chipsets before Exynos5420 did not support HS400 so if MMC core tries to configure HS400 timing, this might or might not work. Warn in such cases because this is DTB misconfiguration. Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/dw_mmc-exynos.c | 6 +- 1 file changed, 5 insertion

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-14 Thread Oleg Nesterov
On 07/12, Shayan Pooya wrote: > > > Yep. Bug still not fixed in upstream. In our kernel I've plugged it with > > this: > > > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -2808,8 +2808,9 @@ asmlinkage __visible void schedule_tail(struct > > task_struct *prev) > > balance_

Re: [GIT PULL 1/4] ARM: exynos: Drivers for v4.8, last round

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 6:41:15 PM CEST Krzysztof Kozlowski wrote: > Samsung drivers/soc update for v4.8, part 3 > 1. Fix size of allocation for Exynos SROM registers (too much was allocated). > 2. Constify fix. > Pulled into next/drivers, thanks! Arnd

Re: [PATCH v2 06/13] sched: Store maximum per-cpu capacity in root domain

2016-07-14 Thread Vincent Guittot
On 13 July 2016 at 18:37, Morten Rasmussen wrote: > On Wed, Jul 13, 2016 at 02:48:24PM +0100, Dietmar Eggemann wrote: >> On 13/07/16 13:40, Vincent Guittot wrote: >> > On 22 June 2016 at 19:03, Morten Rasmussen >> > wrote: >> >> From: Dietmar Eggemann >> >> >> >> To be able to compare the capac

Re: [PATCH v8 0/4] perf: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-07-14 Thread Will Deacon
On Mon, Jul 11, 2016 at 12:05:40PM -0700, Tai Nguyen wrote: > In addition to the X-Gene ARM CPU performance monitoring unit (PMU), there > are PMU for the SoC system devices such as L3 cache(s), I/O bridge(s), > memory controller bridges and memory. These PMU devices are loosely > architected to fo

[PATCH 1/2] net: ethernet: tc35815: use phydev from struct net_device

2016-07-14 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phy in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/to

[PATCH 2/2] net: ethernet: tc35815: use phy_ethtool_{get|set}_link_ksettings

2016-07-14 Thread Philippe Reynes
There are two generics functions phy_ethtool_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/toshiba/tc35815.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff

Re: Severe performance regression w/ 4.4+ on Android due to cgroup locking changes

2016-07-14 Thread Peter Zijlstra
On Wed, Jul 13, 2016 at 10:51:02PM +0200, Peter Zijlstra wrote: > So, IIRC, the trade-off is a full memory barrier in read_lock and > read_unlock() vs sync_sched() in write. > > Full memory barriers are expensive and while the combined cost might > well exceed the cost of the sync_sched() it doesn

Re: [GIT PULL v2] STi defconfig updates for v4.8

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 10:29:44 AM CEST Patrice Chotard wrote: > warning: refname 'sti-defconfig-for-v4.8' is ambiguous. > Highlights: > --- > - Enable DRM_STI for STMicroelectronics DRM Support > - VIDEO_STI_BDISP for STMicroelectronics BDISP 2D > Pulled into next/defconfig, thanks!

Re: [PATCH] x86/reboot: Add Dell Optiplex 7450 AIO reboot quirk

2016-07-14 Thread Alex Hung
Hi Ingo, I agree with you but it can affect a lot of systems according to 163ea310b68bdde89b1ac633fbf8c0db290d3f86. Do you think we should invert 163ea310 instead? On Thu, Jul 14, 2016 at 8:58 PM, Ingo Molnar wrote: > > * Alex Hung wrote: > >> Dell Optiplex 7450 AIO works with BOOT_ACPI; howev

Re: [PATCH] PCI: xilinx: Fix return value in case of error

2016-07-14 Thread Sören Brinkmann
On Thu, 2016-07-14 at 12:10:46 +0200, Christophe JAILLET wrote: > In function 'xilinx_pcie_init_irq_domain', the pattern used to check and > return error is: > >if (!var) { > dev_err(...); > return PTR_ERR(var); >} > > So the returned value in case of error is always 0, which

Re: [PATCH v3] drm/nouveau/fb/nv50: set DMA mask before mapping scratch page

2016-07-14 Thread Ard Biesheuvel
On 7 July 2016 at 18:59, Ard Biesheuvel wrote: > The 100c08 scratch page is mapped using dma_map_page() before the TTM > layer has had a chance to set the DMA mask. This means we are still > running with the default of 32 when this code executes, and this causes > problems for platforms with no me

Re: [GIT PULL v3] STi SoC changes for v4.8

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 9:41:17 AM CEST Patrice Chotard wrote: > Highlights: > --- > - Add a dummy L2 cache's write_sec callback as in non secure mode execution, > we can't get access to L2 cache secure registers > - Cosmetics change, in case of dump_stack, update the hardware name wit

[PATCH 1/2][RFC v4] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
snapshot test mode is used to verify if the snapshot data written to the swap device can be successfully restored to the memory. It is useful to ease the debugging process on hibernation, since this mode can not only bypass the BIOSes/bootloader, but also the system re-initialization. For example:

[PATCH 2/2][RFC v4] PM / Documentation: Add description for snapshot test mode

2016-07-14 Thread Chen Yu
Introduce snapshot test mode for hibernation debugging, and update the document accordingly. Signed-off-by: Chen Yu --- Documentation/power/basic-pm-debugging.txt | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Documentation/power/basic-pm-debugging.txt b/Do

Re: [patch V2 60/67] KVM/arm/arm64/vgic-new: Convert to hotplug state machine

2016-07-14 Thread Marc Zyngier
On 13/07/16 18:17, Anna-Maria Gleixner wrote: > From: Anna-Maria Gleixner > > Install the callbacks via the state machine and let the core invoke > the callbacks on the already online CPUs. > > Signed-off-by: Anna-Maria Gleixner > Cc: Andre Przywara > Cc: Christoffer Dall > Cc: Eric Auger >

[PATCH 0/2][RFC v4] PM / hibernate: Introduce snapshot test mode for hibernation

2016-07-14 Thread Chen Yu
Sometimes we need to debug during hibernation resume, thus it would be convenient for the users to verify if the snapshot stored in the disk can be successfully restored, without BIOSes or system re-initialization involved in. This patch has introduced a snapshot pm_test mode for this purpose. Che

Re: [PATCH 0/8] x86: audit and remove needless module.h includes

2016-07-14 Thread Ingo Molnar
* Paul Gortmaker wrote: > To that end, I have done allmodconfig, allyesconfig and allnoconfig > for both 32 bit and 64 bit x86 with these changes on the linux-next > from today, which presumably has an up to date copy of tip in it. It does, still I get this on allnoconfig with your patches appl

Re: [PATCH] mtd: nand: omap2: add missing braces

2016-07-14 Thread Teresa Remmet
Hello, Am Donnerstag, den 14.07.2016, 11:53 +0200 schrieb Arnd Bergmann: > A bug fix just introduced incorrect behavior in the omap2 nand driver, as > found by gcc-6.1: > > drivers/mtd/nand/omap2.c: In function 'omap_get_dt_info': > drivers/mtd/nand/omap2.c:1658:2: error: this 'if' clause does no

Re: [patch 1/2] drivers/virt: fix the error handling in ioctl_dtprop()

2016-07-14 Thread Ingo Molnar
* Dan Carpenter wrote: > If strndup_user() user fails then it returns an error pointer and we > pass that to kfree() which causes an oops. Hm, in addition to this fix wouldn't it be better to not crash if kfree() gets passed an error pointer? Would that have changed the pattern of this particu

Re: [PATCH] x86/reboot: Add Dell Optiplex 7450 AIO reboot quirk

2016-07-14 Thread Ingo Molnar
* Alex Hung wrote: > Dell Optiplex 7450 AIO works with BOOT_ACPI; however, the quirk for > "OptiPlex 745" changes its boot method to BOOT_BIOS and causes 7450 AIO > hangs when rebooting; as a result, 7450 AIO is appended to overwrite > BOOT_BIOS by BOOT_ACPI in order not to break the original 74

Re: [PATCH 33/34] mm, vmstat: print node-based stats in zoneinfo file

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: There are a number of stats that were previously accessible via zoneinfo that are now invisible. While it is possible to create a new file for the node stats, this may be missed by users. Instead this patch prints the stats under the first populated zone

Re: [RFC PATCH 4/4] KVM: vmx: add support for emulating UMIP

2016-07-14 Thread Paolo Bonzini
On 14/07/2016 14:36, Radim Krčmář wrote: >>> And we could then return true in vmx_umip_emulated() when >>> boot_cpu_has(X86_FEATURE_UMIP). >>> (Just for self-documentation, because occurrence of X86_FEATURE_UMIP is >>> most likely a subset of SECONDARY_EXEC_DESC.) >> >> This is not necessary bec

Re: [PATCH 27/34] mm, vmscan: Have kswapd reclaim from all zones if reclaiming and buffer_heads_over_limit

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: The buffer_heads_over_limit limit in kswapd is inconsistent with direct reclaim behaviour. It may force an an attempt to reclaim from all zones and then not reclaim at all because higher zones were balanced than required by the original request. This pat

Re: System freezes after OOM

2016-07-14 Thread Michal Hocko
On Wed 13-07-16 11:02:15, Mikulas Patocka wrote: > On Wed, 13 Jul 2016, Michal Hocko wrote: [...] We are discussing several topics together so let's focus on this particlar thing for now > > > The kernel 4.7-rc almost deadlocks in another way. The machine got stuck > > > and the following stackt

Re: [PATCH 26/34] mm, vmscan: avoid passing in remaining unnecessarily to prepare_kswapd_sleep

2016-07-14 Thread Vlastimil Babka
On 07/08/2016 11:35 AM, Mel Gorman wrote: As pointed out by Minchan Kim, the first call to prepare_kswapd_sleep always passes in 0 for remaining and the second call can trivially check the parameter in advance. Suggested-by: Minchan Kim Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka

Re: [PATCH] ARM: s3c64xx: avoid warning about 'struct device_node'

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 1:40:45 PM CEST Arnd Bergmann wrote: > On Monday, July 11, 2016 1:15:11 PM CEST Arnd Bergmann wrote: > > On Monday, June 27, 2016 1:33:51 PM CEST Krzysztof Kozlowski wrote: > > > On 06/27/2016 01:02 PM, Arnd Bergmann wrote: > > > > The change to simplify of_platform_populat

[PATCH] ARM: dts: exynos: Properly select eMMC HighSpeed mode

2016-07-14 Thread Krzysztof Kozlowski
Exynos5410 supports eMMC version 4.41 so HS200 is the top mode which should be configured. This is reflected in usage of "samsung,exynos5250-dw-mshc" compatible. However DTS contained also property "mmc-hs400-1_8v" which is parsed by MMC core therefore resulting in mixed configuration. MMC core

Re: [PATCH 2/2] proc: Add /proc//timerslack_ns interface

2016-07-14 Thread Serge E. Hallyn
Quoting Kees Cook (keesc...@chromium.org): > On Wed, Jul 13, 2016 at 4:47 PM, John Stultz wrote: > > On Tue, Feb 16, 2016 at 5:06 PM, John Stultz wrote: > >> This patch provides a proc/PID/timerslack_ns interface which > >> exposes a task's timerslack value in nanoseconds and allows it > >> to be

Re: [PATCH -resend] pps: do not crash when failed to register

2016-07-14 Thread Rodolfo Giometti
On 07/14/16 13:52, Jiri Slaby wrote: With this command sequence: modprobe plip modprobe pps_parport rmmod pps_parport the partport_pps modules causes this crash: === BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] parport_detach+0x1d/0x60 [pps_parport] Oop

Re: [PATCH] media: s5p-mfc remove unnecessary error messages

2016-07-14 Thread Javier Martinez Canillas
Hello Shuah, On 07/12/2016 08:33 PM, Shuah Khan wrote: > Removing unnecessary error messages as appropriate error code is returned. > > Signed-off-by: Shuah Khan > --- > drivers/media/platform/s5p-mfc/s5p_mfc.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/media/platform/s5

[PATCH 3/7] dmaengine: omap-dma: Simplify omap_dma_callback

2016-07-14 Thread Peter Ujfalusi
Flatten the indentation level of the function which gives better view on the cases we handle here. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index f7b

[PATCH 2/7] dmaengine: omap-dma: Complete the cookie first on transfer completion

2016-07-14 Thread Peter Ujfalusi
Before looking for the next descriptor to start, complete the just finished cookie. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index 7d56cd88c9a5..f7b0b0c668fb 100644

[PATCH 4/7] dmaengine: omap-dma: Dynamically allocate memory for lch_map

2016-07-14 Thread Peter Ujfalusi
On OMAP1 platforms we do not have 32 channels available. Allocate the lch_map based on the available channels. This way we are not going to have more visible channels then it is available on the platform. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 20 ++-- 1 file

[PATCH 6/7] dmaengine: omap-dma: Use pointer to omap_sg in slave_sg setup's loop

2016-07-14 Thread Peter Ujfalusi
Instead of accessing the array via index, take the pointer first and use it to set up the omap_sg struct. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index bba

RE: [PATCH v3 5/8] thunderbolt: Communication with the ICM (firmware)

2016-07-14 Thread Winkler, Tomas
> > Firmware-based (a.k.a ICM - Intel Connection Manager) controller is > used for establishing and maintaining the Thunderbolt Networking > connection. We need to be able to communicate with it. > > Signed-off-by: Amir Levy > --- > drivers/thunderbolt/Makefile |1 + > drivers/thunderb

[PATCH 0/7] dmaengine:omap-dma: Linked List transfer for slave_sg

2016-07-14 Thread Peter Ujfalusi
Hi, The following series with the final patch will add support for sDMA Linked List transfer support. Linked List is supported by sDMA in OMAP3630+ (OMAP4/5, dra7 family). If the descriptor load feature is present we can create the descriptors for each SG beforehand and let sDMA to walk them throu

Re: [PATCH] arm64: dts: Fix RTC by providing rtc_src clock

2016-07-14 Thread Arnd Bergmann
On Monday, July 11, 2016 9:34:18 AM CEST Krzysztof Kozlowski wrote: > From: Alim Akhtar > > Add RTC source clock as Exynos7 needs source (32.768KHz) clock > for RTC block. Without this currently S3C RTC driver probe is broken > on this SoC. > > Signed-off-by: Alim Akhtar > Reviewed-by: Javier M

[PATCH 7/7] dmaengine: omap-dma: Support for LinkedList transfer of slave_sg

2016-07-14 Thread Peter Ujfalusi
sDMA in OMAP3630 or newer SoC have support for LinkedList transfer. When LinkedList or Descriptor load feature is present we can create the descriptors for each and program sDMA to walk through the list of descriptors instead of the current way of sDMA stop, sDMA reconfiguration and sDMA start afte

[PATCH 1/7] dmaengine: omap-dma: Simplify omap_dma_start_sg parameter list

2016-07-14 Thread Peter Ujfalusi
We can drop the (sg)idx parameter for the omap_dma_start_sg() function and increment the sgidx inside of the same function. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/dma/omap-dma.c b/drivers/d

[PATCH 5/7] dmaengine: omap-dma: Add more debug information when freeing channel

2016-07-14 Thread Peter Ujfalusi
Print the same information the driver prints when allocating the channel resources regarding to the sDMA channel. Signed-off-by: Peter Ujfalusi --- drivers/dma/omap-dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dma/omap-dma.c b/drivers/dma/omap-dma.c index c

Re: [RFC PATCH 4/4] KVM: vmx: add support for emulating UMIP

2016-07-14 Thread Radim Krčmář
2016-07-14 10:09+0200, Paolo Bonzini: > On 13/07/2016 22:30, Radim Krčmář wrote: >> 2016-07-12 21:20+0200, Paolo Bonzini: >>> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c >>> @@ -3967,6 +3968,14 @@ static int vmx_set_cr4(struct kvm_vcpu *vcpu, >>> unsigned long cr4) >>> (to_vmx

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-14 Thread Mark Rutland
On Wed, Jul 13, 2016 at 09:57:28PM +0200, Arnd Bergmann wrote: > On Wednesday, July 13, 2016 6:58:32 PM CEST Mark Rutland wrote: > > > > > we may want to remove unnecessary devices and even add a dedicated > > > storage device for storing a core dump image. > > > > I suspect that bringing up

Re: [PATCH 25/32] x86/intel_rdt_rdtgroup.c: User interface for RDT

2016-07-14 Thread Thomas Gleixner
On Tue, 12 Jul 2016, Fenghua Yu wrote: > > +extern struct cache_domain cache_domains[MAX_CACHE_LEAVES]; > + > + Why only two extra new lines? > extern struct rdt_opts rdt_opts; > +++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c > @@ -0,0 +1,881 @@ > +/* > + * Resource Director Technology(RDT) >

Re: System freezes after OOM

2016-07-14 Thread Mikulas Patocka
On Thu, 14 Jul 2016, Tetsuo Handa wrote: > Michal Hocko wrote: > > OK, this is the part I have missed. I didn't realize that the swapout > > path, which is indeed PF_MEMALLOC, can get down to blk code which uses > > mempools. A quick code travers shows that at least > > make_request_fn = blk

[PATCH] arm64: dts: rockchip: Add basic support for orion-r68

2016-07-14 Thread Matthias Brugger
This patch adds basic support for the Tronsmart orion r86 set-top-box. Signed-off-by: Matthias Brugger --- Changes since v1: - change memory node to 2GB - change compatible and file name - add uart4 - add second led Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch/arm64/boot/dts

Re: System freezes after OOM

2016-07-14 Thread Mikulas Patocka
On Wed, 13 Jul 2016, David Rientjes wrote: > On Wed, 13 Jul 2016, Mikulas Patocka wrote: > > > What are the real problems that f9054c70d28bc214b2857cf8db8269f4f45a5e23 > > tries to fix? > > > > It prevents the whole system from livelocking due to an oom killed process > stalling forever wai

Re: xen/blkfront: Ubuntu 14.04 crashes when it is booting

2016-07-14 Thread Ken
On 2016/7/12 15:30, uvptools wrote: Please give us some suggests to deal with this problem. Thanks & best wishes. On 2016/7/12 14:58, Ouyangzhaowei (Charles) wrote: Hi all, Recently we found that a VM which runs Ubuntu 14.04 went to crash when it was booting, and the VM was run on xen-4.1.2

Re: [RFC PATCH 3/4] KVM: x86: add support for emulating UMIP

2016-07-14 Thread Radim Krčmář
2016-07-14 09:00+0200, Paolo Bonzini: > On 13/07/2016 22:03, Radim Krčmář wrote: >> 2016-07-12 21:20+0200, Paolo Bonzini: >>> Signed-off-by: Paolo Bonzini >>> --- >>> diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c >>> @@ -3738,6 +3747,10 @@ static int em_lidt(struct x86_emulate_ctxt

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