Re: [v2 1/1] mm: discard memblock data later

2017-08-13 Thread Michal Hocko
[CC Andrew] On Fri 11-08-17 17:05:54, Pavel Tatashin wrote: > There is existing use after free bug when deferred struct pages are > enabled: > > The memblock_add() allocates memory for the memory array if more than > 128 entries are needed. See comment in e820__memblock_setup(): > > * The boo

Re: [PATCH v6 16/17] powerpc/vas: Implement a simple FTW driver

2017-08-13 Thread Michael Ellerman
Hi Suka, Some comments inline ... Sukadev Bhattiprolu writes: > The Fast Thread Wake-up (FTW) driver provides user space applications an > interface to the Core-to-Core functionality in POWER9. The driver provides > the device node/ioctl API to applications and uses the external interfaces > t

Re: [PATCH] serial: imx: Improve PIO prevention if TX DMA has been started

2017-08-13 Thread Uwe Kleine-König
Hello Clemens, On Sun, Aug 13, 2017 at 12:07:56AM +0200, Clemens Gruber wrote: > On Sat, Aug 12, 2017 at 09:54:51PM +0200, Uwe Kleine-König wrote: > > On Sat, Aug 12, 2017 at 05:12:10PM +0200, Clemens Gruber wrote: > > > The imx_transmit_buffer function should return if TX DMA has already > > > be

Re: [linux-sunxi] [PATCH v5] arm64: allwinner: a64: Add initial NanoPi A64 support

2017-08-13 Thread Chen-Yu Tsai
Hi, On Sat, Aug 12, 2017 at 1:38 PM, Jagan Teki wrote: > From: Jagan Teki > > NanoPi A64 is a new board of high performance with low cost > designed by FriendlyElec., using the Allwinner A64 SOC. > > Nanopi A64 features > - Allwinner A64, 64-bit Quad-core Cortex-A53@648MHz to 1.152GHz, DVFS > -

Product Inquiry

2017-08-13 Thread Julian Smith
Hello, My name is Ms Julian Smith and i am from Sinara Group Co.Ltd in Russia We are glad to know about your company from the web and we are interested in your products.Please send us your Latest catalog and price list for our trial order. Julian Smith, Purchasing Manager Sinara Group Co.Ltd

Re: [PATCH v2] x86/xen/64: Rearrange the SYSCALL entries

2017-08-13 Thread Andrew Cooper
On 14/08/2017 06:53, Andy Lutomirski wrote: > On Sun, Aug 13, 2017 at 7:44 PM, Brian Gerst wrote: >> On Mon, Aug 7, 2017 at 11:59 PM, Andy Lutomirski wrote: >>> /* Normal 64-bit system call target */ >>> ENTRY(xen_syscall_target) >>> - undo_xen_syscall >>> - jmp entry_SYSCALL_64_aft

Re: [PATCH 2/3] mfd: tps65010: move header file out of I2C realm

2017-08-13 Thread Lee Jones
On Sun, 13 Aug 2017, Wolfram Sang wrote: > On Tue, May 23, 2017 at 08:18:19AM +0100, Lee Jones wrote: > > On Mon, 22 May 2017, Wolfram Sang wrote: > > > > > include/linux/i2c is not for client devices. Move the header file to a > > > more appropriate location. > > > > > > Signed-off-by: Wolfram

Re: [PATCH 1/3] mfd: dm355evm_msp: move header file out of I2C realm

2017-08-13 Thread Lee Jones
On Sun, 13 Aug 2017, Wolfram Sang wrote: > On Tue, May 23, 2017 at 08:17:27AM +0100, Lee Jones wrote: > > On Mon, 22 May 2017, Wolfram Sang wrote: > > > > > include/linux/i2c is not for client devices. Move the header file to a > > > more appropriate location. > > > > > > Signed-off-by: Wolfram

Re: [PATCH 3/3] mfd: twl: move header file out of I2C realm

2017-08-13 Thread Lee Jones
On Sun, 13 Aug 2017, Wolfram Sang wrote: > On Thu, Jul 06, 2017 at 08:03:52AM +0100, Lee Jones wrote: > > On Thu, 06 Jul 2017, Thierry Reding wrote: > > > > > On Mon, May 22, 2017 at 12:02:10AM +0200, Wolfram Sang wrote: > > > > include/linux/i2c is not for client devices. Move the header file to

Re: [PATCH v2] x86/xen/64: Rearrange the SYSCALL entries

2017-08-13 Thread Andy Lutomirski
On Sun, Aug 13, 2017 at 10:53 PM, Andy Lutomirski wrote: > On Sun, Aug 13, 2017 at 7:44 PM, Brian Gerst wrote: >> On Mon, Aug 7, 2017 at 11:59 PM, Andy Lutomirski wrote: >>> /* Normal 64-bit system call target */ >>> ENTRY(xen_syscall_target) >>> - undo_xen_syscall >>> - jmp entry_

