Re: [PATCH] mm: Fix overflow check in expand_upwards()

2017-06-29 Thread Helge Deller
On 30.06.2017 01:02, Jörn Engel wrote: > I believe the overflow check was correct, then got subtly broken by > commit bd726c90b6b8 > Author: Helge Deller > Date: Mon Jun 19 17:34:05 2017 +0200 > > Allow stack to grow up to address space limit > > The old overflow ch

linux-next: Tree for Jun 30

2017-06-29 Thread Stephen Rothwell
Hi all, Changes since 20170629: The net-next tree gained a conflict against Linus' tree. The sound-asoc tree still had its build failure so I applied a supplied patch. The block tree gained a conflict against Linus' tree. The akpm tree gained a build failure due to an interaction wi

[GIT PULL] Update binding documentation for CP110 and AP806

2017-06-29 Thread Gregory CLEMENT
Hi Stephen, As seen on Tuesday this is the pull request for the remaining binding documentation which depends on the documentation already applied in your tree. Thanks for taking care of it, Gregory The following changes since commit 7e5b11afecc0f558c5a6723970770f92f2529d4e: dt-bindings: ap

[PATCH] crypto: mxs-dcp: print error message on platform_get_irq failure

2017-06-29 Thread Gustavo A. R. Silva
Print error message on platform_get_irq failure before return. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/mxs-dcp.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c index 625ee50..764be3e 100644 --- a/drive

Re: [BISECTED, REGRESSION] v4.12-rc: omapdrm fails to probe on Nokia N900

2017-06-29 Thread Tomi Valkeinen
On 29/06/17 21:50, Aaro Koskinen wrote: > Hi, > > On Thu, Jun 15, 2017 at 09:51:06AM +0300, Tomi Valkeinen wrote: >> On 15/06/17 01:11, Aaro Koskinen wrote: >>> When booting v4.12-rc5 on Nokia N900, omapdrm fails to probe and there >>> is no display. >> >> Are you sure it doesn't probe? It fails t

[PATCH] crypto: mxc-scc: fix error code in mxc_scc_probe()

2017-06-29 Thread Gustavo A. R. Silva
Print and propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/mxc-scc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/mxc-scc.c b/drivers/crypto/mxc-scc.c index ee4be1b0..e01c463 100644 --- a/dr

Re: [PATCH] PM / sleep: constify attribute_group structures.

2017-06-29 Thread Pavel Machek
On Fri 2017-06-30 10:22:14, 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 mark the non-const structs as const. > > File size before: >text data bss

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Chen-Yu Tsai
= On Fri, Jun 30, 2017 at 1:12 PM, Viresh Kumar wrote: > On 30-06-17, 12:22, Chen-Yu Tsai wrote: >> On Fri, Jun 30, 2017 at 12:12 PM, Viresh Kumar >> wrote: >> > On 30-06-17, 12:05, Chen-Yu Tsai wrote: > >> >> I also want to mention that for DT based platforms, this constraint >> >> should alre

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

2017-06-29 Thread Stephen Rothwell
Hi all, After merging the akpm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/bitmap.h:8:0, from include/linux/cpumask.h:11, from include/linux/mm_types_task.h:13, from include/linux/mm_

Question regarding MAX_ARG_STRLEN with execve()

2017-06-29 Thread Anshuman Khandual
Hello, execve() system call should support argument length of MAX_ARG_STRLEN (PAGE_SIZE * 32). On 64K page size systems, we are not able to pass 32 * PAGE_SIZE arguments into the execve() system call because of the following reasons. * struct linux_binprm's vma starts with a size of PAGE_SIZE

[PATCH] crypto: mediatek: fix error return code in mtk_crypto_probe()

2017-06-29 Thread Gustavo A. R. Silva
Propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/mediatek/mtk-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c index 000b

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-06-29 Thread John Hubbard
On 06/29/2017 07:25 PM, Mikulas Patocka wrote: > The __vmalloc function has a parameter gfp_mask with the allocation flags, > however it doesn't fully respect the GFP_NOIO and GFP_NOFS flags. The > pages are allocated with the specified gfp flags, but the pagetables are > always allocated with GFP_

Re: [patch 1/5] pinctrl: samsung: Remove bogus irq_[un]mask from resource management

2017-06-29 Thread Tomasz Figa
2017-06-30 15:02 GMT+09:00 Krzysztof Kozlowski : > On Fri, Jun 30, 2017 at 4:47 AM, Tomasz Figa wrote: >> Hi Thomas, >> >> 2017-06-30 6:33 GMT+09:00 Thomas Gleixner : >>> The irq chip callbacks irq_request/release_resources() have absolutely no >>> business with masking and unmasking the irq. >>>

pull-request: wireless-drivers-next 2017-06-30

