Re: [PATCH] linux/bitmap.h: fix BITMAP_LAST_WORD_MASK

2018-08-06 Thread Wei Wang
On 08/07/2018 07:30 AM, Rasmus Villemoes wrote: On 2018-07-26 12:15, Wei Wang wrote: On 07/26/2018 05:37 PM, Yury Norov wrote: On Thu, Jul 26, 2018 at 04:07:51PM +0800, Wei Wang wrote: The existing BITMAP_LAST_WORD_MASK macro returns 0x if nbits is 0. This patch changes the macro to re

Re: [PATCH v2 4/4] userfaultfd: selftest: Cope if shmem doesn't support zeropage

2018-08-06 Thread Mike Rapoport
Hi, On Fri, Aug 03, 2018 at 07:00:46PM -0300, Thiago Jung Bauermann wrote: > If userfaultfd runs on a system that doesn't support UFFDIO_ZEROPAGE for > shared memory, it currently ends with error code 1 which indicates test > failure: > > # ./userfaultfd shmem 10 10 > nr_pages: 160, nr_pages_

[PATCH v5 4/4] x86/boot/KASLR: Limit kaslr to choosing the immovable memory

2018-08-06 Thread Chao Fan
If 'CONFIG_MEMORY_HOTREMOVE' specified and the account of immovable memory regions is not zero. Calculate the intersection between memory regions from e820/efi memory table and immovable memory regions. Or go on the old code. Rename process_mem_region to slots_count to match slots_fetch_random, an

[PATCH v5 3/4] x86/boot/KASLR: Walk srat tables to filter immovable memory

2018-08-06 Thread Chao Fan
If 'CONFIG_MEMORY_HOTREMOVE' specified, walk the acpi srat memory tables, store the immovable memory regions, so that kaslr can get the information abouth where can be selected or not. If 'CONFIG_MEMORY_HOTREMOVE' not specified, go on the old code. Signed-off-by: Chao Fan --- arch/x86/boot/compr

[PATCH v5 2/4] x86/boot: Add acpitb.c to parse acpi tables

2018-08-06 Thread Chao Fan
Imitate the ACPI code to parse ACPI tables. Functions are simplified cause some operations are not needed here. And also, this method won't influence the initialization of ACPI. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/Makefile | 4 + arch/x86/boot/compressed/acpitb.c | 272 +++

[PATCH v5 1/4] x86/boot: Add acpitb.h to help parse acpi tables

2018-08-06 Thread Chao Fan
In order to parse ACPI tables, reuse the head file linux/acpi.h, so that the files in 'compressed' directory can read ACPI table by including this head file. Signed-off-by: Chao Fan --- arch/x86/boot/compressed/acpitb.h | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/x86/bo

[PATCH v5 0/4] x86/boot/KASLR: Parse ACPI table and limit kaslr in immovable memory.

2018-08-06 Thread Chao Fan
***Background: People reported that kaslr may randomly chooses some positions which are located in movable memory regions. This will break memory hotplug feature and make the memory can't be removed. ***Solutions: There should be a method to limit kaslr to choosing immovable memory regions, so the

Re: [PATCH v2 3/4] userfaultfd: selftest: Skip test if a feature isn't supported

2018-08-06 Thread Mike Rapoport
On Fri, Aug 03, 2018 at 07:00:45PM -0300, Thiago Jung Bauermann wrote: > If userfaultfd runs on a system that doesn't support some feature it is > trying to test, it currently ends with error code 1 which indicates > test failure: > > # ./userfaultfd anon 10 10 > nr_pages: 160, nr_pages_per_cp

Re: [PATCH v2 2/4] userfaultfd: selftest: Skip test if userfaultfd() syscall not supported

2018-08-06 Thread Mike Rapoport
On Fri, Aug 03, 2018 at 07:00:44PM -0300, Thiago Jung Bauermann wrote: > Since there's no point in doing anything in this case, immediately exit the > process. > > And take the opportunity to improve the error message. > > Before: > > # ./userfaultfd shmem 10 10 > nr_pages: 160, nr_pages_per

Re: [PATCH 01/11] staging: fbtft: Changes udelay(n) to usleep_range(n, n + 1). - Style

2018-08-06 Thread Dan Carpenter
We need a commit message here. On Tue, Aug 07, 2018 at 01:04:56AM -0300, Leonardo Brás wrote: > Signed-off-by: Leonardo Brás > --- > drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- > drivers/staging/fbtft/fb_ra8875.c | 4 ++-- > drivers/staging/fbtft/fb_tinylcd.c | 2 +- > drivers/s

Re: [PATCH v2 1/4] userfaultfd: selftest: Fix checking of userfaultfd_open() result

2018-08-06 Thread Mike Rapoport
On Fri, Aug 03, 2018 at 07:00:43PM -0300, Thiago Jung Bauermann wrote: > If the userfaultfd test is run on a kernel with CONFIG_USERFAULTFD=n, it > will report that the system call is not available yet go ahead and continue > anyway: > > # ./userfaultfd anon 30 1 > nr_pages: 480, nr_pages_per_

Re: [PATCH] arm64: clean the additional checks before calling ghes_notify_sea()

2018-08-06 Thread gengdongjiu
On 2018/8/6 22:26, Will Deacon wrote: >> Will, >> This patch will be applied, right? thanks > I haven't queued it in the arm64 tree, since it touches include/acpi/ghes.h > and you don't have an ack from the acpi folks. I acked it so that you could > route it via the acpi tree without me hol

