Re: [PATCH] x86/mm/64: Rename the argument 'size' as 'nr_pages' in register_page_bootmem_memmap

2017-10-25 Thread Baoquan He
On 10/26/17 at 02:33pm, kbuild test robot wrote: > Hi Baoquan, > > [auto build test ERROR on tip/x86/core] > [also build test ERROR on v4.14-rc6 next-20171018] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com

Re: [PATCH 0/2] Fix s5p-mfc lock contention in request firmware paths

2017-10-25 Thread Shuah Khan
On 10/25/2017 04:28 PM, Marian Mihailescu wrote: > Hi Shuah, > > For MFC patch, you can delete the "dev" variable since it's not being > used anymore and results in a compile warning. > > - struct s5p_mfc_dev *dev = ctx->dev; > > Cheers, > Marian Oops. I thought I handled that. I will fix that

Re: [PATCH] Bluetooth: hci_ldisc: Fix another race when closing the tty.

2017-10-25 Thread Lukas Wunner
On Wed, Oct 25, 2017 at 10:15:19PM -0700, =?UTF-8?q?Ronald=20Tschal=C3=A4r?= wrote: > --- a/drivers/bluetooth/hci_ldisc.c > +++ b/drivers/bluetooth/hci_ldisc.c > @@ -523,13 +523,13 @@ static void hci_uart_tty_close(struct tty_struct *tty) > if (hdev) > hci_uart_close(hdev); >