[PATCH] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-13 Thread Hui Zhu
After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary loops but not return -EBUSY if zspage is not inuse") zs_page_migrate can handle the ZS_EMPTY zspage. But it will affect the free_work free the zspage. That will make this ZS_EMPTY zspage stay in system until another zspage wa

[PATCH] [media] pxa_camera: constify v4l2_clk_ops structure

2017-08-13 Thread Julia Lawall
This v4l2_clk_ops structure is only passed as the first argument of v4l2_clk_register, which is const, so the v4l2_clk_ops structure can also be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/platform/pxa_camera.c |2 +- 1 file changed, 1 insertion(+

Re: [linux-sunxi] [PATCH 2/2] arm64: allwinner: h5: fix pinctrl IRQs

2017-08-13 Thread Chen-Yu Tsai
On Fri, Aug 11, 2017 at 10:27 PM, Icenowy Zheng wrote: > The pin controller of H5 has three IRQs at the chip's GIC, which > represents three banks of pinctrl IRQs. However, the device tree used to > miss the third IRQ of the pin controller, which makes the PG bank IRQ > not usable. > > Add the mis

[lkp-robot] [net] 98cd1552ea: BUG:unable_to_handle_kernel

2017-08-13 Thread kernel test robot
FYI, we noticed the following commit: commit: 98cd1552ea27e512c7e99e2aa76042a26e4fb25c ("net: dsa: Mock-up driver") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux s

[PATCH] [media] v4l2: av7110_v4l: constify v4l2_audio structure

2017-08-13 Thread Julia Lawall
This v4l2_audio structure is only copied into other structures, so it can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/pci/ttpci/av7110_v4l.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ttpci/av7110_v4l.c

Re: [PATCH v6 01/17] powerpc/vas: Define macros, register fields and structures

2017-08-13 Thread Nicholas Piggin
On Mon, 14 Aug 2017 15:21:48 +1000 Michael Ellerman wrote: > Sukadev Bhattiprolu writes: > > arch/powerpc/include/asm/vas.h | 35 > > arch/powerpc/include/uapi/asm/vas.h | 25 +++ > > I thought we weren't exposing VAS to userspace yet? > > If we are then we need to get things

Re: [linux-sunxi] [PATCH 1/2] pinctrl: sunxi: fix wrong irq_banks number for H5 pinctrl

2017-08-13 Thread Chen-Yu Tsai
On Fri, Aug 11, 2017 at 10:27 PM, Icenowy Zheng wrote: > The pin controller of Allwinner H5 has three IRQ banks, however in old > versions of drivers and device trees, only two are set, which makes > PG bank IRQ not available. > > If it's directly set to 3, the old device trees will fail to boot.

[PATCH] Coccinelle: add atomic_as_refcounter script

2017-08-13 Thread Elena Reshetova
atomic_as_refcounter.cocci script allows detecting cases when refcount_t type and API should be used instead of atomic_t. Signed-off-by: Elena Reshetova --- scripts/coccinelle/api/atomic_as_refcounter.cocci | 148 ++ 1 file changed, 148 insertions(+) create mode 100644 scrip

[PATCH v2] coccinelle: provide rule for finding refcounters

2017-08-13 Thread Elena Reshetova
changes in v2: Following the suggestion from Julia the first rule is split into 2. The output does not differ that much between these two versions, but rule became more precise. Elena Reshetova (1): Coccinelle: add atomic_as_refcounter script scripts/coccinelle/api/atomic_as_refcounter.cocci

[PATCH 01/10] ASoC: au1x: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/au1x/dbdma2.c | 2 +- sound/soc/au1x/dma.c| 2 +- 2 files changed, 2 insertion

[PATCH 04/10] ASoC: intel: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH 05/10] ASoC: nuc900: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/nuc900/nuc900-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 06/10] ASoC: omap: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/omap/omap-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 02/10] ASoC: blackfin: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/blackfin/bf5xx-ac97-pcm.c | 2 +- sound/soc/blackfin/bf5xx-i2s-pcm.c | 2 +- 2 fi

[PATCH 03/10] ASoC: fsl: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/fsl/fsl_dma.c | 2 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- sound/soc/fsl/mpc520

[PATCH 08/10] ASoC: samsung: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/samsung/idma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 09/10] ASoC: sh: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c| 2 +- sound/soc/sh/rcar/core.c

[PATCH 10/10] ASoC: txx9: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/txx9/txx9aclc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 07/10] ASoC: pxa: constify snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/pxa/mmp-pcm.c| 2 +- sound/soc/pxa/pxa2xx-pcm.c | 2 +- 2 files changed, 2 ins

[PATCH 00/10] constify ASoC snd_pcm_ops structures

2017-08-13 Thread Arvind Yadav
snd_pcm_ops are not supposed to change at runtime. All functions working with snd_pcm_ops provided by work with const snd_pcm_ops. So mark the non-const structs as const. Arvind Yadav (10): [PATCH 01/10] ASoC: au1x: constify snd_pcm_ops structures [PATCH 02/10] ASoC: blackfin: constify snd_pc

