[PATCH v3 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***

2016-08-28 Thread Binoy Jayan
Hi, Thank you Steven and Daniel for reviewing v1 and providing suggestions. These set of patches [v3] capture latency events caused by interrupts and premption disabled in kernel. The patches are based on the hist trigger feature developed by Tom Zanussi. v2: https://lkml.org/lkml/2016/8/24/296

Re: [PATCH v2] ARM: dts: sun8i: enable UART1 for iNet D978 Rev2 board

2016-08-28 Thread Maxime Ripard
Hi, On Sun, Aug 28, 2016 at 08:55:21AM +0800, Icenowy Zheng wrote: > UART1 is connected to the bluetooth part of RTL8723BS WiFi/BT combo card > on iNet D978 Rev2 board. > > Enable the UART1 to make it possible to use the modified hciattach by > Realtek to drive the BT part of RTL8723BS. > > On t

[PATCH v6 1/6] xen: sync xen header

2016-08-28 Thread Juergen Gross
Import the actual version of include/xen/interface/sched.h from Xen. Signed-off-by: Juergen Gross Acked-by: David Vrabel --- include/xen/interface/sched.h | 100 ++ 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/include/xen/interface/sche

Re: [PATCH] clocksource/drivers/atmel-pit: Fix compilation error

2016-08-28 Thread Daniel Lezcano
On 08/29/2016 08:44 AM, Daniel Lezcano wrote: > The previous fix introduced a check against the ret variable which > is not defined, hence producing a compilation error: > > linux/drivers/clocksource/timer-atmel-pit.c: In function > ‘at91sam926x_pit_dt_init’: > linux/drivers/clocksource/timer-atm

[PATCH v6 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k

2016-08-28 Thread Juergen Gross
Use the smp_call_on_cpu() function to call system management mode on cpu 0. Make call secure by adding get_online_cpus() to avoid e.g. suspend resume cycles in between. Signed-off-by: Juergen Gross --- V4: add call to get_online_cpus() --- drivers/hwmon/dell-smm-hwmon.c | 36

[PATCH v6 0/6] Support calling functions on dedicated physical cpu

2016-08-28 Thread Juergen Gross
Some hardware (e.g. Dell Studio laptops) require special functions to be called on physical cpu 0 in order to avoid occasional hangs. When running as dom0 under Xen this could be achieved only via special boot parameters (vcpu pinning) limiting the hypervisor in it's scheduling decisions. This pat

[PATCH v6 2/6] virt, sched: add generic vcpu pinning support

2016-08-28 Thread Juergen Gross
Add generic virtualization support for pinning the current vcpu to a specified physical cpu. As this operation isn't performance critical (a very limited set of operations like BIOS calls and SMIs is expected to need this) just add a hypervisor specific indirection. Signed-off-by: Juergen Gross -

[PATCH v6 3/6] smp: add function to execute a function synchronously on a cpu

2016-08-28 Thread Juergen Gross
On some hardware models (e.g. Dell Studio 1555 laptop) some hardware related functions (e.g. SMIs) are to be executed on physical cpu 0 only. Instead of open coding such a functionality multiple times in the kernel add a service function for this purpose. This will enable the possibility to take sp

[PATCH v6 5/6] dcdbas: make use of smp_call_on_cpu()

2016-08-28 Thread Juergen Gross
Use smp_call_on_cpu() to raise SMI on cpu 0. Make call secure by adding get_online_cpus() to avoid e.g. suspend resume cycles in between. Signed-off-by: Juergen Gross --- V4: add call to get_online_cpus() --- drivers/firmware/dcdbas.c | 51 --- 1 file

[PATCH v6 4/6] xen: add xen_pin_vcpu() to support calling functions on a dedicated pcpu

2016-08-28 Thread Juergen Gross
Some hardware models (e.g. Dell Studio 1555 laptops) require calls to the firmware to be issued on cpu 0 only. As Dom0 might have to use these calls, add xen_pin_vcpu() to achieve this functionality. In case either the domain doesn't have the privilege to make the related hypercall or the hypervis

[PATCH] clocksource/drivers/atmel-pit: Fix compilation error

2016-08-28 Thread Daniel Lezcano
The previous fix introduced a check against the ret variable which is not defined, hence producing a compilation error: linux/drivers/clocksource/timer-atmel-pit.c: In function ‘at91sam926x_pit_dt_init’: linux/drivers/clocksource/timer-atmel-pit.c:264:2: error: ‘ret’ undeclared (first use in thi

Re: [PATCH] clk: sunxi-ng: Fix wrong reset register offsets

2016-08-28 Thread Maxime Ripard
On Sat, Aug 27, 2016 at 09:04:33PM +0200, jo...@kippendief.biz wrote: > From: Jorik Jonker > > The reset register offsets for UART*, I2C* and SCR were off by a few bytes. > > Signed-off-by: Jorik Jonker Applied, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engine

[PATCH V2] ARM: dts: imx6ul iomuxc syscon is compatible to imx6q

2016-08-28 Thread Anson Huang
The imx6ul iomuxc syscon is compatible to imx6q, so let's add compatible string 'fsl,imx6q-iomuxc-gpr' for imx6ul iomuxc syscon node. Signed-off-by: Anson Huang --- changes since V1: improve commit message. arch/arm/boot/dts/imx6ul.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

Re: [Patch v4 9/9] arm64: Update device tree for Layerscape SoCs

2016-08-28 Thread Shawn Guo
On Fri, Aug 12, 2016 at 11:13:54AM +0200, Borislav Petkov wrote: > On Tue, Aug 09, 2016 at 02:59:39PM -0700, York Sun wrote: > > Add DDR memory controller nodes to enable EDAC driver. > > > > Signed-off-by: York Sun > > > > --- > > Change log > > v4: no change > > v3: no change > > v2: no

[PATCH] thp: reduce usage of huge zero page's atomic counter

2016-08-28 Thread Aaron Lu
The global zero page is used to satisfy an anonymous read fault. If THP(Transparent HugePage) is enabled then the global huge zero page is used. The global huge zero page uses an atomic counter for reference counting and is allocated/freed dynamically according to its counter value. CPU time spen

Re: [PATCH] ARM: dts: imx6ul: set GINT to enable IOMUXC irq

2016-08-28 Thread Shawn Guo
On Wed, Aug 24, 2016 at 12:18:21AM +0800, Anson Huang wrote: > Add "fsl,imx6q-iomuxc-gpr" for IOMUXC-GPR to enable > IOMUXC irq which is required for ERR007265 software > workaround. > > Signed-off-by: Anson Huang The patch subject is confusing. It doesn't match commit log and code change. Sha

Re: [PATCH v1] i2c: designware: save the preset value of DW_IC_SDA_HOLD

2016-08-28 Thread Jarkko Nikula
On 08/28/2016 03:31 PM, Andy Shevchenko wrote: On Sat, 2016-08-27 at 15:39 +0800, Zhuo-hao Lee wrote: There are several ways to set the SDA hold time for i2c controller, including: Device Tree, built-in device properties and ACPI. However, if the SDA hold time is not specified by above method, w

Re: [PATCH v2 4/4] PM / AVS: rockchip-cpu-avs: add driver handling Rockchip cpu avs

2016-08-28 Thread Viresh Kumar
On 18-08-16, 16:52, Finlye Xiao wrote: > +static int rockchip_adjust_opp_table(struct device *cpu_dev, > + struct cpufreq_frequency_table *table, > + int volt) > +{ > + struct opp_table *opp_table; > + struct cpufreq_frequenc

Re: drm: WARNING in ioremap_wc

2016-08-28 Thread Daniel Vetter
On Sun, Aug 28, 2016 at 07:36:59PM +0200, Dmitry Vyukov wrote: > Hello, > > The following program triggers WARNING in ioremap_wc: Yup, that should also be fixed in linux-next. Probably better to not report more for 4.8-rc kernels for now ;-) If you have some time to test, you need to cherry pick

Re: [PATCH 1/1] cpufreq: pcc-cpufreq: Re-introduce deadband effect to reduce number of frequency changes

2016-08-28 Thread Viresh Kumar
On 19-08-16, 14:21, Andreas Herrmann wrote: > > Commit 6393d6a102 (cpufreq: ondemand: Eliminate the deadband effect) > introduced a performance regression for systems using pcc-cpufreq and > ondemand governor. This is measurable with different workloads. E.g. > wall-clock time for kernel compilati

[PATCH] powerpc: Use kmalloc_array() in grow()

2016-08-28 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 29 Aug 2016 07:50:33 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle s

Re: dri: WARNING in idr_remove

2016-08-28 Thread Daniel Vetter
On Sun, Aug 28, 2016 at 04:32:55PM +0200, Dmitry Vyukov wrote: > Hello, > > The following program causes a WARNING in idr_remove: Again under the assumption that you're running this with the vgem driver: linux-next has it fixed. -Daniel > > [ cut here ] > WARNING: CPU: 3

[PATCH V2 2/2] ARM: imx: enable WAIT mode hardware workaround for imx6sx

2016-08-28 Thread Anson Huang
Need to enable INT_MEM_CLK_LPM bit in CCM_CGPR for WAIT mode, without this bit set, if there is pending interrupt during ARM platform entering WAIT mode without power gating, cache data will be corrupted, this is a hardware workaround for WAIT mode and must be enabled. Signed-off-by: Anson Huang

[PATCH V2 1/2] ARM: imx: rename imx6q_set_int_mem_clk_lpm() function

2016-08-28 Thread Anson Huang
Let's rename the function imx6q_set_int_mem_clk_lpm() to imx6_set_int_mem_clk_lpm() since it's actually common for all i.MX6 SoCs. Signed-off-by: Anson Huang --- changes since V1: This is a new add patch to improve function name. arch/arm/mach-imx/common.h| 2 +- arch/arm/mach-im

Re: drm: WARNING in drm_irq_by_busid

2016-08-28 Thread Daniel Vetter
On Sun, Aug 28, 2016 at 01:30:04PM +0200, Dmitry Vyukov wrote: > Hello, > > I've got the following WARNING while running syzkaller fuzzer: This should be fixed in linux-next, can you pls confirm? Also I'm somewhat suprised that syzkaller can't reproduce this reliably, at least in the latest code

Re: MFC: different h264 profile and level output the same size encoded result

2016-08-28 Thread Randy Li
On 08/29/2016 01:49 PM, Andrzej Hajda wrote: Hi, On 08/27/2016 11:55 AM, Randy Li wrote: Hi: I have been reported that the setting the profile, level and bitrate through the v4l2 extra controls would not make the encoded result different. I tried it recently, it is true. Although the h264

Re: MFC: different h264 profile and level output the same size encoded result

2016-08-28 Thread Andrzej Hajda
Hi, On 08/27/2016 11:55 AM, Randy Li wrote: > Hi: > >I have been reported that the setting the profile, level and bitrate > through the v4l2 extra controls would not make the encoded result > different. I tried it recently, it is true. Although the h264 parser > would tell me the result hav

[GIT] Networking

2016-08-28 Thread David Miller
1) Segregate namespaces properly in conntrack dumps, from Liping Zhang. 2) tcp listener refcount fix in netfilter tproxy, from Eric Dumazet. 3) Fix timeouts in qed driver due to xmit_more, from Yuval Mintz. 4) Fix use-after-free in tcp_xmit_retransmit_queue(). 5) Userspace header fixups

