Re: [PATCH v2 2/3] crypto: ccp - Introduce the AMD Secure Processor device

2017-07-06 Thread kbuild test robot
Hi Brijesh, [auto build test ERROR on cryptodev/master] [also build test ERROR on next-20170705] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Brijesh-Singh/Introduce-AM

Re: [PATCH] bus: arm-cci: constify attribute_group structures.

2017-07-06 Thread Suzuki K Poulose
On 06/07/17 05:53, Arvind Yadav wrote: Hi, On Wednesday 05 July 2017 09:33 PM, Suzuki K Poulose wrote: On 03/07/17 08:46, Arvind Yadav wrote: attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So ma

Re: [RFC PATCH 1/5] base: dma-mapping: Export commonly used symbols

2017-07-06 Thread Tomasz Figa
On Thu, Jul 6, 2017 at 5:34 PM, Tomasz Figa wrote: > On Thu, Jul 6, 2017 at 5:26 PM, Arnd Bergmann wrote: >> On Thu, Jul 6, 2017 at 3:44 AM, Tomasz Figa wrote: >>> On Thu, Jul 6, 2017 at 2:20 AM, Christoph Hellwig wrote: On Thu, Jul 06, 2017 at 12:22:35AM +0900, Tomasz Figa wrote: >>

Re: [PATCH] mwifiex: uninit wakeup info when failed to add card

2017-07-06 Thread jeffy
Hi brian, On 07/06/2017 02:08 AM, Brian Norris wrote: On Mon, Jul 03, 2017 at 03:54:30PM +0800, Jeffy Chen wrote: We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info

[PATCH] cpu_pm: replace raw_notifier to atomic_notifier

2017-07-06 Thread Alex Shi
This patch replace a rwlock and raw notifier by atomic notifier which protected by spin_lock and rcu. The first to reason to have this replace is due to a 'scheduling while atomic' bug of RT kernel on arm/arm64 platform. On arm/arm64, rwlock cpu_pm_notifier_lock in cpu_pm cause a potential schedu

[PATCHv2 0/2] rtc: add support for STM32H7 RTC

2017-07-06 Thread Amelie Delaunay
Add support for STM32H7 Real Time Clock variant. Difference is regarding clocks: there is a 'pclk' clock on STM32H7 for register access. Amelie Delaunay (2): dt-bindings: rtc: stm32: add support for STM32H7 rtc: stm32: add STM32H7 RTC support .../devicetree/bindings/rtc/st,stm32-rtc.txt

[PATCHv2 1/2] dt-bindings: rtc: stm32: add support for STM32H7

2017-07-06 Thread Amelie Delaunay
This patch documents support for STM32H7 Real Time Clock. It introduces a new compatible and rework clock definitions. On STM32H7 we have a 'pclk' clock for register access, in addition to the 'rtc_ck' clock. Acked-by: Rob Herring Signed-off-by: Amelie Delaunay --- .../devicetree/bindings/rtc/s

[PATCHv2 2/2] rtc: stm32: add STM32H7 RTC support

2017-07-06 Thread Amelie Delaunay
This patch adds support for STM32H7 RTC. On STM32H7, the RTC bus interface clock (APB clock) needs to be enabled. Signed-off-by: Amelie Delaunay --- drivers/rtc/rtc-stm32.c | 82 +++-- 1 file changed, 65 insertions(+), 17 deletions(-) diff --git a/dri

[PATCH] net: axienet: add support for standard phy-mode binding

2017-07-06 Thread Alvaro Gamez Machado
Keep supporting proprietary "xlnx,phy-type" attribute and add support for MII connectivity to the PHY. Signed-off-by: Alvaro Gamez Machado --- drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 48 +-- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/drivers/n

Re: [PATCH 6/6] net: stmmac: revert "support future possible different internal phy mode"

2017-07-06 Thread Corentin Labbe
On Sun, Jul 02, 2017 at 02:31:59PM +0200, Corentin Labbe wrote: > Since internal phy-mode is reserved for non-xMII protocol we cannot use > it with dwmac-sun8i > This reverts commit 1c2fa5f84683 ("net: stmmac: support future possible > different internal phy mode") > > Signed-off-by: Corentin Lab

[PATCH v4 1/2] dt-bindings: i2c: Add Spreadtrum I2C controller documentation

2017-07-06 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum I2C controller device. Signed-off-by: Baolin Wang Acked-by: Rob Herring --- Changes since v3: - Add Ack from RobH. Changes since v2: - Change compatible strings to be SoC specific. Changes since v1: - No updates. --- Documentation/de

[PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-07-06 Thread Baolin Wang
This patch adds the I2C controller driver for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- Changes since v3: - Use SPDX-License-Identifier tag instead. Changes since v2: - Remove some redundant comments and parens. - Define macros instead of magic number. - Add some comments to

Re: [PATCH 8/9] RISC-V: User-facing API

2017-07-06 Thread Will Deacon
On Wed, Jul 05, 2017 at 07:01:41PM -0700, Christoph Hellwig wrote: > I'm a bit concerned about these cmpxchg syscalls, and I'd like to > understand if my concerns are justified. > > For a new instruction set that starts out in the 201x years we really > should have cmpxchg as a mandatory instructi

[PATCH] ARM: sunxi: h3/h5: Correct emac register size

2017-07-06 Thread Corentin Labbe
The datasheet said that emac register size is 0x1000 not 0x104 Signed-off-by: Corentin Labbe --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 716e7d668dec..5a5

Re: [PATCH v2 00/53] Get rid of Docbook

2017-07-06 Thread Markus Heiser
> Am 05.07.2017 um 23:45 schrieb Jim Davis : > > On Fri, Jun 16, 2017 at 7:03 AM, Markus Heiser > wrote: >> > >> docproc and some lines in the Makefile & .gitignore >> >> ./scripts/docproc.c >> ./scripts/.docproc.cmd >> ./scripts/Makefile >> ./scripts/.gitignore > > With 4.12, running make x

[PATCH] apparmor: Fix shadowed local variable in unpack_trans_table()

2017-07-06 Thread Geert Uytterhoeven
with W=2: security/apparmor/policy_unpack.c: In function ‘unpack_trans_table’: security/apparmor/policy_unpack.c:469: warning: declaration of ‘pos’ shadows a previous local security/apparmor/policy_unpack.c:451: warning: shadowed declaration is here Rename the old "pos" to "saved_pos

Re: [RFC PATCH linus] tcp: md5: tcp_md5_do_lookup_exact() can be static

2017-07-06 Thread Fengguang Wu
Hi Stephen, On Thu, Jul 06, 2017 at 10:27:12AM +1000, Stephen Rothwell wrote: Hi, Not sure why you sent this to me ... it fixes a commit in the net-next tree (now in Linus' tree) ... Yeah sorry -- it's a bug in the robot. On Thu, 6 Jul 2017 07:58:53 +0800 kbuild test robot wrote: Fixes:

Re: [PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-07-06 Thread Andy Shevchenko
On Thu, Jul 6, 2017 at 11:47 AM, Baolin Wang wrote: > This patch adds the I2C controller driver for Spreadtrum SC9860 platform. > Reviewed-by: Andy Shevchenko P.S. There is still room for improvement, though it either requires additional changes to the kernel or minor on this stage. Would be do

[tip:smp/urgent] smp/hotplug: Move unparking of percpu threads to the control CPU

2017-07-06 Thread tip-bot for Thomas Gleixner
Commit-ID: 9cd4f1a4e7a858849e889a081a99adff83e08e4c Gitweb: http://git.kernel.org/tip/9cd4f1a4e7a858849e889a081a99adff83e08e4c Author: Thomas Gleixner AuthorDate: Tue, 4 Jul 2017 22:20:23 +0200 Committer: Thomas Gleixner CommitDate: Thu, 6 Jul 2017 10:55:10 +0200 smp/hotplug: Move unpa

[PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Lin Zhang
In the pull_pages code block, if the first frags size > eat, we can end the loop in advance to avoid extra copy. Signed-off-by: Lin Zhang --- net/core/skbuff.c | 4 1 file changed, 4 insertions(+) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f990eb8..c00a1df 100644 --- a/net/co

Re: [PATCH v2 0/3] pwm: add pwm AO on meson gx

2017-07-06 Thread Jerome Brunet
On Thu, 2017-07-06 at 08:59 +0200, Thierry Reding wrote: > On Thu, Jun 08, 2017 at 02:24:13PM +0200, Jerome Brunet wrote: > > The pwms found in the AO domain of the meson gx family have different > > clock sources than the ones found in the EE domain. The AO pwms only > > have 2 connected clock inp

Re: [PATCH] sctp: set the value of flowi6_oif to sk_bound_dev_if to make sctp_v6_get_dst to find the correct route entry.

2017-07-06 Thread Ethan Zhao
Zheng, On Thu, Jul 6, 2017 at 3:00 PM, Zheng Li wrote: > From: Zheng Li > > if there are several same route entries with different outgoing net device, > application's socket specifies the oif through setsockopt with > SO_BINDTODEVICE, sctpv6 should choose the route entry whose outgoing net > de

[PATCH] input: rmi4: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
If CONFIG_RMI4_F34 is disable, it'll through compilation error. drivers/input/rmi4/rmi_f34.c:594:5: error: redefinition of ‘rmi_f34_create_sysfs’ int rmi_f34_create_sysfs(struct rmi_device *rmi_dev) ^ In file included from drivers/input/rmi4/rmi_f34.c:17:0: drivers/input/rmi4/rmi_driver.h:1

Re: [PATCH] ARM: sun7i: dts: enable battery power supply subnode on cubietruck

2017-07-06 Thread Maxime Ripard
On Wed, Jul 05, 2017 at 10:30:20AM +0200, Alexander Syring wrote: > The Cubietruck has an AXP209 PMIC with battery connector. > > This enables the battery power supply subnode. > > Signed-off-by: Alexander Syring Queued for 4.14, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux

Re: [PATCH v2 2/4] MIPS: VDSO: Add implementation of clock_gettime() fallback

2017-07-06 Thread James Hogan
On Thu, Jul 06, 2017 at 01:00:34AM +0100, Maciej W. Rozycki wrote: > On Wed, 28 Jun 2017, Aleksandar Markovic wrote: > > > diff --git a/arch/mips/vdso/gettimeofday.c b/arch/mips/vdso/gettimeofday.c > > index fd7d433..5f63375 100644 > > --- a/arch/mips/vdso/gettimeofday.c > > +++ b/arch/mips/vdso/g

[PATCH v3 0/5] selftests: ftrace: ftracetest improvements

2017-07-06 Thread Masami Hiramatsu
Hello, Here is v3 of ftracetest improvements, including test return code change and immediate logging features. This version adds 1 patch which changes test command options to check whether given string is zero-length or not. Changes in v3: - [4/5]: Replace [ "$VAR" ] with [ ! -z "$VAR" ] - [5

[PATCH v3 1/5] selftests: ftrace: Do not failure if there is unsupported tests

2017-07-06 Thread Masami Hiramatsu
Do not return failure exit code (1) for unsupported testcases, since it is expected for stable kernels. Previously, ftracetest is expected to run only on current release for avoiding regressions. However, nowadays we run it on stable kernels. This means some test cases must return unsupported resu

[PATCH v3 2/5] selftests: ftrace: Add --fail-unsupported option

2017-07-06 Thread Masami Hiramatsu
Add --fail-unsupported option to fail the test result if ftracetest gets UNSUPPORTED result. UNSUPPORTED usually happens when the kernel is old (e.g. stable tree) or some kernel feature is disabled. However, if newer kernel has any bug or regression, it can make test results in UNSUPPORTED too. Th

[PATCH v3 3/5] selftests: ftrace: Add more verbosity for immediate log

2017-07-06 Thread Masami Hiramatsu
Add 3-level verbosity for showing traced command log on console immediately. Since some test cases can cause kernel pacic if there is a probrem (like regression etc.), we can not know which command caused the problem without traced command log. This verbosity (-vvv) solves that because it shows the

[git pull] vfs.git pile 6

2017-07-06 Thread Al Viro
[6 more piles tonight with several more left for tomorrow] DRM compat ioctl handling. Kills double-copies in there and tons of field-by-field copyin/copyout. Several dead ioctls put to rest, while we are at it - the native counterparts had been gone for a decade, so we can bloody well fa

[git pull] vfs.git pile 7

2017-07-06 Thread Al Viro
This part is basically untangling various compat stuff. Compat syscalls moved to their native counterparts, getting rid of quite a bit of double-copying and/or set_fs() uses. A lot of field-by-field copyin/copyout killed off. * kernel/compat.c is much closer to containing just the copyin/

[git pull] vfs.git pile 8

2017-07-06 Thread Al Viro
Several alpha osf_sys.c uaccess cleanups - getdomainname() had insane byte-by-byte copying of string to userland (instead of strnlen + copy_to_user) plus yet another compat variant of timeval/itimerval with associated copyin/copyout primitives. The following changes since commit 92ebce5ac5

[PATCH v3 4/5] selftests: ftrace: Output only to console with "--logdir -"

2017-07-06 Thread Masami Hiramatsu
Output logs only to console if "-" is given to --logdir option. In this case, ftracetest doesn't record any log on the disk, and all logs immediately shown (including all command logs.) Since there is no "tee" in the middle of command and console, it outputs the log really soon. This option is use

[git pull] vfs.git pile 10

2017-07-06 Thread Al Viro
uaccess str...() dead code removals. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git uaccess.strlen for you to

[git pull] vfs.git pile 9

2017-07-06 Thread Al Viro
Several open-coded probe_kernel_read()... The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.probe_kernel_rea

[PATCH v3 5/5] selftests: ftrace: Check given string is not zero-length

2017-07-06 Thread Masami Hiramatsu
Use [ ! -z "$VAR" ] instead of [ "$VAR" ] to check whether the given string variable is not zero-length since it obviously shows what it means. Signed-off-by: Masami Hiramatsu --- tools/testing/selftests/ftrace/ftracetest |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Pavel Machek
On Thu 2017-07-06 10:01:32, Thierry Reding wrote: > On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: > > From: huang lin > > > > Some panels (i.e. N116BGE-L41), in their power sequence specifications, > > request a delay between set the PWM signal and enable the backlight a

[git pull] vfs.git pile 11

2017-07-06 Thread Al Viro
iov_iter/uaccess/hardening pile. For one thing, it trims the inline part of copy_to_user/copy_from_user to the minimum that *does* need to be inlined - object size checks, basically. For another, it sanitizes the checks for iov_iter primitives. There are 4 groups of checks: access_ok(),

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >Hi Baoquan, everyone, > >I'm also interested in KASLR/EFI related issue (but not the same issue >with yours, so I separated the thread.) > >This patch is based on Baoquan's recent patches[1], adding more code >on the new function pro

Re: [RFC] pwm: Add Xilinx AXI Timer in PWM mode support

2017-07-06 Thread Thierry Reding
On Tue, Jun 27, 2017 at 12:05:22PM +0200, Alvaro Gamez Machado wrote: > This patch adds support for the IP core provided by Xilinx. > This IP core can function as a two independent timers, but can also use > both counters as values for period and duty cycle of a PWM output. > > Signed-off-by: Alva

Re: [PATCH v4 2/2] i2c: Add Spreadtrum I2C controller driver

2017-07-06 Thread Baolin Wang
Hi Andy, On 四, 7月 06, 2017 at 12:00:29下午 +0300, Andy Shevchenko wrote: > On Thu, Jul 6, 2017 at 11:47 AM, Baolin Wang > wrote: > > This patch adds the I2C controller driver for Spreadtrum SC9860 platform. > > > > Reviewed-by: Andy Shevchenko > > P.S. There is still room for improvement, thou

[PATCH] input: coresight: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
If CONFIG_CORESIGHT is disable, it'll through compilation error. drivers/hwtracing/coresight/coresight-etm-perf.c:462:5: error: redefinition of ‘etm_perf_symlink’ int etm_perf_symlink(struct coresight_device *csdev, bool link) ^ In file included from drivers/hwtracing/coresight/coresight-et

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: > In the pull_pages code block, if the first frags size > eat, > we can end the loop in advance to avoid extra copy. > > Signed-off-by: Lin Zhang > --- > net/core/skbuff.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/net/core/s

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Daniel Thompson
On 06/07/17 10:12, Pavel Machek wrote: On Thu 2017-07-06 10:01:32, Thierry Reding wrote: On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: From: huang lin Some panels (i.e. N116BGE-L41), in their power sequence specifications, request a delay between set the PWM signal a

Re: [PATCH v2 0/3] pwm: add pwm AO on meson gx

2017-07-06 Thread Thierry Reding
On Thu, Jul 06, 2017 at 11:02:20AM +0200, Jerome Brunet wrote: > On Thu, 2017-07-06 at 08:59 +0200, Thierry Reding wrote: > > On Thu, Jun 08, 2017 at 02:24:13PM +0200, Jerome Brunet wrote: > > > The pwms found in the AO domain of the meson gx family have different > > > clock sources than the ones

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Baoquan He
Hi Naoya Horiguchi, Thanks for making this! On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > Hi Baoquan, everyone, > > I'm also interested in KASLR/EFI related issue (but not the same issue > with yours, so I separated the thread.) > > This patch is based on Baoquan's recent patches[1], adding

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Sudeep Holla
Hi Jassi, On 06/07/17 07:28, Jassi Brar wrote: > On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: > >> >> I have posted the SCMI patches now[1], >> > I wish I was CC'ed on that. Now LKML seems too busy to forward it. > Yes, my mistake, I should have cc-ed you. >> please let me know how to

[PATCH v2] irqchip/mips-gic: Add missing shared interrupt handler

2017-07-06 Thread jrjang
From: Jun-Ru Chang Commit b87281e7f205 ("irqchip/mips-gic: Remove device IRQ domain") removes the device IRQ domain and uses gic_irq_domain_alloc() to allocate the shared/local domain. However, the shared interrupt handler is not set after allocating. It causes that the system hangs with "unexpec

Re: [PATCH 2/2] Staging: dgnc: I have fixed the changes in dgnc_neo.c This is a patch to the dgnc_neo.c warning udealy to usleep range Signed-off-by: Yash Omer

2017-07-06 Thread Dan Carpenter
On Thu, Jul 06, 2017 at 07:29:32AM +0530, yash007 wrote: > From: Yash Omer > Send your patch to yourself until you figure out the right format then send it to the list. regards, dan carpenter

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 02:16 -0700, Eric Dumazet wrote: > On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: > > In the pull_pages code block, if the first frags size > eat, > > we can end the loop in advance to avoid extra copy. > > > > Signed-off-by: Lin Zhang > > --- > > net/core/skbuff.c | 4

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: > On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: > >Hi Baoquan, everyone, > > > >I'm also interested in KASLR/EFI related issue (but not the same issue > >with yours, so I separated the thread.) > > > >This patch is based o

Re: [PATCH v2 2/4] pwm-backlight: add support for pwm-delay-us property

2017-07-06 Thread Thierry Reding
On Thu, Jul 06, 2017 at 10:17:18AM +0100, Daniel Thompson wrote: > On 06/07/17 10:12, Pavel Machek wrote: > > On Thu 2017-07-06 10:01:32, Thierry Reding wrote: > > > On Fri, Jun 30, 2017 at 01:21:07PM +0200, Enric Balletbo i Serra wrote: > > > > From: huang lin > > > > > > > > Some panels (i.e. N

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Jassi Brar
On Thu, Jul 6, 2017 at 2:48 PM, Sudeep Holla wrote: > Hi Jassi, > > On 06/07/17 07:28, Jassi Brar wrote: >> On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: >> >>> >>> I have posted the SCMI patches now[1], >>> >> I wish I was CC'ed on that. Now LKML seems too busy to forward it. >> > > Yes,

Re: [PATCH v2] zswap: Zero-filled pages handling

2017-07-06 Thread Srividya Desireddy
On Wed, Jul 6, 2017 at 10:49 AM, Sergey Senozhatsky wrote: > On (07/02/17 20:28), Seth Jennings wrote: >> On Sun, Jul 2, 2017 at 9:19 AM, Srividya Desireddy >> > Zswap is a cache which compresses the pages that are being swapped out >> > and stores them into a dynamically allocated RAM-based memory

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Andrea Arcangeli
Hello, On Thu, Jul 06, 2017 at 09:45:13AM +0200, Christoffer Dall wrote: > Let's look at the callers to stage2_get_pmd, which is the only caller of > stage2_get_pud, where the problem was observed: > > user_mem_abort >-> stage2_set_pmd_huge > -> stage2_get_pmd > > user_mem_abort

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-07-06 Thread Sudeep Holla
On 06/07/17 10:27, Jassi Brar wrote: > On Thu, Jul 6, 2017 at 2:48 PM, Sudeep Holla wrote: >> Hi Jassi, >> >> On 06/07/17 07:28, Jassi Brar wrote: >>> On Wed, Jul 5, 2017 at 11:32 PM, Sudeep Holla wrote: >>> I have posted the SCMI patches now[1], >>> I wish I was CC'ed on that. N

Re: [PATCH] video: backlight: pwm_bl.c: make of_device_id structure to const

2017-07-06 Thread Thierry Reding
On Wed, Jul 05, 2017 at 11:55:09PM +0800, Lynn Lei wrote: > Fixed a of_device_id structure normally be const warning issue which > checked by scripts/checkpatch.pl: > WARNING: struct of_device_id should normally be const > > Signed-off-by: Lynn Lei > --- > drivers/video/backlight/pwm_bl.c | 2

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Suzuki K Poulose
On 06/07/17 08:45, Christoffer Dall wrote: On Thu, Jul 06, 2017 at 09:07:49AM +0200, Alexander Graf wrote: On 05.07.17 10:57, Suzuki K Poulose wrote: Hi Alex, On Wed, Jul 05, 2017 at 08:20:31AM +0200, Alexander Graf wrote: The kvm_age_hva callback may be called all the way concurrently whil

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread lin zhang
2017-07-06 17:23 GMT+08:00 Eric Dumazet : > On Thu, 2017-07-06 at 02:16 -0700, Eric Dumazet wrote: >> On Thu, 2017-07-06 at 17:01 +0800, Lin Zhang wrote: >> > In the pull_pages code block, if the first frags size > eat, >> > we can end the loop in advance to avoid extra copy. >> > >> > Signed-off-b

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Naoya Horiguchi
On Thu, Jul 06, 2017 at 05:18:09PM +0800, Baoquan He wrote: > Hi Naoya Horiguchi, > > Thanks for making this! > > On 07/06/17 at 08:31am, Naoya Horiguchi wrote: > > Hi Baoquan, everyone, > > > > I'm also interested in KASLR/EFI related issue (but not the same issue > > with yours, so I separated

[PATCH V4 4/6] iommu/arm-smmu: Add the device_link between masters and smmu

2017-07-06 Thread Vivek Gautam
From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smmu. Signed-off-by: Sricharan R --- driv

[PATCH V4 1/6] iommu/arm-smmu: Fix the error path in arm_smmu_add_device

2017-07-06 Thread Vivek Gautam
fwspec->iommu_priv is available only after arm_smmu_master_cfg instance has been allocated. We shouldn't free it before that. Also it's logical to free the master cfg itself without checking for fwspec. Signed-off-by: Vivek Gautam --- drivers/iommu/arm-smmu.c | 6 +++--- 1 file changed, 3 insert

[PATCH V4 3/6] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2017-07-06 Thread Vivek Gautam
From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of the master device. So calling runtime apis in those places separately. Signed-off-by: Sricharan R [stanimir: added runtime

[PATCH V4 0/6] iommu/arm-smmu: Add runtime pm/sleep support

2017-07-06 Thread Vivek Gautam
This series provides the support for turning on the arm-smmu's clocks/power domains using runtime pm. This is done using the recently introduced device links patches, which lets the symmu's runtime to follow the master's runtime pm, so the smmu remains powered only when the masters use it. Took so

[PATCH V4 2/6] iommu/arm-smmu: Add pm_runtime/sleep ops

2017-07-06 Thread Vivek Gautam
From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runtime. So by adapting the smmu driver for r

[PATCH V4 6/6] iommu/arm-smmu: Add support for qcom,msm8996-smmu-v2 clocks

2017-07-06 Thread Vivek Gautam
qcom,msm8996-smmu-v2 is an arm,smmu-v2 implementation with specific clock and power requirements. This smmu core is used with multiple masters on msm8996, viz. mdss, video, etc. Add bindings for the same. Signed-off-by: Vivek Gautam --- Documentation/devicetree/bindings/iommu/arm,smmu.txt | 18 +

[PATCH V4 5/6] iommu/arm-smmu: Add support for MMU40x/500 clocks

2017-07-06 Thread Vivek Gautam
From: Sricharan R The MMU400x/500 is the implementation of the SMMUv2 arch specification. It is split in to two blocks TBU, TCU. TBU caches the page table, instantiated for each master locally, clocked by the TBUn_clk. TCU manages the address translation with PTW and has the programming interface

Re: [PATCH] x86/boot/KASLR: exclude EFI_BOOT_SERVICES_{CODE|DATA} from KASLR's choice

2017-07-06 Thread Chao Fan
On Thu, Jul 06, 2017 at 09:22:38AM +, Naoya Horiguchi wrote: >On Thu, Jul 06, 2017 at 05:13:32PM +0800, Chao Fan wrote: >> On Thu, Jul 06, 2017 at 08:31:07AM +, Naoya Horiguchi wrote: >> >Hi Baoquan, everyone, >> > >> >I'm also interested in KASLR/EFI related issue (but not the same issue >

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Christoffer Dall
On Thu, Jul 06, 2017 at 10:34:58AM +0100, Suzuki K Poulose wrote: > On 06/07/17 08:45, Christoffer Dall wrote: > >On Thu, Jul 06, 2017 at 09:07:49AM +0200, Alexander Graf wrote: > >> > >> > >>On 05.07.17 10:57, Suzuki K Poulose wrote: > >>>Hi Alex, > >>> > >>>On Wed, Jul 05, 2017 at 08:20:31AM +020

[PATCH 10/11] rtc: ds1307: use generic nvmem

2017-07-06 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 88 ---

[PATCH 09/11] rtc: ds1307: switch to rtc_register_device

2017-07-06 Thread Alexandre Belloni
This removes a possible race condition and crash and allows for further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index

[PATCH 01/11] rtc: class separate device allocation from registration

2017-07-06 Thread Alexandre Belloni
Create rtc_allocate_device to allocate memory for a struct rtc_device and initialize it. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 63 +++-- 1 file changed, 37 insertions(+), 26 deletions(-) diff --git a/drivers/rtc/class.c b/driv

[PATCH 05/11] rtc: add generic nvmem support

2017-07-06 Thread Alexandre Belloni
Many RTCs have an on board non volatile storage. It can be battery backed RAM or an EEPROM. Use the nvmem subsystem to export it to both userspace and in-kernel consumers. This stays compatible with the previous (non documented) ABI that was using /sys/class/rtc/rtcx/device/nvram to export that me

[PATCH 11/11] rtc: ds1307: remove ds1307_remove

2017-07-06 Thread Alexandre Belloni
ds1307_remove() is now empty, remove it Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 6f91c11a5f03..ea83ddc5a513 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/

[PATCH 08/11] rtc: rv8803: remove rv8803_remove

2017-07-06 Thread Alexandre Belloni
rv8803_remove() is now empty, remove it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 10474ab7887d..aae2576741a6 100644 --- a/drivers/rtc/rtc-rv8803.c +++ b/drivers

Re: [PATCH] input: coresight: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
Sorry for noise. Please ignore this patch. On Thursday 06 July 2017 02:45 PM, Arvind Yadav wrote: If CONFIG_CORESIGHT is disable, it'll through compilation error. drivers/hwtracing/coresight/coresight-etm-perf.c:462:5: error: redefinition of ‘etm_perf_symlink’ int etm_perf_symlink(struct co

[PATCH 00/11] RTC: rework registration

2017-07-06 Thread Alexandre Belloni
There are multiple race condition issues in the RTC drivers. It is especially apparent in the IRQ handling and additionnal sysfs attributes registration. To solve most of those and allow to extend the framework more easily, introduce a new registration method that allows to first allocate an rtc_d

Re: [PATCH v2] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-06 Thread Christoffer Dall
Hi Andrea, On Thu, Jul 06, 2017 at 11:31:26AM +0200, Andrea Arcangeli wrote: > Hello, > > On Thu, Jul 06, 2017 at 09:45:13AM +0200, Christoffer Dall wrote: > > Let's look at the callers to stage2_get_pmd, which is the only caller of > > stage2_get_pud, where the problem was observed: > > > > u

[PATCH 07/11] rtc: rv8803: use generic nvmem support

2017-07-06 Thread Alexandre Belloni
Instead of adding a binary sysfs attribute from the driver (which suffers from a race condition as the attribute appears after the device), use the core to register an nvmem device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 51 +++

[PATCH 06/11] rtc: rv8803: switch to rtc_register_device

2017-07-06 Thread Alexandre Belloni
This removes a possible race condition and allows for further improvement of the driver. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv8803.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 9ad

Re: [PATCH] input: rmi4: Fix redefinition error on compilation.

2017-07-06 Thread Arvind Yadav
Sorry for noise. Please ignore this patch Thanks ~arvind On Thursday 06 July 2017 02:35 PM, Arvind Yadav wrote: If CONFIG_RMI4_F34 is disable, it'll through compilation error. drivers/input/rmi4/rmi_f34.c:594:5: error: redefinition of ‘rmi_f34_create_sysfs’ int rmi_f34_create_sysfs(struct r

[PATCH 02/11] rtc: class separate id allocation from registration

2017-07-06 Thread Alexandre Belloni
Create rtc_device_get_id to allocate the id for an RTC. Signed-off-by: Alexandre Belloni --- drivers/rtc/class.c | 44 +--- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/drivers/rtc/class.c b/drivers/rtc/class.c index fb39c1334d7b..93ce88

[PATCH 04/11] rtc: at91rm9200: remove race condition

2017-07-06 Thread Alexandre Belloni
While highly unlikely, it is possible to get an interrupt as soon as it is requested. In that case, at91_rtc_interrupt() will be called with rtc == NULL. Solve that by using devm_rtc_allocate_device/rtc_register_device. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-at91rm9200.c | 14

Re: [PATCH 6/6] net: stmmac: revert "support future possible different internal phy mode"

2017-07-06 Thread David Miller
From: Corentin Labbe Date: Thu, 6 Jul 2017 10:51:47 +0200 > On Sun, Jul 02, 2017 at 02:31:59PM +0200, Corentin Labbe wrote: >> Since internal phy-mode is reserved for non-xMII protocol we cannot use >> it with dwmac-sun8i >> This reverts commit 1c2fa5f84683 ("net: stmmac: support future possible

[PATCH 03/11] rtc: introduce new registration method

2017-07-06 Thread Alexandre Belloni
Introduce rtc_register_device() to register an already allocated and initialized struct rtc_device. It automatically sets up the owner and the two steps allocation/registration will allow to remove race conditions in the IRQ handling of some driver. It also allows to properly extend the core withou

Re: [PATCH 2/7] rwsem-spinlock: Add killable versions of rwsem_down_read_failed()

2017-07-06 Thread Kirill Tkhai
On 06.07.2017 11:04, Peter Zijlstra wrote: > On Mon, Jun 19, 2017 at 09:02:26PM +0300, Kirill Tkhai wrote: > >> Subject: [PATCH 2/7] rwsem-spinlock: Add killable versions of >> rwsem_down_read_failed() > >> kernel/locking/rwsem-xadd.c | 33 ++--- > > Fixed that sub

Re: [PATCH net-next] skbuff: optimize the pull_pages code in __pskb_pull_tail()

2017-07-06 Thread Eric Dumazet
On Thu, 2017-07-06 at 17:35 +0800, lin zhang wrote: > thanks, i am a newer, "net-next is closed" it means i need repost it > after net-next reopened? Yes, please read Documentation/networking/netdev-FAQ.txt for details.

[PATCH 1/2] usb: gadget: udc: USB_RENESAS_USB3 should depend on HAS_DMA

2017-07-06 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "usb_gadget_map_request" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! ERROR: "usb_gadget_unmap_request" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! ERROR: "bad_dma_ops" [drivers/usb/gadget/udc/renesas_usb3.ko] undefined! Add a dependency on HAS_DMA

[PATCH 2/2] usb: gadget: udc: USB_SNP_CORE should depend on HAS_DMA

2017-07-06 Thread Geert Uytterhoeven
If NO_DMA=y: ERROR: "usb_gadget_map_request" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR: "dma_pool_destroy" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR: "usb_gadget_unmap_request" [drivers/usb/gadget/udc/snps_udc_core.ko] undefined! ERROR: "dma_poo

[PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-06 Thread Dietmar Eggemann
A frequency-invariant load-tracking solution based on cpufreq transition notifier will not work for future fast frequency switching policies. That is why a different solution is presented with this patch. Let cpufreq call the function arch_set_freq_scale() to pass the current frequency, the max su

[PATCH v2 01/10] drivers base/arch_topology: free cpumask cpus_to_visit

2017-07-06 Thread Dietmar Eggemann
Free cpumask cpus_to_visit in case registering init_cpu_capacity_notifier has failed or the parsing of the cpu capacity-dmips-mhz property is done. The cpumask cpus_to_visit is only used inside the notifier call init_cpu_capacity_callback. Cc: Greg Kroah-Hartman Cc: Juri Lelli Reported-by: Vince

[PATCH v2 04/10] arm: wire cpufreq input data for frequency-invariant accounting up to the arch

2017-07-06 Thread Dietmar Eggemann
Define arch_set_freq_scale to be the arch_topology "driver" function topology_set_freq_scale() to let FIE work correctly. Cc: Russell King Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- arch/arm/include/asm/topology.h | 5 + arch/arm/kernel/topology.c | 1 - 2 files changed, 5 ins

[PATCH v2 05/10] arm: wire frequency-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function topology_get

[PATCH v2 10/10] drivers base/arch_topology: inline cpu- and frequency-invariant accounting

2017-07-06 Thread Dietmar Eggemann
To speed up the cpu- and frequency-invariant accounting of the task scheduler make sure that the CIE (topology_get_cpu_scale()) and FIE (topology_get_freq_scale() get completely inlined into the task scheduler consumer functions (e.g. __update_load_avg_se()). This patch-set changes the interface f

[PATCH v2 06/10] arm: wire cpu-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the arch_topolog

[PATCH v2 09/10] arm64: wire cpu-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit 8cd5601c5060 ("sched/fair: Convert arch_scale_cpu_capacity() from weak function to #define") changed the wiring which now has to be done by associating arch_scale_cpu_capacity with the actual implementation provided by the architecture. Define arch_scale_cpu_capacity to use the arch_topolog

[PATCH v2 08/10] arm64: wire frequency-invariant accounting support up to the task scheduler

2017-07-06 Thread Dietmar Eggemann
Commit dfbca41f3479 ("sched: Optimize freq invariant accounting") changed the wiring which now has to be done by associating arch_scale_freq_capacity with the actual implementation provided by the architecture. Define arch_scale_freq_capacity to use the arch_topology "driver" function topology_get

[PATCH v2 07/10] arm64: wire cpufreq input data for frequency-invariant accounting up to the arch

2017-07-06 Thread Dietmar Eggemann
Define arch_set_freq_scale to be the arch_topology "driver" function topology_set_freq_scale() to let FIE work correctly. Cc: Catalin Marinas Cc: Will Deacon Cc: Juri Lelli Signed-off-by: Dietmar Eggemann --- arch/arm64/include/asm/topology.h | 5 + arch/arm64/kernel/topology.c | 1 -

[PATCH v2 00/10] arm, arm64: frequency- and cpu-invariant accounting support for task scheduler

2017-07-06 Thread Dietmar Eggemann
For a more accurate (i.e. frequency- and cpu-invariant) load-tracking the task scheduler needs a frequency-scaling and on a heterogeneous system a cpu-scaling correction factor. This patch-set implements a Frequency Invariance Engine (FIE) (topology_get_freq_scale()) in drivers/base/arch_topology.

[PATCH v2 03/10] drivers base/arch_topology: frequency-invariant load-tracking support

2017-07-06 Thread Dietmar Eggemann
Implements an arch-specific frequency-scaling function topology_get_freq_scale() which provides the following frequency scaling factor: current_freq(cpu) << SCHED_CAPACITY_SHIFT / max_supported_freq(cpu) One possible consumer of this is the Per-Entity Load Tracking (PELT) mechanism of the task

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