[lkp-robot] [x86/fixmap] db49bdebb1: BUG:unable_to_handle_kernel

2017-12-17 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: db49bdebb1f313fae0c264fe28751cb1a5a49800 ("x86/fixmap: Add debugstore entries to cpu_entry_area") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git WIP.x86/pti-upstream in testcase: boot on test machine: qemu-system-x86_64

Re: [PATCH v7 0/6] dmaengine: xilinx_dma: Bug fixes

2017-12-17 Thread Vinod Koul
On Thu, Dec 07, 2017 at 10:51:01AM +0530, Kedareswara rao Appana wrote: > This patch series fixes below bugs in DMA and VDMA IP's > ---> Added channel idle checks in the driver before submitting the buffer > descriptor to h/w. > ---> Fixes bug in Multi frame sotres handling in VDMA > ---> Fixes is

RE: [PATCH v2 6/6] phy: renesas: rcar-gen3-usb2: add gpio handling

2017-12-17 Thread Yoshihiro Shimoda
Hi Rob, Thank you for your comments! > -Original Message- > From: Rob Herring, Sent: Sunday, December 17, 2017 3:05 AM > > On Fri, Dec 15, 2017 at 02:45:26PM +0900, Yoshihiro Shimoda wrote: > > Some R-Car SoCs (e.g. R-Car D3) doesn't have dedicated pins of VBUS > > and ID. So, they may b

Re: arm64 crashkernel fails to boot on acpi-only machines due to ACPI regions being no longer mapped as NOMAP

2017-12-17 Thread Dave Young
kexec@fedoraproject... is for Fedora kexec scripts discussion, changed it to ke...@lists.infradead.org Also add linux-acpi list On 12/18/17 at 02:31am, Bhupesh Sharma wrote: > On Fri, Dec 15, 2017 at 3:05 PM, Ard Biesheuvel > wrote: > > On 15 December 2017 at 09:59, AKASHI Takahiro > > wrote: >

[PATCH v5 0/3] Make input drivers y2038 safe

2017-12-17 Thread Deepa Dinamani
The series is aimed at making input events y2038 safe. It extends the lifetime of the realtime timestamps in the events to year 2106. The series is also a necessary update as glibc is set to provide 64 bit time_t support for 32 bit binaries. glibc plan is detailed at https://sourceware.org/glibc/wi

Re: [PATCH 4.13 03/28] Bluetooth: btusb: fix QCA Rome suspend/resume

2017-12-17 Thread Kai Heng Feng
Hi, > On 16 Dec 2017, at 11:05 AM, Matthias Kaehlcke wrote: > stable branches are currently broken for BTUSB_QCA_ROME with USB > autosuspend enabled, since the above patch is not included (I only > checked v4.4 and v4.9), so we probably want to integrate it. Thanks for this information. I just

[PATCH v5 2/3] input: evdev: Replace timeval with timespec64

2017-12-17 Thread Deepa Dinamani
struct timeval is not y2038 safe. All references to timeval in the kernel will be replaced by y2038 safe structures. Replace all references to timeval with y2038 safe struct timespec64 here. struct input_event will be changed in a different patch. Signed-off-by: Deepa Dinamani Reviewed-by: Arnd

[PATCH v5 1/3] uinput: Use monotonic times for uinput timestamps.

2017-12-17 Thread Deepa Dinamani
struct timeval which is part of struct input_event to maintain the event times is not y2038 safe. Real time timestamps are also not ideal for input_event as this time can go backwards as noted in the patch a80b83b7b8 by John Stultz. The patch switches the timestamps to use monotonic time from rea

[PATCH v5 3/3] input: Deprecate real timestamps beyond year 2106

2017-12-17 Thread Deepa Dinamani
struct timeval is not y2038 safe. All usage of timeval in the kernel will be replaced by y2038 safe structures. The change is also necessary as glibc is introducing support for 32 bit applications to use 64 bit time_t. Without this change, many applications would incorrectly interpret values in the

Re: [PATCH v1] DMA:omap-dma:Avoid build error by changing the function name

2017-12-17 Thread Vinod Koul
On Tue, Dec 12, 2017 at 12:58:41PM +0530, venkat.prashanth2...@gmail.com wrote: > From: Venkat Prashanth B U > > Change the name of the function omap_dma_filter_fn to avoid > the following build error in linux kernel version 4.4 : > > drivers/dma/dma-omap.c:1273:6: error: > redefinition of 'omap