[GIT PULL] platform-drivers-x86 for 4.8-4

2016-08-28 Thread Darren Hart
Hi Linus, The following changes since commit 3eab887a55424fc2c27553b7bfe32330df83f7b8: Linux 4.8-rc4 (2016-08-28 15:04:33 -0700) are available in the git repository at: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git tags/platform-drivers-x86-v4.8-4 for you to fetch ch

Re: [PATCH] mm: Use zonelist name instead of using hardcoded index

2016-08-28 Thread Anshuman Khandual
On 08/26/2016 09:27 PM, Aneesh Kumar K.V wrote: > This use the existing enums instead of hardcoded index when looking at the Small nit. 'use' --> 'uses' > zonelist. This makes it more readable. No functionality change by this > patch. Came across this some time back, yeah it really makes sense t

Grant Offer

2016-08-28 Thread Mrs Julie Leach
You are a recipient to Mrs Julie leach Donation of 2M USD. Contact (julie_leach...@hotmail.com) for claims

[PATCH 2/3] ARM: dts: imx7-colibri: add basic supply regulators

2016-08-28 Thread Stefan Agner
Colibri modules need to be powered using the power pins 3V3 and AVDD_AUDIO. Add fixed regulators which represent this power rails. Potentially, those power rails could be switched on a carrier board. A carrier board device tree could add a own regulator with a GPIO, and reference that regulator in

