Re: [PATCH 1/2] ubifs: Fix inode data budget in ubifs_mknod

2017-05-16 Thread Richard Weinberger
Hyunchul, Am 17.05.2017 um 01:57 schrieb Hyunchul Lee: > Assign inode data budget to budget request correctly. > > Signed-off-by: Hyunchul Lee > --- > fs/ubifs/dir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c > index b777bdd..df6723

Re: [PATCH] sched: Do not bug in __sched_setscheduler() when pi is not used

2017-05-16 Thread Peter Zijlstra
On Tue, May 16, 2017 at 06:55:20PM -0400, Steven Rostedt wrote: > > Peter, > > I've just been pinged by someone that triggered this bug again. Can you > take this patch and it probably should be marked for stable too. > Oh, rite. Sorry for letting it slip.

Re: [patch V2 15/17] mm/vmscan: Adjust system_state checks

2017-05-16 Thread Vlastimil Babka
On 05/16/2017 08:42 PM, Thomas Gleixner wrote: > To enable smp_processor_id() and might_sleep() debug checks earlier, it's > required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. > > Adjust the system_state check in kswapd_run() to handle the extra states. > > Signed-off-by: Th

Re: [PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-16 Thread Paolo Bonzini
> I regret not pressing harder when we sanctified this frequency > difference ... too late to make kvm clock follow the boot clock? :) > --- > arch/x86/kvm/x86.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index b54

[PATCH 2/2] drm: drop drm_[cm]alloc* helpers

2017-05-16 Thread Michal Hocko
From: Michal Hocko Now that drm_[cm]alloc* helpers are simple one line wrappers around kvmalloc_array and drm_free_large is just kvfree alias we can drop them and replace by their native forms. This shouldn't introduce any functional change. Suggested-by: Daniel Vetter Signed-off-by: Michal Ho

[PATCH 1/2] drm: replace drm_[cm]alloc* by kvmalloc alternatives

2017-05-16 Thread Michal Hocko
From: Michal Hocko drm_[cm]alloc* has grown their own kvmalloc with vmalloc fallback implementations. MM has grown kvmalloc* helpers in the meantime. Let's use those because it a) reduces the code and b) MM has a better idea how to implement fallbacks (e.g. do not vmalloc before kmalloc is tried

Re: [PATCH] KVM: x86: lower default for halt_poll_ns

2017-05-16 Thread Paolo Bonzini
> Still, I think we have dynamic polling to mitigate this overhead; > how was it behaving? Correctly: the polling stopped as soon as the benchmark ended. :) > I noticed a questionable decision in growing the window: > we know how long the polling should have been (block_ns), but we do not > use

Re: [RFC][PATCH 00/14] sched/fair: A bit of a cgroup/PELT overhaul (again)..

2017-05-16 Thread Peter Zijlstra
On Tue, May 16, 2017 at 06:02:17PM -0400, Tejun Heo wrote: > Hello, > > On Fri, May 12, 2017 at 06:44:16PM +0200, Peter Zijlstra wrote: > > > > Hi all, > > > > So after staring at all that PELT stuff and working my way through it again: > > > > > > https://lkml.kernel.org/r/20170505154117.6z

[PATCH v3] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/cpufreq/kirkwood-cpufreq.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwood-cpufre

Re: [PATCH] mmc: sdhci-xenon: kill xenon_clean_phy()

2017-05-16 Thread Hu Ziji
On 2017/5/16 14:17, Jisheng Zhang wrote: > Currently, the xenon_clean_phy() is only used for freeing phy_params. > The phy_params is allocated by devm_kzalloc(), there's no need to free > is explicitly. > > Signed-off-by: Jisheng Zhang Thanks for the fix. Acked-by Hu Ziji Best regards, Hu Zij

Re: [PATCH v2] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Arvind Yadav
Sorry, I missed it. Now I am going to add. Thanks -Arvind On Wednesday 17 May 2017 12:15 PM, Viresh Kumar wrote: On 17-05-17, 12:12, Arvind Yadav wrote: Here, Clock enable can failed. So adding an error check for clk_prepare_enable. You missed my comment for the commit log.

Re: [PATCH 2/3] arm: dts: rk322x: correct uart2 pinctrl and add another sets

2017-05-16 Thread Kever Yang
Hi Frank, On 05/17/2017 11:40 AM, Frank Wang wrote: Correct UART2 PINCTRL flag and add another PINCTRL sets for UART2 in case of confict with SDMMC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/a

Re: [PATCH v4 1/1] x86, relocs: add printf attribute to die()

2017-05-16 Thread Nicolas Iooss
Hello, The patch I sent a few months ago still applies cleanly on top of 4.12-rc1. What should I do in order to get it merged in 4.13? In case you no longer have my initial email, the patch has been archived in https://patchwork.kernel.org/patch/9604651/ . Thanks, Nicolas On Tue, Mar 28, 2017 a