Re: [PATCH v3 1/6] remoteproc: Introduce custom dump function for each remoteproc segment

2018-08-06 Thread Vinod
Hi Sibi, On 27-07-18, 20:49, Sibi Sankar wrote: > Introduce custom dump function per remoteproc segment. It is responsible > for filling the device memory segment associated with coredump > > Signed-off-by: Sibi Sankar > --- > drivers/remoteproc/remoteproc_core.c | 15 ++- > include

Re: [PATCH v3 00/13] ARM: davinci: remove duplicate aemif support

2018-08-06 Thread Sekhar Nori
Hi David, On Monday 06 August 2018 10:05 PM, David Lechner wrote: > On 07/10/2018 05:19 AM, Sekhar Nori wrote: >> On Friday 06 July 2018 11:09 PM, David Lechner wrote: >>> On 07/04/2018 01:35 AM, Sekhar Nori wrote: Hi David, On Monday 02 July 2018 09:02 PM, David Lechner wrote:

Re: [PATCH v3 1/2] PM / devfreq: Generic CPU frequency to device frequency mapping governor

2018-08-06 Thread skannan
On 2018-08-02 14:00, skan...@codeaurora.org wrote: On 2018-08-02 02:56, MyungJoo Ham wrote: Many CPU architectures have caches that can scale independent of the CPUs. Frequency scaling of the caches is necessary to make sure the cache is not a performance bottleneck that leads to poor performan

Re: [RFC v6 PATCH 2/2] mm: mmap: zap pages with read mmap_sem in munmap

2018-08-06 Thread Michal Hocko
On Mon 06-08-18 15:19:06, Yang Shi wrote: > > > On 8/6/18 1:52 PM, Michal Hocko wrote: > > On Mon 06-08-18 13:48:35, Yang Shi wrote: > > > > > > On 8/6/18 1:41 PM, Michal Hocko wrote: > > > > On Mon 06-08-18 09:46:30, Yang Shi wrote: > > > > > On 8/6/18 2:40 AM, Michal Hocko wrote: > > > > > > O

[LINUX PATCH v12] mtd: rawnand: pl353: Add basic driver for arm pl353 smc nand interface

2018-08-06 Thread Naga Sureshkumar Relli
Add driver for arm pl353 static memory controller nand interface with HW ECC support. This controller is used in Xilinx Zynq SoC for interfacing the NAND flash memory. Signed-off-by: Naga Sureshkumar Relli --- Changes in v12: - Rebased the driver on top of v4.19 nand tree - Removed nand_scan_id

Re: [PATCH 4/4] s390/ftrace: add -mfentry and -mnop-mcount support

2018-08-06 Thread Heiko Carstens
On Mon, Aug 06, 2018 at 03:17:47PM +0200, Vasily Gorbik wrote: > Utilize -mfentry and -mnop-mcount gcc options together with > -mrecord-mcount to get compiler generated calls to the profiling functions > as nops which are compatible with current -mhotpatch=0,3 approach. At the > same time -mrecord