2017-06-29 Thread Kalle Valo
Hi Dave, here's a pull request to net-next for 4.13. Actually not really that big this time, more info in the signed tag below. Please let me know if you have any problems. Intel has new hardware coming up and they just submitted patches to iwlwifi supporting that, but because the patches were so

Re: [PATCH v3 4/4] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2017-06-29 Thread Horia Geantă
On 6/29/2017 7:10 PM, Logan Gunthorpe wrote: > From: Horia Geantă > > We can now make use of the io-64-nonatomic-hi-lo header to always Typo: we are using io-64-nonatomic-lo-hi, not hi-lo. Thanks, Horia

Re: [PATCH NET V7 0/2] Add loopback support in phy_driver and hns ethtool fix

2017-06-29 Thread Yunsheng Lin
Hi, David I will send out a patch based on net-next, and I will continue to address the problem andrew pointed out. If I come out with a doable solution, I will send out the new patch. Best Regards Yunsheng Lin On 2017/6/30 4:08, David Miller wrote: > From: Andrew Lunn > Date: Thu, 29 Jun 2017

Re: [PATCH v2 0/2] x86/boot/KASLR: Code bug fix about kernel virtual address randomization

2017-06-29 Thread Dave Young
On 06/27/17 at 08:39pm, Baoquan He wrote: > People complained that crashkernel high doesn't work when kaslr code > compiled in but add 'nokaslr' to diable it. Kexec has the same > phenomenon. This is a regression, with 4.12* kernel kexec reboot fails always on my desktop pc now without kaslr being

[PATCH v3 6/6] pwm: mediatek: add MT2712/MT7622 support

2017-06-29 Thread Zhi Mao
1. support multiple chip(MT2712, MT7622, MT7623) 2. add mtk_pwm_com_reg for match the registers of MT2712 pwm8 the register offset address of pwm8 for MT2712 is not fixed 0x40 and they are not the same as pwm0~6. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c | 55

[PATCH v3 4/6] pwm: bindings: add MT2712/MT7622 information

2017-06-29 Thread Zhi Mao
add MT2712/MT7622 pwm information Acked-by: Rob Herring Signed-off-by: Zhi Mao --- .../devicetree/bindings/pwm/pwm-mediatek.txt |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bi

[PATCH v3 1/6] pwm: kconfig: modify mediatek information

2017-06-29 Thread Zhi Mao
modify mediatek information Signed-off-by: Zhi Mao --- drivers/pwm/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 313c107..45cdf2a 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -300,7 +300,7 @@ config

[PATCH v3 3/6] pwm: mediatek: fix clock control issue

2017-06-29 Thread Zhi Mao
1. prepare top/main clk in mtk_pwm_probe() function, it will increase power consumption and in original code these clocks is only prepeare but never enabled. 2. pwm clock should be enabled before setting pwm registers in function: mtk_pwm_config(). 3. delete "pwm_disable" in function:mtk_p

[PATCH v3 5/6] pwm: mediatek: add PWM_CLK_DIV_MAX

2017-06-29 Thread Zhi Mao
1. Replace "7" with "PWM_CLK_DIV_MAX" in function:mtk_pwm_config() to improve the code readablity. 2. add pwm clk disable in function:mtk_pwm_config() for error parameter checking case. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c |7 ++- 1 file changed, 6 insertions(+), 1 delet

[PATCH v3 2/6] pwm: mediatek: fix pwm source clock selection

2017-06-29 Thread Zhi Mao
In original code, the pwm output frequency is not correct when set bit<3>=1 to PWMCON register. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 5c11bc7..d08b

[PATCH v3 0/6] mediatek: pwm driver add MT2712/MT7622 support

2017-06-29 Thread Zhi Mao
change in v3: 1. add pwm clk disable in function:mtk_pwm_config() for error parameter checking case Zhi Mao (6): pwm: kconfig: modify mediatek information pwm: mediatek: fix pwm source clock selection pwm: mediatek: fix clock control issue pwm: bindings: add MT2712/MT7622 information

Re: [PATCH 36/37] binder: fix death race conditions

2017-06-29 Thread Greg KH
On Thu, Jun 29, 2017 at 12:02:10PM -0700, Todd Kjos wrote: > From: Martijn Coenen > > A race existed where one thread could register > a death notification for a node, while another > thread was cleaning up that node and sending > out death notifications for its references, > causing simultaneous

Re: [PATCH 00/37] fine-grained locking in binder driver

2017-06-29 Thread Greg KH
On Thu, Jun 29, 2017 at 12:01:34PM -0700, Todd Kjos wrote: > The binder driver uses a global mutex to serialize access to state in a > multi-threaded environment. This global lock has been increasingly > problematic as Android devices have scaled to more cores. The problem is > not so much contenti

[PATCH v1 4/4] MAINTAINERS: add entry for MediaTek CIR driver

2017-06-29 Thread sean.wang
From: Sean Wang I work for MediaTek on maintaining the MediaTek CIR driver for the existing SoCs and adding support for the following SoCs. Signed-off-by: Sean Wang --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a1290a..1bc1fb1 100644