Re: [PATCH v2] x86/xen/64: Rearrange the SYSCALL entries

2017-08-13 Thread Andy Lutomirski
On Sun, Aug 13, 2017 at 7:44 PM, Brian Gerst wrote: > On Mon, Aug 7, 2017 at 11:59 PM, Andy Lutomirski wrote: >> /* Normal 64-bit system call target */ >> ENTRY(xen_syscall_target) >> - undo_xen_syscall >> - jmp entry_SYSCALL_64_after_swapgs >> + popq %rcx >> + popq %r11

[PATCH] misc: mic: constify virtio_config_ops structure

2017-08-13 Thread Julia Lawall
This virtio_config_ops structure is only stored in the config field of a virtio_device structure and this field is const, so the virtio_config_ops structure can also be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/misc/mic/vop/vop_main.c |2 +- 1 file ch

Re: [PATCH 2/9] Implement containers as kernel objects

2017-08-13 Thread Richard Guy Briggs
On 2017-05-22 17:22, David Howells wrote: > A container is then a kernel object that contains the following things: > > (1) Namespaces. > > (2) A root directory. > > (3) A set of processes, including one designated as the 'init' process. > > A container is created and attached to a file desc

Re: [PATCH 3/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-13 Thread Huang, Ying
Hi, Peter, "Huang, Ying" writes: > Peter Zijlstra writes: > >> On Sat, Aug 05, 2017 at 08:47:02AM +0800, Huang, Ying wrote: >>> Yes. That looks good. So you will prepare the final patch? Or you >>> hope me to do that? >> >> I was hoping you'd do it ;-) > > Thanks! Here is the updated patch

Re: [PATCH] soc: imx: gpcv2: fix regulator deferred probe

2017-08-13 Thread Shawn Guo
On Sun, Aug 13, 2017 at 10:12:13PM -0700, Stefan Agner wrote: > Hi Shawn, > > On 2017-08-04 20:13, Shawn Guo wrote: > > On Wed, Aug 02, 2017 at 12:51:29PM -0700, Stefan Agner wrote: > >> If a regulator requests a deferred probe, the power domain gets > >> initialized twice. This leads to a list do

[PATCH] swap: choose swap device according to numa node

2017-08-13 Thread Aaron Lu
If the system has more than one swap device and swap device has the node information, we can make use of this information to decide which swap device to use in get_swap_pages() to get better performance. The current code uses a priority based list, swap_avail_list, to decide which swap device to u

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-13 Thread Minchan Kim
On Mon, Aug 14, 2017 at 05:07:19AM +, Nadav Amit wrote: < snip > > Minchan, as for the solution you proposed, it seems to open again a race, > since the “pending” indication is removed before the actual TLB flush is > performed. Oops, you're right!

Re: [PATCH 0/5] qcom-ufs: phy/hcd: Refactor phy initialization code

2017-08-13 Thread Asutosh Das (asd)
Vivek, On 8/11/2017 12:42 PM, Vivek Gautam wrote: On Fri, Aug 11, 2017 at 5:33 AM, Martin K. Petersen wrote: Vivek, Can you kindly review this patch series (for UFS controller changes) and consider giving your Ack so that Kishon can pull in the series through phy tree. SCSI piece looks OK

Re: [PATCH] soc: imx: gpcv2: fix regulator deferred probe

2017-08-13 Thread Stefan Agner
Hi Shawn, On 2017-08-04 20:13, Shawn Guo wrote: > On Wed, Aug 02, 2017 at 12:51:29PM -0700, Stefan Agner wrote: >> If a regulator requests a deferred probe, the power domain gets >> initialized twice. This leads to a list double add (without >> list debugging the kernel hangs due to the double add

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-13 Thread Nadav Amit
Minchan Kim wrote: > On Sun, Aug 13, 2017 at 02:50:19PM +0200, Peter Zijlstra wrote: >> On Sun, Aug 13, 2017 at 06:06:32AM +, Nadav Amit wrote: however mm_tlb_flush_nested() is a mystery, it appears to care about anything inside the range. For now rely on it doing at least _a_ PTL >

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-08-13 Thread Vivek Unune
Florian, On Thu, Jun 29, 2017 at 5:04 PM, Vivek Unune wrote: > Florian, > >>> I have managed to use DSA driver and was able detect both internal and >>> external switches. However, I only get packets flowing only through the >>> internal switch. I have used the ip & bridge commands to setup the v

Re: [v3 1/2] sched/clock: interface to allow timestamps early in boot

2017-08-13 Thread Dou Liyang
Hi Pavel, At 08/12/2017 02:50 AM, Pavel Tatashin wrote: In Linux printk() can output timestamps next to every line. This is very useful for tracking regressions, and finding places that can be optimized. However, the timestamps are available only later in boot. On smaller machines it is insigni

Re: [PATCH ALT4 V2 1/2] audit: show fstype:pathname for entries with anonymous parents

2017-08-13 Thread Richard Guy Briggs
On 2017-08-11 02:36, Richard Guy Briggs wrote: > On 2017-06-28 15:03, Paul Moore wrote: > > On Tue, Jun 27, 2017 at 5:11 PM, Richard Guy Briggs wrote: > > > On 2017-05-30 17:21, Paul Moore wrote: > > >> On Tue, Apr 4, 2017 at 5:21 AM, Richard Guy Briggs > > >> wrote: > > > > ... > > > > >> > d

Re: [PATCH net-next v2 2/3] net/ncsi: Configure VLAN tag filter

2017-08-13 Thread Samuel Mendoza-Jonas
On Mon, 2017-08-14 at 11:39 +0930, Joel Stanley wrote: > On Mon, Aug 14, 2017 at 10:59 AM, Samuel Mendoza-Jonas > wrote: > > Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI > > stack process new VLAN tags and configure the channel VLAN filter > > appropriately. > > Several VL

Re: [PATCH 1/3] dt-bindings: display: Add Document for Rockchip Soc LVDS

2017-08-13 Thread Sandy Huang
在 2017/8/11 23:38, Philipp Zabel 写道: On Wed, 2017-08-09 at 18:00 +0800, Sandy Huang wrote: This patch add Document for Rockchip Soc RK3288 LVDS, This based on the patches from Mark yao and Heiko Stuebner. Signed-off-by: Sandy Huang Signed-off-by: Mark yao Signed-off-by: Heiko Stuebner --

Re: [PATCH 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-13 Thread Sandy Huang
在 2017/8/11 22:44, Sean Paul 写道: On Fri, Aug 11, 2017 at 10:15:16AM +0800, Sandy Huang wrote: 在 2017/8/11 2:05, Sean Paul 写道: On Thu, Aug 10, 2017 at 05:35:52PM +0800, Sandy Huang wrote: Hi Sean Paul, Thanks for your review. 在 2017/8/10 3:58, Sean Paul 写道: On Wed, Aug 09, 2017 at 0

Re: [PATCH v2 1/1] i2c: aspeed: add proper support fo 24xx clock params

2017-08-13 Thread Brendan Higgins
On Sat, Aug 12, 2017 at 4:30 AM, Wolfram Sang wrote: > >> That being said, I could implement this as a custom clock subclass, which >> would probably be cleaner that what I have done. > > Shall I wait for that one or do you want this patch to be included? > I don't mind, your call here... > Let's

Re: [PATCH v1] i2c: aspeed: fixed potential null pointer dereference

2017-08-13 Thread Joel Stanley
On Sat, Aug 12, 2017 at 9:02 PM, Wolfram Sang wrote: > On Fri, Jul 28, 2017 at 06:00:12PM -0700, Brendan Higgins wrote: >> Before I skipped null checks when the master is in the STOP state; this >> fixes that. >> >> Signed-off-by: Brendan Higgins > > Is there a suitable "Fixes:" tag for this? >

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-13 Thread Minchan Kim
On Sun, Aug 13, 2017 at 02:50:19PM +0200, Peter Zijlstra wrote: > On Sun, Aug 13, 2017 at 06:06:32AM +, Nadav Amit wrote: > > > however mm_tlb_flush_nested() is a mystery, it appears to care about > > > anything inside the range. For now rely on it doing at least _a_ PTL > > > lock instead of t

Re: [PATCH 04/11] serial: sunsu: constify uart_ops structures

2017-08-13 Thread David Miller
From: Julia Lawall Date: Sun, 13 Aug 2017 08:21:43 +0200 > These uart_ops structures are only stored in the ops field of a > uart_port structure and this fields is const, so the uart_ops > structures can also be const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Acke

Re: [PATCH 03/11] serial: sunsab: constify uart_ops structures

2017-08-13 Thread David Miller
From: Julia Lawall Date: Sun, 13 Aug 2017 08:21:42 +0200 > These uart_ops structures are only stored in the ops field of a > uart_port structure and this fields is const, so the uart_ops > structures can also be const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall Acke

Re: [PATCH 0/4] constify net platform_device_id

2017-08-13 Thread David Miller
From: Arvind Yadav Date: Sun, 13 Aug 2017 16:41:44 +0530 > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as const. Series applied, thanks.

Re: [PATCH] tap: make struct tap_fops static

2017-08-13 Thread David Miller
From: Colin King Date: Sat, 12 Aug 2017 22:52:31 +0100 > From: Colin Ian King > > The structure tap_fops is local to the source and does not need to > be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'tap_fops' was not declared. Should it be static? > > Signed-off

Re: [PATCH] virtio-net: make array guest_offloads static

2017-08-13 Thread David Miller
From: Colin King Date: Sat, 12 Aug 2017 22:45:53 +0100 > From: Colin Ian King > > The array guest_offloads is local to the source and does not need to > be in global scope, so make it static. Also tweak formatting. > > Cleans up sparse warnings: > symbol 'guest_offloads' was not declared. Shou

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-13 Thread Minchan Kim
Hi Peter, On Fri, Aug 11, 2017 at 04:04:50PM +0200, Peter Zijlstra wrote: > > Ok, so I have the below to still go on-top. > > Ideally someone would clarify the situation around > mm_tlb_flush_nested(), because ideally we'd remove the > smp_mb__after_atomic() and go back to relying on PTL alone.

Re: [PATCH net-next V2 0/3] XDP support for tap

2017-08-13 Thread David Miller
From: Jason Wang Date: Fri, 11 Aug 2017 19:41:15 +0800 > Hi all: > > This series tries to implement XDP support for tap. Two path were > implemented: > > - fast path: small & non-gso packet, For performance reason we do it > at page level and use build_skb() to create skb if necessary. > - sl

Re: [PATCH v3 0/7] Add rk3328 pwm support

2017-08-13 Thread David.Wu
Hi Boris && thierry, Do you have any other suggestion for the patches? 在 2017/8/8 23:38, David Wu 写道: There are two features of rk3328 pwm module. - PWM APB and function clocks are different. - Add pwm atomic hardware update David Wu (7): pwm: rockchip: Add APB and function both clocks

Re: [PATCH v2] x86/xen/64: Rearrange the SYSCALL entries

2017-08-13 Thread Brian Gerst
On Mon, Aug 7, 2017 at 11:59 PM, Andy Lutomirski wrote: > Xen's raw SYSCALL entries are much less weird than native. Rather > than fudging them to look like native entries, use the Xen-provided > stack frame directly. > > This lets us eliminate entry_SYSCALL_64_after_swapgs and two uses of > the

Re: [PATCH 1/5] cramfs: direct memory access support

2017-08-13 Thread Nicolas Pitre
On Sat, 12 Aug 2017, Christoph Hellwig wrote: > Direct physical memory access in a file system is never safe. > Please make sure this goes through struct dax_operations. Well, after having a closer look, I don't think dax might be relevant here for a couple reasons: - cramfs is read-only. No co

Re: [PATCHv6 3/3] ARM:drm ivip Intel FPGA Video and Image Processing Suite

2017-08-13 Thread Ong, Hean Loong
On Fri, 2017-08-11 at 08:21 -0700, Randy Dunlap wrote: > On 08/10/2017 11:49 PM, Hean-Loong, Ong wrote: > > > > diff --git a/drivers/gpu/drm/ivip/Kconfig > > b/drivers/gpu/drm/ivip/Kconfig > > new file mode 100644 > > index 000..398c9ab > > --- /dev/null > > +++ b/drivers/gpu/drm/ivip/Kconfig

Re: [PATCH v4 4/5] squashfs: Add zstd support

2017-08-13 Thread Phillip Lougher
On Sun, Aug 13, 2017 at 9:31 AM, Geert Uytterhoeven wrote: > On Fri, Aug 4, 2017 at 10:19 PM, Nick Terrell wrote: >> --- a/fs/squashfs/decompressor.c >> +++ b/fs/squashfs/decompressor.c >> @@ -65,6 +65,12 @@ static const struct squashfs_decompressor >> squashfs_zlib_comp_ops = { >> }; >> #endi

Re: [PATCH net-next v2 3/3] ftgmac100: Support NCSI VLAN filtering when available

2017-08-13 Thread Joel Stanley
On Mon, Aug 14, 2017 at 10:59 AM, Samuel Mendoza-Jonas wrote: > Register the ndo_vlan_rx_{add,kill}_vid callbacks and set the > NETIF_F_HW_VLAN_CTAG_FILTER if NCSI is available. > This allows the VLAN core to notify the NCSI driver when changes occur > so that the remote NCSI channel can be proper

Re: [PATCH net-next v2 1/3] net/ncsi: Fix several packet definitions

2017-08-13 Thread Joel Stanley
On Mon, Aug 14, 2017 at 10:59 AM, Samuel Mendoza-Jonas wrote: I asked Sam if these should be backported to stable and he said: > These are straight up bugs except... without my changes we never call > this code. As Ben says as time provides a lot of the current definitions > need to be gone over

Re: [PATCH net-next v2 2/3] net/ncsi: Configure VLAN tag filter

2017-08-13 Thread Joel Stanley
On Mon, Aug 14, 2017 at 10:59 AM, Samuel Mendoza-Jonas wrote: > Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI > stack process new VLAN tags and configure the channel VLAN filter > appropriately. > Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent > fo

linux-next: no release today

2017-08-13 Thread Stephen Rothwell
Hi all, There will be no linux-next release today (I am a bit under the weather). -- Cheers, Stephen Rothwell

Re: [PATCH v2 1/4] dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation

2017-08-13 Thread Andrew Jeffery
On Thu, 2017-08-10 at 11:13 -0500, Rob Herring wrote: > On Wed, Aug 02, 2017 at 04:45:38PM +0930, Andrew Jeffery wrote: > > > > Signed-off-by: Andrew Jeffery > > --- > >  .../devicetree/bindings/hwmon/pmbus/max31785.txt   | 126 > > + > >  1 file changed, 126 insertions(+) > >

Re: [PATCH v3 10/13] ARM: dts: rockchip: add saradc support for rv1108

2017-08-13 Thread Andy Yan
Hi Heiko: On 2017年08月13日 20:13, Heiko Stuebner wrote: Hi Andy, Am Freitag, 11. August 2017, 11:46:51 CEST schrieb Andy Yan: Add saradc device tree node for rv1108 soc Signed-off-by: Andy Yan + adc: adc@1038c000 { + compatible = "rockchip,rv1108-saradc", "rockchip,rk3399

Re: [PATCH v2 1/7] zram: set BDI_CAP_STABLE_WRITES once

2017-08-13 Thread Sergey Senozhatsky
On (08/11/17 14:17), Minchan Kim wrote: > [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 cre

Re: [PATCH v2 2/2] i2c: mediatek: Add i2c compatible for MediaTek MT7622

2017-08-13 Thread Jun Gao
On Sat, 2017-08-12 at 16:44 +0200, Wolfram Sang wrote: > > +static const struct i2c_adapter_quirks mt7622_i2c_quirks = { > > + .max_num_msgs = 255, > > + .max_write_len = 65535, > > + .max_read_len = 65535, > > + .max_comb_1st_msg_len = 65535, > > + .max_comb_2nd_msg_len = 65535, > > +};

[PATCH net-next v2 3/3] ftgmac100: Support NCSI VLAN filtering when available

2017-08-13 Thread Samuel Mendoza-Jonas
Register the ndo_vlan_rx_{add,kill}_vid callbacks and set the NETIF_F_HW_VLAN_CTAG_FILTER if NCSI is available. This allows the VLAN core to notify the NCSI driver when changes occur so that the remote NCSI channel can be properly configured to filter on the set VLAN tags. Signed-off-by: Samuel Me

[PATCH net-next v2 0/3] NCSI VLAN Filtering Support

2017-08-13 Thread Samuel Mendoza-Jonas
This series (mainly patch 2) adds VLAN filtering to the NCSI implementation. A fair amount of code already exists in the NCSI stack for VLAN filtering but none of it is actually hooked up. This goes the final mile and fixes a few bugs in the existing code found along the way (patch 1). Patch 3 add

RE: [PATCH] perf report: calculate the average cycles of iterations

2017-08-13 Thread Jin, Yao
Hi Andi, Do you have any comments for this patch? Thanks Jin Yao -Original Message- From: Jin Yao [mailto:yao@linux.intel.com] Sent: Monday, August 7, 2017 9:05 PM To: a...@kernel.org; jo...@kernel.org; pet...@infradead.org; mi...@redhat.com; alexander.shish...@linux.intel.com Cc:

[PATCH net-next v2 1/3] net/ncsi: Fix several packet definitions

2017-08-13 Thread Samuel Mendoza-Jonas
Signed-off-by: Samuel Mendoza-Jonas --- v2: Rebased on latest net-next net/ncsi/ncsi-cmd.c | 10 +- net/ncsi/ncsi-pkt.h | 2 +- net/ncsi/ncsi-rsp.c | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/net/ncsi/ncsi-cmd.c b/net/ncsi/ncsi-cmd.c index 5e03ed190e18..7567

[PATCH net-next v2 2/3] net/ncsi: Configure VLAN tag filter

2017-08-13 Thread Samuel Mendoza-Jonas
Make use of the ndo_vlan_rx_{add,kill}_vid callbacks to have the NCSI stack process new VLAN tags and configure the channel VLAN filter appropriately. Several VLAN tags can be set and a "Set VLAN Filter" packet must be sent for each one, meaning the ncsi_dev_state_config_svf state must be repeated.

Re: [PATCH v6 6/7] mm: fix MADV_[FREE|DONTNEED] TLB flush miss problem

2017-08-13 Thread Minchan Kim
Hi Peter, On Fri, Aug 11, 2017 at 03:30:20PM +0200, Peter Zijlstra wrote: > On Tue, Aug 01, 2017 at 05:08:17PM -0700, Nadav Amit wrote: > > void tlb_finish_mmu(struct mmu_gather *tlb, > > unsigned long start, unsigned long end) > > { > > - arch_tlb_finish_mmu(tlb, start, end); > >

Re: [PATCH v10 1/2] mmc: dw_mmc: move controller reset before driver init

2017-08-13 Thread Shawn Lin
Trim cc On 2017/8/11 16:06, Li Wei wrote: This commit modifies dw_mci_probe(), it moves reset assertion before drv_data->init(host) Some driver needs to access controller registers in its .init() ops. So, in order to make such access safe, we should do controller reset before .init() being call

Re: [PATCH 1/2 v2] arm64: dts: ls1088a: add cpu idle support

2017-08-13 Thread Shawn Guo
On Mon, Aug 07, 2017 at 09:54:38AM +0800, andy.t...@nxp.com wrote: > From: Yuantian Tang > > ls1088a supports another cpu idle state which is ph20 which saves > more power when cpu is idle. > It was implemented through psci firmware. > > Signed-off-by: Tang Yuantian Applied both, thanks.

Re: [PATCH 0/3] NCSI VLAN Filtering Support

2017-08-13 Thread Samuel Mendoza-Jonas
On Fri, 2017-08-11 at 14:48 -0700, David Miller wrote: > From: Samuel Mendoza-Jonas > Date: Fri, 11 Aug 2017 16:16:45 +1000 > > > This series (mainly patch 3) adds VLAN filtering to the NCSI implementation. > > A fair amount of code already exists in the NCSI stack for VLAN filtering > > but > >

Re: [PATCH v2] pinctrl: aspeed: Fix ast2500 strap register write logic

2017-08-13 Thread Andrew Jeffery
Hi Yong, On Fri, 2017-08-11 at 22:22 +0800, Yong Li wrote: > On AST2500, the hardware strap register(SCU70) only accepts write ‘1’, > to clear it to ‘0’, must set bits(write  ‘1’) to SCU7C > > > Signed-off-by: Yong Li > --- >  drivers/pinctrl/aspeed/pinctrl-aspeed.c | 20 ++-- >  

Re: [PATCH v6 4/7] mm: refactoring TLB gathering API

2017-08-13 Thread Minchan Kim
On Fri, Aug 11, 2017 at 10:12:45AM -0700, Nadav Amit wrote: > Peter Zijlstra wrote: > > > On Tue, Aug 01, 2017 at 05:08:15PM -0700, Nadav Amit wrote: > >> From: Minchan Kim > >> > >> This patch is a preparatory patch for solving race problems caused by > >> TLB batch. For that, we will increas

Re: [tpmdd-devel] [PATCH] tpm: improve tpm_tis send() performance by ignoring burstcount

2017-08-13 Thread msuchanek
Hello, On Fri, 11 Aug 2017 17:32:12 -0400 Ken Goldman wrote: > On 8/9/2017 5:00 PM, Peter Huewe wrote: > > > > Since we are the linux kernel, we do have to care for legacy > > devices. And a system with LPC, PS2Mouse on SuperIO and a TPM are > > not that uncommon. > > > > And heck, we even hav

Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-13 Thread Dave Chinner
On Sun, Aug 13, 2017 at 11:24:36AM +0200, Christoph Hellwig wrote: > And maybe that's where we need to converge - > "sealing" the extent map makes sense as such a temporary measure > that is not persisted on disk, which automatically gets released > when the holding process exits, because we sort

Re: Do we really need d_weak_revalidate???

2017-08-13 Thread NeilBrown
On Fri, Aug 11 2017, Jeff Layton wrote: > On Fri, 2017-08-11 at 05:55 +, Trond Myklebust wrote: >> On Fri, 2017-08-11 at 14:31 +1000, NeilBrown wrote: >> > Funny story. 4.5 years ago we discarded the FS_REVAL_DOT superblock >> > flag and introduced the d_weak_revalidate dentry operation inste

Re: Do we really need d_weak_revalidate???

2017-08-13 Thread NeilBrown
On Fri, Aug 11 2017, Trond Myklebust wrote: > On Fri, 2017-08-11 at 14:31 +1000, NeilBrown wrote: >> Funny story. 4.5 years ago we discarded the FS_REVAL_DOT superblock >> flag and introduced the d_weak_revalidate dentry operation instead. >> We duly removed the flag from NFS superblocks and NFSv

Re: [PATCH 3/3] cgroup: Implement cgroup2 basic CPU usage accounting

2017-08-13 Thread Waiman Long
On 08/13/2017 03:44 PM, Tejun Heo wrote: > Hello, Waiman. > > On Fri, Aug 11, 2017 at 04:19:07PM -0400, Waiman Long wrote: >>> * CPU usage stats are collected and shown in "cgroup.stat" with "cpu." >>> prefix. Total usage is collected from scheduling events. User/sys >>> breakdown is sourced

Linux 4.13-rc5

2017-08-13 Thread Linus Torvalds
Things are progressing pretty normally. rc5 is smaller than rc4 was, and nothing looks particularly scary for this release window. Let's hope it stays that way. The diffstat looks normal too, with just over 40% driver updates, and just under 40% arch updates. Although the reason the arch updates

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-13 Thread David Ahern
On 8/13/17 2:56 PM, Wei Wang wrote: >> Looking at my patch to move host routes from loopback to device with the >> address, I have this: >> >> @@ -2789,7 +2808,8 @@ static int fib6_ifdown(struct rt6_info *rt, void *arg) >> const struct arg_dev_net *adn = arg; >> const struct net_dev

Re: [RESEND PATCH 4/4] EDAC: add support for reduced-width Armada-XP SDRAM

2017-08-13 Thread Chris Packham
On 11/08/17 21:14, Borislav Petkov wrote: > On Mon, Aug 07, 2017 at 01:46:41PM +1200, Chris Packham wrote: >> Some integrated Armada XP SoCs use a reduced pin count so the width of >> the SDRAM interface is smaller than the traditional discrete SoCs. This >> means that the definition of "full" and

[PATCH] fs/isofs: ISO9660_FS now needs NLS support

2017-08-13 Thread Thomas Petazzoni
Since 86a1da6d30ad7 ("isofs: Implement show_options"), fs/isofs/inode.c uses CONFIG_NLS_DEFAULT, which requires NLS support to be enabled, otherwise the build fails with: fs/isofs/inode.c: In function ‘isofs_show_options’: fs/isofs/inode.c:518:44: error: ‘CONFIG_NLS_DEFAULT’ undeclared (first use

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-13 Thread Wei Wang
> Looking at my patch to move host routes from loopback to device with the > address, I have this: > > @@ -2789,7 +2808,8 @@ static int fib6_ifdown(struct rt6_info *rt, void *arg) > const struct arg_dev_net *adn = arg; > const struct net_device *dev = adn->dev; > > - if ((rt->

Re: [PATCH] mips: mm: remove duplicate "const" qualifier on insn_table

2017-08-13 Thread Thomas Petazzoni
Hello, On Thu, 3 Aug 2017 21:16:15 +0200, Thomas Petazzoni wrote: > Fixes the following gcc 7.x build error: > > arch/mips/mm/uasm-mips.c:51:26: error: duplicate ‘const’ declaration > specifier [-Werror=duplicate-decl-specifier] > static const struct insn const insn_table[insn_invalid] = { >

Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-13 Thread Dan Williams
On Sun, Aug 13, 2017 at 2:24 AM, Christoph Hellwig wrote: > On Sat, Aug 12, 2017 at 12:19:50PM -0700, Dan Williams wrote: >> The application does not need to know the storage address, it needs to >> know that the storage address to file offset is fixed. With this >> information it can make assumpt

Re: RGB support prototype

2017-08-13 Thread Pavel Machek
Hi! > > You mentioned you was working on RGB support prototype. Could you post > > copy of the patches (even if unfinished)? > > Unfortunately it is at the stage of unfinished proof of concept and > I haven't managed yet to try how it fits to all API use cases we have. > Nor is it in a shape read

Re: [PATCH 3/3] cgroup: Implement cgroup2 basic CPU usage accounting

2017-08-13 Thread Tejun Heo
Hello, Waiman. On Fri, Aug 11, 2017 at 04:19:07PM -0400, Waiman Long wrote: > > * CPU usage stats are collected and shown in "cgroup.stat" with "cpu." > > prefix. Total usage is collected from scheduling events. User/sys > > breakdown is sourced from tick sampling and adjusted to the usage >

[PATCH] staging: pi433: fix check for FDEVMSB register mask

2017-08-13 Thread Frederico Cadete
The code was using the logical negation operator "!", effectively never triggering the error path. To check the bitmask we should use the bitwise negation "~". Cleans up sparse warning: warning: dubious: x & !y Signed-off-by: Frederico Cadete --- drivers/staging/pi433/rf69.c | 2 +- 1 file ch

[PATCH] [media] media: imx: use setup_timer

2017-08-13 Thread Cihangir Akturk
Use setup_timer function instead of initializing timer with the function and data fields. Generated by: scripts/coccinelle/api/setup_timer.cocci. Signed-off-by: Cihangir Akturk --- drivers/staging/media/imx/imx-ic-prpencvf.c | 5 ++--- drivers/staging/media/imx/imx-media-csi.c | 5 ++--- 2 fi

Re: [PATCH v3 1/2] ata: mediatek: add support for MediaTek SATA controller

2017-08-13 Thread Tejun Heo
On Sat, Aug 12, 2017 at 09:31:03AM +0800, Ryder Lee wrote: > This adds support the AHCI-compliant Serial ATA controller present > on MediaTek SoCs. > > Signed-off-by: Ryder Lee Looks good to me. Acked-by: Tejun Heo If others are okay with it, please let me know how the patches should be rout

[PATCH] ima: Delete an error message for a failed memory allocation in ima_add_digest_entry()

2017-08-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Aug 2017 19:29:11 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- security/integrity/ima/ima_queue.c | 5 ++--- 1 file changed, 2 insert

Re: unregister_netdevice: waiting for eth0 to become free. Usage count = 1

2017-08-13 Thread David Ahern
On 8/12/17 1:42 PM, Wei Wang wrote: > Hi Ido, > >>> - if ((rt->dst.dev == dev || !dev) && >>> + if ((rt->dst.dev == dev || !dev || >>> + rt->rt6i_idev->dev == dev) && >> >> Can you please explain why this line is needed? While host routes aren't >> removed from the FIB by rt6_ifdo

Re: [PATCH 1/4] selinux: Delete eight unnecessary variable assignments

2017-08-13 Thread Serge E. Hallyn
Quoting Serge E. Hallyn (se...@hallyn.com): > Quoting SF Markus Elfring (elfr...@users.sourceforge.net): > > From: Markus Elfring > > Date: Sun, 13 Aug 2017 14:17:48 +0200 > > > > One local variable was reset to zero at the end of these functions. > > This value will also be set by a previous cal

  1   2   3   >