[Patch v6 00/12] Add MFC v10.10 support

2017-12-08 Thread Smitha T Murthy
This patch series adds MFC v10.10 support. MFC v10.10 is used in some of Exynos7 variants. This adds support for following: * Add support for HEVC encoder and decoder * Add support for VP9 decoder * Update Documentation for control id definitions * Update computation of min scratch buffer size

[PATCH v5 1/7] scsi: libsas: Use dynamic alloced work to avoid sas event lost

2017-12-08 Thread Jason Yan
Now libsas hotplug work is static, every sas event type has its own static work, LLDD driver queues the hotplug work into shost->work_q. If LLDD driver burst posts lots hotplug events to libsas, the hotplug events may pending in the workqueue like shost->work_q new work[PORTE_BYTES_DMAED] -->

[Patch v6 01/12] [media] s5p-mfc: Rename IS_MFCV8 macro

2017-12-08 Thread Smitha T Murthy
This patch renames macro IS_MFCV8 to IS_MFCV8_PLUS so that the MFCv8 code can be resued for MFCv10.10 support. Since the MFCv8 specific code holds good for MFC v10.10 also. Signed-off-by: Smitha T Murthy Acked-by: Andrzej Hajda --- drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 2 +-

[PATCH v5 2/7] scsi: libsas: shut down the PHY if events reached the threshold

2017-12-08 Thread Jason Yan
If the PHY burst too many events, we will alloc a lot of events for the worker. This may leads to memory exhaustion. Dan Williams suggested to shut down the PHY if the events reached the threshold, because in this case the PHY may have gone into some erroneous state. Users can re-enable the PHY

[PATCH v5 3/7] scsi: libsas: make the event threshold configurable

2017-12-08 Thread Jason Yan
Add a sysfs attr that LLDD can configure it for every host. We made a example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas

[PATCH v5 0/7] Enhance libsas hotplug feature

2017-12-08 Thread Jason Yan
Now the libsas hotplug has some issues, Dan Williams report a similar bug here before https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg39187.html The issues we have found 1. if LLDD burst reports lots of phy-up/phy-down sas events, some events may lost because a same sas events is

[PATCH v3 00/33] Andes(nds32) Linux Kernel Port

2017-12-08 Thread Greentime Hu
This is the 3rd version patchset to add the Linux kernel port for Andes(nds32) processors. Almost all of the feedbacks from v2 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

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

2017-12-08 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 --- include/asm-generic/io.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

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

2017-12-08 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 v3 04/33] nds32: Kernel booting and initialization

2017-12-08 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 | 202

Re: [PATCH 2/2] serial: tegra: Fix a typo in a comment line

2017-12-08 Thread Laxman Dewangan
On Friday 08 December 2017 01:51 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 7 Dec 2017 21:06:25 +0100 Delete a duplicate character in a word of this description. Acked-by: Laxman Dewangan

[PATCH v3 03/33] nds32: Assembly macros and definitions

2017-12-08 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 | 52 ++ arch/nds32/include/asm/bitfield.h | 976

[PATCH v3 22/33] nds32: Loadable modules

2017-12-08 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 | 24 arch/nds32/kernel/module.c | 299 +++ 2 files changed, 323 insertions(+) create

[PATCH v3 26/33] nds32: defconfig

2017-12-08 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

[PATCH v3 27/33] nds32: Build infrastructure

2017-12-08 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 v3 28/33] MAINTAINERS: Add nds32

2017-12-08 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:

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

2017-12-08 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

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2017-12-08 Thread Prateek Sood
On 12/05/2017 04:31 AM, Peter Zijlstra wrote: > On Mon, Dec 04, 2017 at 02:58:25PM -0800, Tejun Heo wrote: >> Hello, again. >> >> On Mon, Dec 04, 2017 at 12:22:19PM -0800, Tejun Heo wrote: >>> Hello, >>> >>> On Mon, Dec 04, 2017 at 10:44:49AM +0530, Prateek Sood wrote: Any feedback/suggestion