[PATCH v1 2/4] media: rc: mtk-cir: add platform data to adapt into various hardware

2017-06-29 Thread sean.wang
From: Sean Wang This patch is the preparation patch in order to adapt into various hardware through adding platform data which holds specific characteristics and differences among MediaTek supported CIR devices instead of the old way defining those data in the static way as macro has. And the exi

[PATCH v1 0/4] media: rc: add support for IR receiver on MT7622 SoC

2017-06-29 Thread sean.wang
From: Sean Wang This patchset introduces Consumer IR (CIR) support for MT7622 SoC implements raw mode for more compatibility with different protocols as previously SoC did. Before adding support to MT7622 SoC, extra code refactor is done since there're major differences in register and field defi

[PATCH v1 3/4] media: rc: mtk-cir: add support for MediaTek MT7622 SoC

2017-06-29 Thread sean.wang
From: Sean Wang This patch adds driver for CIR controller on MT7622 SoC. It has similar handling logic as the previously MT7623 does, but there are some differences in the register and field definition. So for ease portability and maintenance, those differences all are being kept inside the platf

[PATCH v1 1/4] dt-bindings: media: mtk-cir: Add support for MT7622 SoC

2017-06-29 Thread sean.wang
From: Sean Wang Document the devicetree bindings for CIR on MediaTek MT7622 SoC. Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/media/mtk-cir.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/mtk-cir.txt b/D

Re: [kernel-hardening] Re: [PATCH v4 06/13] iscsi: ensure RNG is seeded before use

