[PATCH] power: reset: Add Spreadtrum SC27xx PMIC power off support

2018-01-14 Thread Baolin Wang
On Spreadtrum platform, we need power off system through external SC27xx series PMICs including the SC2720, SC2721, SC2723, SC2730 and SC2731 chips. Thus this patch adds SC27xx series PMICs power-off support. Signed-off-by: Baolin Wang --- drivers/power/reset/Kconfig |9 + driv

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

2018-01-14 Thread Eran Ben Elisha
On Mon, Jan 15, 2018 at 1:52 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > include/linux/mlx5/mlx5_ifc.h > > between commit: > > 8978cc921fc7 ("{net,ib}/mlx5: Don't disable local loopback multicast > traffic when needed") > > fr

Re: [PATCH] sound/pci/hda: depends on instead of select for INPUT

2018-01-14 Thread Takashi Iwai
On Mon, 15 Jan 2018 06:11:56 +0100, Randy Dunlap wrote: > > From: Randy Dunlap > > Drivers should not 'select' a subsystem. Instead they should depend > on it. If the subsystem is disabled, the user probably did that for > a purpose and one driver shouldn't be changing that. > > This also makes

Re: [patches] [PATCH v2 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-14 Thread Alan Kao
On Sun, Jan 14, 2018 at 11:24:53PM -0800, Stefan O'Rear wrote: > On Sun, Jan 14, 2018 at 10:47 PM, Alan Kao wrote: > > + /* > > +* For the dynamic ftrace to work, here we should reserve at least > > +* 8 bytes for a functional auipc-jalr pair. Pseudo inst nop may be > > +

Re: [patches] [PATCH v2 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-14 Thread Stefan O'Rear
On Sun, Jan 14, 2018 at 10:47 PM, Alan Kao wrote: > + /* > +* For the dynamic ftrace to work, here we should reserve at least > +* 8 bytes for a functional auipc-jalr pair. Pseudo inst nop may be > +* interpreted as different length in different models, so we manually

[PATCH v3 5/8] ARM: sun9i: mcpm: Support CPU/cluster power down and hotplugging for cpu1~7

2018-01-14 Thread Chen-Yu Tsai
This patch adds common code used to power down all cores and clusters. The code was previously based on the MCPM framework. It has now been adapted to hook into struct smp_operations directly, but the code structure still shows signs of prior work. The primary core (cpu0) requires setting flags to

[PATCH v3 1/8] ARM: sun9i: Support SMP bring-up on A80

2018-01-14 Thread Chen-Yu Tsai
The A80 is a big.LITTLE SoC with 1 cluster of 4 Cortex-A7s and 1 cluster of 4 Cortex-A15s. This patch adds support to bring up the second cluster and thus all cores using custom platform SMP code. Core/cluster power down has not been implemented, thus CPU hotplugging is not supported. This is lim

[PATCH v3 2/8] ARM: dts: sun9i: Add CCI-400 device nodes for A80

2018-01-14 Thread Chen-Yu Tsai
The A80 includes an ARM CCI-400 interconnect to support multi-cluster CPU caches. Also add the maximum clock frequency for the CPUs, as listed in the A80 Optimus Board FEX file. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun9i-a80.dtsi | 46 ++

[PATCH v3 3/8] ARM: dts: sun9i: Add CPUCFG device node for A80 dtsi

2018-01-14 Thread Chen-Yu Tsai
CPUCFG is a collection of registers that are mapped to the SoC's signals from each individual processor core and associated peripherals, such as resets for processors, L1/L2 cache and other things. These registers are used for SMP bringup and CPU hotplugging. Signed-off-by: Chen-Yu Tsai Acked-by

[PATCH v3 6/8] dt-bindings: ARM: sunxi: Document A80 SoC secure SRAM usage by SMP hotplug

2018-01-14 Thread Chen-Yu Tsai
On the Allwinner A80 SoC the BROM supports hotplugging the primary core (cpu0) by checking two 32bit values at a specific location within the secure SRAM block. This region needs to be reserved and accessible to the SMP code. Document its usage. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripar

[PATCH v3 0/8] ARM: sun9i: SMP and CPU hotplug support

2018-01-14 Thread Chen-Yu Tsai
This is v3 of my sun9i SMP/hotplug support series which was started over two years ago [1]. We've tried to implement PSCI for both the A80 and A83T. Results were not promising. The issue is that these two chips have a broken security extensions implementation. If a specific bit is not burned in its

[PATCH v3 4/8] ARM: dts: sun9i: Add PRCM device node for the A80 dtsi

2018-01-14 Thread Chen-Yu Tsai
The PRCM is a collection of clock controls, reset controls, and various power switches/gates. Some of these can be independently listed and supported, while a number of CPU related ones are used in tandem with CPUCFG for SMP bringup and CPU hotplugging. Signed-off-by: Chen-Yu Tsai Acked-by: Maxim

[PATCH v3 7/8] ARM: sun9i: mcpm: Support cpu0 hotplug

2018-01-14 Thread Chen-Yu Tsai
The BROM has a branch that checks if the primary core is hotplugging. If the magic flag is set, execution jumps to the address set in the software entry register. (Secondary cores always branch to the that address.) This patch sets the flags that makes BROM jump execution on the primary core (cpu0

[PATCH v3 8/8] ARM: dts: sun9i: Add secure SRAM node used for MCPM SMP hotplug

2018-01-14 Thread Chen-Yu Tsai
The A80 stores some magic flags in a portion of the secure SRAM. The BROM jumps directly to the software entry point set by the SMP code if the flags are set. This is required for CPU0 hotplugging. Signed-off-by: Chen-Yu Tsai Acked-by: Maxime Ripard --- arch/arm/boot/dts/sun9i-a80.dtsi | 19 +++

Re: [PATCH v7 5/6] [media] vb2: add out-fence support to QBUF

2018-01-14 Thread Alexandre Courbot
On Thu, Jan 11, 2018 at 1:07 AM, Gustavo Padovan wrote: > /* > * vb2_start_streaming() - Attempt to start streaming. > * @q: videobuf2 queue > @@ -1489,18 +1562,16 @@ int vb2_core_qbuf(struct vb2_queue *q, unsigned int > index, void *pb, > if (vb->in_fence) { >

[PATCH v3] nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

2018-01-14 Thread Dominik Brodowski
As ieee80211_bss_get_ie() derefences an RCU to return ssid_ie, both the call to this function and any operation on this variable need protection by the RCU read lock. Fixes: 44905265bc15 ("nl80211: don't expose wdev->ssid for most interfaces") Signed-off-by: Dominik Brodowski --- > but after, pe

Re: [PATCH v7 1/6] [media] vb2: add is_unordered callback for drivers

2018-01-14 Thread Alexandre Courbot
On Thu, Jan 11, 2018 at 1:07 AM, Gustavo Padovan wrote: > From: Gustavo Padovan > > Explicit synchronization benefits a lot from ordered queues, they fit > better in a pipeline with DRM for example so create a opt-in way for > drivers notify videobuf2 that the queue is unordered. > > Drivers don'

Re: [PATCH] Document: typo fix in mm.txt

2018-01-14 Thread Cao jin
Finally know why I have this wrong understanding according to private discussion. Sorry for the noise -- Sincerely, Cao jin On 01/15/2018 11:36 AM, Cao jin wrote: > Signed-off-by: Cao jin > --- > Documentation/x86/x86_64/mm.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

[PATCH] perf:util:dso: Using O_CLOEXEC in do_open

2018-01-14 Thread Wang YanQing
I meet strange behavior with below commands on my gentoo box: 1:perf kmem record 2:CTRL-C to stop 1 3:perf report 4:"Enter", "Enter", "Run scripts for all samples", "event_analyzing_sample". Then perf report: " No kallsyms or vmlinux with build-id was found /lib/modules/4.10.0+/build/vmlinu

Re: r8169 regression: UDP packets dropped intermittantly

2018-01-14 Thread Jonathan Woithe
On Wed, Dec 20, 2017 at 03:50:11PM +1030, Jonathan Woithe wrote: > On Tue, Dec 19, 2017 at 01:25:23PM +0100, Michal Kubecek wrote: > > On Tue, Dec 19, 2017 at 04:15:32PM +1030, Jonathan Woithe wrote: > > > This clearly indicates that not every card using the r8169 driver is > > > vulnerable to the

Re: [PATCH v5 0/9] Renesas Capture Engine Unit (CEU) V4L2 driver

2018-01-14 Thread jacopo mondi
Hello Hans, On Fri, Jan 12, 2018 at 04:27:50PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > On Friday, 12 January 2018 16:04:00 EET Jacopo Mondi wrote: > > Hello, > >(hopefully) last round for CEU driver. > > > > Changelog is quite thin, I have updated CEU driver MODULE_LICENSE to match > >

[PATCH v2 3/6] riscv/ftrace: Add dynamic function graph tracer support

2018-01-14 Thread Alan Kao
Once the function_graph tracer is enabled, a filtered function has the following call sequence: * ftracer_caller ==> on/off by ftrace_make_call/ftrace_make_nop * ftrace_graph_caller * ftrace_graph_call ==> on/off by ftrace_en/disable_ftrace_graph_caller * prepare_ftrace_return Consid

[PATCH v2 5/6] riscv/ftrace: Add DYNAMIC_FTRACE_WITH_REGS support

2018-01-14 Thread Alan Kao
Cc: Greentime Hu Signed-off-by: Alan Kao --- arch/riscv/Kconfig | 1 + arch/riscv/kernel/ftrace.c | 17 ++ arch/riscv/kernel/mcount-dyn.S | 124 + 3 files changed, 142 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconf

[PATCH v2 6/6] riscv/ftrace: Add HAVE_FUNCTION_GRAPH_RET_ADDR_PTR support

2018-01-14 Thread Alan Kao
In walk_stackframe, the pc now receives the address from calling ftrace_graph_ret_addr instead of manual calculation. Note that the original calculation, pc = frame->ra - 4 is buggy when the instruction at the return address happened to be a compressed inst. But since it is not a critical

[PATCH v2 1/6] riscv/ftrace: Add RECORD_MCOUNT support

2018-01-14 Thread Alan Kao
Now recordmcount.pl recognizes RISC-V object files. For the mechanism to work, we have to disable the linker relaxation. Cc: Greentime Hu Signed-off-by: Alan Kao --- arch/riscv/Kconfig | 1 + arch/riscv/Makefile | 3 +++ scripts/recordmcount.pl | 5 + 3 files changed, 9 insertions(

[PATCH v2 4/6] riscv/ftrace: Add ARCH_SUPPORTS_FTRACE_OPS support

2018-01-14 Thread Alan Kao
Cc: Greentime Hu Signed-off-by: Alan Kao --- arch/riscv/include/asm/ftrace.h | 1 + arch/riscv/kernel/mcount-dyn.S | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/riscv/include/asm/ftrace.h b/arch/riscv/include/asm/ftrace.h index acf0c7d001f3..429a6a156645 100644 --- a/arch/riscv/i

[PATCH v2 2/6] riscv/ftrace: Add dynamic function tracer support

2018-01-14 Thread Alan Kao
We now have dynamic ftrace with the following added items: * ftrace_make_call, ftrace_make_nop (in kernel/ftrace.c) The two functions turns any recorded call site of filtered functions into a call to ftrace_caller or nops * ftracce_update_ftrace_func (in kernel/ftrace.c) turns the nops at f

[PATCH v2 0/6] Add dynamic ftrace support for RISC-V platforms

2018-01-14 Thread Alan Kao
This patch set includes the building blocks of dynamic ftrace features for RISC-V machines. Changes in v2: - Fix the return value as writing to kernel text goes wrong (2/6) - Replace manual comparisons by calling memcmp (2/6) - Simplify the conditional assignment in the Makefile (1/6) Alan Kao

Re: [PATCH] drm/arm/malidp: Disable pixel alpha blending for colors that do not have alpha

2018-01-14 Thread kbuild test robot
Hi Ayan, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v4.15-rc8 next-20180112] [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/com

[PATCH v6 03/36] sparc: io: To use the define of ioremap_[nocache|wc|wb] in asm-generic/io.h

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/sparc/include/asm/io_32.h |5 - arch/sparc/kernel/ioport.c |4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --

[PATCH v6 01/36] asm-generic/io.h: move ioremap_nocache/ioremap_uc/ioremap_wc/ioremap_wt out of ifndef CONFIG_MMU

2018-01-14 Thread Greentime Hu
From: Greentime Hu It allows some architectures to use this generic macro instead of defining theirs. Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu Acked-by: Arnd Bergmann --- include/asm-generic/io.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff

[PATCH v6 08/36] nds32: MMU definitions

2018-01-14 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 v6 07/36] nds32: Exception handling

2018-01-14 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 v6 10/36] nds32: MMU fault handling and page table management

2018-01-14 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 ++

Re: Applied "ASoC: hdac_hdmi: Ensuring proper setting of output widget power state" to the asoc tree

2018-01-14 Thread Vinod Koul
On Fri, Jan 12, 2018 at 09:20:12PM +, Mark Brown wrote: > On Fri, Jan 12, 2018 at 09:08:53PM +, Mark Brown wrote: > > The patch > > > >ASoC: hdac_hdmi: Ensuring proper setting of output widget power state > > > > has been applied to the asoc tree at > > > >https://git.kernel.org/

[PATCH v6 09/36] nds32: MMU initialization

2018-01-14 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 v6 12/36] nds32: Process management

2018-01-14 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 v6 14/36] nds32: Atomic operations

2018-01-14 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 v6 16/36] nds32: DMA mapping API

2018-01-14 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 v6 18/36] nds32: System calls handling

2018-01-14 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 v6 20/36] nds32: Signal handling support

2018-01-14 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 v6 22/36] nds32: Debugging support

2018-01-14 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

[PATCH v6 25/36] nds32: Generic timers support

2018-01-14 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 v6 23/36] nds32: L2 cache support

2018-01-14 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 | 137 + arch/nds32/kernel/atl2c.c | 64 + 2 files changed, 201 insertions(+) crea

[PATCH v6 26/36] nds32: Device tree support

2018-01-14 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 | 85 + arch/nds32/kernel/devtree.c | 19 + 3

[PATCH v6 28/36] nds32: defconfig

2018-01-14 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 | 107 ++ 1 file changed, 107 insertions(+) create mode 100644 arch/nds32/configs/defconfig diff --git a/arch

[PATCH v6 32/36] dt-bindings: nds32 L2 cache controller Bindings

2018-01-14 Thread Greentime Hu
From: Greentime Hu This patch adds nds32 L2 cache controller binding documents. Signed-off-by: Greentime Hu Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/nds32/atl2c.txt | 29 + 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetre

[PATCH v6 30/36] MAINTAINERS: Add nds32

2018-01-14 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] hwmon: (pmbus/ir35221) Remove unnecessary scaling

2018-01-14 Thread Samuel Mendoza-Jonas
The ir35221 datasheet describes specific scaling factors for a number of commands which the current driver applies when reading. However now that the ir35221 has been tested on machines with more easily verifiable readings these descriptions have turned out to be superfluous and reading each comman

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

2018-01-14 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 v6 2/3] clocksource/drivers/atcpit100: VDSO support

2018-01-14 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 v6 1/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 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 v6 3/3] dt-bindings: timer: Add andestech atcpit100 timer binding doc

2018-01-14 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 v6 35/36] irqchip: Andestech Internal Vector Interrupt Controller driver

2018-01-14 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 v6 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-01-14 Thread Greentime Hu
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 underflow and res

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

2018-01-14 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 |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/faraday/Kconfig b/drivers/n

Re: [PATCH 4.14 023/159] mm/sparsemem: Allocate mem_section at runtime for CONFIG_SPARSEMEM_EXTREME=y

2018-01-14 Thread Omar Sandoval
On Fri, Jan 12, 2018 at 08:55:49AM +0800, Dave Young wrote: > On 01/10/18 at 02:16pm, Kirill A. Shutemov wrote: > > On Wed, Jan 10, 2018 at 03:08:04AM +, Dave Young wrote: > > > On Tue, Jan 09, 2018 at 12:05:52PM +0300, Kirill A. Shutemov wrote: > > > > On Tue, Jan 09, 2018 at 03:24:40PM +0800,

[PATCH v6 29/36] nds32: Build infrastructure

2018-01-14 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 | 107 arch/nds32/Kconfig.cpu | 161 +++

[PATCH v6 27/36] nds32: Miscellaneous header files

2018-01-14 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 | 39 +++ arch/nds32/include/asm/linkage.h| 11 + arch/nds32/include/ua

[PATCH v6 31/36] dt-bindings: nds32 CPU Bindings

2018-01-14 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 v6 33/36] dt-bindings: nds32 SoC Bindings

2018-01-14 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 v6 15/36] nds32: Device specific operations

2018-01-14 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 v6 19/36] nds32: VDSO support

2018-01-14 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 v6 24/36] nds32: Loadable modules

2018-01-14 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 v6 17/36] nds32: ELF definitions

2018-01-14 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 | 171 ++ arch/nds32/include/uapi/asm/auxvec

[PATCH v6 21/36] nds32: Library functions

2018-01-14 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 v6 13/36] nds32: IRQ handling

2018-01-14 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 v6 05/36] nds32: Assembly macros and definitions

2018-01-14 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 ++

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

2018-01-14 Thread Greentime Hu
This is the 6th version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v5 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

[PATCH v6 02/36] openrisc: add ioremap_nocache declaration before include asm-generic/io.h and sync ioremap prototype with it.

2018-01-14 Thread Greentime Hu
From: Greentime Hu It will be built failed if commit id: d25ea659 is selected. This patch can fix this build error. Signed-off-by: Greentime Hu --- arch/openrisc/include/asm/io.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/openrisc/include/asm/io.h b/arch/ope

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

2018-01-14 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 v6 11/36] nds32: Cache and TLB routines

2018-01-14 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 v6 06/36] nds32: Kernel booting and initialization

2018-01-14 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 | 188 +++

Re: [PATCH] net/mlx4_en: ensure rx_desc updating reaches HW before prod db updating

2018-01-14 Thread jianchao.wang
Hi Tariq Thanks for your kindly response. On 01/14/2018 05:47 PM, Tariq Toukan wrote: > Thanks Jianchao for your patch. > > And Thank you guys for your reviews, much appreciated. > I was off-work on Friday and Saturday. > > On 14/01/2018 4:40 AM, jianchao.wang wrote: >> Dear all >> >> Thanks fo

[PATCH] tools/lib/traceevent/event-parse: delete pevent_register_function

2018-01-14 Thread Wang YanQing
After commit 4263cece22e3da94f16fbbcf71ce3807946d3ef3 ("perf tools: Stop reading the kallsyms data from perf.data"), there is no users of pevent_register_function in tree, so we could just delete it. Signed-off-by: Wang YanQing --- tools/lib/traceevent/event-parse.c | 183 +--

linux-next: Tree for Jan 15

2018-01-14 Thread Stephen Rothwell
Hi all, Changes since 20180112: The arm64 tree gained a conflict against Linus' tree. The f2fs tree gained a conflict against the fscrypt tree. The net-next tree lost its build failure and gained a conflict against the net tree. The bpf-next tree gained a conflict against Linus' tree. The rdm

[PATCH 1/2] x86/intel: introduce platform_id

2018-01-14 Thread Jia Zhang
Platform ID retrieved from MSR_IA32_PLATFORM_ID may be used as a filtration condition in some cases. Signed-off-by: Jia Zhang --- arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/cpu/intel.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/arch/x86/include/asm/processor.h

[PATCH 0/2] x86/microcode/intel: Extend BDW late-loading with platform id and LLC check

2018-01-14 Thread Jia Zhang
The fix further reduces the impact for the BDW model which has to launch a machine reset in order to run microcode update in BIOS. This point is important for some vendors without the concern about machine reboot in order to fix up Spectre v2. Jia Zhang (2): x86/intel: introduce platform_id

[PATCH 2/2] x86/microcode/intel: Extend BDW late-loading with platform id and LLC check

2018-01-14 Thread Jia Zhang
The commit b94b73733171 ("x86/microcode/intel: Extend BDW late-loading with a revision check") reduces the impact of erratum BDF90 for Broadwell process model. Now, the impact can be reduced further through adding the checks for platform id and the size of LLC per core. This fix is useful to reduc

Re: [PATCH 1/2] extcon: axp288: Constify the axp288_pwr_up_down_info array

2018-01-14 Thread Chanwoo Choi
On 2018년 01월 15일 00:10, Hans de Goede wrote: > Make the axp288_pwr_up_down_info array const char * const, this leads > to the following section size changes: > > .text 0x674 -> 0x664 > .data 0x148 -> 0x0f0 > .rodata 0x0b4 -> 0x114 > > Signed-off-by: Hans de Goede > --- > drivers/extco

Re: [PATCH 2/2] extcon: axp288: Only reschedule charger-detection at boot when a SDP is detected

2018-01-14 Thread Chanwoo Choi
On 2018년 01월 15일 00:10, Hans de Goede wrote: > The only misdetection which can happen at boot due to data-lines mux issues > is detecting a non SDP as SDP, so we only need to retry if we detect a SDP > on our first detection. > > Note Vbus misdetection is not a problem, as soon as the drivers cont

[PATCH] sound/pci/hda: depends on instead of select for INPUT

2018-01-14 Thread Randy Dunlap
From: Randy Dunlap Drivers should not 'select' a subsystem. Instead they should depend on it. If the subsystem is disabled, the user probably did that for a purpose and one driver shouldn't be changing that. This also makes all sound/ drivers consistent w.r.t depending on INPUT instead of select

[PATCH] iio/adc: depend on SYSFS instead of selecting it

2018-01-14 Thread Randy Dunlap
From: Randy Dunlap Drivers should not 'select' a subsystem. Instead they should depend on it. If the subsystem is disabled, the user probably did that for a purpose and one driver shouldn't be changing that. This also makes all IIO drivers consistent w.r.t depending on SYSFS instead of selecting

[PATCH] staging: unisys: change select to depends for subsystems

2018-01-14 Thread Randy Dunlap
From: Randy Dunlap Drivers should not 'select' a subsystem. Instead they should depend on it. If the subsystem is disabled, the user probably did that for a purpose and one driver shouldn't be changing that. Signed-off-by: Randy Dunlap Cc: David Kershner Cc: sparmaintai...@unisys.com (Unisys i

[PATCH] platform/x86: have ACPI_CMPC use depends instead of select for INPUT

2018-01-14 Thread Randy Dunlap
From: Randy Dunlap Drivers should not 'select' a subsystem. Instead they should depend on it. If the subsystem is disabled, the user probably did that for a purpose and one driver shouldn't be changing that. This also makes all platform/x86/ drivers consistent w.r.t depending on INPUT instead of

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

2018-01-14 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: arch/cris/include/arch-v10/arch/bug.h between commit: c8133e59edb0 ("cris: Mark end of BUG() implementation as unreachable") from the kspp tree and commit: c5a1e183a75a ("bug.h: work around GCC PR82365 in BU

[PATCH] perf report: Provide libtraceevent with a kernel symbol resolver

2018-01-14 Thread Wang YanQing
So that beautifiers wanting to resolve kernel function addresses to names can do its work, and when we use "perf report" for output of "perf kmem record", we will get kernel symbol output. Signed-off-by: Wang YanQing --- tools/perf/builtin-report.c | 9 + 1 file changed, 9 insertions(+)

Re: [PATCH V3] thermal: Add cooling device's statistics in sysfs

2018-01-14 Thread Viresh Kumar
On 12-01-18, 09:46, Eduardo Valentin wrote: > On Thu, Jan 11, 2018 at 03:06:09PM +0530, Viresh Kumar wrote: > > $ ls -R /sys/class/thermal/cooling_device0/ > > /sys/class/thermal/cooling_device0/: > > cur_state max_state power stats subsystem type uevent > > > > /sys/class/thermal/cooling_de

[PATCH] x86/kprobe: unbalanced preempt counter in kprobe_{fault,debug}_handler

2018-01-14 Thread Yang Bo
Don't see any preempt_disable() in do_debug() and do_page_fault(), there is no need to call preempt_enable_no_resched() here. Signed-off-by: Yang Bo --- arch/x86/kernel/kprobes/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/kprobes/core.c b/arch/x86/kernel/kprobes/co

[PATCH v3 01/17] ASoC: fsl_ssi: Redefine RX and TX macros

2018-01-14 Thread Nicolin Chen
The RX and TX macros were defined implicitly and there was a potential risk if someone changes their values. Since they were defined to index the array ssi->regvals[2], this patch moves these two macros to fsl_ssi.c, closer to its owner ssi->regvals. And it also puts some comments here to limit th

[PATCH v3 03/17] ASoC: fsl_ssi: Clean up set_dai_tdm_slot()

2018-01-14 Thread Nicolin Chen
This patch replaces the register read with ssi->i2s_net for simplification. It also removes masking SSIEN from scr value since it's handled later by regmap_update_bits() to set this scr value back. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- sound/soc/fsl/fsl_ssi.c | 7 ++- 1 fil

[PATCH v3 04/17] ASoC: fsl_ssi: Maintain a mask of active streams

2018-01-14 Thread Nicolin Chen
Checking TE and RE bits in SCR register doesn't work for AC97 mode which enables SSIEN, TE and RE in the fsl_ssi_setup_ac97() that's called during probe(). So when running into the trigger(), it will always get the result of both TE and RE being enabled already, even if actually there is no active

[PATCH v3 05/17] ASoC: fsl_ssi: Rename fsl_ssi_disable_val macro

2018-01-14 Thread Nicolin Chen
The define of fsl_ssi_disable_val is not so clear as it mixes two steps of calculations together. And those parameter names are also a bit long to read. Since it just tries to exclude the shared bits from the regvals of current stream while the opposite stream is active, it's better to use somethi

[PATCH v3 07/17] ASoC: fsl_ssi: Clean up helper functions of trigger()

2018-01-14 Thread Nicolin Chen
The trigger() calls fsl_ssi_tx_config() and fsl_ssi_rx_config(), and both of them jump to fsl_ssi_config(). And fsl_ssi_config() later calls another fsl_ssi_rxtx_config(). However, the whole routine, especially fsl_ssi_config() function, is too complicated because of the folowing reasons: 1) It ha

[PATCH] x86/kprobe: unbalanced preempt counter with CONFIG_PREEMPT=y

2018-01-14 Thread yangbo
From: Yang Bo For each kprobe hook, preempt_disable() is called twice, but preempt_enable() is called once, when CONFIG_PREEMPT=y. No matter kprobe uses ftrace or int3. Then the preempt counter overflows, the process might be preempted and migrate to another cpu. It causes the kprobe int3 being t

[PATCH v3 08/17] ASoC: fsl_ssi: Add DAIFMT define for AC97

2018-01-14 Thread Nicolin Chen
The _fsl_ssi_set_dai_fmt() bypasses an undefined format for AC97 mode. However, it's not really necessary if AC97 has its complete format defined. So this patch adds a DAIFMT macro of complete format including a clock direction and polarity. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --

[PATCH v3 12/17] ASoC: fsl_ssi: Move one-time configurations to probe()

2018-01-14 Thread Nicolin Chen
The probe() could handle some one-time configurations since they will not be changed once being configured. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- Changelog v2 * Moved all to fsl_ssi_hw_init() in platform probe() sound/soc/fsl/fsl_ssi.c | 39 ++-

[PATCH v3 14/17] ASoC: fsl_ssi: Clean up _fsl_ssi_set_dai_fmt()

2018-01-14 Thread Nicolin Chen
The _fsl_ssi_set_dai_fmt() is a helper function being called from fsl_ssi_set_dai_fmt() as an ASoC operation and fsl_ssi_hw_init() mainly for AC97 format initialization. This patch cleans the _fsl_ssi_set_dai_fmt() in following ways: * Removing *dev pointer in the parameters as it's included in th

[PATCH v3 13/17] ASoC: fsl_ssi: Setup AC97 in fsl_ssi_hw_init()

2018-01-14 Thread Nicolin Chen
AC97 configures most of registers earlier to start a communication with CODECs in order to successfully initialize CODEC. Currently, _fsl_ssi_set_dai_fmt() and fsl_ssi_setup_ac97() are called to get all SSI registers properly set. Since now the driver has a fsl_ssi_hw_init() to handle all register

[PATCH v3 15/17] ASoC: fsl_ssi: Add bool synchronous to mark synchronous mode

2018-01-14 Thread Nicolin Chen
Using symmetric_rates in the cpu_dai_drv is a bit implicit, so this patch adds a bool synchronous instead. Signed-off-by: Nicolin Chen Tested-by: Caleb Crome --- Changelog v3 * Removed all cpu_dai_drv changes in PATCH-15 sound/soc/fsl/fsl_ssi.c | 13 - 1 file changed, 8 insertions

  1   2   3   4   >