[PATCH v3 25/33] nds32: Miscellaneous header files

2017-12-08 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 | 51 +++ arch/nds32/include/asm/linkage.h| 24 +++

[PATCH v3 29/33] dt-bindings: nds32 CPU Bindings

2017-12-08 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 --- Documentation/devicetree/bindings/nds32/cpus.txt | 37 ++ 1 file changed, 37 insertions(+)

[PATCH v3 30/33] dt-bindings: nds32 SoC Bindings

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

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

2017-12-08 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 --- .../interrupt-controller/andestech,ativic32.txt| 19 +++ 1 file changed, 19 insertions(+)

[PATCH v3 32/33] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-12-08 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 --- drivers/irqchip/Makefile |1

Re: [PATCH] LDT improvements

2017-12-08 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Fri, 8 Dec 2017, Ingo Molnar wrote: > > * Andy Lutomirski wrote: > > > I don't love mucking with user address space. I'm also quite nervous > > > about > > > putting it in our near anything that could pass an access_ok check, since > > > we're > > > totally

RE: [RFC] vfio/type1: Add IOVA_RANGE capability support

2017-12-08 Thread Shameerali Kolothum Thodi
Hi Alex, > -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Thursday, December 07, 2017 4:08 PM > To: Shameerali Kolothum Thodi > Cc: eric.au...@redhat.com; pmo...@linux.vnet.ibm.com; > k...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm >

Re: [PATCH v3 09/21] fpga: intel-dfl-pci: add enumeration for feature devices