2017-06-29 Thread Nicholas A. Bellinger
On Mon, 2017-06-26 at 19:38 +0200, Stephan Müller wrote: > Am Montag, 26. Juni 2017, 03:23:09 CEST schrieb Nicholas A. Bellinger: > > Hi Nicholas, > > > Hi Stephan, Lee & Jason, > > > > (Adding target-devel CC') > > > > Apologies for coming late to the discussion. Comments below. > > > > On S

[PATCH 2/6] Staging: rtl8712 : os_intfs.c: use octal permission representation

2017-06-29 Thread Jaya Durga
Fix checkpatch.pl Warning: Symbolic permissions 'S_IRUGO | S_IWUSR' are not preferred. Consider using octal permissions '0644'. Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/os_intfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/os_intfs.c

Re: [patch 1/5] pinctrl: samsung: Remove bogus irq_[un]mask from resource management

2017-06-29 Thread Krzysztof Kozlowski
On Fri, Jun 30, 2017 at 4:47 AM, Tomasz Figa wrote: > Hi Thomas, > > 2017-06-30 6:33 GMT+09:00 Thomas Gleixner : >> The irq chip callbacks irq_request/release_resources() have absolutely no >> business with masking and unmasking the irq. >> >> The core code unmasks the interrupt after complete set

Re: [PATCH v3] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-06-29 Thread Greg Kroah-Hartman
On Fri, Jun 30, 2017 at 03:52:46AM +, Dmitriy Cherkasov wrote: > After removing code which was premanently disabled with ifdefs, the > function ksocknal_csum() becomes just a wrapper for crc32_le(). Remove > this useless wrapper and instead call crc32_le() directly. > > This also resolves the

arm64: dts: rockchip: add SdioAudio pd control for rk3399

2017-06-29 Thread Caesar Wang
The SdioAudio power domain includes the i2s/spdif/spi5/sdio. So this patch adds the pd control for rk3399 i2s/spdif/spi5/sdio, in order to save more power consumption. Signed-off-by: Caesar Wang --- Changes note: - As the Jeffy fixes the spi'cs issue recently as follows: aa09938 spi: rockchip:

[PATCH] crypto: ccp-platform: print error message on platform_get_irq failure

2017-06-29 Thread Gustavo A. R. Silva
Print error message on platform_get_irq failure before return. Signed-off-by: Gustavo A. R. Silva --- drivers/crypto/ccp/ccp-platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/ccp-platform.c b/drivers/crypto/ccp/ccp-platform.c index e26969e..602

Re: [RESEND PATCH] drm/hisilicon: Ensure LDI regs are properly configured.

2017-06-29 Thread Greg KH
On Thu, Jun 29, 2017 at 09:54:38PM +0100, Peter Griffin wrote: > This patch fixes the following soft lockup: > BUG: soft lockup - CPU#0 stuck for 23s! [weston:307] > > On weston idle-timeout the IP is powered down and reset > asserted. On weston resume we get a massive vblank > IRQ storm due to

Re: [PATCH] staging: ks7010: fix styling WARNINGs

2017-06-29 Thread Frans Klaver
On Fri, Jun 30, 2017 at 6:52 AM, Mark Rogers wrote: > Trivial style changes. There are still 3 "line over 80 characters" > checkpatch.pl warnings, but I think they are best left alone as > breaking the first two warning lines could hurt readability. The third > warning is a message that should not

Re: [BISECTED, REGRESSION] v4.12-rc: omapdrm fails to probe on Nokia N900

2017-06-29 Thread Tony Lindgren
* Aaro Koskinen [170629 11:50]: > Is it just me or do other OMAP users fail to see omapdrm changes being > posted to linux-omap for testing or review purposes? Yeah Cc:ing linux-omap in addition to the drm list is a good idea. Hopefully we get few more people to review changes that way. What als

Re: [PATCH 1/1] selftests: gpio: use pkg-config to determine libmount CFLAGS/LDLIBS

2017-06-29 Thread Fathi Boudra
On 30 June 2017 at 05:20, Bamvor Zhang Jian wrote: > On 29 June 2017 at 19:39, Fathi Boudra wrote: >> On 29 June 2017 at 12:01, Michael Ellerman wrote: >>> Fathi Boudra writes: >>> Fix hardcoded and misplaced libmount headers. Use pkg-config instead to figure out CFLAGS/LDLIBS, fixing

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done()

2017-06-29 Thread Nicholas A. Bellinger
On Thu, 2017-06-29 at 11:28 +0300, Sagi Grimberg wrote: > >> Can you test just the one liner fix below? > >> > @@ -1452,7 +1452,7 @@ > isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc) > { > struct isert_conn *isert_conn = wc->qp->qp_context; > -

Re: [PATCH] clocksource: em_sti: fix error return codes in em_sti_probe()

2017-06-29 Thread Gustavo A. R. Silva
Hi Frans, Quoting Frans Klaver : On Fri, Jun 30, 2017 at 6:42 AM, Gustavo A. R. Silva wrote: Propagate the return values of platform_get_irq and devm_request_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/clocksource/em_sti.c | 9 + 1 file changed, 5 insertions(+),

[PATCH v4] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-06-29 Thread Dmitriy Cherkasov
After removing code which was permanently disabled with ifdefs, the function ksocknal_csum() becomes just a wrapper for crc32_le(). Remove this useless wrapper and instead call crc32_le() directly. This also resolves the following checkpatch warning which was triggered by the dead code: WARNING:

Re: [RFC PATCH v3] acpi: indicate to platform when hot remove returns busy

2017-06-29 Thread joeyli
Hi Rafael, On Thu, Jun 29, 2017 at 12:13:18AM +0200, Rafael J. Wysocki wrote: > On Wednesday, June 21, 2017 03:45:44 PM Lee, Chun-Yi wrote: > > In hotplug logic, it always indicates non-specific failure to > > platform through _OST when handing acpi hot-remove event failed. Then > > platform termi

[PATCH for-4.4 08/16] MIPS: ralink: fix MT7628 pinmux typos

2017-06-29 Thread Amit Pundir
From: Álvaro Fernández Rojas commit d7146829c9da24e285cb1b1f2156b5b3e2d40c07 upstream. Signed-off-by: Álvaro Fernández Rojas Cc: j...@phrozen.org Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13306/ Signed-off-by: Ralf Baechle

[PATCH] sata_rcar: fix error return code in sata_rcar_probe()

2017-06-29 Thread Gustavo A. R. Silva
Print error message and propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/ata/sata_rcar.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index ee98447..c936b2a 100

[PATCH for-4.4 09/16] MIPS: ralink: fix MT7628 wled_an pinmux gpio

2017-06-29 Thread Amit Pundir
From: Álvaro Fernández Rojas commit 07b50db6e685172a41b9978aebffb2438166d9b6 upstream. Signed-off-by: Álvaro Fernández Rojas Cc: j...@phrozen.org Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/13307/ Signed-off-by: Ralf Baechle

Re: [PATCH] clocksource: em_sti: fix error return codes in em_sti_probe()

2017-06-29 Thread Frans Klaver
On Fri, Jun 30, 2017 at 6:42 AM, Gustavo A. R. Silva wrote: > Propagate the return values of platform_get_irq and > devm_request_irq on failure. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/clocksource/em_sti.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff -

Re: [PATCH v2 6/8] x86/entry: add unwind hint annotations

2017-06-29 Thread Andy Lutomirski
On Thu, Jun 29, 2017 at 10:05 PM, Andy Lutomirski wrote: > Hmm. There's another option that might be considerably nicer, though: > put the IRQ stack at a known (at link time) position *in percpu > space*. (Presumably it already is -- I haven't checked.) Then we do: > > .macro ENTER_IRQ_STACK ol

Re: [PATCH 3/6] cpufreq: governor: Drop min_sampling_rate

2017-06-29 Thread Viresh Kumar
On 30-06-17, 06:53, Dominik Brodowski wrote: > On Fri, Jun 30, 2017 at 09:04:25AM +0530, Viresh Kumar wrote: > > On 29-06-17, 20:01, Dominik Brodowski wrote: > > > On Thu, Jun 29, 2017 at 04:29:06PM +0530, Viresh Kumar wrote: > > > > The cpufreq core and governors aren't supposed to set a limit on