[PATCH 3/3] ARM: dts: imx7-colibri: add Audio support

2016-08-28 Thread Stefan Agner
Add audio support via on module I2S SGTL5000 codec. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7-colibri.dtsi | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.

[PATCH 1/3] ARM: dts: imx7-colibri: move SD-card to module level

2016-08-28 Thread Stefan Agner
Move SD-card definition to module level. While at it, also disable write-protect since the Colibri standard does not define a pin for SD-Card write-protection. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 4 arch/arm/boot/dts/imx7-colibri.dtsi | 8 ++

[PATCH v5 6/6] mm/cma: remove per zone CMA stat

2016-08-28 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA so we don't need to maintain CMA stat in other zones. Remove it. Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim --- fs/proc/meminfo.c | 2 +- include/linux/cma.h| 6 ++ include/linux/mmzon

[PATCH v5 2/6] mm/cma: introduce new zone, ZONE_CMA

2016-08-28 Thread js1304
From: Joonsoo Kim Attached cover-letter: This series try to solve problems of current CMA implementation. CMA is introduced to provide physically contiguous pages at runtime without exclusive reserved memory area. But, current implementation works like as previous reserved memory approach, beca

[PATCH v5 5/6] mm/cma: remove MIGRATE_CMA

2016-08-28 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA and there is no other type of pages. Therefore, we don't need to use MIGRATE_CMA to distinguish and handle differently for CMA pages and ordinary pages. Remove MIGRATE_CMA. Unfortunately, this patch make free CMA

[PATCH v5 0/6] Introduce ZONE_CMA

2016-08-28 Thread js1304
From: Joonsoo Kim Hello, Changes from v4 o Rebase on next-20160825 o Add general fix patch for lowmem reserve o Fix lowmem reserve ratio o Fix zone span optimizaion per Vlastimil o Fix pageset initialization o Change invocation timing on cma_init_reserved_areas() Changes from v3 o Rebase on nex

[PATCH v5 4/6] mm/cma: remove ALLOC_CMA

2016-08-28 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_CMA and it only serves for GFP_HIGHUSER_MOVABLE. Therefore, we don't need to consider ALLOC_CMA at all. Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim --- mm/compaction.c | 4 +--- mm/internal.h | 1 - m

[PATCH v5 1/6] mm/page_alloc: don't reserve ZONE_HIGHMEM for ZONE_MOVABLE request

