Re: [PATCH v2 11/13] xen/pvcalls: implement release command

2017-09-11 Thread Stefano Stabellini
On Tue, 1 Aug 2017, Juergen Gross wrote: > +if (sock->sk == NULL) > +return 0; > + > +map = (struct sock_mapping *) READ_ONCE(sock->sk->sk_send_head); > +if (map == NULL) > +return 0; > + > +

Re: [PATCH] iio: adc: dln2-adc: initialize local struct before using it

2017-09-11 Thread kbuild test robot
Hi Martin, [auto build test WARNING on iio/togreg] [also build test WARNING on next-20170911] [cannot apply to v4.13] [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/Martin-Kepplinger/iio-adc

Re: [f2fs-dev] [PATCH] f2fs: fix double count on issued discard commands

2017-09-11 Thread Chao Yu
On 2017/9/11 11:38, Jaegeuk Kim wrote: > If issue_cond is true, it does double count for # of issued commands. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu > --- > fs/f2fs/segment.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

[PATCH 1/2] mtd: nand: introduce NAND_ROW_ADDR_3 flag

2017-09-11 Thread Masahiro Yamada
Several drivers check ->chipsize to see if the third row address cycle is needed. Instead of embedding magic sizes such as 32MB, 128MB in drivers, introduce a new flag NAND_ROW_ADDR_3 for clean-up. Since nand_scan_ident() knows well about the device, it can handle this properly. The flag is set

[PATCH 0/2] mtd: nand: introduce NAND_ROW_ADDR_3 flag and improve Denali driver

2017-09-11 Thread Masahiro Yamada
Currently, Denali NAND driver always expects 3 row address cycle devices because the driver init code hard-code the register setting. I will fix it in 2/2. Many drivers check chip->chipsize if the third row address cycle is needed or not. This is not nice because 32MB, 128MB are magic numbers.

[PATCH 6/7] Add new U1 device ID for supporting it

2017-09-11 Thread Masaki Ota
From: Masaki Ota -Add new U1 device Product ID -This device is used on HP Elite book x360 series Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 3 +++ drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h | 1 + 3 files changed, 5

[PATCH 5/7] Support new Alps device that name is T4

2017-09-11 Thread Masaki Ota
From: Masaki Ota -Add T4 device code and Product ID -This device is used on HP EliteBook 1000 series and Zbook Stduio Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 343 ++---

[GIT PULL] Thermal management updates for v4.14-rc1

2017-09-11 Thread Zhang Rui
Hi, Linus, Please pull from   git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git next to receive the latest Thermal Management updates for v4.14-rc1 with top-most commit b32b5e14b4e0d40e06f094d2593b447e00acdf37:   Merge branches 'thermal-core', 'thermal-soc', 'thermal-intel' and

[PATCH 3/7] Minor changes in hid-alps.c for support new Alps device(Add some variables)

2017-09-11 Thread Masaki Ota
From: Masaki Ota -To support Alps T4 device, add x_min, y_min, max_fingers variables Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 38 -- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git

Re: [PATCH v2 2/3] livepatch: add atomic replace

2017-09-11 Thread Jason Baron
On 09/11/2017 09:53 AM, Petr Mladek wrote: > On Wed 2017-08-30 17:38:44, Jason Baron wrote: >> When doing cumulative patches, if patch A introduces a change to function 1, >> and patch B reverts the change to function 1 and introduces changes to say >> function 2 and 3 as well, the change that

[PATCH v2 0/4] Update TMDSEVM3530 support for omap3-evm

2017-09-11 Thread Derald D. Woods
This patch set allows TMDSEVM3530(omap3-evm.dts) to boot using common processor module data that is shared with 'omap3-evm-37xx.dts'. A new common file for processor module data is introduced to help facilitate the updated OMAP3530 support. Changes in v2 - - Pull in change from

[PATCH v2 4/4] ARM: dts: omap3-evm: Add DSS {vdds_dsi,vdda_video}-supply references

2017-09-11 Thread Derald D. Woods
This commit eliminates two dummy regulator assignments. Signed-off-by: Derald D. Woods --- arch/arm/boot/dts/omap3-evm-processor-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/omap3-evm-processor-common.dtsi

[PATCH v2 1/4] ARM: dts: omap3-evm-37xx: Add common processor module support

2017-09-11 Thread Derald D. Woods
This commit moves common OMAP3-EVM processor module device tree data to a separate include file. This will allow for 'omap3-evm.dts' to use device tree data that is unique to the OMAP3530 version of the processor module, while making use of the work already done for the 'omap3-evm-37xx.dts'.

[PATCH v2 3/4] ARM: dts: omap3: Fix Sharp LS037V7DW01 compatible string and envdd supply

2017-09-11 Thread Derald D. Woods
The Sharp panel driver and regulator are now selected properly. This commit eliminates a dummy regulator assignment. Signed-off-by: Derald D. Woods --- arch/arm/boot/dts/omap3-panel-sharp-ls037v7dw01.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH] nios2: time: Read timer in get_cycles only if initialized