2017-12-08 Thread Wu Hao
On Thu, Dec 07, 2017 at 03:41:41PM -0600, Alan Tull wrote: > On Mon, Nov 27, 2017 at 12:42 AM, Wu Hao wrote: > > > +/* enumerate feature devices under pci device */ > > +static int cci_enumerate_feature_devs(struct pci_dev *pcidev) > > +{ > > + struct cci_drvdata *drvdata =

[PATCH v4 05/12] clk: qcom: Add MSM8960/APQ8064's HFPLLs

2017-12-08 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on MSM8960 and APQ8064 devices. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-msm8960.c | 172 +++ include/dt-bindings/clock/qcom,gcc-msm8960.h | 2 + 2 files changed, 174 insertions(+) diff --git

[PATCH v4 06/12] clk: qcom: Add IPQ806X's HFPLLs

2017-12-08 Thread Sricharan R
From: Stephen Boyd Describe the HFPLLs present on IPQ806X devices. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq806x.c | 82 ++ 1 file changed, 82 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c

[PATCH v4 07/12] clk: qcom: Add support for Krait clocks

2017-12-08 Thread Sricharan R
From: Stephen Boyd The Krait clocks are made up of a series of muxes and a divider that choose between a fixed rate clock and dedicated HFPLLs for each CPU. Instead of using mmio accesses to remux parents, the Krait implementation exposes the remux control via cp15 registers. Support these

Re: [RESEND PATCH 0/4] drm/meson: power domain init related fixes

2017-12-08 Thread Neil Armstrong
On 08/12/2017 10:04, Jerome Brunet wrote: > On Wed, 2017-12-06 at 12:54 +0100, Neil Armstrong wrote: >> On the Amlogic Gx SoCs (GXBB, GXL & GXM), the VPU power domain is initialized >> by the vendor U-Boot code, but running mainline U-boot has been possible >> on these SoCs. But lacking such init

[PATCH v4 09/12] clk: qcom: Add Krait clock controller driver

2017-12-08 Thread Sricharan R
From: Stephen Boyd The Krait CPU clocks are made up of a primary mux and secondary mux for each CPU and the L2, controlled via cp15 accessors. For Kraits within KPSSv1 each secondary mux accepts a different aux source, but on KPSSv2 each secondary mux accepts the same aux source. Cc:

[PATCH v4 10/12] clk: qcom: Add safe switch hook for krait mux clocks

2017-12-08 Thread Sricharan R
When the Hfplls are reprogrammed during the rate change, the primary muxes which are sourced from the same hfpll for higher frequencies, needs to be switched to the 'safe secondary mux' as the parent for that small window. This is done by registering a clk notifier for the muxes and switching to

[PATCH v4 08/12] clk: qcom: Add KPSS ACC/GCC driver

2017-12-08 Thread Sricharan R
From: Stephen Boyd The ACC and GCC regions present in KPSSv1 contain registers to control clocks and power to each Krait CPU and L2. For CPUfreq purposes probe these devices and expose a mux clock that chooses between PXO and PLL8. Cc: Signed-off-by: Stephen Boyd ---

[PATCH v4 12/12] cpufreq: dt: Reintroduce independent_clocks platform data

2017-12-08 Thread Sricharan R
The Platform data was removed earlier by, 'commit eb96924acddc ("cpufreq: dt: Kill platform-data")' since there were no users at that time. Now this is required when the each of the cpu clocks can be scaled independently, which is the case for krait cores. So reintroduce it. Signed-off-by:

[PATCH v4 11/12] cpufreq: Add module to register cpufreq on Krait CPUs

2017-12-08 Thread Sricharan R
From: Stephen Boyd Register a cpufreq-generic device whenever we detect that a "qcom,krait" compatible CPU is present in DT. Cc: Signed-off-by: Stephen Boyd --- .../devicetree/bindings/arm/msm/qcom,pvs.txt | 38 drivers/cpufreq/Kconfig.arm| 9 +

Re: [PATCH] mux: add SPDX identifiers to all mux source files

2017-12-08 Thread Philipp Zabel
Hi Peter, On Thu, 2017-12-07 at 22:08 +0100, Peter Rosin wrote: > Remove all free-text license texts. > > This is done on a quest to remove the 700+ different ways that files in > the kernel describe the GPL license text. > > No copyright headers or other non-license-description text was

[PATCH v4 01/12] ARM: Add Krait L2 register accessor functions

2017-12-08 Thread Sricharan R
From: Stephen Boyd Krait CPUs have a handful of L2 cache controller registers that live behind a cp15 based indirection register. First you program the indirection register (l2cpselr) to point the L2 'window' register (l2cpdr) at what you want to read/write. Then you read/write the 'window'

[RESEND PATCH v4 00/12] Krait clocks + Krait CPUfreq

2017-12-08 Thread Sricharan R
Mostly a resend of the v3 posted by Stephen quite some time back [1] except for few changes. Based on reading some feedback from list, * Dropped the patch "clk: Add safe switch hook" from v3 [2]. Now this is taken care by patch#10 in this series only for Krait. * Dropped the path "clk:

[PATCH v4 03/12] clk: qcom: Add support for High-Frequency PLLs (HFPLLs)

2017-12-08 Thread Sricharan R
From: Stephen Boyd HFPLLs are the main frequency source for Krait CPU clocks. Add support for changing the rate of these PLLs. Signed-off-by: Stephen Boyd --- drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/clk-hfpll.c | 253 +++

[PATCH v4 02/12] clk: mux: Split out register accessors for reuse

2017-12-08 Thread Sricharan R
From: Stephen Boyd We want to reuse the logic in clk-mux.c for other clock drivers that don't use readl as register accessors. Fortunately, there really isn't much to the mux code besides the table indirection and quirk flags if you assume any bit shifting and masking has been done already. Pull

[PATCH v4 04/12] clk: qcom: Add HFPLL driver

2017-12-08 Thread Sricharan R
From: Stephen Boyd On some devices (MSM8974 for example), the HFPLLs are instantiated within the Krait processor subsystem as separate register regions. Add a driver for these PLLs so that we can provide HFPLL clocks for use by the system. Cc: Signed-off-by: Stephen Boyd ---

[PATCH v3 23/33] nds32: Generic timers support

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

[PATCH v3 24/33] nds32: Device tree support

2017-12-08 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 | 67 ++ arch/nds32/boot/dts/ag101p.dts | 70

[PATCH v3 21/33] nds32: L2 cache support

2017-12-08 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 | 155 + arch/nds32/kernel/atl2c.c | 77 ++ 2 files changed, 232 insertions(+)

[PATCH v3 20/33] nds32: Debugging support

2017-12-08 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 | 38 arch/nds32/kernel/ptrace.c | 325 ++ 2 files changed, 363 insertions(+) create mode

[PATCH] tools/slabinfo-gnuplot: force to use bash shell

2017-12-08 Thread Liu, Changcheng
On some linux distributions, the default link of sh is dash which deoesn't support split array like ${var//,/ } It's better to force to use bash shell directly. Signed-off-by: Liu Changcheng diff --git a/tools/vm/slabinfo-gnuplot.sh b/tools/vm/slabinfo-gnuplot.sh index 35b0398..0cf28aa 100644

[PATCH v3 18/33] nds32: Signal handling support

2017-12-08 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 | 73 +++ arch/nds32/kernel/signal.c | 350 ++ 2 files changed, 423

[PATCH v3 19/33] nds32: Library functions

2017-12-08 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 | 30 arch/nds32/include/asm/swab.h| 48 +++ arch/nds32/include/asm/uaccess.h | 296

Re: [PATCH v4.1] phylib: Add device reset GPIO support

2017-12-08 Thread Geert Uytterhoeven
Hi Sergei, On Thu, Dec 7, 2017 at 6:20 PM, Sergei Shtylyov wrote: > On 12/04/2017 03:35 PM, Geert Uytterhoeven wrote: >> From: Sergei Shtylyov >> The PHY devices sometimes do have their reset signal (maybe even power >> supply?) tied to some GPIO and sometimes it also does happen that a boot >>

Re: [PATCH 4/7 v2] net: ethernet: i825xx: Fix platform_get_irq's error checking

2017-12-08 Thread arvindY
Hi David, On Wednesday 06 December 2017 05:49 PM, Sergei Shtylyov wrote: On 12/05/2017 06:49 PM, David Miller wrote: From: Arvind Yadav Date: Mon, 4 Dec 2017 23:18:20 +0530 @@ -120,9 +120,10 @@ static int sni_82596_probe(struct platform_device *dev) netdevice->dev_addr[5] =

[PATCH v3 14/33] nds32: DMA mapping API

2017-12-08 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 | 27 ++ arch/nds32/kernel/dma.c | 472 ++

[PATCH v3 16/33] nds32: System calls handling

2017-12-08 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 | 203 ++ arch/nds32/include/asm/syscalls.h| 26 + arch/nds32/include/asm/unistd.h |

[PATCH v3 15/33] nds32: ELF definitions

2017-12-08 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 | 192 ++

[PATCH v3 17/33] nds32: VDSO support

2017-12-08 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 | 35

Re: [PATCH] LDT improvements

2017-12-08 Thread Thomas Gleixner
On Fri, 8 Dec 2017, Ingo Molnar wrote: > * Thomas Gleixner wrote: > > > On Fri, 8 Dec 2017, Ingo Molnar wrote: > > > * Andy Lutomirski wrote: > > > > I don't love mucking with user address space. I'm also quite nervous > > > > about > > > > putting it in our near anything that could pass an

[PATCH v3 11/33] nds32: IRQ handling

2017-12-08 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 | 49 + arch/nds32/kernel/irq.c | 22 + 2 files

[PATCH v3 13/33] nds32: Device specific operations

2017-12-08 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 | 96 +++ arch/nds32/mm/ioremap.c | 75 + 2 files changed,

[PATCH v3 10/33] nds32: Process management

2017-12-08 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 | 25

[PATCH v3 12/33] nds32: Atomic operations

2017-12-08 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 | 28 +

[PATCH v3 08/33] nds32: MMU fault handling and page table management

2017-12-08 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 | 50 ++ arch/nds32/mm/extable.c| 29 +++ arch/nds32/mm/fault.c | 424

[PATCH v3 09/33] nds32: Cache and TLB routines

2017-12-08 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 | 25 ++ arch/nds32/include/asm/cache_info.h| 26 ++ arch/nds32/include/asm/cacheflush.h| 57

Re: [PATCH v0 1/5] x86_64: march=native support

2017-12-08 Thread Alexey Dobriyan
On 12/8/17, H. Peter Anvin wrote: > One more thing: you HAVE to make > arch/x86/include/asm/required-features.h aware of any features that the > kernel unconditionally depend on. Yes, this is foolprof part I have to think through. > Again, using the gcc cpp macros that reflect what bits gcc

[PATCH v3 06/33] nds32: MMU definitions

2017-12-08 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 | 42

[PATCH v3 05/33] nds32: Exception handling

2017-12-08 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 | 79 + arch/nds32/kernel/ex-entry.S| 170 +++

[PATCH v3 07/33] nds32: MMU initialization

2017-12-08 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 | 92 +++ arch/nds32/mm/init.c | 290 ++

RE: [PATCH v2] ubsan: don't handle misaligned address when support unaligned access

2017-12-08 Thread David Laight
From: Andrew Morton > Sent: 07 December 2017 23:25 > On Thu, 7 Dec 2017 16:31:23 +0300 Andrey Ryabinin > wrote: > > > On 12/07/2017 03:49 AM, Andrew Morton wrote: > > > (correcting Andrey's email address) > > > > > > > > > From: Ding Tianhong > > > Subject: lib/ubsan.c: don't handle misaligned

[Patch v6 02/12] [media] s5p-mfc: Adding initial support for MFC v10.10

2017-12-08 Thread Smitha T Murthy
Adding the support for MFC v10.10, with new register file and necessary hw control, decoder, encoder and structural changes. CC: Rob Herring CC: devicet...@vger.kernel.org Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Acked-by: Rob Herring ---

[PATCH v5 4/7] scsi: libsas: Use new workqueue to run sas event and disco event

2017-12-08 Thread Jason Yan
Now all libsas works are queued to scsi host workqueue, include sas event work post by LLDD and sas discovery work, and a sas hotplug flow may be divided into several works, e.g libsas receive a PORTE_BYTES_DMAED event, currently we process it as following steps: sas_form_port --- run in work in

[Patch v6 11/12] [media] s5p-mfc: Add support for HEVC encoder

2017-12-08 Thread Smitha T Murthy
Add HEVC encoder support and necessary registers, V4L2 CIDs, and hevc encoder parameters Signed-off-by: Smitha T Murthy --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 28 +- drivers/media/platform/s5p-mfc/s5p_mfc.c| 1 + drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 3 +

[PATCH v5 6/7] scsi: libsas: direct call probe and destruct

2017-12-08 Thread Jason Yan
In commit 87c8331fcf72 ("[SCSI] libsas: prevent domain rediscovery competing with ata error handling") introduced disco mutex to prevent rediscovery competing with ata error handling and put the whole revalidation in the mutex. But the rphy add/remove needs to wait for the error handling which

Re: [RFC v3 PATCH 0/2] Introduce Security Version to EFI Stub

2017-12-08 Thread Gary Lin
On Thu, Dec 07, 2017 at 02:26:57PM +, Alan Cox wrote: > On Tue, 5 Dec 2017 18:01:46 +0800 > Gary Lin wrote: > > > The series of patches introduce Security Version to EFI stub. > > > > Security Version is a monotonically increasing number and designed to > > prevent the user from loading an

[Patch v6 09/12] [media] s5p-mfc: Add VP9 decoder support

2017-12-08 Thread Smitha T Murthy
Add support for codec definition and corresponding buffer requirements for VP9 decoder. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 6 ++ drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 3 +++

Re: [patches] Re: [GIT PULL] RISC-V Cleanups and ABI Fixes for 4.15-rc2

2017-12-08 Thread Andrea Parri
On Thu, Dec 07, 2017 at 12:59:35PM -0800, Palmer Dabbelt wrote: > On Sat, 02 Dec 2017 19:20:02 PST (-0800), parri.and...@gmail.com wrote: > >On Fri, Dec 01, 2017 at 01:39:12PM -0800, Palmer Dabbelt wrote: > >> RISC-V: Remove smb_mb__{before,after}_spinlock() > > > >I wonder whether you really

Re: [PATCH 1/2] serial: tegra: Delete an error message for a failed memory allocation in tegra_uart_probe()

2017-12-08 Thread Laxman Dewangan
On Friday 08 December 2017 01:49 AM, SF Markus Elfring wrote: From: Markus Elfring Date: Thu, 7 Dec 2017 21:00:05 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Acked-by: Laxman Dewangan

[Patch v6 10/12] [media] v4l2: Add v4l2 control IDs for HEVC encoder

2017-12-08 Thread Smitha T Murthy
Add v4l2 controls for HEVC encoder Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda --- drivers/media/v4l2-core/v4l2-ctrls.c | 118 +++ include/uapi/linux/v4l2-controls.h | 92 ++- 2 files changed, 209 insertions(+), 1

[Patch v6 12/12] Documention: v4l: Documentation for HEVC CIDs

2017-12-08 Thread Smitha T Murthy
Added V4l2 controls for HEVC encoder Signed-off-by: Smitha T Murthy --- Documentation/media/uapi/v4l/extended-controls.rst | 395 + 1 file changed, 395 insertions(+) diff --git a/Documentation/media/uapi/v4l/extended-controls.rst

[Patch v6 08/12] [media] s5p-mfc: Add support for HEVC decoder

2017-12-08 Thread Smitha T Murthy
Add support for codec definition and corresponding buffer requirements for HEVC decoder. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 1 + drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v6.c | 3 +++

[Patch v6 06/12] [media] v4l2-ioctl: add HEVC format description

2017-12-08 Thread Smitha T Murthy
HEVC is a video coding format Signed-off-by: Smitha T Murthy Reviewed-by: Stanimir Varbanov Acked-by: Hans Verkuil --- drivers/media/v4l2-core/v4l2-ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index

[Patch v6 03/12] [media] s5p-mfc: Use min scratch buffer size as provided by F/W

2017-12-08 Thread Smitha T Murthy
After MFC v8.0, mfc f/w lets the driver know how much scratch buffer size is required for decoder. If mfc f/w has the functionality, E_MIN_SCRATCH_BUFFER_SIZE, driver can know how much scratch buffer size is required for encoder too. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda ---

[PATCH v5 5/7] scsi: libsas: use flush_workqueue to process disco events synchronously

2017-12-08 Thread Jason Yan
Now we are processing sas event and discover event in different workqueues. It's safe to wait the discover event done in the sas event work. Use flush_workqueue() to insure the disco and revalidate events processed synchronously so that the whole discover and revalidate process will not be

[Patch v6 04/12] [media] s5p-mfc: Support MFCv10.10 buffer requirements

2017-12-08 Thread Smitha T Murthy
Aligning the luma_dpb_size, chroma_dpb_size, mv_size and me_buffer_size for MFCv10.10. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Acked-by: Kamil Debski --- drivers/media/platform/s5p-mfc/regs-mfc-v10.h | 19 + drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c | 93

[PATCH v5 7/7] scsi: libsas: notify event PORTE_BROADCAST_RCVD in sas_enable_revalidation()

2017-12-08 Thread Jason Yan
There are two places queuing the disco event DISCE_REVALIDATE_DOMAIN. One is in sas_porte_broadcast_rcvd() and uses sas_chain_event() to queue the event. The other is in sas_enable_revalidation() and uses sas_queue_event() to queue the event. We have diffrent work queues for event and discovery

[Patch v6 05/12] [media] videodev2.h: Add v4l2 definition for HEVC

2017-12-08 Thread Smitha T Murthy
Add V4L2 definition for HEVC compressed format Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Reviewed-by: Stanimir Varbanov Acked-by: Hans Verkuil --- include/uapi/linux/videodev2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/videodev2.h

[Patch v6 07/12] Documentation: v4l: Documentation for HEVC v4l2 definition

2017-12-08 Thread Smitha T Murthy
Add V4L2 definition for HEVC compressed format which is also known as H.265. Signed-off-by: Smitha T Murthy Reviewed-by: Andrzej Hajda Reviewed-by: Stanimir Varbanov --- Documentation/media/uapi/v4l/pixfmt-compressed.rst | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v2] cgroup: avoid cgroup root name longer than max

2017-12-08 Thread Ma Shimiao
v1->v2: - only copy maxlength-1 to name, otherwise have problem to print it cgroup root name has max length limit, we should avoid copying longer name than that to the name. Signed-off-by: Ma Shimiao --- kernel/cgroup/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] mux: add SPDX identifiers to all mux source files

