Re: [PATCH net-next v6 2/4] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-24 Thread Gregory CLEMENT
Hi Andrew, On mer., janv. 25 2017, Andrew Lunn wrote: >> +[MV88E6341] = { >> +.prod_num = PORT_SWITCH_ID_PROD_NUM_6341, >> +.family = MV88E6XXX_FAMILY_6341, >> +.name = "Marvell 88E6341", >> +.num_databases = 4096, >> +.num_ports

Re: [PATCH] ARM: dts: Odroid XU4: fix USB3.0 ports

2017-01-24 Thread Krzysztof Kozlowski
On Wed, Jan 25, 2017 at 7:51 AM, Anand Moon wrote: > Hi Richard, > > On 24 January 2017 at 19:18, Richard Genoud wrote: >> Since commit 2164a476205ccc ("usb: dwc3: set SUSPHY bit for all cores"), >> the USB ports on odroid-XU4 don't work anymore. >> >> Inserting an usb key (USB2.0) on the USB3.0

Re: [alsa-devel] [PATCH 6/7] dmasound_core: Move two assignments for the variable "ret" in state_open()

2017-01-24 Thread Clemens Ladisch
SF Markus Elfring wrote: > A local variable was set to an error code in two cases before a concrete > error situation was detected. And why would that be a problem? http://yarchive.net/comp/linux/error_jumps.html > - ret = -EBUSY; > - if (state.busy) > + if (state.busy) { > +

Re: linux-next: manual merge of the kselftest tree with the net-next tree

2017-01-24 Thread Daniel Borkmann
On 01/25/2017 05:03 AM, Stephen Rothwell wrote: Hi Shuah, Today's linux-next merge of the kselftest tree got a conflict in: tools/testing/selftests/bpf/Makefile between commit: 62b64660262a ("bpf: add prog tag test case to bpf selftests") from the net-next tree and commit: 88baa78d

Re: [RFC PATCH v1 2/6] kernel-doc: replace kernel-doc perl parser with a pure python one (WIP)

2017-01-24 Thread Markus Heiser
Hi Jon, hi Daniel ! Am 25.01.2017 um 07:37 schrieb Daniel Vetter : >> Again, quick comments... >> >> - I would *much* rather evolve our existing Sphinx extension in the >> direction we want it to go than to just replace it wholesale. >> Replacement is the wrong approach for a few reasons, in

Re: [PATCH] x86/gpu: GLK uses the same GMS values as SKL

2017-01-24 Thread Ingo Molnar
* Paulo Zanoni wrote: > So don't forget to reserve its stolen memory bits. > > Cc: Ingo Molnar > Cc: H. Peter Anvin > Cc: Ander Conselvan de Oliveira > Cc: x...@kernel.org > Reviewed-by: Ander Conselvan de Oliveira > > Signed-off-by: Paulo Zanoni > --- > arch/x86/kernel/early-quirks.c |

Re: [PATCH 2/2] perf tools: Introduce regs_query_register_offset() for arm64

2017-01-24 Thread Hekuang
hi 在 2017/1/25 3:09, Arnaldo Carvalho de Melo 写道: Em Tue, Jan 24, 2017 at 06:25:18PM +, Will Deacon escreveu: On Tue, Jan 24, 2017 at 10:30:15AM +, He Kuang wrote: Since HAVE_KPROBES can be enabled in arm64, this patch introduces regs_query_register_offset() to convert register name to

[PATCH 2/2 v2] perf tools: Enable bpf prologue for arm64

2017-01-24 Thread He Kuang
Since HAVE_KPROBES can be enabled in arm64, this patch introduces regs_query_register_offset() to convert register name to offset for arm64, so the BPF prologue feature is ready to use. This patch also changes the 'dwarfnum' to 'offset' in register table, so the related functions are consistent wi

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-24 Thread Fu Wei
Hi Mark, On 25 January 2017 at 14:46, Fu Wei wrote: > Hi Mark, > > On 25 January 2017 at 01:24, Mark Rutland wrote: >> On Wed, Jan 18, 2017 at 09:25:32PM +0800, fu@linaro.org wrote: >>> From: Fu Wei >>> >>> The counter frequency detection call(arch_timer_detect_rate) combines two >>> ways t

Re: [patch] {1620} net: hns3: add dcb cap flag in init sequence

2017-01-24 Thread Yankejian (Hackim Yim)
it is misoperation, please ignore. sorry to interrupt you! On 2017/1/25 15:26, Kejian Yan wrote: > If enable DCB feature, we need to add the capacity, and the current > procedure cannot setting the dcb because of no capacity flag and every > ops interface will implement by the capicity flag is en

[patch] {1620} net: hns3: add dcb cap flag in init sequence

2017-01-24 Thread Kejian Yan
If enable DCB feature, we need to add the capacity, and the current procedure cannot setting the dcb because of no capacity flag and every ops interface will implement by the capicity flag is enable. Signed-off-by: Kejian Yan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 --

Re: [RFC PATCH] mm/hotplug: enable memory hotplug for non-lru movable pages

2017-01-24 Thread Yisheng Xie
hi, sorry to disturb, I will send another version to make a minor change about page_lock checking in scan_movable_pages. On 2017/1/25 11:25, Yisheng Xie wrote: > We had considered all of the non-lru pages as unmovable before > commit bda807d44454 ("mm: migrate: support non-lru movable page > migra

[RFC v2 PATCH] mm/hotplug: enable memory hotplug for non-lru movable pages

2017-01-24 Thread Yisheng Xie
We had considered all of the non-lru pages as unmovable before commit bda807d44454 ("mm: migrate: support non-lru movable page migration"). But now some of non-lru pages like zsmalloc, virtio-balloon pages also become movable. So we can offline such blocks by using non-lru page migration. This pat

Re: [PATCH 2/3] mm, oom: do not enfore OOM killer for __GFP_NOFAIL automatically

2017-01-24 Thread Hillf Danton
On Tuesday, January 24, 2017 8:41 PM Michal Hocko wrote: > On Fri 20-01-17 16:33:36, Hillf Danton wrote: > > > > On Tuesday, December 20, 2016 9:49 PM Michal Hocko wrote: > > > > > > @@ -1013,7 +1013,7 @@ bool out_of_memory(struct oom_control *oc) > > >* make sure exclude 0 mask - all other us

Re: [PATCH] memory: tegra: Add a missing 'of_node_put()' call

2017-01-24 Thread Thierry Reding
On Wed, Jan 04, 2017 at 08:13:24AM +0100, Christophe JAILLET wrote: > If 'of_find_device_by_node()' fails, an 'of_node_put()' call is missing in > the error handling path. > Fix it by reordering the code. > > While at it, remove some empty lines in a more or less similar construction > a few lines

Re: [RESEND PATCH 0/6] apalis-tk1: updates for v1.1 hw

2017-01-24 Thread Thierry Reding
On Tue, Jan 03, 2017 at 01:20:48PM +, Marcel Ziswiler wrote: > On Thu, 2016-11-24 at 02:04 +0100, mar...@ziswiler.com wrote: > > From: Marcel Ziswiler > > > > > > This series updates the device tree for the upcoming V1.1 HW samples. > > All changes are purely opportunistic meaning they fix s

Re: [PATCH] drm: tegra: shut up harmless warning on NOMMU

2017-01-24 Thread Thierry Reding
On Thu, Jan 19, 2017 at 04:09:47PM +0100, Arnd Bergmann wrote: > On Thursday, January 19, 2017 12:00:58 PM CET Thierry Reding wrote: > > On Thu, Jan 12, 2017 at 12:13:51PM +0100, Arnd Bergmann wrote: > > > The tegra DRM driver is almost ok without an MMU, but there > > > is one small warning that I

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-01-24 Thread Pratyush Anand
Hi Dave, On Wednesday 25 January 2017 11:59 AM, Dave Young wrote: Hi Pratyush On 01/25/17 at 10:14am, Pratyush Anand wrote: Currently all the p_paddr of PT_LOAD headers are assigned to 0, which is not true and could be misleading, since 0 is a valid physical address. I do not know the history

Re: [PATCH] nvdimm: constify device_type structures

2017-01-24 Thread Julia Lawall
On Tue, 24 Jan 2017, Joe Perches wrote: > On Tue, 2017-01-24 at 18:40 -0800, Dan Williams wrote: > > On Tue, Jan 24, 2017 at 6:37 PM, Joe Perches wrote: > > > On Wed, 2017-01-25 at 00:54 +0530, Bhumika Goyal wrote: > > > > Declare device_type structure as const as it is only stored in the > > >

Re: [PATCH 2/2] m68k: replaced gcc specific macros with ones from compiler.h

2017-01-24 Thread kbuild test robot
Hi Gideon, [auto build test ERROR on m68k/for-next] [also build test ERROR on v4.10-rc5 next-20170124] [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/Gideon-Israel-Dsouza/compiler-gcc-h-Added

Re: [PATCH v20 08/17] clocksource/drivers/arm_arch_timer: Rework counter frequency detection.

2017-01-24 Thread Fu Wei
Hi Mark, On 25 January 2017 at 01:24, Mark Rutland wrote: > On Wed, Jan 18, 2017 at 09:25:32PM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> The counter frequency detection call(arch_timer_detect_rate) combines two >> ways to get counter frequency: system coprocessor register and MMIO ti

[GIT PULL] extcon next for v4.11

2017-01-24 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v4.11. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit a121103c922847ba5010819a3f250f1f7fc84ab8: Linux 4.10-rc3 (2017-01-08 14:18:

Re: [1/6] apalis-tk1: remove spurious new lines

2017-01-24 Thread Thierry Reding
On Tue, Nov 22, 2016 at 01:14:02AM +0100, Marcel Ziswiler wrote: > Remove some spurious new lines. > > Signed-off-by: Marcel Ziswiler > --- For some reason I can't find any trace of this series in my inbox. It's not even been classified as spam, it's just not there. So I had to pull this from pa

Re: [PATCH] procfs: change the owner of non-dumpable and writeable files

2017-01-24 Thread Aleksa Sarai
AKA it should be this fix that removes the need for your dumpable setting. bfedb589252c ("mm: Add a user_ns owner to mm_struct and fix ptrace permission checks") I will check, though from what I recall that patch doesn't fix the ptrace_may_access checks. Not to mention it won't help if the cont

Re: [RFC PATCH v1 3/6] kernel-doc: add kerneldoc-lint command

2017-01-24 Thread Daniel Vetter
On Tue, Jan 24, 2017 at 08:52:41PM +0100, Markus Heiser wrote: > this patch adds a command to lint kernel-doc comments.:: > > scripts/kerneldoc-lint --help > > The lint check include (only) kernel-doc rules described at [1]. It > does not check against reST (sphinx-doc) markup used in the kerne

Re: [RFC PATCH v1 2/6] kernel-doc: replace kernel-doc perl parser with a pure python one (WIP)

2017-01-24 Thread Daniel Vetter
On Tue, Jan 24, 2017 at 05:13:14PM -0700, Jonathan Corbet wrote: > On Tue, 24 Jan 2017 20:52:40 +0100 > Markus Heiser wrote: > > > This patch is the initial merge of a pure python implementation > > to parse kernel-doc comments and generate reST from. > > > > It consist mainly of to parts, the p

Re: [PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-01-24 Thread Dave Young
Hi Pratyush On 01/25/17 at 10:14am, Pratyush Anand wrote: > Currently all the p_paddr of PT_LOAD headers are assigned to 0, which is > not true and could be misleading, since 0 is a valid physical address. I do not know the history of /proc/kcore, so a question is why the p_addr was set as 0, if t

Re: [PATCH v6 2/3] dmaeninge: xilinx_dma: Fix bug in multiple frame stores scenario in vdma

2017-01-24 Thread Vinod Koul
On Sat, Jan 14, 2017 at 11:05:54AM +0530, Kedareswara rao Appana wrote: > When VDMA is configured for more than one frame in the h/w. > For example h/w is configured for n number of frames, user > Submits n number of frames and triggered the DMA using issue_pending API. > > In the current driver f

Re: [PATCH] ARM: dts: Odroid XU4: fix USB3.0 ports

2017-01-24 Thread Anand Moon
Hi Richard, On 24 January 2017 at 19:18, Richard Genoud wrote: > Since commit 2164a476205ccc ("usb: dwc3: set SUSPHY bit for all cores"), > the USB ports on odroid-XU4 don't work anymore. > > Inserting an usb key (USB2.0) on the USB3.0 port result in: > [ 64.488264] xhci-hcd xhci-hcd.2.auto: Po

linux-next: Tree for Jan 25

2017-01-24 Thread Stephen Rothwell
Hi all, There will be no linux-next release until Monday (next-20170130). Changes since 20170124: New tree: extable The drm tree still had its build failure so I used the version from next-20170123. The userns tree gained a conflict against the selinux tree. The kselftest tree gained a

IOAT 4.0 driver not supported on Intel 5000 chipset

2017-01-24 Thread Anshuman Khandual
Hello Vinod/Dave, I have an old X86 system with 'Intel(R) Xeon(R) CPU X5450' which has '5000 Series Chipset'. The latest mainline IOAT driver does not work on it. Dont see /sys/class/dma getting filled up with channel details even if I manually load both dca.ko followed by ioatdma.ko drivers after

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Minchan Kim
On Wed, Jan 25, 2017 at 02:38:49PM +0900, Sergey Senozhatsky wrote: > On (01/25/17 13:51), Minchan Kim wrote: > [..] > > > Minchan, zhouxianrong, I was completely wrong. we can't > > > do memset(). d'oh, I did not know it truncates 4 bytes to > > > one byte only (doesn't make too much sense to me).

Re: [PATCH 31/37] misc: Add host side pci driver for pci test function device

2017-01-24 Thread Kishon Vijay Abraham I
Hi, On Tuesday 24 January 2017 09:32 PM, Christoph Hellwig wrote: > On Thu, Jan 12, 2017 at 03:56:20PM +0530, Kishon Vijay Abraham I wrote: >> Add PCI endpoint test driver that can verify base address >> register, legacy interrupt/MSI interrupt and read/write/copy >> buffers between host and devic

[PATCH net-next] r8152: fix the wrong spelling

2017-01-24 Thread Hayes Wang
Replace rumtime with runtime. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index f3b48ad..d59d773 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c

Re: [PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-24 Thread John Crispin
On 25/01/2017 04:38, Guochun Mao wrote: > Add "mediatek,mt2701-nor" for nor flash node's compatible. > > Signed-off-by: Guochun Mao > --- > .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devic

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Sergey Senozhatsky
On (01/25/17 13:51), Minchan Kim wrote: [..] > > Minchan, zhouxianrong, I was completely wrong. we can't > > do memset(). d'oh, I did not know it truncates 4 bytes to > > one byte only (doesn't make too much sense to me). > > Now, I read Matthew's comment and understood. Thanks. > It means zhouxia

Re: v4.10-rc4 to v4.10-rc5: battery regression on Nokia N900

2017-01-24 Thread Zhang Rui
On Tue, 2017-01-24 at 21:07 -0200, Fabio Estevam wrote: > On Tue, Jan 24, 2017 at 8:46 PM, Pavel Machek wrote: > > > > > It is an ugly regression and it is -rc5 time. Actually not your > > problem, but Fabio Estevam or Zhang Rui has to deal with it soon. > I have already sent the revert and it w

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-24 Thread Lu Baolu
Hi Ingo, On 01/24/2017 04:20 PM, Ingo Molnar wrote: > * Lu Baolu wrote: > >> Hi Ingo, >> >> On 01/22/2017 05:04 PM, Ingo Molnar wrote: >>> * Lu Baolu wrote: >>> >> +static void xdbc_runtime_delay(unsigned long count) >> +{ >> +udelay(count); >> +} >> +static void (*xd

[PATCH] ARM: dts: imx53-qsb-common: fix FEC pinmux config

2017-01-24 Thread linux-kernel-dev
From: Patrick Bruenn The pinmux configuration in device tree was different from manual muxing in /board/freescale/mx53loco/mx53loco.c All pins were configured as NO_PAD_CTL(1 << 31), which was fine as the bootloader already did the correct pinmuxing for us. But recently u-boot is migrating to reu

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

2017-01-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got a conflict in: fs/proc/base.c between commit: 68eb94f16227 ("proc: Better ownership of files for non-dumpable tasks in user namespaces") from the userns tree and commit: d15d29b5352f ("procfs: change the owner of non-dumpabl

Re: [PATCH net 1/4] r8152: avoid start_xmit to call napi_schedule during autosuspend

2017-01-24 Thread Stephen Hemminger
On Wed, 25 Jan 2017 10:50:51 +0800 Hayes Wang wrote: > Adjust the setting of the flag of SELECTIVE_SUSPEND to prevent start_xmit() > from calling napi_schedule() directly during runtime suspend. > > After calling napi_disable() or clearing the flag of WORK_ENABLE, > scheduling the napi is useles

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

2017-01-24 Thread Stephen Rothwell
Hi Lee, After merging the mfd tree, today's linux-next build (powerpc allyesconfig) produced this warning: drivers/pwm/pwm-stm32.c: In function 'stm32_pwm_apply': drivers/pwm/pwm-stm32.c:204:33: warning: 'curstate.polarity' may be used uninitialized in this function [-Wmaybe-uninitialized] if

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Minchan Kim
On Wed, Jan 25, 2017 at 01:18:58PM +0900, Sergey Senozhatsky wrote: > On (01/24/17 18:48), Matthew Wilcox wrote: > > On Wed, Jan 25, 2017 at 10:32:44AM +0900, Sergey Senozhatsky wrote: > > > Hello, > > > > > > On (01/25/17 10:29), Minchan Kim wrote: > > > [..] > > > > > the result as listed below:

Re: [PATCH 1/2] compiler-gcc.h: Added new macro for gcc attribute

2017-01-24 Thread Gideon D'souza
>#define __mode(x) __attribute__((mode(x))) Well that's embarrassing. I so sorry for the trouble guys :( I'll resend this. On Wed, Jan 25, 2017 at 7:20 AM, Joe Perches wrote: > On Tue, 2017-01-24 at 17:44 +0530, Gideon Israel Dsouza wrote: >> Added __mode(x) into compiler-gcc.h as part of a

[PATCH] /proc/kcore: Update physical address for kcore ram and text

2017-01-24 Thread Pratyush Anand
Currently all the p_paddr of PT_LOAD headers are assigned to 0, which is not true and could be misleading, since 0 is a valid physical address. User space tools like makedumpfile needs to know physical address for PT_LOAD segments of direct mapped regions. Therefore this patch updates paddr for su

[PATCH] nsproxy: Reuse already available put_nsproxy helper function.

2017-01-24 Thread Parav Pandit
This patch makes use of already available put_nsproxy() helper function which already perform atomic check and conditional free. It also remove braces in put_nsproxy() for single line conditional statement. Minor fixes for trailing white space, 80 characters etc warnings reported by checkpatch.pl.

[Bug fix]mips 64bits checksum error -- csum_tcpudp_nofold

2017-01-24 Thread Mark Zhang
If the input parameters as saddr = 0xc0a8fd60,daddr = 0xc0a8fda1,len = 80, proto = 17, sum =0x7eae049d. The correct result should be 1, but original function return 0. Attached the correction patch. 0001-Fixed-the-mips-64bits-checksum-error-csum_tcpudp_nof.patch Description: Binary data

Re: [lkp-robot] [mm, vmscan] 5e56dfbd83: fsmark.files_per_sec -11.1% regression

2017-01-24 Thread Ye Xiaolong
On 01/24, Michal Hocko wrote: >On Mon 23-01-17 09:26:44, kernel test robot wrote: >> >> Greeting, >> >> FYI, we noticed a -11.1% regression of fsmark.files_per_sec due to commit: >> >> >> commit: 5e56dfbd837421b7fa3c6c06018c6701e2704917 ("mm, vmscan: consider >> eligible zones in get_scan_coun

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Sergey Senozhatsky
On (01/24/17 18:48), Matthew Wilcox wrote: > On Wed, Jan 25, 2017 at 10:32:44AM +0900, Sergey Senozhatsky wrote: > > Hello, > > > > On (01/25/17 10:29), Minchan Kim wrote: > > [..] > > > > the result as listed below: > > > > > > > > zeropattern_char pattern_short pattern_int pattern_lon

linux-next: manual merge of the userns tree with the selinux tree

2017-01-24 Thread Stephen Rothwell
Hi Eric, Today's linux-next merge of the userns tree got a conflict in: security/selinux/hooks.c between commit: be0554c9bf9f ("selinux: clean up cred usage and simplify") from the selinux tree and commit: 9227dd2a84a7 ("exec: Remove LSM_UNSAFE_PTRACE_CAP") from the userns tree. I fix

[PATCH v2 3/3] docs/zh_CN: Add coding-style into docs build system

2017-01-24 Thread Andy Deng
Tested by the command: make htmldocs During the compiling process, zh_CN/coding-style.rst has no errors and warnings generated, the generated html document has been checked. Signed-off-by: Andy Deng --- Documentation/index.rst | 10 +- .../trans

[PATCH v2 1/3] zh_CN/CodingStyle: improve translation

2017-01-24 Thread Andy Deng
Some of the sentences in Chapters 19 and 20 are re-translated: - Fixed translation errors in Section 2 of Chapter 19 to prevent misleading readers; - Retranslate some sentences to make the translation more clear and accurate. Signed-off-by: Andy Deng --- Documentation/translations/zh_CN/Cod

Re: [PATCH v2] virtio_net: fix PAGE_SIZE > 64k

2017-01-24 Thread Alexei Starovoitov
On Tue, Jan 24, 2017 at 7:48 PM, John Fastabend wrote: > > It is a concern on my side. I want XDP and Linux stack to work > reasonably well together. btw the micro benchmarks showed that page per packet approach that xdp took in mlx4 should be 10% slower vs normal operation for tcp/ip stack. We t

linux-next: manual merge of the kselftest tree with the net-next tree

2017-01-24 Thread Stephen Rothwell
Hi Shuah, Today's linux-next merge of the kselftest tree got a conflict in: tools/testing/selftests/bpf/Makefile between commit: 62b64660262a ("bpf: add prog tag test case to bpf selftests") from the net-next tree and commit: 88baa78d1f31 ("selftests: remove duplicated all and clean tar

Re: [PATCH v4 0/2] Add further ioctl() operations for namespace discovery

2017-01-24 Thread Michael Kerrisk (man-pages)
Hi Eric, On 25 January 2017 at 15:28, Eric W. Biederman wrote: > ebied...@xmission.com (Eric W. Biederman) writes: > >> "Michael Kerrisk (man-pages)" writes: >> >>> Hi Eric, >>> >>> On 25 January 2017 at 14:58, Eric W. Biederman >>> wrote: "Michael Kerrisk (man-pages)" writes: >

Re: [PATCH v2] virtio_net: fix PAGE_SIZE > 64k

2017-01-24 Thread John Fastabend
On 17-01-24 01:56 PM, Michael S. Tsirkin wrote: > On Tue, Jan 24, 2017 at 04:10:46PM -0500, David Miller wrote: >> This works in the regimen that XDP packets always live in exactly one >> page. That will be needed to mmap the RX ring into userspace, and it >> helps make adjust_header trivial as we

[PATCH v2 0/2] addr nor flash node for mt2701

2017-01-24 Thread Guochun Mao
Update DT bindings, clarify compatible strings that mt2701-nor node should contain. This patch series based on v4.10-rc2, include MT2701 spi nor node. Dependent on "Add clock and power domain DT nodes for Mediatek MT2701" [1] http://lists.infradead.org/pipermail/linux-mediatek/2016-December/0076

[PATCH v2 1/2] Documentation: mtk-quadspi: update DT bindings

2017-01-24 Thread Guochun Mao
Add "mediatek,mt2701-nor" for nor flash node's compatible. Signed-off-by: Guochun Mao --- .../devicetree/bindings/mtd/mtk-quadspi.txt|8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/mtk-quadspi.txt b/Documentation/device

[PATCH v2 2/2] arm: dts: mt2701: add nor flash node

2017-01-24 Thread Guochun Mao
Add Mediatek nor flash node. Signed-off-by: Guochun Mao --- arch/arm/boot/dts/mt2701-evb.dts | 25 + arch/arm/boot/dts/mt2701.dtsi| 12 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts

[RFC PATCH] mm/hotplug: enable memory hotplug for non-lru movable pages

2017-01-24 Thread Yisheng Xie
We had considered all of the non-lru pages as unmovable before commit bda807d44454 ("mm: migrate: support non-lru movable page migration"). But now some of non-lru pages like zsmalloc, virtio-balloon pages also become movable. So we can offline such blocks by using non-lru page migration. This pat

Re: [PATCH 07/12] mm: convert try_to_unmap_one() to page_check_walk()

2017-01-24 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.10-rc5 next-20170124] [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/Kirill-A-Shutemov/Fix-few-rmap-related-THP

Re: [PATCH RFC 2/3] mm, vmscan: limit kswapd loop if no progress is made

2017-01-24 Thread hejianet
On 25/01/2017 12:54 AM, Michal Hocko wrote: On Tue 24-01-17 15:49:03, Jia He wrote: Currently there is no hard limitation for kswapd retry times if no progress is made. Yes, because the main objective of the kswapd is to balance all memory zones. So having a hard limit on retries doesn't mak

[PATCH 1/2] f2fs: fix to avoid overflow when left shifting page offset

2017-01-24 Thread Chao Yu
We use following method to calculate size with current page index: size = index << PAGE_SHIFT If type of index has only 32-bits size, left shifting will incur overflow, which makes result incorrect. So let's cast index with 64-bits type to avoid such issue. Signed-off-by: Chao Yu --- fs/f2fs/re

[PATCH 2/2] f2fs: fix null pointer dereference when issuing flush in ->fsync

2017-01-24 Thread Chao Yu
We only allocate flush merge control structure sbi::sm_info::fcc_info when flush_merge option is on, but in f2fs_issue_flush we still try to access member of the control structure without that option, it incurs panic as show below, fix it. Call Trace: __remove_ino_entry+0xa9/0xc0 [f2fs] f2fs_do_

[PATCH net 0/4] r8152: fix scheduling napi

2017-01-24 Thread Hayes Wang
Scheduling the napi during the following periods would let it be ignored. And the events wouldn't be handled until next napi_schedule() is called. 1. after napi_disable and before napi_enable(). 2. after all actions of napi function is completed and before calling napi_complete(). If no next n

[PATCH net 3/4] r8152: re-schedule napi for tx

2017-01-24 Thread Hayes Wang
Re-schedule napi after napi_complete() for tx, if it is necessay. In r8152_poll(), if the tx is completed after tx_bottom() and before napi_complete(), the scheduling of napi would be lost. Then, no one handles the next tx until the next napi_schedule() is called. Signed-off-by: Hayes Wang ---

[PATCH net 2/4] r8152: avoid start_xmit to schedule napi when napi is disabled

2017-01-24 Thread Hayes Wang
Stop the tx when the napi is disabled to prevent napi_schedule() is called. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 27b0b44..3454238 100644 --- a/driv

[PATCH net 4/4] r8152: check rx after napi is enabled

2017-01-24 Thread Hayes Wang
Schedule the napi after napi_enable() for rx, if it is necessary. If the rx is completed when napi is disabled, the sheduling of napi would be lost. Then, no one handles the rx packet until next napi is scheduled. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 7 ++- 1 file changed

[PATCH net 1/4] r8152: avoid start_xmit to call napi_schedule during autosuspend

2017-01-24 Thread Hayes Wang
Adjust the setting of the flag of SELECTIVE_SUSPEND to prevent start_xmit() from calling napi_schedule() directly during runtime suspend. After calling napi_disable() or clearing the flag of WORK_ENABLE, scheduling the napi is useless. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 8 +

Re: [PATCH] nvdimm: constify device_type structures

2017-01-24 Thread Joe Perches
On Tue, 2017-01-24 at 18:40 -0800, Dan Williams wrote: > On Tue, Jan 24, 2017 at 6:37 PM, Joe Perches wrote: > > On Wed, 2017-01-25 at 00:54 +0530, Bhumika Goyal wrote: > > > Declare device_type structure as const as it is only stored in the > > > type field of a device structure. This field is of

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Matthew Wilcox
On Wed, Jan 25, 2017 at 10:32:44AM +0900, Sergey Senozhatsky wrote: > Hello, > > On (01/25/17 10:29), Minchan Kim wrote: > [..] > > > the result as listed below: > > > > > > zeropattern_char pattern_short pattern_int pattern_long total > > > (unit) > > > 162989 14454 3

[PATCH v6 2/3] MAINTAINERS: add zx2967 watchdog controller driver to ARM ZTE architecture

2017-01-24 Thread Baoyou Xie
Add the zx2967 watchdog controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index edfdea3..275c434 100644 --- a/MAINTAINERS

[PATCH v6 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-01-24 Thread Baoyou Xie
This patch adds watchdog controller driver for ZTE's zx2967 family. Signed-off-by: Baoyou Xie --- drivers/watchdog/Kconfig | 10 ++ drivers/watchdog/Makefile | 1 + drivers/watchdog/zx2967_wdt.c | 276 ++ 3 files changed, 287 insertions(+) cre

[PATCH v6 1/3] dt: bindings: add documentation for zx2967 family watchdog controller

2017-01-24 Thread Baoyou Xie
This patch adds dt-binding documentation for zx2967 family watchdog controller. Signed-off-by: Baoyou Xie Acked-by: Rob Herring --- .../bindings/watchdog/zte,zx2967-wdt.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bind

[PATCH RT] Align rt_mutex inlining with upstream behavior

2017-01-24 Thread Alex Goins
mutex_destroy is no-op inline when DEBUG_MUTEX is not enabled. The RT Linux patches replace mutex_destroy() with rt_mutex_destroy(). This patch aligns rt_mutex_destroy() with mutex_destroy() by using the same no-op inline technique. Signed-off-by: Alex Goins Reviewed-by: Andy Ritger --- include

Re: [PATCH v5 3/3] watchdog: zx2967: add watchdog controller driver for ZTE's zx2967 family

2017-01-24 Thread Guenter Roeck
On 01/24/2017 06:16 PM, Baoyou Xie wrote: [ ... ] + + ret = of_parse_phandle_with_fixed_args(dev->of_node, + "zte,wdt-reset-sysctrl", 3, 0, &out_args); + if (ret) + return; + + offset

Re: [PATCH] nvdimm: constify device_type structures

2017-01-24 Thread Dan Williams
On Tue, Jan 24, 2017 at 6:37 PM, Joe Perches wrote: > On Wed, 2017-01-25 at 00:54 +0530, Bhumika Goyal wrote: >> Declare device_type structure as const as it is only stored in the >> type field of a device structure. This field is of type const, so add >> const to declaration of device_type struct

Re: [PATCH v3 19/24] media: imx: Add IC subdev drivers

2017-01-24 Thread Steve Longerbeam
On 01/20/2017 06:29 AM, Hans Verkuil wrote: On 01/07/2017 03:11 AM, Steve Longerbeam wrote: + +static const struct v4l2_ctrl_config prpenc_std_ctrl[] = { + { + .id = V4L2_CID_HFLIP, + .name = "Horizontal Flip", + .type = V4L2_CTRL_TYPE_BOOLEAN, +

Re: [PATCH] nvdimm: constify device_type structures

2017-01-24 Thread Joe Perches
On Wed, 2017-01-25 at 00:54 +0530, Bhumika Goyal wrote: > Declare device_type structure as const as it is only stored in the > type field of a device structure. This field is of type const, so add > const to declaration of device_type structure. > > File size before: > text data bs

Re: [PATCH v4 0/2] Add further ioctl() operations for namespace discovery

2017-01-24 Thread Eric W. Biederman
ebied...@xmission.com (Eric W. Biederman) writes: > "Michael Kerrisk (man-pages)" writes: > >> Hi Eric, >> >> On 25 January 2017 at 14:58, Eric W. Biederman wrote: >>> "Michael Kerrisk (man-pages)" writes: >>> I would like to write code that discovers the namespace setup on a live sys

Re: [PATCH v4 0/2] Add further ioctl() operations for namespace discovery

2017-01-24 Thread Michael Kerrisk (man-pages)
Hi Eric, On 25 January 2017 at 14:58, Eric W. Biederman wrote: > "Michael Kerrisk (man-pages)" writes: > >> I would like to write code that discovers the namespace setup on a live >> system. The NS_GET_PARENT and NS_GET_USERNS ioctl() operations added in >> Linux 4.9 provide much of what I want

Re: [PATCH v4 0/2] Add further ioctl() operations for namespace discovery

2017-01-24 Thread Eric W. Biederman
"Michael Kerrisk (man-pages)" writes: > Hi Eric, > > On 25 January 2017 at 14:58, Eric W. Biederman wrote: >> "Michael Kerrisk (man-pages)" writes: >> >>> I would like to write code that discovers the namespace setup on a live >>> system. The NS_GET_PARENT and NS_GET_USERNS ioctl() operations

Re: [igvt-g-dev] [PATCH] drm/i915/gvt: Fix kmem_cache_create() name

2017-01-24 Thread Zhenyu Wang
On 2017.01.24 13:15:43 -0700, Alex Williamson wrote: > According to kmem_cache_sanity_check(), spaces are not allowed in the > name of a cache and results in a kernel oops with CONFIG_DEBUG_VM. > Convert to underscores. > > Signed-off-by: Alex Williamson > --- Will send to 4.10 fixes. Thanks! >

Re: [igvt-g-dev] [PATCH] drm/i915/gvt/kvmgt: mdev ABI is available_instances, not available_instance

2017-01-24 Thread Zhenyu Wang
On 2017.01.24 12:53:45 -0700, Alex Williamson wrote: > Per the ABI specification[1], each mdev_supported_types entry should > have an available_instances, with an "s", not available_instance. > > [1] Documentation/ABI/testing/sysfs-bus-vfio-mdev > > Signed-off-by: Alex Williamson > --- > > This

Re: [PATCH RFC 3/3] mm, vmscan: correct prepare_kswapd_sleep return value

2017-01-24 Thread hejianet
On 25/01/2017 6:01 AM, Rik van Riel wrote: On Tue, 2017-01-24 at 15:49 +0800, Jia He wrote: When there is no reclaimable pages in the zone, even the zone is not balanced, we let kswapd go sleeping. That is prepare_kswapd_sleep will return true in this case. Signed-off-by: Jia He --- mm/vmsc

Re: [PATCH 1/2] staging: lustre: libcfs: use octal permissions

2017-01-24 Thread Joe Perches
On Tue, 2017-01-24 at 22:22 +, Dilger, Andreas wrote: > On Jan 24, 2017, at 09:40, Ernestas Kulik wrote: > > > > Using octal permissions instead of symbolic ones is preferred. > > Typically the reverse is true - using symbolic constants is preferred over > numeric ones. > Where does this re

Re: [PATCHv2 perf/core 5/7] tools lib bpf: Add bpf_program__pin()

2017-01-24 Thread Wangnan (F)
On 2017/1/25 9:16, Joe Stringer wrote: On 24 January 2017 at 17:06, Wangnan (F) wrote: On 2017/1/25 9:04, Wangnan (F) wrote: On 2017/1/23 9:11, Joe Stringer wrote: Add a new API to pin a BPF program to the filesystem. The user can specify the path full path within a BPF filesystem to pin

Re: [PATCH RFC 0/3] optimize kswapd when it does reclaim for hugepage

2017-01-24 Thread hejianet
Hi Michal Thanks for the comments, I will resend the patch as per your comment after my 2 weeks vacation. B.R. Jia On 25/01/2017 12:46 AM, Michal Hocko wrote: On Tue 24-01-17 15:49:01, Jia He wrote: If there is a server with uneven numa memory layout: available: 7 nodes (0-6) node 0 cpus: 0 1

Re: [PATCH v3 13/24] platform: add video-multiplexer subdevice driver

2017-01-24 Thread Steve Longerbeam
On 01/24/2017 04:02 AM, Philipp Zabel wrote: Hi Hans, On Fri, 2017-01-20 at 15:03 +0100, Hans Verkuil wrote: + +int vidsw_g_mbus_config(struct v4l2_subdev *sd, struct v4l2_mbus_config *cfg) +{ + struct vidsw *vidsw = v4l2_subdev_to_vidsw(sd); + struct media_pad *pad; + int

Re: [PATCH v4 0/2] Add further ioctl() operations for namespace discovery

2017-01-24 Thread Eric W. Biederman
"Michael Kerrisk (man-pages)" writes: > I would like to write code that discovers the namespace setup on a live > system. The NS_GET_PARENT and NS_GET_USERNS ioctl() operations added in > Linux 4.9 provide much of what I want, but there are still a couple of > small pieces missing. Those pieces

Re: [PATCH net-next v6 2/4] net: dsa: mv88e6xxx: Add support for ethernet switch 88E6341

2017-01-24 Thread Andrew Lunn
> + [MV88E6341] = { > + .prod_num = PORT_SWITCH_ID_PROD_NUM_6341, > + .family = MV88E6XXX_FAMILY_6341, > + .name = "Marvell 88E6341", > + .num_databases = 4096, > + .num_ports = 6, > + .port_base_addr = 0x10, > +

Re: [PATCH 3/4] mm, page_alloc: Drain per-cpu pages from workqueue context

2017-01-24 Thread Tejun Heo
Hello, On Tue, Jan 24, 2017 at 11:54:57PM +, Mel Gorman wrote: > @@ -2402,24 +2415,16 @@ void drain_all_pages(struct zone *zone) > cpumask_clear_cpu(cpu, &cpus_with_pcps); > } > > + for_each_cpu(cpu, &cpus_with_pcps) { > + struct work_struct *work

Re: [PATCH 06/12] mm: convert page_mkclean_one() to page_check_walk()

2017-01-24 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.10-rc5 next-20170124] [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/Kirill-A-Shutemov/Fix-few-rmap-related-THP

Re: [PATCH 02/12] mm: introduce page_check_walk()

2017-01-24 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.10-rc5 next-20170124] [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/Kirill-A-Shutemov/Fix-few-rmap-related-THP

Re: [PATCH] drm/i915/gvt/kvmgt: mdev ABI is available_instances, not available_instance

2017-01-24 Thread Jike Song
On 01/25/2017 03:53 AM, Alex Williamson wrote: > Per the ABI specification[1], each mdev_supported_types entry should > have an available_instances, with an "s", not available_instance. > > [1] Documentation/ABI/testing/sysfs-bus-vfio-mdev > > Signed-off-by: Alex Williamson > --- > > This shoul

Re: [PATCH 1/2] compiler-gcc.h: Added new macro for gcc attribute

2017-01-24 Thread Joe Perches
On Tue, 2017-01-24 at 17:44 +0530, Gideon Israel Dsouza wrote: > Added __mode(x) into compiler-gcc.h as part of a cleanup task I've > taken up, to replace gcc specific attributes with macros. > > Last accepted patch I sent into linux-next for crypto: d8c34b949d8c: > crypto: Replaced gcc specific a

Re: [PATCH 12/12] mm: convert remove_migration_pte() to page_check_walk()

2017-01-24 Thread kbuild test robot
Hi Kirill, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.10-rc5 next-20170124] [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/Kirill-A-Shutemov/Fix-few-rmap-related

Re: seccomp: dump core when using SECCOMP_RET_KILL

2017-01-24 Thread Mike Frysinger
thank for the testcase. i'll take a look. when i went through the code visually, i didn't think it was killing, just suspending+resuming for the sake of snapshotting, but i must have misread. -mike On Tue, Jan 24, 2017 at 2:53 PM, Andrei Vagin wrote: > Hi, > > One of CRIU tests fails with this

Re: [PATCH 06/12] mm: convert page_mkclean_one() to page_check_walk()

2017-01-24 Thread kbuild test robot
Hi Kirill, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.10-rc5 next-20170124] [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/Kirill-A-Shutemov/Fix-few-rmap-related-THP

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-24 Thread Sergey Senozhatsky
Hello, On (01/25/17 10:29), Minchan Kim wrote: [..] > > the result as listed below: > > > > zeropattern_char pattern_short pattern_int pattern_long total > >(unit) > > 162989 14454 353423516 2769 3294399 > >(page) > > > > so, int co

  1   2   3   4   5   6   7   8   9   >