Re: [PATCH v2] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Viresh Kumar
On 17-05-17, 12:12, Arvind Yadav wrote: > Here, Clock enable can failed. So adding an error check for > clk_prepare_enable. You missed my comment for the commit log. -- viresh

[PATCH v2] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Arvind Yadav
Here, Clock enable can failed. So adding an error check for clk_prepare_enable. Signed-off-by: Arvind Yadav --- drivers/cpufreq/kirkwood-cpufreq.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/kirkwood-cpufreq.c b/drivers/cpufreq/kirkwo

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Nikita Yushchenko
>> Code should be consistent. >> > > Yes. > >> There is no good reason to have sport->lpuart32 inside sport, but >> lpuart_is_be outside of it. Both these values describe properties of >> particular device, and thus should be in per-device structure. >> > > That's for special case, normally we w

Re: [PATCH v2] perf report: distinguish between inliners in the same function

2017-05-16 Thread Namhyung Kim
On Tue, May 16, 2017 at 03:18:13PM +0200, Milian Wolff wrote: > On Dienstag, 16. Mai 2017 02:53:32 CEST Namhyung Kim wrote: > > On Mon, May 15, 2017 at 12:01:54PM +0200, Milian Wolff wrote: > > > On Monday, May 15, 2017 3:21:58 AM CEST Namhyung Kim wrote: > > > > Hi Milian, > > > > > > > > On Sun,

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Dong Aisheng
On Wed, May 17, 2017 at 08:50:39AM +0300, Nikita Yushchenko wrote: > > static u32 lpuart32_read(void __iomem *addr) > > { > > - return ioread32be(addr); > > + return lpuart_is_be ? ioread32be(addr) : readl(addr); > > } > > > > static void lpuart32_write

[PATCH v2] hwspinlock: sprd: Add hardware spinlock driver

2017-05-16 Thread Baolin Wang
The Spreadtrum hardware spinlock device can provide hardware assistance for synchronization between the multiple subsystems. Signed-off-by: Baolin Wang --- Changes since v1: - Remove some unused macros and functions. - Convert readl/writel_relaxed() to readl/writel. - Remove some redundant err

RE: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread A.S. Dong
> -Original Message- > From: Nikita Yushchenko [mailto:nikita.yo...@cogentembedded.com] > Sent: Wednesday, May 17, 2017 1:44 PM > To: Dong Aisheng > Cc: A.S. Dong; linux-ser...@vger.kernel.org; Andy Duan; > gre...@linuxfoundation.org; Y.B. Lu; linux-kernel@vger.kernel.org; > ste...@agner.ch

device tree file

2017-05-16 Thread Karthik BalaGuru T
Hi, Can someone point me to a specific device tree file for Intel Atom processor for reference ? Thanks in advance, Karthik Balaguru Disclaimer : This email communication may contain privileged and confidential information and is intended for the use of the addressee only. If you are not an in