[PATCH v9 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor

2017-10-25 Thread Leon Luo
The imx274 is a Sony CMOS image sensor that has 1/2.5 image size. It supports up to 3840x2160 (4K) 60fps, 1080p 120fps. The interface is 4-lane MIPI CSI-2 running at 1.44Gbps each. This driver has been tested on Xilinx ZCU102 platform with a Leopard LI-IMX274MIPI-FMC camera board. Support for the

Re: [PATCH 1/4] usb: xhci: Fix build warning

2017-10-25 Thread Greg KH
On Wed, Oct 25, 2017 at 06:32:26PM +, Corentin Labbe wrote: > This patch fix the following build warnings: > drivers/usb/host/xhci.c:3378:6: warning: variable 'last_freed_endpoint' set > but not used [-Wunused-but-set-variable] > > Signed-off-by: Corentin Labbe > --- > drivers/usb/host/xhci

[PATCH v9 1/2] media:imx274 device tree binding file

2017-10-25 Thread Leon Luo
The binding file for imx274 CMOS sensor V4l2 driver Signed-off-by: Leon Luo Acked-by: Sören Brinkmann Acked-by: Rob Herring --- v9: - add an entry in MAINTAINERS v8: - no changes v7: - no changes v6: - no changes v5: - add 'port' and 'endpoint' information v4: - no changes v3: - remove r

Re: [PATCH 1/2] hwmon: (jc42) optionally try to disable the SMBUS timeout

2017-10-25 Thread Peter Rosin
On 2017-10-18 04:38, Guenter Roeck wrote: > On 10/17/2017 03:16 PM, Rob Herring wrote: >> On Fri, Oct 13, 2017 at 01:35:27PM -0700, Guenter Roeck wrote: >>> On Fri, Oct 13, 2017 at 04:26:57PM +0200, Peter Rosin wrote: On 2017-10-13 15:50, Guenter Roeck wrote: > On 10/13/2017 02:27 AM, Pete

Re: [PATCH v2] x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

2017-10-25 Thread Baoquan He
On 10/26/17 at 08:25am, Ingo Molnar wrote: > > * Baoquan He wrote: > > > register_page_bootmem_memmap()'s 3rd 'size' parameter is named > > in a somewhat misleading fashion - rename it to 'nr_pages' which > > makes the units of it much clearer. > > > > And also rename the existing local variabl

Re: [PATCH] s390/ap_bus: Convert timers to use timer_setup()

2017-10-25 Thread Martin Schwidefsky
On Wed, 25 Oct 2017 03:27:37 -0700 Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Harald Freudenberger > Cc: Martin Schwi

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-25 Thread Herbert Xu
On Wed, Oct 25, 2017 at 07:38:35PM -0500, Gustavo A. R. Silva wrote: > > I don't think we want something like: > > bool err; > > err = build_spdinfo(r_skb, net, sportid, seq, *flags) < 0 ? true : false; > BUG_ON(err); How about int err; err = build_spdinfo(r_skb, net, sportid,

Re: [PATCH 1/3] [S390] vmur: convert urdev.ref_count from atomic_t to refcount_t

2017-10-25 Thread Martin Schwidefsky
On Fri, 20 Oct 2017 10:47:48 +0300 Elena Reshetova wrote: > atomic_t variables are currently used to implement reference > counters with the following properties: > - counter is initialized to 1 using atomic_set() > - a resource is freed upon counter reaching zero > - once counter reaches zero

Re: [PATCH] x86/mm/64: Rename the argument 'size' as 'nr_pages' in register_page_bootmem_memmap

2017-10-25 Thread kbuild test robot
Hi Baoquan, [auto build test ERROR on tip/x86/core] [also build test ERROR on v4.14-rc6 next-20171018] [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/Baoquan-He/x86-mm-64-Rename-the-argument-siz

Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment()

2017-10-25 Thread 陈华才
Maybe my first version is suitable for stable. Huacai -- Original -- From: "Marek Szyprowski"; Date: Wed, Oct 25, 2017 03:21 PM To: "陈华才"; "Christoph Hellwig"; Cc: "Robin Murphy"; "Andrew Morton"; "Fuxin Zhang"; "linux-kernel"; "Ralf Baechle"; "JamesHoga

Re: [PATCH V8 1/2] printk: remove tabular output for NULL pointer

2017-10-25 Thread Tobin C. Harding
Hi Joe, thanks for your review. On Wed, Oct 25, 2017 at 09:57:23PM -0700, Joe Perches wrote: > On Thu, 2017-10-26 at 13:53 +1100, Tobin C. Harding wrote: > > Currently pointer() checks for a NULL pointer argument and then if so > > attempts to print "(null)" with _some_ standard width. This width

Re: [PATCH v2] x86/mm/64: Rename the register_page_bootmem_memmap() 'size' parameter to 'nr_pages'

2017-10-25 Thread Ingo Molnar
* Baoquan He wrote: > register_page_bootmem_memmap()'s 3rd 'size' parameter is named > in a somewhat misleading fashion - rename it to 'nr_pages' which > makes the units of it much clearer. > > And also rename the existing local variable 'nr_pages' to 'pages'. > Otherwise building error will be

Re: 4.13 (and probably all recent) kernels refuse to boot on one Nokia N950, work or another

2017-10-25 Thread Filip Matijević
Hi Pavel, On 10/25/2017 10:34 PM, Pavel Machek wrote: > 3.5.3-nemo kernel seems to work I did take a quick look at the board-rm680.c since there are some conditional statements with regards to system revision but I didn't notice anything that might prevent it from booting. > If you have > any id

[PATCH] scripts: add leaking_addresses.pl

2017-10-25 Thread Tobin C. Harding
Currently we are leaking addresses from the kernel to user space. This script is an attempt to find those leakages. Script parses `dmesg` output and /proc and /sys files for hex strings that look like kernel addresses. Only works for 64 bit kernels, the reason being that kernel addresses on 64 bit

Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread Masami Hiramatsu
On Thu, 26 Oct 2017 09:22:23 +0800 chenjiankang wrote: > > On Tue, 24 Oct 2017 20:17:02 +0800 > > JianKang Chen wrote: > > > >> The function register_kretprobe is used to initialize a struct > >> kretprobe and allocate a list table for kprobe instance. > >> However,in this function, there is a

[PATCH] iio/adc/palmas: Use common error handling code in palmas_gpadc_calibrate()

2017-10-25 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Oct 2017 07:58:03 +0200 * Add a jump target so that a specific error message is stored only once at the end of this function implementation. * Adjust condition checks. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

Re: [PATCH v5 9/9] block: Assign a lock_class per gendisk used for wait_for_completion()

2017-10-25 Thread Byungchul Park
On Thu, Oct 26, 2017 at 07:50:46AM +0200, Ingo Molnar wrote: > > * Jens Axboe wrote: > > > On 10/25/2017 03:13 AM, Ingo Molnar wrote: > > > > > > * Byungchul Park wrote: > > > > > >> Darrick posted the following warning and Dave Chinner analyzed it: > > >> > > >>>

scsi/NCR5380: Suppress SDTR and WDTR message logging

2017-10-25 Thread Finn Thain
The 5380 drivers only support asynchronous transfers and the 5380 controllers only have narrow busses. Hence, the core driver will reject any SDTR and WDTR messages from target devices. Don't log this, it's expected behaviour. Also, fix the off-by-one array indices in the arguments to scmd_print

Re: [PATCH v5 9/9] block: Assign a lock_class per gendisk used for wait_for_completion()

2017-10-25 Thread Ingo Molnar
* Jens Axboe wrote: > On 10/25/2017 03:13 AM, Ingo Molnar wrote: > > > > * Byungchul Park wrote: > > > >> Darrick posted the following warning and Dave Chinner analyzed it: > >> > >>> == > >>> WARNING: possible circular locking dependency de

[PATCH RESEND] f2fs: support soft block reservation

2017-10-25 Thread Chao Yu
From: Yunlong Song It supports to extend reserved_blocks sysfs interface to be soft threshold, which allows user configure it exceeding current available user space. Signed-off-by: Yunlong Song Signed-off-by: Chao Yu --- Documentation/ABI/testing/sysfs-fs-f2fs | 3 ++- fs/f2fs/f2fs.h

Re: [PATCH] power: supply: 88pm860x_battery array_soc first number is in mV

2017-10-25 Thread Joe Perches
On Thu, 2017-10-26 at 13:21 +0800, winton.liu wrote: > Fix wrong comments of array_soc description. > First number is mV not mAh. [] > diff --git a/drivers/power/supply/88pm860x_battery.c > b/drivers/power/supply/88pm860x_battery.c [] > @@ -123,7 +123,7 @@ struct ccnt { > > /* > * State of Ch

Re: v4.14-rc3/arm64 DABT exception in atomic_inc() / __skb_clone()

2017-10-25 Thread Jason Wang
On 2017年10月26日 03:01, Eric Dumazet wrote: On Wed, Oct 25, 2017 at 11:49 AM, Willem de Bruijn wrote: From skb->dev and netdev_priv, the tun device has flags 0x1002 == IFF_TAP | IFF_NO_PI. This kernel precedes the recent support for IFF_NAPI and IFF_NAPI_FRAGS. The allocation most likely happ

[PATCH] power: supply: 88pm860x_battery array_soc first number is in mV

2017-10-25 Thread winton.liu
Fix wrong comments of array_soc description. First number is mV not mAh. Signed-off-by: winton.liu <18502523...@163.com> --- drivers/power/supply/88pm860x_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/88pm860x_battery.c b/drivers/power/supply/

[PATCH] Bluetooth: hci_ldisc: Fix another race when closing the tty.

2017-10-25 Thread =?UTF-8?q?Ronald=20Tschal=C3=A4r?=
The following race condition still existed: P1P2 cancel_work_sync() hci_uart_tx_wakeup() hci_uart_write_work() hci_uart_dequeue() clear_bit(HC

[PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-25 Thread Fan Du
Memory behind device DAX is not attached into normal memory management system, when user mmap /dev/dax, smaps part is currently missing, so no idea for user to check how much device DAX memory are actually used in practice. Whether vma is backed up by normal page,huge page, or both at the same tim

[PATCH v2] Bluetooth: hci_ldisc: Allow sleeping while proto locks are held.

2017-10-25 Thread =?UTF-8?q?Ronald=20Tschal=C3=A4r?=
Commit dec2c92880cc5435381d50e3045ef018a762a917 ("Bluetooth: hci_ldisc: Use rwlocking to avoid closing proto races") introduced locks in hci_ldisc that are held while calling the proto functions. These locks are rwlock's, and hence do not allow sleeping while they are held. However, the proto funct

Re: [PATCH 2/3] usb: phy: remove phy-msm-usb.c

2017-10-25 Thread Manu Gautam
Hi, On 10/26/2017 3:31 AM, Alex Elder wrote: > No Qualcomm SoC requires the "phy-msm-usb.c" USB phy driver support > any more, so remove the code. > > Suggested-by: Stephen Boyd > Signed-off-by: Alex Elder > Acked-by: Bjorn Andersson > Acked-by: Andy Gross > --- > drivers/usb/phy/Makefile

Re: [PATCH v3 4/6] drm/rockchip/dsi: add dual mipi channel support

2017-10-25 Thread Archit Taneja
On 10/25/2017 01:34 PM, Sean Paul wrote: On Wed, Oct 25, 2017 at 11:51:01AM +0800, Nickey Yang wrote: This patch add dual mipi channel support: 1.add definition of dsi1 register and grf operation. 2.dsi0 and dsi1 will work in master and slave mode when driving dual mipi panel. Signed-off-by:

Re: [PATCH 1/3] usb: host: remove ehci-msm.c

2017-10-25 Thread Manu Gautam
Hi, On 10/26/2017 3:31 AM, Alex Elder wrote: > No Qualcomm SoC requires the "ehci-msm.c" code any more. So remove it. > > Suggested-by: Stephen Boyd > Signed-off-by: Alex Elder > Acked-by: Bjorn Andersson > Acked-by: Andy Gross > --- > drivers/usb/host/Makefile | 1 - > drivers/usb/host

Re: I2C-Octeon: Use common error handling code in octeon_i2c_probe()

2017-10-25 Thread SF Markus Elfring
> NAK.  We don't need any more Markus Elfring spam. Why do you not like another update suggestion for this use case? >> Add a jump target so that a specific error message is stored only once >> at the end of this function implementation. > > Please read C standard about duplicate literal string

Re: [PATCH] coccinelle: grep Options and Requires fields more precisely

2017-10-25 Thread Julia Lawall
On Thu, 26 Oct 2017, Masahiro Yamada wrote: > Currently, the required version for badzero.cocci is picked up from > its "Comments:" line since it contains the word "Requires". > > Surprisingly, ld-version.sh can extract the version number from the > string "Requires Coccinelle version 1.0.0-rc20

Re: [fstests PATCH v3] generic: add test for DAX MAP_SYNC support

2017-10-25 Thread Amir Goldstein
On Wed, Oct 25, 2017 at 11:47 PM, Ross Zwisler wrote: > Add a test that exercises DAX's new MAP_SYNC flag. > > This test creates a file and writes to it via an mmap(), but never syncs > via fsync/msync. This process is tracked via dm-log-writes, then replayed. > > If MAP_SYNC is working the dm-lo

[RFC PATCH] coccinelle: fix parallel build with CHECK=scripts/coccicheck

2017-10-25 Thread Masahiro Yamada
If I run the following: $ make -j8 C=1 CHECK=scripts/coccicheck lots of "coccicheck failed" messages are displayed. I do not know the coccinell internals, but I guess --jobs does not work well if spatch is invoked from Make running in parallel. Disable --jobs in this case. Signed-off-by: Masa

[PATCH] [irq] Fix boot failure when irqaffinity is passed.

2017-10-25 Thread Rakib Mullick
When irqaffinity kernel param is passed in a CPUMASK_OFFSTACK=y build kernel, it fails to boot. zalloc_cpumask_var() cannot be used before initializing mm stuff (slab allocator) to allocate cpumask. So, use alloc_bootmem_cpumask_var(). Also in init_irq_default_affinity() removes unneeded ifdef, the

Re: [PATCH V8 1/2] printk: remove tabular output for NULL pointer

2017-10-25 Thread Joe Perches
On Thu, 2017-10-26 at 13:53 +1100, Tobin C. Harding wrote: > Currently pointer() checks for a NULL pointer argument and then if so > attempts to print "(null)" with _some_ standard width. This width cannot > correctly be ascertained here because many of the printk specifiers > print pointers of var

[PATCH] coccinelle: fix verbose message about .cocci file being run

2017-10-25 Thread Masahiro Yamada
If you run coccicheck with V=1 and COCCI=, you will see a strange path to the semantic patch file. For example, run the following: $ make V=1 COCCI=scripts/coccinelle/free/kfree.cocci coccicheck [ snip ] The semantic patch that makes this report is available in scriptcoccinelle/free/kfree.coc

[PATCH] coccinelle: grep Options and Requires fields more precisely

2017-10-25 Thread Masahiro Yamada
Currently, the required version for badzero.cocci is picked up from its "Comments:" line since it contains the word "Requires". Surprisingly, ld-version.sh can extract the version number from the string "Requires Coccinelle version 1.0.0-rc20 or later", but this expectation is fragile. Fix the .c

Re: [PATCH v2] sparc: Provide cmpxchg64 for 32-bit builds

2017-10-25 Thread Joe Perches
On Wed, 2017-10-25 at 19:51 -0700, Guenter Roeck wrote: > Fix the following build error, seen when building sparc32:allmodconfig. > > drivers/net/ethernet/intel/i40e/i40e_ethtool.c: > In function 'i40e_set_priv_flags': > drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4150:2: error: > i

Re: [PATCH v3 5/6] dt-bindings: add the rockchip, dual-channel for dw-mipi-dsi

2017-10-25 Thread Archit Taneja
On 10/25/2017 09:21 AM, Nickey Yang wrote: Configure dsi slave channel when driving a panel which needs 2 DSI links. Signed-off-by: Nickey Yang --- .../devicetree/bindings/display/rockchip/dw_mipi_dsi_rockchip.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/d

Re: [PATCH v3] rpmsg: Allow RPMSG_VIRTIO to be enabled via menuconfig or defconfig

2017-10-25 Thread Bjorn Andersson
On Thu 05 Oct 09:43 PDT 2017, Anup Patel wrote: > Currently, RPMSG_VIRTIO can only be enabled if some other kconfig > option selects it. This does not allow it to be enabled for > virtualized systems where Virtio RPMSG is available over Virtio > MMIO or PCI transport. > > This patch updates RPMSG

Re: n900 in next-20170901

2017-10-25 Thread Joonsoo Kim
On Wed, Oct 25, 2017 at 10:31:38AM -0700, Tony Lindgren wrote: > * Joonsoo Kim [171022 21:51]: > > On Fri, Oct 20, 2017 at 10:31:47AM -0700, Tony Lindgren wrote: > > > * Joonsoo Kim [171019 18:53]: > > > > Oops... I made a mistak. Could you test with reverting commit > > > > c977ee2803787363187d6

Re: [PATCH v9 1/7] mailbox: qcom: Convert APCS IPC driver to use regmap

2017-10-25 Thread Bjorn Andersson
On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > This hardware block provides more functionalities that just IPC. Convert > it to regmap to allow other child platform devices to use the same regmap. > Acked-by: Bjorn Andersson Regards, Bjorn

Re: [PATCH v9 7/7] clk: qcom: Add APCS clock controller support

2017-10-25 Thread Bjorn Andersson
On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > Add a driver for the APCS clock controller. It is part of the APCS > hardware block, which among other things implements also a combined > mux and half integer divider functionality. It can choose between a > fixed-rate clock or the dedicated AP

Re: sched/fair: Hard lockup from idle_balance()/task_numa_migrate() race

2017-10-25 Thread Ed Swierk
Ping? On Mon, Oct 16, 2017 at 4:11 PM, Ed Swierk wrote: > > Ping for Peter, Ingo and other sched maintainers: > > I'd appreciate any feedback on this hard lockup issue, which occurred > on a system running kernel 4.4.52-grsec. > > To recap: a dual-socket Xeon (E5 v4) server system had been run

Re: [PATCH v9 3/7] mailbox: qcom: Move the apcs struct into a separate header

2017-10-25 Thread Bjorn Andersson
On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > Move the structure shared by the APCS IPC device and its subdevices > into a separate header file. > As you're creating the apcs regmap with devm_regmap_init_mmio() you can just call dev_get_regmap(dev->parent) in your child to get the handle.

Re: [PATCH v9 4/7] clk: qcom: Add A53 PLL support

2017-10-25 Thread Bjorn Andersson
On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c [..] > + > +static const struct of_device_id qcom_a53pll_match_table[] = { > + { .compatible = "qcom,msm8916-a53pll" }, > + { } > +}; Move the match table below the pro

Re: [PATCH v9 6/7] dt-bindings: clock: Document qcom,apcs binding

2017-10-25 Thread Bjorn Andersson
On Thu 21 Sep 09:49 PDT 2017, Georgi Djakov wrote: > Add device-tree binding documentation for the Qualcom APCS clock > controller. This clock controller is a mux and half-integer divider > and provides the clock for the application CPU. > > Signed-off-by: Georgi Djakov > --- > .../devicetree/b

Re: [PATCH v3 3/6] drm/rockchip/dsi: correct Feedback divider setting

2017-10-25 Thread Archit Taneja
Hi, On 10/26/2017 06:39 AM, Brian Norris wrote: On Wed, Oct 25, 2017 at 03:57:19AM -0400, Sean Paul wrote: Archit asked a question about moving to dw-mipi-dsi That question made me think though: this approach seems backwards. It seems like someone did copy/paste/fork, and then we're asking th

Re: [PATCH] Coccinelle: make DEBUG_FILE option more useful

2017-10-25 Thread Julia Lawall
On Thu, 26 Oct 2017, Masahiro Yamada wrote: > Hi Julia, > > > 2017-10-15 18:55 GMT+09:00 Julia Lawall : > > Make coccicheck checked for the existence of DEBUG_FILE on each semantic > > patch, and bailed if it already existed. This meant that DEBUG_FILE was > > useless for checking more than one

Re: Detecting page cache trashing state

2017-10-25 Thread vinayak menon
On Thu, Sep 28, 2017 at 9:19 PM, Ruslan Ruslichenko -X (rruslich - GLOBALLOGIC INC at Cisco) wrote: > Hi Johannes, > > Hopefully I was able to rebase the patch on top v4.9.26 (latest supported > version by us right now) > and test a bit. > The overall idea definitely looks promising, although I ha

Re: [PATCH] thermal: cpu_cooling: pr_err() strings should end with newlines

2017-10-25 Thread Viresh Kumar
On 24-10-17, 13:20, Arvind Yadav wrote: > pr_err() messages should end with a new-line to avoid other messages > being concatenated. > > Signed-off-by: Arvind Yadav > --- > drivers/thermal/cpu_cooling.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/cpu

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Yunlong Song
Agree On 2017/10/26 11:26, Chao Yu wrote: On 2017/10/26 11:07, Yunlong Song wrote: Yes, I agree with the soft semantic you introduce, it is too slow to increase cur_reserved_blocks only in dec_valid_block(,node)_count, e.g. if users want to set cur_reserved_blocks to 10G. Yup, Then how about

[PATCH] power: supply: 88pm860x_battery array_soc first number is in mV

2017-10-25 Thread 刘稳
0001-power-supply-88pm860x_battery-array_soc-first-number.patch Description: Binary data

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Chao Yu
On 2017/10/26 11:07, Yunlong Song wrote: > Yes, I agree with the soft semantic you introduce, it is too slow to > increase cur_reserved_blocks only in > dec_valid_block(,node)_count, e.g. if users want to set > cur_reserved_blocks to 10G. Yup, > > Then how about fix the initialization of cur_r

Re: [PATCH V8 2/2] printk: hash addresses printed with %p

2017-10-25 Thread Jason A. Donenfeld
On Thu, Oct 26, 2017 at 4:53 AM, Tobin C. Harding wrote: > +static bool have_filled_random_ptr_key; __read_mostly

Re: [PATCH v3] f2fs: add cur_reserved_blocks to support soft block reservation

2017-10-25 Thread Yunlong Song
Yes, I agree with the soft semantic you introduce, it is too slow to increase cur_reserved_blocks only in dec_valid_block(,node)_count, e.g. if users want to set cur_reserved_blocks to 10G. Then how about fix the initialization of cur_reserved_blocks in fs/f2fs/super.c as following: sbi->curr

Re: [RFC PATCH 0/9] V4L2 Jobs API WIP

2017-10-25 Thread Tomasz Figa
Hi Laurent, On Thu, Oct 26, 2017 at 12:48 AM, Laurent Pinchart wrote: > Hello, > > On Monday, 23 October 2017 11:45:01 EEST Alexandre Courbot wrote: >> On Thu, Oct 19, 2017 at 11:43 PM, Sakari Ailus wrote: >> > On Thu, Sep 28, 2017 at 06:50:18PM +0900, Alexandre Courbot wrote: [snip] >> > Both r

[tip:sched/core 58/58] ERROR: "housekeeping_cpumask" [drivers/net/ethernet/tile/tile_net.ko] undefined!

2017-10-25 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched/core head: 32bf454c0e7568e0fdea85434d573daf1bbaff4a commit: 32bf454c0e7568e0fdea85434d573daf1bbaff4a [58/58] housekeeping: Handle the nohz_full= parameter config: tile-allmodconfig (attached as .config) compiler: tilegx-li

Re: [PATCH 0/2] cpufreq: arm_big_little: make function arguments and structures const

2017-10-25 Thread Viresh Kumar
On 19-10-17, 12:59, Bhumika Goyal wrote: > Make some function arguments as const. After this change make the > cpufreq_arm_bL_ops structures const. Acked-by: Viresh Kumar -- viresh

Re: [PATCH V8 2/2] printk: hash addresses printed with %p

2017-10-25 Thread Tobin C. Harding
On Thu, Oct 26, 2017 at 01:53:56PM +1100, Tobin C. Harding wrote: > Currently there are many places in the kernel where addresses are being > printed using an unadorned %p. Kernel pointers should be printed using > %pK allowing some control via the kptr_restrict sysctl. Exposing addresses > gives a

[PATCH V8 2/2] printk: hash addresses printed with %p

2017-10-25 Thread Tobin C. Harding
Currently there are many places in the kernel where addresses are being printed using an unadorned %p. Kernel pointers should be printed using %pK allowing some control via the kptr_restrict sysctl. Exposing addresses gives attackers sensitive information about the kernel layout in memory. We can

[PATCH V8 1/2] printk: remove tabular output for NULL pointer

2017-10-25 Thread Tobin C. Harding
Currently pointer() checks for a NULL pointer argument and then if so attempts to print "(null)" with _some_ standard width. This width cannot correctly be ascertained here because many of the printk specifiers print pointers of varying widths. Remove the attempt to print NULL pointers with a corr

[PATCH V8 0/2] printk: hash addresses printed with %p

2017-10-25 Thread Tobin C. Harding
Currently there are many places in the kernel where addresses are being printed using an unadorned %p. Kernel pointers should be printed using %pK allowing some control via the kptr_restrict sysctl. Exposing addresses gives attackers sensitive information about the kernel layout in memory. We can

[PATCH v2] sparc: Provide cmpxchg64 for 32-bit builds

2017-10-25 Thread Guenter Roeck
Fix the following build error, seen when building sparc32:allmodconfig. drivers/net/ethernet/intel/i40e/i40e_ethtool.c: In function 'i40e_set_priv_flags': drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4150:2: error: implicit declaration of function 'cmpxchg64' Signed-off-by: Guen

Re: [RFC PATCH 0/9] V4L2 Jobs API WIP

2017-10-25 Thread Tomasz Figa
Hi Sakari, On Thu, Oct 19, 2017 at 11:43 PM, Sakari Ailus wrote: > Hi Alexandre, > > On Thu, Sep 28, 2017 at 06:50:18PM +0900, Alexandre Courbot wrote: >> Hi everyone, >> [snip] > > Still it shouldn't be forgotten that if the framework is geared towards > helping drivers "running one job at a tim

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-25 Thread Joonsoo Kim
On Tue, Oct 24, 2017 at 10:12:58AM +0200, Vlastimil Babka wrote: > On 10/24/2017 06:44 AM, Joonsoo Kim wrote: > >>> I'm not sure what is the confusing semantic you mentioned. I think > >>> that set_migratetype_isolate() has confusing semantic and should be > >>> fixed since making the pageblock iso

Re: [PATCH] PREEMPT_RT: sched/rr, sched/fair: defer CFS scheduler put_prev_task()

2017-10-25 Thread Mike Galbraith
On Wed, 2017-10-25 at 15:26 -0700, Allen Martin wrote: > Defer calling put_prev_task() on a CFS task_struct when there is a > pending RT task to run. Instead wait until the next > pick_next_task_fair() and do the work there. Which donates execution time of the rt class task to the fair class task

Re: sparc64: mmu_context: Add missing include files

2017-10-25 Thread Guenter Roeck
Did I send this to the wrong mailing list, or did it get lost ? Should I resend ? Guenter On Sun, Sep 10, 2017 at 01:44:47PM -0700, Guenter Roeck wrote: > Fix the following build errors. > > In file included from arch/sparc/include/asm/mmu_context.h:4:0, > from include/linux/mmu

[PATCH] VFS: use synchronize_rcu_expedited() in namespace_unlock()

2017-10-25 Thread NeilBrown
The synchronize_rcu() in namespace_unlock() is called every time a filesystem is unmounted. If a great many filesystems are mounted, this can cause a noticable slow-down in, for example, system shutdown. The sequence: mkdir -p /tmp/Mtest/{0..5000} time for i in /tmp/Mtest/*; do mount -t tmpf

[GIT PULL] hwmon fixes for v4.14-rc7

2017-10-25 Thread Guenter Roeck
Hi Linus, Please pull hwmon fixes for Linux v4.14-rc7 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.14-rc7 Thanks, Guenter -- The following changes since commit 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f: Linux 4.14-rc4 (201

[PATCH v4] arm64: dts: ls1088a: Add USB support

2017-10-25 Thread yinbo.zhu
From: "yinbo.zhu" Add USB support on ls1088ardb Signed-off-by: yinbo.zhu Signed-off-by: Ran Wang --- Change in v4: - Change status from "enable" to "disabled" then enable it on dts file. - Add the version history. - Update the subject. arch/ar

Re: [RFC 1/3] perf tool: Introduce arch-specific supplemental perf open strerror capability

2017-10-25 Thread Kim Phillips
On Tue, 24 Oct 2017 20:23:00 -0500 Kim Phillips wrote: > On Tue, 24 Oct 2017 12:27:44 -0200 > Arnaldo Carvalho de Melo wrote: > > > Em Tue, Oct 24, 2017 at 03:04:04AM -0500, Kim Phillips escreveu: > > > Introduce new tools/perf/arch/*/util/evsel.c:perf_evsel__suppl_strerror() > > But then you'

Re: [PATCH v2] PM / QoS: Fix device resume latency PM QoS

2017-10-25 Thread Ramesh Thomas
On 2017-10-25 at 00:16:25 -0700, Ramesh Thomas wrote: > On 2017-10-24 at 13:35:05 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > [cut] > > > @@ -63,10 +60,14 @@ static bool default_suspend_ok(struct de > > > > spin_unlock_irqrestore(&dev->power.lock, flags); > > > >

[PATCH v3 2/2] mfd: Add Spreadtrum SC27xx series PMICs driver

2017-10-25 Thread Baolin Wang
This patch adds support for Spreadtrum SC27xx series PMIC MFD core, and It provides communication through the SPI interfaces. The SC27xx series PMICs contains the following 6 major components: - DCDCs - LDOs - Battery management system - Audio codec - User interface function, such as indicator, fla

[PATCH v3 1/2] dt-bindings: mfd: Add Spreadtrum SC27xx PMIC documentation

2017-10-25 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum SC27xx series PMIC device. Signed-off-by: Baolin Wang Acked-by: Rob Herring Acked-by: Lee Jones --- Changes since v2: - Add acked tag from Rob and Lee. Changes since v1: - Add more documentation to introduce Spreadtrum SC27xx series PM

Re: [Tech-board-discuss] [Ksummit-discuss] Linux Foundation Technical Advisory Board election results 2017

2017-10-25 Thread Dave Taht
On Wed, Oct 25, 2017 at 5:23 PM, H. Peter Anvin wrote: > On 10/26/17 00:14, Laurent Pinchart wrote: >> >>> It was a very close election, with the next candidate on the list >>> receiving 36 votes. >> >> Do we have a procedure in place in case the tie that we only avoided by one >> vote would have

Re: [PATCH] Coccinelle: make DEBUG_FILE option more useful

2017-10-25 Thread Masahiro Yamada
Hi Julia, 2017-10-15 18:55 GMT+09:00 Julia Lawall : > Make coccicheck checked for the existence of DEBUG_FILE on each semantic > patch, and bailed if it already existed. This meant that DEBUG_FILE was > useless for checking more than one semantic patch at a time. Now the check > is moved to the

Re: [PATCH] PM / QoS: Fix device resume latency PM QoS

2017-10-25 Thread Ramesh Thomas
On 2017-10-25 at 18:28:01 +0200, Rafael J. Wysocki wrote: > On Wed, Oct 25, 2017 at 9:27 AM, Ramesh Thomas > wrote: > > On 2017-10-24 at 13:23:23 +0200, Rafael J. Wysocki wrote: > >> On Tue, Oct 24, 2017 at 10:49 AM, Rafael J. Wysocki > >> wrote: > >> > On Tuesday, October 24, 2017 7:54:09 AM C

[PATCH] virtio/ringtest: fix up need_event math

2017-10-25 Thread Michael S. Tsirkin
last kicked event index must be updated unconditionally: even if we don't need to kick, we do not want to re-check the same entry for events. Signed-off-by: Michael S. Tsirkin --- tools/virtio/ringtest/ring.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff -

RE: [PATCHv3 1/2] proc: mm: export PTE sizes directly in smaps

2017-10-25 Thread Du, Fan
>-Original Message- >From: Michal Hocko [mailto:mho...@kernel.org] >Sent: Wednesday, October 25, 2017 5:29 PM >To: Du, Fan >Cc: a...@linux-foundation.org; h...@lst.de; Williams, Dan J >; Hansen, Dave ; >linux-kernel@vger.kernel.org; linux-...@vger.kernel.org >Subject: Re: [PATCHv3 1/2] p

[PATCH] ipc: sem: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- ipc/sem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ipc/sem.c b/ipc/sem.c index f909848..3e09295 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@

Re: [PATCH] kernel/kprobes: add check to avoid kprobe memory leak

2017-10-25 Thread chenjiankang
> On Tue, 24 Oct 2017 20:17:02 +0800 > JianKang Chen wrote: > >> The function register_kretprobe is used to initialize a struct >> kretprobe and allocate a list table for kprobe instance. >> However,in this function, there is a memory leak. >> >> The test case: >> >> static struct kretprobe rp; >

Re: [PATCH net-next 0/9] net: bcmgenet: start/stop sequence refinement

2017-10-25 Thread David Miller
From: Doug Berger Date: Wed, 25 Oct 2017 15:04:10 -0700 > This commit set is the result of an investigation into an issue that > occurred when bringing the interface up and down repeatedly with an > external 100BASE-T PHY. In some cases the MAC would experience mass > receive packet duplication t

Re: [PATCH v3 3/6] drm/rockchip/dsi: correct Feedback divider setting

2017-10-25 Thread Brian Norris
On Wed, Oct 25, 2017 at 03:57:19AM -0400, Sean Paul wrote: > Archit asked a question about moving to > dw-mipi-dsi That question made me think though: this approach seems backwards. It seems like someone did copy/paste/fork, and then we're asking the authors of the original driver to un-fork? It s

[PATCH] usb: wusbcore: wa-xfer: mark expected switch fall-through

2017-10-25 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva --- drivers/usb/wusbcore/wa-xfer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/wusbcore/wa-xfer.c b/drivers/usb/wusbcore/wa-xfer.c i

Re: [PATCH v2 1/2] Documentation: dt: extcon: add optional debounce-timeout-ms attribute

2017-10-25 Thread Chanwoo Choi
Hi Rob, On 2017년 10월 25일 23:53, Rob Herring wrote: > On Thu, Oct 19, 2017 at 08:55:59AM +0530, Raveendra Padasalagi wrote: >> Add documentation on optional dt attribute "debounce-timeout-ms" >> in extcon node to capture user specified timeout value for id >> and vbus gpio detection. >> >> Signed-o

Re: [PATCH] genalloc: Make the avail variable an atomic64_t

2017-10-25 Thread Mathieu Desnoyers
- On Oct 26, 2017, at 12:20 AM, Stephen Bates sba...@raithlin.com wrote: >> I found that genalloc is very slow for large chunk sizes because >> bitmap_find_next_zero_area has to grind through that entire bitmap. >> Hence, I recommend avoiding genalloc for large chunk sizes. > > Thanks for the

Re: [PATCH 1/2] gpio: gpiolib: Expand sleep tolerance to include controller reset

2017-10-25 Thread Andrew Jeffery
On Wed, 2017-10-25 at 09:32 +0100, Charles Keepax wrote: > On Wed, Oct 25, 2017 at 03:34:16PM +1030, Andrew Jeffery wrote: > Reset tolerance is added to gpiolib with the introduction of a new > pinconf parameter propagating the request to hardware. The existing > persistence support for sleep is au

Re: [PATCH] net: xfrm_user: use BUG_ON instead of if condition followed by BUG

2017-10-25 Thread Gustavo A. R. Silva
Quoting "Gustavo A. R. Silva" : Hi all, Quoting Steffen Klassert : On Wed, Oct 25, 2017 at 01:22:22PM +0900, David Miller wrote: From: Herbert Xu Date: Wed, 25 Oct 2017 12:05:41 +0800 On Tue, Oct 24, 2017 at 05:48:42PM +0900, David Miller wrote: This discussion has happened before. Bu

[GIT PULL] xfs: fixes for 4.14-rc7

2017-10-25 Thread Darrick J. Wong
Hi Linus, Here's (hopefully) the last bugfix for 4.14. --D The following changes since commit 785545c8982604fe3ba79d16409e83993be77d5e: xfs: move two more RT specific functions into CONFIG_XFS_RT (2017-10-16 12:26:50 -0700) are available in the git repository at: git://git.kernel.org/pub

Re: [Ksummit-discuss] Linux Foundation Technical Advisory Board election results 2017

2017-10-25 Thread H. Peter Anvin
On 10/26/17 00:14, Laurent Pinchart wrote: > >> It was a very close election, with the next candidate on the list >> receiving 36 votes. > > Do we have a procedure in place in case the tie that we only avoided by one > vote would have happened ? > In that case thw winner(s) would be drawn rando

Re: [RFC PATCH 3/5] gpio: gpiolib: Add chardev support for maintaining GPIO values on reset

2017-10-25 Thread Andrew Jeffery
On Wed, 2017-10-25 at 09:14 +0100, Charles Keepax wrote: > On Fri, Oct 20, 2017 at 07:32:53PM +1030, Andrew Jeffery wrote: > > On Fri, 2017-10-20 at 09:27 +0200, Linus Walleij wrote: > > > I don't see it as helpful to give userspace control over whether the line > > > is persistent or not. It is mo

[PATCH v3] Update MIPS email addresses

2017-10-25 Thread Paul Burton
MIPS will soon not be a part of Imagination Technologies, and as such many @imgtec.com email addresses will no longer be valid. This patch updates the addresses for those who: - Have 10 or more patches in mainline authored using an @imgtec.com email address, or any patches dated within the pas

Re: [RFC PATCH 1/5] gpio: gpiolib: Add core support for maintaining GPIO values on reset

2017-10-25 Thread Andrew Jeffery
On Wed, 2017-10-25 at 09:11 +0100, Charles Keepax wrote: > On Fri, Oct 20, 2017 at 07:02:27PM +1030, Andrew Jeffery wrote: > > On Fri, 2017-10-20 at 09:43 +0200, Linus Walleij wrote: > > > On Fri, Oct 20, 2017 at 9:17 AM, Linus Walleij > > > wrote: > > > > > > On Fri, Oct 20, 2017 at 5:37 AM, And

[PATCH 2/3] x86: Write up the process_vmsplice syscall

2017-10-25 Thread Andrei Vagin
Signed-off-by: Andrei Vagin --- arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/entry/syscalls/syscall_64.tbl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/x86/entry/syscalls/syscall_32.tbl b/arch/x86/entry/syscalls/syscall_32.tbl index 448ac2161112..dc64bf577b17 100644 ---

[PATCH 1/3] [v2] vm: add a syscall to map a process memory into a pipe

2017-10-25 Thread Andrei Vagin
It is a hybrid of process_vm_readv() and vmsplice(). vmsplice can map memory from a current address space into a pipe. process_vm_readv can read memory of another process. A new system call can map memory of another process into a pipe. ssize_t process_vmsplice(pid_t pid, int fd, const struct io

[PATCH 3/3] test: add a test for the process_vmsplice syscall

2017-10-25 Thread Andrei Vagin
This test checks that process_vmsplice() can splice pages from a remote process and returns EFAULT, if process_vmsplice() tries to splice pages by an unaccessiable address. Signed-off-by: Andrei Vagin --- tools/testing/selftests/process_vmsplice/Makefile | 5 + .../process_vmsplice/process_vm

  1   2   3   4   5   6   7   8   >