Re: [PATCH 00/15] HMM (Heterogeneous Memory Management) v24

2017-06-29 Thread John Hubbard
On 06/28/2017 11:00 AM, Jérôme Glisse wrote: > > Patchset is on top of git://git.cmpxchg.org/linux-mmotm.git so i > test same kernel as kbuild system, git branch: > > https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-v24 > > Change since v23 is code comment fixes, simplify kernel configurati

[PATCH] fs: GFS2: constify attribute_group structures.

2017-06-29 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 52591344 8661119d3 fs/gf

[PATCH] pata_imx: print error message on platform_get_irq failure

2017-06-29 Thread Gustavo A. R. Silva
Print error message on platform_get_irq failure before return. Signed-off-by: Gustavo A. R. Silva --- drivers/ata/pata_imx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index d4caa23..65bbf36 100644 --- a/drivers/ata/pata

Re: [linux-next] cpus stalls detected few hours after booting next kernel

2017-06-29 Thread Abdul Haleem
On Fri, 2017-06-30 at 00:45 +1000, Nicholas Piggin wrote: > On Thu, 29 Jun 2017 20:23:05 +1000 > Nicholas Piggin wrote: > > > On Thu, 29 Jun 2017 19:36:14 +1000 > > Nicholas Piggin wrote: > > > > I don't *think* the replay-wakeup-interrupt patch is directly involved, > > > but > > > it's likel

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-29 Thread Masahiro Yamada
Hi Michael, Ping. Please apply this patch. I need this to clean up Makefiles in the next development cycle. 2017-06-21 18:52 GMT+09:00 Masahiro Yamada : > 2017-06-21 18:48 GMT+09:00 Michael Ellerman : >> Masahiro Yamada writes: >>> 2017-06-14 15:45 GMT+09:00 Michael Ellerman : Acke

Re: [RFC] tracing: Add support for critical section event tracing