Re: [PATCH v1] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Arvind Yadav
Yes, I will add check for powersave clk. Thanks - Arvind On Wednesday 17 May 2017 10:04 AM, Viresh Kumar wrote: On 16-05-17, 12:41, Arvind Yadav wrote: Here, Clock enable can failed. So adding an error check for clk_prepare_enable. Rewrite it as: clk_prepare_enable() can fail here and we mus

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Nikita Yushchenko
> static u32 lpuart32_read(void __iomem *addr) > { > - return ioread32be(addr); > + return lpuart_is_be ? ioread32be(addr) : readl(addr); > } > > static void lpuart32_write(u32 val, void __iomem *addr) > { > - iowrite32be(val, addr); > + if (lpuart_is_

rcu: NO_HZ_FULL_SYSIDLE leftovers

2017-05-16 Thread Valentin Rothberg
mit removing them on LKML, and as I am unsure if you like to keep the affected code, I want to report it to you. To get the report in linux-next: $ checkkconfigsymbols.py --diff next-20170516..next-20170517 --find Kind regards, Valentin

[PATCH] dlm: Make dismatch error message more clear

2017-05-16 Thread Gang He
This change will try to make this error message more clear, since the upper applications (e.g. ocfs2) invoke dlm_new_lockspace to create a new lockspace with passing a cluster name. Sometimes, dlm_new_lockspace return failure while two cluster names dismatch, the user is a little confused since thi

Re: [PATCH] usb: class: usblp: Fixed assignments inside if conditions

2017-05-16 Thread Alberto Ladron
On Tue, May 16, 2017 at 01:44:47PM +0800, kbuild test robot wrote: Hi, Here is the fix. Or I have to resubmit the whole patch? Signed-off-by: Alberto Ladron --- diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c index b1879ff..c335878 100644 --- a/drivers/usb/class/usblp.c ++

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Nikita Yushchenko
>>> @@ -2000,6 +2007,7 @@ static int lpuart_probe(struct platform_device *pdev) >>> } >>> sport->port.line = ret; >>> sport->lpuart32 = sdata->is_32; >>> + lpuart_is_be = sdata->is_be; >> >> Setting a global variable in per-device routine is quite bad design. >> > > There is a reason

Re: [PATCH-RFT 2/2] pinctrl: samsung: Split Exynos drivers per ARMv7 and ARMv8

2017-05-16 Thread Marek Szyprowski
Hi Krzysztof, On 2017-05-16 22:06, Krzysztof Kozlowski wrote: Exynos pinctrl drivers contain pretty big per-SoC data structures. The pinctrl-exynos object file contained code and data for both ARMv7 and ARMv8 SoCs thus it grew big. There will not be a shared image between ARMv7 and ARMv8 so th

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Dong Aisheng
On Wed, May 17, 2017 at 08:37:41AM +0300, Nikita Yushchenko wrote: > > > 17.05.2017 06:39, Dong Aisheng wrote: > > On Tue, May 16, 2017 at 02:15:08PM +0300, Nikita Yushchenko wrote: > >>> static u32 lpuart32_read(void __iomem *addr) > >>> { > >>> - return ioread32be(addr); > >>> + return lpuart

[PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register()

2017-05-16 Thread Chris Packham
Use mtd_device_register() instead of mtd_device_parse_register() to eliminate two unused parameters. Signed-off-by: Chris Packham --- drivers/mtd/devices/mchp23k256.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/m

[PATCH 3/4] mtd: mchp23k256: add partitioning support

2017-05-16 Thread Chris Packham
Setting the of_node for the mtd device allows the generic mtd code to setup the partitions. Additionally we must specify a non-zero erasesize for the partitions to be writeable. Signed-off-by: Chris Packham --- drivers/mtd/devices/mchp23k256.c | 5 + 1 file changed, 5 insertions(+) diff --g

[PATCH 4/4] mtd: mchp23k256: Add support for mchp23lcv1024

2017-05-16 Thread Chris Packham
The mchp23lcv1024 is software compatible with the mchp23k256, the only difference (from a software point of view) is the size. There is no way to detect the size so we must be told via a Device Tree. Signed-off-by: Chris Packham --- .../bindings/mtd/microchip,mchp23k256.txt | 2 +- dr

[PATCH 1/4] mtd: mchp23k256: Add OF device ID table

2017-05-16 Thread Chris Packham
This allows registering of this device via a Device Tree. Signed-off-by: Chris Packham --- .../devicetree/bindings/mtd/microchip,mchp23k256.txt | 18 ++ drivers/mtd/devices/mchp23k256.c | 8 2 files changed, 26 insertions(+) create mode 100644

[PATCH 0/4] mtd: mchp23k256: device tree and mchp23lcv1024

2017-05-16 Thread Chris Packham
This series adds device tree support to the mchp23k256 driver and support for the mchp23lcv1024 chip. I suspect there are more compatible variants that we could now enumerate if desired. Chris Packham (4): mtd: mchp23k256: Add OF device ID table mtd: mchp23k256: switch to mtd_device_register()

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Nikita Yushchenko
17.05.2017 06:39, Dong Aisheng wrote: > On Tue, May 16, 2017 at 02:15:08PM +0300, Nikita Yushchenko wrote: >>> static u32 lpuart32_read(void __iomem *addr) >>> { >>> - return ioread32be(addr); >>> + return lpuart_is_be ? ioread32be(addr) : readl(addr); >>> } >>> >>> static void lpuart32

Re: [PATCH 2/4] arm: dts: rk322x: add operating-points-v2 property for cpu

2017-05-16 Thread Viresh Kumar
On 17-05-17, 12:45, Frank Wang wrote: > From: Finley Xiao > > This patch adds a new opp table for cpu on rk322x SoC. > > Signed-off-by: Frank Wang > --- > arch/arm/boot/dts/rk322x.dtsi | 36 > 1 file changed, 32 insertions(+), 4 deletions(-) Acked-by: Vire

Re: linux-next: build failure after merge of the sound tree

2017-05-16 Thread Takashi Iwai
inition of macro 'container_of' > const typeof( ((type *)0)->member ) *__mptr = (ptr); \ > ^ > sound/pcmcia/vx/vxp_ops.c:512:31: note: in expansion of macro 'to_vxpocket' > struct snd_vxpocket *pchip = to_vxpocket(_chip); >^ > > Caused by commit > > 7c46696e8fef ("ALSA: vxpocket: Use container_of()") > > I have used the sound tree from next-20170516 for today. My bad, I applied the wrong version of the patch. Now fixed and pushed out. thanks, Takashi

Re: [PATCH 3/4] arm: dts: rk3229: add a new cpu opp table

2017-05-16 Thread Viresh Kumar
On 17-05-17, 12:45, Frank Wang wrote: > From: Finley Xiao > > This patch adds some new frequencies for rk3229 board. > > Signed-off-by: Frank Wang > --- > arch/arm/boot/dts/rk3229-cpu-opp.dtsi | 85 > +++ > 1 file changed, 85 insertions(+) > create mode 100644

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-16 Thread Guenter Roeck
On 05/16/2017 09:39 PM, Ye Xiaolong wrote: On 05/17, Chris Packham wrote: On 17/05/17 15:09, Ye Xiaolong wrote: On 05/16, Chris Packham wrote: On 16/05/17 20:23, kbuild test robot wrote: Hi Chris, [auto build test ERROR on hwmon/hwmon-next] [also build test ERROR on v4.12-rc1 next-20170516

Re: [PATCH 03/18] xen/pvcalls: initialize the module and register the xenbus backend

2017-05-16 Thread Juergen Gross
On 16/05/17 21:58, Stefano Stabellini wrote: > On Tue, 16 May 2017, Juergen Gross wrote: >> On 15/05/17 22:35, Stefano Stabellini wrote: >>> The pvcalls backend has one ioworker per cpu: the ioworkers are >>> implemented as a cpu bound workqueue, and will deal with the actual >>> socket and data ri

Re: [PATCH] iommu: of: Fix check for returning EPROBE_DEFER

2017-05-16 Thread Sricharan R
Hi, On 5/16/2017 7:39 PM, Jonathan Neuschäfer wrote: > Hi, I have a few suggestions on how to make this commit message more > readable: > > On Tue, May 16, 2017 at 10:54:13AM +0530, Sricharan R wrote: >> While returning EPROBE_DEFER for iommu masters > > Add a comma at the end of this line > >>

Re: [PATCH v2] perf report: fix off-by-one for non-activation frames

2017-05-16 Thread Namhyung Kim
On Tue, May 16, 2017 at 06:26:47PM +0200, Milian Wolff wrote: > On Dienstag, 16. Mai 2017 18:17:26 CEST Milian Wolff wrote: > > On Dienstag, 16. Mai 2017 16:38:29 CEST Namhyung Kim wrote: > > > On Tue, May 16, 2017 at 10:59:51AM +0200, Milian Wolff wrote: > > > > As the documentation for dwfl_frame

Re: linux-next: build failure after merge of the netfilter tree

2017-05-16 Thread Willem de Bruijn
On Tue, May 16, 2017 at 11:45 PM, Stephen Rothwell wrote: > Hi all, > > After merging the netfilter tree, today's linux-next build (i386 > defconfig) failed like this: > > net/netfilter/x_tables.c: In function 'xt_match_to_user': > net/netfilter/x_tables.c:303:13: error: implicit declaration of f

Re: linux-next: build warning after merge of the overlayfs tree

2017-05-16 Thread Amir Goldstein
On Wed, May 17, 2017 at 3:19 AM, Stephen Rothwell wrote: > Hi Miklos, > > After merging the overlayfs tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/overlayfs/dir.c: In function 'ovl_rename': > fs/overlayfs/dir.c:1060:2: warning: 'newdentry' may be used un

[PATCH 3/4] arm: dts: rk3229: add a new cpu opp table

2017-05-16 Thread Frank Wang
From: Finley Xiao This patch adds some new frequencies for rk3229 board. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk3229-cpu-opp.dtsi | 85 +++ 1 file changed, 85 insertions(+) create mode 100644 arch/arm/boot/dts/rk3229-cpu-opp.dtsi diff --git a/arch/a

[PATCH 2/4] arm: dts: rk322x: add operating-points-v2 property for cpu

2017-05-16 Thread Frank Wang
From: Finley Xiao This patch adds a new opp table for cpu on rk322x SoC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 36 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322

[PATCH 0/4] amend some properties related clk and cpu for rk322x

2017-05-16 Thread Frank Wang
These series of patches amend some assigned-clocks and add cpu opp table for rk322x SoCs. the following patches on patchwork are required for this changes. https://patchwork.kernel.org/patch/9627639/ https://patchwork.kernel.org/patch/9703945/ https://patchwork.kernel.org/patch/9703939/ https://pa

[PATCH 1/4] arm: dts: rk322x: add some assigned-clocks

2017-05-16 Thread Frank Wang
From: Elaine Zhang Add CPLL, GPLL and some other assigned-clocks for rk322x SoC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 2

[PATCH 4/4] arm: dts: rk322x: update tsadc's frequence setting

2017-05-16 Thread Frank Wang
From: Rocky Hao Update freq of tsadc's working clock as 32768 hz, if not set, tsadc will work at a default frequence. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi

[PATCH 2/4] PM / OPP: Don't create copy of regulators unnecessarily

2017-05-16 Thread Viresh Kumar
This code was required while the OPP core was managed with help of RCUs, but not anymore. Get rid of unnecessary alloc/memcpy operations. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 14 +++--- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/drivers/base

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-16 Thread Ye Xiaolong
On 05/17, Chris Packham wrote: >On 17/05/17 15:09, Ye Xiaolong wrote: >> On 05/16, Chris Packham wrote: >>> On 16/05/17 20:23, kbuild test robot wrote: >>>> Hi Chris, >>>> >>>> [auto build test ERROR on hwmon/hwmon-next] >>>> [als

[PATCH 3/4] PM / OPP: opp-microvolt is not optional if regulators are set

2017-05-16 Thread Viresh Kumar
If dev_pm_opp_set_regulators() is called for a device and its regulators are set in the OPP core, the OPP nodes for the device must contain the "opp-microvolt" property, otherwise there is something wrong and we better error out. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/of.c | 11 +

[PATCH 4/4] PM / OPP: Don't create debugfs "supply-0" directory unnecessarily

2017-05-16 Thread Viresh Kumar
We create "supply-0" debugfs directory even if the device doesn't do voltage scaling. That looks confusing, as if the regulator is found but we never managed to get voltage levels for it. Avoid creating such a directory unnecessarily. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/debug

[PATCH 1/4] PM / OPP: Reorganize _generic_set_opp_regulator()

2017-05-16 Thread Viresh Kumar
The code was overly complicated here because of the limitations that we had with RCUs (Couldn't use opp-table and OPPs outside RCU protected section and can't call sleep-able routines from within that). But that is long gone now. Reorganize _generic_set_opp_regulator() in order to avoid using "str

[PATCH 0/4] PM / OPP: Minor cleanups

2017-05-16 Thread Viresh Kumar
Hi, Here are few cleanup patches for the OPP core. The first two simplify the code that was written specifically due to the limitations that we had because of RCUs. We don't RCUs anymore and this can be simplified. The last two take care of specific corner cases. Rebased over pm/linux-next and t

Re: [PATCH v1] cpufreq: kirkwood-cpufreq:- Handle return value of clk_prepare_enable

2017-05-16 Thread Viresh Kumar
On 16-05-17, 12:41, Arvind Yadav wrote: > Here, Clock enable can failed. So adding an error check for > clk_prepare_enable. Rewrite it as: clk_prepare_enable() can fail here and we must check its return value. > Signed-off-by: Arvind Yadav > --- > drivers/cpufreq/kirkwood-cpufreq.c | 13 ++

[PATCH v3 2/2] powerpc/mm/hugetlb: Add support for 1G huge pages

2017-05-16 Thread Aneesh Kumar K.V
POWER9 supports hugepages of size 2M and 1G in radix MMU mode. This patch enables the usage of 1G page size for hugetlbfs. This also update the helper such we can do 1G page allocation at runtime. We still don't enable 1G page size on DD1 version. This is to avoid doing workaround mentioned in com

[PATCH v3 1/2] mm/hugetlb: Cleanup ARCH_HAS_GIGANTIC_PAGE

2017-05-16 Thread Aneesh Kumar K.V
This moves the #ifdef in C code to a Kconfig dependency. Also we move the gigantic_page_supported() function to be arch specific. This gives arch to conditionally enable runtime allocation of gigantic huge page. Architectures like ppc64 supports different gigantic huge page size (16G and 1G) based

Re: [PATCH] perf report: do not drop last inlined frame

2017-05-16 Thread Namhyung Kim
On Tue, May 16, 2017 at 11:54:33PM +0200, Milian Wolff wrote: > The very last inlined frame, i.e. the one furthest away from the > non-inlined frame, was silently dropped. This is apparent when > comparing the output of `perf script` and `addr2line`: > > ~~ > $ perf script --inline > ... > a.o

Re: [PATCH] perf report: always honor callchain order for inlined nodes

2017-05-16 Thread Namhyung Kim
On Tue, May 16, 2017 at 11:54:22PM +0200, Milian Wolff wrote: > So far, the inlined nodes where only reversed when we built perf > against libbfd. If that was not available, the addr2line fallback > code path was missing the inline_list__reverse call. > > Now this is done at the central place insi

[PATCH V2] i2c: xgene: Set ACPI_COMPANION_I2C

2017-05-16 Thread Tin Huynh
With ACPI, i2c-core requires ACPI companion to be set in order for it to create slave device. This patch sets the ACPI companion accordingly. Signed-off-by: Tin Huynh --- drivers/i2c/busses/i2c-xgene-slimpro.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Change from V1: - Add S

Re: [PATCH v3 00/11] Broadcom Stingray SOC Initial Support

2017-05-16 Thread Anup Patel
On Wed, May 17, 2017 at 12:23 AM, Olof Johansson wrote: > Hi, > > > > On Tue, May 16, 2017 at 4:30 AM, Anup Patel wrote: >> This patchset adds initial support of Broadcom Stingray SOC >> by reusing existing Broadcom iProc device drivers. >> >> Most of the patches in this patchset are DT patches e

Re: [PATCH] perf report: fix memory leak in addr2line when called by addr2inlines

2017-05-16 Thread Namhyung Kim
On Tue, May 16, 2017 at 11:53:59PM +0200, Milian Wolff wrote: > When a filename was found in addr2line it was duplicated via strdup > but never freed. Now we pass NULL and handle this gracefully in > addr2line. > > Detected by Valgrind: > > ==16331== 1,680 bytes in 21 blocks are definitely lost i

linux-next: Tree for May 17

2017-05-16 Thread Stephen Rothwell
Hi all, Changes since 20170516: New trees: nand-fixes (yesterday) spi-nor-fixes The file-locks tree gained a build failure so I used the version from next-20170516. The netfilter tree gained a build failure for which I applied a fix patch. The sound tree gained a build failure so I

[PATCH net-next V5 1/9] ptr_ring: add ptr_ring_unconsume

2017-05-16 Thread Jason Wang
From: "Michael S. Tsirkin" Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally can't do this and have to drop entries, but this implies ring is full

[PATCH net-next V5 0/9] vhost_net rx batch dequeuing

2017-05-16 Thread Jason Wang
This series tries to implement rx batching for vhost-net. This is done by batching the dequeuing from skb_array which was exported by underlayer socket and pass the sbk back through msg_control to finish userspace copying. This is also the requirement for more batching implemention on rx path. Tes

[PATCH net-next V5 4/9] skb_array: introduce batch dequeuing

2017-05-16 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 25 + 1 file changed, 25 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index 79850b6..35226cd 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -97,21 +97,

[PATCH net-next V5 9/9] vhost_net: try batch dequing from skb array

2017-05-16 Thread Jason Wang
We used to dequeue one skb during recvmsg() from skb_array, this could be inefficient because of the bad cache utilization and spinlock touching for each packet. This patch tries to batch them by calling batch dequeuing helpers explicitly on the exported skb array and pass the skb back through msg_

[PATCH net-next V5 7/9] tun: support receiving skb through msg_control

2017-05-16 Thread Jason Wang
This patch makes tun_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tun.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c

[PATCH net-next V5 5/9] tun: export skb_array

2017-05-16 Thread Jason Wang
This patch exports skb_array through tun_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tun.c | 13 + include/linux/if_tun.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tun.c b/drivers/net/tun

[PATCH net-next V5 6/9] tap: export skb_array

2017-05-16 Thread Jason Wang
This patch exports skb_array through tap_get_skb_array(). Caller can then manipulate skb array directly. Signed-off-by: Jason Wang --- drivers/net/tap.c | 13 + include/linux/if_tap.h | 5 + 2 files changed, 18 insertions(+) diff --git a/drivers/net/tap.c b/drivers/net/tap

[PATCH net-next V5 8/9] tap: support receiving skb from msg_control

2017-05-16 Thread Jason Wang
This patch makes tap_recvmsg() can receive from skb from its caller through msg_control. Vhost_net will be the first user. Signed-off-by: Jason Wang --- drivers/net/tap.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/net/tap.c b/drivers/net/tap.c index

[PATCH net-next V5 3/9] ptr_ring: introduce batch dequeuing

2017-05-16 Thread Jason Wang
This patch introduce a batched version of consuming, consumer can dequeue more than one pointers from the ring at a time. We don't care about the reorder of reading here so no need for compiler barrier. Signed-off-by: Jason Wang --- include/linux/ptr_ring.h | 65 +

[PATCH net-next V5 2/9] skb_array: introduce skb_array_unconsume

2017-05-16 Thread Jason Wang
Signed-off-by: Jason Wang --- include/linux/skb_array.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/skb_array.h b/include/linux/skb_array.h index f4dfade..79850b6 100644 --- a/include/linux/skb_array.h +++ b/include/linux/skb_array.h @@ -156,6 +156,12 @@ static void __

[PATCH] crypto: x86/aes - Don't use %rbp as temporary register

2017-05-16 Thread Eric Biggers
From: Eric Biggers When using the "aes-asm" implementation of AES (*not* the AES-NI implementation) on an x86_64, v4.12-rc1 kernel with lockdep enabled, the following warning was reported, along with a long unwinder dump: WARNING: kernel stack regs at c9643558 in kworker/u4:2:155

[PATCH net v3] net: x25: fix one potential use-after-free issue

2017-05-16 Thread linzhang
The function x25_init is not properly unregister related resources on error handler.It is will result in kernel oops if x25_init init failed, so add properly unregister call on error handler. Also, i adjust the coding style and make x25_register_sysctl properly return failure. Signed-off-by: linz

RE: [PATCH 01/11] mwifiex: fixup error cases in mwifiex_add_virtual_intf()

2017-05-16 Thread Xinming Hu
Hi, This patch serials looks fine, thanks. > -Original Message- > From: linux-wireless-ow...@vger.kernel.org > [mailto:linux-wireless-ow...@vger.kernel.org] On Behalf Of Brian Norris > Sent: 2017年5月13日 0:42 > To: Ganapathi Bhat; Nishant Sarmukadam > Cc: linux-kernel@vger.kernel.org; Dmitr

Re: [PATCH] kprobes: Document how optimized kprobes are removed from module unload

2017-05-16 Thread Masami Hiramatsu
On Tue, 16 May 2017 22:46:02 -0400 Steven Rostedt wrote: > On Wed, 17 May 2017 10:47:07 +0900 > Masami Hiramatsu wrote: > > > On Tue, 16 May 2017 14:58:35 -0400 > > Steven Rostedt wrote: > > > > > From: Steven Rostedt (VMware) > > > > > > Thomas discovered a bug where the kprobe trace tests

Re: [PATCHv2] Make initramfs honor CONFIG_DEVTMPFS_MOUNT

2017-05-16 Thread Michael Ellerman
Rob Landley writes: > diff --git a/init/main.c b/init/main.c > index f866510..9ec09ff 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -1055,8 +1049,17 @@ static noinline void __init kernel_init_freeable(void) > if (sys_access((const char __user *) ramdisk_execute_command, 0) != 0) { >

[PATCH] lpfc: fix build issue if NVME_FC_TARGET is not defined

2017-05-16 Thread James Smart
fix build issue if NVME_FC_TARGET is not defined. noop the code. The code will never be invoked if target mode is not enabled. Signed-off-by: Dick Kennedy Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_nvmet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_n

Re: [PATCH V2 6/6] tty: serial: lpuart: add a more accurate baud rate calculation method

2017-05-16 Thread Dong Aisheng
On Mon, May 15, 2017 at 10:06:41AM -0700, Stefan Agner wrote: > On 2017-05-15 00:48, Dong Aisheng wrote: > > On new LPUART versions, the oversampling ratio for the receiver can be > > changed from 4x (00011) to 32x (1) which could help us get a more > > accurate baud rate divider. > > > > The

linux-next: build failure after merge of the netfilter tree

2017-05-16 Thread Stephen Rothwell
Hi all, After merging the netfilter tree, today's linux-next build (i386 defconfig) failed like this: net/netfilter/x_tables.c: In function 'xt_match_to_user': net/netfilter/x_tables.c:303:13: error: implicit declaration of function 'COMPAT_XT_ALIGN' [-Werror=implicit-function-declaration] C

Re: [PATCH v5 3/3] phy: Group vendor specific phy drivers

2017-05-16 Thread Vivek Gautam
On 05/16/2017 03:40 PM, Kishon Vijay Abraham I wrote: Hi Vivek, On Thursday 11 May 2017 12:17 PM, Vivek Gautam wrote: Adding vendor specific directories in phy to group phy drivers under their respective vendor umbrella. Also updated the MAINTAINERS file to reflect the correct directory stru

[PATCH 0/3] add and fix some device node for rk322x SoC

2017-05-16 Thread Frank Wang
These series of patches fix some device node errors and add watchdog device node support for rk322x SoC. Frank Wang (2): arm: dts: rk322x: correct uart2 pinctrl and add another sets arm: dts: rk322x: add watchdog device node. Sugar Zhang (1): arm: dts: rk322x: fix i2s1 pinctrl error arch/

[PATCH 3/3] arm: dts: rk322x: add watchdog device node.

2017-05-16 Thread Frank Wang
Add watchdog device node for rk322x SoC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index ea1239a..221251a 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/a

[PATCH 2/3] arm: dts: rk322x: correct uart2 pinctrl and add another sets

2017-05-16 Thread Frank Wang
Correct UART2 PINCTRL flag and add another PINCTRL sets for UART2 in case of confict with SDMMC. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dt

[PATCH 1/3] arm: dts: rk322x: fix i2s1 pinctrl error

2017-05-16 Thread Frank Wang
From: Sugar Zhang Refer to Chapter 5.3.2 of rk3229 TRM, we can see that GPIO1A[2,4,5] using RK_FUNC_2 not RK_FUNC_1. This patch fixes it. Signed-off-by: Frank Wang --- arch/arm/boot/dts/rk322x.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk32

Re: [PATCH v3] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-16 Thread Baoquan He
On 05/17/17 at 11:35am, Baoquan He wrote: > On 05/17/17 at 10:55am, Dave Young wrote: > > Hi, Baoquan > > > arch/x86/platform/efi/efi_64.c | 69 > > > +- > > > 1 file changed, 61 insertions(+), 8 deletions(-) > > > > > > diff --git a/arch/x86/platform/efi/

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Dong Aisheng
On Tue, May 16, 2017 at 02:15:08PM +0300, Nikita Yushchenko wrote: > > static u32 lpuart32_read(void __iomem *addr) > > { > > - return ioread32be(addr); > > + return lpuart_is_be ? ioread32be(addr) : readl(addr); > > } > > > > static void lpuart32_write(u32 val, void __iomem *addr) > > {

Re: [PATCH v3] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-16 Thread Baoquan He
On 05/17/17 at 10:55am, Dave Young wrote: > Hi, Baoquan > > arch/x86/platform/efi/efi_64.c | 69 > > +- > > 1 file changed, 61 insertions(+), 8 deletions(-) > > > > diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c > > index c488

Re: [V2, 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Dong Aisheng
On Tue, May 16, 2017 at 02:08:12PM +0300, Nikita Yushchenko wrote: > > @@ -2000,6 +2007,7 @@ static int lpuart_probe(struct platform_device *pdev) > > } > > sport->port.line = ret; > > sport->lpuart32 = sdata->is_32; > > + lpuart_is_be = sdata->is_be; > > Setting a global variable in

Re: [PATCH V2 2/6] tty: serial: lpuart: add little endian 32 bit register support

2017-05-16 Thread Dong Aisheng
On Mon, May 15, 2017 at 04:36:25PM +0300, Andy Shevchenko wrote: > On Mon, May 15, 2017 at 10:48 AM, Dong Aisheng wrote: > > It's based on the exist lpuart32 read/write implementation. > > Same as per previous comment (perhaps not in other UART driver, but > some might have been using device prop

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-16 Thread Chris Packham
On 17/05/17 15:09, Ye Xiaolong wrote: > On 05/16, Chris Packham wrote: >> On 16/05/17 20:23, kbuild test robot wrote: >>> Hi Chris, >>> >>> [auto build test ERROR on hwmon/hwmon-next] >>> [also build test ERROR on v4.12-rc1 next-20170516] >>> [

Re: [kbuild-all] [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-16 Thread Ye Xiaolong
On 05/16, Chris Packham wrote: >On 16/05/17 20:23, kbuild test robot wrote: >> Hi Chris, >> >> [auto build test ERROR on hwmon/hwmon-next] >> [also build test ERROR on v4.12-rc1 next-20170516] >> [if your patch is applied to the wrong git tree, please drop us a no

Re: [PATCH v2 1/4] ftrace: Simplify glob handling in unregister_ftrace_function_probe_func()

2017-05-16 Thread Masami Hiramatsu
On Tue, 16 May 2017 23:21:25 +0530 "Naveen N. Rao" wrote: > Handle a NULL glob properly and simplify the check. > Looks good to me. Reviewed-by: Masami Hiramatsu Thanks! > Signed-off-by: Naveen N. Rao > --- > kernel/trace/ftrace.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-

Re: [Patch v2] mm/vmscan: fix unsequenced modification and access warning

2017-05-16 Thread Nick Desaulniers
> I guess it is worth reporting this to clang bugzilla. Could you take > care of that Nick? Done: https://bugs.llvm.org//show_bug.cgi?id=33065

linux-next: build failure after merge of the scsi-mkp tree

2017-05-16 Thread Stephen Rothwell
of NVMET IO context resources") CONFIG_NVME_TARGET_FC is not set for this build. I have used the scsi-mkp tree from next-20170516 for today. -- Cheers, Stephen Rothwell

Re: [PATCH v3] x86/efi: Correct ident mapping of efi old_map when kalsr enabled

2017-05-16 Thread Dave Young
Hi, Baoquan On 05/13/17 at 11:56am, Baoquan He wrote: > For EFI with 'efi=old_map' kernel option specified, Kernel will panic > when kaslr is enabled. > > The back trace is: > > BUG: unable to handle kernel paging request at 7febd57e > IP: 0x7febd57e > PGD 1025a067 > PUD 0 > > Oops: 001

Re: [PATCH] hwspinlock: sprd: Add hardware spinlock driver

2017-05-16 Thread Baolin Wang
Hi Bjorn, On 17 May 2017 at 03:18, Bjorn Andersson wrote: > On Tue 16 May 00:54 PDT 2017, Baolin Wang wrote: > >> diff --git a/drivers/hwspinlock/Makefile b/drivers/hwspinlock/Makefile >> index 6b59cb5a..03c442f 100644 >> --- a/drivers/hwspinlock/Makefile >> +++ b/drivers/hwspinlock/Makefile >> @

Re: [PATCH] kprobes: Document how optimized kprobes are removed from module unload

2017-05-16 Thread Steven Rostedt
On Wed, 17 May 2017 10:47:07 +0900 Masami Hiramatsu wrote: > On Tue, 16 May 2017 14:58:35 -0400 > Steven Rostedt wrote: > > > From: Steven Rostedt (VMware) > > > > Thomas discovered a bug where the kprobe trace tests had a race > > condition where the kprobe_optimizer called from a delayed wo

  1   2   3   4   5   6   7   8   9   >