Re: [PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-08-06 Thread Doug Anderson
Hi, On Mon, Jul 23, 2018 at 4:33 PM, Rob Herring wrote: >> OK, I guess I will try again then and you can tell me when I get it >> right (unless you tell me I should just change the driver to not use >> named registers at all). How about: >> >> - reg: >> - For "qcom,sdm845-qmp-usb3-phy": >>

[PATCH] dt-bindings: phy: qcom-qmp: Cleanup the 'reg' documentation as per review

2018-08-06 Thread Douglas Anderson
After the commit 8b1087fa3a27 ("phy: qcom-qmp: Fix dts bindings to reflect reality") landed there was some review feedback that 'reg' should have been documented differently. Fix it as per review feedback. As per that feedback: - Subject should have been 'dt-bindings: phy:' which this patch now

Re: [PATCH v4 1/9] proc/kcore: don't grab lock for kclist_add()

2018-08-06 Thread Bhupesh Sharma
Hello Omar, On 07/26/2018 05:29 AM, Omar Sandoval wrote: From: Omar Sandoval kclist_add() is only called at init time, so there's no point in grabbing any locks. We're also going to replace the rwlock with a rwsem, which we don't want to try grabbing during early boot. While we're here, mark

Re: [LKP] [lkp-robot] [nfsd4] 517dc52baa: fsmark.files_per_sec 32.4% improvement

2018-08-06 Thread Rong Chen
On 08/01/2018 07:46 PM, J. Bruce Fields wrote: On Fri, Jul 27, 2018 at 08:22:25AM +0800, Ye Xiaolong wrote: On 07/16, Ye Xiaolong wrote: On 07/04, Huang, Ying wrote: "J. Bruce Fields" writes: Thanks! On Wed, Jun 20, 2018 at 02:52:43PM +0800, kernel test robot wrote: FYI, we noticed a 3

Re: [PATCH v4 0/4] seccomp trap to userspace

2018-08-06 Thread Andy Lutomirski
On Mon, Aug 6, 2018 at 8:30 PM, Christian Brauner wrote: > On Mon, Aug 06, 2018 at 08:44:42PM -0600, Tycho Andersen wrote: >> Hi all, >> >> Dinesh Subhraveti has claimed that some part of this series might be >> patented. While he has not furnished me with anything to confirm this >> claim, I'll p

[PATCH 11/11] staging: fbtft: Includes parenthesis around macro parameters and avoids multiple usage of macro parameter - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft.h | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index 41ac00239aa3..eb2bdc4870be 100644 --- a/drivers/staging/fbtft/fbtft.h +++ b/dr

[PATCH 10/11] staging: fbtft: Replaces (1 << n) for macro BIT(n) - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft.h | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index 3f3dcd96f9a7..41ac00239aa3 100644 --- a/drivers/staging/fbtf

[PATCH 08/11] staging: fbtft: Add spaces around / - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index a9ee586ee6ba..4c71106d3b71 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/d

[PATCH 09/11] staging: fbtft: Corrects long index line - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft-sysfs.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-sysfs.c b/drivers/staging/fbtft/fbtft-sysfs.c index 8327f8f26ab1..99c8c9a636b5 100644 --- a/drivers/staging/fbtft/fbtft-sysfs.

[PATCH 07/11] staging: fbtft: Includes description to mutex and spinlock - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h index d8e7204a8d74..3f3dcd96f9a7 100644 --- a/drivers/staging/fbtft/fbtft.h +++ b/drivers/staging/fb

[PATCH 06/11] staging: fbtft: Fixes some defines styles - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fbtft-bus.c | 10 ++ drivers/staging/fbtft/fbtft-core.c | 6 -- drivers/staging/fbtft/fbtft.h | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/staging/fbtft/fbtft-bus.c b/drivers/staging/f

[PATCH 04/11] staging: fbtft: Adjust some empty-line problems - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fb_s6d02a1.c | 1 - drivers/staging/fbtft/fb_s6d1121.c | 1 + drivers/staging/fbtft/fb_ssd1289.c | 1 + drivers/staging/fbtft/fbtft_device.c | 2 -- 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fbtft/fb

[PATCH 03/11] staging: fbtft: Fixes some alignment and line > 80 char issues - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fb_ssd1289.c | 6 +-- drivers/staging/fbtft/fb_ssd1306.c | 3 +- drivers/staging/fbtft/fb_ssd1331.c | 9 - drivers/staging/fbtft/fb_ssd1351.c | 43 + drivers/staging/fbtft/fb_st7735r.c | 19 +++--- dri

[PATCH 02/11] staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fb_hx8347d.c | 2 +- drivers/staging/fbtft/fb_ili9163.c | 2 +- drivers/staging/fbtft/fb_ili9320.c | 2 +- drivers/staging/fbtft/fb_ili9325.c | 2 +- drivers/staging/fbtft/fb_ili9341.c | 2 +- drivers/staging/fbtft/fb_s6d1121.c

[PATCH 01/11] staging: fbtft: Changes udelay(n) to usleep_range(n, n + 1). - Style

2018-08-06 Thread Leonardo Brás
Signed-off-by: Leonardo Brás --- drivers/staging/fbtft/fb_agm1264k-fl.c | 2 +- drivers/staging/fbtft/fb_ra8875.c | 4 ++-- drivers/staging/fbtft/fb_tinylcd.c | 2 +- drivers/staging/fbtft/fb_upd161704.c | 19 +-- drivers/staging/fbtft/fb_watterott.c | 4 ++-- 5 f

[PATCH 00/11] Style Fixes on fbtft

2018-08-06 Thread Leonardo Brás
I did some style fixes on staging/fbtft using scripts/checkpatch.pl. Please feel free to suggest any changes. Leonardo Brás (11): staging: fbtft: Changes udelay(n) to usleep_range(n, n + 1). - Style staging: fbtft: Puts macro arguments in parenthesis to avoid precedence issues - Style

[PATCH] nds32: add NULL entry to the end of_device_id array

2018-08-06 Thread YueHaibing
Make sure of_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: YueHaibing --- arch/nds32/kernel/atl2c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/nds32/kernel/atl2c.c b/arch/nds32/kernel/atl2c.c index 0c6d031..0

Re: [PATCH v4 0/4] seccomp trap to userspace

2018-08-06 Thread Christian Brauner
On Mon, Aug 06, 2018 at 08:44:42PM -0600, Tycho Andersen wrote: > Hi all, > > Dinesh Subhraveti has claimed that some part of this series might be > patented. While he has not furnished me with anything to confirm this > claim, I'll put this series on hold. Hey man, Sorry to hear that your faced

Re: Re: [PATCH] [PATCH] mm: disable preemption before swapcache_free

2018-08-06 Thread Hugh Dickins
On Tue, 7 Aug 2018, zhaowu...@wingtech.com wrote: > > Thanks for affirming the modification of disabling preemption and > pointing out the incompleteness, delete_from_swap_cache() needs the same > protection. > I'm curious about that why don't put swapcache_free(swap) under protection of  > mapp

Urgent Help Needed

2018-08-06 Thread Mrs. Evalyn Allyson
Hello Beloved, my name is Mrs. Evelyn Allyson. I was diagnosed with cancer about 2 years ago, and I am receiving treatment for it, but now the doctors are saying I have a short time to live. I had no children of my own with my late husband. I have decided to donate US$ 10.5M (Ten Million Five Hund

Re: [PATCH v4 0/4] seccomp trap to userspace

2018-08-06 Thread Andy Lutomirski
> On Aug 6, 2018, at 7:44 PM, Tycho Andersen wrote: > > Hi all, > > Dinesh Subhraveti has claimed that some part of this series might be > patented. While he has not furnished me with anything to confirm this > claim, I'll put this series on hold. That... is utterly ridiculous. Does LF have a

Re: [RFC PATCH 1/2] x86: WARN() when uaccess helpers fault on kernel addresses

2018-08-06 Thread Andy Lutomirski
> On Aug 6, 2018, at 6:22 PM, Jann Horn wrote: > > There have been multiple kernel vulnerabilities that permitted userspace to > pass completely unchecked pointers through to userspace accessors: > > - the waitid() bug - commit 96ca579a1ecc ("waitid(): Add missing > access_ok() checks") > -

Re: [PATCH] arm64: dts: allwinner: a64: add csi regulator to sopine dts

2018-08-06 Thread Chen-Yu Tsai
On Wed, Aug 1, 2018 at 3:43 PM, Akash Gajjar wrote: > sopine board has a csi. enable supply dvdd-1v8-csi, dovdd-2v8-csi and > avdd-2v8-csi on board to access external camera connected to it. Unless there are other uses beyond supplying the camera module, this is not going to be accepted. Enabling

[PATCH] pinctrl: uniphier: drop meaningless pin from SD1 pin-mux of Pro4

2018-08-06 Thread Masahiro Yamada
The pin 327 was supposed to be used as a voltage control line for the SD card regulator, but the SD card port1 does not support UHS-I. It only supports 3.3V signaling, hence this pin is pointless. Just a note about the background. At first, hardware engineers tried to implement the UHS for this

do the editing

2018-08-06 Thread Jason James
Want to follow up the email sent last week. Do you have needs for photo editing? We can edit 400 images within 24 hours. We are working on all kinds of ecommerce photos, jewelry photos, and the portrait images. We do cutting out and clipping path and others, and also we provide retouching for yo

Re: [PATCH v4 0/4] seccomp trap to userspace

2018-08-06 Thread Tycho Andersen
Hi all, Dinesh Subhraveti has claimed that some part of this series might be patented. While he has not furnished me with anything to confirm this claim, I'll put this series on hold. Tycho On Thu, Jun 21, 2018 at 04:04:12PM -0600, Tycho Andersen wrote: > Hi all, > > Here's v4 of the seccomp tr

Re: [RFC PATCH 1/2] x86: WARN() when uaccess helpers fault on kernel addresses

2018-08-06 Thread Kees Cook
On Mon, Aug 6, 2018 at 6:22 PM, Jann Horn wrote: > There have been multiple kernel vulnerabilities that permitted userspace to > pass completely unchecked pointers through to userspace accessors: > > - the waitid() bug - commit 96ca579a1ecc ("waitid(): Add missing >access_ok() checks") > - t

Re: [PATCH 3/4] watchdog: hpwdt: Display module parameters.

2018-08-06 Thread Guenter Roeck
On 08/06/2018 04:19 PM, Jerry Hoemann wrote: On Sat, Aug 04, 2018 at 06:13:20PM -0700, Guenter Roeck wrote: On 08/02/2018 02:15 PM, Jerry Hoemann wrote: Print module parameters when the driver is loaded. Signed-off-by: Jerry Hoemann --- drivers/watchdog/hpwdt.c | 5 +++-- 1 file changed,

Re: [PATCH] firmware: make sure builtin firmware is page alignment

2018-08-06 Thread Zhang, Ning A
在 2018-08-06一的 16:05 +0200,gre...@linuxfoundation.org写道: > On Mon, Aug 06, 2018 at 01:48:44AM +, Zhang, Ning A wrote: > > 在 2018-08-03五的 12:31 +0200,gre...@linuxfoundation.org写道: > > > On Fri, Aug 03, 2018 at 08:42:25AM +, Zhang, Ning A wrote: > > > > 在 2018-08-03五的 07:39 +0200,Greg KH写道: >

for editing the photos

2018-08-06 Thread Jason James
Want to follow up the email sent last week. Do you have needs for photo editing? We can edit 400 images within 24 hours. We are working on all kinds of ecommerce photos, jewelry photos, and the portrait images. We do cutting out and clipping path and others, and also we provide retouching for yo

Re: [PATCH 4/5] arm: dts: qcom: Add ipq8064-ap161.dts

2018-08-06 Thread Sricharan R
Hi Rob, On 8/7/2018 2:05 AM, Rob Herring wrote: > On Fri, Aug 3, 2018 at 8:10 AM Sricharan R wrote: >> >> Add a new board dts for ipq8064-ap161. >> >> Signed-off-by: Sricharan R >> --- >> Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ >> arch/arm/boot/dts/Makefile |

for editing the photos

2018-08-06 Thread Jason James
Want to follow up the email sent last week. Do you have needs for photo editing? We can edit 400 images within 24 hours. We are working on all kinds of ecommerce photos, jewelry photos, and the portrait images. We do cutting out and clipping path and others, and also we provide retouching for yo

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

2018-08-06 Thread Masahiro Yamada
2018-08-07 9:59 GMT+09:00 Stephen Rothwell : > Hi all, > > On Mon, 6 Aug 2018 22:24:01 +1000 Stephen Rothwell > wrote: >> >> On Mon, 6 Aug 2018 10:37:38 +1000 Stephen Rothwell >> wrote: >> > >> > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) >> > failed like this: >

[PATCH v3 0/2] pinctrl: meson-g12a: add pinctrl driver support

2018-08-06 Thread Yixun Lan
This patch series try to add pinctrl driver support for the Meson-G12A SoC. The pinctrl driver for Meson-G12A SoC share the similar IP as the previous Meson-AXG SoC, both use same pinmux ops (register layout). But, a new driver is needed here due to the differences in the pins. Changes since

[PATCH v3 2/2] pinctrl: meson-g12a: add pinctrl driver support

2018-08-06 Thread Yixun Lan
Add the pinctrl driver for Meson-G12A SoC which share the similar IP as the previous Meson-AXG SoC, both use same pinmux ops (register layout). A new driver is needed here due to the differences in the pins. Starting from Meson-AXG SoC, the pinctrl controller block use 4 continues register bits to

[PATCH v3 1/2] documentation: pinctrl: Add compatibles for Amlogic Meson G12A pin controllers

2018-08-06 Thread Yixun Lan
Add new compatible name for Amlogic's Meson-G12A pin controllers, add a dt-binding header file which document the detail pin names. Acked-by: Martin Blumenstingl Reviewed-by: Rob Herring Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- .../bindings/pinctrl/meson,pinctrl.txt|

Re: [PATCH] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-06 Thread Steven Rostedt
On Mon, 6 Aug 2018 21:54:32 -0400 Steven Rostedt wrote: > --- a/kernel/trace/trace_preemptirq.c > +++ b/kernel/trace/trace_preemptirq.c > @@ -20,40 +20,52 @@ static DEFINE_PER_CPU(int, tracing_irq_cpu); > void trace_hardirqs_on(void) > { > if (!this_cpu_read(tracing_irq_cpu)) > -

[PATCH] x86/boot/KASLR: Change the function type to void

2018-08-06 Thread Chao Fan
Since function "handle_mem_options" is used only once: arch/x86/boot/compressed/kaslr.c:421 handle_mem_options(); The return value is useless, so change it to void. And also clean a useless variable. Suggested-by: Dou Liyang Signed-off-by: Chao Fan --- arch/x86/boot/compressed/kaslr.c

[PATCH] tracing: Partial revert of "tracing: Centralize preemptirq tracepoints and unify their usage"

2018-08-06 Thread Steven Rostedt
[ Peter, you OK with this patch? It just makes lockdep call its helper functions directly like it did before. ] From: "Steven Rostedt (VMware)" Joel Fernandes created a nice patch that cleaned up the duplicate hooks used by lockdep and irqsoff latency tracer. It made both use tracepoints. Bu

Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-08-06 Thread Steven Rostedt
On Mon, 6 Aug 2018 17:43:19 -0700 Joel Fernandes wrote: > On Mon, Aug 6, 2018 at 12:50 PM, Steven Rostedt wrote: > > > > With this patch applied, I'm constantly getting lockdep errors. Instead > > of doing a full revert of the patch, I did this, which makes all those > > errors go away. I may ap

[PATCH] lockdep: Have assert functions test for actual interrupts disabled

2018-08-06 Thread Steven Rostedt
From: Steven Rostedt (VMware) While working on irqs disabled tracepoints, I triggered the following warning: [ cut here ] IRQs not disabled as expected WARNING: CPU: 0 PID: 0 at kernel/softirq.c:144 __local_bh_enable+0x9b/0xe0 Modules linked in: CPU: 0 PID: 0 Comm:

Re: New remoteproc driver for TI PRU

2018-08-06 Thread Suman Anna
Hi David, On 08/06/2018 11:32 AM, David Lechner wrote: > On 06/29/2018 07:17 PM, Suman Anna wrote: >> Hi David, >> >> On 06/29/2018 12:44 PM, David Lechner wrote: >>> On 06/29/2018 04:58 AM, Roger Quadros wrote: +Suman & Tero Hi David, On 24/06/18 00:08, David Lechner wrot

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Chanwoo Choi
Hi Matthias, On 2018년 08월 07일 09:23, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Tue, Aug 07, 2018 at 07:31:16AM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> On 2018년 08월 07일 04:21, Matthias Kaehlcke wrote: >>> Hi Chanwoo, >>> >>> On Fri, Aug 03, 2018 at 09:14:46AM +0900, Chanwoo Choi wrote

Re: [PATCH 3/4] ARM64: dts: meson-gx: add dmcbus and canvas nodes.

2018-08-06 Thread Yixun Lan
hi Maxime: On Sun, Aug 5, 2018 at 4:02 AM, Maxime Jourdan wrote: >>> + sysctrl_DMC: system-controller@0 { >>> + compatible = >>> "amlogic,meson-gx-dmc-sysctrl", "syscon", "simple-mfd"; >> >> we'd like to drop 'meson-' prefix, so better using "a

[PATCH] perf ordered_events: fix crash in free_dup_event()

2018-08-06 Thread Stephane Eranian
Depending on memory allocations, it was possible to get a SEGFAULT in free_dup_event() because the event pointer was bogus: perf[1354]: segfault at 0006 ip 004b7fc7 Initially, I thought it was some double free. But it turns out it looked more like a buffer overrun. Adding padd

[RFC PATCH 1/2] x86: WARN() when uaccess helpers fault on kernel addresses

2018-08-06 Thread Jann Horn
There have been multiple kernel vulnerabilities that permitted userspace to pass completely unchecked pointers through to userspace accessors: - the waitid() bug - commit 96ca579a1ecc ("waitid(): Add missing access_ok() checks") - the sg/bsg read/write APIs - the infiniband read/write APIs

[RFC PATCH 2/2] lkdtm: test copy_to_user() on bad kernel pointer under KERNEL_DS

2018-08-06 Thread Jann Horn
Test whether the kernel WARN()s when, under KERNEL_DS, a bad kernel pointer is used as "userspace" pointer. Test with "DIRECT" mode. Signed-off-by: Jann Horn --- drivers/misc/lkdtm/core.c | 1 + drivers/misc/lkdtm/lkdtm.h| 1 + drivers/misc/lkdtm/usercopy.c | 13 + 3 files

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

2018-08-06 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) failed like this: /usr/bin/ld: /home/sfr/next/tmp/ccWnssuq.o: in function `dump_attr_TIMESTAMP_INFO': test-fsinfo.c:(.text+0x5d4): undefined reference to `pow' /usr/bin/ld: test-fsinfo.c:(.text+0x618): undefined re

[BUG] 4.18-rcX iptables regression

2018-08-06 Thread Bob Tracy
With iptables v1.6.0 and kernel version 4.18-rc7, "iptables [-t table] -L" produces diagnostic output to the effect of not being able to find the table. Kernel version 4.17.0 and earlier work fine. --Bob

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

2018-08-06 Thread Stephen Rothwell
Hi all, On Mon, 6 Aug 2018 22:24:01 +1000 Stephen Rothwell wrote: > > On Mon, 6 Aug 2018 10:37:38 +1000 Stephen Rothwell > wrote: > > > > After merging the vfs tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > samples/statx/test-fsinfo.c:26:10: fatal error: li

[PATCH] proc: add percpu populated pages count to meminfo

2018-08-06 Thread Dennis Zhou
From: "Dennis Zhou (Facebook)" Currently, percpu memory only exposes allocation and utilization information via debugfs. This more or less is only really useful for understanding the fragmentation and allocation information at a per-chunk level with a few global counters. This is also gated behin

Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage

2018-08-06 Thread Joel Fernandes
On Mon, Aug 6, 2018 at 12:50 PM, Steven Rostedt wrote: > > With this patch applied, I'm constantly getting lockdep errors. Instead > of doing a full revert of the patch, I did this, which makes all those > errors go away. I may apply this for now, and we can revisit having > lockdep use the tracep

Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-06 Thread James Bottomley
On Mon, 2018-08-06 at 17:09 -0700, Tadeusz Struk wrote: > On 08/06/2018 04:05 PM, James Bottomley wrote: > > For an async interface, shouldn't I be able to queue an > > arbitrary number of commands without blocking? > > That was the approach in the v1 version of this patch, but > Jason requested t

Your immediate response is required if you are alive

2018-08-06 Thread Derek Langston
Dear Client, Please confirm if you are still alive because two gentle men walked into my office this morning to claim your inheritance funds with our bank. They said that you are dead and that they are your representative. I got your email from the file of your relative who is yet to be paid

[GIT PULL] GPIO fix for v4.18

2018-08-06 Thread Linus Walleij
Hi Linus, a single ACPI GPIO thingie that is standing out. Please pull it in! Description in the commit log. Yours, Linus Walleij The following changes since commit acb1872577b346bd15ab3a3f8dff780d6cca4b70: Linux 4.18-rc7 (2018-07-29 14:44:52 -0700) are available in the Git repository at:

Re: [PATCH 0/3] introduce memory.oom.group

2018-08-06 Thread Roman Gushchin
On Mon, Aug 06, 2018 at 02:34:06PM -0700, David Rientjes wrote: > On Wed, 1 Aug 2018, Roman Gushchin wrote: > > > Ok, I think that what we'll do here: > > 1) drop the current cgroup-aware OOM killer implementation from the mm tree > > 2) land memory.oom.group to the mm tree (your ack will be appre

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Matthias Kaehlcke
Hi Chanwoo, On Tue, Aug 07, 2018 at 07:31:16AM +0900, Chanwoo Choi wrote: > Hi Matthias, > > On 2018년 08월 07일 04:21, Matthias Kaehlcke wrote: > > Hi Chanwoo, > > > > On Fri, Aug 03, 2018 at 09:14:46AM +0900, Chanwoo Choi wrote: > >> Hi Matthias, > >> > >> On 2018년 08월 03일 08:48, Matthias Kaehlck

Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-06 Thread Tadeusz Struk
On 08/06/2018 04:05 PM, James Bottomley wrote: > For an async interface, shouldn't I be able to queue an > arbitrary number of commands without blocking? That was the approach in the v1 version of this patch, but Jason requested this to be changed so that only one command at a time can be processe

Re: [PATCH v2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

2018-08-06 Thread Palmer Dabbelt
On Mon, 06 Aug 2018 14:00:53 PDT (-0700), rdun...@infradead.org wrote: On 08/06/2018 01:42 PM, Palmer Dabbelt wrote: This file is expected to be included multiple times in the same file in order to allow the __SYSCALL macro to generate system call tables. With a global include guard we end up m

Re: [PATCH] spi-nor: add support for is25wp256d

2018-08-06 Thread Palmer Dabbelt
On Mon, 06 Aug 2018 14:05:11 PDT (-0700), marek.va...@gmail.com wrote: On 08/06/2018 10:58 PM, Palmer Dabbelt wrote: On Sat, 04 Aug 2018 02:27:54 PDT (-0700), marek.va...@gmail.com wrote: On 08/04/2018 03:49 AM, Palmer Dabbelt wrote: From: "Wesley W. Terpstra" This is used of the HiFive Unle

Re: [PATCH v2] resource: Merge resources on a node when hot-adding memory

2018-08-06 Thread Rashmica
On 07/08/18 00:14, Mike Rapoport wrote: > On Mon, Aug 06, 2018 at 04:52:24PM +1000, Rashmica Gupta wrote: >> When hot-removing memory release_mem_region_adjustable() splits >> iomem resources if they are not the exact size of the memory being >> hot-deleted. Adding this memory back to the kernel a

Re: [PATCH v9 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-08-06 Thread Mark Brown
On Mon, Aug 06, 2018 at 03:55:53PM -0700, Doug Anderson wrote: > On Thu, Jul 26, 2018 at 11:39 AM, Andy Gross wrote: > > The arm-soc guys merged the Qualcomm pull requests. So you can just use my > > qcom-drivers-for-4.19 tag. That won't change at this point. > > git://git.kernel.org/pub/scm/l

Re: [PATCH] linux/bitmap.h: fix BITMAP_LAST_WORD_MASK

2018-08-06 Thread Rasmus Villemoes
On 2018-07-26 12:15, Wei Wang wrote: > On 07/26/2018 05:37 PM, Yury Norov wrote: >> On Thu, Jul 26, 2018 at 04:07:51PM +0800, Wei Wang wrote: >>> The existing BITMAP_LAST_WORD_MASK macro returns 0x if nbits is >>> 0. This patch changes the macro to return 0 when there is no bit >>> needs to

Re: [PATCH 3/4] watchdog: hpwdt: Display module parameters.

2018-08-06 Thread Jerry Hoemann
On Sat, Aug 04, 2018 at 06:13:20PM -0700, Guenter Roeck wrote: > On 08/02/2018 02:15 PM, Jerry Hoemann wrote: > > Print module parameters when the driver is loaded. > > > > Signed-off-by: Jerry Hoemann > > --- > > drivers/watchdog/hpwdt.c | 5 +++-- > > 1 file changed, 3 insertions(+), 2 delet

[RFC] RISC-V: Fix !CONFIG_SMP compilation error

2018-08-06 Thread Atish Patra
Enabling both CONFIG_PERF_EVENTS without !CONFIG_SMP generates following compilation error. arch/riscv/include/asm/perf_event.h:80:2: error: expected specifier-qualifier-list before 'irqreturn_t' irqreturn_t (*handle_irq)(int irq_num, void *dev); ^~~ Include interrupt.h in proper pla

Re: [PATCH 0/2] x86/intel_rdt and perf/x86: Fix lack of coordination with perf

2018-08-06 Thread Reinette Chatre
Hi Peter, On 8/6/2018 3:12 PM, Peter Zijlstra wrote: > On Mon, Aug 06, 2018 at 12:50:50PM -0700, Reinette Chatre wrote: >> In my previous email I provided the details of the Cache Pseudo-Locking >> feature implemented on top of resctrl. Please let me know if you would >> like any more details abou

Re: [PATCH] Input: cros_ec_keyb: Remove check before calling pm_wakeup_event.

2018-08-06 Thread Ravi Chandra Sadineni
Hi Merek, Thanks for the info. Lemme understand what's going on. Will update the thread once I have more info. Thanks, Ravi On Mon, Aug 6, 2018 at 12:15 AM Marek Szyprowski wrote: > > Hi Dmitry > > On 2018-08-06 08:16, Dmitry Torokhov wrote: > > On Sun, Aug 5, 2018 at 10:29 PM Marek Szyprowski >

Re: [PATCH v3 RESEND 2/2] tpm: add support for nonblocking operation

2018-08-06 Thread James Bottomley
On Mon, 2018-08-06 at 14:14 -0700, Tadeusz Struk wrote: [...] > +static void tpm_async_work(struct work_struct *work) > +{ > + struct file_priv *priv = > + container_of(work, struct file_priv, > async_work); > + ssize_t ret; > + > + ret = tpm_transmit(priv->chip, pri

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-08-06 Thread Fubo Chen
On Mon, Aug 6, 2018 at 3:30 PM Peter Zijlstra wrote: > > On Mon, Aug 06, 2018 at 02:28:18PM -0700, Fubo Chen wrote: > > Do you think the patch below is sufficient to suppress the sparse warning? > > Why would I want to make the code ugly to supress it? There are many kernel developers who use spa

Re: [PATCH] mm: adjust max read count in generic_file_buffered_read()

2018-08-06 Thread Andrew Morton
On Mon, 6 Aug 2018 12:22:03 +0200 Jan Kara wrote: > On Fri 20-07-18 16:14:29, Andrew Morton wrote: > > On Thu, 19 Jul 2018 10:58:12 +0200 Jan Kara wrote: > > > > > On Thu 19-07-18 16:17:26, Chengguang Xu wrote: > > > > When we try to truncate read count in generic_file_buffered_read(), > > > >

Re: [PATCH v9 1/2] regulator: dt-bindings: add QCOM RPMh regulator bindings

2018-08-06 Thread Doug Anderson
Mark, On Thu, Jul 26, 2018 at 11:39 AM, Andy Gross wrote: > + olof > > On Tue, Jul 24, 2018 at 05:59:42PM +0100, Mark Brown wrote: >> On Tue, Jul 24, 2018 at 08:43:46AM -0700, Doug Anderson wrote: >> > On Tue, Jul 24, 2018 at 8:25 AM, Mark Brown wrote: >> >> > > There was also some other thing c

Re: [PATCH rdma-next v4 2/3] test_overflow: Add shift overflow tests

2018-08-06 Thread Rasmus Villemoes
On 2018-08-01 23:25, Kees Cook wrote: > This adds overflow tests for the new check_shift_overflow() helper to > validate overflow, signedness glitches, storage glitches, etc. > Just a few random comments, not really anything worth a v5 by itself. IOW, I can live with this being sent upstream duri

Re: [RFC PATCH v2 1/2] interconnect: qcom: Add sdm845 interconnect provider driver

2018-08-06 Thread Bjorn Andersson
On Wed 18 Jul 19:36 PDT 2018, David Dai wrote: > diff --git a/drivers/interconnect/qcom/sdm845.c > b/drivers/interconnect/qcom/sdm845.c [..] > +DEFINE_QNODE(ipa_core_master, MASTER_IPA_CORE, 1, 8, 1, SLAVE_IPA_CORE); [..] > +DEFINE_QNODE(ipa_core_slave, SLAVE_IPA_CORE, 1, 8, 0); As discussed befo

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Chanwoo Choi
Hi Viresh Kumar, I have a question about dev_pm_opp_enable() and dev_pm_opp_disable(). Two functions have 'available' field to indicate the status of specific OPP. If different device drivers try to control the same OPP, dev_pm_opp_enable() and dev_pm_opp_disable() will consider only last operati

Re: linux-next: Signed-off-by missing for commit in the risc-v tree

2018-08-06 Thread Palmer Dabbelt
On Sun, 05 Aug 2018 14:37:05 PDT (-0700), Stephen Rothwell wrote: Hi Palmer, Commit bce17edfe6af ("fixup: ". " in PLIC docs") is missing a Signed-off-by from its author and committer. Oh, sorry about that. It should be gone, it was just meant as a review comment.

Re: [PATCH 6/8] input: stpmu1: add stpmu1 onkey driver

2018-08-06 Thread Dmitry Torokhov
Hi Pascal, On Thu, Jul 05, 2018 at 03:14:24PM +, Pascal PAILLET-LME wrote: > From: pascal paillet > > The stpmu1 pmic is able to manage an onkey button. This driver exposes > the stpmu1 onkey as an input device. It can also be configured to > shut-down the power supplies on a long key-press

[PATCH] lib/vsprintf: Do not handle %pO[^F] as %px

2018-08-06 Thread Bart Van Assche
This patch avoids that gcc reports the following when building with W=1: lib/vsprintf.c:1941:3: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (fmt[1]) { ^~ Fixes: ce4fecf1fe15 ("vsprintf: Add %p extension "%pOF" for device tree") Signed-off-by: Bart Van Assc

Re: [PATCH v5 05/12] PM / devfreq: Add support for policy notifiers

2018-08-06 Thread Chanwoo Choi
Hi Matthias, On 2018년 08월 07일 04:21, Matthias Kaehlcke wrote: > Hi Chanwoo, > > On Fri, Aug 03, 2018 at 09:14:46AM +0900, Chanwoo Choi wrote: >> Hi Matthias, >> >> On 2018년 08월 03일 08:48, Matthias Kaehlcke wrote: >>> On Thu, Aug 02, 2018 at 04:13:43PM -0700, Matthias Kaehlcke wrote: Hi Chanw

Re: [PATCH] Input: mark expected switch fall-throughs

2018-08-06 Thread Dmitry Torokhov
On Tue, Jul 03, 2018 at 03:35:44PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Warning level 2 was used: -Wimplicit-fallthrough=2 > > Signed-off-by: Gustavo A. R. Silva Applied, thank you.

[RFC PATCH v2 04/12] mtd: rawnand: ams-delta: request data port GPIO resource

2018-08-06 Thread Janusz Krzysztofik
Data port used by the driver is actually an OMAP MPUIO device, already under control of gpio-omap driver. For that reason we used to not request the memory region of the port as that would fail because the region is already busy. Despite that, we are still accessing the port by just ioremapping i

Re: [PATCH] perf/x86/intel: Fix unwind errors from PEBS entries (mk-II)

2018-08-06 Thread Peter Zijlstra
On Mon, Aug 06, 2018 at 02:28:18PM -0700, Fubo Chen wrote: > Do you think the patch below is sufficient to suppress the sparse warning? Why would I want to make the code ugly to supress it?

[PATCH] perf arm64: Fix include path for asm-generic/unistd.h

2018-08-06 Thread Kim Phillips
The new syscall table support for arm64 mistakenly used the system's asm-generic/unistd.h file when processing the tools/arch/arm64/include/uapi/asm/unistd.h file's include directive: #include See "Committer notes" section of commit 2b5882435606 "perf arm64: Generate system call table fr

  1   2   3   4   5   6   7   >