2017-06-29 Thread Joel Fernandes
Hi Steven, Did you have any comments about this patch? It was sent a while ago and if you can provide me your initial thoughts on it, I would appreciate it. (Sorry to ping you about it during the busy merge window time, but I was thinking if I can get any initial early comments from you then I can

Re: [GIT PULL rcu/next] RCU commits for 4.13

2017-06-29 Thread Boqun Feng
On Thu, Jun 29, 2017 at 09:02:41PM -0700, Paul E. McKenney wrote: [...] > > > o net/netfilter/nf_conntrack_core.c nf_conntrack_lock() > > > This instance of spin_unlock_wait() interacts with > > > nf_conntrack_all_lock()'s instance of spin_unlock_wait(). > > > Although nf_conntrack_all_lock()

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Viresh Kumar
On 30-06-17, 12:22, Chen-Yu Tsai wrote: > On Fri, Jun 30, 2017 at 12:12 PM, Viresh Kumar > wrote: > > On 30-06-17, 12:05, Chen-Yu Tsai wrote: > >> I also want to mention that for DT based platforms, this constraint > >> should already be set in the device tree for the regulator, so the > >> scen

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

2017-06-29 Thread Arvind Yadav
Hi, I have push one more patch which does not have this warning. please avoid my first patch. Thanks ~ arvind On Friday 30 June 2017 09:30 AM, Stephen Rothwell wrote: Hi Darren, After merging the drivers-x86 tree, today's linux-next build (x86_64 allmodconfig) produced this warning: driv

Re: linux-next: manual merge of the target-updates tree with the scsi-mkp tree

2017-06-29 Thread Stephen Rothwell
Hi all, With the merge window approaching, this is just a reminder that the following conflict still exists. No action is necessarily needed except to maybe mention this to Linus at the appropriate time. James, you have been added since you merged the scsi-mkp tree int the scsi tree. On Tue, 13

[PATCH v2] sony-laptop: constify spic_attribute_group and sony_laptop_input_index.

2017-06-29 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 312735176 372 368218fd5 drive

Re: [PATCH v2 6/8] x86/entry: add unwind hint annotations

2017-06-29 Thread Andy Lutomirski
On Thu, Jun 29, 2017 at 7:12 PM, Josh Poimboeuf wrote: > On Thu, Jun 29, 2017 at 03:59:04PM -0700, Andy Lutomirski wrote: >> > >> > Sorry, I didn't explain it very well. Undwarf can find the regs pointer >> > in rdi, it just doesn't trust its value. >> > >> > See the stack_info.next_sp field, whi

Re: [PATCH v2 2/2] thermal: core: Allow to disable polling when disabling thermal zone.

2017-06-29 Thread Zhang Rui
On Thu, 2017-06-29 at 18:50 +0200, Enric Balletbo i Serra wrote: > Under each thermal zone there is a optional file called "mode". > Writing > enabled or disabled to this file allows a given thermal zone to be > enabled > or disabled, but in current code, the monitoring queue doesn't stops. > Add >

[PATCH] sata_highbank: fix error return code in ahci_highbank_probe()

2017-06-29 Thread Gustavo A. R. Silva
Propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/ata/sata_highbank.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index aafb8cc..2fc451c 100644 --- a/driv

[PATCH] staging: ks7010: fix styling WARNINGs

2017-06-29 Thread Mark Rogers
Trivial style changes. There are still 3 "line over 80 characters" checkpatch.pl warnings, but I think they are best left alone as breaking the first two warning lines could hurt readability. The third warning is a message that should not be broken for the sake of grep. All but one of the changes

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

2017-06-29 Thread Stephen Rothwell
Hi all, [Just adding cc's] On Fri, 30 Jun 2017 14:56:01 +1000 Stephen Rothwell wrote: > > After merging the pinctrl tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/pinctrl/pinctrl-rza1.c: In function 'rza1_pinctrl_probe': > drivers/pinctrl/pinctrl-rza1

linux-next: build warning after merge of the pinctrl tree

2017-06-29 Thread Stephen Rothwell
Hi Linus, After merging the pinctrl tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/pinctrl/pinctrl-rza1.c: In function 'rza1_pinctrl_probe': drivers/pinctrl/pinctrl-rza1.c:1260:5: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialize

Panic with bochs_drm module on qemu-system-sparc64

2017-06-29 Thread Mark Cave-Ayland
Hi all, I'm one of the QEMU SPARC maintainers and I've been investigating why enabling the fb console via the bochs_drm module causes a panic on startup. The reproducer with QEMU 2.9 is easy: $ ./qemu-system-sparc64 -m 512 -kernel rel-sparc/vmlinux -append 'console=ttyS0' -serial stdio This give

Re: [PATCH 3/6] cpufreq: governor: Drop min_sampling_rate

2017-06-29 Thread Dominik Brodowski
On Fri, Jun 30, 2017 at 09:04:25AM +0530, Viresh Kumar wrote: > On 29-06-17, 20:01, Dominik Brodowski wrote: > > On Thu, Jun 29, 2017 at 04:29:06PM +0530, Viresh Kumar wrote: > > > The cpufreq core and governors aren't supposed to set a limit on how > > > fast we want to try changing the frequency.

[PATCH] PM / sleep: constify attribute_group structures.

2017-06-29 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 3802 624 324458116a kerne

[PATCH] clocksource: em_sti: fix error return codes in em_sti_probe()

2017-06-29 Thread Gustavo A. R. Silva
Propagate the return values of platform_get_irq and devm_request_irq on failure. Signed-off-by: Gustavo A. R. Silva --- drivers/clocksource/em_sti.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c index bc48

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Chen-Yu Tsai
On Fri, Jun 30, 2017 at 12:12 PM, Viresh Kumar wrote: > On 30-06-17, 12:05, Chen-Yu Tsai wrote: >> On Fri, Jun 30, 2017 at 11:55 AM, Viresh Kumar >> wrote: >> > On 30-06-17, 11:33, Chen-Yu Tsai wrote: >> >> AFAIK regulator constraints are supposed to satisfy all users of it. >> > >> > Right. >>

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Viresh Kumar
On 30-06-17, 12:05, Chen-Yu Tsai wrote: > On Fri, Jun 30, 2017 at 11:55 AM, Viresh Kumar > wrote: > > On 30-06-17, 11:33, Chen-Yu Tsai wrote: > >> AFAIK regulator constraints are supposed to satisfy all users of it. > > > > Right. > > > >> >> >Let me try with an example. A regulator is shared bet

[PATCH v5 02/12] x86/apic: Prepare for unifying the interrupt delivery modes setup

2017-06-29 Thread Dou Liyang
There are three positions for initializing the interrupt delivery modes: 1) In IRQ initial function, may setup the through-local-APIC virtual wire mode. 2) In an SMP-capable system, will try to switch to symmetric I/O model when preparing the cpus in native_smp_prepare_cpus(). 3) In UP sys

[PATCH v5 00/12] Unify the interrupt delivery mode and do its setup in advance

2017-06-29 Thread Dou Liyang
[Background] MP specification defines three different interrupt delivery modes as follows: 1. PIC Mode 2. Virtual Wire Mode 3. Symmetric I/O Mode They will be setup in the different periods of booting time: 1. *PIC Mode*, the default interrupt delivery modes, will be set first. 2. *Virtual

[PATCH v5 05/12] x86/apic: Unify interrupt mode setup for SMP-capable system

2017-06-29 Thread Dou Liyang
In the SMP-capable system, enable and setup the interrupt delivery mode in native_smp_prepare_cpus(). This design mixs the APIC and SMP together, it has highly coupling. Make the initialization of interrupt mode independent, Unify and refine it to apic_intr_mode_init() for SMP-capable system. Si