2017-12-08 Thread Peter Rosin
On 2017-12-08 10:43, Philipp Zabel wrote: > Hi Peter, > > On Thu, 2017-12-07 at 22:08 +0100, Peter Rosin wrote: >> diff --git a/drivers/mux/mmio.c b/drivers/mux/mmio.c >> index 37c1de359a70..935ac44aa209 100644 >> --- a/drivers/mux/mmio.c >> +++ b/drivers/mux/mmio.c >> @@ -1,11 +1,8 @@ >> +//

Re: [PATCH 2/5] -march=native: POPCNT support

2017-12-08 Thread Alexey Dobriyan
On 12/8/17, H. Peter Anvin wrote: > On 12/07/17 14:41, Alexey Dobriyan wrote: >> Mainline kernel can only generate "popcnt rax, rdi" instruction >> with alternative masquareading as function call. Patch allows >> to generate all POPCNT variations and inlines hweigth*() family of >> functions. >

Re: [PATCH 4.4 13/16] ocfs2: should wait dio before inode lock in ocfs2_setattr()

2017-12-08 Thread Changwei Ge
On 2017/12/8 14:21, alex chen wrote: > > > On 2017/12/8 13:36, Ben Hutchings wrote: >> On Fri, 2017-12-08 at 12:03 +0800, alex chen wrote: >>> >>> On 2017/12/8 10:26, Ben Hutchings wrote: On Fri, 2017-12-08 at 08:39 +0800, alex chen wrote: > > On 2017/12/8 2:25, Ben Hutchings wrote:

Re: Multiple oom_reaper BUGs: unmap_page_range racing with exit_mmap

2017-12-08 Thread Tetsuo Handa
Michal Hocko wrote: > On Fri 08-12-17 00:44:11, Tetsuo Handa wrote: > > Michal Hocko wrote: > > > David, could you test with this patch please? > > > > Even if this patch solved David's case, you need to update > > > > * tsk_is_oom_victim() cannot be set from under us > > * either

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

2017-12-08 Thread Peter Zijlstra
On Thu, Dec 07, 2017 at 09:56:57PM +0100, Daniel Vetter wrote: > On Thu, Dec 07, 2017 at 08:57:09PM +0100, Peter Zijlstra wrote: > > Is what it says I suppose. Now I don't know enough about that i915 code > > to say if that breadcrumbs_signal thread can ever trigger a fault or > > not. I got

RE: [PATCH] drm/i915: Use copy_from_user() in fence copying

2017-12-08 Thread David Laight
From: Kees Cook > Sent: 06 December 2017 20:29 > > There's no good reason to separate the access_ok() from the copy, > especially since the access_ok() size is hard-coded instead of using > sizeof(). Instead, just use copy_from_user() directly. Looks like an optimisation to save doing the

Re: [PATCH v2] usb: host: Implement workaround for Erratum A-007463