2016-08-28 Thread js1304
From: Joonsoo Kim Freepage on ZONE_HIGHMEM doesn't work for kernel memory so it's not that important to reserve. When ZONE_MOVABLE is used, this problem would theorectically cause to decrease usable memory for GFP_HIGHUSER_MOVABLE allocation request which is mainly used for page cache and anon pa

[PATCH v5 3/6] mm/cma: populate ZONE_CMA

2016-08-28 Thread js1304
From: Joonsoo Kim Until now, reserved pages for CMA are managed in the ordinary zones where page's pfn are belong to. This approach has numorous problems and fixing them isn't easy. (It is mentioned on previous patch.) To fix this situation, ZONE_CMA is introduced in previous patch, but, not yet

Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-28 Thread Borislav Petkov
On Mon, Aug 29, 2016 at 12:35:40AM +0800, Chen Yu wrote: > On some platforms, there is occasional panic triggered when trying to > resume from hibernation, a typical panic looks like: > > "BUG: unable to handle kernel paging request at 880085894000 > IP: [] load_image_lzo+0x8c2/0xe70" > > Thi

Re: [PART2 PATCH v7 00/12] iommu/AMD: Introduce IOMMU AVIC support

2016-08-28 Thread Suravee Suthikulpanit
Hi Joerg, Radim Any other concerns? Thanks, Suravee On 8/24/16 01:52, Suravee Suthikulpanit wrote: From: Suravee Suthikulpanit CHANGES FROM V6 === Per Radim: * No longer expose struct amd_ir_data to SVM. * Introduce struct amd_svm_iommu_ir (amd_ir_data wrapper). * Fi

[GIT PULL] Please pull powerpc/linux.git powerpc-4.8-4 tag

2016-08-28 Thread Benjamin Herrenschmidt
Hi Linus ! So my appologies for being a lousy replacement maintainer while Michael is on vacation ... this was meant to be sent early last week, but I has a change pending on one of the fixes and other things made me forget all about. Ugh. This is my first signed-tag and use of 2fa so I hope I go

Build error in timer-atmel-pit.c

2016-08-28 Thread Brent Taylor
Daniel, After updating to linux-4.8-rc4, I got the following build error: linux-x.yy/drivers/clocksource/timer-atmel-pit.c: In function 'at91sam926x_pit_dt_init': linux-x.yy/drivers/clocksource/timer-atmel-pit.c:264:2: error: 'ret' undeclared (first use in this function) ret = clk_prepare_ena

Re: imx-drm: Possible regression after update to atomic

2016-08-28 Thread Ying Liu
Hi Thorsten, On Sun, Aug 28, 2016 at 6:17 PM, Thorsten Leemhuis wrote: > Lo! Dave, below report made it to the list of regression for 4.8, but > afaics nothing happened after the initial report. Was it discussed (and > maybe even fixed?) elsewhere? Or is there some reason why it shouldn't > be on

Re: [PATCH 5/5] net/xgene: fix error handling during reset

2016-08-28 Thread David Miller
From: Arnd Bergmann Date: Fri, 26 Aug 2016 17:25:46 +0200 > The newly added reset logic uses helper functions for the MMIO that > may fail. However, when the read operation fails, we end up writing > back uninitialized data to the register, as gcc warns: > > drivers/net/ethernet/apm/xgene/xgene_

Re: [PATCH 4/5] net_sched: fix use of uninitialized ethertype variable in cls_flower

2016-08-28 Thread David Miller
From: Arnd Bergmann Date: Fri, 26 Aug 2016 17:25:45 +0200 > The addition of VLAN support caused a possible use of uninitialized > data if we encounter a zero TCA_FLOWER_KEY_ETH_TYPE key, as pointed > out by "gcc -Wmaybe-uninitialized": > > net/sched/cls_flower.c: In function 'fl_change': > net/s

Re: [PATCH v3 1/2] input: misc: Add generic input driver to read encoded GPIO lines

2016-08-28 Thread Vignesh R
On Thursday 25 August 2016 10:26 PM, Dmitry Torokhov wrote: > On Wed, Aug 24, 2016 at 01:28:58PM +0530, Vignesh R wrote: >> Add a driver to read group of GPIO lines and provide its status as a >> numerical value as input event to the system. This will help in >> interfacing devices, that can be c

Re: [PATCH 3/3] scsi/ncr5380: Improve interrupt latency during PIO tranfers

2016-08-28 Thread Finn Thain
On Sun, 28 Aug 2016, Geert Uytterhoeven wrote: > Hi Finn, > > On Sat, Aug 27, 2016 at 4:30 AM, Finn Thain > wrote: > > Large PIO transfers are broken up into chunks to try to avoid > > disabling local IRQs for long periods. But IRQs are still disabled for > > too long and this causes SCC FIF

Re: [RFC 1/1] drivers: i2c: omap: Add slave support

2016-08-28 Thread Matthijs van Duin
On 28 August 2016 at 07:35, Wolfram Sang wrote: > Well, I2C is simple, what could go wrong? :/ Actually I2C is elegant and *seems* simple, but in all its asynchronicity there are actually a surprising number of fine details you can trip over. Maybe that's why so many i2c controllers suck: since