[PATCH v5 06/12] x86/apic: Mark the apic_intr_mode extern for sanity check cleanup

2017-06-29 Thread Dou Liyang
Calling native_smp_prepare_cpus() to prepare for SMP bootup, does some sanity checking, enables APIC mode and disables SMP feature. Now, APIC mode setup has been unified to apic_intr_mode_init(), some sanity checks are redundant and need to be cleanup. Mark the apic_intr_mode extern to refine the

[PATCH v5 04/12] x86/apic: Move logical APIC ID away from apic_bsp_setup()

2017-06-29 Thread Dou Liyang
apic_bsp_setup() sets and returns logical APIC ID for initializing cpu0_logical_apicid in SMP-capable system. The id has nothing to do with the initialization of local APIC and I/O APIC. And apic_bsp_setup() should be called for interrupt mode setup intently. Move the id setup to native_smp_prepa

[PATCH v5 10/12] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-06-29 Thread Dou Liyang
xen_smp_ops overwrites smp_prepare_cpus to xen_pv_smp_prepare_cpus which initializes interrupt itself. Touching the intr_mode_init causes unexpected results on the system. Bypass it in enlighten_pv system. Signed-off-by: Dou Liyang --- arch/x86/xen/enlighten_pv.c | 1 + 1 file changed, 1 inser

[PATCH v5 09/12] x86/init: add intr_mode_init to x86_init_ops

2017-06-29 Thread Dou Liyang
Add an unconditional x86_init_ops function which defaults to the standard function and can be overridden by the early platform code. Signed-off-by: Dou Liyang --- arch/x86/include/asm/x86_init.h | 2 ++ arch/x86/kernel/apic/apic.c | 2 +- arch/x86/kernel/smpboot.c | 2 +- arch/x86/kern

[PATCH v5 11/12] x86/time: Initialize interrupt mode behind timer init

2017-06-29 Thread Dou Liyang
In start_kernel(), firstly, it works on the default interrupy mode, then switch to the final mode. Normally, Booting with BIOS reset is OK. But, At dump-capture kernel, it boot up without BIOS reset, default mode may not be compatible with the actual registers, that causes the delivery interrupt t

[PATCH v5 08/12] x86/ioapic: Refactor the delay logic in timer_irq_works()

2017-06-29 Thread Dou Liyang
Kernel use timer_irq_works() to detects the timer IRQs. It calls mdelay(10) to delay ten ticks and check whether the timer IRQ work or not. The mdelay() depends on the loops_per_jiffy which is set up in calibrate_delay(). Current kernel defaults the IRQ 0 is available when it calibrates delay. But

[PATCH v5 12/12] x86/apic: Remove the init_bsp_APIC()

2017-06-29 Thread Dou Liyang
The init_bsp_APIC() which works for the virtual wire mode is used in ISA irq initialization at the booting time. Currently, enable and setup the interrupt mode has been unified and advanced just behind the timer IRQ setup. Kernel switches to the final interrupt delivery mode directly. So init_bsp_

[PATCH v5 07/12] x86/apic: Unify interrupt mode setup for UP system

2017-06-29 Thread Dou Liyang
In UniProcessor kernel with UP_LATE_INIT=y, it enables and setups interrupt delivery mode in up_late_init(). Unify it to apic_intr_mode_init(), remove APIC_init_uniprocessor(). Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 1 - arch/x86/kernel/apic/apic.c | 49 +--

[PATCH v5 03/12] x86/apic: Split local APIC timer setup from the APIC setup

2017-06-29 Thread Dou Liyang
apic_bsp_setup() sets up the local APIC, I/O APIC and APIC timer. The local APIC and I/O APIC setup belongs to interrupt delivery mode setup. Setting up the local APIC timer for booting CPU is another job and has nothing to do with interrupt delivery mode setup. Split local APIC timer setup from

[PATCH v5 01/12] x86/apic: Construct a selector for the interrupt delivery mode

2017-06-29 Thread Dou Liyang
Now, there are many switches in kernel which are used to determine the final interrupt delivery mode, as shown below: 1) kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC 2) kernel option: disable_apic; skip_ioapic_setup 3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC) 4) MP ta

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Chen-Yu Tsai
On Fri, Jun 30, 2017 at 11:55 AM, Viresh Kumar wrote: > On 30-06-17, 11:33, Chen-Yu Tsai wrote: >> AFAIK regulator constraints are supposed to satisfy all users of it. > > Right. > >> >> >Let me try with an example. A regulator is shared between LCD and DMA >> >> >controller. >> >> > >> >> >Operab

Re: [PATCH 2/4] swait: add the missing killable swaits