2017-09-11 Thread Guenter Roeck
Mainline crashes as follows when running nios2 images. On node 0 totalpages: 65536 free_area_init_node: node 0, pgdat c8408fa0, node_mem_map c8726000 Normal zone: 512 pages used for memmap Normal zone: 0 pages reserved Normal zone: 65536 pages, LIFO batch:15 Unable to handle kernel NULL

[PATCH 2/2] zram: remove zlib from the list of recommended algorithms

2017-09-11 Thread Sergey Senozhatsky
ZSTD tends to outperform deflate/inflate, thus we remove zlib from the list of recommended algorithms and recommend zstd instead. Signed-off-by: Sergey Senozhatsky Suggested-by: Minchan Kim --- drivers/block/zram/zcomp.c | 3 --- 1 file

[PATCH] perf, tools: Improve error messages for missing PMUs

2017-09-11 Thread Andi Kleen
From: Andi Kleen When a PMU is missing print a better error message mentioning the missing PMU. % mkdir empty % mount --bind empty /sys/devices/msr % perf stat -M Summary true event syntax error:

Re: [PATCH v4 1/2] i2c: davinci: Add PM Runtime Support

2017-09-11 Thread Baolin Wang
Hi, On 12 September 2017 at 04:11, Franklin S Cooper Jr wrote: > 66AK2G has I2C instances that are not apart of the ALWAYS_ON power domain > unlike other Keystone 2 SoCs and OMAPL138. Therefore, pm_runtime > is required to insure the power domain used by the specific I2C instance

Re: [PATCH v2 38/40] tracing: Make tracing_set_clock() non-static

2017-09-11 Thread Masami Hiramatsu
On Tue, 5 Sep 2017 16:57:50 -0500 Tom Zanussi wrote: > Allow tracing code outside of trace.c to access tracing_set_clock(). > > Some applications may require a particular clock in order to function > properly, such as latency calculations. > > Also, add an

linux-next: Tree for Sep 12