Re: [PATCH] cxgb4/cxgb4vf: fix spelling mistake "provissioned" -> "provisioned"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 12:07:02 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] wan/fsl_ucc_hdlc: fix spelling mistake "prameter" -> "parameter"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 11:40:41 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err message. > > Signed-off-by: Colin Ian King Applied.

Re: [PATCH] net: ucc_geth: fix spelling mistake "propperty" -> "property"

2016-08-28 Thread David Miller
From: Colin King Date: Sun, 28 Aug 2016 12:03:27 +0100 > From: Colin Ian King > > Trivial fix to spelling mistake in dev_warn message. > > Signed-off-by: Colin Ian King Applied.

[PATCH] mount: dont execute propagate_umount() many times for same mounts

2016-08-28 Thread Andrei Vagin
In a worse case the current complexity of umount_tree() is O(n^3). * Enumirate all mounts in a target tree (propagate_umount) * Enumirate mounts to find where these changes have to be propagated (mark_umount_candidates) * Enumirate mounts to find a requered mount by parent and dentry (__lookup_

[PATCH 1/2] f2fs: set encryption name flag in add inline entry path

2016-08-28 Thread Shuoran Liu
This patch sets encryption name flag in the add inline entry path if filename is encrypted. Signed-off-by: Shuoran Liu --- fs/f2fs/inline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/inline.c b/fs/f2fs/inline.c index ccea873..f9ce04a7 100644 --- a/fs/f2fs/inline.c +++ b/fs/f2f

[PATCH 2/2] f2fs: add roll-forward recovery process for encrypted dentry

2016-08-28 Thread Shuoran Liu
Add roll-forward recovery process for encrypted dentry, so the first fsync issued to an encrypted file does not need writing checkpoint. This improves the performance of the following test at thousands of small files: open -> write -> fsync -> close Signed-off-by: Shuoran Liu --- fs/f2fs/dir.c

Re: [PATCH 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-08-28 Thread Shawn Lin
On 2016/8/29 10:50, Elaine Zhang wrote: On 08/27/2016 11:05 PM, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang Signed-off-by: Ziyuan Xu It looks nice to me. But this should be merged

RE: [PATCH] omapdrm: dss: drop unneeded of_node_put() on ref passed to of_get_next_parent()

2016-08-28 Thread Peter Chen
>Sent: Saturday, August 27, 2016 8:07 PM >To: Tomi Valkeinen ; Tony Lindgren ; >Sean Paul ; Peter Chen ; >Andrey Utkin >Cc: David Airlie ; Peter Ujfalusi ; >Dave >Airlie ; Rob Clark ; Dr. H. Nikolaus >Schaller ; Andrew Bradford ; >ker...@pyra-handheld.com; Discussions about the Letux Kernel ker

Re: [PATCH v7 11/14] arm64/numa: support HAVE_MEMORYLESS_NODES

2016-08-28 Thread Leizhen (ThunderTown)
On 2016/8/27 19:05, Leizhen (ThunderTown) wrote: > > > On 2016/8/26 23:43, Will Deacon wrote: >> On Wed, Aug 24, 2016 at 03:44:50PM +0800, Zhen Lei wrote: >>> Some numa nodes may have no memory. For example: >>> 1. cpu0 on node0 >>> 2. cpu1 on node1 >>> 3. device0 access the momory from node0 a

Re: [PATCH v6 0/8] power: add power sequence library

2016-08-28 Thread Peter Chen
On Wed, Aug 24, 2016 at 04:53:35PM +0800, Peter Chen wrote: > On Tue, Aug 23, 2016 at 04:02:48PM +0530, Vaibhav Hiremath wrote: > > > > > > On Monday 15 August 2016 02:43 PM, Peter Chen wrote: > > >Hi all, > > > > > >This is a follow-up for my last power sequence framework patch set [1]. > > >Acc

[PATCH] ftrace: Access ret_stack->subtime only in the function profiler

2016-08-28 Thread Namhyung Kim
The subtime is used only for function profiler with function graph tracer enabled. Move the definition of subtime under CONFIG_FUNCTION_PROFILER to reduce the memory usage. Also move the initialization of subtime into the graph entry callback. Cc: Josh Poimboeuf Signed-off-by: Namhyung Kim ---

Re: kcm: use-after-free in fput of kcm socket

2016-08-28 Thread Cong Wang
On Sun, Aug 28, 2016 at 3:10 AM, Dmitry Vyukov wrote: > Hello, > > The following program triggers use-after-free: > > // autogenerated by syzkaller (http://github.com/google/syzkaller) > #include > #include > > int main() > { > int fd = syscall(SYS_socket, 0x29ul, 0x5ul, 0x0ul, 0, 0, 0); > s

Re: [PATCH 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-08-28 Thread Elaine Zhang
On 08/27/2016 11:05 PM, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang Signed-off-by: Ziyuan Xu It looks nice to me. But this should be merged after applying that[0] as your patch will

Re: [PATCH] drm/rockchip: vop: make vop register setting take effect

2016-08-28 Thread Mark yao
On 2016年08月27日 11:39, Chris Zhong wrote: The setting of vop registers need a reg_done writing to take effect. In vop_enable the vop return to work by by restoring registers, but the registers do not take effect immediately, it should a vop_cfg_done after it. The same thing is needed by windows_di

[PATCH] iio: fix pressure data output unit in hid-sensor-attributes

2016-08-28 Thread Kweh, Hock Leong
From: "Kweh, Hock Leong" According to IIO ABI definition, IIO_PRESSURE data output unit is kilopascal: http://lxr.free-electrons.com/source/Documentation/ABI/testing/sysfs-bus-iio This patch fix output unit of HID pressure sensor IIO driver from pascal to kilopascal to follow IIO ABI definition.

Re: [PATCH] thermal: hisilicon: fix COMPILE_TEST dependencies

2016-08-28 Thread Leo Yan
On Mon, Aug 29, 2016 at 10:00:52AM +0800, Zhang Rui wrote: > On 五, 2016-08-26 at 17:44 +0200, Arnd Bergmann wrote: > > As we now 'select STUB_CLK_HI6220', all dependencies for that driver > > have > > to be present in order to enable HISI_THERMAL, as pointed out by > > Kconfig: > > > > warning: (H

Re: chipidea: udc: kernel panic in isr_setup_status_phase

2016-08-28 Thread Peter Chen
On Sun, Aug 28, 2016 at 08:15:02PM +0200, Clemens Gruber wrote: > On Sat, Aug 27, 2016 at 01:21:52AM +0800, Peter Chen wrote: > > The gadget triggers UI interrupt due to host sends packet. > > > > I really can't understand that, why host does not send bus reset > > before sending packet (eg, GET_D

Re: checkkpatch (in)sanity ?

2016-08-28 Thread Levin, Alexander
On Sun, Aug 28, 2016 at 07:20:52PM -0400, Joe Perches wrote: > On Sun, 2016-08-28 at 18:37 -0400, Levin, Alexander wrote: > > On Sun, Aug 28, 2016 at 01:15:57PM -0400, Joe Perches wrote: > > > On Sat, 2016-08-27 at 22:47 -0400, Levin, Alexander wrote: > > > > Would you agree that by default we shou

Re: [PATCH v6 1/2] clk: uniphier: add core support code for UniPhier clock driver

2016-08-28 Thread Masahiro Yamada
Hi Stephen, 2016-08-20 4:16 GMT+09:00 Stephen Boyd : >> >> >> + >> >> + parent = of_get_parent(dev->of_node); /* parent should be syscon >> >> node */ >> >> + regmap = syscon_node_to_regmap(parent); >> >> + of_node_put(parent); >> > >> > devm_get_regmap(dev->parent) should work then?

Re: [PATCH 2/2] arm64: dts: rockchip: add eMMC's power domain support for rk3399

2016-08-28 Thread Elaine Zhang
On 08/27/2016 11:05 PM, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Control power domain for eMMC via genpd to reduce power consumption. Signed-off-by: Elaine Zhang Signed-off-by: Ziyuan Xu It looks nice to me. But this should be merged after applying that[0] as your patch will

Re: [PATCH] thermal: hisilicon: fix COMPILE_TEST dependencies

2016-08-28 Thread Zhang Rui
On 五, 2016-08-26 at 17:44 +0200, Arnd Bergmann wrote: > As we now 'select STUB_CLK_HI6220', all dependencies for that driver > have > to be present in order to enable HISI_THERMAL, as pointed out by > Kconfig: > > warning: (HISI_THERMAL) selects STUB_CLK_HI6220 which has unmet > direct dependencie

Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-28 Thread Andreas Mohr
Hi, [no properly binding reference via In-Reply-To: available thus manually re-creating, sorry] > > So we can print warning in hibernation_die_notifier without > > introducing a global variable? > > > > Actually, I'd kill the machine right away. > > if (memcmp(result, buf, MD5_DIGEST_SIZE)) {

Re: [PATCH 1/1] ceph: do not modify fi->frag in need_reset_readdir()

2016-08-28 Thread Yan, Zheng
> On Aug 29, 2016, at 00:47, Nicolas Iooss wrote: > > Commit f3c4ebe65ea1 ("ceph: using hash value to compose dentry offset") > modified "if (fpos_frag(new_pos) != fi->frag)" to "if (fi->frag |= > fpos_frag(new_pos))" in need_reset_readdir(), thus replacing a > comparison operator with an assign

Great Offer

2016-08-28 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $2 million USD. Contact (julieleach...@hotmail.com) for claims.

Grant Offer

2016-08-28 Thread Mrs Julie Leach
You are a recipient to Mrs Julie Leach Donation of $2 million USD. Contact (julieleach...@hotmail.com) for claims.

Re: [PATCH v2 2/9] ext2: tell DAX the size of allocation holes

2016-08-28 Thread Dave Chinner
On Fri, Aug 26, 2016 at 03:29:34PM -0600, Ross Zwisler wrote: > On Thu, Aug 25, 2016 at 12:57:28AM -0700, Christoph Hellwig wrote: > > Hi Ross, > > > > can you take at my (fully working, but not fully cleaned up) version > > of the iomap based DAX code here: > > > > http://git.infradead.org/users

Re: [PATCH 2/2] power: bq24735-charger: Assume not charging when charger is missing

2016-08-28 Thread Sebastian Reichel
Hi, On Sun, Aug 28, 2016 at 07:34:46PM +0200, Paul Kocialkowski wrote: > When the charger is missing (disconnected), it is safe to assume that > the charger chip is no charging. > > This is especially relevant when a status GPIO is present and the > charger is getting disconnected. bq24735_charge

Re: [PATCH 1/2] power: bq24735-charger: Request status GPIO with initial input setup

2016-08-28 Thread Sebastian Reichel
Hi, On Sun, Aug 28, 2016 at 07:34:45PM +0200, Paul Kocialkowski wrote: > This requests the status GPIO with initial input setup. it is required > to read the GPIO status at probe time and thus correctly avoid sending > i2c messages when AC is not plugged. > > When requesting the GPIO without init

Re: [PATCH 1/2] Documentation: mmc: sdhci-of-arasan: add description of power domain

2016-08-28 Thread Ziyuan Xu
On 2016年08月27日 22:50, Shawn Lin wrote: On 2016/8/27 21:41, Ziyuan Xu wrote: Add power domain as a optional property for sdhci-of-arasan, which can be truned off in the so-called unused condition, such as suspend and remove. Aim to lower power requirements. Signed-off-by: Ziyuan Xu --- Doc

Re: [PATCH 01/13] perf/core: Add perf_arch_regs and mask to perf_regs structure

2016-08-28 Thread kbuild test robot
Hi Madhavan, [auto build test ERROR on tip/perf/core] [also build test ERROR on v4.8-rc4 next-20160825] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

[PATCH v2 7/8] pipe: make account_pipe_buffers() return a value, and use it

2016-08-28 Thread Michael Kerrisk (man-pages)
This is an optional patch, to provide a small performance improvement. Alter account_pipe_buffers() so that it returns the new value in user->pipe_bufs. This means that we can refactor too_many_pipe_buffers_soft() and too_many_pipe_buffers_hard() to avoid the costs of repeated use of atomic_long_r

[PATCH v2 5/8] pipe: simplify logic in alloc_pipe_info()

2016-08-28 Thread Michael Kerrisk (man-pages)
Replace an 'if' block that covers most of the code in this function with a 'goto'. This makes the code a little simpler to read, and also simplifies the next patch (fix limit checking in alloc_pipe_info()) Cc: Willy Tarreau Cc: Vegard Nossum Cc: socketp...@gmail.com Cc: Tetsuo Handa Cc: Jens Ax

[PATCH v2 8/8] pipe: cap initial pipe capacity according to pipe-max-size limit

2016-08-28 Thread Michael Kerrisk (man-pages)
This is a patch that provides behavior that is more consistent, and probably less surprising to users. I consider the change optional, and welcome opinions about whether it should be applied. By default, pipes are created with a capacity of 64 kiB. However, /proc/sys/fs/pipe-max-size may be set s

[PATCH v2 6/8] pipe: fix limit checking in alloc_pipe_info()

2016-08-28 Thread Michael Kerrisk (man-pages)
The limit checking in alloc_pipe_info() (used by pipe(2) and when opening a FIFO) has the following problems: (1) When checking capacity required for the new pipe, the checks against the limit in /proc/sys/fs/pipe-user-pages-{soft,hard} are made against existing consumption, and exclude th

[PATCH v2 2/8] pipe: move limit checking logic into pipe_set_size()

2016-08-28 Thread Michael Kerrisk (man-pages)
This is a preparatory patch for following work. Move the F_SETPIPE_SZ limit-checking logic from pipe_fcntl() into pipe_set_size(). This simplifies the code a little, and allows for reworking required in a later patch that fixes the limit checking in pipe_set_size() Cc: Willy Tarreau Cc: Vegard N

[PATCH v2 4/8] pipe: fix limit checking in pipe_set_size()

2016-08-28 Thread Michael Kerrisk (man-pages)
The limit checking in pipe_set_size() (used by fcntl(F_SETPIPE_SZ)) has the following problems: (1) When increasing the pipe capacity, the checks against the limits in /proc/sys/fs/pipe-user-pages-{soft,hard} are made against existing consumption, and exclude the memory required for the in

[PATCH v2 3/8] pipe: refactor argument for account_pipe_buffers()

2016-08-28 Thread Michael Kerrisk (man-pages)
This is a preparatory patch for following work. account_pipe_buffers() performs accounting in the 'user_struct'. There is no need to pass a pointer to a 'pipe_inode_info' struct (which is then dereferenced to obtain a pointer to the 'user' field). Instead, pass a pointer directly to the 'user_struc

[PATCH v2 1/8] pipe: relocate round_pipe_size() above pipe_set_size()

2016-08-28 Thread Michael Kerrisk (man-pages)
This is a minor preparatory patch. After subsequent patches, round_pipe_size() will be called from pipe_set_size(), so place round_pipe_size() above pipe_set_size(). Cc: Willy Tarreau Cc: Vegard Nossum Cc: socketp...@gmail.com Cc: Tetsuo Handa Cc: Jens Axboe Cc: Al Viro Cc: linux-...@vger.ker

[PATCH v2 0/8] pipe: fix limit handling

2016-08-28 Thread Michael Kerrisk (man-pages)
When changing a pipe's capacity with fcntl(F_SETPIPE_SZ), various limits defined by /proc/sys/fs/pipe-* files are checked to see if unprivileged users are exceeding limits on memory consumption. While documenting and testing the operation of these limits I noticed that, as currently implemented, t

Re: [PATCH v2 1/3] tracing: Deference pointers without RCU checks

2016-08-28 Thread Masami Hiramatsu
Hi Binoy, On Fri, 26 Aug 2016 10:56:12 +0530 Binoy Jayan wrote: > On 26 August 2016 at 07:19, Masami Hiramatsu wrote: > > On Wed, 24 Aug 2016 16:47:28 +0530 > >> "__local_bh_enable() tests if this is the last SOFTIRQ_OFFSET, if so it > >> tells lockdep softirqs are enabled with trace_softirqs_o

Re: [PATCH 01/13] perf/core: Add perf_arch_regs and mask to perf_regs structure

2016-08-28 Thread kbuild test robot
Hi Madhavan, [auto build test WARNING on tip/perf/core] [also build test WARNING on v4.8-rc4 next-20160825] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

Re: [git pull] drm fixes for rc4 or 5

2016-08-28 Thread Dave Airlie
On 29 August 2016 at 07:35, Linus Torvalds wrote: > On Sun, Aug 28, 2016 at 2:31 PM, Linus Torvalds > wrote: >> >> Anyway, the real problem was that this was in my spam-box. Which I've >> learnt to check religiously, so I noticed almost immediately. > > Btw, on a totally unrelated issue: you make

Re: checkkpatch (in)sanity ?

2016-08-28 Thread Joe Perches
On Sun, 2016-08-28 at 18:37 -0400, Levin, Alexander wrote: > On Sun, Aug 28, 2016 at 01:15:57PM -0400, Joe Perches wrote: > > On Sat, 2016-08-27 at 22:47 -0400, Levin, Alexander wrote: > > > Would you agree that by default we shouldn't show anything that's > > > not an error/defect? > > Not particu

Re: [PATCH] Make __xfs_xattr_put_listen preperly report errors.

2016-08-28 Thread Dave Chinner
On Fri, Aug 26, 2016 at 10:59:28AM +0200, Artem Savkov wrote: > On Fri, Aug 26, 2016 at 08:42:15AM +1000, Dave Chinner wrote: > > So when I look at the fix, and see that it doesn't reproduce on my > > systems, it's clear that it's either not yet fully understood or > > hasn't been fully explained b

[PATCH 1/3] ALSA: timer: fix NULL pointer dereference in read()/ioctl() race

2016-08-28 Thread Vegard Nossum
I got this with syzkaller: == BUG: KASAN: null-ptr-deref on address 0020 Read of size 32 by task syz-executor/22519 CPU: 1 PID: 22519 Comm: syz-executor Not tainted 4.8.0-rc2+ #169 Hardware name: QEMU S

[PATCH 3/3] ALSA: timer: fix NULL pointer dereference on memory allocation failure

2016-08-28 Thread Vegard Nossum
I hit this with syzkaller: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN CPU: 0 PID: 1327 Comm: a.out Not tainted 4.8.0-rc2+ #190 Hardware name: QEMU Standard PC (i440F

[PATCH 2/3] ALSA: timer: fix division by zero after SNDRV_TIMER_IOCTL_CONTINUE

2016-08-28 Thread Vegard Nossum
I got this: divide error: [#1] PREEMPT SMP KASAN CPU: 1 PID: 1327 Comm: a.out Not tainted 4.8.0-rc2+ #189 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/2014 task: 8801120a9580 task.stack: 8801120b

Re: checkkpatch (in)sanity ?

2016-08-28 Thread Levin, Alexander
On Sun, Aug 28, 2016 at 01:15:57PM -0400, Joe Perches wrote: > On Sat, 2016-08-27 at 22:47 -0400, Levin, Alexander wrote: > > > Would you agree that by default we shouldn't show anything that's > > not an error/defect? > > Not particularly, no. I think that we need to figure out this disagreemen

[PATCH linux-firmware] rt2870sta: Update rt3071.bin to match rt2870.bin

2016-08-28 Thread Ben Hutchings
rt3071.bin is a copy of the second firmware image in rt2870.bin, used only by the old rt2870sta driver. Update it to version 0.36. Signed-off-by: Ben Hutchings --- The rt2870sta driver used rt3070.bin and rt3071.bin from version 2.6.34 to 2.6.38 inclusive. But that might be old enough that we c

  1   2   3   4   >