2017-06-29 Thread Linus Torvalds
On Thu, Jun 29, 2017 at 12:15 PM, Marcelo Tosatti wrote: > On Thu, Jun 29, 2017 at 09:13:29AM -0700, Linus Torvalds wrote: >> >> swait uses special locking and has odd semantics that are not at all >> the same as the default wait queue ones. It should not be used without >> very strong reasons (an

Re: [GIT PULL rcu/next] RCU commits for 4.13

2017-06-29 Thread Paul E. McKenney
On Fri, Jun 30, 2017 at 10:51:26AM +0800, Boqun Feng wrote: > On Thu, Jun 29, 2017 at 11:11:26AM -0700, Paul E. McKenney wrote: > > On Thu, Jun 29, 2017 at 11:59:27AM -0400, Alan Stern wrote: > > > On Thu, 29 Jun 2017, Will Deacon wrote: > > > > > > > [turns out I've not been on cc for this thread

linux-next: build warning after merge of the drivers-x86 tree

2017-06-29 Thread Stephen Rothwell
Hi Darren, After merging the drivers-x86 tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input': drivers/platform/x86/sony-laptop.c:494:19: warning: assignment discards 'const' qualifier from pointer t

[PATCH v3] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-06-29 Thread Dmitriy Cherkasov
After removing code which was premanently disabled with ifdefs, the function ksocknal_csum() becomes just a wrapper for crc32_le(). Remove this useless wrapper and instead call crc32_le() directly. This also resolves the following checkpatch warning which was triggered by the dead code: WARNING:

Re: [PATCH] cpufreq: Find transition latency dynamically

2017-06-29 Thread Viresh Kumar
On 29-06-17, 22:34, Rafael J. Wysocki wrote: > Shouldn't drivers do that really? Well they can, but the we will have some sort of code duplication then. Or else we can provide a helper for them to find this value dynamically and that would be fine too. And maybe we can add a callback for the cpufr

Re: [kernel-hardening] [PATCH v5 3/3] x86/refcount: Implement fast refcount overflow protection

2017-06-29 Thread Kees Cook
On Thu, Jun 29, 2017 at 7:42 PM, Li Kun wrote: > > > on 2017/6/30 6:05, Kees Cook wrote: >> >> On Wed, Jun 28, 2017 at 9:13 PM, Li Kun wrote: >>> >>> 在 2017/5/31 5:39, Kees Cook 写道: +bool ex_handler_refcount(const struct exception_table_entry *fixup, +struct

Re: [RFC 0/5] drivers: Add boot constraints core

2017-06-29 Thread Viresh Kumar
On 30-06-17, 11:33, Chen-Yu Tsai wrote: > AFAIK regulator constraints are supposed to satisfy all users of it. Right. > >> >Let me try with an example. A regulator is shared between LCD and DMA > >> >controller. > >> > > >> >Operable ranges of the regulator: 1.8 - 3.0 V > >> >Range required by LC

Re: [PATCH v2] staging: lustre: lnet: remove dead code and crc32_le() wrapper

2017-06-29 Thread Dmitriy Cherkasov
On 06/30/2017, Joe Perches wrote: Please use checkpatch on your proposed patches before sending them. Whoops! Sorry about that. Fixed and re-sent.

Re: [PATCH] uvesafb: use pr_cont when printing multiple parameters on the same line

2017-06-29 Thread Joe Perches
On Thu, 2017-06-29 at 22:16 -0400, Mikulas Patocka wrote: > The kernel automatically inserts newlines between printk calls unless > pr_cont is used. This patch changes the uvesafb log message from: Should be fixed in -next already. commit a8feae091106 ("uvesafb: Fix continuation printks without K

Re: [1/3] cpuidle: powerpc: cpuidle set polling before enabling irqs

2017-06-29 Thread Michael Ellerman
"Rafael J. Wysocki" writes: > On Thu, Jun 29, 2017 at 2:21 PM, Michael Ellerman > wrote: >> On Wed, 2017-06-14 at 13:02:39 UTC, Nicholas Piggin wrote: >>> local_irq_enable can cause interrupts to be taken which could >>> take significant amount of processing time. The idle process >>> should set

[PATCH] regulator: core: Fix size limit of supply_map

2017-06-29 Thread Haishan Zhou
Now the debugfs file supply_map has a size limit PAGE_SIZE and the user can not see the whole content of regulator_map_list when it is larger than this limit. This patch uses seq_file instead to make sure supply_map shows the full information of regulator_map_list. Signed-off-by: Haishan Zhou --

Re: [PATCH RFC 2/2] dt-bindings: add binding documentation for Allwinner CSI

2017-06-29 Thread Chen-Yu Tsai
On Fri, Jun 30, 2017 at 5:19 AM, Rob Herring wrote: > On Tue, Jun 27, 2017 at 07:07:34PM +0800, Yong Deng wrote: >> Add binding documentation for Allwinner CSI. > > For the subject: > > dt-bindings: media: Add Allwinner Camera Sensor Interface (CSI) > > "binding documentation" is redundant. > >> >

  1   2   3   4   5   6   7   8   9   10   >