2017-12-08 Thread Greg Kroah-Hartman
On Fri, Dec 08, 2017 at 05:49:40PM +0800, yinbo@nxp.com wrote: > From: "yinbo.zhu" I need a "real name" here, I doubt you sign documents as: "yinbo.zhu" right? :) Also, you sent 3 patches, yet no way to know what order to apply them in. Please fix that up by sending a patch

[PATCH v2] watchdog: core: make sure the watchdog worker always works

2017-12-08 Thread Christophe Leroy
When running a command like 'chrt -f 50 dd if=/dev/zero of=/dev/null', the watchdog_worker fails to service the HW watchdog and the HW watchdog fires long before the watchdog soft timeout. At the moment, the watchdog_worker is invoked as a delayed work. Delayed works are handled by non realtime

Re: [PATCH v2] usb: host: Implement workaround for Erratum A-009611

2017-12-08 Thread Greg Kroah-Hartman
On Fri, Dec 08, 2017 at 05:49:41PM +0800, yinbo@nxp.com wrote: > From: "yinbo.zhu" > > Description: This is a occasional problem where the software No need for a "Description:" word. That's just assumed here, right? > issues an End Transfer command while a USB transfer is in progress, >

[PATCHv2] tools: hv: hv_set_ifconfig.sh double check before setting ip