Re: [kernel-hardening] [PATCH 0/3] kallsyms: don't leak address

2017-12-17 Thread Michael Ellerman
"Tobin C. Harding" writes: > This set plugs a kernel address leak that occurs if kallsyms symbol > look up fails. This set was prompted by a leaking address found using > scripts/leaking_addresses.pl on a PowerPC machine in the wild. Any details on that? I haven't heard about it. cheers

[PATCH] perf report: Fix a no annotate browser displayed issue

2017-12-17 Thread Jin Yao
When enabling '-b' option in perf record, for example, perf record -b ... perf report and then browsing the annotate browser from perf report, it would be failed (annotate browser can't be displayed). It's because the '.add_entry_cb' op of struct report is overwritten by hist_iter__branch_callba

Re: [PATCH v8] arm64: dts: meson-axg: switch uart_ao clock to CLK81

2017-12-17 Thread kbuild test robot
Hi Yixun, Thank you for the patch! Yet something to improve: [auto build test ERROR on robh/for-next] [also build test ERROR on v4.15-rc4 next-20171215] [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/c

Re: [PATCH] On ppc64le we HAVE_RELIABLE_STACKTRACE

2017-12-17 Thread Nicholas Piggin
On Sun, 17 Dec 2017 20:58:54 -0600 Josh Poimboeuf wrote: > On Fri, Dec 15, 2017 at 07:40:09PM +1000, Nicholas Piggin wrote: > > On Tue, 12 Dec 2017 08:05:01 -0600 > > Josh Poimboeuf wrote: > > > > > On Tue, Dec 12, 2017 at 12:39:12PM +0100, Torsten Duwe wrote: > > > > Hi all, > > > > > > >

[tip:perf/core] perf report: Fix regression when decoding Intel-PT traces

2017-12-17 Thread tip-bot for Mathieu Poirier
Commit-ID: f785657b0fbe69fb3f5dfb0a7567cdb0777e57d1 Gitweb: https://git.kernel.org/tip/f785657b0fbe69fb3f5dfb0a7567cdb0777e57d1 Author: Mathieu Poirier AuthorDate: Thu, 14 Dec 2017 10:47:00 -0700 Committer: Ingo Molnar CommitDate: Mon, 18 Dec 2017 06:26:20 +0100 perf report: Fix regres

RE: [PATCH v4 2/2] misc: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP init driver

2017-12-17 Thread Dhaval Rajeshbhai Shah
Hi Randy, > -Original Message- > From: Randy Dunlap [mailto:rdun...@infradead.org] > Sent: Sunday, December 17, 2017 9:40 AM > To: Dhaval Rajeshbhai Shah ; a...@arndb.de; > gre...@linuxfoundation.org; robh...@kernel.org; mark.rutl...@arm.com > Cc: devicet...@vger.kernel.org; linux-kernel@v

Re: arm64 crashkernel fails to boot on acpi-only machines due to ACPI regions being no longer mapped as NOMAP

2017-12-17 Thread Dave Young
Fix the kexec list address. On 12/18/17 at 01:40pm, Dave Young wrote: > On 12/15/17 at 05:59pm, AKASHI Takahiro wrote: > > On Wed, Dec 13, 2017 at 12:17:22PM +, Ard Biesheuvel wrote: > > > On 13 December 2017 at 12:16, AKASHI Takahiro > > > wrote: > > > > On Wed, Dec 13, 2017 at 10:49:27AM +0

[PATCH] KVM/Eventfd: Avoid crash when assign and deassign same eventfd in parallel.

2017-12-17 Thread Lan Tianyu
Syzroot reports crash in kvm_irqfd_assign() is caused by use-after-free. Because kvm_irqfd_assign() and kvm_irqfd_deassign() can't run in parallel for same eventfd. When assign path hasn't been finished after irqfd has been added to kvm->irqfds.items list, another thead may deassign the eventfd and

Re: arm64 crashkernel fails to boot on acpi-only machines due to ACPI regions being no longer mapped as NOMAP

2017-12-17 Thread AKASHI Takahiro
On Mon, Dec 18, 2017 at 01:16:57PM +0800, Dave Young wrote: > kexec@fedoraproject... is for Fedora kexec scripts discussion, changed it > to ke...@lists.infradead.org > > Also add linux-acpi list Thank you. > On 12/18/17 at 02:31am, Bhupesh Sharma wrote: > > On Fri, Dec 15, 2017 at 3:05 PM, Ard

Re: [PATCH] leaking_addresses: add generic 32-bit support

2017-12-17 Thread Tobin C. Harding
On Mon, Dec 18, 2017 at 09:24:47AM +0530, kaiwan.billimo...@gmail.com wrote: > The script attempts to detect the architecture it's running upon; as of now, > we explicitly support x86_64, PPC64 and x86_32. > If it's one of them, we proceed "normally". If we fail to detect the arch, > we fallback to

[PATCH] net: qcom/emac: Change the order of mac up and sgmii open

2017-12-17 Thread Hemanth Puranik
This patch fixes the order of mac_up and sgmii_open for the reasons noted below: - If open takes more time(if the SGMII block is not responding or if we want to do some delay based task) in this situation we will hit NETDEV watchdog - The main reason : We should signal to upper layers that we

Re: [kernel-hardening] [PATCH 0/3] kallsyms: don't leak address

2017-12-17 Thread Tobin C. Harding
On Mon, Dec 18, 2017 at 04:31:25PM +1100, Michael Ellerman wrote: > "Tobin C. Harding" writes: > > > This set plugs a kernel address leak that occurs if kallsyms symbol > > look up fails. This set was prompted by a leaking address found using > > scripts/leaking_addresses.pl on a PowerPC machine

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-17 Thread Joe Perches
On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > I like the ability to add more checkers and keep then in the main > > > upstream tree. But adding overrides for specific subsystems goes against > > > the policy that all

Re: r8169 regression: UDP packets dropped intermittantly

2017-12-17 Thread Jonathan Woithe
Resend to netdev. LKML CCed in case anyone in the wider kernel community can suggest a way forward. Please CC responses if replying only to LKML. It seems that this 4+ year old regression in the r8169 driver (documented in this thread on netdev beginning on 9 March 2013) will never be fixed, des

[PATCH v2] virtio/ringtest: fix up need_event math

2017-12-17 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 --- Changes from v1: fix inverted logic in call_used tools/virtio/ringtest/ring.c | 24 +++

[PATCH v5 0/2] Documentation and driver of logicoreIP

2017-12-17 Thread Dhaval Shah
1st patch provide Device Tree binding document for logicoreIP 2nd patch provide the xlnx_vcu logicoreIP driver, Kconfig changes and Makefile changes for the driver. Dhaval Shah (2): Documentation: devicetree: Add DT bindings to xlnx_vcu driver misc: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP i

[PATCH v5 1/2] dt-bindings: misc: Add DT bindings to xlnx_vcu driver

2017-12-17 Thread Dhaval Shah
Add Device Tree binding document for logicoreIP. This logicoreIP provides the isolation between the processing system and programmable logic. Also provides the clock related information. Signed-off-by: Dhaval Shah --- Chnages since v5: No Changes. Chnages since v4: No Changes. Chnages since v3:

[PATCH v5 2/2] misc: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP init driver

2017-12-17 Thread Dhaval Shah
Xilinx ZYNQMP logicoreIP Init driver is based on the new LogiCoreIP design created. This driver provides the processing system and programmable logic isolation. Set the frequency based on the clock information get from the logicoreIP register set. It is put in drivers/misc as there is no subsystem

Re: [PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver

2017-12-17 Thread Sakari Ailus
Hi Wenyou, Wenyou Yang wrote: ... > +static int ov7740_start_streaming(struct ov7740 *ov7740) > +{ > + int ret; > + > + if (ov7740->fmt) { > + ret = regmap_multi_reg_write(ov7740->regmap, > + ov7740->fmt->regs, > +

Re: [PATCH 1/1] arm: sunxi: Add alternative pins for spi0

2017-12-17 Thread Stefan Mavrodiev
On 12/15/2017 05:08 PM, Maxime Ripard wrote: Hi, On Thu, Dec 14, 2017 at 08:24:54AM +0200, Stefan Mavrodiev wrote: On 12/13/2017 05:40 PM, Maxime Ripard wrote: Hi, On Wed, Dec 13, 2017 at 09:44:34AM +0200, Stefan Mavrodiev wrote: Allwinner A10/A13/A20 SoCs have pinmux for spi0 on port C. The

Re: BUG: unable to handle kernel NULL pointer dereference in __crypto_alg_lookup

2017-12-17 Thread Stephan Mueller
Am Montag, 18. Dezember 2017, 06:50:01 CET schrieb syzbot: Hi, > Hello, > > syzkaller hit the following crash on > 41d8c16909ebda40f7b4982a7f5e2ad102705ade > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw

[RESEND PATCH] perf tools: Fix compiling error in libunwind x86

2017-12-17 Thread Wang Nan
Fix a compiling error: ... CC util/libunwind/x86_32.o In file included from util/libunwind/x86_32.c:33:0: util/libunwind/../../arch/x86/util/unwind-libunwind.c: In function 'libunwind__x86_reg_id': util/libunwind/../../arch/x86/util/unwind-libunwind.c:110:11: error: 'EINVAL' undecla

linux-next: Tree for Dec 18

2017-12-17 Thread Stephen Rothwell
Hi all, Changes since 20171215: The staging.current tree lost its build failure. The tty tree gained a build failure so I used the version from next-20171215. The akpm-current tree gained a conflict against the tip tree. The akpm tree lost a couple of patches that turned up elsewhere. Non-mer

Re: KASAN: use-after-free Read in __list_del_entry_valid (2)

2017-12-17 Thread Stephan Mueller
Am Montag, 18. Dezember 2017, 06:50:01 CET schrieb syzbot: Hi, > Hello, > > syzkaller hit the following crash on > 82bcf1def3b5f1251177ad47c44f7e17af039b4b > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached.

Re: pxa3xx_nand times out in 4.14 with JFFS2

2017-12-17 Thread Willy Tarreau
Hi guys, On Sun, Dec 17, 2017 at 10:46:17PM +0100, Miquel RAYNAL wrote: > > Actually, if things go well it will only be applied to stable > > releases (I really hope we'll be able to switch to Miquel's driver in > > 4.16). BTW, if you have some time, maybe you can test Miquel's [1] > > branch and

Re: [PATCH 1/2] ARM: dts: sun8i: h3: nanopi-m1-plus: fix missing ethernet 0 in aliases

2017-12-17 Thread Maxime Ripard
Hi, On Fri, Dec 15, 2017 at 11:39:00PM +0100, Philipp Rossak wrote: > Signed-off-by: Philipp Rossak Please add a commit log here. -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com

Re: [PATCH V2 1/8] perf tools: remove stale perf evlist mmap read for backward

2017-12-17 Thread Wangnan (F)
On 2017/12/7 7:32, kan.li...@intel.com wrote: From: Kan Liang perf_evlist__mmap_read_catchup and perf_evlist__mmap_read_backward are only for overwrite mode. But they read the evlist->mmap buffer which is for non-overwrite mode. It did not bring any serious problem yet, because there is no o

RE: [PATCH v7 0/6] dmaengine: xilinx_dma: Bug fixes

2017-12-17 Thread Appana Durga Kedareswara Rao
Hi Vinod, > >On Thu, Dec 07, 2017 at 10:51:01AM +0530, Kedareswara rao Appana wrote: >> This patch series fixes below bugs in DMA and VDMA IP's >> ---> Added channel idle checks in the driver before submitting the buffer >descriptor to h/w. >> ---> Fixes bug in Multi frame sotres handling in VDMA

RE: [PATCH v7 1/6] dmaengine: xilinx_dma: Check for channel idle state before submitting dma descriptor

2017-12-17 Thread Appana Durga Kedareswara Rao
Hi, Thanks for the review... > >On Thu, Dec 07, 2017 at 10:51:02AM +0530, Kedareswara rao Appana wrote: > >> @@ -2029,6 +2006,7 @@ static int xilinx_dma_terminate_all(struct >> dma_chan *dchan) >> >> /* Remove and free all of the descriptors in the lists */ >> xilinx_dma_free_d

Re: [PATCH v6] mfd: syscon: Add hardware spinlock support

2017-12-17 Thread Baolin Wang
On 15 December 2017 at 21:13, Arnd Bergmann wrote: > On Fri, Dec 15, 2017 at 11:42 AM, Lee Jones wrote: > >>> @@ -87,6 +88,30 @@ static struct syscon *of_syscon_register(struct >>> device_node *np) >>> if (ret) >>> reg_io_width = 4; >>> >>> + ret = of_hwspin_lock_get_id(n

Re: [PATCH 1/2] x86/stacktrace: do not fail when regs on stack for ORC

2017-12-17 Thread Jiri Slaby
On 12/18/2017, 04:37 AM, Josh Poimboeuf wrote: > On Thu, Dec 14, 2017 at 10:58:35PM +0100, Jiri Slaby wrote: >>> return -EINVAL; >> >> Kthreads and idle tasks hit this error as they have no user regs on the >> stack obviously :). > > Doh, sorry, I forgot about that. FWIW and to be complete, a

Re: pxa3xx_nand times out in 4.14 with JFFS2

2017-12-17 Thread Willy Tarreau
On Mon, Dec 18, 2017 at 07:37:15AM +0100, Willy Tarreau wrote: > > As Boris said, we would really welcome a test of this branch, because > > you almost have the same setup as Sean in the thread "pxa3xx: wait time > > out when scanning for bb" and I am running out of explanation for his > > problem

Re: 995d11c4c0 ("drm: rework delayed connector cleanup in .."): WARNING: possible circular locking dependency detected

2017-12-17 Thread Daniel Vetter
Hm, the bisect looks funny. Only way I can explain that is that my patch fixed a pre-existing lockdep splat, and uncovered the issue in the ww-mutex self tests. That one is uncovered by the new cross-release lockdep checks in 4.15. Anyway I think this is an issue with the ww-mutex tests, not my pa

[PATCH v4 00/36] Andes(nds32) Linux Kernel

2017-12-17 Thread Greentime Hu
This is the 4th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v3 patchseries has been addressed. Thanks to everyone who provided feedback on the previous version. This patchset adds core architecture support to Linux for Andestech's N1

Re: [PATCH] kthread: finer-grained lockdep/cross-release completion

2017-12-17 Thread Daniel Vetter
On Mon, Dec 11, 2017 at 10:19:28AM +0100, Daniel Vetter wrote: > On Fri, Dec 08, 2017 at 11:54:19AM +0100, Peter Zijlstra wrote: > > On Thu, Dec 07, 2017 at 11:08:49AM +0100, Daniel Vetter wrote: > > > Since -rc1 we're hitting a bunch of lockdep splats using the new > > > cross-release stuff around

[PATCH v4 04/36] nds32: Kernel booting and initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the kernel startup code. It can get dtb pointer passed from bootloader. It will create a temp mapping by tlb instructions at beginning and goto start_kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/head.S | 189 +++

[PATCH v4 06/36] nds32: MMU definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes virtual memory layout, PHYS_OFFSET is defined as 0x0. It also includes the 4KB/8KB page size configurations and pte operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/fixmap.h | 29 +++ arch/nds32/include/a

[PATCH v4 02/36] earlycon: add reg-offset to physical address before mapping

2017-12-17 Thread Greentime Hu
From: Greentime Hu It will get the wrong virtual address because port->mapbase is not added the correct reg-offset yet. We have to update it before earlycon_map() is called Signed-off-by: Greentime Hu --- drivers/tty/serial/earlycon.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v4 08/36] nds32: MMU fault handling and page table management

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes page fault handler, mmap and fixup implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 37 arch/nds32/mm/extable.c| 16 ++ arch/nds32/mm/fault.c | 410 ++

[PATCH v4 10/36] nds32: Process management

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes copy_thread(), start_thread() implementation and cpu_context structure definition. nds32 uses $r25 to get current task_struct. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/current.h | 12 ++ arch/nds32/include/

[PATCH v4 18/36] nds32: Signal handling support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for signal handling. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 60 ++ arch/nds32/kernel/signal.c | 337 ++ 2 files changed, 397 insertions(+

[PATCH v4 14/36] nds32: DMA mapping API

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for the DMA mapping API. It uses dma_map_ops for flexibility. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 14 ++ arch/nds32/kernel/dma.c | 459 ++

[PATCH v4 16/36] nds32: System calls handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for system calls. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 188 ++ arch/nds32/include/asm/syscalls.h| 13 +++ arch/nds32/include/asm/unistd.h |6

[PATCH v4 25/36] nds32: Miscellaneous header files

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces some miscellaneous header files. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h | 38 +++ arch/nds32/include/asm/linkage.h| 11 + arch/nds32/include/ua

[PATCH v4 22/36] nds32: Loadable modules

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for loadable modules. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 11 ++ arch/nds32/kernel/module.c | 286 +++ 2 files changed, 297 insertions(+) create mo

[PATCH v4 20/36] nds32: Debugging support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds ptrace support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 25 +++ arch/nds32/kernel/ptrace.c | 311 ++ 2 files changed, 336 insertions(+) create mode 10064

Re: [lustre-devel] [PATCH 08/15] staging: lustre: Convert more LIBCFS_ALLOC allocation to direct GFP_KERNEL

2017-12-17 Thread NeilBrown
Sorry, it seems I mustn't have tested the file version of this patch. That "kvmalloc_node()" was clearly wrong. This version passes testing. Thanks, NeilBrown "git am" will ignore everything before this line: -8<- None of these need to be GFP_NOFS, so use GFP_KER

[PATCH v4 33/36] net: faraday add nds32 support.

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch is used to support nds32 architecture to use these faraday mac IP. Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/faraday/Kconfig b/drivers/net

[PATCH v4 31/36] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds an irqchip driver document for the Andestech Internal Vector Interrupt Controller. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../interrupt-controller/andestech,ativic32.txt| 19 +++ 1 file change

[PATCH v4 27/36] nds32: Build infrastructure

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds Makefile, Kconfig and vmlinux.lds.S files required for building an nds32 kernel. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 108 arch/nds32/Kconfig.cpu | 161 +++

[PATCH v4 35/36] clocksource/drivers/atcpit100: VDSO support

2017-12-17 Thread Greentime Hu
From: Rick Chen VDSO needs real-time cycle count to ensure the time accuracy. Unlike others, nds32 architecture does not define clock source, hence VDSO needs atcpit100 offering real-time cycle count to derive the correct time. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by

[PATCH v4 29/36] dt-bindings: nds32 CPU Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 CPU binding documents. Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nds32/cpus.txt | 37 ++ 1 file change

[PATCH v4 36/36] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2017-12-17 Thread Greentime Hu
From: Rick Chen Add a document to describe Andestech atcpit100 timer and binding information. Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Acked-by: Rob Herring --- .../bindings/timer/andestech,atcpit100-timer.txt | 33 1 file changed, 33 insertions(+) creat

[PATCH v4 34/36] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2017-12-17 Thread Greentime Hu
From: Rick Chen ATCPIT100 is often used on the Andes architecture, This timer provide 4 PIT channels. Each PIT channel is a multi-function timer, can be configured as 32,16,8 bit timers or PWM as well. For system timer it will set channel 1 32-bit timer0 as clock source and count downwards until

[PATCH v4 32/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds the Andestech Internal Vector Interrupt Controller driver. You can find the spec here. Ch4.9 of AndeStar SPA V3 Manual. http://www.andestech.com/product.php?cls=9 Signed-off-by: Rick Chen Signed-off-by: Greentime Hu Reviewed-by: Marc Zyngier --- drivers/irq

[PATCH v4 30/36] dt-bindings: nds32 SoC Bindings

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 SoC(AE3XX and AG101P) binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- .../devicetree/bindings/nds32/andestech-boards | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicet

[PATCH v4 28/36] MAINTAINERS: Add nds32

2017-12-17 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..20284c8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,17 @@ X: drivers/iio/*/adjd* F: drivers/staging/iio/*

[PATCH v4 26/36] nds32: defconfig

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 defconfig. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/defconfig | 108 ++ 1 file changed, 108 insertions(+) create mode 100644 arch/nds32/configs/defconfig diff --git a/arch

[PATCH v4 24/36] nds32: Device tree support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for device tree. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 + arch/nds32/boot/dts/ae3xx.dts | 65 + arch/nds32/kernel/devtree.c | 19

[PATCH 03/16] staging: lustre: discard cfs_time_seconds()

2017-12-17 Thread NeilBrown
cfs_time_seconds() converts a number of second to the matching number of jiffies. The standard way to do this in Linux is "* HZ". So discard cfs_time_seconds() and use "* HZ" instead. Signed-off-by: NeilBrown --- .../lustre/include/linux/libcfs/libcfs_debug.h |4 ++-- .../lustre/include

[PATCH 04/16] staging: lustre: use wait_event_timeout() where appropriate.

2017-12-17 Thread NeilBrown
When the lwi arg has a timeout, but no timeout callback function, l_wait_event() acts much the same as wait_event_timeout() - the wait is not interruptible and simply waits for the event or the timeouts. The most noticable difference is that the return value is -ETIMEDOUT or 0, rather than 0 or no

[PATCH v4 23/36] nds32: Generic timers support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds support for timer. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Reviewed-by: Linus Walleij --- arch/nds32/kernel/time.c | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 arch/nds32/kernel/time.c diff --git a/arch/nds32/ker

[PATCH 02/16] staging: lustre: replace simple cases of l_wait_event() with wait_event().

2017-12-17 Thread NeilBrown
When the lwi arg is full of zeros, l_wait_event() behaves almost identically to the standard wait_event() interface, so use that instead. The only difference in behavior is that l_wait_event() blocks all signals and uses an TASK_INTERRUPTIBLE wait, while wait_event() does not block signals, but wa

[PATCH 01/16] staging: lustre: discard SVC_SIGNAL and related functions

2017-12-17 Thread NeilBrown
This flag is never set, so remove checks and remove the flag. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/include/lustre_net.h |6 -- drivers/staging/lustre/lustre/ptlrpc/sec_gc.c |4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/stagi

[PATCH 05/16] staging: lustre: introduce and use l_wait_event_abortable()

2017-12-17 Thread NeilBrown
lustre sometimes wants to wait for an event, but abort if one of a specific list of signals arrives. This is a little bit like wait_event_killable(), except that the signals are identified a different way. So introduce l_wait_event_abortable() which provides this functionality. Having separate fu

[PATCH 10/16] staging: lustre: remove back_to_sleep() and use loops.

2017-12-17 Thread NeilBrown
When 'back_to_sleep()' is passed as the 'timeout' function, the effect is to wait indefinitely for the event, polling on the timeout in case we missed a wake_up. If LWI_ON_SIGNAL_NOOP is given, then also abort (at the timeout) if a "fatal" signal is pending. Make this more obvious is both places "

[PATCH 09/16] staging: lustre: simplify waiting in ptlrpc_invalidate_import()

2017-12-17 Thread NeilBrown
This wait current wakes up every second to re-test if imp_flight is zero. If we ensure wakeup is called whenever imp_flight is decremented to zero, we can just have a simple wait_event_timeout(). So add a wake_up_all to the one place it is missing, and simplify the wait_event. Signed-off-by: Nei

[PATCH 07/16] staging: lustre: simplify waiting in ldlm_completion_ast()

2017-12-17 Thread NeilBrown
If a signal-callback (lwi_on_signal) is set without lwi_allow_intr, as is the case in ldlm_completion_ast(), the behavior depends on the timeout set. If a timeout is set, then signals are ignored. If the timeout is reached, the timeout handler is called. If no timeout is set, then "fatal" signals

[PATCH 06/16] staging: lustre: simplify l_wait_event when intr handler but no timeout.

2017-12-17 Thread NeilBrown
If l_wait_event() is given a function to be called on a signal, but no timeout or timeout handler, then the intr function is simply called at the end if the wait was aborted by a signal. So a simpler way to write the code (in the one place this case is used) it to open-code the body of the function

[PATCH 11/16] staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious

2017-12-17 Thread NeilBrown
This use of l_wait_event() is a polling loop that re-checks every second. Make this more obvious with a while loop and wait_event_timeout(). Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/niobuf.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --

[PATCH 12/16] staging: lustre: use wait_event_timeout in ptlrpcd()

2017-12-17 Thread NeilBrown
We can replace l_wait_event() with wait_event_noload_timeout() here providing we call the timeout function when wait_event_timeout() returns zero. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 12 .../staging/lustre/lustre/ptlrpc/ptlrpc_internal

[PATCH 08/16] staging: lustre: open code polling loop instead of using l_wait_event()

2017-12-17 Thread NeilBrown
Two places that LWI_TIMEOUT_INTERVAL() is used, the outcome is a simple polling loop that polls every second for some event (with a limit). So write a simple loop to make this more apparent. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/llite/llite_lib.c | 11 +-- drivers

[PATCH 15/16] staging: lustre: use explicit poll loop in ptlrpc_unregister_reply

2017-12-17 Thread NeilBrown
replace l_wait_event() with wait_event_timeout() and explicit loop. This approach is easier to understand. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/client.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lustr

[PATCH 13/16] staging: lustre: improve waiting in sptlrpc_req_refresh_ctx

2017-12-17 Thread NeilBrown
Replace l_wait_event with wait_event_timeout() and call the handler function explicitly. This makes it more clear what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/sec.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --

[PATCH 14/16] staging: lustre: use explicit poll loop in ptlrpc_service_unlink_rqbd

2017-12-17 Thread NeilBrown
Rather an using l_wait_event(), use wait_event_timeout() with an explicit loop so it is easier to see what is happening. Signed-off-by: NeilBrown --- drivers/staging/lustre/lustre/ptlrpc/service.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/stagi

[PATCH 16/16] staging: lustre: remove l_wait_event from ptlrpc_set_wait

2017-12-17 Thread NeilBrown
This is the last remaining use of l_wait_event(). It is the only use of LWI_TIMEOUT_INTR_ALL() which has a meaning that timeouts can be interrupted. Only interrupts by "fatal" signals are allowed, so introduce l_wait_event_abortable_timeout() to support this. Signed-off-by: NeilBrown --- drivers

[PATCH SERIES 5: 00/16] staging: lustre: use standard wait_event macros

2017-12-17 Thread NeilBrown
Lustre has l_wait_event() which is a complex macro that does similar things to the wait_event macro family in Linux. This patch series converts all l_wait_event to something more familiar to Linux developers. Some of the conversions are subtle. I think I've understood the code and got the convers

[PATCH v4 19/36] nds32: Library functions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch add support for various library functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 17 +++ arch/nds32/include/asm/swab.h| 35 + arch/nds32/include/asm/uaccess.h | 283

[PATCH v4 21/36] nds32: L2 cache support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds L2 cache support. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 142 + arch/nds32/kernel/atl2c.c | 64 + 2 files changed, 206 insertions(+) crea

[PATCH v4 17/36] nds32: VDSO support

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds VDSO support. The VDSO code is currently used for sys_rt_sigreturn() and optimised gettimeofday() (using the SoC timer counter). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/vdso.h | 24 +++ arch/nds32/inc

[PATCH v4 15/36] nds32: ELF definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch adds definitions for the ELF format, relocation types, vdso locations and EXEC_PAGESIZE. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h | 179 ++ arch/nds32/include/uapi/asm/auxvec

[PATCH v4 12/36] nds32: Atomic operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the atomic and futex operations. Many atomic operations use the load-lock word(llw) and store-condition word(scw) operations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/barrier.h | 15 ++ arch/nds32/include/a

[PATCH v4 13/36] nds32: Device specific operations

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch introduces ioremap implementations. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 83 +++ arch/nds32/mm/ioremap.c | 62 2 files changed, 1

[PATCH v4 11/36] nds32: IRQ handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes irq related functions and irqchip_init(). Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 36 arch/nds32/kernel/irq.c |9 + 2 files changed, 45 i

[PATCH v4 09/36] nds32: Cache and TLB routines

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch contains cache and TLB maintenance functions. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 12 + arch/nds32/include/asm/cache_info.h| 13 + arch/nds32/include/asm/cacheflush.h| 44 +++ arch/nds

[PATCH v4 07/36] nds32: MMU initialization

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes memory initializations and highmem supporting. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 79 + arch/nds32/mm/init.c | 277 ++ arch/nds32/mm/mm-nds

[PATCH v4 05/36] nds32: Exception handling

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes the exception/interrupt entries, pt_reg structure and related accessors. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 66 + arch/nds32/kernel/ex-entry.S| 157 ++ arch/nds32/kernel/ex-exi

[PATCH v4 03/36] nds32: Assembly macros and definitions

2017-12-17 Thread Greentime Hu
From: Greentime Hu This patch includes assembly macros, bit field definitions used in .S files across arch/nds32/. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 39 ++ arch/nds32/include/asm/bitfield.h | 963 ++

Re: [f2fs-dev] [PATCH 1/2] f2fs: pass down write hints to block layer for bufferd write

2017-12-17 Thread Hyunchul Lee
Hi Jaegeuk, Agreed. If Chao agrees with this policy, I will implement it. Thanks for the comment. On 12/15/2017 11:06 AM, Jaegeuk Kim wrote: > On 12/14, Hyunchul Lee wrote: >> Hi Jaegeuk, >> >> I need your comment about the fs_iohint mount option. >> >> a) w/o fs_iohint, propagate user hints to

[PATCH 0/2] perf-probe: Improve warning message for buildid mismatch

2017-12-17 Thread Masami Hiramatsu
Hello, This series ensure the build-ids for target binary and debuginfo are matched. If there is a mismatch, it warns user to check the package versions. To reproduce the problematic environment (on Fedora26), I did following operations; = # rpm -q glibc glibc-debuginfo glibc-2.25-12.f

<    1   2   3   4   5   >