2017-09-11 Thread Stephen Rothwell
Hi all, Please do not add any v4.15 related material to your linux-next included branches until after v4.14-rc1 has been released. Changes since 20170911: Non-merge commits (relative to Linus' tree): 1124 1423 files changed, 55946 insertions(+), 14234 deletions

Re: [f2fs-dev] [PATCH] f2fs: fix double count on issued discard commands

2017-09-11 Thread Daeho Jeong
> Yeah, that's exactly like what I made a mistake before. > I should have mentioned that earlier. :) Or I think the previous code which used "iter++" might be right. You might just want to check the fixed number of small discards, DISCARD_ISSUE_RATE, when issue_cond is "true". Anyways, I have

Re: [PATCH 3/5] mm:swap: introduce SWP_SYNCHRONOUS_IO

2017-09-11 Thread Sergey Senozhatsky
On (09/12/17 11:37), Minchan Kim wrote: [..] > If rw-page based fast storage is used for swap devices, we need to > detect it to enhance swap IO operations. > This patch is preparation for optimizing of swap-in operation with > next patch. > > Signed-off-by: Minchan Kim > ---

[PATCH v2 4/5] ext4: add ext4_should_use_dax()

2017-09-11 Thread Ross Zwisler
This helper, in the spirit of ext4_should_dioread_nolock() et al., replaces the complex conditional in ext4_set_inode_flags(). Signed-off-by: Ross Zwisler --- fs/ext4/inode.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git

[PATCH v2 0/5] ext4: DAX data corruption fixes

2017-09-11 Thread Ross Zwisler
This series prevents a pair of data corruptions with ext4 + DAX. The first such corruption happens when combining the inline data feature with DAX, and the second happens when combining data journaling with DAX. Both can be reliably reproduced with the fstests that I have posted here:

[PATCH v2 5/5] ext4: remove duplicate extended attributes defs

2017-09-11 Thread Ross Zwisler
The following commit: commit 9b7365fc1c82 ("ext4: add FS_IOC_FSSETXATTR/FS_IOC_FSGETXATTR interface support") added several defines related to extended attributes to ext4.h. They were added within an #ifndef FS_IOC_FSGETXATTR block with the comment: /* Until the uapi changes get merged for

[PATCH v2 1/5] ext4: prevent data corruption with inline data + DAX

2017-09-11 Thread Ross Zwisler
If an inode has inline data it is currently prevented from using DAX by a check in ext4_set_inode_flags(). When the inode grows inline data via ext4_create_inline_data() or removes its inline data via ext4_destroy_inline_data_nolock(), the value of S_DAX can change. Currently these changes are

[PATCH v2 3/5] ext4: add sanity check for encryption + DAX

2017-09-11 Thread Ross Zwisler
We prevent DAX from being used on inodes which are using ext4's built in encryption via a check in ext4_set_inode_flags(). We do have what appears to be an unsafe transition of S_DAX in ext4_set_context(), though, where S_DAX can get disabled without us doing a proper writeback + invalidate.

[PATCH v2 2/5] ext4: prevent data corruption with journaling + DAX

2017-09-11 Thread Ross Zwisler
The current code has the potential for data corruption when changing an inode's journaling mode, as that can result in a subsequent unsafe change in S_DAX. I've captured an instance of this data corruption in the following fstest: https://patchwork.kernel.org/patch/9948377/ Prevent this data

[PATCH] Fixed IIO_DEVICE_ATTR_NAMED API to take name as a string and added "" around names

2017-09-11 Thread Himanshi Jain
Fixed IIO_DEVICE_ATTR_NAMED API to take name as a string instead of implicit conversion to string using preprocessors. Added double quotes around names in existing usage of IIO_DEVICE_ATTR_NAMED. Signed-off-by: Himanshi Jain --- drivers/iio/adc/ad7793.c | 2 +-

Re: [PATCH 10/13] openrisc: add simple_smp dts and defconfig for simulators

2017-09-11 Thread Stafford Horne
On Tue, Sep 12, 2017 at 7:37 AM, Pavel Machek wrote: > On Thu 2017-08-31 07:03:11, Stafford Horne wrote: >> From: Stefan Kristiansson >> [...] >> +++ b/arch/openrisc/boot/dts/simple_smp.dts >> @@ -0,0 +1,58 @@ >> +/dts-v1/; >> +/ { >> +

Re: linux-next: Signed-off-by missing for commit in the chrome-platform tree

2017-09-11 Thread Benson Leung
Hi Stephen, On Tue, Sep 12, 2017 at 09:45:04AM +1000, Stephen Rothwell wrote: > Hi Benson, > > Commits > > b8b9f5d4a441 ("platform/chrome: Use proper protocol transfer function") > 19601fbb7d96 ("platform/chrome: cros_ec: sysfs: Modify error handling") > 3bd61d4d1d9e ("platform/chrome:

Re: btusb "firmware request while host is not available" at resume

2017-09-11 Thread Luis R. Rodriguez
On Mon, Sep 11, 2017 at 5:13 PM, Gabriel C wrote: > On 11.09.2017 22:06, Luis R. Rodriguez wrote: >> >> On Mon, Sep 11, 2017 at 12:29:55PM -0700, Greg Kroah-Hartman wrote: >>> >>> On Mon, Sep 11, 2017 at 07:11:38PM +0200, Luis R. Rodriguez wrote: On Mon, Sep 11,

[PATCH V1] pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config

2017-09-11 Thread fenglinw
From: Fenglin Wu GPIO is expected to be disabled iff PIN_CONFIG_BIAS_HIGH_IMPEDANCE is configured. Update is_enabled flag in config_set() so that it can reflect GPIO status correctly. Also modify EN_CTL register based on is_enabled flag in config_set() to configure the

Re: [f2fs-dev] [PATCH] f2fs: fix double count on issued discard commands

2017-09-11 Thread Chao Yu
On 2017/9/12 9:53, Chao Yu wrote: > On 2017/9/11 11:38, Jaegeuk Kim wrote: >> If issue_cond is true, it does double count for # of issued commands. >> >> Signed-off-by: Jaegeuk Kim > > Reviewed-by: Chao Yu As Daeho Jeong mentioned, the change makes 'iter

Re: [PATCH] Fix: xtensa: add missing sync_core

2017-09-11 Thread Max Filippov
Hi Mathieu, On Tue, Aug 29, 2017 at 11:55 AM, Mathieu Desnoyers wrote: > - On Aug 28, 2017, at 1:12 PM, Max Filippov jcmvb...@gmail.com wrote: >> On Mon, Aug 28, 2017 at 12:36 AM, Mathieu Desnoyers >> wrote: >>> The membarrier

Re: [PATCH] x86/kconfig: hide unwinder menu for KMEMCHECK

2017-09-11 Thread Josh Poimboeuf
On Mon, Sep 11, 2017 at 09:59:36PM +0200, Arnd Bergmann wrote: > When KMEMCHECK is enabled, we always build with frame pointers, > which is incompatible with ORC_UNWINDER and GUESS_UNWINDER, as > Kconfig points out: > > warning: (FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP && KMEMCHECK && >

[PATCH -tip v2] Enable optprobe on preepmtive kernel

2017-09-11 Thread Masami Hiramatsu
This patch enables optprobe even with CONFIG_PREEMPT. The previous patch is https://lkml.org/lkml/2017/5/24/464 . With Paul's hack (https://lkml.org/lkml/2017/5/25/435), now synchronize_rcu_tasks() is translated to synchronize_sched() when TASKS_RCU=n. So this patch just replace the

RE: [PATCH] e1000e: changed some expensive calls of udelay to usleep_range

2017-09-11 Thread Brown, Aaron F
> From: netdev-ow...@vger.kernel.org [mailto:netdev- > ow...@vger.kernel.org] On Behalf Of Kardonik Michael > Sent: Tuesday, September 5, 2017 1:27 PM > To: leoyang...@nxp.com; michael.kardo...@nxp.com; Kirsher, Jeffrey T > ; Brandeburg, Jesse >

[PATCH 2/5] bdi: introduce BDI_CAP_SYNCHRONOUS_IO

2017-09-11 Thread Minchan Kim
By discussion[1], someday we will remove rw_page function. If so, we need something to detect such super-fast storage which synchronous IO operation like current rw_page is always win. This patch introduces BDI_CAP_SYNCHRONOUS_IO to indicate such devices. With it, we could use various

[PATCH 3/5] mm:swap: introduce SWP_SYNCHRONOUS_IO

2017-09-11 Thread Minchan Kim
If rw-page based fast storage is used for swap devices, we need to detect it to enhance swap IO operations. This patch is preparation for optimizing of swap-in operation with next patch. Signed-off-by: Minchan Kim --- include/linux/swap.h | 3 ++- mm/swapfile.c| 3

[PATCH 1/5] zram: set BDI_CAP_STABLE_WRITES once

2017-09-11 Thread Minchan Kim
[1] fixed weird thing(i.e., reset BDI_CAP_STABLE_WRITES flag unconditionally whenever revalidat_disk is called) so zram doesn't need to reset the flag any more whenever revalidating the bdev. Instead, set the flag just once when the zram device is created. It shouldn't change any behavior. [1]

[PATCH 5/5] mm:swap: skip swapcache for swapin of synchronous device

2017-09-11 Thread Minchan Kim
With fast swap storage, platform want to use swap more aggressively and swap-in is crucial to application latency. The rw_page based synchronous devices like zram, pmem and btt are such fast storage. When I profile swapin performance with zram lz4 decompress test, S/W overhead is more than 70%.

[PATCH 4/5] mm:swap: respect page_cluster for readahead

2017-09-11 Thread Minchan Kim
page_cluster 0 means "we don't want readahead" so in the case, let's skip the readahead detection logic. Cc: "Huang, Ying" Signed-off-by: Minchan Kim --- include/linux/swap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] Support new Alps HID Touchpad device

2017-09-11 Thread Masaki Ota
Hi, Jiri, Benjamin, This is the patch for support new Alps HID Touchpad device. I submitted these patch before, but it was not completed. So I separate the patch to some parts and release it again. Best Regards, Masaki Ota

[PATCH v3 2/5] staging: typec: tcpm: Document data structures

2017-09-11 Thread Guenter Roeck
Document struct tcpc_config and struct tcpc_dev. Drop unused TCPC_USB_SWITCH_RESTORE. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/staging/typec/tcpm.h | 57 ++-- 1 file changed, 50 insertions(+), 7 deletions(-) diff

[PATCH v2 2/4] ARM: dts: omap3-evm: Add OMAP3530 specific device tree processor data

2017-09-11 Thread Derald D. Woods
This commit allows OMAP3530 variants to use common data that is available in 'omap3-evm-processor-common.dtsi'. It adds proper pinmux macros for 'omap3_pmx_core2' on OMAP3430. The Micron NAND chip is also added for the TMDSEVM3530 processor module. Signed-off-by: Derald D. Woods

Re: [PATCH v2] openvswitch: Fix an error handling path in 'ovs_nla_init_match_and_action()'

2017-09-11 Thread Pravin Shelar
On Mon, Sep 11, 2017 at 12:56 PM, Christophe JAILLET wrote: > All other error handling paths in this function go through the 'error' > label. This one should do the same. > > Fixes: 9cc9a5cb176c ("datapath: Avoid using stack larger than 1024.") > Signed-off-by:

Re: btusb "firmware request while host is not available" at resume

2017-09-11 Thread Marcel Holtmann
Hi Luis, To confirm, reverting this fixes the problem I was seeing in 4.13. I've queued it up for the next 4.13-stable release as well. >>> >>> Commit 81f95076281f ("firmware: add sanity check on shutdown/suspend") may >>> seem kludgy but the reason for it was to cleanup the horrible

Re: [PATCH v11 2/2] sched/rt: Add support for SD_PREFER_SIBLING on find_lowest_rq()

2017-09-11 Thread Byungchul Park
On Fri, Aug 25, 2017 at 03:40:51PM +0900, Byungchul Park wrote: > It would be better to try to check other siblings first if > SD_PREFER_SIBLING is flaged when pushing tasks - migration. Any opinions? > Suggested-by: Peter Zijlstra > Signed-off-by: Byungchul Park

[PATCH -tip v2] kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT

2017-09-11 Thread Masami Hiramatsu
To enable jump optimized probe with CONFIG_PREEMPT, use synchronize_rcu_tasks() to wait for all tasks preempted on trampoline code back on track. Since the jump optimized kprobes can replace multiple instructions, there can be tasks which are interrupted on the 2nd (or 3rd) instructions. If the

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-09-11 Thread Bob Liu
On 2017/9/12 7:36, Jerome Glisse wrote: > On Sun, Sep 10, 2017 at 07:22:58AM +0800, Bob Liu wrote: >> On Wed, Sep 6, 2017 at 3:36 AM, Jerome Glisse wrote: >>> On Thu, Jul 20, 2017 at 08:48:20PM -0700, Dan Williams wrote: On Thu, Jul 20, 2017 at 6:41 PM, Jerome Glisse

Re: [PATCH] f2fs-tools: fix is_set_ckpt_flags for correct bool value

2017-09-11 Thread Chao Yu
On 2017/9/10 19:15, Yunlong Song wrote: > If flag bit to check is in 0xFF00, then the return value will be false, > this is not correct, so fix it. > > Signed-off-by: Yunlong Song Reviewed-by: Chao Yu > --- > fsck/f2fs.h | 2 +- > 1 file

[PATCH 2/7] Minor changes in hid-alps.c for support new Alps device(Separate U1 device code)

2017-09-11 Thread Masaki Ota
From: Masaki Ota -To support Alps T4 device, separate U1 device code Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 120 +++-- 1 file changed, 67 insertions(+), 53 deletions(-) diff --git

Re: usb/joystick: warnings in xpad_start_input and xpad_try_sending_next_out_packet

2017-09-11 Thread Cameron Gutman
On 09/11/2017 05:26 AM, Andrey Konovalov wrote: > Hi! > > I've got the following crashes while fuzzing the kernel with syzkaller. > > On commit 81a84ad3cb5711cec79f4dd53a4ce026b092c432 (Sep 3). > > usb 1-1: BOGUS urb xfer, pipe 1 != type 3 > WARNING: CPU: 1 PID: 2574 at

[PATCH 1/2] zram: add zstd to the supported algorithms list

2017-09-11 Thread Sergey Senozhatsky
Add ZSTD to the list of supported compression algorithms. ZRAM fio perf test: LZO DEFLATE ZSTD #jobs1 WRITE: (2180MB/s) (77.2MB/s) (1429MB/s) WRITE: (1617MB/s) (77.7MB/s) (1202MB/s) READ:(426MB/s)

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-11 Thread Paul Moore
On Sun, Sep 10, 2017 at 12:32 AM, James Morris wrote: > On Fri, 8 Sep 2017, Paul Moore wrote: > >> > This is also why I tend to prefer getting multiple branches for >> > independent things. > > [...] > >> >> Is it time to start sending pull request for each LSM and thing under

[PATCH 1/2] arm: dts: Add support for National Instruments Project Sulfur SDRs

2017-09-11 Thread Moritz Fischer
Add support for the National Instruments Project Sulfur SDR motherboards Rev 2,3 and 4. Signed-off-by: Moritz Fischer --- arch/arm/boot/dts/Makefile| 3 + arch/arm/boot/dts/zynq-ni-sulfur-rev2.dts | 84 +++

[PATCH 2/2] MAINTAINERS: Add info for NI Project Sulfur DT files

2017-09-11 Thread Moritz Fischer
Add contact info for National Instruments Project Sulfur SDR files. Signed-off-by: Moritz Fischer --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a3231bd6541d..aa54be9213bf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-09-11 Thread Jerome Glisse
On Sun, Sep 10, 2017 at 07:22:58AM +0800, Bob Liu wrote: > On Wed, Sep 6, 2017 at 3:36 AM, Jerome Glisse wrote: > > On Thu, Jul 20, 2017 at 08:48:20PM -0700, Dan Williams wrote: > >> On Thu, Jul 20, 2017 at 6:41 PM, Jerome Glisse wrote: > >> > On Fri, Jul

Re: [PATCH] mm: respect the __GFP_NOWARN flag when warning about stalls

2017-09-11 Thread Mikulas Patocka
On Mon, 11 Sep 2017, Michal Hocko wrote: > On Mon 11-09-17 02:52:53, Mikulas Patocka wrote: > > I am occasionally getting these warnings in khugepaged. It is an old > > machine with 550MHz CPU and 512 MB RAM. > > > > Note that khugepaged has nice value 19, so when the machine is loaded with

Re: Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot

2017-09-11 Thread Sergey Senozhatsky
On (09/11/17 13:45), Petr Mladek wrote: [..] > > Except for the second printk line: If you boot with rdinit=/bin/hush > > then the first time you mount -t devtmpfs /dev /dev after boot (with > > CONFIG_DEVTMPFS_MOUNT already having mounted it), you get the 0 return > > value but the last printk()

Re: btusb "firmware request while host is not available" at resume

2017-09-11 Thread Greg Kroah-Hartman
On Mon, Sep 11, 2017 at 10:06:51PM +0200, Luis R. Rodriguez wrote: > On Mon, Sep 11, 2017 at 12:29:55PM -0700, Greg Kroah-Hartman wrote: > > On Mon, Sep 11, 2017 at 07:11:38PM +0200, Luis R. Rodriguez wrote: > > > On Mon, Sep 11, 2017 at 06:46:47AM -0700, Greg Kroah-Hartman wrote: > > > > To

Re: [PATCH] f2fs-tools: move_curseg_info only if check_curseg_offset fails

2017-09-11 Thread Chao Yu
On 2017/9/11 0:20, Yunlong Song wrote: > Current design will lose recovery process when check_curseg_offset is OK. > > Signed-off-by: Yunlong Song Reviewed-by: Chao Yu > --- > fsck/fsck.c | 8 +--- > 1 file changed, 5 insertions(+), 3

Re: [PATCH v8 01/13] x86/apic: Construct a selector for the interrupt delivery mode

2017-09-11 Thread Dou Liyang
Hi Baoquan, At 09/07/2017 01:22 PM, Baoquan He wrote: On 09/07/17 at 12:19pm, Dou Liyang wrote: Hi Baoquan I am wordy one ah: our target is checking if BIOS supports APIC, no matter what type(separated/integrated) it is. if not, go to PIC mode. Let‘s discuss the original logic and the

[PATCH] ftrace: fix kmemleak in unregister_ftrace_graph

2017-09-11 Thread shuwang
From: Shu Wang The trampoline allocated by function tracer was overwrite by function_graph tracer, and cause memory leak. The save_global_trampoline should save previous trampoline in register_ftrace_graph and restore it in unregister_ftrace_graph. But as it implemented,

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2017-09-11 Thread zhouchengming
polite ping and +cc, thanks! On 2017/9/11 14:51, Zhou Chengming wrote: push_rt_task() pick the first pushable task and find an eligible lowest_rq, then double_lock_balance(rq, lowest_rq). So if double_lock_balance() unlock the rq (when double_lock_balance() return 1), we have to check if this

Re: [PATCH v2 36/40] tracing: Remove lookups from tracing_map hitcount

2017-09-11 Thread Masami Hiramatsu
Hi Tom, On Tue, 5 Sep 2017 16:57:48 -0500 Tom Zanussi wrote: > Lookups inflate the hitcount, making it essentially useless. Only > inserts and updates should really affect the hitcount anyway, so > explicitly filter lookups out. > > Signed-off-by: Tom Zanussi

[PATCH 2/2] mtd: nand: denali: support two row address cycle devices

2017-09-11 Thread Masahiro Yamada
The register TWO_ROW_ADDR_CYCLES specifies the number of row address cycles of the device, but it is fixed to 0 in the driver init code (i.e. always 3 row address cycles). Reflect the result of nand_scan_ident() to the register setting in order to support 2 row address cycle devices.

[PATCH 7/7] Support Alps U1 USB device

2017-09-11 Thread Masaki Ota
From: Masaki Ota -Add T4 USB device code and Product ID -This device is used on HP Elite x2 series Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 35 +-- drivers/hid/hid-core.c | 1 + drivers/hid/hid-ids.h

[PATCH 1/7] Minor changes in hid-alps.c for support new Alps device(Delete unnecessary structure)

2017-09-11 Thread Masaki Ota
From: Masaki Ota -To support Alps T4 device, clean up the source code -Delete unnecessary structure Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 69 +- 1 file changed, 34 insertions(+), 35

[PATCH 4/7] Minor changes in hid-alps.c for support new Alps device(replace some variables)

2017-09-11 Thread Masaki Ota
From: Masaki Ota -To support Alps T4 device, replace some variables Signed-off-by: Masaki Ota --- drivers/hid/hid-alps.c | 67 -- 1 file changed, 27 insertions(+), 40 deletions(-) diff --git

Re: xtensa compiler error triggered by 'locking/lockdep: Implement the 'crossrelease' feature'

2017-09-11 Thread Max Filippov
On Sun, Sep 10, 2017 at 6:58 PM, Max Filippov wrote: > On Sun, Sep 10, 2017 at 11:31 AM, Guenter Roeck wrote: >> xtensa:allmodconfig fails to build in mainline with compiler errors >> as follows. >> >> drivers/staging/rtl8723bs/core/rtw_ap.c: In function

[PATCH 1/3] .gitignore: ignore cscope files

2017-09-11 Thread Ross Zwisler
Signed-off-by: Ross Zwisler --- .gitignore | 4 1 file changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 28fe84d..2accc37 100644 --- a/.gitignore +++ b/.gitignore @@ -238,3 +238,7 @@ /tests/xfs/033.out /tests/xfs/071.out /tests/xfs/096.out

[PATCH 3/3] ext4: test for inline data + DAX corruption

2017-09-11 Thread Ross Zwisler
Add a regression test for the following kernel commit: ext4: prevent data corruption with inline data + DAX The test passes either if we don't encounter corruption, or if mounting with DAX + inline data fails. The latter is the way that we prevent this issue in the kernel. Signed-off-by:

[PATCH 2/3] ext4: test for DAX + journaling corruption

2017-09-11 Thread Ross Zwisler
Add a regression test for the following kernel commit: ext4: prevent data corruption with journaling + DAX The test passes if either we successfully compare the data between the mmap with journaling turned on and the one with journaling turned off, or if we fail the chattr command to turn on

Re: [PATCH 6/9] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-11 Thread AKASHI Takahiro
On Mon, Sep 11, 2017 at 02:47:54PM +0800, Dave Young wrote: > Hi, > > On 09/08/17 at 12:16pm, AKASHI Takahiro wrote: > > load_other_segments() sets up and adds all the memory segments necessary > > other than kernel, including initrd, device-tree blob and purgatory. > > Most of the code was

Re: [PATCH v2 00/40] tracing: Inter-event (e.g. latency) support

2017-09-11 Thread Masami Hiramatsu
On Tue, 5 Sep 2017 16:57:12 -0500 Tom Zanussi wrote: > Hi, > > This is V2 of the inter-event tracing patchset. > > There are too many changes to list in detail, most of them directly > addressing input from V1, but here are the major changes from V1 > (thanks to

RE: Extended IDR API

2017-09-11 Thread Chris Mi
This improvement is good. But I have a concern that the parameters of idr_alloc and idr_alloc_ul are different. I mean in idr_alloc, we have start and end. In our new API, we keep them. So our design goal is to make them consistent. Your new API has its advantage surely. If you want to change

Re: [f2fs-dev] [PATCH] f2fs: fix double count on issued discard commands

2017-09-11 Thread Jaegeuk Kim
On 09/12, Chao Yu wrote: > On 2017/9/12 9:53, Chao Yu wrote: > > On 2017/9/11 11:38, Jaegeuk Kim wrote: > >> If issue_cond is true, it does double count for # of issued commands. > >> > >> Signed-off-by: Jaegeuk Kim > > > > Reviewed-by: Chao Yu > > As

[PATCH v3 4/5] typec: tcpm: Move out of staging

2017-09-11 Thread Guenter Roeck
Move tcpm (USB Type-C Port Manager) out of staging. Signed-off-by: Guenter Roeck --- v2: Use format-patch -M v3: No change drivers/staging/typec/Kconfig | 8 drivers/staging/typec/Makefile| 1 -

[PATCH v3 5/5] usb: typec: fusb302: Move out of staging

2017-09-11 Thread Guenter Roeck
The driver is in good enough shape to be moved out of staging. Do it. Signed-off-by: Guenter Roeck --- v2: Use format-patch -M v3: No change drivers/staging/typec/Kconfig| 2 -- drivers/staging/typec/Makefile | 1 -

[PATCH v3 1/5] staging: typec: tcpm: Drop commented out code

2017-09-11 Thread Guenter Roeck
Commented out code can be added as needed. Drop it. Also drop TODO and an obsolete XXX comment. Signed-off-by: Guenter Roeck --- v2, v3: No change drivers/staging/typec/tcpm.c | 37 + 1 file changed, 1 insertion(+), 36 deletions(-) diff

[PATCH v3 3/5] staging: typec: pd: Document struct pd_message

2017-09-11 Thread Guenter Roeck
struct pd_message is the format of a PD message as seen on the wire. Signed-off-by: Guenter Roeck --- v2: No change v3: Fix document tag drivers/staging/typec/pd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/typec/pd.h

Re: [PATCH 8/9] arm64: enable KEXEC_FILE config

2017-09-11 Thread AKASHI Takahiro
On Sun, Sep 10, 2017 at 11:41:47PM +0800, kbuild test robot wrote: > Hi AKASHI, > > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on v4.13 next-20170908] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url:

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-11 Thread Kunihiko Hayashi
Hi Andrew, Thank you for your comments. On Fri, 8 Sep 2017 15:50:30 +0200 wrote: > > +static int ave_mdio_busywait(struct net_device *ndev) > > +{ > > + int ret = 1, loop = 100; > > + u32 mdiosr; > > + > > + /* wait until completion */ > > + while (1) { > > +

Re: [patch 2/2] mm, compaction: persistently skip hugetlbfs pageblocks

2017-09-11 Thread Vlastimil Babka
On 09/11/2017 03:12 AM, David Rientjes wrote: > On Wed, 23 Aug 2017, Vlastimil Babka wrote: > >>> diff --git a/mm/compaction.c b/mm/compaction.c >>> --- a/mm/compaction.c >>> +++ b/mm/compaction.c >>> @@ -217,6 +217,20 @@ static void reset_cached_positions(struct zone *zone) >>>

Question about the userfaultfd write-protect support

2017-09-11 Thread Longpeng (Mike)
Hi Andrea, We've implemented a demo of KVM live memory snapshot based on the userfaultfd write-protect series in your private tree(https://git.kernel.org/pub/scm/linux/kernel/git/andrea/aa.git/log/). We did a little hack on that series to make the demo works. Zhang had discussed with you about

Re: [PATCH 0/7] PM / OPP: per OPP node clock support and imx7ulp cpufreq driver

2017-09-11 Thread Dong Aisheng
Hi Viresh and Rafael, On Thu, Aug 24, 2017 at 12:10:03AM +0800, Dong Aisheng wrote: > This patch series does three things: > 1) Add platform specific set_clk function > 2) Add per OPP node clock support > 3) Add imx7ulp cpufreq driver support > > 3 is depends on 1 & 2. > > MX7ULP supports HSRUN

[PATCH 1/1] clk: bulk: add of_clk_bulk_get()

2017-09-11 Thread Dong Aisheng
'clock-names' property is optinal in DT, so of_clk_bulk_get() is introduced here to handle this for DT users without 'clock-names' specified. Cc: Stephen Boyd Cc: Michael Turquette Cc: Russell King Reported-by: Shawn Guo

Re: [PATCH 1/2] mm, memory_hotplug: do not fail offlining too early

2017-09-11 Thread Michal Hocko
On Fri 08-09-17 19:26:06, Vlastimil Babka wrote: > On 09/04/2017 10:21 AM, Michal Hocko wrote: > > From: Michal Hocko > > > > Memory offlining can fail just too eagerly under a heavy memory pressure. > > > > [ 5410.336792] page:ea22a646bd00 count:255 mapcount:252 > >

Re: [v7 2/5] mm, oom: cgroup-aware OOM killer

2017-09-11 Thread Michal Hocko
On Thu 07-09-17 11:18:18, Cristopher Lameter wrote: > On Mon, 4 Sep 2017, Roman Gushchin wrote > > > To address these issues, cgroup-aware OOM killer is introduced. > > You are missing a major issue here. Processes may have allocation > constraints to memory nodes, special DMA zones etc etc. OOM

[PATCH 3/4] nvmem: remove inline in drivers/nvmem/core.c

2017-09-11 Thread srinivas . kandagatla
From: Masahiro Yamada These two functions are defined in .c file, but called just once (at least for now). So, the compiler will fold them into their callers even without the "inline" markers. However, this kind of optimization should not be done by hand. It is

Re: [PATCH 3/3] [media] s5p-mfc: Adjust a null pointer check in four functions

2017-09-11 Thread Sylwester Nawrocki
On 09/08/2017 10:53 PM, SF Markus Elfring wrote: From: Markus Elfring Date: Fri, 8 Sep 2017 22:37:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can you resend with that 4 lines removed? Are you using git

[PATCH v2 2/3] efi: call get_event_log before ExitBootServices

2017-09-11 Thread Thiebaud Weksteen
With TPM 2.0 specification, the event logs may only be accessible by calling an EFI Boot Service. Modify the EFI stub to copy the log area to a new Linux-specific EFI configuration table so it remains accessible once booted. When calling this service, it is possible to specify the expected format

Re: [PATCH 3/5] staging: typec: pd: Document struct pd_message

2017-09-11 Thread Sergei Shtylyov
Hello. On 9/10/2017 11:37 PM, Guenter Roeck wrote: struct pd_message is the format of a PD message as seen on the wire. Signed-off-by: Guenter Roeck --- drivers/staging/typec/pd.h | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/typec/pd.h

[PATCH v4] tpm_tis_spi: Use DMA-safe memory for SPI transfers

2017-09-11 Thread Alexander Steffen
The buffers used as tx_buf/rx_buf in a SPI transfer need to be DMA-safe. This cannot be guaranteed for the buffers passed to tpm_tis_spi_read_bytes and tpm_tis_spi_write_bytes. Therefore, we need to use our own DMA-safe buffer and copy the data to/from it. The buffer needs to be allocated

Re: [f2fs-dev] [PATCH 1/2] f2fs: speed up gc_urgent mode with SSR

2017-09-11 Thread Chao Yu
On 2017/9/10 3:17, Jaegeuk Kim wrote: > From: Jaegeuk Kim > > This patch activates SSR in gc_urgent mode. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu > --- > fs/f2fs/f2fs.h| 1 + > fs/f2fs/segment.c | 15

Re: [PATCH v3 01/15] [media] v4l: Document explicit synchronization behaviour

2017-09-11 Thread Hans Verkuil
On 09/11/2017 12:50 PM, Hans Verkuil wrote: > On 09/07/2017 08:42 PM, Gustavo Padovan wrote: >> From: Gustavo Padovan >> >> Add section to VIDIOC_QBUF about it >> >> v2: >> - mention that fences are files (Hans) >> - rework for the new API >> >>

Re: [PATCH v3 02/15] [media] vb2: add explicit fence user API

2017-09-11 Thread Hans Verkuil
On 09/11/2017 12:55 PM, Hans Verkuil wrote: > On 09/07/2017 08:42 PM, Gustavo Padovan wrote: >> From: Gustavo Padovan >> >> Turn the reserved2 field into fence_fd that we will use to send >> an in-fence to the kernel and return an out-fence from the kernel to >>

Re: [PATCH 0/9] add ext4 per-inode DAX flag

2017-09-11 Thread Jan Kara
On Fri 08-09-17 11:39:13, Ted Tso wrote: > On Fri, Sep 08, 2017 at 09:25:43AM +1000, Dave Chinner wrote: > > > Okay, so other ideas (which you have also probably already though of) > > > include: > > > > > > 1) Just return -EBUSY if anyone tries to change the DAX flag of an inode > > > with > >

  1   2   3   4   5   6   7   8   9   10   >