2017-12-08 Thread Eduardo Otubo
This patch fixes the behavior of the hv_set_ifconfig script when setting the interface ip. Sometimes the interface has already been configured by network daemon, in this case hv_set_ifconfig causes "RTNETLINK: file exists error"; in order to avoid this error this patch makes sure double checks the

Re: [PATCH v3 17/33] nds32: VDSO support

2017-12-08 Thread Mark Rutland
On Fri, Dec 08, 2017 at 05:12:00PM +0800, Greentime Hu wrote: > 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). [...] > +static int grab_timer_node_info(void) > +{ > +

[PATCH] rcutorture: Add basic ARM64 support to run scripts

2017-12-08 Thread lianglihao
From: Lihao Liang This commit adds support of the qemu command qemu-system-aarch64 to rcutorture. Use the following command to run: ./kvm.sh --qemu-cmd qemu-system-aarch64 Signed-off-by: Lihao Liang --- The max CPUs supported by qemu machine 'virt' is 8 so the value of CONFIG_NR_CPUS in

[PATCH] KVM: VMX: drop I/O permission bitmaps

2017-12-08 Thread Quan Xu
From: Quan Xu Since KVM removes the only I/O port 0x80 bypass on Intel hosts, clear CPU_BASED_USE_IO_BITMAPS and set CPU_BASED_UNCOND_IO_EXITING bit. Then these I/O permission bitmaps are not used at all, so drop I/O permission bitmaps. Signed-off-by: Jim Mattson Signed-off-by: Radim Krčmář

Re: [PATCH v4 09/12] clk: qcom: Add Krait clock controller driver

2017-12-08 Thread Philippe Ombredanne
Sricharan, Stephen, On Fri, Dec 8, 2017 at 10:29 AM, Sricharan R wrote: > From: Stephen Boyd > > The Krait CPU clocks are made up of a primary mux and secondary > mux for each CPU and the L2, controlled via cp15 accessors. For > Kraits within KPSSv1 each secondary mux accepts a different aux >

Re: [PATCH v3 24/33] nds32: Device tree support

2017-12-08 Thread Mark Rutland
On Fri, Dec 08, 2017 at 05:12:07PM +0800, Greentime Hu wrote: > + timer0: timer@f040 { > + compatible = "andestech,atcpit100"; > + reg = <0xf040 0x1000>; > + interrupts = <2>; > + clocks = <_pll>; > + clock-names = "apb_pclk";

<    1   2   3   4   5   6   7   8   9   10   >